elm: Updated authors in elm.
[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 @author Hyoyoung Chang <hyoyoung.chang@samsung.com>
301 @author Guillaume "Kuri" Friloux <guillaume.friloux@asp64.com>
302 @author Kim Yunhan <spbear@gmail.com>
303
304 Please contact <enlightenment-devel@lists.sourceforge.net> to get in
305 contact with the developers and maintainers.
306  */
307
308 #ifndef ELEMENTARY_H
309 #define ELEMENTARY_H
310
311 /**
312  * @file Elementary.h
313  * @brief Elementary's API
314  *
315  * Elementary API.
316  */
317
318 @ELM_UNIX_DEF@ ELM_UNIX
319 @ELM_WIN32_DEF@ ELM_WIN32
320 @ELM_WINCE_DEF@ ELM_WINCE
321 @ELM_EDBUS_DEF@ ELM_EDBUS
322 @ELM_EFREET_DEF@ ELM_EFREET
323 @ELM_ETHUMB_DEF@ ELM_ETHUMB
324 @ELM_EMAP_DEF@ ELM_EMAP
325 @ELM_DEBUG_DEF@ ELM_DEBUG
326 @ELM_ALLOCA_H_DEF@ ELM_ALLOCA_H
327 @ELM_LIBINTL_H_DEF@ ELM_LIBINTL_H
328
329 /* Standard headers for standard system calls etc. */
330 #include <stdio.h>
331 #include <stdlib.h>
332 #include <unistd.h>
333 #include <string.h>
334 #include <sys/types.h>
335 #include <sys/stat.h>
336 #include <sys/time.h>
337 #include <sys/param.h>
338 #include <dlfcn.h>
339 #include <math.h>
340 #include <fnmatch.h>
341 #include <limits.h>
342 #include <ctype.h>
343 #include <time.h>
344 #include <dirent.h>
345 #include <pwd.h>
346 #include <errno.h>
347
348 #ifdef ELM_UNIX
349 # include <locale.h>
350 # ifdef ELM_LIBINTL_H
351 #  include <libintl.h>
352 # endif
353 # include <signal.h>
354 # include <grp.h>
355 # include <glob.h>
356 #endif
357
358 #ifdef ELM_ALLOCA_H
359 # include <alloca.h>
360 #endif
361
362 #if defined (ELM_WIN32) || defined (ELM_WINCE)
363 # include <malloc.h>
364 # ifndef alloca
365 #  define alloca _alloca
366 # endif
367 #endif
368
369
370 /* EFL headers */
371 #include <Eina.h>
372 #include <Eet.h>
373 #include <Evas.h>
374 #include <Evas_GL.h>
375 #include <Ecore.h>
376 #include <Ecore_Evas.h>
377 #include <Ecore_File.h>
378 #include <Ecore_IMF.h>
379 #include <Ecore_Con.h>
380 #include <Edje.h>
381
382 #ifdef ELM_EDBUS
383 # include <E_DBus.h>
384 #endif
385
386 #ifdef ELM_EFREET
387 # include <Efreet.h>
388 # include <Efreet_Mime.h>
389 # include <Efreet_Trash.h>
390 #endif
391
392 #ifdef ELM_ETHUMB
393 # include <Ethumb_Client.h>
394 #endif
395
396 #ifdef ELM_EMAP
397 # include <EMap.h>
398 #endif
399
400 #ifdef EAPI
401 # undef EAPI
402 #endif
403
404 #ifdef _WIN32
405 # ifdef ELEMENTARY_BUILD
406 #  ifdef DLL_EXPORT
407 #   define EAPI __declspec(dllexport)
408 #  else
409 #   define EAPI
410 #  endif /* ! DLL_EXPORT */
411 # else
412 #  define EAPI __declspec(dllimport)
413 # endif /* ! EFL_EVAS_BUILD */
414 #else
415 # ifdef __GNUC__
416 #  if __GNUC__ >= 4
417 #   define EAPI __attribute__ ((visibility("default")))
418 #  else
419 #   define EAPI
420 #  endif
421 # else
422 #  define EAPI
423 # endif
424 #endif /* ! _WIN32 */
425
426 #ifdef _WIN32
427 # define EAPI_MAIN
428 #else
429 # define EAPI_MAIN EAPI
430 #endif
431
432 /* allow usage from c++ */
433 #ifdef __cplusplus
434 extern "C" {
435 #endif
436
437 #define ELM_VERSION_MAJOR @VMAJ@
438 #define ELM_VERSION_MINOR @VMIN@
439
440    typedef struct _Elm_Version
441      {
442         int major;
443         int minor;
444         int micro;
445         int revision;
446      } Elm_Version;
447
448    EAPI extern Elm_Version *elm_version;
449
450 /* handy macros */
451 #define ELM_RECTS_INTERSECT(x, y, w, h, xx, yy, ww, hh) (((x) < ((xx) + (ww))) && ((y) < ((yy) + (hh))) && (((x) + (w)) > (xx)) && (((y) + (h)) > (yy)))
452 #define ELM_PI 3.14159265358979323846
453
454    /**
455     * @defgroup General General
456     *
457     * @brief General Elementary API. Functions that don't relate to
458     * Elementary objects specifically.
459     *
460     * Here are documented functions which init/shutdown the library,
461     * that apply to generic Elementary objects, that deal with
462     * configuration, et cetera.
463     *
464     * @ref general_functions_example_page "This" example contemplates
465     * some of these functions.
466     */
467
468    /**
469     * @addtogroup General
470     * @{
471     */
472
473   /**
474    * Defines couple of standard Evas_Object layers to be used
475    * with evas_object_layer_set().
476    *
477    * @note whenever extending with new values, try to keep some padding
478    *       to siblings so there is room for further extensions.
479    */
480   typedef enum _Elm_Object_Layer
481     {
482        ELM_OBJECT_LAYER_BACKGROUND = EVAS_LAYER_MIN + 64, /**< where to place backgrounds */
483        ELM_OBJECT_LAYER_DEFAULT = 0, /**< Evas_Object default layer (and thus for Elementary) */
484        ELM_OBJECT_LAYER_FOCUS = EVAS_LAYER_MAX - 128, /**< where focus object visualization is */
485        ELM_OBJECT_LAYER_TOOLTIP = EVAS_LAYER_MAX - 64, /**< where to show tooltips */
486        ELM_OBJECT_LAYER_CURSOR = EVAS_LAYER_MAX - 32, /**< where to show cursors */
487        ELM_OBJECT_LAYER_LAST /**< last layer known by Elementary */
488     } Elm_Object_Layer;
489
490 /**************************************************************************/
491    EAPI extern int ELM_ECORE_EVENT_ETHUMB_CONNECT;
492
493    /**
494     * Emitted when any Elementary's policy value is changed.
495     */
496    EAPI extern int ELM_EVENT_POLICY_CHANGED;
497
498    /**
499     * @typedef Elm_Event_Policy_Changed
500     *
501     * Data on the event when an Elementary policy has changed
502     */
503     typedef struct _Elm_Event_Policy_Changed Elm_Event_Policy_Changed;
504
505    /**
506     * @struct _Elm_Event_Policy_Changed
507     *
508     * Data on the event when an Elementary policy has changed
509     */
510     struct _Elm_Event_Policy_Changed
511      {
512         unsigned int policy; /**< the policy identifier */
513         int          new_value; /**< value the policy had before the change */
514         int          old_value; /**< new value the policy got */
515     };
516
517    /**
518     * Policy identifiers.
519     */
520     typedef enum _Elm_Policy
521     {
522         ELM_POLICY_QUIT, /**< under which circumstances the application
523                           * should quit automatically. @see
524                           * Elm_Policy_Quit.
525                           */
526         ELM_POLICY_LAST
527     } Elm_Policy; /**< Elementary policy identifiers/groups enumeration.  @see elm_policy_set()
528  */
529
530    typedef enum _Elm_Policy_Quit
531      {
532         ELM_POLICY_QUIT_NONE = 0, /**< never quit the application
533                                    * automatically */
534         ELM_POLICY_QUIT_LAST_WINDOW_CLOSED /**< quit when the
535                                             * application's last
536                                             * window is closed */
537      } Elm_Policy_Quit; /**< Possible values for the #ELM_POLICY_QUIT policy */
538
539    typedef enum _Elm_Focus_Direction
540      {
541         ELM_FOCUS_PREVIOUS,
542         ELM_FOCUS_NEXT
543      } Elm_Focus_Direction;
544
545    typedef enum _Elm_Text_Format
546      {
547         ELM_TEXT_FORMAT_PLAIN_UTF8,
548         ELM_TEXT_FORMAT_MARKUP_UTF8
549      } Elm_Text_Format;
550
551    /**
552     * Line wrapping types.
553     */
554    typedef enum _Elm_Wrap_Type
555      {
556         ELM_WRAP_NONE = 0, /**< No wrap - value is zero */
557         ELM_WRAP_CHAR, /**< Char wrap - wrap between characters */
558         ELM_WRAP_WORD, /**< Word wrap - wrap in allowed wrapping points (as defined in the unicode standard) */
559         ELM_WRAP_MIXED, /**< Mixed wrap - Word wrap, and if that fails, char wrap. */
560         ELM_WRAP_LAST
561      } Elm_Wrap_Type;
562
563    typedef enum
564      {
565         ELM_INPUT_PANEL_LAYOUT_NORMAL,          /**< Default layout */
566         ELM_INPUT_PANEL_LAYOUT_NUMBER,          /**< Number layout */
567         ELM_INPUT_PANEL_LAYOUT_EMAIL,           /**< Email layout */
568         ELM_INPUT_PANEL_LAYOUT_URL,             /**< URL layout */
569         ELM_INPUT_PANEL_LAYOUT_PHONENUMBER,     /**< Phone Number layout */
570         ELM_INPUT_PANEL_LAYOUT_IP,              /**< IP layout */
571         ELM_INPUT_PANEL_LAYOUT_MONTH,           /**< Month layout */
572         ELM_INPUT_PANEL_LAYOUT_NUMBERONLY,      /**< Number Only layout */
573         ELM_INPUT_PANEL_LAYOUT_INVALID
574      } Elm_Input_Panel_Layout;
575
576    /**
577     * @typedef Elm_Object_Item
578     * An Elementary Object item handle.
579     * @ingroup General
580     */
581    typedef struct _Elm_Object_Item Elm_Object_Item;
582
583
584    /**
585     * Called back when a widget's tooltip is activated and needs content.
586     * @param data user-data given to elm_object_tooltip_content_cb_set()
587     * @param obj owner widget.
588     * @param tooltip The tooltip object (affix content to this!)
589     */
590    typedef Evas_Object *(*Elm_Tooltip_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip);
591
592    /**
593     * Called back when a widget's item tooltip is activated and needs content.
594     * @param data user-data given to elm_object_tooltip_content_cb_set()
595     * @param obj owner widget.
596     * @param tooltip The tooltip object (affix content to this!)
597     * @param item context dependent item. As an example, if tooltip was
598     *        set on Elm_List_Item, then it is of this type.
599     */
600    typedef Evas_Object *(*Elm_Tooltip_Item_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip, void *item);
601
602    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. */
603
604 #ifndef ELM_LIB_QUICKLAUNCH
605 #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 */
606 #else
607 #define ELM_MAIN() int main(int argc, char **argv) {return elm_quicklaunch_fallback(argc, argv);} /**< macro to be used after the elm_main() function */
608 #endif
609
610 /**************************************************************************/
611    /* General calls */
612
613    /**
614     * Initialize Elementary
615     *
616     * @param[in] argc System's argument count value
617     * @param[in] argv System's pointer to array of argument strings
618     * @return The init counter value.
619     *
620     * This function initializes Elementary and increments a counter of
621     * the number of calls to it. It returns the new counter's value.
622     *
623     * @warning This call is exported only for use by the @c ELM_MAIN()
624     * macro. There is no need to use this if you use this macro (which
625     * is highly advisable). An elm_main() should contain the entry
626     * point code for your application, having the same prototype as
627     * elm_init(), and @b not being static (putting the @c EAPI symbol
628     * in front of its type declaration is advisable). The @c
629     * ELM_MAIN() call should be placed just after it.
630     *
631     * Example:
632     * @dontinclude bg_example_01.c
633     * @skip static void
634     * @until ELM_MAIN
635     *
636     * See the full @ref bg_example_01_c "example".
637     *
638     * @see elm_shutdown().
639     * @ingroup General
640     */
641    EAPI int          elm_init(int argc, char **argv);
642
643    /**
644     * Shut down Elementary
645     *
646     * @return The init counter value.
647     *
648     * This should be called at the end of your application, just
649     * before it ceases to do any more processing. This will clean up
650     * any permanent resources your application may have allocated via
651     * Elementary that would otherwise persist.
652     *
653     * @see elm_init() for an example
654     *
655     * @ingroup General
656     */
657    EAPI int          elm_shutdown(void);
658
659    /**
660     * Run Elementary's main loop
661     *
662     * This call should be issued just after all initialization is
663     * completed. This function will not return until elm_exit() is
664     * called. It will keep looping, running the main
665     * (event/processing) loop for Elementary.
666     *
667     * @see elm_init() for an example
668     *
669     * @ingroup General
670     */
671    EAPI void         elm_run(void);
672
673    /**
674     * Exit Elementary's main loop
675     *
676     * If this call is issued, it will flag the main loop to cease
677     * processing and return back to its parent function (usually your
678     * elm_main() function).
679     *
680     * @see elm_init() for an example. There, just after a request to
681     * close the window comes, the main loop will be left.
682     *
683     * @note By using the #ELM_POLICY_QUIT on your Elementary
684     * applications, you'll this function called automatically for you.
685     *
686     * @ingroup General
687     */
688    EAPI void         elm_exit(void);
689
690    /**
691     * Provide information in order to make Elementary determine the @b
692     * run time location of the software in question, so other data files
693     * such as images, sound files, executable utilities, libraries,
694     * modules and locale files can be found.
695     *
696     * @param mainfunc This is your application's main function name,
697     *        whose binary's location is to be found. Providing @c NULL
698     *        will make Elementary not to use it
699     * @param dom This will be used as the application's "domain", in the
700     *        form of a prefix to any environment variables that may
701     *        override prefix detection and the directory name, inside the
702     *        standard share or data directories, where the software's
703     *        data files will be looked for.
704     * @param checkfile This is an (optional) magic file's path to check
705     *        for existence (and it must be located in the data directory,
706     *        under the share directory provided above). Its presence will
707     *        help determine the prefix found was correct. Pass @c NULL if
708     *        the check is not to be done.
709     *
710     * This function allows one to re-locate the application somewhere
711     * else after compilation, if the developer wishes for easier
712     * distribution of pre-compiled binaries.
713     *
714     * The prefix system is designed to locate where the given software is
715     * installed (under a common path prefix) at run time and then report
716     * specific locations of this prefix and common directories inside
717     * this prefix like the binary, library, data and locale directories,
718     * through the @c elm_app_*_get() family of functions.
719     *
720     * Call elm_app_info_set() early on before you change working
721     * directory or anything about @c argv[0], so it gets accurate
722     * information.
723     *
724     * It will then try and trace back which file @p mainfunc comes from,
725     * if provided, to determine the application's prefix directory.
726     *
727     * The @p dom parameter provides a string prefix to prepend before
728     * environment variables, allowing a fallback to @b specific
729     * environment variables to locate the software. You would most
730     * probably provide a lowercase string there, because it will also
731     * serve as directory domain, explained next. For environment
732     * variables purposes, this string is made uppercase. For example if
733     * @c "myapp" is provided as the prefix, then the program would expect
734     * @c "MYAPP_PREFIX" as a master environment variable to specify the
735     * exact install prefix for the software, or more specific environment
736     * variables like @c "MYAPP_BIN_DIR", @c "MYAPP_LIB_DIR", @c
737     * "MYAPP_DATA_DIR" and @c "MYAPP_LOCALE_DIR", which could be set by
738     * the user or scripts before launching. If not provided (@c NULL),
739     * environment variables will not be used to override compiled-in
740     * defaults or auto detections.
741     *
742     * The @p dom string also provides a subdirectory inside the system
743     * shared data directory for data files. For example, if the system
744     * directory is @c /usr/local/share, then this directory name is
745     * appended, creating @c /usr/local/share/myapp, if it @p was @c
746     * "myapp". It is expected the application installs data files in
747     * this directory.
748     *
749     * The @p checkfile is a file name or path of something inside the
750     * share or data directory to be used to test that the prefix
751     * detection worked. For example, your app will install a wallpaper
752     * image as @c /usr/local/share/myapp/images/wallpaper.jpg and so to
753     * check that this worked, provide @c "images/wallpaper.jpg" as the @p
754     * checkfile string.
755     *
756     * @see elm_app_compile_bin_dir_set()
757     * @see elm_app_compile_lib_dir_set()
758     * @see elm_app_compile_data_dir_set()
759     * @see elm_app_compile_locale_set()
760     * @see elm_app_prefix_dir_get()
761     * @see elm_app_bin_dir_get()
762     * @see elm_app_lib_dir_get()
763     * @see elm_app_data_dir_get()
764     * @see elm_app_locale_dir_get()
765     */
766    EAPI void         elm_app_info_set(void *mainfunc, const char *dom, const char *checkfile);
767
768    /**
769     * Provide information on the @b fallback application's binaries
770     * directory, on scenarios where they get overriden by
771     * elm_app_info_set().
772     *
773     * @param dir The path to the default binaries directory (compile time
774     * one)
775     *
776     * @note Elementary will as well use this path to determine actual
777     * names of binaries' directory paths, maybe changing it to be @c
778     * something/local/bin instead of @c something/bin, only, for
779     * example.
780     *
781     * @warning You should call this function @b before
782     * elm_app_info_set().
783     */
784    EAPI void         elm_app_compile_bin_dir_set(const char *dir);
785
786    /**
787     * Provide information on the @b fallback application's libraries
788     * directory, on scenarios where they get overriden by
789     * elm_app_info_set().
790     *
791     * @param dir The path to the default libraries directory (compile
792     * time one)
793     *
794     * @note Elementary will as well use this path to determine actual
795     * names of libraries' directory paths, maybe changing it to be @c
796     * something/lib32 or @c something/lib64 instead of @c something/lib,
797     * only, for example.
798     *
799     * @warning You should call this function @b before
800     * elm_app_info_set().
801     */
802    EAPI void         elm_app_compile_lib_dir_set(const char *dir);
803
804    /**
805     * Provide information on the @b fallback application's data
806     * directory, on scenarios where they get overriden by
807     * elm_app_info_set().
808     *
809     * @param dir The path to the default data directory (compile time
810     * one)
811     *
812     * @note Elementary will as well use this path to determine actual
813     * names of data directory paths, maybe changing it to be @c
814     * something/local/share instead of @c something/share, only, for
815     * example.
816     *
817     * @warning You should call this function @b before
818     * elm_app_info_set().
819     */
820    EAPI void         elm_app_compile_data_dir_set(const char *dir);
821
822    /**
823     * Provide information on the @b fallback application's locale
824     * directory, on scenarios where they get overriden by
825     * elm_app_info_set().
826     *
827     * @param dir The path to the default locale directory (compile time
828     * one)
829     *
830     * @warning You should call this function @b before
831     * elm_app_info_set().
832     */
833    EAPI void         elm_app_compile_locale_set(const char *dir);
834
835    /**
836     * Retrieve the application's run time prefix directory, as set by
837     * elm_app_info_set() and the way (environment) the application was
838     * run from.
839     *
840     * @return The directory prefix the application is actually using
841     */
842    EAPI const char  *elm_app_prefix_dir_get(void);
843
844    /**
845     * Retrieve the application's run time binaries prefix directory, as
846     * set by elm_app_info_set() and the way (environment) the application
847     * was run from.
848     *
849     * @return The binaries directory prefix the application is actually
850     * using
851     */
852    EAPI const char  *elm_app_bin_dir_get(void);
853
854    /**
855     * Retrieve the application's run time libraries prefix directory, as
856     * set by elm_app_info_set() and the way (environment) the application
857     * was run from.
858     *
859     * @return The libraries directory prefix the application is actually
860     * using
861     */
862    EAPI const char  *elm_app_lib_dir_get(void);
863
864    /**
865     * Retrieve the application's run time data prefix directory, as
866     * set by elm_app_info_set() and the way (environment) the application
867     * was run from.
868     *
869     * @return The data directory prefix the application is actually
870     * using
871     */
872    EAPI const char  *elm_app_data_dir_get(void);
873
874    /**
875     * Retrieve the application's run time locale prefix directory, as
876     * set by elm_app_info_set() and the way (environment) the application
877     * was run from.
878     *
879     * @return The locale directory prefix the application is actually
880     * using
881     */
882    EAPI const char  *elm_app_locale_dir_get(void);
883
884    EAPI void         elm_quicklaunch_mode_set(Eina_Bool ql_on);
885    EAPI Eina_Bool    elm_quicklaunch_mode_get(void);
886    EAPI int          elm_quicklaunch_init(int argc, char **argv);
887    EAPI int          elm_quicklaunch_sub_init(int argc, char **argv);
888    EAPI int          elm_quicklaunch_sub_shutdown(void);
889    EAPI int          elm_quicklaunch_shutdown(void);
890    EAPI void         elm_quicklaunch_seed(void);
891    EAPI Eina_Bool    elm_quicklaunch_prepare(int argc, char **argv);
892    EAPI Eina_Bool    elm_quicklaunch_fork(int argc, char **argv, char *cwd, void (postfork_func) (void *data), void *postfork_data);
893    EAPI void         elm_quicklaunch_cleanup(void);
894    EAPI int          elm_quicklaunch_fallback(int argc, char **argv);
895    EAPI char        *elm_quicklaunch_exe_path_get(const char *exe);
896
897    EAPI Eina_Bool    elm_need_efreet(void);
898    EAPI Eina_Bool    elm_need_e_dbus(void);
899
900    /**
901     * This must be called before any other function that handle with
902     * elm_thumb objects or ethumb_client instances.
903     *
904     * @ingroup Thumb
905     */
906    EAPI Eina_Bool    elm_need_ethumb(void);
907
908    /**
909     * Set a new policy's value (for a given policy group/identifier).
910     *
911     * @param policy policy identifier, as in @ref Elm_Policy.
912     * @param value policy value, which depends on the identifier
913     *
914     * @return @c EINA_TRUE on success or @c EINA_FALSE, on error.
915     *
916     * Elementary policies define applications' behavior,
917     * somehow. These behaviors are divided in policy groups (see
918     * #Elm_Policy enumeration). This call will emit the Ecore event
919     * #ELM_EVENT_POLICY_CHANGED, which can be hooked at with
920     * handlers. An #Elm_Event_Policy_Changed struct will be passed,
921     * then.
922     *
923     * @note Currently, we have only one policy identifier/group
924     * (#ELM_POLICY_QUIT), which has two possible values.
925     *
926     * @ingroup General
927     */
928    EAPI Eina_Bool    elm_policy_set(unsigned int policy, int value);
929
930    /**
931     * Gets the policy value set for given policy identifier.
932     *
933     * @param policy policy identifier, as in #Elm_Policy.
934     * @return The currently set policy value, for that
935     * identifier. Will be @c 0 if @p policy passed is invalid.
936     *
937     * @ingroup General
938     */
939    EAPI int          elm_policy_get(unsigned int policy);
940
941    /**
942     * Set a label of an object
943     *
944     * @param obj The Elementary object
945     * @param part The text part name to set (NULL for the default label)
946     * @param label The new text of the label
947     *
948     * @note Elementary objects may have many labels (e.g. Action Slider)
949     *
950     * @ingroup General
951     */
952    EAPI void         elm_object_text_part_set(Evas_Object *obj, const char *part, const char *label);
953
954 #define elm_object_text_set(obj, label) elm_object_text_part_set((obj), NULL, (label))
955
956    /**
957     * Get a label of an object
958     *
959     * @param obj The Elementary object
960     * @param part The text part name to get (NULL for the default label)
961     * @return text of the label or NULL for any error
962     *
963     * @note Elementary objects may have many labels (e.g. Action Slider)
964     *
965     * @ingroup General
966     */
967    EAPI const char  *elm_object_text_part_get(const Evas_Object *obj, const char *part);
968
969 #define elm_object_text_get(obj) elm_object_text_part_get((obj), NULL)
970
971    /**
972     * Set a content of an object
973     *
974     * @param obj The Elementary object
975     * @param part The content part name to set (NULL for the default content)
976     * @param content The new content of the object
977     *
978     * @note Elementary objects may have many contents
979     *
980     * @ingroup General
981     */
982    EAPI void elm_object_content_part_set(Evas_Object *obj, const char *part, Evas_Object *content);
983
984 #define elm_object_content_set(obj, content) elm_object_content_part_set((obj), NULL, (content))
985
986    /**
987     * Get a content of an object
988     *
989     * @param obj The Elementary object
990     * @param item The content part name to get (NULL for the default content)
991     * @return content of the object or NULL for any error
992     *
993     * @note Elementary objects may have many contents
994     *
995     * @ingroup General
996     */
997    EAPI Evas_Object *elm_object_content_part_get(const Evas_Object *obj, const char *part);
998
999 #define elm_object_content_get(obj) elm_object_content_part_get((obj), NULL)
1000
1001    /**
1002     * Unset a content of an object
1003     *
1004     * @param obj The Elementary object
1005     * @param item The content part name to unset (NULL for the default content)
1006     *
1007     * @note Elementary objects may have many contents
1008     *
1009     * @ingroup General
1010     */
1011    EAPI Evas_Object *elm_object_content_part_unset(Evas_Object *obj, const char *part);
1012
1013 #define elm_object_content_unset(obj) elm_object_content_part_unset((obj), NULL)
1014
1015    /**
1016     * Set a content of an object item
1017     *
1018     * @param it The Elementary object item
1019     * @param part The content part name to set (NULL for the default content)
1020     * @param content The new content of the object item
1021     *
1022     * @note Elementary object items may have many contents
1023     *
1024     * @ingroup General
1025     */
1026    EAPI void elm_object_item_content_part_set(Elm_Object_Item *it, const char *part, Evas_Object *content);
1027
1028 #define elm_object_item_content_set(it, content) elm_object_item_content_part_set((it), NULL, (content))
1029
1030    /**
1031     * Get a content of an object item
1032     *
1033     * @param it The Elementary object item
1034     * @param part The content part name to unset (NULL for the default content)
1035     * @return content of the object item or NULL for any error
1036     *
1037     * @note Elementary object items may have many contents
1038     *
1039     * @ingroup General
1040     */
1041    EAPI Evas_Object *elm_object_item_content_part_get(const Elm_Object_Item *it, const char *part);
1042
1043 #define elm_object_item_content_get(it) elm_object_item_content_part_get((it), NULL)
1044
1045    /**
1046     * Unset a content of an object item
1047     *
1048     * @param it The Elementary object item
1049     * @param part The content part name to unset (NULL for the default content)
1050     *
1051     * @note Elementary object items may have many contents
1052     *
1053     * @ingroup General
1054     */
1055    EAPI Evas_Object *elm_object_item_content_part_unset(Elm_Object_Item *it, const char *part);
1056
1057 #define elm_object_item_content_unset(it) elm_object_item_content_part_unset((it), NULL)
1058
1059    /**
1060     * Set a label of an objec itemt
1061     *
1062     * @param it The Elementary object item
1063     * @param part The text part name to set (NULL for the default label)
1064     * @param label The new text of the label
1065     *
1066     * @note Elementary object items may have many labels
1067     *
1068     * @ingroup General
1069     */
1070    EAPI void elm_object_item_text_part_set(Elm_Object_Item *it, const char *part, const char *label);
1071
1072 #define elm_object_item_text_set(it, label) elm_object_item_text_part_set((it), NULL, (label))
1073
1074    /**
1075     * Get a label of an object
1076     *
1077     * @param it The Elementary object item
1078     * @param part The text part name to get (NULL for the default label)
1079     * @return text of the label or NULL for any error
1080     *
1081     * @note Elementary object items may have many labels
1082     *
1083     * @ingroup General
1084     */
1085    EAPI const char *elm_object_item_text_part_get(const Elm_Object_Item *it, const char *part);
1086
1087    /**
1088     * Set the text to read out when in accessibility mode
1089     *
1090     * @param obj The object which is to be described
1091     * @param txt The text that describes the widget to people with poor or no vision
1092     *
1093     * @ingroup General
1094     */
1095    EAPI void elm_object_access_info_set(Evas_Object *obj, const char *txt);
1096
1097    /**
1098     * Set the text to read out when in accessibility mode
1099     *
1100     * @param it The object item which is to be described
1101     * @param txt The text that describes the widget to people with poor or no vision
1102     *
1103     * @ingroup General
1104     */
1105    EAPI void elm_object_item_access_info_set(Elm_Object_Item *it, const char *txt);
1106
1107
1108 #define elm_object_item_text_get(it) elm_object_item_text_part_get((it), NULL)
1109
1110    /**
1111     * Get the data associated with an object item
1112     * @param it The object item
1113     * @return The data associated with @p it
1114     *
1115     * @ingroup General
1116     */
1117    EAPI void *elm_object_item_data_get(const Elm_Object_Item *it);
1118
1119    /**
1120     * Set the data associated with an object item
1121     * @param it The object item
1122     * @param data The data to be associated with @p it
1123     *
1124     * @ingroup General
1125     */
1126    EAPI void elm_object_item_data_set(Elm_Object_Item *it, void *data);
1127
1128    /**
1129     * Send a signal to the edje object of the widget item.
1130     *
1131     * This function sends a signal to the edje object of the obj item. An
1132     * edje program can respond to a signal by specifying matching
1133     * 'signal' and 'source' fields.
1134     *
1135     * @param it The Elementary object item
1136     * @param emission The signal's name.
1137     * @param source The signal's source.
1138     * @ingroup General
1139     */
1140    EAPI void             elm_object_item_signal_emit(Elm_Object_Item *it, const char *emission, const char *source) EINA_ARG_NONNULL(1);
1141
1142    /**
1143     * @}
1144     */
1145
1146    /**
1147     * @defgroup Caches Caches
1148     *
1149     * These are functions which let one fine-tune some cache values for
1150     * Elementary applications, thus allowing for performance adjustments.
1151     *
1152     * @{
1153     */
1154
1155    /**
1156     * @brief Flush all caches.
1157     *
1158     * Frees all data that was in cache and is not currently being used to reduce
1159     * memory usage. This frees Edje's, Evas' and Eet's cache. This is equivalent
1160     * to calling all of the following functions:
1161     * @li edje_file_cache_flush()
1162     * @li edje_collection_cache_flush()
1163     * @li eet_clearcache()
1164     * @li evas_image_cache_flush()
1165     * @li evas_font_cache_flush()
1166     * @li evas_render_dump()
1167     * @note Evas caches are flushed for every canvas associated with a window.
1168     *
1169     * @ingroup Caches
1170     */
1171    EAPI void         elm_all_flush(void);
1172
1173    /**
1174     * Get the configured cache flush interval time
1175     *
1176     * This gets the globally configured cache flush interval time, in
1177     * ticks
1178     *
1179     * @return The cache flush interval time
1180     * @ingroup Caches
1181     *
1182     * @see elm_all_flush()
1183     */
1184    EAPI int          elm_cache_flush_interval_get(void);
1185
1186    /**
1187     * Set the configured cache flush interval time
1188     *
1189     * This sets the globally configured cache flush interval time, in ticks
1190     *
1191     * @param size The cache flush interval time
1192     * @ingroup Caches
1193     *
1194     * @see elm_all_flush()
1195     */
1196    EAPI void         elm_cache_flush_interval_set(int size);
1197
1198    /**
1199     * Set the configured cache flush interval time for all applications on the
1200     * display
1201     *
1202     * This sets the globally configured cache flush interval time -- in ticks
1203     * -- for all applications on the display.
1204     *
1205     * @param size The cache flush interval time
1206     * @ingroup Caches
1207     */
1208    EAPI void         elm_cache_flush_interval_all_set(int size);
1209
1210    /**
1211     * Get the configured cache flush enabled state
1212     *
1213     * This gets the globally configured cache flush state - if it is enabled
1214     * or not. When cache flushing is enabled, elementary will regularly
1215     * (see elm_cache_flush_interval_get() ) flush caches and dump data out of
1216     * memory and allow usage to re-seed caches and data in memory where it
1217     * can do so. An idle application will thus minimise its memory usage as
1218     * data will be freed from memory and not be re-loaded as it is idle and
1219     * not rendering or doing anything graphically right now.
1220     *
1221     * @return The cache flush state
1222     * @ingroup Caches
1223     *
1224     * @see elm_all_flush()
1225     */
1226    EAPI Eina_Bool    elm_cache_flush_enabled_get(void);
1227
1228    /**
1229     * Set the configured cache flush enabled state
1230     *
1231     * This sets the globally configured cache flush enabled state
1232     *
1233     * @param size The cache flush enabled state
1234     * @ingroup Caches
1235     *
1236     * @see elm_all_flush()
1237     */
1238    EAPI void         elm_cache_flush_enabled_set(Eina_Bool enabled);
1239
1240    /**
1241     * Set the configured cache flush enabled state for all applications on the
1242     * display
1243     *
1244     * This sets the globally configured cache flush enabled state for all
1245     * applications on the display.
1246     *
1247     * @param size The cache flush enabled state
1248     * @ingroup Caches
1249     */
1250    EAPI void         elm_cache_flush_enabled_all_set(Eina_Bool enabled);
1251
1252    /**
1253     * Get the configured font cache size
1254     *
1255     * This gets the globally configured font cache size, in bytes
1256     *
1257     * @return The font cache size
1258     * @ingroup Caches
1259     */
1260    EAPI int          elm_font_cache_get(void);
1261
1262    /**
1263     * Set the configured font cache size
1264     *
1265     * This sets the globally configured font cache size, in bytes
1266     *
1267     * @param size The font cache size
1268     * @ingroup Caches
1269     */
1270    EAPI void         elm_font_cache_set(int size);
1271
1272    /**
1273     * Set the configured font cache size for all applications on the
1274     * display
1275     *
1276     * This sets the globally configured font cache size -- in bytes
1277     * -- for all applications on the display.
1278     *
1279     * @param size The font cache size
1280     * @ingroup Caches
1281     */
1282    EAPI void         elm_font_cache_all_set(int size);
1283
1284    /**
1285     * Get the configured image cache size
1286     *
1287     * This gets the globally configured image cache size, in bytes
1288     *
1289     * @return The image cache size
1290     * @ingroup Caches
1291     */
1292    EAPI int          elm_image_cache_get(void);
1293
1294    /**
1295     * Set the configured image cache size
1296     *
1297     * This sets the globally configured image cache size, in bytes
1298     *
1299     * @param size The image cache size
1300     * @ingroup Caches
1301     */
1302    EAPI void         elm_image_cache_set(int size);
1303
1304    /**
1305     * Set the configured image cache size for all applications on the
1306     * display
1307     *
1308     * This sets the globally configured image cache size -- in bytes
1309     * -- for all applications on the display.
1310     *
1311     * @param size The image cache size
1312     * @ingroup Caches
1313     */
1314    EAPI void         elm_image_cache_all_set(int size);
1315
1316    /**
1317     * Get the configured edje file cache size.
1318     *
1319     * This gets the globally configured edje file cache size, in number
1320     * of files.
1321     *
1322     * @return The edje file cache size
1323     * @ingroup Caches
1324     */
1325    EAPI int          elm_edje_file_cache_get(void);
1326
1327    /**
1328     * Set the configured edje file cache size
1329     *
1330     * This sets the globally configured edje file cache size, in number
1331     * of files.
1332     *
1333     * @param size The edje file cache size
1334     * @ingroup Caches
1335     */
1336    EAPI void         elm_edje_file_cache_set(int size);
1337
1338    /**
1339     * Set the configured edje file cache size for all applications on the
1340     * display
1341     *
1342     * This sets the globally configured edje file cache size -- in number
1343     * of files -- for all applications on the display.
1344     *
1345     * @param size The edje file cache size
1346     * @ingroup Caches
1347     */
1348    EAPI void         elm_edje_file_cache_all_set(int size);
1349
1350    /**
1351     * Get the configured edje collections (groups) cache size.
1352     *
1353     * This gets the globally configured edje collections cache size, in
1354     * number of collections.
1355     *
1356     * @return The edje collections cache size
1357     * @ingroup Caches
1358     */
1359    EAPI int          elm_edje_collection_cache_get(void);
1360
1361    /**
1362     * Set the configured edje collections (groups) cache size
1363     *
1364     * This sets the globally configured edje collections cache size, in
1365     * number of collections.
1366     *
1367     * @param size The edje collections cache size
1368     * @ingroup Caches
1369     */
1370    EAPI void         elm_edje_collection_cache_set(int size);
1371
1372    /**
1373     * Set the configured edje collections (groups) cache size for all
1374     * applications on the display
1375     *
1376     * This sets the globally configured edje collections cache size -- in
1377     * number of collections -- for all applications on the display.
1378     *
1379     * @param size The edje collections cache size
1380     * @ingroup Caches
1381     */
1382    EAPI void         elm_edje_collection_cache_all_set(int size);
1383
1384    /**
1385     * @}
1386     */
1387
1388    /**
1389     * @defgroup Scaling Widget Scaling
1390     *
1391     * Different widgets can be scaled independently. These functions
1392     * allow you to manipulate this scaling on a per-widget basis. The
1393     * object and all its children get their scaling factors multiplied
1394     * by the scale factor set. This is multiplicative, in that if a
1395     * child also has a scale size set it is in turn multiplied by its
1396     * parent's scale size. @c 1.0 means “don't scale”, @c 2.0 is
1397     * double size, @c 0.5 is half, etc.
1398     *
1399     * @ref general_functions_example_page "This" example contemplates
1400     * some of these functions.
1401     */
1402
1403    /**
1404     * Get the global scaling factor
1405     *
1406     * This gets the globally configured scaling factor that is applied to all
1407     * objects.
1408     *
1409     * @return The scaling factor
1410     * @ingroup Scaling
1411     */
1412    EAPI double       elm_scale_get(void);
1413
1414    /**
1415     * Set the global scaling factor
1416     *
1417     * This sets the globally configured scaling factor that is applied to all
1418     * objects.
1419     *
1420     * @param scale The scaling factor to set
1421     * @ingroup Scaling
1422     */
1423    EAPI void         elm_scale_set(double scale);
1424
1425    /**
1426     * Set the global scaling factor for all applications on the display
1427     *
1428     * This sets the globally configured scaling factor that is applied to all
1429     * objects for all applications.
1430     * @param scale The scaling factor to set
1431     * @ingroup Scaling
1432     */
1433    EAPI void         elm_scale_all_set(double scale);
1434
1435    /**
1436     * Set the scaling factor for a given Elementary object
1437     *
1438     * @param obj The Elementary to operate on
1439     * @param scale Scale factor (from @c 0.0 up, with @c 1.0 meaning
1440     * no scaling)
1441     *
1442     * @ingroup Scaling
1443     */
1444    EAPI void         elm_object_scale_set(Evas_Object *obj, double scale) EINA_ARG_NONNULL(1);
1445
1446    /**
1447     * Get the scaling factor for a given Elementary object
1448     *
1449     * @param obj The object
1450     * @return The scaling factor set by elm_object_scale_set()
1451     *
1452     * @ingroup Scaling
1453     */
1454    EAPI double       elm_object_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1455
1456    /**
1457     * @defgroup Password_last_show Password last input show
1458     *
1459     * Last show feature of password mode enables user to view
1460     * the last input entered for few seconds before masking it.
1461     * These functions allow to set this feature in password mode
1462     * of entry widget and also allow to manipulate the duration
1463     * for which the input has to be visible.
1464     *
1465     * @{
1466     */
1467
1468    /**
1469     * Get show last setting of password mode.
1470     *
1471     * This gets the show last input setting of password mode which might be
1472     * enabled or disabled.
1473     *
1474     * @return @c EINA_TRUE, if the last input show setting is enabled, @c EINA_FALSE
1475     *            if it's disabled.
1476     * @ingroup Password_last_show
1477     */
1478    EAPI Eina_Bool elm_password_show_last_get(void);
1479
1480    /**
1481     * Set show last setting in password mode.
1482     *
1483     * This enables or disables show last setting of password mode.
1484     *
1485     * @param password_show_last If EINA_TRUE enable's last input show in password mode.
1486     * @see elm_password_show_last_timeout_set()
1487     * @ingroup Password_last_show
1488     */
1489    EAPI void elm_password_show_last_set(Eina_Bool password_show_last);
1490
1491    /**
1492     * Get's the timeout value in last show password mode.
1493     *
1494     * This gets the time out value for which the last input entered in password
1495     * mode will be visible.
1496     *
1497     * @return The timeout value of last show password mode.
1498     * @ingroup Password_last_show
1499     */
1500    EAPI double elm_password_show_last_timeout_get(void);
1501
1502    /**
1503     * Set's the timeout value in last show password mode.
1504     *
1505     * This sets the time out value for which the last input entered in password
1506     * mode will be visible.
1507     *
1508     * @param password_show_last_timeout The timeout value.
1509     * @see elm_password_show_last_set()
1510     * @ingroup Password_last_show
1511     */
1512    EAPI void elm_password_show_last_timeout_set(double password_show_last_timeout);
1513
1514    /**
1515     * @}
1516     */
1517
1518    /**
1519     * @defgroup UI-Mirroring Selective Widget mirroring
1520     *
1521     * These functions allow you to set ui-mirroring on specific
1522     * widgets or the whole interface. Widgets can be in one of two
1523     * modes, automatic and manual.  Automatic means they'll be changed
1524     * according to the system mirroring mode and manual means only
1525     * explicit changes will matter. You are not supposed to change
1526     * mirroring state of a widget set to automatic, will mostly work,
1527     * but the behavior is not really defined.
1528     *
1529     * @{
1530     */
1531
1532    EAPI Eina_Bool    elm_mirrored_get(void);
1533    EAPI void         elm_mirrored_set(Eina_Bool mirrored);
1534
1535    /**
1536     * Get the system mirrored mode. This determines the default mirrored mode
1537     * of widgets.
1538     *
1539     * @return EINA_TRUE if mirrored is set, EINA_FALSE otherwise
1540     */
1541    EAPI Eina_Bool    elm_object_mirrored_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1542
1543    /**
1544     * Set the system mirrored mode. This determines the default mirrored mode
1545     * of widgets.
1546     *
1547     * @param mirrored EINA_TRUE to set mirrored mode, EINA_FALSE to unset it.
1548     */
1549    EAPI void         elm_object_mirrored_set(Evas_Object *obj, Eina_Bool mirrored) EINA_ARG_NONNULL(1);
1550
1551    /**
1552     * Returns the widget's mirrored mode setting.
1553     *
1554     * @param obj The widget.
1555     * @return mirrored mode setting of the object.
1556     *
1557     **/
1558    EAPI Eina_Bool    elm_object_mirrored_automatic_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1559
1560    /**
1561     * Sets the widget's mirrored mode setting.
1562     * When widget in automatic mode, it follows the system mirrored mode set by
1563     * elm_mirrored_set().
1564     * @param obj The widget.
1565     * @param automatic EINA_TRUE for auto mirrored mode. EINA_FALSE for manual.
1566     */
1567    EAPI void         elm_object_mirrored_automatic_set(Evas_Object *obj, Eina_Bool automatic) EINA_ARG_NONNULL(1);
1568
1569    /**
1570     * @}
1571     */
1572
1573    /**
1574     * Set the style to use by a widget
1575     *
1576     * Sets the style name that will define the appearance of a widget. Styles
1577     * vary from widget to widget and may also be defined by other themes
1578     * by means of extensions and overlays.
1579     *
1580     * @param obj The Elementary widget to style
1581     * @param style The style name to use
1582     *
1583     * @see elm_theme_extension_add()
1584     * @see elm_theme_extension_del()
1585     * @see elm_theme_overlay_add()
1586     * @see elm_theme_overlay_del()
1587     *
1588     * @ingroup Styles
1589     */
1590    EAPI void         elm_object_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
1591    /**
1592     * Get the style used by the widget
1593     *
1594     * This gets the style being used for that widget. Note that the string
1595     * pointer is only valid as longas the object is valid and the style doesn't
1596     * change.
1597     *
1598     * @param obj The Elementary widget to query for its style
1599     * @return The style name used
1600     *
1601     * @see elm_object_style_set()
1602     *
1603     * @ingroup Styles
1604     */
1605    EAPI const char  *elm_object_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1606
1607    /**
1608     * @defgroup Styles Styles
1609     *
1610     * Widgets can have different styles of look. These generic API's
1611     * set styles of widgets, if they support them (and if the theme(s)
1612     * do).
1613     *
1614     * @ref general_functions_example_page "This" example contemplates
1615     * some of these functions.
1616     */
1617
1618    /**
1619     * Set the disabled state of an Elementary object.
1620     *
1621     * @param obj The Elementary object to operate on
1622     * @param disabled The state to put in in: @c EINA_TRUE for
1623     *        disabled, @c EINA_FALSE for enabled
1624     *
1625     * Elementary objects can be @b disabled, in which state they won't
1626     * receive input and, in general, will be themed differently from
1627     * their normal state, usually greyed out. Useful for contexts
1628     * where you don't want your users to interact with some of the
1629     * parts of you interface.
1630     *
1631     * This sets the state for the widget, either disabling it or
1632     * enabling it back.
1633     *
1634     * @ingroup Styles
1635     */
1636    EAPI void         elm_object_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
1637
1638    /**
1639     * Get the disabled state of an Elementary object.
1640     *
1641     * @param obj The Elementary object to operate on
1642     * @return @c EINA_TRUE, if the widget is disabled, @c EINA_FALSE
1643     *            if it's enabled (or on errors)
1644     *
1645     * This gets the state of the widget, which might be enabled or disabled.
1646     *
1647     * @ingroup Styles
1648     */
1649    EAPI Eina_Bool    elm_object_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1650
1651    /**
1652     * @defgroup WidgetNavigation Widget Tree Navigation.
1653     *
1654     * How to check if an Evas Object is an Elementary widget? How to
1655     * get the first elementary widget that is parent of the given
1656     * object?  These are all covered in widget tree navigation.
1657     *
1658     * @ref general_functions_example_page "This" example contemplates
1659     * some of these functions.
1660     */
1661
1662    /**
1663     * Check if the given Evas Object is an Elementary widget.
1664     *
1665     * @param obj the object to query.
1666     * @return @c EINA_TRUE if it is an elementary widget variant,
1667     *         @c EINA_FALSE otherwise
1668     * @ingroup WidgetNavigation
1669     */
1670    EAPI Eina_Bool    elm_object_widget_check(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1671
1672    /**
1673     * Get the first parent of the given object that is an Elementary
1674     * widget.
1675     *
1676     * @param obj the Elementary object to query parent from.
1677     * @return the parent object that is an Elementary widget, or @c
1678     *         NULL, if it was not found.
1679     *
1680     * Use this to query for an object's parent widget.
1681     *
1682     * @note Most of Elementary users wouldn't be mixing non-Elementary
1683     * smart objects in the objects tree of an application, as this is
1684     * an advanced usage of Elementary with Evas. So, except for the
1685     * application's window, which is the root of that tree, all other
1686     * objects would have valid Elementary widget parents.
1687     *
1688     * @ingroup WidgetNavigation
1689     */
1690    EAPI Evas_Object *elm_object_parent_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1691
1692    /**
1693     * Get the top level parent of an Elementary widget.
1694     *
1695     * @param obj The object to query.
1696     * @return The top level Elementary widget, or @c NULL if parent cannot be
1697     * found.
1698     * @ingroup WidgetNavigation
1699     */
1700    EAPI Evas_Object *elm_object_top_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1701
1702    /**
1703     * Get the string that represents this Elementary widget.
1704     *
1705     * @note Elementary is weird and exposes itself as a single
1706     *       Evas_Object_Smart_Class of type "elm_widget", so
1707     *       evas_object_type_get() always return that, making debug and
1708     *       language bindings hard. This function tries to mitigate this
1709     *       problem, but the solution is to change Elementary to use
1710     *       proper inheritance.
1711     *
1712     * @param obj the object to query.
1713     * @return Elementary widget name, or @c NULL if not a valid widget.
1714     * @ingroup WidgetNavigation
1715     */
1716    EAPI const char  *elm_object_widget_type_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1717
1718    /**
1719     * @defgroup Config Elementary Config
1720     *
1721     * Elementary configuration is formed by a set options bounded to a
1722     * given @ref Profile profile, like @ref Theme theme, @ref Fingers
1723     * "finger size", etc. These are functions with which one syncronizes
1724     * changes made to those values to the configuration storing files, de
1725     * facto. You most probably don't want to use the functions in this
1726     * group unlees you're writing an elementary configuration manager.
1727     *
1728     * @{
1729     */
1730
1731    /**
1732     * Save back Elementary's configuration, so that it will persist on
1733     * future sessions.
1734     *
1735     * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
1736     * @ingroup Config
1737     *
1738     * This function will take effect -- thus, do I/O -- immediately. Use
1739     * it when you want to apply all configuration changes at once. The
1740     * current configuration set will get saved onto the current profile
1741     * configuration file.
1742     *
1743     */
1744    EAPI Eina_Bool    elm_config_save(void);
1745
1746    /**
1747     * Reload Elementary's configuration, bounded to current selected
1748     * profile.
1749     *
1750     * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
1751     * @ingroup Config
1752     *
1753     * Useful when you want to force reloading of configuration values for
1754     * a profile. If one removes user custom configuration directories,
1755     * for example, it will force a reload with system values insted.
1756     *
1757     */
1758    EAPI void         elm_config_reload(void);
1759
1760    /**
1761     * @}
1762     */
1763
1764    /**
1765     * @defgroup Profile Elementary Profile
1766     *
1767     * Profiles are pre-set options that affect the whole look-and-feel of
1768     * Elementary-based applications. There are, for example, profiles
1769     * aimed at desktop computer applications and others aimed at mobile,
1770     * touchscreen-based ones. You most probably don't want to use the
1771     * functions in this group unlees you're writing an elementary
1772     * configuration manager.
1773     *
1774     * @{
1775     */
1776
1777    /**
1778     * Get Elementary's profile in use.
1779     *
1780     * This gets the global profile that is applied to all Elementary
1781     * applications.
1782     *
1783     * @return The profile's name
1784     * @ingroup Profile
1785     */
1786    EAPI const char  *elm_profile_current_get(void);
1787
1788    /**
1789     * Get an Elementary's profile directory path in the filesystem. One
1790     * may want to fetch a system profile's dir or an user one (fetched
1791     * inside $HOME).
1792     *
1793     * @param profile The profile's name
1794     * @param is_user Whether to lookup for an user profile (@c EINA_TRUE)
1795     *                or a system one (@c EINA_FALSE)
1796     * @return The profile's directory path.
1797     * @ingroup Profile
1798     *
1799     * @note You must free it with elm_profile_dir_free().
1800     */
1801    EAPI const char  *elm_profile_dir_get(const char *profile, Eina_Bool is_user);
1802
1803    /**
1804     * Free an Elementary's profile directory path, as returned by
1805     * elm_profile_dir_get().
1806     *
1807     * @param p_dir The profile's path
1808     * @ingroup Profile
1809     *
1810     */
1811    EAPI void         elm_profile_dir_free(const char *p_dir);
1812
1813    /**
1814     * Get Elementary's list of available profiles.
1815     *
1816     * @return The profiles list. List node data are the profile name
1817     *         strings.
1818     * @ingroup Profile
1819     *
1820     * @note One must free this list, after usage, with the function
1821     *       elm_profile_list_free().
1822     */
1823    EAPI Eina_List   *elm_profile_list_get(void);
1824
1825    /**
1826     * Free Elementary's list of available profiles.
1827     *
1828     * @param l The profiles list, as returned by elm_profile_list_get().
1829     * @ingroup Profile
1830     *
1831     */
1832    EAPI void         elm_profile_list_free(Eina_List *l);
1833
1834    /**
1835     * Set Elementary's profile.
1836     *
1837     * This sets the global profile that is applied to Elementary
1838     * applications. Just the process the call comes from will be
1839     * affected.
1840     *
1841     * @param profile The profile's name
1842     * @ingroup Profile
1843     *
1844     */
1845    EAPI void         elm_profile_set(const char *profile);
1846
1847    /**
1848     * Set Elementary's profile.
1849     *
1850     * This sets the global profile that is applied to all Elementary
1851     * applications. All running Elementary windows will be affected.
1852     *
1853     * @param profile The profile's name
1854     * @ingroup Profile
1855     *
1856     */
1857    EAPI void         elm_profile_all_set(const char *profile);
1858
1859    /**
1860     * @}
1861     */
1862
1863    /**
1864     * @defgroup Engine Elementary Engine
1865     *
1866     * These are functions setting and querying which rendering engine
1867     * Elementary will use for drawing its windows' pixels.
1868     *
1869     * The following are the available engines:
1870     * @li "software_x11"
1871     * @li "fb"
1872     * @li "directfb"
1873     * @li "software_16_x11"
1874     * @li "software_8_x11"
1875     * @li "xrender_x11"
1876     * @li "opengl_x11"
1877     * @li "software_gdi"
1878     * @li "software_16_wince_gdi"
1879     * @li "sdl"
1880     * @li "software_16_sdl"
1881     * @li "opengl_sdl"
1882     * @li "buffer"
1883     *
1884     * @{
1885     */
1886
1887    /**
1888     * @brief Get Elementary's rendering engine in use.
1889     *
1890     * @return The rendering engine's name
1891     * @note there's no need to free the returned string, here.
1892     *
1893     * This gets the global rendering engine that is applied to all Elementary
1894     * applications.
1895     *
1896     * @see elm_engine_set()
1897     */
1898    EAPI const char  *elm_engine_current_get(void);
1899
1900    /**
1901     * @brief Set Elementary's rendering engine for use.
1902     *
1903     * @param engine The rendering engine's name
1904     *
1905     * This sets global rendering engine that is applied to all Elementary
1906     * applications. Note that it will take effect only to Elementary windows
1907     * created after this is called.
1908     *
1909     * @see elm_win_add()
1910     */
1911    EAPI void         elm_engine_set(const char *engine);
1912
1913    /**
1914     * @}
1915     */
1916
1917    /**
1918     * @defgroup Fonts Elementary Fonts
1919     *
1920     * These are functions dealing with font rendering, selection and the
1921     * like for Elementary applications. One might fetch which system
1922     * fonts are there to use and set custom fonts for individual classes
1923     * of UI items containing text (text classes).
1924     *
1925     * @{
1926     */
1927
1928   typedef struct _Elm_Text_Class
1929     {
1930        const char *name;
1931        const char *desc;
1932     } Elm_Text_Class;
1933
1934   typedef struct _Elm_Font_Overlay
1935     {
1936        const char     *text_class;
1937        const char     *font;
1938        Evas_Font_Size  size;
1939     } Elm_Font_Overlay;
1940
1941   typedef struct _Elm_Font_Properties
1942     {
1943        const char *name;
1944        Eina_List  *styles;
1945     } Elm_Font_Properties;
1946
1947    /**
1948     * Get Elementary's list of supported text classes.
1949     *
1950     * @return The text classes list, with @c Elm_Text_Class blobs as data.
1951     * @ingroup Fonts
1952     *
1953     * Release the list with elm_text_classes_list_free().
1954     */
1955    EAPI const Eina_List     *elm_text_classes_list_get(void);
1956
1957    /**
1958     * Free Elementary's list of supported text classes.
1959     *
1960     * @ingroup Fonts
1961     *
1962     * @see elm_text_classes_list_get().
1963     */
1964    EAPI void                 elm_text_classes_list_free(const Eina_List *list);
1965
1966    /**
1967     * Get Elementary's list of font overlays, set with
1968     * elm_font_overlay_set().
1969     *
1970     * @return The font overlays list, with @c Elm_Font_Overlay blobs as
1971     * data.
1972     *
1973     * @ingroup Fonts
1974     *
1975     * For each text class, one can set a <b>font overlay</b> for it,
1976     * overriding the default font properties for that class coming from
1977     * the theme in use. There is no need to free this list.
1978     *
1979     * @see elm_font_overlay_set() and elm_font_overlay_unset().
1980     */
1981    EAPI const Eina_List     *elm_font_overlay_list_get(void);
1982
1983    /**
1984     * Set a font overlay for a given Elementary text class.
1985     *
1986     * @param text_class Text class name
1987     * @param font Font name and style string
1988     * @param size Font size
1989     *
1990     * @ingroup Fonts
1991     *
1992     * @p font has to be in the format returned by
1993     * elm_font_fontconfig_name_get(). @see elm_font_overlay_list_get()
1994     * and elm_font_overlay_unset().
1995     */
1996    EAPI void                 elm_font_overlay_set(const char *text_class, const char *font, Evas_Font_Size size);
1997
1998    /**
1999     * Unset a font overlay for a given Elementary text class.
2000     *
2001     * @param text_class Text class name
2002     *
2003     * @ingroup Fonts
2004     *
2005     * This will bring back text elements belonging to text class
2006     * @p text_class back to their default font settings.
2007     */
2008    EAPI void                 elm_font_overlay_unset(const char *text_class);
2009
2010    /**
2011     * Apply the changes made with elm_font_overlay_set() and
2012     * elm_font_overlay_unset() on the current Elementary window.
2013     *
2014     * @ingroup Fonts
2015     *
2016     * This applies all font overlays set to all objects in the UI.
2017     */
2018    EAPI void                 elm_font_overlay_apply(void);
2019
2020    /**
2021     * Apply the changes made with elm_font_overlay_set() and
2022     * elm_font_overlay_unset() on all Elementary application windows.
2023     *
2024     * @ingroup Fonts
2025     *
2026     * This applies all font overlays set to all objects in the UI.
2027     */
2028    EAPI void                 elm_font_overlay_all_apply(void);
2029
2030    /**
2031     * Translate a font (family) name string in fontconfig's font names
2032     * syntax into an @c Elm_Font_Properties struct.
2033     *
2034     * @param font The font name and styles string
2035     * @return the font properties struct
2036     *
2037     * @ingroup Fonts
2038     *
2039     * @note The reverse translation can be achived with
2040     * elm_font_fontconfig_name_get(), for one style only (single font
2041     * instance, not family).
2042     */
2043    EAPI Elm_Font_Properties *elm_font_properties_get(const char *font) EINA_ARG_NONNULL(1);
2044
2045    /**
2046     * Free font properties return by elm_font_properties_get().
2047     *
2048     * @param efp the font properties struct
2049     *
2050     * @ingroup Fonts
2051     */
2052    EAPI void                 elm_font_properties_free(Elm_Font_Properties *efp) EINA_ARG_NONNULL(1);
2053
2054    /**
2055     * Translate a font name, bound to a style, into fontconfig's font names
2056     * syntax.
2057     *
2058     * @param name The font (family) name
2059     * @param style The given style (may be @c NULL)
2060     *
2061     * @return the font name and style string
2062     *
2063     * @ingroup Fonts
2064     *
2065     * @note The reverse translation can be achived with
2066     * elm_font_properties_get(), for one style only (single font
2067     * instance, not family).
2068     */
2069    EAPI const char          *elm_font_fontconfig_name_get(const char *name, const char *style) EINA_ARG_NONNULL(1);
2070
2071    /**
2072     * Free the font string return by elm_font_fontconfig_name_get().
2073     *
2074     * @param efp the font properties struct
2075     *
2076     * @ingroup Fonts
2077     */
2078    EAPI void                 elm_font_fontconfig_name_free(const char *name) EINA_ARG_NONNULL(1);
2079
2080    /**
2081     * Create a font hash table of available system fonts.
2082     *
2083     * One must call it with @p list being the return value of
2084     * evas_font_available_list(). The hash will be indexed by font
2085     * (family) names, being its values @c Elm_Font_Properties blobs.
2086     *
2087     * @param list The list of available system fonts, as returned by
2088     * evas_font_available_list().
2089     * @return the font hash.
2090     *
2091     * @ingroup Fonts
2092     *
2093     * @note The user is supposed to get it populated at least with 3
2094     * default font families (Sans, Serif, Monospace), which should be
2095     * present on most systems.
2096     */
2097    EAPI Eina_Hash           *elm_font_available_hash_add(Eina_List *list);
2098
2099    /**
2100     * Free the hash return by elm_font_available_hash_add().
2101     *
2102     * @param hash the hash to be freed.
2103     *
2104     * @ingroup Fonts
2105     */
2106    EAPI void                 elm_font_available_hash_del(Eina_Hash *hash);
2107
2108    /**
2109     * @}
2110     */
2111
2112    /**
2113     * @defgroup Fingers Fingers
2114     *
2115     * Elementary is designed to be finger-friendly for touchscreens,
2116     * and so in addition to scaling for display resolution, it can
2117     * also scale based on finger "resolution" (or size). You can then
2118     * customize the granularity of the areas meant to receive clicks
2119     * on touchscreens.
2120     *
2121     * Different profiles may have pre-set values for finger sizes.
2122     *
2123     * @ref general_functions_example_page "This" example contemplates
2124     * some of these functions.
2125     *
2126     * @{
2127     */
2128
2129    /**
2130     * Get the configured "finger size"
2131     *
2132     * @return The finger size
2133     *
2134     * This gets the globally configured finger size, <b>in pixels</b>
2135     *
2136     * @ingroup Fingers
2137     */
2138    EAPI Evas_Coord       elm_finger_size_get(void);
2139
2140    /**
2141     * Set the configured finger size
2142     *
2143     * This sets the globally configured finger size in pixels
2144     *
2145     * @param size The finger size
2146     * @ingroup Fingers
2147     */
2148    EAPI void             elm_finger_size_set(Evas_Coord size);
2149
2150    /**
2151     * Set the configured finger size for all applications on the display
2152     *
2153     * This sets the globally configured finger size in pixels for all
2154     * applications on the display
2155     *
2156     * @param size The finger size
2157     * @ingroup Fingers
2158     */
2159    EAPI void             elm_finger_size_all_set(Evas_Coord size);
2160
2161    /**
2162     * @}
2163     */
2164
2165    /**
2166     * @defgroup Focus Focus
2167     *
2168     * An Elementary application has, at all times, one (and only one)
2169     * @b focused object. This is what determines where the input
2170     * events go to within the application's window. Also, focused
2171     * objects can be decorated differently, in order to signal to the
2172     * user where the input is, at a given moment.
2173     *
2174     * Elementary applications also have the concept of <b>focus
2175     * chain</b>: one can cycle through all the windows' focusable
2176     * objects by input (tab key) or programmatically. The default
2177     * focus chain for an application is the one define by the order in
2178     * which the widgets where added in code. One will cycle through
2179     * top level widgets, and, for each one containg sub-objects, cycle
2180     * through them all, before returning to the level
2181     * above. Elementary also allows one to set @b custom focus chains
2182     * for their applications.
2183     *
2184     * Besides the focused decoration a widget may exhibit, when it
2185     * gets focus, Elementary has a @b global focus highlight object
2186     * that can be enabled for a window. If one chooses to do so, this
2187     * extra highlight effect will surround the current focused object,
2188     * too.
2189     *
2190     * @note Some Elementary widgets are @b unfocusable, after
2191     * creation, by their very nature: they are not meant to be
2192     * interacted with input events, but are there just for visual
2193     * purposes.
2194     *
2195     * @ref general_functions_example_page "This" example contemplates
2196     * some of these functions.
2197     */
2198
2199    /**
2200     * Get the enable status of the focus highlight
2201     *
2202     * This gets whether the highlight on focused objects is enabled or not
2203     * @ingroup Focus
2204     */
2205    EAPI Eina_Bool        elm_focus_highlight_enabled_get(void);
2206
2207    /**
2208     * Set the enable status of the focus highlight
2209     *
2210     * Set whether to show or not the highlight on focused objects
2211     * @param enable Enable highlight if EINA_TRUE, disable otherwise
2212     * @ingroup Focus
2213     */
2214    EAPI void             elm_focus_highlight_enabled_set(Eina_Bool enable);
2215
2216    /**
2217     * Get the enable status of the highlight animation
2218     *
2219     * Get whether the focus highlight, if enabled, will animate its switch from
2220     * one object to the next
2221     * @ingroup Focus
2222     */
2223    EAPI Eina_Bool        elm_focus_highlight_animate_get(void);
2224
2225    /**
2226     * Set the enable status of the highlight animation
2227     *
2228     * Set whether the focus highlight, if enabled, will animate its switch from
2229     * one object to the next
2230     * @param animate Enable animation if EINA_TRUE, disable otherwise
2231     * @ingroup Focus
2232     */
2233    EAPI void             elm_focus_highlight_animate_set(Eina_Bool animate);
2234
2235    /**
2236     * Get the whether an Elementary object has the focus or not.
2237     *
2238     * @param obj The Elementary object to get the information from
2239     * @return @c EINA_TRUE, if the object is focused, @c EINA_FALSE if
2240     *            not (and on errors).
2241     *
2242     * @see elm_object_focus_set()
2243     *
2244     * @ingroup Focus
2245     */
2246    EAPI Eina_Bool        elm_object_focus_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2247
2248    /**
2249     * Set/unset focus to a given Elementary object.
2250     *
2251     * @param obj The Elementary object to operate on.
2252     * @param enable @c EINA_TRUE Set focus to a given object,
2253     *               @c EINA_FALSE Unset focus to a given object.
2254     *
2255     * @note When you set focus to this object, if it can handle focus, will
2256     * take the focus away from the one who had it previously and will, for
2257     * now on, be the one receiving input events. Unsetting focus will remove
2258     * the focus from @p obj, passing it back to the previous element in the
2259     * focus chain list.
2260     *
2261     * @see elm_object_focus_get(), elm_object_focus_custom_chain_get()
2262     *
2263     * @ingroup Focus
2264     */
2265    EAPI void             elm_object_focus_set(Evas_Object *obj, Eina_Bool focus) EINA_ARG_NONNULL(1);
2266
2267    /**
2268     * Make a given Elementary object the focused one.
2269     *
2270     * @param obj The Elementary object to make focused.
2271     *
2272     * @note This object, if it can handle focus, will take the focus
2273     * away from the one who had it previously and will, for now on, be
2274     * the one receiving input events.
2275     *
2276     * @see elm_object_focus_get()
2277     * @deprecated use elm_object_focus_set() instead.
2278     *
2279     * @ingroup Focus
2280     */
2281    EINA_DEPRECATED EAPI void             elm_object_focus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2282
2283    /**
2284     * Remove the focus from an Elementary object
2285     *
2286     * @param obj The Elementary to take focus from
2287     *
2288     * This removes the focus from @p obj, passing it back to the
2289     * previous element in the focus chain list.
2290     *
2291     * @see elm_object_focus() and elm_object_focus_custom_chain_get()
2292     * @deprecated use elm_object_focus_set() instead.
2293     *
2294     * @ingroup Focus
2295     */
2296    EINA_DEPRECATED EAPI void             elm_object_unfocus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2297
2298    /**
2299     * Set the ability for an Element object to be focused
2300     *
2301     * @param obj The Elementary object to operate on
2302     * @param enable @c EINA_TRUE if the object can be focused, @c
2303     *        EINA_FALSE if not (and on errors)
2304     *
2305     * This sets whether the object @p obj is able to take focus or
2306     * not. Unfocusable objects do nothing when programmatically
2307     * focused, being the nearest focusable parent object the one
2308     * really getting focus. Also, when they receive mouse input, they
2309     * will get the event, but not take away the focus from where it
2310     * was previously.
2311     *
2312     * @ingroup Focus
2313     */
2314    EAPI void             elm_object_focus_allow_set(Evas_Object *obj, Eina_Bool enable) EINA_ARG_NONNULL(1);
2315
2316    /**
2317     * Get whether an Elementary object is focusable or not
2318     *
2319     * @param obj The Elementary object to operate on
2320     * @return @c EINA_TRUE if the object is allowed to be focused, @c
2321     *             EINA_FALSE if not (and on errors)
2322     *
2323     * @note Objects which are meant to be interacted with by input
2324     * events are created able to be focused, by default. All the
2325     * others are not.
2326     *
2327     * @ingroup Focus
2328     */
2329    EAPI Eina_Bool        elm_object_focus_allow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2330
2331    /**
2332     * Set custom focus chain.
2333     *
2334     * This function overwrites any previous custom focus chain within
2335     * the list of objects. The previous list will be deleted and this list
2336     * will be managed by elementary. After it is set, don't modify it.
2337     *
2338     * @note On focus cycle, only will be evaluated children of this container.
2339     *
2340     * @param obj The container object
2341     * @param objs Chain of objects to pass focus
2342     * @ingroup Focus
2343     */
2344    EAPI void             elm_object_focus_custom_chain_set(Evas_Object *obj, Eina_List *objs) EINA_ARG_NONNULL(1);
2345
2346    /**
2347     * Unset a custom focus chain on a given Elementary widget
2348     *
2349     * @param obj The container object to remove focus chain from
2350     *
2351     * Any focus chain previously set on @p obj (for its child objects)
2352     * is removed entirely after this call.
2353     *
2354     * @ingroup Focus
2355     */
2356    EAPI void             elm_object_focus_custom_chain_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
2357
2358    /**
2359     * Get custom focus chain
2360     *
2361     * @param obj The container object
2362     * @ingroup Focus
2363     */
2364    EAPI const Eina_List *elm_object_focus_custom_chain_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2365
2366    /**
2367     * Append object to custom focus chain.
2368     *
2369     * @note If relative_child equal to NULL or not in custom chain, the object
2370     * will be added in end.
2371     *
2372     * @note On focus cycle, only will be evaluated children of this container.
2373     *
2374     * @param obj The container object
2375     * @param child The child to be added in custom chain
2376     * @param relative_child The relative object to position the child
2377     * @ingroup Focus
2378     */
2379    EAPI void             elm_object_focus_custom_chain_append(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2380
2381    /**
2382     * Prepend object to custom focus chain.
2383     *
2384     * @note If relative_child equal to NULL or not in custom chain, the object
2385     * will be added in begin.
2386     *
2387     * @note On focus cycle, only will be evaluated children of this container.
2388     *
2389     * @param obj The container object
2390     * @param child The child to be added in custom chain
2391     * @param relative_child The relative object to position the child
2392     * @ingroup Focus
2393     */
2394    EAPI void             elm_object_focus_custom_chain_prepend(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2395
2396    /**
2397     * Give focus to next object in object tree.
2398     *
2399     * Give focus to next object in focus chain of one object sub-tree.
2400     * If the last object of chain already have focus, the focus will go to the
2401     * first object of chain.
2402     *
2403     * @param obj The object root of sub-tree
2404     * @param dir Direction to cycle the focus
2405     *
2406     * @ingroup Focus
2407     */
2408    EAPI void             elm_object_focus_cycle(Evas_Object *obj, Elm_Focus_Direction dir) EINA_ARG_NONNULL(1);
2409
2410    /**
2411     * Give focus to near object in one direction.
2412     *
2413     * Give focus to near object in direction of one object.
2414     * If none focusable object in given direction, the focus will not change.
2415     *
2416     * @param obj The reference object
2417     * @param x Horizontal component of direction to focus
2418     * @param y Vertical component of direction to focus
2419     *
2420     * @ingroup Focus
2421     */
2422    EAPI void             elm_object_focus_direction_go(Evas_Object *obj, int x, int y) EINA_ARG_NONNULL(1);
2423
2424    /**
2425     * Make the elementary object and its children to be unfocusable
2426     * (or focusable).
2427     *
2428     * @param obj The Elementary object to operate on
2429     * @param tree_unfocusable @c EINA_TRUE for unfocusable,
2430     *        @c EINA_FALSE for focusable.
2431     *
2432     * This sets whether the object @p obj and its children objects
2433     * are able to take focus or not. If the tree is set as unfocusable,
2434     * newest focused object which is not in this tree will get focus.
2435     * This API can be helpful for an object to be deleted.
2436     * When an object will be deleted soon, it and its children may not
2437     * want to get focus (by focus reverting or by other focus controls).
2438     * Then, just use this API before deleting.
2439     *
2440     * @see elm_object_tree_unfocusable_get()
2441     *
2442     * @ingroup Focus
2443     */
2444    EAPI void             elm_object_tree_unfocusable_set(Evas_Object *obj, Eina_Bool tree_unfocusable); EINA_ARG_NONNULL(1);
2445
2446    /**
2447     * Get whether an Elementary object and its children are unfocusable or not.
2448     *
2449     * @param obj The Elementary object to get the information from
2450     * @return @c EINA_TRUE, if the tree is unfocussable,
2451     *         @c EINA_FALSE if not (and on errors).
2452     *
2453     * @see elm_object_tree_unfocusable_set()
2454     *
2455     * @ingroup Focus
2456     */
2457    EAPI Eina_Bool        elm_object_tree_unfocusable_get(const Evas_Object *obj); EINA_ARG_NONNULL(1);
2458
2459    /**
2460     * @defgroup Scrolling Scrolling
2461     *
2462     * These are functions setting how scrollable views in Elementary
2463     * widgets should behave on user interaction.
2464     *
2465     * @{
2466     */
2467
2468    /**
2469     * Get whether scrollers should bounce when they reach their
2470     * viewport's edge during a scroll.
2471     *
2472     * @return the thumb scroll bouncing state
2473     *
2474     * This is the default behavior for touch screens, in general.
2475     * @ingroup Scrolling
2476     */
2477    EAPI Eina_Bool        elm_scroll_bounce_enabled_get(void);
2478
2479    /**
2480     * Set whether scrollers should bounce when they reach their
2481     * viewport's edge during a scroll.
2482     *
2483     * @param enabled the thumb scroll bouncing state
2484     *
2485     * @see elm_thumbscroll_bounce_enabled_get()
2486     * @ingroup Scrolling
2487     */
2488    EAPI void             elm_scroll_bounce_enabled_set(Eina_Bool enabled);
2489
2490    /**
2491     * Set whether scrollers should bounce when they reach their
2492     * viewport's edge during a scroll, for all Elementary application
2493     * windows.
2494     *
2495     * @param enabled the thumb scroll bouncing state
2496     *
2497     * @see elm_thumbscroll_bounce_enabled_get()
2498     * @ingroup Scrolling
2499     */
2500    EAPI void             elm_scroll_bounce_enabled_all_set(Eina_Bool enabled);
2501
2502    /**
2503     * Get the amount of inertia a scroller will impose at bounce
2504     * animations.
2505     *
2506     * @return the thumb scroll bounce friction
2507     *
2508     * @ingroup Scrolling
2509     */
2510    EAPI double           elm_scroll_bounce_friction_get(void);
2511
2512    /**
2513     * Set the amount of inertia a scroller will impose at bounce
2514     * animations.
2515     *
2516     * @param friction the thumb scroll bounce friction
2517     *
2518     * @see elm_thumbscroll_bounce_friction_get()
2519     * @ingroup Scrolling
2520     */
2521    EAPI void             elm_scroll_bounce_friction_set(double friction);
2522
2523    /**
2524     * Set the amount of inertia a scroller will impose at bounce
2525     * animations, for all Elementary application windows.
2526     *
2527     * @param friction the thumb scroll bounce friction
2528     *
2529     * @see elm_thumbscroll_bounce_friction_get()
2530     * @ingroup Scrolling
2531     */
2532    EAPI void             elm_scroll_bounce_friction_all_set(double friction);
2533
2534    /**
2535     * Get the amount of inertia a <b>paged</b> scroller will impose at
2536     * page fitting animations.
2537     *
2538     * @return the page scroll friction
2539     *
2540     * @ingroup Scrolling
2541     */
2542    EAPI double           elm_scroll_page_scroll_friction_get(void);
2543
2544    /**
2545     * Set the amount of inertia a <b>paged</b> scroller will impose at
2546     * page fitting animations.
2547     *
2548     * @param friction the page scroll friction
2549     *
2550     * @see elm_thumbscroll_page_scroll_friction_get()
2551     * @ingroup Scrolling
2552     */
2553    EAPI void             elm_scroll_page_scroll_friction_set(double friction);
2554
2555    /**
2556     * Set the amount of inertia a <b>paged</b> scroller will impose at
2557     * page fitting animations, for all Elementary application windows.
2558     *
2559     * @param friction the page scroll friction
2560     *
2561     * @see elm_thumbscroll_page_scroll_friction_get()
2562     * @ingroup Scrolling
2563     */
2564    EAPI void             elm_scroll_page_scroll_friction_all_set(double friction);
2565
2566    /**
2567     * Get the amount of inertia a scroller will impose at region bring
2568     * animations.
2569     *
2570     * @return the bring in scroll friction
2571     *
2572     * @ingroup Scrolling
2573     */
2574    EAPI double           elm_scroll_bring_in_scroll_friction_get(void);
2575
2576    /**
2577     * Set the amount of inertia a scroller will impose at region bring
2578     * animations.
2579     *
2580     * @param friction the bring in scroll friction
2581     *
2582     * @see elm_thumbscroll_bring_in_scroll_friction_get()
2583     * @ingroup Scrolling
2584     */
2585    EAPI void             elm_scroll_bring_in_scroll_friction_set(double friction);
2586
2587    /**
2588     * Set the amount of inertia a scroller will impose at region bring
2589     * animations, for all Elementary application windows.
2590     *
2591     * @param friction the bring in scroll friction
2592     *
2593     * @see elm_thumbscroll_bring_in_scroll_friction_get()
2594     * @ingroup Scrolling
2595     */
2596    EAPI void             elm_scroll_bring_in_scroll_friction_all_set(double friction);
2597
2598    /**
2599     * Get the amount of inertia scrollers will impose at animations
2600     * triggered by Elementary widgets' zooming API.
2601     *
2602     * @return the zoom friction
2603     *
2604     * @ingroup Scrolling
2605     */
2606    EAPI double           elm_scroll_zoom_friction_get(void);
2607
2608    /**
2609     * Set the amount of inertia scrollers will impose at animations
2610     * triggered by Elementary widgets' zooming API.
2611     *
2612     * @param friction the zoom friction
2613     *
2614     * @see elm_thumbscroll_zoom_friction_get()
2615     * @ingroup Scrolling
2616     */
2617    EAPI void             elm_scroll_zoom_friction_set(double friction);
2618
2619    /**
2620     * Set the amount of inertia scrollers will impose at animations
2621     * triggered by Elementary widgets' zooming API, for all Elementary
2622     * application windows.
2623     *
2624     * @param friction the zoom friction
2625     *
2626     * @see elm_thumbscroll_zoom_friction_get()
2627     * @ingroup Scrolling
2628     */
2629    EAPI void             elm_scroll_zoom_friction_all_set(double friction);
2630
2631    /**
2632     * Get whether scrollers should be draggable from any point in their
2633     * views.
2634     *
2635     * @return the thumb scroll state
2636     *
2637     * @note This is the default behavior for touch screens, in general.
2638     * @note All other functions namespaced with "thumbscroll" will only
2639     *       have effect if this mode is enabled.
2640     *
2641     * @ingroup Scrolling
2642     */
2643    EAPI Eina_Bool        elm_scroll_thumbscroll_enabled_get(void);
2644
2645    /**
2646     * Set whether scrollers should be draggable from any point in their
2647     * views.
2648     *
2649     * @param enabled the thumb scroll state
2650     *
2651     * @see elm_thumbscroll_enabled_get()
2652     * @ingroup Scrolling
2653     */
2654    EAPI void             elm_scroll_thumbscroll_enabled_set(Eina_Bool enabled);
2655
2656    /**
2657     * Set whether scrollers should be draggable from any point in their
2658     * views, for all Elementary application windows.
2659     *
2660     * @param enabled the thumb scroll state
2661     *
2662     * @see elm_thumbscroll_enabled_get()
2663     * @ingroup Scrolling
2664     */
2665    EAPI void             elm_scroll_thumbscroll_enabled_all_set(Eina_Bool enabled);
2666
2667    /**
2668     * Get the number of pixels one should travel while dragging a
2669     * scroller's view to actually trigger scrolling.
2670     *
2671     * @return the thumb scroll threshould
2672     *
2673     * One would use higher values for touch screens, in general, because
2674     * of their inherent imprecision.
2675     * @ingroup Scrolling
2676     */
2677    EAPI unsigned int     elm_scroll_thumbscroll_threshold_get(void);
2678
2679    /**
2680     * Set the number of pixels one should travel while dragging a
2681     * scroller's view to actually trigger scrolling.
2682     *
2683     * @param threshold the thumb scroll threshould
2684     *
2685     * @see elm_thumbscroll_threshould_get()
2686     * @ingroup Scrolling
2687     */
2688    EAPI void             elm_scroll_thumbscroll_threshold_set(unsigned int threshold);
2689
2690    /**
2691     * Set the number of pixels one should travel while dragging a
2692     * scroller's view to actually trigger scrolling, for all Elementary
2693     * application windows.
2694     *
2695     * @param threshold the thumb scroll threshould
2696     *
2697     * @see elm_thumbscroll_threshould_get()
2698     * @ingroup Scrolling
2699     */
2700    EAPI void             elm_scroll_thumbscroll_threshold_all_set(unsigned int threshold);
2701
2702    /**
2703     * Get the minimum speed of mouse cursor movement which will trigger
2704     * list self scrolling animation after a mouse up event
2705     * (pixels/second).
2706     *
2707     * @return the thumb scroll momentum threshould
2708     *
2709     * @ingroup Scrolling
2710     */
2711    EAPI double           elm_scroll_thumbscroll_momentum_threshold_get(void);
2712
2713    /**
2714     * Set the minimum speed of mouse cursor movement which will trigger
2715     * list self scrolling animation after a mouse up event
2716     * (pixels/second).
2717     *
2718     * @param threshold the thumb scroll momentum threshould
2719     *
2720     * @see elm_thumbscroll_momentum_threshould_get()
2721     * @ingroup Scrolling
2722     */
2723    EAPI void             elm_scroll_thumbscroll_momentum_threshold_set(double threshold);
2724
2725    /**
2726     * Set the minimum speed of mouse cursor movement which will trigger
2727     * list self scrolling animation after a mouse up event
2728     * (pixels/second), for all Elementary application windows.
2729     *
2730     * @param threshold the thumb scroll momentum threshould
2731     *
2732     * @see elm_thumbscroll_momentum_threshould_get()
2733     * @ingroup Scrolling
2734     */
2735    EAPI void             elm_scroll_thumbscroll_momentum_threshold_all_set(double threshold);
2736
2737    /**
2738     * Get the amount of inertia a scroller will impose at self scrolling
2739     * animations.
2740     *
2741     * @return the thumb scroll friction
2742     *
2743     * @ingroup Scrolling
2744     */
2745    EAPI double           elm_scroll_thumbscroll_friction_get(void);
2746
2747    /**
2748     * Set the amount of inertia a scroller will impose at self scrolling
2749     * animations.
2750     *
2751     * @param friction the thumb scroll friction
2752     *
2753     * @see elm_thumbscroll_friction_get()
2754     * @ingroup Scrolling
2755     */
2756    EAPI void             elm_scroll_thumbscroll_friction_set(double friction);
2757
2758    /**
2759     * Set the amount of inertia a scroller will impose at self scrolling
2760     * animations, for all Elementary application windows.
2761     *
2762     * @param friction the thumb scroll friction
2763     *
2764     * @see elm_thumbscroll_friction_get()
2765     * @ingroup Scrolling
2766     */
2767    EAPI void             elm_scroll_thumbscroll_friction_all_set(double friction);
2768
2769    /**
2770     * Get the amount of lag between your actual mouse cursor dragging
2771     * movement and a scroller's view movement itself, while pushing it
2772     * into bounce state manually.
2773     *
2774     * @return the thumb scroll border friction
2775     *
2776     * @ingroup Scrolling
2777     */
2778    EAPI double           elm_scroll_thumbscroll_border_friction_get(void);
2779
2780    /**
2781     * Set the amount of lag between your actual mouse cursor dragging
2782     * movement and a scroller's view movement itself, while pushing it
2783     * into bounce state manually.
2784     *
2785     * @param friction the thumb scroll border friction. @c 0.0 for
2786     *        perfect synchrony between two movements, @c 1.0 for maximum
2787     *        lag.
2788     *
2789     * @see elm_thumbscroll_border_friction_get()
2790     * @note parameter value will get bound to 0.0 - 1.0 interval, always
2791     *
2792     * @ingroup Scrolling
2793     */
2794    EAPI void             elm_scroll_thumbscroll_border_friction_set(double friction);
2795
2796    /**
2797     * Set the amount of lag between your actual mouse cursor dragging
2798     * movement and a scroller's view movement itself, while pushing it
2799     * into bounce state manually, for all Elementary application windows.
2800     *
2801     * @param friction the thumb scroll border friction. @c 0.0 for
2802     *        perfect synchrony between two movements, @c 1.0 for maximum
2803     *        lag.
2804     *
2805     * @see elm_thumbscroll_border_friction_get()
2806     * @note parameter value will get bound to 0.0 - 1.0 interval, always
2807     *
2808     * @ingroup Scrolling
2809     */
2810    EAPI void             elm_scroll_thumbscroll_border_friction_all_set(double friction);
2811
2812    /**
2813     * @}
2814     */
2815
2816    /**
2817     * @defgroup Scrollhints Scrollhints
2818     *
2819     * Objects when inside a scroller can scroll, but this may not always be
2820     * desirable in certain situations. This allows an object to hint to itself
2821     * and parents to "not scroll" in one of 2 ways. If any child object of a
2822     * scroller has pushed a scroll freeze or hold then it affects all parent
2823     * scrollers until all children have released them.
2824     *
2825     * 1. To hold on scrolling. This means just flicking and dragging may no
2826     * longer scroll, but pressing/dragging near an edge of the scroller will
2827     * still scroll. This is automatically used by the entry object when
2828     * selecting text.
2829     *
2830     * 2. To totally freeze scrolling. This means it stops. until
2831     * popped/released.
2832     *
2833     * @{
2834     */
2835
2836    /**
2837     * Push the scroll hold by 1
2838     *
2839     * This increments the scroll hold count by one. If it is more than 0 it will
2840     * take effect on the parents of the indicated object.
2841     *
2842     * @param obj The object
2843     * @ingroup Scrollhints
2844     */
2845    EAPI void             elm_object_scroll_hold_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
2846
2847    /**
2848     * Pop the scroll hold by 1
2849     *
2850     * This decrements the scroll hold count by one. If it is more than 0 it will
2851     * take effect on the parents of the indicated object.
2852     *
2853     * @param obj The object
2854     * @ingroup Scrollhints
2855     */
2856    EAPI void             elm_object_scroll_hold_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
2857
2858    /**
2859     * Push the scroll freeze by 1
2860     *
2861     * This increments the scroll freeze count by one. If it is more
2862     * than 0 it will take effect on the parents of the indicated
2863     * object.
2864     *
2865     * @param obj The object
2866     * @ingroup Scrollhints
2867     */
2868    EAPI void             elm_object_scroll_freeze_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
2869
2870    /**
2871     * Pop the scroll freeze by 1
2872     *
2873     * This decrements the scroll freeze count by one. If it is more
2874     * than 0 it will take effect on the parents of the indicated
2875     * object.
2876     *
2877     * @param obj The object
2878     * @ingroup Scrollhints
2879     */
2880    EAPI void             elm_object_scroll_freeze_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
2881
2882    /**
2883     * Lock the scrolling of the given widget (and thus all parents)
2884     *
2885     * This locks the given object from scrolling in the X axis (and implicitly
2886     * also locks all parent scrollers too from doing the same).
2887     *
2888     * @param obj The object
2889     * @param lock The lock state (1 == locked, 0 == unlocked)
2890     * @ingroup Scrollhints
2891     */
2892    EAPI void             elm_object_scroll_lock_x_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
2893
2894    /**
2895     * Lock the scrolling of the given widget (and thus all parents)
2896     *
2897     * This locks the given object from scrolling in the Y axis (and implicitly
2898     * also locks all parent scrollers too from doing the same).
2899     *
2900     * @param obj The object
2901     * @param lock The lock state (1 == locked, 0 == unlocked)
2902     * @ingroup Scrollhints
2903     */
2904    EAPI void             elm_object_scroll_lock_y_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
2905
2906    /**
2907     * Get the scrolling lock of the given widget
2908     *
2909     * This gets the lock for X axis scrolling.
2910     *
2911     * @param obj The object
2912     * @ingroup Scrollhints
2913     */
2914    EAPI Eina_Bool        elm_object_scroll_lock_x_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2915
2916    /**
2917     * Get the scrolling lock of the given widget
2918     *
2919     * This gets the lock for X axis scrolling.
2920     *
2921     * @param obj The object
2922     * @ingroup Scrollhints
2923     */
2924    EAPI Eina_Bool        elm_object_scroll_lock_y_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2925
2926    /**
2927     * @}
2928     */
2929
2930    /**
2931     * Send a signal to the widget edje object.
2932     *
2933     * This function sends a signal to the edje object of the obj. An
2934     * edje program can respond to a signal by specifying matching
2935     * 'signal' and 'source' fields.
2936     *
2937     * @param obj The object
2938     * @param emission The signal's name.
2939     * @param source The signal's source.
2940     * @ingroup General
2941     */
2942    EAPI void             elm_object_signal_emit(Evas_Object *obj, const char *emission, const char *source) EINA_ARG_NONNULL(1);
2943
2944    /**
2945     * Add a callback for a signal emitted by widget edje object.
2946     *
2947     * This function connects a callback function to a signal emitted by the
2948     * edje object of the obj.
2949     * Globs can occur in either the emission or source name.
2950     *
2951     * @param obj The object
2952     * @param emission The signal's name.
2953     * @param source The signal's source.
2954     * @param func The callback function to be executed when the signal is
2955     * emitted.
2956     * @param data A pointer to data to pass in to the callback function.
2957     * @ingroup General
2958     */
2959    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);
2960
2961    /**
2962     * Remove a signal-triggered callback from a widget edje object.
2963     *
2964     * This function removes a callback, previoulsy attached to a
2965     * signal emitted by the edje object of the obj.  The parameters
2966     * emission, source and func must match exactly those passed to a
2967     * previous call to elm_object_signal_callback_add(). The data
2968     * pointer that was passed to this call will be returned.
2969     *
2970     * @param obj The object
2971     * @param emission The signal's name.
2972     * @param source The signal's source.
2973     * @param func The callback function to be executed when the signal is
2974     * emitted.
2975     * @return The data pointer
2976     * @ingroup General
2977     */
2978    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);
2979
2980    /**
2981     * Add a callback for input events (key up, key down, mouse wheel)
2982     * on a given Elementary widget
2983     *
2984     * @param obj The widget to add an event callback on
2985     * @param func The callback function to be executed when the event
2986     * happens
2987     * @param data Data to pass in to @p func
2988     *
2989     * Every widget in an Elementary interface set to receive focus,
2990     * with elm_object_focus_allow_set(), will propagate @b all of its
2991     * key up, key down and mouse wheel input events up to its parent
2992     * object, and so on. All of the focusable ones in this chain which
2993     * had an event callback set, with this call, will be able to treat
2994     * those events. There are two ways of making the propagation of
2995     * these event upwards in the tree of widgets to @b cease:
2996     * - Just return @c EINA_TRUE on @p func. @c EINA_FALSE will mean
2997     *   the event was @b not processed, so the propagation will go on.
2998     * - The @c event_info pointer passed to @p func will contain the
2999     *   event's structure and, if you OR its @c event_flags inner
3000     *   value to @c EVAS_EVENT_FLAG_ON_HOLD, you're telling Elementary
3001     *   one has already handled it, thus killing the event's
3002     *   propagation, too.
3003     *
3004     * @note Your event callback will be issued on those events taking
3005     * place only if no other child widget of @obj has consumed the
3006     * event already.
3007     *
3008     * @note Not to be confused with @c
3009     * evas_object_event_callback_add(), which will add event callbacks
3010     * per type on general Evas objects (no event propagation
3011     * infrastructure taken in account).
3012     *
3013     * @note Not to be confused with @c
3014     * elm_object_signal_callback_add(), which will add callbacks to @b
3015     * signals coming from a widget's theme, not input events.
3016     *
3017     * @note Not to be confused with @c
3018     * edje_object_signal_callback_add(), which does the same as
3019     * elm_object_signal_callback_add(), but directly on an Edje
3020     * object.
3021     *
3022     * @note Not to be confused with @c
3023     * evas_object_smart_callback_add(), which adds callbacks to smart
3024     * objects' <b>smart events</b>, and not input events.
3025     *
3026     * @see elm_object_event_callback_del()
3027     *
3028     * @ingroup General
3029     */
3030    EAPI void             elm_object_event_callback_add(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
3031
3032    /**
3033     * Remove an event callback from a widget.
3034     *
3035     * This function removes a callback, previoulsy attached to event emission
3036     * by the @p obj.
3037     * The parameters func and data must match exactly those passed to
3038     * a previous call to elm_object_event_callback_add(). The data pointer that
3039     * was passed to this call will be returned.
3040     *
3041     * @param obj The object
3042     * @param func The callback function to be executed when the event is
3043     * emitted.
3044     * @param data Data to pass in to the callback function.
3045     * @return The data pointer
3046     * @ingroup General
3047     */
3048    EAPI void            *elm_object_event_callback_del(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
3049
3050    /**
3051     * Adjust size of an element for finger usage.
3052     *
3053     * @param times_w How many fingers should fit horizontally
3054     * @param w Pointer to the width size to adjust
3055     * @param times_h How many fingers should fit vertically
3056     * @param h Pointer to the height size to adjust
3057     *
3058     * This takes width and height sizes (in pixels) as input and a
3059     * size multiple (which is how many fingers you want to place
3060     * within the area, being "finger" the size set by
3061     * elm_finger_size_set()), and adjusts the size to be large enough
3062     * to accommodate the resulting size -- if it doesn't already
3063     * accommodate it. On return the @p w and @p h sizes pointed to by
3064     * these parameters will be modified, on those conditions.
3065     *
3066     * @note This is kind of a low level Elementary call, most useful
3067     * on size evaluation times for widgets. An external user wouldn't
3068     * be calling, most of the time.
3069     *
3070     * @ingroup Fingers
3071     */
3072    EAPI void             elm_coords_finger_size_adjust(int times_w, Evas_Coord *w, int times_h, Evas_Coord *h);
3073
3074    /**
3075     * Get the duration for occuring long press event.
3076     *
3077     * @return Timeout for long press event
3078     * @ingroup Longpress
3079     */
3080    EAPI double           elm_longpress_timeout_get(void);
3081
3082    /**
3083     * Set the duration for occuring long press event.
3084     *
3085     * @param lonpress_timeout Timeout for long press event
3086     * @ingroup Longpress
3087     */
3088    EAPI void             elm_longpress_timeout_set(double longpress_timeout);
3089
3090    /**
3091     * @defgroup Debug Debug
3092     * don't use it unless you are sure
3093     *
3094     * @{
3095     */
3096
3097    /**
3098     * Print Tree object hierarchy in stdout
3099     *
3100     * @param obj The root object
3101     * @ingroup Debug
3102     */
3103    EAPI void             elm_object_tree_dump(const Evas_Object *top);
3104
3105    /**
3106     * Print Elm Objects tree hierarchy in file as dot(graphviz) syntax.
3107     *
3108     * @param obj The root object
3109     * @param file The path of output file
3110     * @ingroup Debug
3111     */
3112    EAPI void             elm_object_tree_dot_dump(const Evas_Object *top, const char *file);
3113
3114    /**
3115     * @}
3116     */
3117
3118    /**
3119     * @defgroup Theme Theme
3120     *
3121     * Elementary uses Edje to theme its widgets, naturally. But for the most
3122     * part this is hidden behind a simpler interface that lets the user set
3123     * extensions and choose the style of widgets in a much easier way.
3124     *
3125     * Instead of thinking in terms of paths to Edje files and their groups
3126     * each time you want to change the appearance of a widget, Elementary
3127     * works so you can add any theme file with extensions or replace the
3128     * main theme at one point in the application, and then just set the style
3129     * of widgets with elm_object_style_set() and related functions. Elementary
3130     * will then look in its list of themes for a matching group and apply it,
3131     * and when the theme changes midway through the application, all widgets
3132     * will be updated accordingly.
3133     *
3134     * There are three concepts you need to know to understand how Elementary
3135     * theming works: default theme, extensions and overlays.
3136     *
3137     * Default theme, obviously enough, is the one that provides the default
3138     * look of all widgets. End users can change the theme used by Elementary
3139     * by setting the @c ELM_THEME environment variable before running an
3140     * application, or globally for all programs using the @c elementary_config
3141     * utility. Applications can change the default theme using elm_theme_set(),
3142     * but this can go against the user wishes, so it's not an adviced practice.
3143     *
3144     * Ideally, applications should find everything they need in the already
3145     * provided theme, but there may be occasions when that's not enough and
3146     * custom styles are required to correctly express the idea. For this
3147     * cases, Elementary has extensions.
3148     *
3149     * Extensions allow the application developer to write styles of its own
3150     * to apply to some widgets. This requires knowledge of how each widget
3151     * is themed, as extensions will always replace the entire group used by
3152     * the widget, so important signals and parts need to be there for the
3153     * object to behave properly (see documentation of Edje for details).
3154     * Once the theme for the extension is done, the application needs to add
3155     * it to the list of themes Elementary will look into, using
3156     * elm_theme_extension_add(), and set the style of the desired widgets as
3157     * he would normally with elm_object_style_set().
3158     *
3159     * Overlays, on the other hand, can replace the look of all widgets by
3160     * overriding the default style. Like extensions, it's up to the application
3161     * developer to write the theme for the widgets it wants, the difference
3162     * being that when looking for the theme, Elementary will check first the
3163     * list of overlays, then the set theme and lastly the list of extensions,
3164     * so with overlays it's possible to replace the default view and every
3165     * widget will be affected. This is very much alike to setting the whole
3166     * theme for the application and will probably clash with the end user
3167     * options, not to mention the risk of ending up with not matching styles
3168     * across the program. Unless there's a very special reason to use them,
3169     * overlays should be avoided for the resons exposed before.
3170     *
3171     * All these theme lists are handled by ::Elm_Theme instances. Elementary
3172     * keeps one default internally and every function that receives one of
3173     * these can be called with NULL to refer to this default (except for
3174     * elm_theme_free()). It's possible to create a new instance of a
3175     * ::Elm_Theme to set other theme for a specific widget (and all of its
3176     * children), but this is as discouraged, if not even more so, than using
3177     * overlays. Don't use this unless you really know what you are doing.
3178     *
3179     * But to be less negative about things, you can look at the following
3180     * examples:
3181     * @li @ref theme_example_01 "Using extensions"
3182     * @li @ref theme_example_02 "Using overlays"
3183     *
3184     * @{
3185     */
3186    /**
3187     * @typedef Elm_Theme
3188     *
3189     * Opaque handler for the list of themes Elementary looks for when
3190     * rendering widgets.
3191     *
3192     * Stay out of this unless you really know what you are doing. For most
3193     * cases, sticking to the default is all a developer needs.
3194     */
3195    typedef struct _Elm_Theme Elm_Theme;
3196
3197    /**
3198     * Create a new specific theme
3199     *
3200     * This creates an empty specific theme that only uses the default theme. A
3201     * specific theme has its own private set of extensions and overlays too
3202     * (which are empty by default). Specific themes do not fall back to themes
3203     * of parent objects. They are not intended for this use. Use styles, overlays
3204     * and extensions when needed, but avoid specific themes unless there is no
3205     * other way (example: you want to have a preview of a new theme you are
3206     * selecting in a "theme selector" window. The preview is inside a scroller
3207     * and should display what the theme you selected will look like, but not
3208     * actually apply it yet. The child of the scroller will have a specific
3209     * theme set to show this preview before the user decides to apply it to all
3210     * applications).
3211     */
3212    EAPI Elm_Theme       *elm_theme_new(void);
3213    /**
3214     * Free a specific theme
3215     *
3216     * @param th The theme to free
3217     *
3218     * This frees a theme created with elm_theme_new().
3219     */
3220    EAPI void             elm_theme_free(Elm_Theme *th);
3221    /**
3222     * Copy the theme fom the source to the destination theme
3223     *
3224     * @param th The source theme to copy from
3225     * @param thdst The destination theme to copy data to
3226     *
3227     * This makes a one-time static copy of all the theme config, extensions
3228     * and overlays from @p th to @p thdst. If @p th references a theme, then
3229     * @p thdst is also set to reference it, with all the theme settings,
3230     * overlays and extensions that @p th had.
3231     */
3232    EAPI void             elm_theme_copy(Elm_Theme *th, Elm_Theme *thdst);
3233    /**
3234     * Tell the source theme to reference the ref theme
3235     *
3236     * @param th The theme that will do the referencing
3237     * @param thref The theme that is the reference source
3238     *
3239     * This clears @p th to be empty and then sets it to refer to @p thref
3240     * so @p th acts as an override to @p thref, but where its overrides
3241     * don't apply, it will fall through to @p thref for configuration.
3242     */
3243    EAPI void             elm_theme_ref_set(Elm_Theme *th, Elm_Theme *thref);
3244    /**
3245     * Return the theme referred to
3246     *
3247     * @param th The theme to get the reference from
3248     * @return The referenced theme handle
3249     *
3250     * This gets the theme set as the reference theme by elm_theme_ref_set().
3251     * If no theme is set as a reference, NULL is returned.
3252     */
3253    EAPI Elm_Theme       *elm_theme_ref_get(Elm_Theme *th);
3254    /**
3255     * Return the default theme
3256     *
3257     * @return The default theme handle
3258     *
3259     * This returns the internal default theme setup handle that all widgets
3260     * use implicitly unless a specific theme is set. This is also often use
3261     * as a shorthand of NULL.
3262     */
3263    EAPI Elm_Theme       *elm_theme_default_get(void);
3264    /**
3265     * Prepends a theme overlay to the list of overlays
3266     *
3267     * @param th The theme to add to, or if NULL, the default theme
3268     * @param item The Edje file path to be used
3269     *
3270     * Use this if your application needs to provide some custom overlay theme
3271     * (An Edje file that replaces some default styles of widgets) where adding
3272     * new styles, or changing system theme configuration is not possible. Do
3273     * NOT use this instead of a proper system theme configuration. Use proper
3274     * configuration files, profiles, environment variables etc. to set a theme
3275     * so that the theme can be altered by simple confiugration by a user. Using
3276     * this call to achieve that effect is abusing the API and will create lots
3277     * of trouble.
3278     *
3279     * @see elm_theme_extension_add()
3280     */
3281    EAPI void             elm_theme_overlay_add(Elm_Theme *th, const char *item);
3282    /**
3283     * Delete a theme overlay from the list of overlays
3284     *
3285     * @param th The theme to delete from, or if NULL, the default theme
3286     * @param item The name of the theme overlay
3287     *
3288     * @see elm_theme_overlay_add()
3289     */
3290    EAPI void             elm_theme_overlay_del(Elm_Theme *th, const char *item);
3291    /**
3292     * Appends a theme extension to the list of extensions.
3293     *
3294     * @param th The theme to add to, or if NULL, the default theme
3295     * @param item The Edje file path to be used
3296     *
3297     * This is intended when an application needs more styles of widgets or new
3298     * widget themes that the default does not provide (or may not provide). The
3299     * application has "extended" usage by coming up with new custom style names
3300     * for widgets for specific uses, but as these are not "standard", they are
3301     * not guaranteed to be provided by a default theme. This means the
3302     * application is required to provide these extra elements itself in specific
3303     * Edje files. This call adds one of those Edje files to the theme search
3304     * path to be search after the default theme. The use of this call is
3305     * encouraged when default styles do not meet the needs of the application.
3306     * Use this call instead of elm_theme_overlay_add() for almost all cases.
3307     *
3308     * @see elm_object_style_set()
3309     */
3310    EAPI void             elm_theme_extension_add(Elm_Theme *th, const char *item);
3311    /**
3312     * Deletes a theme extension from the list of extensions.
3313     *
3314     * @param th The theme to delete from, or if NULL, the default theme
3315     * @param item The name of the theme extension
3316     *
3317     * @see elm_theme_extension_add()
3318     */
3319    EAPI void             elm_theme_extension_del(Elm_Theme *th, const char *item);
3320    /**
3321     * Set the theme search order for the given theme
3322     *
3323     * @param th The theme to set the search order, or if NULL, the default theme
3324     * @param theme Theme search string
3325     *
3326     * This sets the search string for the theme in path-notation from first
3327     * theme to search, to last, delimited by the : character. Example:
3328     *
3329     * "shiny:/path/to/file.edj:default"
3330     *
3331     * See the ELM_THEME environment variable for more information.
3332     *
3333     * @see elm_theme_get()
3334     * @see elm_theme_list_get()
3335     */
3336    EAPI void             elm_theme_set(Elm_Theme *th, const char *theme);
3337    /**
3338     * Return the theme search order
3339     *
3340     * @param th The theme to get the search order, or if NULL, the default theme
3341     * @return The internal search order path
3342     *
3343     * This function returns a colon separated string of theme elements as
3344     * returned by elm_theme_list_get().
3345     *
3346     * @see elm_theme_set()
3347     * @see elm_theme_list_get()
3348     */
3349    EAPI const char      *elm_theme_get(Elm_Theme *th);
3350    /**
3351     * Return a list of theme elements to be used in a theme.
3352     *
3353     * @param th Theme to get the list of theme elements from.
3354     * @return The internal list of theme elements
3355     *
3356     * This returns the internal list of theme elements (will only be valid as
3357     * long as the theme is not modified by elm_theme_set() or theme is not
3358     * freed by elm_theme_free(). This is a list of strings which must not be
3359     * altered as they are also internal. If @p th is NULL, then the default
3360     * theme element list is returned.
3361     *
3362     * A theme element can consist of a full or relative path to a .edj file,
3363     * or a name, without extension, for a theme to be searched in the known
3364     * theme paths for Elemementary.
3365     *
3366     * @see elm_theme_set()
3367     * @see elm_theme_get()
3368     */
3369    EAPI const Eina_List *elm_theme_list_get(const Elm_Theme *th);
3370    /**
3371     * Return the full patrh for a theme element
3372     *
3373     * @param f The theme element name
3374     * @param in_search_path Pointer to a boolean to indicate if item is in the search path or not
3375     * @return The full path to the file found.
3376     *
3377     * This returns a string you should free with free() on success, NULL on
3378     * failure. This will search for the given theme element, and if it is a
3379     * full or relative path element or a simple searchable name. The returned
3380     * path is the full path to the file, if searched, and the file exists, or it
3381     * is simply the full path given in the element or a resolved path if
3382     * relative to home. The @p in_search_path boolean pointed to is set to
3383     * EINA_TRUE if the file was a searchable file andis in the search path,
3384     * and EINA_FALSE otherwise.
3385     */
3386    EAPI char            *elm_theme_list_item_path_get(const char *f, Eina_Bool *in_search_path);
3387    /**
3388     * Flush the current theme.
3389     *
3390     * @param th Theme to flush
3391     *
3392     * This flushes caches that let elementary know where to find theme elements
3393     * in the given theme. If @p th is NULL, then the default theme is flushed.
3394     * Call this function if source theme data has changed in such a way as to
3395     * make any caches Elementary kept invalid.
3396     */
3397    EAPI void             elm_theme_flush(Elm_Theme *th);
3398    /**
3399     * This flushes all themes (default and specific ones).
3400     *
3401     * This will flush all themes in the current application context, by calling
3402     * elm_theme_flush() on each of them.
3403     */
3404    EAPI void             elm_theme_full_flush(void);
3405    /**
3406     * Set the theme for all elementary using applications on the current display
3407     *
3408     * @param theme The name of the theme to use. Format same as the ELM_THEME
3409     * environment variable.
3410     */
3411    EAPI void             elm_theme_all_set(const char *theme);
3412    /**
3413     * Return a list of theme elements in the theme search path
3414     *
3415     * @return A list of strings that are the theme element names.
3416     *
3417     * This lists all available theme files in the standard Elementary search path
3418     * for theme elements, and returns them in alphabetical order as theme
3419     * element names in a list of strings. Free this with
3420     * elm_theme_name_available_list_free() when you are done with the list.
3421     */
3422    EAPI Eina_List       *elm_theme_name_available_list_new(void);
3423    /**
3424     * Free the list returned by elm_theme_name_available_list_new()
3425     *
3426     * This frees the list of themes returned by
3427     * elm_theme_name_available_list_new(). Once freed the list should no longer
3428     * be used. a new list mys be created.
3429     */
3430    EAPI void             elm_theme_name_available_list_free(Eina_List *list);
3431    /**
3432     * Set a specific theme to be used for this object and its children
3433     *
3434     * @param obj The object to set the theme on
3435     * @param th The theme to set
3436     *
3437     * This sets a specific theme that will be used for the given object and any
3438     * child objects it has. If @p th is NULL then the theme to be used is
3439     * cleared and the object will inherit its theme from its parent (which
3440     * ultimately will use the default theme if no specific themes are set).
3441     *
3442     * Use special themes with great care as this will annoy users and make
3443     * configuration difficult. Avoid any custom themes at all if it can be
3444     * helped.
3445     */
3446    EAPI void             elm_object_theme_set(Evas_Object *obj, Elm_Theme *th) EINA_ARG_NONNULL(1);
3447    /**
3448     * Get the specific theme to be used
3449     *
3450     * @param obj The object to get the specific theme from
3451     * @return The specifc theme set.
3452     *
3453     * This will return a specific theme set, or NULL if no specific theme is
3454     * set on that object. It will not return inherited themes from parents, only
3455     * the specific theme set for that specific object. See elm_object_theme_set()
3456     * for more information.
3457     */
3458    EAPI Elm_Theme       *elm_object_theme_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3459
3460    /**
3461     * Get a data item from a theme
3462     *
3463     * @param th The theme, or NULL for default theme
3464     * @param key The data key to search with
3465     * @return The data value, or NULL on failure
3466     *
3467     * This function is used to return data items from edc in @p th, an overlay, or an extension.
3468     * It works the same way as edje_file_data_get() except that the return is stringshared.
3469     */
3470    EAPI const char      *elm_theme_data_get(Elm_Theme *th, const char *key) EINA_ARG_NONNULL(2);
3471    /**
3472     * @}
3473     */
3474
3475    /* win */
3476    /** @defgroup Win Win
3477     *
3478     * @image html img/widget/win/preview-00.png
3479     * @image latex img/widget/win/preview-00.eps
3480     *
3481     * The window class of Elementary.  Contains functions to manipulate
3482     * windows. The Evas engine used to render the window contents is specified
3483     * in the system or user elementary config files (whichever is found last),
3484     * and can be overridden with the ELM_ENGINE environment variable for
3485     * testing.  Engines that may be supported (depending on Evas and Ecore-Evas
3486     * compilation setup and modules actually installed at runtime) are (listed
3487     * in order of best supported and most likely to be complete and work to
3488     * lowest quality).
3489     *
3490     * @li "x11", "x", "software-x11", "software_x11" (Software rendering in X11)
3491     * @li "gl", "opengl", "opengl-x11", "opengl_x11" (OpenGL or OpenGL-ES2
3492     * rendering in X11)
3493     * @li "shot:..." (Virtual screenshot renderer - renders to output file and
3494     * exits)
3495     * @li "fb", "software-fb", "software_fb" (Linux framebuffer direct software
3496     * rendering)
3497     * @li "sdl", "software-sdl", "software_sdl" (SDL software rendering to SDL
3498     * buffer)
3499     * @li "gl-sdl", "gl_sdl", "opengl-sdl", "opengl_sdl" (OpenGL or OpenGL-ES2
3500     * rendering using SDL as the buffer)
3501     * @li "gdi", "software-gdi", "software_gdi" (Windows WIN32 rendering via
3502     * GDI with software)
3503     * @li "dfb", "directfb" (Rendering to a DirectFB window)
3504     * @li "x11-8", "x8", "software-8-x11", "software_8_x11" (Rendering in
3505     * grayscale using dedicated 8bit software engine in X11)
3506     * @li "x11-16", "x16", "software-16-x11", "software_16_x11" (Rendering in
3507     * X11 using 16bit software engine)
3508     * @li "wince-gdi", "software-16-wince-gdi", "software_16_wince_gdi"
3509     * (Windows CE rendering via GDI with 16bit software renderer)
3510     * @li "sdl-16", "software-16-sdl", "software_16_sdl" (Rendering to SDL
3511     * buffer with 16bit software renderer)
3512     *
3513     * All engines use a simple string to select the engine to render, EXCEPT
3514     * the "shot" engine. This actually encodes the output of the virtual
3515     * screenshot and how long to delay in the engine string. The engine string
3516     * is encoded in the following way:
3517     *
3518     *   "shot:[delay=XX][:][repeat=DDD][:][file=XX]"
3519     *
3520     * Where options are separated by a ":" char if more than one option is
3521     * given, with delay, if provided being the first option and file the last
3522     * (order is important). The delay specifies how long to wait after the
3523     * window is shown before doing the virtual "in memory" rendering and then
3524     * save the output to the file specified by the file option (and then exit).
3525     * If no delay is given, the default is 0.5 seconds. If no file is given the
3526     * default output file is "out.png". Repeat option is for continous
3527     * capturing screenshots. Repeat range is from 1 to 999 and filename is
3528     * fixed to "out001.png" Some examples of using the shot engine:
3529     *
3530     *   ELM_ENGINE="shot:delay=1.0:repeat=5:file=elm_test.png" elementary_test
3531     *   ELM_ENGINE="shot:delay=1.0:file=elm_test.png" elementary_test
3532     *   ELM_ENGINE="shot:file=elm_test2.png" elementary_test
3533     *   ELM_ENGINE="shot:delay=2.0" elementary_test
3534     *   ELM_ENGINE="shot:" elementary_test
3535     *
3536     * Signals that you can add callbacks for are:
3537     *
3538     * @li "delete,request": the user requested to close the window. See
3539     * elm_win_autodel_set().
3540     * @li "focus,in": window got focus
3541     * @li "focus,out": window lost focus
3542     * @li "moved": window that holds the canvas was moved
3543     *
3544     * Examples:
3545     * @li @ref win_example_01
3546     *
3547     * @{
3548     */
3549    /**
3550     * Defines the types of window that can be created
3551     *
3552     * These are hints set on the window so that a running Window Manager knows
3553     * how the window should be handled and/or what kind of decorations it
3554     * should have.
3555     *
3556     * Currently, only the X11 backed engines use them.
3557     */
3558    typedef enum _Elm_Win_Type
3559      {
3560         ELM_WIN_BASIC, /**< A normal window. Indicates a normal, top-level
3561                          window. Almost every window will be created with this
3562                          type. */
3563         ELM_WIN_DIALOG_BASIC, /**< Used for simple dialog windows/ */
3564         ELM_WIN_DESKTOP, /**< For special desktop windows, like a background
3565                            window holding desktop icons. */
3566         ELM_WIN_DOCK, /**< The window is used as a dock or panel. Usually would
3567                         be kept on top of any other window by the Window
3568                         Manager. */
3569         ELM_WIN_TOOLBAR, /**< The window is used to hold a floating toolbar, or
3570                            similar. */
3571         ELM_WIN_MENU, /**< Similar to #ELM_WIN_TOOLBAR. */
3572         ELM_WIN_UTILITY, /**< A persistent utility window, like a toolbox or
3573                            pallete. */
3574         ELM_WIN_SPLASH, /**< Splash window for a starting up application. */
3575         ELM_WIN_DROPDOWN_MENU, /**< The window is a dropdown menu, as when an
3576                                  entry in a menubar is clicked. Typically used
3577                                  with elm_win_override_set(). This hint exists
3578                                  for completion only, as the EFL way of
3579                                  implementing a menu would not normally use a
3580                                  separate window for its contents. */
3581         ELM_WIN_POPUP_MENU, /**< Like #ELM_WIN_DROPDOWN_MENU, but for the menu
3582                               triggered by right-clicking an object. */
3583         ELM_WIN_TOOLTIP, /**< The window is a tooltip. A short piece of
3584                            explanatory text that typically appear after the
3585                            mouse cursor hovers over an object for a while.
3586                            Typically used with elm_win_override_set() and also
3587                            not very commonly used in the EFL. */
3588         ELM_WIN_NOTIFICATION, /**< A notification window, like a warning about
3589                                 battery life or a new E-Mail received. */
3590         ELM_WIN_COMBO, /**< A window holding the contents of a combo box. Not
3591                          usually used in the EFL. */
3592         ELM_WIN_DND, /**< Used to indicate the window is a representation of an
3593                        object being dragged across different windows, or even
3594                        applications. Typically used with
3595                        elm_win_override_set(). */
3596         ELM_WIN_INLINED_IMAGE, /**< The window is rendered onto an image
3597                                  buffer. No actual window is created for this
3598                                  type, instead the window and all of its
3599                                  contents will be rendered to an image buffer.
3600                                  This allows to have children window inside a
3601                                  parent one just like any other object would
3602                                  be, and do other things like applying @c
3603                                  Evas_Map effects to it. This is the only type
3604                                  of window that requires the @c parent
3605                                  parameter of elm_win_add() to be a valid @c
3606                                  Evas_Object. */
3607      } Elm_Win_Type;
3608
3609    /**
3610     * The differents layouts that can be requested for the virtual keyboard.
3611     *
3612     * When the application window is being managed by Illume, it may request
3613     * any of the following layouts for the virtual keyboard.
3614     */
3615    typedef enum _Elm_Win_Keyboard_Mode
3616      {
3617         ELM_WIN_KEYBOARD_UNKNOWN, /**< Unknown keyboard state */
3618         ELM_WIN_KEYBOARD_OFF, /**< Request to deactivate the keyboard */
3619         ELM_WIN_KEYBOARD_ON, /**< Enable keyboard with default layout */
3620         ELM_WIN_KEYBOARD_ALPHA, /**< Alpha (a-z) keyboard layout */
3621         ELM_WIN_KEYBOARD_NUMERIC, /**< Numeric keyboard layout */
3622         ELM_WIN_KEYBOARD_PIN, /**< PIN keyboard layout */
3623         ELM_WIN_KEYBOARD_PHONE_NUMBER, /**< Phone keyboard layout */
3624         ELM_WIN_KEYBOARD_HEX, /**< Hexadecimal numeric keyboard layout */
3625         ELM_WIN_KEYBOARD_TERMINAL, /**< Full (QUERTY) keyboard layout */
3626         ELM_WIN_KEYBOARD_PASSWORD, /**< Password keyboard layout */
3627         ELM_WIN_KEYBOARD_IP, /**< IP keyboard layout */
3628         ELM_WIN_KEYBOARD_HOST, /**< Host keyboard layout */
3629         ELM_WIN_KEYBOARD_FILE, /**< File keyboard layout */
3630         ELM_WIN_KEYBOARD_URL, /**< URL keyboard layout */
3631         ELM_WIN_KEYBOARD_KEYPAD, /**< Keypad layout */
3632         ELM_WIN_KEYBOARD_J2ME /**< J2ME keyboard layout */
3633      } Elm_Win_Keyboard_Mode;
3634
3635    /**
3636     * Available commands that can be sent to the Illume manager.
3637     *
3638     * When running under an Illume session, a window may send commands to the
3639     * Illume manager to perform different actions.
3640     */
3641    typedef enum _Elm_Illume_Command
3642      {
3643         ELM_ILLUME_COMMAND_FOCUS_BACK, /**< Reverts focus to the previous
3644                                          window */
3645         ELM_ILLUME_COMMAND_FOCUS_FORWARD, /**< Sends focus to the next window\
3646                                             in the list */
3647         ELM_ILLUME_COMMAND_FOCUS_HOME, /**< Hides all windows to show the Home
3648                                          screen */
3649         ELM_ILLUME_COMMAND_CLOSE /**< Closes the currently active window */
3650      } Elm_Illume_Command;
3651
3652    /**
3653     * Adds a window object. If this is the first window created, pass NULL as
3654     * @p parent.
3655     *
3656     * @param parent Parent object to add the window to, or NULL
3657     * @param name The name of the window
3658     * @param type The window type, one of #Elm_Win_Type.
3659     *
3660     * The @p parent paramter can be @c NULL for every window @p type except
3661     * #ELM_WIN_INLINED_IMAGE, which needs a parent to retrieve the canvas on
3662     * which the image object will be created.
3663     *
3664     * @return The created object, or NULL on failure
3665     */
3666    EAPI Evas_Object *elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type);
3667    /**
3668     * Add @p subobj as a resize object of window @p obj.
3669     *
3670     *
3671     * Setting an object as a resize object of the window means that the
3672     * @p subobj child's size and position will be controlled by the window
3673     * directly. That is, the object will be resized to match the window size
3674     * and should never be moved or resized manually by the developer.
3675     *
3676     * In addition, resize objects of the window control what the minimum size
3677     * of it will be, as well as whether it can or not be resized by the user.
3678     *
3679     * For the end user to be able to resize a window by dragging the handles
3680     * or borders provided by the Window Manager, or using any other similar
3681     * mechanism, all of the resize objects in the window should have their
3682     * evas_object_size_hint_weight_set() set to EVAS_HINT_EXPAND.
3683     *
3684     * @param obj The window object
3685     * @param subobj The resize object to add
3686     */
3687    EAPI void         elm_win_resize_object_add(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
3688    /**
3689     * Delete @p subobj as a resize object of window @p obj.
3690     *
3691     * This function removes the object @p subobj from the resize objects of
3692     * the window @p obj. It will not delete the object itself, which will be
3693     * left unmanaged and should be deleted by the developer, manually handled
3694     * or set as child of some other container.
3695     *
3696     * @param obj The window object
3697     * @param subobj The resize object to add
3698     */
3699    EAPI void         elm_win_resize_object_del(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
3700    /**
3701     * Set the title of the window
3702     *
3703     * @param obj The window object
3704     * @param title The title to set
3705     */
3706    EAPI void         elm_win_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
3707    /**
3708     * Get the title of the window
3709     *
3710     * The returned string is an internal one and should not be freed or
3711     * modified. It will also be rendered invalid if a new title is set or if
3712     * the window is destroyed.
3713     *
3714     * @param obj The window object
3715     * @return The title
3716     */
3717    EAPI const char  *elm_win_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3718    /**
3719     * Set the window's autodel state.
3720     *
3721     * When closing the window in any way outside of the program control, like
3722     * pressing the X button in the titlebar or using a command from the
3723     * Window Manager, a "delete,request" signal is emitted to indicate that
3724     * this event occurred and the developer can take any action, which may
3725     * include, or not, destroying the window object.
3726     *
3727     * When the @p autodel parameter is set, the window will be automatically
3728     * destroyed when this event occurs, after the signal is emitted.
3729     * If @p autodel is @c EINA_FALSE, then the window will not be destroyed
3730     * and is up to the program to do so when it's required.
3731     *
3732     * @param obj The window object
3733     * @param autodel If true, the window will automatically delete itself when
3734     * closed
3735     */
3736    EAPI void         elm_win_autodel_set(Evas_Object *obj, Eina_Bool autodel) EINA_ARG_NONNULL(1);
3737    /**
3738     * Get the window's autodel state.
3739     *
3740     * @param obj The window object
3741     * @return If the window will automatically delete itself when closed
3742     *
3743     * @see elm_win_autodel_set()
3744     */
3745    EAPI Eina_Bool    elm_win_autodel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3746    /**
3747     * Activate a window object.
3748     *
3749     * This function sends a request to the Window Manager to activate the
3750     * window pointed by @p obj. If honored by the WM, the window will receive
3751     * the keyboard focus.
3752     *
3753     * @note This is just a request that a Window Manager may ignore, so calling
3754     * this function does not ensure in any way that the window will be the
3755     * active one after it.
3756     *
3757     * @param obj The window object
3758     */
3759    EAPI void         elm_win_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
3760    /**
3761     * Lower a window object.
3762     *
3763     * Places the window pointed by @p obj at the bottom of the stack, so that
3764     * no other window is covered by it.
3765     *
3766     * If elm_win_override_set() is not set, the Window Manager may ignore this
3767     * request.
3768     *
3769     * @param obj The window object
3770     */
3771    EAPI void         elm_win_lower(Evas_Object *obj) EINA_ARG_NONNULL(1);
3772    /**
3773     * Raise a window object.
3774     *
3775     * Places the window pointed by @p obj at the top of the stack, so that it's
3776     * not covered by any other window.
3777     *
3778     * If elm_win_override_set() is not set, the Window Manager may ignore this
3779     * request.
3780     *
3781     * @param obj The window object
3782     */
3783    EAPI void         elm_win_raise(Evas_Object *obj) EINA_ARG_NONNULL(1);
3784    /**
3785     * Set the borderless state of a window.
3786     *
3787     * This function requests the Window Manager to not draw any decoration
3788     * around the window.
3789     *
3790     * @param obj The window object
3791     * @param borderless If true, the window is borderless
3792     */
3793    EAPI void         elm_win_borderless_set(Evas_Object *obj, Eina_Bool borderless) EINA_ARG_NONNULL(1);
3794    /**
3795     * Get the borderless state of a window.
3796     *
3797     * @param obj The window object
3798     * @return If true, the window is borderless
3799     */
3800    EAPI Eina_Bool    elm_win_borderless_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3801    /**
3802     * Set the shaped state of a window.
3803     *
3804     * Shaped windows, when supported, will render the parts of the window that
3805     * has no content, transparent.
3806     *
3807     * If @p shaped is EINA_FALSE, then it is strongly adviced to have some
3808     * background object or cover the entire window in any other way, or the
3809     * parts of the canvas that have no data will show framebuffer artifacts.
3810     *
3811     * @param obj The window object
3812     * @param shaped If true, the window is shaped
3813     *
3814     * @see elm_win_alpha_set()
3815     */
3816    EAPI void         elm_win_shaped_set(Evas_Object *obj, Eina_Bool shaped) EINA_ARG_NONNULL(1);
3817    /**
3818     * Get the shaped state of a window.
3819     *
3820     * @param obj The window object
3821     * @return If true, the window is shaped
3822     *
3823     * @see elm_win_shaped_set()
3824     */
3825    EAPI Eina_Bool    elm_win_shaped_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3826    /**
3827     * Set the alpha channel state of a window.
3828     *
3829     * If @p alpha is EINA_TRUE, the alpha channel of the canvas will be enabled
3830     * possibly making parts of the window completely or partially transparent.
3831     * This is also subject to the underlying system supporting it, like for
3832     * example, running under a compositing manager. If no compositing is
3833     * available, enabling this option will instead fallback to using shaped
3834     * windows, with elm_win_shaped_set().
3835     *
3836     * @param obj The window object
3837     * @param alpha If true, the window has an alpha channel
3838     *
3839     * @see elm_win_alpha_set()
3840     */
3841    EAPI void         elm_win_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
3842    /**
3843     * Get the transparency state of a window.
3844     *
3845     * @param obj The window object
3846     * @return If true, the window is transparent
3847     *
3848     * @see elm_win_transparent_set()
3849     */
3850    EAPI Eina_Bool    elm_win_transparent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3851    /**
3852     * Set the transparency state of a window.
3853     *
3854     * Use elm_win_alpha_set() instead.
3855     *
3856     * @param obj The window object
3857     * @param transparent If true, the window is transparent
3858     *
3859     * @see elm_win_alpha_set()
3860     */
3861    EAPI void         elm_win_transparent_set(Evas_Object *obj, Eina_Bool transparent) EINA_ARG_NONNULL(1);
3862    /**
3863     * Get the alpha channel state of a window.
3864     *
3865     * @param obj The window object
3866     * @return If true, the window has an alpha channel
3867     */
3868    EAPI Eina_Bool    elm_win_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3869    /**
3870     * Set the override state of a window.
3871     *
3872     * A window with @p override set to EINA_TRUE will not be managed by the
3873     * Window Manager. This means that no decorations of any kind will be shown
3874     * for it, moving and resizing must be handled by the application, as well
3875     * as the window visibility.
3876     *
3877     * This should not be used for normal windows, and even for not so normal
3878     * ones, it should only be used when there's a good reason and with a lot
3879     * of care. Mishandling override windows may result situations that
3880     * disrupt the normal workflow of the end user.
3881     *
3882     * @param obj The window object
3883     * @param override If true, the window is overridden
3884     */
3885    EAPI void         elm_win_override_set(Evas_Object *obj, Eina_Bool override) EINA_ARG_NONNULL(1);
3886    /**
3887     * Get the override state of a window.
3888     *
3889     * @param obj The window object
3890     * @return If true, the window is overridden
3891     *
3892     * @see elm_win_override_set()
3893     */
3894    EAPI Eina_Bool    elm_win_override_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3895    /**
3896     * Set the fullscreen state of a window.
3897     *
3898     * @param obj The window object
3899     * @param fullscreen If true, the window is fullscreen
3900     */
3901    EAPI void         elm_win_fullscreen_set(Evas_Object *obj, Eina_Bool fullscreen) EINA_ARG_NONNULL(1);
3902    /**
3903     * Get the fullscreen state of a window.
3904     *
3905     * @param obj The window object
3906     * @return If true, the window is fullscreen
3907     */
3908    EAPI Eina_Bool    elm_win_fullscreen_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3909    /**
3910     * Set the maximized state of a window.
3911     *
3912     * @param obj The window object
3913     * @param maximized If true, the window is maximized
3914     */
3915    EAPI void         elm_win_maximized_set(Evas_Object *obj, Eina_Bool maximized) EINA_ARG_NONNULL(1);
3916    /**
3917     * Get the maximized state of a window.
3918     *
3919     * @param obj The window object
3920     * @return If true, the window is maximized
3921     */
3922    EAPI Eina_Bool    elm_win_maximized_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3923    /**
3924     * Set the iconified state of a window.
3925     *
3926     * @param obj The window object
3927     * @param iconified If true, the window is iconified
3928     */
3929    EAPI void         elm_win_iconified_set(Evas_Object *obj, Eina_Bool iconified) EINA_ARG_NONNULL(1);
3930    /**
3931     * Get the iconified state of a window.
3932     *
3933     * @param obj The window object
3934     * @return If true, the window is iconified
3935     */
3936    EAPI Eina_Bool    elm_win_iconified_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3937    /**
3938     * Set the layer of the window.
3939     *
3940     * What this means exactly will depend on the underlying engine used.
3941     *
3942     * In the case of X11 backed engines, the value in @p layer has the
3943     * following meanings:
3944     * @li < 3: The window will be placed below all others.
3945     * @li > 5: The window will be placed above all others.
3946     * @li other: The window will be placed in the default layer.
3947     *
3948     * @param obj The window object
3949     * @param layer The layer of the window
3950     */
3951    EAPI void         elm_win_layer_set(Evas_Object *obj, int layer) EINA_ARG_NONNULL(1);
3952    /**
3953     * Get the layer of the window.
3954     *
3955     * @param obj The window object
3956     * @return The layer of the window
3957     *
3958     * @see elm_win_layer_set()
3959     */
3960    EAPI int          elm_win_layer_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3961    /**
3962     * Set the rotation of the window.
3963     *
3964     * Most engines only work with multiples of 90.
3965     *
3966     * This function is used to set the orientation of the window @p obj to
3967     * match that of the screen. The window itself will be resized to adjust
3968     * to the new geometry of its contents. If you want to keep the window size,
3969     * see elm_win_rotation_with_resize_set().
3970     *
3971     * @param obj The window object
3972     * @param rotation The rotation of the window, in degrees (0-360),
3973     * counter-clockwise.
3974     */
3975    EAPI void         elm_win_rotation_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
3976    /**
3977     * Rotates the window and resizes it.
3978     *
3979     * Like elm_win_rotation_set(), but it also resizes the window's contents so
3980     * that they fit inside the current window geometry.
3981     *
3982     * @param obj The window object
3983     * @param layer The rotation of the window in degrees (0-360),
3984     * counter-clockwise.
3985     */
3986    EAPI void         elm_win_rotation_with_resize_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
3987    /**
3988     * Get the rotation of the window.
3989     *
3990     * @param obj The window object
3991     * @return The rotation of the window in degrees (0-360)
3992     *
3993     * @see elm_win_rotation_set()
3994     * @see elm_win_rotation_with_resize_set()
3995     */
3996    EAPI int          elm_win_rotation_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3997    /**
3998     * Set the sticky state of the window.
3999     *
4000     * Hints the Window Manager that the window in @p obj should be left fixed
4001     * at its position even when the virtual desktop it's on moves or changes.
4002     *
4003     * @param obj The window object
4004     * @param sticky If true, the window's sticky state is enabled
4005     */
4006    EAPI void         elm_win_sticky_set(Evas_Object *obj, Eina_Bool sticky) EINA_ARG_NONNULL(1);
4007    /**
4008     * Get the sticky state of the window.
4009     *
4010     * @param obj The window object
4011     * @return If true, the window's sticky state is enabled
4012     *
4013     * @see elm_win_sticky_set()
4014     */
4015    EAPI Eina_Bool    elm_win_sticky_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4016    /**
4017     * Set if this window is an illume conformant window
4018     *
4019     * @param obj The window object
4020     * @param conformant The conformant flag (1 = conformant, 0 = non-conformant)
4021     */
4022    EAPI void         elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant) EINA_ARG_NONNULL(1);
4023    /**
4024     * Get if this window is an illume conformant window
4025     *
4026     * @param obj The window object
4027     * @return A boolean if this window is illume conformant or not
4028     */
4029    EAPI Eina_Bool    elm_win_conformant_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4030    /**
4031     * Set a window to be an illume quickpanel window
4032     *
4033     * By default window objects are not quickpanel windows.
4034     *
4035     * @param obj The window object
4036     * @param quickpanel The quickpanel flag (1 = quickpanel, 0 = normal window)
4037     */
4038    EAPI void         elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel) EINA_ARG_NONNULL(1);
4039    /**
4040     * Get if this window is a quickpanel or not
4041     *
4042     * @param obj The window object
4043     * @return A boolean if this window is a quickpanel or not
4044     */
4045    EAPI Eina_Bool    elm_win_quickpanel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4046    /**
4047     * Set the major priority of a quickpanel window
4048     *
4049     * @param obj The window object
4050     * @param priority The major priority for this quickpanel
4051     */
4052    EAPI void         elm_win_quickpanel_priority_major_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
4053    /**
4054     * Get the major priority of a quickpanel window
4055     *
4056     * @param obj The window object
4057     * @return The major priority of this quickpanel
4058     */
4059    EAPI int          elm_win_quickpanel_priority_major_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4060    /**
4061     * Set the minor priority of a quickpanel window
4062     *
4063     * @param obj The window object
4064     * @param priority The minor priority for this quickpanel
4065     */
4066    EAPI void         elm_win_quickpanel_priority_minor_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
4067    /**
4068     * Get the minor priority of a quickpanel window
4069     *
4070     * @param obj The window object
4071     * @return The minor priority of this quickpanel
4072     */
4073    EAPI int          elm_win_quickpanel_priority_minor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4074    /**
4075     * Set which zone this quickpanel should appear in
4076     *
4077     * @param obj The window object
4078     * @param zone The requested zone for this quickpanel
4079     */
4080    EAPI void         elm_win_quickpanel_zone_set(Evas_Object *obj, int zone) EINA_ARG_NONNULL(1);
4081    /**
4082     * Get which zone this quickpanel should appear in
4083     *
4084     * @param obj The window object
4085     * @return The requested zone for this quickpanel
4086     */
4087    EAPI int          elm_win_quickpanel_zone_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4088    /**
4089     * Set the window to be skipped by keyboard focus
4090     *
4091     * This sets the window to be skipped by normal keyboard input. This means
4092     * a window manager will be asked to not focus this window as well as omit
4093     * it from things like the taskbar, pager, "alt-tab" list etc. etc.
4094     *
4095     * Call this and enable it on a window BEFORE you show it for the first time,
4096     * otherwise it may have no effect.
4097     *
4098     * Use this for windows that have only output information or might only be
4099     * interacted with by the mouse or fingers, and never for typing input.
4100     * Be careful that this may have side-effects like making the window
4101     * non-accessible in some cases unless the window is specially handled. Use
4102     * this with care.
4103     *
4104     * @param obj The window object
4105     * @param skip The skip flag state (EINA_TRUE if it is to be skipped)
4106     */
4107    EAPI void         elm_win_prop_focus_skip_set(Evas_Object *obj, Eina_Bool skip) EINA_ARG_NONNULL(1);
4108    /**
4109     * Send a command to the windowing environment
4110     *
4111     * This is intended to work in touchscreen or small screen device
4112     * environments where there is a more simplistic window management policy in
4113     * place. This uses the window object indicated to select which part of the
4114     * environment to control (the part that this window lives in), and provides
4115     * a command and an optional parameter structure (use NULL for this if not
4116     * needed).
4117     *
4118     * @param obj The window object that lives in the environment to control
4119     * @param command The command to send
4120     * @param params Optional parameters for the command
4121     */
4122    EAPI void         elm_win_illume_command_send(Evas_Object *obj, Elm_Illume_Command command, void *params) EINA_ARG_NONNULL(1);
4123    /**
4124     * Get the inlined image object handle
4125     *
4126     * When you create a window with elm_win_add() of type ELM_WIN_INLINED_IMAGE,
4127     * then the window is in fact an evas image object inlined in the parent
4128     * canvas. You can get this object (be careful to not manipulate it as it
4129     * is under control of elementary), and use it to do things like get pixel
4130     * data, save the image to a file, etc.
4131     *
4132     * @param obj The window object to get the inlined image from
4133     * @return The inlined image object, or NULL if none exists
4134     */
4135    EAPI Evas_Object *elm_win_inlined_image_object_get(Evas_Object *obj);
4136    /**
4137     * Set the enabled status for the focus highlight in a window
4138     *
4139     * This function will enable or disable the focus highlight only for the
4140     * given window, regardless of the global setting for it
4141     *
4142     * @param obj The window where to enable the highlight
4143     * @param enabled The enabled value for the highlight
4144     */
4145    EAPI void         elm_win_focus_highlight_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
4146    /**
4147     * Get the enabled value of the focus highlight for this window
4148     *
4149     * @param obj The window in which to check if the focus highlight is enabled
4150     *
4151     * @return EINA_TRUE if enabled, EINA_FALSE otherwise
4152     */
4153    EAPI Eina_Bool    elm_win_focus_highlight_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4154    /**
4155     * Set the style for the focus highlight on this window
4156     *
4157     * Sets the style to use for theming the highlight of focused objects on
4158     * the given window. If @p style is NULL, the default will be used.
4159     *
4160     * @param obj The window where to set the style
4161     * @param style The style to set
4162     */
4163    EAPI void         elm_win_focus_highlight_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
4164    /**
4165     * Get the style set for the focus highlight object
4166     *
4167     * Gets the style set for this windows highilght object, or NULL if none
4168     * is set.
4169     *
4170     * @param obj The window to retrieve the highlights style from
4171     *
4172     * @return The style set or NULL if none was. Default is used in that case.
4173     */
4174    EAPI const char  *elm_win_focus_highlight_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4175    /*...
4176     * ecore_x_icccm_hints_set -> accepts_focus (add to ecore_evas)
4177     * ecore_x_icccm_hints_set -> window_group (add to ecore_evas)
4178     * ecore_x_icccm_size_pos_hints_set -> request_pos (add to ecore_evas)
4179     * ecore_x_icccm_client_leader_set -> l (add to ecore_evas)
4180     * ecore_x_icccm_window_role_set -> role (add to ecore_evas)
4181     * ecore_x_icccm_transient_for_set -> forwin (add to ecore_evas)
4182     * ecore_x_netwm_window_type_set -> type (add to ecore_evas)
4183     *
4184     * (add to ecore_x) set netwm argb icon! (add to ecore_evas)
4185     * (blank mouse, private mouse obj, defaultmouse)
4186     *
4187     */
4188    /**
4189     * Sets the keyboard mode of the window.
4190     *
4191     * @param obj The window object
4192     * @param mode The mode to set, one of #Elm_Win_Keyboard_Mode
4193     */
4194    EAPI void                  elm_win_keyboard_mode_set(Evas_Object *obj, Elm_Win_Keyboard_Mode mode) EINA_ARG_NONNULL(1);
4195    /**
4196     * Gets the keyboard mode of the window.
4197     *
4198     * @param obj The window object
4199     * @return The mode, one of #Elm_Win_Keyboard_Mode
4200     */
4201    EAPI Elm_Win_Keyboard_Mode elm_win_keyboard_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4202    /**
4203     * Sets whether the window is a keyboard.
4204     *
4205     * @param obj The window object
4206     * @param is_keyboard If true, the window is a virtual keyboard
4207     */
4208    EAPI void                  elm_win_keyboard_win_set(Evas_Object *obj, Eina_Bool is_keyboard) EINA_ARG_NONNULL(1);
4209    /**
4210     * Gets whether the window is a keyboard.
4211     *
4212     * @param obj The window object
4213     * @return If the window is a virtual keyboard
4214     */
4215    EAPI Eina_Bool             elm_win_keyboard_win_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4216
4217    /**
4218     * Get the screen position of a window.
4219     *
4220     * @param obj The window object
4221     * @param x The int to store the x coordinate to
4222     * @param y The int to store the y coordinate to
4223     */
4224    EAPI void                  elm_win_screen_position_get(const Evas_Object *obj, int *x, int *y) EINA_ARG_NONNULL(1);
4225    /**
4226     * @}
4227     */
4228
4229    /**
4230     * @defgroup Inwin Inwin
4231     *
4232     * @image html img/widget/inwin/preview-00.png
4233     * @image latex img/widget/inwin/preview-00.eps
4234     * @image html img/widget/inwin/preview-01.png
4235     * @image latex img/widget/inwin/preview-01.eps
4236     * @image html img/widget/inwin/preview-02.png
4237     * @image latex img/widget/inwin/preview-02.eps
4238     *
4239     * An inwin is a window inside a window that is useful for a quick popup.
4240     * It does not hover.
4241     *
4242     * It works by creating an object that will occupy the entire window, so it
4243     * must be created using an @ref Win "elm_win" as parent only. The inwin
4244     * object can be hidden or restacked below every other object if it's
4245     * needed to show what's behind it without destroying it. If this is done,
4246     * the elm_win_inwin_activate() function can be used to bring it back to
4247     * full visibility again.
4248     *
4249     * There are three styles available in the default theme. These are:
4250     * @li default: The inwin is sized to take over most of the window it's
4251     * placed in.
4252     * @li minimal: The size of the inwin will be the minimum necessary to show
4253     * its contents.
4254     * @li minimal_vertical: Horizontally, the inwin takes as much space as
4255     * possible, but it's sized vertically the most it needs to fit its\
4256     * contents.
4257     *
4258     * Some examples of Inwin can be found in the following:
4259     * @li @ref inwin_example_01
4260     *
4261     * @{
4262     */
4263    /**
4264     * Adds an inwin to the current window
4265     *
4266     * The @p obj used as parent @b MUST be an @ref Win "Elementary Window".
4267     * Never call this function with anything other than the top-most window
4268     * as its parameter, unless you are fond of undefined behavior.
4269     *
4270     * After creating the object, the widget will set itself as resize object
4271     * for the window with elm_win_resize_object_add(), so when shown it will
4272     * appear to cover almost the entire window (how much of it depends on its
4273     * content and the style used). It must not be added into other container
4274     * objects and it needs not be moved or resized manually.
4275     *
4276     * @param parent The parent object
4277     * @return The new object or NULL if it cannot be created
4278     */
4279    EAPI Evas_Object          *elm_win_inwin_add(Evas_Object *obj) EINA_ARG_NONNULL(1);
4280    /**
4281     * Activates an inwin object, ensuring its visibility
4282     *
4283     * This function will make sure that the inwin @p obj is completely visible
4284     * by calling evas_object_show() and evas_object_raise() on it, to bring it
4285     * to the front. It also sets the keyboard focus to it, which will be passed
4286     * onto its content.
4287     *
4288     * The object's theme will also receive the signal "elm,action,show" with
4289     * source "elm".
4290     *
4291     * @param obj The inwin to activate
4292     */
4293    EAPI void                  elm_win_inwin_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
4294    /**
4295     * Set the content of an inwin object.
4296     *
4297     * Once the content object is set, a previously set one will be deleted.
4298     * If you want to keep that old content object, use the
4299     * elm_win_inwin_content_unset() function.
4300     *
4301     * @param obj The inwin object
4302     * @param content The object to set as content
4303     */
4304    EAPI void                  elm_win_inwin_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
4305    /**
4306     * Get the content of an inwin object.
4307     *
4308     * Return the content object which is set for this widget.
4309     *
4310     * The returned object is valid as long as the inwin is still alive and no
4311     * other content is set on it. Deleting the object will notify the inwin
4312     * about it and this one will be left empty.
4313     *
4314     * If you need to remove an inwin's content to be reused somewhere else,
4315     * see elm_win_inwin_content_unset().
4316     *
4317     * @param obj The inwin object
4318     * @return The content that is being used
4319     */
4320    EAPI Evas_Object          *elm_win_inwin_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4321    /**
4322     * Unset the content of an inwin object.
4323     *
4324     * Unparent and return the content object which was set for this widget.
4325     *
4326     * @param obj The inwin object
4327     * @return The content that was being used
4328     */
4329    EAPI Evas_Object          *elm_win_inwin_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4330    /**
4331     * @}
4332     */
4333    /* X specific calls - won't work on non-x engines (return 0) */
4334
4335    /**
4336     * Get the Ecore_X_Window of an Evas_Object
4337     *
4338     * @param obj The object
4339     *
4340     * @return The Ecore_X_Window of @p obj
4341     *
4342     * @ingroup Win
4343     */
4344    EAPI Ecore_X_Window elm_win_xwindow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4345
4346    /* smart callbacks called:
4347     * "delete,request" - the user requested to delete the window
4348     * "focus,in" - window got focus
4349     * "focus,out" - window lost focus
4350     * "moved" - window that holds the canvas was moved
4351     */
4352
4353    /**
4354     * @defgroup Bg Bg
4355     *
4356     * @image html img/widget/bg/preview-00.png
4357     * @image latex img/widget/bg/preview-00.eps
4358     *
4359     * @brief Background object, used for setting a solid color, image or Edje
4360     * group as background to a window or any container object.
4361     *
4362     * The bg object is used for setting a solid background to a window or
4363     * packing into any container object. It works just like an image, but has
4364     * some properties useful to a background, like setting it to tiled,
4365     * centered, scaled or stretched.
4366     *
4367     * Here is some sample code using it:
4368     * @li @ref bg_01_example_page
4369     * @li @ref bg_02_example_page
4370     * @li @ref bg_03_example_page
4371     */
4372
4373    /* bg */
4374    typedef enum _Elm_Bg_Option
4375      {
4376         ELM_BG_OPTION_CENTER,  /**< center the background */
4377         ELM_BG_OPTION_SCALE,   /**< scale the background retaining aspect ratio */
4378         ELM_BG_OPTION_STRETCH, /**< stretch the background to fill */
4379         ELM_BG_OPTION_TILE     /**< tile background at its original size */
4380      } Elm_Bg_Option;
4381
4382    /**
4383     * Add a new background to the parent
4384     *
4385     * @param parent The parent object
4386     * @return The new object or NULL if it cannot be created
4387     *
4388     * @ingroup Bg
4389     */
4390    EAPI Evas_Object  *elm_bg_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4391
4392    /**
4393     * Set the file (image or edje) used for the background
4394     *
4395     * @param obj The bg object
4396     * @param file The file path
4397     * @param group Optional key (group in Edje) within the file
4398     *
4399     * This sets the image file used in the background object. The image (or edje)
4400     * will be stretched (retaining aspect if its an image file) to completely fill
4401     * the bg object. This may mean some parts are not visible.
4402     *
4403     * @note  Once the image of @p obj is set, a previously set one will be deleted,
4404     * even if @p file is NULL.
4405     *
4406     * @ingroup Bg
4407     */
4408    EAPI void          elm_bg_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
4409
4410    /**
4411     * Get the file (image or edje) used for the background
4412     *
4413     * @param obj The bg object
4414     * @param file The file path
4415     * @param group Optional key (group in Edje) within the file
4416     *
4417     * @ingroup Bg
4418     */
4419    EAPI void          elm_bg_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
4420
4421    /**
4422     * Set the option used for the background image
4423     *
4424     * @param obj The bg object
4425     * @param option The desired background option (TILE, SCALE)
4426     *
4427     * This sets the option used for manipulating the display of the background
4428     * image. The image can be tiled or scaled.
4429     *
4430     * @ingroup Bg
4431     */
4432    EAPI void          elm_bg_option_set(Evas_Object *obj, Elm_Bg_Option option) EINA_ARG_NONNULL(1);
4433
4434    /**
4435     * Get the option used for the background image
4436     *
4437     * @param obj The bg object
4438     * @return The desired background option (CENTER, SCALE, STRETCH or TILE)
4439     *
4440     * @ingroup Bg
4441     */
4442    EAPI Elm_Bg_Option elm_bg_option_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4443    /**
4444     * Set the option used for the background color
4445     *
4446     * @param obj The bg object
4447     * @param r
4448     * @param g
4449     * @param b
4450     *
4451     * This sets the color used for the background rectangle. Its range goes
4452     * from 0 to 255.
4453     *
4454     * @ingroup Bg
4455     */
4456    EAPI void          elm_bg_color_set(Evas_Object *obj, int r, int g, int b) EINA_ARG_NONNULL(1);
4457    /**
4458     * Get the option used for the background color
4459     *
4460     * @param obj The bg object
4461     * @param r
4462     * @param g
4463     * @param b
4464     *
4465     * @ingroup Bg
4466     */
4467    EAPI void          elm_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b) EINA_ARG_NONNULL(1);
4468
4469    /**
4470     * Set the overlay object used for the background object.
4471     *
4472     * @param obj The bg object
4473     * @param overlay The overlay object
4474     *
4475     * This provides a way for elm_bg to have an 'overlay' that will be on top
4476     * of the bg. Once the over object is set, a previously set one will be
4477     * deleted, even if you set the new one to NULL. If you want to keep that
4478     * old content object, use the elm_bg_overlay_unset() function.
4479     *
4480     * @ingroup Bg
4481     */
4482
4483    EAPI void          elm_bg_overlay_set(Evas_Object *obj, Evas_Object *overlay) EINA_ARG_NONNULL(1);
4484
4485    /**
4486     * Get the overlay object used for the background object.
4487     *
4488     * @param obj The bg object
4489     * @return The content that is being used
4490     *
4491     * Return the content object which is set for this widget
4492     *
4493     * @ingroup Bg
4494     */
4495    EAPI Evas_Object  *elm_bg_overlay_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4496
4497    /**
4498     * Get the overlay object used for the background object.
4499     *
4500     * @param obj The bg object
4501     * @return The content that was being used
4502     *
4503     * Unparent and return the overlay object which was set for this widget
4504     *
4505     * @ingroup Bg
4506     */
4507    EAPI Evas_Object  *elm_bg_overlay_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4508
4509    /**
4510     * Set the size of the pixmap representation of the image.
4511     *
4512     * This option just makes sense if an image is going to be set in the bg.
4513     *
4514     * @param obj The bg object
4515     * @param w The new width of the image pixmap representation.
4516     * @param h The new height of the image pixmap representation.
4517     *
4518     * This function sets a new size for pixmap representation of the given bg
4519     * image. It allows the image to be loaded already in the specified size,
4520     * reducing the memory usage and load time when loading a big image with load
4521     * size set to a smaller size.
4522     *
4523     * NOTE: this is just a hint, the real size of the pixmap may differ
4524     * depending on the type of image being loaded, being bigger than requested.
4525     *
4526     * @ingroup Bg
4527     */
4528    EAPI void          elm_bg_load_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
4529    /* smart callbacks called:
4530     */
4531
4532    /**
4533     * @defgroup Icon Icon
4534     *
4535     * @image html img/widget/icon/preview-00.png
4536     * @image latex img/widget/icon/preview-00.eps
4537     *
4538     * An object that provides standard icon images (delete, edit, arrows, etc.)
4539     * or a custom file (PNG, JPG, EDJE, etc.) used for an icon.
4540     *
4541     * The icon image requested can be in the elementary theme, or in the
4542     * freedesktop.org paths. It's possible to set the order of preference from
4543     * where the image will be used.
4544     *
4545     * This API is very similar to @ref Image, but with ready to use images.
4546     *
4547     * Default images provided by the theme are described below.
4548     *
4549     * The first list contains icons that were first intended to be used in
4550     * toolbars, but can be used in many other places too:
4551     * @li home
4552     * @li close
4553     * @li apps
4554     * @li arrow_up
4555     * @li arrow_down
4556     * @li arrow_left
4557     * @li arrow_right
4558     * @li chat
4559     * @li clock
4560     * @li delete
4561     * @li edit
4562     * @li refresh
4563     * @li folder
4564     * @li file
4565     *
4566     * Now some icons that were designed to be used in menus (but again, you can
4567     * use them anywhere else):
4568     * @li menu/home
4569     * @li menu/close
4570     * @li menu/apps
4571     * @li menu/arrow_up
4572     * @li menu/arrow_down
4573     * @li menu/arrow_left
4574     * @li menu/arrow_right
4575     * @li menu/chat
4576     * @li menu/clock
4577     * @li menu/delete
4578     * @li menu/edit
4579     * @li menu/refresh
4580     * @li menu/folder
4581     * @li menu/file
4582     *
4583     * And here we have some media player specific icons:
4584     * @li media_player/forward
4585     * @li media_player/info
4586     * @li media_player/next
4587     * @li media_player/pause
4588     * @li media_player/play
4589     * @li media_player/prev
4590     * @li media_player/rewind
4591     * @li media_player/stop
4592     *
4593     * Signals that you can add callbacks for are:
4594     *
4595     * "clicked" - This is called when a user has clicked the icon
4596     *
4597     * An example of usage for this API follows:
4598     * @li @ref tutorial_icon
4599     */
4600
4601    /**
4602     * @addtogroup Icon
4603     * @{
4604     */
4605
4606    typedef enum _Elm_Icon_Type
4607      {
4608         ELM_ICON_NONE,
4609         ELM_ICON_FILE,
4610         ELM_ICON_STANDARD
4611      } Elm_Icon_Type;
4612    /**
4613     * @enum _Elm_Icon_Lookup_Order
4614     * @typedef Elm_Icon_Lookup_Order
4615     *
4616     * Lookup order used by elm_icon_standard_set(). Should look for icons in the
4617     * theme, FDO paths, or both?
4618     *
4619     * @ingroup Icon
4620     */
4621    typedef enum _Elm_Icon_Lookup_Order
4622      {
4623         ELM_ICON_LOOKUP_FDO_THEME, /**< icon look up order: freedesktop, theme */
4624         ELM_ICON_LOOKUP_THEME_FDO, /**< icon look up order: theme, freedesktop */
4625         ELM_ICON_LOOKUP_FDO,       /**< icon look up order: freedesktop */
4626         ELM_ICON_LOOKUP_THEME      /**< icon look up order: theme */
4627      } Elm_Icon_Lookup_Order;
4628
4629    /**
4630     * Add a new icon object to the parent.
4631     *
4632     * @param parent The parent object
4633     * @return The new object or NULL if it cannot be created
4634     *
4635     * @see elm_icon_file_set()
4636     *
4637     * @ingroup Icon
4638     */
4639    EAPI Evas_Object          *elm_icon_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4640    /**
4641     * Set the file that will be used as icon.
4642     *
4643     * @param obj The icon object
4644     * @param file The path to file that will be used as icon image
4645     * @param group The group that the icon belongs to in edje file
4646     *
4647     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4648     *
4649     * @note The icon image set by this function can be changed by
4650     * elm_icon_standard_set().
4651     *
4652     * @see elm_icon_file_get()
4653     *
4654     * @ingroup Icon
4655     */
4656    EAPI Eina_Bool             elm_icon_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
4657    /**
4658     * Set a location in memory to be used as an icon
4659     *
4660     * @param obj The icon object
4661     * @param img The binary data that will be used as an image
4662     * @param size The size of binary data @p img
4663     * @param format Optional format of @p img to pass to the image loader
4664     * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
4665     *
4666     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4667     *
4668     * @note The icon image set by this function can be changed by
4669     * elm_icon_standard_set().
4670     *
4671     * @ingroup Icon
4672     */
4673    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);
4674    /**
4675     * Get the file that will be used as icon.
4676     *
4677     * @param obj The icon object
4678     * @param file The path to file that will be used as icon icon image
4679     * @param group The group that the icon belongs to in edje file
4680     *
4681     * @see elm_icon_file_set()
4682     *
4683     * @ingroup Icon
4684     */
4685    EAPI void                  elm_icon_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
4686    EAPI void                  elm_icon_thumb_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
4687    /**
4688     * Set the icon by icon standards names.
4689     *
4690     * @param obj The icon object
4691     * @param name The icon name
4692     *
4693     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4694     *
4695     * For example, freedesktop.org defines standard icon names such as "home",
4696     * "network", etc. There can be different icon sets to match those icon
4697     * keys. The @p name given as parameter is one of these "keys", and will be
4698     * used to look in the freedesktop.org paths and elementary theme. One can
4699     * change the lookup order with elm_icon_order_lookup_set().
4700     *
4701     * If name is not found in any of the expected locations and it is the
4702     * absolute path of an image file, this image will be used.
4703     *
4704     * @note The icon image set by this function can be changed by
4705     * elm_icon_file_set().
4706     *
4707     * @see elm_icon_standard_get()
4708     * @see elm_icon_file_set()
4709     *
4710     * @ingroup Icon
4711     */
4712    EAPI Eina_Bool             elm_icon_standard_set(Evas_Object *obj, const char *name) EINA_ARG_NONNULL(1);
4713    /**
4714     * Get the icon name set by icon standard names.
4715     *
4716     * @param obj The icon object
4717     * @return The icon name
4718     *
4719     * If the icon image was set using elm_icon_file_set() instead of
4720     * elm_icon_standard_set(), then this function will return @c NULL.
4721     *
4722     * @see elm_icon_standard_set()
4723     *
4724     * @ingroup Icon
4725     */
4726    EAPI const char           *elm_icon_standard_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4727    /**
4728     * Set the smooth effect for an icon object.
4729     *
4730     * @param obj The icon object
4731     * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
4732     * otherwise. Default is @c EINA_TRUE.
4733     *
4734     * Set the scaling algorithm to be used when scaling the icon image. Smooth
4735     * scaling provides a better resulting image, but is slower.
4736     *
4737     * The smooth scaling should be disabled when making animations that change
4738     * the icon size, since they will be faster. Animations that don't require
4739     * resizing of the icon can keep the smooth scaling enabled (even if the icon
4740     * is already scaled, since the scaled icon image will be cached).
4741     *
4742     * @see elm_icon_smooth_get()
4743     *
4744     * @ingroup Icon
4745     */
4746    EAPI void                  elm_icon_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
4747    /**
4748     * Get the smooth effect for an icon object.
4749     *
4750     * @param obj The icon object
4751     * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
4752     *
4753     * @see elm_icon_smooth_set()
4754     *
4755     * @ingroup Icon
4756     */
4757    EAPI Eina_Bool             elm_icon_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4758    /**
4759     * Disable scaling of this object.
4760     *
4761     * @param obj The icon object.
4762     * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
4763     * otherwise. Default is @c EINA_FALSE.
4764     *
4765     * This function disables scaling of the icon object through the function
4766     * elm_object_scale_set(). However, this does not affect the object
4767     * size/resize in any way. For that effect, take a look at
4768     * elm_icon_scale_set().
4769     *
4770     * @see elm_icon_no_scale_get()
4771     * @see elm_icon_scale_set()
4772     * @see elm_object_scale_set()
4773     *
4774     * @ingroup Icon
4775     */
4776    EAPI void                  elm_icon_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
4777    /**
4778     * Get whether scaling is disabled on the object.
4779     *
4780     * @param obj The icon object
4781     * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
4782     *
4783     * @see elm_icon_no_scale_set()
4784     *
4785     * @ingroup Icon
4786     */
4787    EAPI Eina_Bool             elm_icon_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4788    /**
4789     * Set if the object is (up/down) resizable.
4790     *
4791     * @param obj The icon object
4792     * @param scale_up A bool to set if the object is resizable up. Default is
4793     * @c EINA_TRUE.
4794     * @param scale_down A bool to set if the object is resizable down. Default
4795     * is @c EINA_TRUE.
4796     *
4797     * This function limits the icon object resize ability. If @p scale_up is set to
4798     * @c EINA_FALSE, the object can't have its height or width resized to a value
4799     * higher than the original icon size. Same is valid for @p scale_down.
4800     *
4801     * @see elm_icon_scale_get()
4802     *
4803     * @ingroup Icon
4804     */
4805    EAPI void                  elm_icon_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
4806    /**
4807     * Get if the object is (up/down) resizable.
4808     *
4809     * @param obj The icon object
4810     * @param scale_up A bool to set if the object is resizable up
4811     * @param scale_down A bool to set if the object is resizable down
4812     *
4813     * @see elm_icon_scale_set()
4814     *
4815     * @ingroup Icon
4816     */
4817    EAPI void                  elm_icon_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
4818    /**
4819     * Get the object's image size
4820     *
4821     * @param obj The icon object
4822     * @param w A pointer to store the width in
4823     * @param h A pointer to store the height in
4824     *
4825     * @ingroup Icon
4826     */
4827    EAPI void                  elm_icon_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
4828    /**
4829     * Set if the icon fill the entire object area.
4830     *
4831     * @param obj The icon object
4832     * @param fill_outside @c EINA_TRUE if the object is filled outside,
4833     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
4834     *
4835     * When the icon object is resized to a different aspect ratio from the
4836     * original icon image, the icon image will still keep its aspect. This flag
4837     * tells how the image should fill the object's area. They are: keep the
4838     * entire icon inside the limits of height and width of the object (@p
4839     * fill_outside is @c EINA_FALSE) or let the extra width or height go outside
4840     * of the object, and the icon will fill the entire object (@p fill_outside
4841     * is @c EINA_TRUE).
4842     *
4843     * @note Unlike @ref Image, there's no option in icon to set the aspect ratio
4844     * retain property to false. Thus, the icon image will always keep its
4845     * original aspect ratio.
4846     *
4847     * @see elm_icon_fill_outside_get()
4848     * @see elm_image_fill_outside_set()
4849     *
4850     * @ingroup Icon
4851     */
4852    EAPI void                  elm_icon_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
4853    /**
4854     * Get if the object is filled outside.
4855     *
4856     * @param obj The icon object
4857     * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
4858     *
4859     * @see elm_icon_fill_outside_set()
4860     *
4861     * @ingroup Icon
4862     */
4863    EAPI Eina_Bool             elm_icon_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4864    /**
4865     * Set the prescale size for the icon.
4866     *
4867     * @param obj The icon object
4868     * @param size The prescale size. This value is used for both width and
4869     * height.
4870     *
4871     * This function sets a new size for pixmap representation of the given
4872     * icon. It allows the icon to be loaded already in the specified size,
4873     * reducing the memory usage and load time when loading a big icon with load
4874     * size set to a smaller size.
4875     *
4876     * It's equivalent to the elm_bg_load_size_set() function for bg.
4877     *
4878     * @note this is just a hint, the real size of the pixmap may differ
4879     * depending on the type of icon being loaded, being bigger than requested.
4880     *
4881     * @see elm_icon_prescale_get()
4882     * @see elm_bg_load_size_set()
4883     *
4884     * @ingroup Icon
4885     */
4886    EAPI void                  elm_icon_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
4887    /**
4888     * Get the prescale size for the icon.
4889     *
4890     * @param obj The icon object
4891     * @return The prescale size
4892     *
4893     * @see elm_icon_prescale_set()
4894     *
4895     * @ingroup Icon
4896     */
4897    EAPI int                   elm_icon_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4898    /**
4899     * Sets the icon lookup order used by elm_icon_standard_set().
4900     *
4901     * @param obj The icon object
4902     * @param order The icon lookup order (can be one of
4903     * ELM_ICON_LOOKUP_FDO_THEME, ELM_ICON_LOOKUP_THEME_FDO, ELM_ICON_LOOKUP_FDO
4904     * or ELM_ICON_LOOKUP_THEME)
4905     *
4906     * @see elm_icon_order_lookup_get()
4907     * @see Elm_Icon_Lookup_Order
4908     *
4909     * @ingroup Icon
4910     */
4911    EAPI void                  elm_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
4912    /**
4913     * Gets the icon lookup order.
4914     *
4915     * @param obj The icon object
4916     * @return The icon lookup order
4917     *
4918     * @see elm_icon_order_lookup_set()
4919     * @see Elm_Icon_Lookup_Order
4920     *
4921     * @ingroup Icon
4922     */
4923    EAPI Elm_Icon_Lookup_Order elm_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4924    /**
4925     * Get if the icon supports animation or not.
4926     *
4927     * @param obj The icon object
4928     * @return @c EINA_TRUE if the icon supports animation,
4929     *         @c EINA_FALSE otherwise.
4930     *
4931     * Return if this elm icon's image can be animated. Currently Evas only
4932     * supports gif animation. If the return value is EINA_FALSE, other
4933     * elm_icon_animated_XXX APIs won't work.
4934     * @ingroup Icon
4935     */
4936    EAPI Eina_Bool           elm_icon_animated_available_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4937    /**
4938     * Set animation mode of the icon.
4939     *
4940     * @param obj The icon object
4941     * @param anim @c EINA_TRUE if the object do animation job,
4942     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
4943     *
4944     * Even though elm icon's file can be animated,
4945     * sometimes appication developer want to just first page of image.
4946     * In that time, don't call this function, because default value is EINA_FALSE
4947     * Only when you want icon support anition,
4948     * use this function and set animated to EINA_TURE
4949     * @ingroup Icon
4950     */
4951    EAPI void                elm_icon_animated_set(Evas_Object *obj, Eina_Bool animated) EINA_ARG_NONNULL(1);
4952    /**
4953     * Get animation mode of the icon.
4954     *
4955     * @param obj The icon object
4956     * @return The animation mode of the icon object
4957     * @see elm_icon_animated_set
4958     * @ingroup Icon
4959     */
4960    EAPI Eina_Bool           elm_icon_animated_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4961    /**
4962     * Set animation play mode of the icon.
4963     *
4964     * @param obj The icon object
4965     * @param play @c EINA_TRUE the object play animation images,
4966     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
4967     *
4968     * If you want to play elm icon's animation, you set play to EINA_TURE.
4969     * For example, you make gif player using this set/get API and click event.
4970     *
4971     * 1. Click event occurs
4972     * 2. Check play flag using elm_icon_animaged_play_get
4973     * 3. If elm icon was playing, set play to EINA_FALSE.
4974     *    Then animation will be stopped and vice versa
4975     * @ingroup Icon
4976     */
4977    EAPI void                elm_icon_animated_play_set(Evas_Object *obj, Eina_Bool play) EINA_ARG_NONNULL(1);
4978    /**
4979     * Get animation play mode of the icon.
4980     *
4981     * @param obj The icon object
4982     * @return The play mode of the icon object
4983     *
4984     * @see elm_icon_animated_lay_get
4985     * @ingroup Icon
4986     */
4987    EAPI Eina_Bool           elm_icon_animated_play_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4988
4989    /**
4990     * @}
4991     */
4992
4993    /**
4994     * @defgroup Image Image
4995     *
4996     * @image html img/widget/image/preview-00.png
4997     * @image latex img/widget/image/preview-00.eps
4998
4999     *
5000     * An object that allows one to load an image file to it. It can be used
5001     * anywhere like any other elementary widget.
5002     *
5003     * This widget provides most of the functionality provided from @ref Bg or @ref
5004     * Icon, but with a slightly different API (use the one that fits better your
5005     * needs).
5006     *
5007     * The features not provided by those two other image widgets are:
5008     * @li allowing to get the basic @c Evas_Object with elm_image_object_get();
5009     * @li change the object orientation with elm_image_orient_set();
5010     * @li and turning the image editable with elm_image_editable_set().
5011     *
5012     * Signals that you can add callbacks for are:
5013     *
5014     * @li @c "clicked" - This is called when a user has clicked the image
5015     *
5016     * An example of usage for this API follows:
5017     * @li @ref tutorial_image
5018     */
5019
5020    /**
5021     * @addtogroup Image
5022     * @{
5023     */
5024
5025    /**
5026     * @enum _Elm_Image_Orient
5027     * @typedef Elm_Image_Orient
5028     *
5029     * Possible orientation options for elm_image_orient_set().
5030     *
5031     * @image html elm_image_orient_set.png
5032     * @image latex elm_image_orient_set.eps width=\textwidth
5033     *
5034     * @ingroup Image
5035     */
5036    typedef enum _Elm_Image_Orient
5037      {
5038         ELM_IMAGE_ORIENT_NONE, /**< no orientation change */
5039         ELM_IMAGE_ROTATE_90_CW, /**< rotate 90 degrees clockwise */
5040         ELM_IMAGE_ROTATE_180_CW, /**< rotate 180 degrees clockwise */
5041         ELM_IMAGE_ROTATE_90_CCW, /**< rotate 90 degrees counter-clockwise (i.e. 270 degrees clockwise) */
5042         ELM_IMAGE_FLIP_HORIZONTAL, /**< flip image horizontally */
5043         ELM_IMAGE_FLIP_VERTICAL, /**< flip image vertically */
5044         ELM_IMAGE_FLIP_TRANSPOSE, /**< flip the image along the y = (side - x) line*/
5045         ELM_IMAGE_FLIP_TRANSVERSE /**< flip the image along the y = x line */
5046      } Elm_Image_Orient;
5047
5048    /**
5049     * Add a new image to the parent.
5050     *
5051     * @param parent The parent object
5052     * @return The new object or NULL if it cannot be created
5053     *
5054     * @see elm_image_file_set()
5055     *
5056     * @ingroup Image
5057     */
5058    EAPI Evas_Object     *elm_image_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5059    /**
5060     * Set the file that will be used as image.
5061     *
5062     * @param obj The image object
5063     * @param file The path to file that will be used as image
5064     * @param group The group that the image belongs in edje file (if it's an
5065     * edje image)
5066     *
5067     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5068     *
5069     * @see elm_image_file_get()
5070     *
5071     * @ingroup Image
5072     */
5073    EAPI Eina_Bool        elm_image_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
5074    /**
5075     * Get the file that will be used as image.
5076     *
5077     * @param obj The image object
5078     * @param file The path to file
5079     * @param group The group that the image belongs in edje file
5080     *
5081     * @see elm_image_file_set()
5082     *
5083     * @ingroup Image
5084     */
5085    EAPI void             elm_image_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
5086    /**
5087     * Set the smooth effect for an image.
5088     *
5089     * @param obj The image object
5090     * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
5091     * otherwise. Default is @c EINA_TRUE.
5092     *
5093     * Set the scaling algorithm to be used when scaling the image. Smooth
5094     * scaling provides a better resulting image, but is slower.
5095     *
5096     * The smooth scaling should be disabled when making animations that change
5097     * the image size, since it will be faster. Animations that don't require
5098     * resizing of the image can keep the smooth scaling enabled (even if the
5099     * image is already scaled, since the scaled image will be cached).
5100     *
5101     * @see elm_image_smooth_get()
5102     *
5103     * @ingroup Image
5104     */
5105    EAPI void             elm_image_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
5106    /**
5107     * Get the smooth effect for an image.
5108     *
5109     * @param obj The image object
5110     * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
5111     *
5112     * @see elm_image_smooth_get()
5113     *
5114     * @ingroup Image
5115     */
5116    EAPI Eina_Bool        elm_image_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5117    /**
5118     * Gets the current size of the image.
5119     *
5120     * @param obj The image object.
5121     * @param w Pointer to store width, or NULL.
5122     * @param h Pointer to store height, or NULL.
5123     *
5124     * This is the real size of the image, not the size of the object.
5125     *
5126     * On error, neither w or h will be written.
5127     *
5128     * @ingroup Image
5129     */
5130    EAPI void             elm_image_object_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
5131    /**
5132     * Disable scaling of this object.
5133     *
5134     * @param obj The image object.
5135     * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
5136     * otherwise. Default is @c EINA_FALSE.
5137     *
5138     * This function disables scaling of the elm_image widget through the
5139     * function elm_object_scale_set(). However, this does not affect the widget
5140     * size/resize in any way. For that effect, take a look at
5141     * elm_image_scale_set().
5142     *
5143     * @see elm_image_no_scale_get()
5144     * @see elm_image_scale_set()
5145     * @see elm_object_scale_set()
5146     *
5147     * @ingroup Image
5148     */
5149    EAPI void             elm_image_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
5150    /**
5151     * Get whether scaling is disabled on the object.
5152     *
5153     * @param obj The image object
5154     * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
5155     *
5156     * @see elm_image_no_scale_set()
5157     *
5158     * @ingroup Image
5159     */
5160    EAPI Eina_Bool        elm_image_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5161    /**
5162     * Set if the object is (up/down) resizable.
5163     *
5164     * @param obj The image object
5165     * @param scale_up A bool to set if the object is resizable up. Default is
5166     * @c EINA_TRUE.
5167     * @param scale_down A bool to set if the object is resizable down. Default
5168     * is @c EINA_TRUE.
5169     *
5170     * This function limits the image resize ability. If @p scale_up is set to
5171     * @c EINA_FALSE, the object can't have its height or width resized to a value
5172     * higher than the original image size. Same is valid for @p scale_down.
5173     *
5174     * @see elm_image_scale_get()
5175     *
5176     * @ingroup Image
5177     */
5178    EAPI void             elm_image_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
5179    /**
5180     * Get if the object is (up/down) resizable.
5181     *
5182     * @param obj The image object
5183     * @param scale_up A bool to set if the object is resizable up
5184     * @param scale_down A bool to set if the object is resizable down
5185     *
5186     * @see elm_image_scale_set()
5187     *
5188     * @ingroup Image
5189     */
5190    EAPI void             elm_image_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
5191    /**
5192     * Set if the image fill the entire object area when keeping the aspect ratio.
5193     *
5194     * @param obj The image object
5195     * @param fill_outside @c EINA_TRUE if the object is filled outside,
5196     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5197     *
5198     * When the image should keep its aspect ratio even if resized to another
5199     * aspect ratio, there are two possibilities to resize it: keep the entire
5200     * image inside the limits of height and width of the object (@p fill_outside
5201     * is @c EINA_FALSE) or let the extra width or height go outside of the object,
5202     * and the image will fill the entire object (@p fill_outside is @c EINA_TRUE).
5203     *
5204     * @note This option will have no effect if
5205     * elm_image_aspect_ratio_retained_set() is set to @c EINA_FALSE.
5206     *
5207     * @see elm_image_fill_outside_get()
5208     * @see elm_image_aspect_ratio_retained_set()
5209     *
5210     * @ingroup Image
5211     */
5212    EAPI void             elm_image_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
5213    /**
5214     * Get if the object is filled outside
5215     *
5216     * @param obj The image object
5217     * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
5218     *
5219     * @see elm_image_fill_outside_set()
5220     *
5221     * @ingroup Image
5222     */
5223    EAPI Eina_Bool        elm_image_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5224    /**
5225     * Set the prescale size for the image
5226     *
5227     * @param obj The image object
5228     * @param size The prescale size. This value is used for both width and
5229     * height.
5230     *
5231     * This function sets a new size for pixmap representation of the given
5232     * image. It allows the image to be loaded already in the specified size,
5233     * reducing the memory usage and load time when loading a big image with load
5234     * size set to a smaller size.
5235     *
5236     * It's equivalent to the elm_bg_load_size_set() function for bg.
5237     *
5238     * @note this is just a hint, the real size of the pixmap may differ
5239     * depending on the type of image being loaded, being bigger than requested.
5240     *
5241     * @see elm_image_prescale_get()
5242     * @see elm_bg_load_size_set()
5243     *
5244     * @ingroup Image
5245     */
5246    EAPI void             elm_image_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
5247    /**
5248     * Get the prescale size for the image
5249     *
5250     * @param obj The image object
5251     * @return The prescale size
5252     *
5253     * @see elm_image_prescale_set()
5254     *
5255     * @ingroup Image
5256     */
5257    EAPI int              elm_image_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5258    /**
5259     * Set the image orientation.
5260     *
5261     * @param obj The image object
5262     * @param orient The image orientation
5263     * (one of #ELM_IMAGE_ORIENT_NONE, #ELM_IMAGE_ROTATE_90_CW,
5264     *  #ELM_IMAGE_ROTATE_180_CW, #ELM_IMAGE_ROTATE_90_CCW,
5265     *  #ELM_IMAGE_FLIP_HORIZONTAL, #ELM_IMAGE_FLIP_VERTICAL,
5266     *  #ELM_IMAGE_FLIP_TRANSPOSE, #ELM_IMAGE_FLIP_TRANSVERSE).
5267     *  Default is #ELM_IMAGE_ORIENT_NONE.
5268     *
5269     * This function allows to rotate or flip the given image.
5270     *
5271     * @see elm_image_orient_get()
5272     * @see @ref Elm_Image_Orient
5273     *
5274     * @ingroup Image
5275     */
5276    EAPI void             elm_image_orient_set(Evas_Object *obj, Elm_Image_Orient orient) EINA_ARG_NONNULL(1);
5277    /**
5278     * Get the image orientation.
5279     *
5280     * @param obj The image object
5281     * @return The image orientation
5282     * (one of #ELM_IMAGE_ORIENT_NONE, #ELM_IMAGE_ROTATE_90_CW,
5283     *  #ELM_IMAGE_ROTATE_180_CW, #ELM_IMAGE_ROTATE_90_CCW,
5284     *  #ELM_IMAGE_FLIP_HORIZONTAL, #ELM_IMAGE_FLIP_VERTICAL,
5285     *  #ELM_IMAGE_FLIP_TRANSPOSE, #ELM_IMAGE_FLIP_TRANSVERSE)
5286     *
5287     * @see elm_image_orient_set()
5288     * @see @ref Elm_Image_Orient
5289     *
5290     * @ingroup Image
5291     */
5292    EAPI Elm_Image_Orient elm_image_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5293    /**
5294     * Make the image 'editable'.
5295     *
5296     * @param obj Image object.
5297     * @param set Turn on or off editability. Default is @c EINA_FALSE.
5298     *
5299     * This means the image is a valid drag target for drag and drop, and can be
5300     * cut or pasted too.
5301     *
5302     * @ingroup Image
5303     */
5304    EAPI void             elm_image_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
5305    /**
5306     * Make the image 'editable'.
5307     *
5308     * @param obj Image object.
5309     * @return Editability.
5310     *
5311     * This means the image is a valid drag target for drag and drop, and can be
5312     * cut or pasted too.
5313     *
5314     * @ingroup Image
5315     */
5316    EAPI Eina_Bool        elm_image_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5317    /**
5318     * Get the basic Evas_Image object from this object (widget).
5319     *
5320     * @param obj The image object to get the inlined image from
5321     * @return The inlined image object, or NULL if none exists
5322     *
5323     * This function allows one to get the underlying @c Evas_Object of type
5324     * Image from this elementary widget. It can be useful to do things like get
5325     * the pixel data, save the image to a file, etc.
5326     *
5327     * @note Be careful to not manipulate it, as it is under control of
5328     * elementary.
5329     *
5330     * @ingroup Image
5331     */
5332    EAPI Evas_Object     *elm_image_object_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5333    /**
5334     * Set whether the original aspect ratio of the image should be kept on resize.
5335     *
5336     * @param obj The image object.
5337     * @param retained @c EINA_TRUE if the image should retain the aspect,
5338     * @c EINA_FALSE otherwise.
5339     *
5340     * The original aspect ratio (width / height) of the image is usually
5341     * distorted to match the object's size. Enabling this option will retain
5342     * this original aspect, and the way that the image is fit into the object's
5343     * area depends on the option set by elm_image_fill_outside_set().
5344     *
5345     * @see elm_image_aspect_ratio_retained_get()
5346     * @see elm_image_fill_outside_set()
5347     *
5348     * @ingroup Image
5349     */
5350    EAPI void             elm_image_aspect_ratio_retained_set(Evas_Object *obj, Eina_Bool retained) EINA_ARG_NONNULL(1);
5351    /**
5352     * Get if the object retains the original aspect ratio.
5353     *
5354     * @param obj The image object.
5355     * @return @c EINA_TRUE if the object keeps the original aspect, @c EINA_FALSE
5356     * otherwise.
5357     *
5358     * @ingroup Image
5359     */
5360    EAPI Eina_Bool        elm_image_aspect_ratio_retained_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5361
5362    /**
5363     * @}
5364     */
5365
5366    /* glview */
5367    typedef void (*Elm_GLView_Func_Cb)(Evas_Object *obj);
5368
5369    typedef enum _Elm_GLView_Mode
5370      {
5371         ELM_GLVIEW_ALPHA   = 1,
5372         ELM_GLVIEW_DEPTH   = 2,
5373         ELM_GLVIEW_STENCIL = 4
5374      } Elm_GLView_Mode;
5375
5376    /**
5377     * Defines a policy for the glview resizing.
5378     *
5379     * @note Default is ELM_GLVIEW_RESIZE_POLICY_RECREATE
5380     */
5381    typedef enum _Elm_GLView_Resize_Policy
5382      {
5383         ELM_GLVIEW_RESIZE_POLICY_RECREATE = 1,      /**< Resize the internal surface along with the image */
5384         ELM_GLVIEW_RESIZE_POLICY_SCALE    = 2       /**< Only reize the internal image and not the surface */
5385      } Elm_GLView_Resize_Policy;
5386
5387    typedef enum _Elm_GLView_Render_Policy
5388      {
5389         ELM_GLVIEW_RENDER_POLICY_ON_DEMAND = 1,     /**< Render only when there is a need for redrawing */
5390         ELM_GLVIEW_RENDER_POLICY_ALWAYS    = 2      /**< Render always even when it is not visible */
5391      } Elm_GLView_Render_Policy;
5392
5393    /**
5394     * @defgroup GLView
5395     *
5396     * A simple GLView widget that allows GL rendering.
5397     *
5398     * Signals that you can add callbacks for are:
5399     *
5400     * @{
5401     */
5402
5403    /**
5404     * Add a new glview to the parent
5405     *
5406     * @param parent The parent object
5407     * @return The new object or NULL if it cannot be created
5408     *
5409     * @ingroup GLView
5410     */
5411    EAPI Evas_Object     *elm_glview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5412
5413    /**
5414     * Sets the size of the glview
5415     *
5416     * @param obj The glview object
5417     * @param width width of the glview object
5418     * @param height height of the glview object
5419     *
5420     * @ingroup GLView
5421     */
5422    EAPI void             elm_glview_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
5423
5424    /**
5425     * Gets the size of the glview.
5426     *
5427     * @param obj The glview object
5428     * @param width width of the glview object
5429     * @param height height of the glview object
5430     *
5431     * Note that this function returns the actual image size of the
5432     * glview.  This means that when the scale policy is set to
5433     * ELM_GLVIEW_RESIZE_POLICY_SCALE, it'll return the non-scaled
5434     * size.
5435     *
5436     * @ingroup GLView
5437     */
5438    EAPI void             elm_glview_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
5439
5440    /**
5441     * Gets the gl api struct for gl rendering
5442     *
5443     * @param obj The glview object
5444     * @return The api object or NULL if it cannot be created
5445     *
5446     * @ingroup GLView
5447     */
5448    EAPI Evas_GL_API     *elm_glview_gl_api_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5449
5450    /**
5451     * Set the mode of the GLView. Supports Three simple modes.
5452     *
5453     * @param obj The glview object
5454     * @param mode The mode Options OR'ed enabling Alpha, Depth, Stencil.
5455     * @return True if set properly.
5456     *
5457     * @ingroup GLView
5458     */
5459    EAPI Eina_Bool        elm_glview_mode_set(Evas_Object *obj, Elm_GLView_Mode mode) EINA_ARG_NONNULL(1);
5460
5461    /**
5462     * Set the resize policy for the glview object.
5463     *
5464     * @param obj The glview object.
5465     * @param policy The scaling policy.
5466     *
5467     * By default, the resize policy is set to
5468     * ELM_GLVIEW_RESIZE_POLICY_RECREATE.  When resize is called it
5469     * destroys the previous surface and recreates the newly specified
5470     * size. If the policy is set to ELM_GLVIEW_RESIZE_POLICY_SCALE,
5471     * however, glview only scales the image object and not the underlying
5472     * GL Surface.
5473     *
5474     * @ingroup GLView
5475     */
5476    EAPI Eina_Bool        elm_glview_resize_policy_set(Evas_Object *obj, Elm_GLView_Resize_Policy policy) EINA_ARG_NONNULL(1);
5477
5478    /**
5479     * Set the render policy for the glview object.
5480     *
5481     * @param obj The glview object.
5482     * @param policy The render policy.
5483     *
5484     * By default, the render policy is set to
5485     * ELM_GLVIEW_RENDER_POLICY_ON_DEMAND.  This policy is set such
5486     * that during the render loop, glview is only redrawn if it needs
5487     * to be redrawn. (i.e. When it is visible) If the policy is set to
5488     * ELM_GLVIEWW_RENDER_POLICY_ALWAYS, it redraws regardless of
5489     * whether it is visible/need redrawing or not.
5490     *
5491     * @ingroup GLView
5492     */
5493    EAPI Eina_Bool        elm_glview_render_policy_set(Evas_Object *obj, Elm_GLView_Render_Policy policy) EINA_ARG_NONNULL(1);
5494
5495    /**
5496     * Set the init function that runs once in the main loop.
5497     *
5498     * @param obj The glview object.
5499     * @param func The init function to be registered.
5500     *
5501     * The registered init function gets called once during the render loop.
5502     *
5503     * @ingroup GLView
5504     */
5505    EAPI void             elm_glview_init_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5506
5507    /**
5508     * Set the render function that runs in the main loop.
5509     *
5510     * @param obj The glview object.
5511     * @param func The delete function to be registered.
5512     *
5513     * The registered del function gets called when GLView object is deleted.
5514     *
5515     * @ingroup GLView
5516     */
5517    EAPI void             elm_glview_del_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5518
5519    /**
5520     * Set the resize function that gets called when resize happens.
5521     *
5522     * @param obj The glview object.
5523     * @param func The resize function to be registered.
5524     *
5525     * @ingroup GLView
5526     */
5527    EAPI void             elm_glview_resize_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5528
5529    /**
5530     * Set the render function that runs in the main loop.
5531     *
5532     * @param obj The glview object.
5533     * @param func The render function to be registered.
5534     *
5535     * @ingroup GLView
5536     */
5537    EAPI void             elm_glview_render_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5538
5539    /**
5540     * Notifies that there has been changes in the GLView.
5541     *
5542     * @param obj The glview object.
5543     *
5544     * @ingroup GLView
5545     */
5546    EAPI void             elm_glview_changed_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
5547
5548    /**
5549     * @}
5550     */
5551
5552    /* box */
5553    /**
5554     * @defgroup Box Box
5555     *
5556     * @image html img/widget/box/preview-00.png
5557     * @image latex img/widget/box/preview-00.eps width=\textwidth
5558     *
5559     * @image html img/box.png
5560     * @image latex img/box.eps width=\textwidth
5561     *
5562     * A box arranges objects in a linear fashion, governed by a layout function
5563     * that defines the details of this arrangement.
5564     *
5565     * By default, the box will use an internal function to set the layout to
5566     * a single row, either vertical or horizontal. This layout is affected
5567     * by a number of parameters, such as the homogeneous flag set by
5568     * elm_box_homogeneous_set(), the values given by elm_box_padding_set() and
5569     * elm_box_align_set() and the hints set to each object in the box.
5570     *
5571     * For this default layout, it's possible to change the orientation with
5572     * elm_box_horizontal_set(). The box will start in the vertical orientation,
5573     * placing its elements ordered from top to bottom. When horizontal is set,
5574     * the order will go from left to right. If the box is set to be
5575     * homogeneous, every object in it will be assigned the same space, that
5576     * of the largest object. Padding can be used to set some spacing between
5577     * the cell given to each object. The alignment of the box, set with
5578     * elm_box_align_set(), determines how the bounding box of all the elements
5579     * will be placed within the space given to the box widget itself.
5580     *
5581     * The size hints of each object also affect how they are placed and sized
5582     * within the box. evas_object_size_hint_min_set() will give the minimum
5583     * size the object can have, and the box will use it as the basis for all
5584     * latter calculations. Elementary widgets set their own minimum size as
5585     * needed, so there's rarely any need to use it manually.
5586     *
5587     * evas_object_size_hint_weight_set(), when not in homogeneous mode, is
5588     * used to tell whether the object will be allocated the minimum size it
5589     * needs or if the space given to it should be expanded. It's important
5590     * to realize that expanding the size given to the object is not the same
5591     * thing as resizing the object. It could very well end being a small
5592     * widget floating in a much larger empty space. If not set, the weight
5593     * for objects will normally be 0.0 for both axis, meaning the widget will
5594     * not be expanded. To take as much space possible, set the weight to
5595     * EVAS_HINT_EXPAND (defined to 1.0) for the desired axis to expand.
5596     *
5597     * Besides how much space each object is allocated, it's possible to control
5598     * how the widget will be placed within that space using
5599     * evas_object_size_hint_align_set(). By default, this value will be 0.5
5600     * for both axis, meaning the object will be centered, but any value from
5601     * 0.0 (left or top, for the @c x and @c y axis, respectively) to 1.0
5602     * (right or bottom) can be used. The special value EVAS_HINT_FILL, which
5603     * is -1.0, means the object will be resized to fill the entire space it
5604     * was allocated.
5605     *
5606     * In addition, customized functions to define the layout can be set, which
5607     * allow the application developer to organize the objects within the box
5608     * in any number of ways.
5609     *
5610     * The special elm_box_layout_transition() function can be used
5611     * to switch from one layout to another, animating the motion of the
5612     * children of the box.
5613     *
5614     * @note Objects should not be added to box objects using _add() calls.
5615     *
5616     * Some examples on how to use boxes follow:
5617     * @li @ref box_example_01
5618     * @li @ref box_example_02
5619     *
5620     * @{
5621     */
5622    /**
5623     * @typedef Elm_Box_Transition
5624     *
5625     * Opaque handler containing the parameters to perform an animated
5626     * transition of the layout the box uses.
5627     *
5628     * @see elm_box_transition_new()
5629     * @see elm_box_layout_set()
5630     * @see elm_box_layout_transition()
5631     */
5632    typedef struct _Elm_Box_Transition Elm_Box_Transition;
5633
5634    /**
5635     * Add a new box to the parent
5636     *
5637     * By default, the box will be in vertical mode and non-homogeneous.
5638     *
5639     * @param parent The parent object
5640     * @return The new object or NULL if it cannot be created
5641     */
5642    EAPI Evas_Object        *elm_box_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5643    /**
5644     * Set the horizontal orientation
5645     *
5646     * By default, box object arranges their contents vertically from top to
5647     * bottom.
5648     * By calling this function with @p horizontal as EINA_TRUE, the box will
5649     * become horizontal, arranging contents from left to right.
5650     *
5651     * @note This flag is ignored if a custom layout function is set.
5652     *
5653     * @param obj The box object
5654     * @param horizontal The horizontal flag (EINA_TRUE = horizontal,
5655     * EINA_FALSE = vertical)
5656     */
5657    EAPI void                elm_box_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
5658    /**
5659     * Get the horizontal orientation
5660     *
5661     * @param obj The box object
5662     * @return EINA_TRUE if the box is set to horizontal mode, EINA_FALSE otherwise
5663     */
5664    EAPI Eina_Bool           elm_box_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5665    /**
5666     * Set the box to arrange its children homogeneously
5667     *
5668     * If enabled, homogeneous layout makes all items the same size, according
5669     * to the size of the largest of its children.
5670     *
5671     * @note This flag is ignored if a custom layout function is set.
5672     *
5673     * @param obj The box object
5674     * @param homogeneous The homogeneous flag
5675     */
5676    EAPI void                elm_box_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
5677    /**
5678     * Get whether the box is using homogeneous mode or not
5679     *
5680     * @param obj The box object
5681     * @return EINA_TRUE if it's homogeneous, EINA_FALSE otherwise
5682     */
5683    EAPI Eina_Bool           elm_box_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5684    EINA_DEPRECATED EAPI void elm_box_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
5685    EINA_DEPRECATED EAPI Eina_Bool elm_box_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5686    /**
5687     * Add an object to the beginning of the pack list
5688     *
5689     * Pack @p subobj into the box @p obj, placing it first in the list of
5690     * children objects. The actual position the object will get on screen
5691     * depends on the layout used. If no custom layout is set, it will be at
5692     * the top or left, depending if the box is vertical or horizontal,
5693     * respectively.
5694     *
5695     * @param obj The box object
5696     * @param subobj The object to add to the box
5697     *
5698     * @see elm_box_pack_end()
5699     * @see elm_box_pack_before()
5700     * @see elm_box_pack_after()
5701     * @see elm_box_unpack()
5702     * @see elm_box_unpack_all()
5703     * @see elm_box_clear()
5704     */
5705    EAPI void                elm_box_pack_start(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5706    /**
5707     * Add an object at the end of the pack list
5708     *
5709     * Pack @p subobj into the box @p obj, placing it last in the list of
5710     * children objects. The actual position the object will get on screen
5711     * depends on the layout used. If no custom layout is set, it will be at
5712     * the bottom or right, depending if the box is vertical or horizontal,
5713     * respectively.
5714     *
5715     * @param obj The box object
5716     * @param subobj The object to add to the box
5717     *
5718     * @see elm_box_pack_start()
5719     * @see elm_box_pack_before()
5720     * @see elm_box_pack_after()
5721     * @see elm_box_unpack()
5722     * @see elm_box_unpack_all()
5723     * @see elm_box_clear()
5724     */
5725    EAPI void                elm_box_pack_end(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5726    /**
5727     * Adds an object to the box before the indicated object
5728     *
5729     * This will add the @p subobj to the box indicated before the object
5730     * indicated with @p before. If @p before is not already in the box, results
5731     * are undefined. Before means either to the left of the indicated object or
5732     * above it depending on orientation.
5733     *
5734     * @param obj The box object
5735     * @param subobj The object to add to the box
5736     * @param before The object before which to add it
5737     *
5738     * @see elm_box_pack_start()
5739     * @see elm_box_pack_end()
5740     * @see elm_box_pack_after()
5741     * @see elm_box_unpack()
5742     * @see elm_box_unpack_all()
5743     * @see elm_box_clear()
5744     */
5745    EAPI void                elm_box_pack_before(Evas_Object *obj, Evas_Object *subobj, Evas_Object *before) EINA_ARG_NONNULL(1);
5746    /**
5747     * Adds an object to the box after the indicated object
5748     *
5749     * This will add the @p subobj to the box indicated after the object
5750     * indicated with @p after. If @p after is not already in the box, results
5751     * are undefined. After means either to the right of the indicated object or
5752     * below it depending on orientation.
5753     *
5754     * @param obj The box object
5755     * @param subobj The object to add to the box
5756     * @param after The object after which to add it
5757     *
5758     * @see elm_box_pack_start()
5759     * @see elm_box_pack_end()
5760     * @see elm_box_pack_before()
5761     * @see elm_box_unpack()
5762     * @see elm_box_unpack_all()
5763     * @see elm_box_clear()
5764     */
5765    EAPI void                elm_box_pack_after(Evas_Object *obj, Evas_Object *subobj, Evas_Object *after) EINA_ARG_NONNULL(1);
5766    /**
5767     * Clear the box of all children
5768     *
5769     * Remove all the elements contained by the box, deleting the respective
5770     * objects.
5771     *
5772     * @param obj The box object
5773     *
5774     * @see elm_box_unpack()
5775     * @see elm_box_unpack_all()
5776     */
5777    EAPI void                elm_box_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
5778    /**
5779     * Unpack a box item
5780     *
5781     * Remove the object given by @p subobj from the box @p obj without
5782     * deleting it.
5783     *
5784     * @param obj The box object
5785     *
5786     * @see elm_box_unpack_all()
5787     * @see elm_box_clear()
5788     */
5789    EAPI void                elm_box_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5790    /**
5791     * Remove all items from the box, without deleting them
5792     *
5793     * Clear the box from all children, but don't delete the respective objects.
5794     * If no other references of the box children exist, the objects will never
5795     * be deleted, and thus the application will leak the memory. Make sure
5796     * when using this function that you hold a reference to all the objects
5797     * in the box @p obj.
5798     *
5799     * @param obj The box object
5800     *
5801     * @see elm_box_clear()
5802     * @see elm_box_unpack()
5803     */
5804    EAPI void                elm_box_unpack_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
5805    /**
5806     * Retrieve a list of the objects packed into the box
5807     *
5808     * Returns a new @c Eina_List with a pointer to @c Evas_Object in its nodes.
5809     * The order of the list corresponds to the packing order the box uses.
5810     *
5811     * You must free this list with eina_list_free() once you are done with it.
5812     *
5813     * @param obj The box object
5814     */
5815    EAPI const Eina_List    *elm_box_children_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5816    /**
5817     * Set the space (padding) between the box's elements.
5818     *
5819     * Extra space in pixels that will be added between a box child and its
5820     * neighbors after its containing cell has been calculated. This padding
5821     * is set for all elements in the box, besides any possible padding that
5822     * individual elements may have through their size hints.
5823     *
5824     * @param obj The box object
5825     * @param horizontal The horizontal space between elements
5826     * @param vertical The vertical space between elements
5827     */
5828    EAPI void                elm_box_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
5829    /**
5830     * Get the space (padding) between the box's elements.
5831     *
5832     * @param obj The box object
5833     * @param horizontal The horizontal space between elements
5834     * @param vertical The vertical space between elements
5835     *
5836     * @see elm_box_padding_set()
5837     */
5838    EAPI void                elm_box_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
5839    /**
5840     * Set the alignment of the whole bouding box of contents.
5841     *
5842     * Sets how the bounding box containing all the elements of the box, after
5843     * their sizes and position has been calculated, will be aligned within
5844     * the space given for the whole box widget.
5845     *
5846     * @param obj The box object
5847     * @param horizontal The horizontal alignment of elements
5848     * @param vertical The vertical alignment of elements
5849     */
5850    EAPI void                elm_box_align_set(Evas_Object *obj, double horizontal, double vertical) EINA_ARG_NONNULL(1);
5851    /**
5852     * Get the alignment of the whole bouding box of contents.
5853     *
5854     * @param obj The box object
5855     * @param horizontal The horizontal alignment of elements
5856     * @param vertical The vertical alignment of elements
5857     *
5858     * @see elm_box_align_set()
5859     */
5860    EAPI void                elm_box_align_get(const Evas_Object *obj, double *horizontal, double *vertical) EINA_ARG_NONNULL(1);
5861
5862    /**
5863     * Force the box to recalculate its children packing.
5864     *
5865     * If any children was added or removed, box will not calculate the
5866     * values immediately rather leaving it to the next main loop
5867     * iteration. While this is great as it would save lots of
5868     * recalculation, whenever you need to get the position of a just
5869     * added item you must force recalculate before doing so.
5870     *
5871     * @param obj The box object.
5872     */
5873    EAPI void                 elm_box_recalculate(Evas_Object *obj);
5874
5875    /**
5876     * Set the layout defining function to be used by the box
5877     *
5878     * Whenever anything changes that requires the box in @p obj to recalculate
5879     * the size and position of its elements, the function @p cb will be called
5880     * to determine what the layout of the children will be.
5881     *
5882     * Once a custom function is set, everything about the children layout
5883     * is defined by it. The flags set by elm_box_horizontal_set() and
5884     * elm_box_homogeneous_set() no longer have any meaning, and the values
5885     * given by elm_box_padding_set() and elm_box_align_set() are up to this
5886     * layout function to decide if they are used and how. These last two
5887     * will be found in the @c priv parameter, of type @c Evas_Object_Box_Data,
5888     * passed to @p cb. The @c Evas_Object the function receives is not the
5889     * Elementary widget, but the internal Evas Box it uses, so none of the
5890     * functions described here can be used on it.
5891     *
5892     * Any of the layout functions in @c Evas can be used here, as well as the
5893     * special elm_box_layout_transition().
5894     *
5895     * The final @p data argument received by @p cb is the same @p data passed
5896     * here, and the @p free_data function will be called to free it
5897     * whenever the box is destroyed or another layout function is set.
5898     *
5899     * Setting @p cb to NULL will revert back to the default layout function.
5900     *
5901     * @param obj The box object
5902     * @param cb The callback function used for layout
5903     * @param data Data that will be passed to layout function
5904     * @param free_data Function called to free @p data
5905     *
5906     * @see elm_box_layout_transition()
5907     */
5908    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);
5909    /**
5910     * Special layout function that animates the transition from one layout to another
5911     *
5912     * Normally, when switching the layout function for a box, this will be
5913     * reflected immediately on screen on the next render, but it's also
5914     * possible to do this through an animated transition.
5915     *
5916     * This is done by creating an ::Elm_Box_Transition and setting the box
5917     * layout to this function.
5918     *
5919     * For example:
5920     * @code
5921     * Elm_Box_Transition *t = elm_box_transition_new(1.0,
5922     *                            evas_object_box_layout_vertical, // start
5923     *                            NULL, // data for initial layout
5924     *                            NULL, // free function for initial data
5925     *                            evas_object_box_layout_horizontal, // end
5926     *                            NULL, // data for final layout
5927     *                            NULL, // free function for final data
5928     *                            anim_end, // will be called when animation ends
5929     *                            NULL); // data for anim_end function\
5930     * elm_box_layout_set(box, elm_box_layout_transition, t,
5931     *                    elm_box_transition_free);
5932     * @endcode
5933     *
5934     * @note This function can only be used with elm_box_layout_set(). Calling
5935     * it directly will not have the expected results.
5936     *
5937     * @see elm_box_transition_new
5938     * @see elm_box_transition_free
5939     * @see elm_box_layout_set
5940     */
5941    EAPI void                elm_box_layout_transition(Evas_Object *obj, Evas_Object_Box_Data *priv, void *data);
5942    /**
5943     * Create a new ::Elm_Box_Transition to animate the switch of layouts
5944     *
5945     * If you want to animate the change from one layout to another, you need
5946     * to set the layout function of the box to elm_box_layout_transition(),
5947     * passing as user data to it an instance of ::Elm_Box_Transition with the
5948     * necessary information to perform this animation. The free function to
5949     * set for the layout is elm_box_transition_free().
5950     *
5951     * The parameters to create an ::Elm_Box_Transition sum up to how long
5952     * will it be, in seconds, a layout function to describe the initial point,
5953     * another for the final position of the children and one function to be
5954     * called when the whole animation ends. This last function is useful to
5955     * set the definitive layout for the box, usually the same as the end
5956     * layout for the animation, but could be used to start another transition.
5957     *
5958     * @param start_layout The layout function that will be used to start the animation
5959     * @param start_layout_data The data to be passed the @p start_layout function
5960     * @param start_layout_free_data Function to free @p start_layout_data
5961     * @param end_layout The layout function that will be used to end the animation
5962     * @param end_layout_free_data The data to be passed the @p end_layout function
5963     * @param end_layout_free_data Function to free @p end_layout_data
5964     * @param transition_end_cb Callback function called when animation ends
5965     * @param transition_end_data Data to be passed to @p transition_end_cb
5966     * @return An instance of ::Elm_Box_Transition
5967     *
5968     * @see elm_box_transition_new
5969     * @see elm_box_layout_transition
5970     */
5971    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);
5972    /**
5973     * Free a Elm_Box_Transition instance created with elm_box_transition_new().
5974     *
5975     * This function is mostly useful as the @c free_data parameter in
5976     * elm_box_layout_set() when elm_box_layout_transition().
5977     *
5978     * @param data The Elm_Box_Transition instance to be freed.
5979     *
5980     * @see elm_box_transition_new
5981     * @see elm_box_layout_transition
5982     */
5983    EAPI void                elm_box_transition_free(void *data);
5984    /**
5985     * @}
5986     */
5987
5988    /* button */
5989    /**
5990     * @defgroup Button Button
5991     *
5992     * @image html img/widget/button/preview-00.png
5993     * @image latex img/widget/button/preview-00.eps
5994     * @image html img/widget/button/preview-01.png
5995     * @image latex img/widget/button/preview-01.eps
5996     * @image html img/widget/button/preview-02.png
5997     * @image latex img/widget/button/preview-02.eps
5998     *
5999     * This is a push-button. Press it and run some function. It can contain
6000     * a simple label and icon object and it also has an autorepeat feature.
6001     *
6002     * This widgets emits the following signals:
6003     * @li "clicked": the user clicked the button (press/release).
6004     * @li "repeated": the user pressed the button without releasing it.
6005     * @li "pressed": button was pressed.
6006     * @li "unpressed": button was released after being pressed.
6007     * In all three cases, the @c event parameter of the callback will be
6008     * @c NULL.
6009     *
6010     * Also, defined in the default theme, the button has the following styles
6011     * available:
6012     * @li default: a normal button.
6013     * @li anchor: Like default, but the button fades away when the mouse is not
6014     * over it, leaving only the text or icon.
6015     * @li hoversel_vertical: Internally used by @ref Hoversel to give a
6016     * continuous look across its options.
6017     * @li hoversel_vertical_entry: Another internal for @ref Hoversel.
6018     *
6019     * Follow through a complete example @ref button_example_01 "here".
6020     * @{
6021     */
6022    /**
6023     * Add a new button to the parent's canvas
6024     *
6025     * @param parent The parent object
6026     * @return The new object or NULL if it cannot be created
6027     */
6028    EAPI Evas_Object *elm_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6029    /**
6030     * Set the label used in the button
6031     *
6032     * The passed @p label can be NULL to clean any existing text in it and
6033     * leave the button as an icon only object.
6034     *
6035     * @param obj The button object
6036     * @param label The text will be written on the button
6037     * @deprecated use elm_object_text_set() instead.
6038     */
6039    EINA_DEPRECATED EAPI void         elm_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6040    /**
6041     * Get the label set for the button
6042     *
6043     * The string returned is an internal pointer and should not be freed or
6044     * altered. It will also become invalid when the button is destroyed.
6045     * The string returned, if not NULL, is a stringshare, so if you need to
6046     * keep it around even after the button is destroyed, you can use
6047     * eina_stringshare_ref().
6048     *
6049     * @param obj The button object
6050     * @return The text set to the label, or NULL if nothing is set
6051     * @deprecated use elm_object_text_set() instead.
6052     */
6053    EINA_DEPRECATED EAPI const char  *elm_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6054    /**
6055     * Set the icon used for the button
6056     *
6057     * Setting a new icon will delete any other that was previously set, making
6058     * any reference to them invalid. If you need to maintain the previous
6059     * object alive, unset it first with elm_button_icon_unset().
6060     *
6061     * @param obj The button object
6062     * @param icon The icon object for the button
6063     */
6064    EAPI void         elm_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6065    /**
6066     * Get the icon used for the button
6067     *
6068     * Return the icon object which is set for this widget. If the button is
6069     * destroyed or another icon is set, the returned object will be deleted
6070     * and any reference to it will be invalid.
6071     *
6072     * @param obj The button object
6073     * @return The icon object that is being used
6074     *
6075     * @see elm_button_icon_unset()
6076     */
6077    EAPI Evas_Object *elm_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6078    /**
6079     * Remove the icon set without deleting it and return the object
6080     *
6081     * This function drops the reference the button holds of the icon object
6082     * and returns this last object. It is used in case you want to remove any
6083     * icon, or set another one, without deleting the actual object. The button
6084     * will be left without an icon set.
6085     *
6086     * @param obj The button object
6087     * @return The icon object that was being used
6088     */
6089    EAPI Evas_Object *elm_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6090    /**
6091     * Turn on/off the autorepeat event generated when the button is kept pressed
6092     *
6093     * When off, no autorepeat is performed and buttons emit a normal @c clicked
6094     * signal when they are clicked.
6095     *
6096     * When on, keeping a button pressed will continuously emit a @c repeated
6097     * signal until the button is released. The time it takes until it starts
6098     * emitting the signal is given by
6099     * elm_button_autorepeat_initial_timeout_set(), and the time between each
6100     * new emission by elm_button_autorepeat_gap_timeout_set().
6101     *
6102     * @param obj The button object
6103     * @param on  A bool to turn on/off the event
6104     */
6105    EAPI void         elm_button_autorepeat_set(Evas_Object *obj, Eina_Bool on) EINA_ARG_NONNULL(1);
6106    /**
6107     * Get whether the autorepeat feature is enabled
6108     *
6109     * @param obj The button object
6110     * @return EINA_TRUE if autorepeat is on, EINA_FALSE otherwise
6111     *
6112     * @see elm_button_autorepeat_set()
6113     */
6114    EAPI Eina_Bool    elm_button_autorepeat_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6115    /**
6116     * Set the initial timeout before the autorepeat event is generated
6117     *
6118     * Sets the timeout, in seconds, since the button is pressed until the
6119     * first @c repeated signal is emitted. If @p t is 0.0 or less, there
6120     * won't be any delay and the even will be fired the moment the button is
6121     * pressed.
6122     *
6123     * @param obj The button object
6124     * @param t   Timeout in seconds
6125     *
6126     * @see elm_button_autorepeat_set()
6127     * @see elm_button_autorepeat_gap_timeout_set()
6128     */
6129    EAPI void         elm_button_autorepeat_initial_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
6130    /**
6131     * Get the initial timeout before the autorepeat event is generated
6132     *
6133     * @param obj The button object
6134     * @return Timeout in seconds
6135     *
6136     * @see elm_button_autorepeat_initial_timeout_set()
6137     */
6138    EAPI double       elm_button_autorepeat_initial_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6139    /**
6140     * Set the interval between each generated autorepeat event
6141     *
6142     * After the first @c repeated event is fired, all subsequent ones will
6143     * follow after a delay of @p t seconds for each.
6144     *
6145     * @param obj The button object
6146     * @param t   Interval in seconds
6147     *
6148     * @see elm_button_autorepeat_initial_timeout_set()
6149     */
6150    EAPI void         elm_button_autorepeat_gap_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
6151    /**
6152     * Get the interval between each generated autorepeat event
6153     *
6154     * @param obj The button object
6155     * @return Interval in seconds
6156     */
6157    EAPI double       elm_button_autorepeat_gap_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6158    /**
6159     * @}
6160     */
6161
6162    /**
6163     * @defgroup File_Selector_Button File Selector Button
6164     *
6165     * @image html img/widget/fileselector_button/preview-00.png
6166     * @image latex img/widget/fileselector_button/preview-00.eps
6167     * @image html img/widget/fileselector_button/preview-01.png
6168     * @image latex img/widget/fileselector_button/preview-01.eps
6169     * @image html img/widget/fileselector_button/preview-02.png
6170     * @image latex img/widget/fileselector_button/preview-02.eps
6171     *
6172     * This is a button that, when clicked, creates an Elementary
6173     * window (or inner window) <b> with a @ref Fileselector "file
6174     * selector widget" within</b>. When a file is chosen, the (inner)
6175     * window is closed and the button emits a signal having the
6176     * selected file as it's @c event_info.
6177     *
6178     * This widget encapsulates operations on its internal file
6179     * selector on its own API. There is less control over its file
6180     * selector than that one would have instatiating one directly.
6181     *
6182     * The following styles are available for this button:
6183     * @li @c "default"
6184     * @li @c "anchor"
6185     * @li @c "hoversel_vertical"
6186     * @li @c "hoversel_vertical_entry"
6187     *
6188     * Smart callbacks one can register to:
6189     * - @c "file,chosen" - the user has selected a path, whose string
6190     *   pointer comes as the @c event_info data (a stringshared
6191     *   string)
6192     *
6193     * Here is an example on its usage:
6194     * @li @ref fileselector_button_example
6195     *
6196     * @see @ref File_Selector_Entry for a similar widget.
6197     * @{
6198     */
6199
6200    /**
6201     * Add a new file selector button widget to the given parent
6202     * Elementary (container) object
6203     *
6204     * @param parent The parent object
6205     * @return a new file selector button widget handle or @c NULL, on
6206     * errors
6207     */
6208    EAPI Evas_Object *elm_fileselector_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6209
6210    /**
6211     * Set the label for a given file selector button widget
6212     *
6213     * @param obj The file selector button widget
6214     * @param label The text label to be displayed on @p obj
6215     *
6216     * @deprecated use elm_object_text_set() instead.
6217     */
6218    EINA_DEPRECATED EAPI void         elm_fileselector_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6219
6220    /**
6221     * Get the label set for a given file selector button widget
6222     *
6223     * @param obj The file selector button widget
6224     * @return The button label
6225     *
6226     * @deprecated use elm_object_text_set() instead.
6227     */
6228    EINA_DEPRECATED EAPI const char  *elm_fileselector_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6229
6230    /**
6231     * Set the icon on a given file selector button widget
6232     *
6233     * @param obj The file selector button widget
6234     * @param icon The icon object for the button
6235     *
6236     * Once the icon object is set, a previously set one will be
6237     * deleted. If you want to keep the latter, use the
6238     * elm_fileselector_button_icon_unset() function.
6239     *
6240     * @see elm_fileselector_button_icon_get()
6241     */
6242    EAPI void         elm_fileselector_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6243
6244    /**
6245     * Get the icon set for a given file selector button widget
6246     *
6247     * @param obj The file selector button widget
6248     * @return The icon object currently set on @p obj or @c NULL, if
6249     * none is
6250     *
6251     * @see elm_fileselector_button_icon_set()
6252     */
6253    EAPI Evas_Object *elm_fileselector_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6254
6255    /**
6256     * Unset the icon used in a given file selector button widget
6257     *
6258     * @param obj The file selector button widget
6259     * @return The icon object that was being used on @p obj or @c
6260     * NULL, on errors
6261     *
6262     * Unparent and return the icon object which was set for this
6263     * widget.
6264     *
6265     * @see elm_fileselector_button_icon_set()
6266     */
6267    EAPI Evas_Object *elm_fileselector_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6268
6269    /**
6270     * Set the title for a given file selector button widget's window
6271     *
6272     * @param obj The file selector button widget
6273     * @param title The title string
6274     *
6275     * This will change the window's title, when the file selector pops
6276     * out after a click on the button. Those windows have the default
6277     * (unlocalized) value of @c "Select a file" as titles.
6278     *
6279     * @note It will only take any effect if the file selector
6280     * button widget is @b not under "inwin mode".
6281     *
6282     * @see elm_fileselector_button_window_title_get()
6283     */
6284    EAPI void         elm_fileselector_button_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
6285
6286    /**
6287     * Get the title set for a given file selector button widget's
6288     * window
6289     *
6290     * @param obj The file selector button widget
6291     * @return Title of the file selector button's window
6292     *
6293     * @see elm_fileselector_button_window_title_get() for more details
6294     */
6295    EAPI const char  *elm_fileselector_button_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6296
6297    /**
6298     * Set the size of a given file selector button widget's window,
6299     * holding the file selector itself.
6300     *
6301     * @param obj The file selector button widget
6302     * @param width The window's width
6303     * @param height The window's height
6304     *
6305     * @note it will only take any effect if the file selector button
6306     * widget is @b not under "inwin mode". The default size for the
6307     * window (when applicable) is 400x400 pixels.
6308     *
6309     * @see elm_fileselector_button_window_size_get()
6310     */
6311    EAPI void         elm_fileselector_button_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6312
6313    /**
6314     * Get the size of a given file selector button widget's window,
6315     * holding the file selector itself.
6316     *
6317     * @param obj The file selector button widget
6318     * @param width Pointer into which to store the width value
6319     * @param height Pointer into which to store the height value
6320     *
6321     * @note Use @c NULL pointers on the size values you're not
6322     * interested in: they'll be ignored by the function.
6323     *
6324     * @see elm_fileselector_button_window_size_set(), for more details
6325     */
6326    EAPI void         elm_fileselector_button_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6327
6328    /**
6329     * Set the initial file system path for a given file selector
6330     * button widget
6331     *
6332     * @param obj The file selector button widget
6333     * @param path The path string
6334     *
6335     * It must be a <b>directory</b> path, which will have the contents
6336     * displayed initially in the file selector's view, when invoked
6337     * from @p obj. The default initial path is the @c "HOME"
6338     * environment variable's value.
6339     *
6340     * @see elm_fileselector_button_path_get()
6341     */
6342    EAPI void         elm_fileselector_button_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6343
6344    /**
6345     * Get the initial file system path set for a given file selector
6346     * button widget
6347     *
6348     * @param obj The file selector button widget
6349     * @return path The path string
6350     *
6351     * @see elm_fileselector_button_path_set() for more details
6352     */
6353    EAPI const char  *elm_fileselector_button_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6354
6355    /**
6356     * Enable/disable a tree view in the given file selector button
6357     * widget's internal file selector
6358     *
6359     * @param obj The file selector button widget
6360     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
6361     * disable
6362     *
6363     * This has the same effect as elm_fileselector_expandable_set(),
6364     * but now applied to a file selector button's internal file
6365     * selector.
6366     *
6367     * @note There's no way to put a file selector button's internal
6368     * file selector in "grid mode", as one may do with "pure" file
6369     * selectors.
6370     *
6371     * @see elm_fileselector_expandable_get()
6372     */
6373    EAPI void         elm_fileselector_button_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6374
6375    /**
6376     * Get whether tree view is enabled for the given file selector
6377     * button widget's internal file selector
6378     *
6379     * @param obj The file selector button widget
6380     * @return @c EINA_TRUE if @p obj widget's internal file selector
6381     * is in tree view, @c EINA_FALSE otherwise (and or errors)
6382     *
6383     * @see elm_fileselector_expandable_set() for more details
6384     */
6385    EAPI Eina_Bool    elm_fileselector_button_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6386
6387    /**
6388     * Set whether a given file selector button widget's internal file
6389     * selector is to display folders only or the directory contents,
6390     * as well.
6391     *
6392     * @param obj The file selector button widget
6393     * @param only @c EINA_TRUE to make @p obj widget's internal file
6394     * selector only display directories, @c EINA_FALSE to make files
6395     * to be displayed in it too
6396     *
6397     * This has the same effect as elm_fileselector_folder_only_set(),
6398     * but now applied to a file selector button's internal file
6399     * selector.
6400     *
6401     * @see elm_fileselector_folder_only_get()
6402     */
6403    EAPI void         elm_fileselector_button_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6404
6405    /**
6406     * Get whether a given file selector button widget's internal file
6407     * selector is displaying folders only or the directory contents,
6408     * as well.
6409     *
6410     * @param obj The file selector button widget
6411     * @return @c EINA_TRUE if @p obj widget's internal file
6412     * selector is only displaying directories, @c EINA_FALSE if files
6413     * are being displayed in it too (and on errors)
6414     *
6415     * @see elm_fileselector_button_folder_only_set() for more details
6416     */
6417    EAPI Eina_Bool    elm_fileselector_button_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6418
6419    /**
6420     * Enable/disable the file name entry box where the user can type
6421     * in a name for a file, in a given file selector button widget's
6422     * internal file selector.
6423     *
6424     * @param obj The file selector button widget
6425     * @param is_save @c EINA_TRUE to make @p obj widget's internal
6426     * file selector a "saving dialog", @c EINA_FALSE otherwise
6427     *
6428     * This has the same effect as elm_fileselector_is_save_set(),
6429     * but now applied to a file selector button's internal file
6430     * selector.
6431     *
6432     * @see elm_fileselector_is_save_get()
6433     */
6434    EAPI void         elm_fileselector_button_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6435
6436    /**
6437     * Get whether the given file selector button widget's internal
6438     * file selector is in "saving dialog" mode
6439     *
6440     * @param obj The file selector button widget
6441     * @return @c EINA_TRUE, if @p obj widget's internal file selector
6442     * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
6443     * errors)
6444     *
6445     * @see elm_fileselector_button_is_save_set() for more details
6446     */
6447    EAPI Eina_Bool    elm_fileselector_button_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6448
6449    /**
6450     * Set whether a given file selector button widget's internal file
6451     * selector will raise an Elementary "inner window", instead of a
6452     * dedicated Elementary window. By default, it won't.
6453     *
6454     * @param obj The file selector button widget
6455     * @param value @c EINA_TRUE to make it use an inner window, @c
6456     * EINA_TRUE to make it use a dedicated window
6457     *
6458     * @see elm_win_inwin_add() for more information on inner windows
6459     * @see elm_fileselector_button_inwin_mode_get()
6460     */
6461    EAPI void         elm_fileselector_button_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6462
6463    /**
6464     * Get whether a given file selector button widget's internal file
6465     * selector will raise an Elementary "inner window", instead of a
6466     * dedicated Elementary window.
6467     *
6468     * @param obj The file selector button widget
6469     * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
6470     * if it will use a dedicated window
6471     *
6472     * @see elm_fileselector_button_inwin_mode_set() for more details
6473     */
6474    EAPI Eina_Bool    elm_fileselector_button_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6475
6476    /**
6477     * @}
6478     */
6479
6480     /**
6481     * @defgroup File_Selector_Entry File Selector Entry
6482     *
6483     * @image html img/widget/fileselector_entry/preview-00.png
6484     * @image latex img/widget/fileselector_entry/preview-00.eps
6485     *
6486     * This is an entry made to be filled with or display a <b>file
6487     * system path string</b>. Besides the entry itself, the widget has
6488     * a @ref File_Selector_Button "file selector button" on its side,
6489     * which will raise an internal @ref Fileselector "file selector widget",
6490     * when clicked, for path selection aided by file system
6491     * navigation.
6492     *
6493     * This file selector may appear in an Elementary window or in an
6494     * inner window. When a file is chosen from it, the (inner) window
6495     * is closed and the selected file's path string is exposed both as
6496     * an smart event and as the new text on the entry.
6497     *
6498     * This widget encapsulates operations on its internal file
6499     * selector on its own API. There is less control over its file
6500     * selector than that one would have instatiating one directly.
6501     *
6502     * Smart callbacks one can register to:
6503     * - @c "changed" - The text within the entry was changed
6504     * - @c "activated" - The entry has had editing finished and
6505     *   changes are to be "committed"
6506     * - @c "press" - The entry has been clicked
6507     * - @c "longpressed" - The entry has been clicked (and held) for a
6508     *   couple seconds
6509     * - @c "clicked" - The entry has been clicked
6510     * - @c "clicked,double" - The entry has been double clicked
6511     * - @c "focused" - The entry has received focus
6512     * - @c "unfocused" - The entry has lost focus
6513     * - @c "selection,paste" - A paste action has occurred on the
6514     *   entry
6515     * - @c "selection,copy" - A copy action has occurred on the entry
6516     * - @c "selection,cut" - A cut action has occurred on the entry
6517     * - @c "unpressed" - The file selector entry's button was released
6518     *   after being pressed.
6519     * - @c "file,chosen" - The user has selected a path via the file
6520     *   selector entry's internal file selector, whose string pointer
6521     *   comes as the @c event_info data (a stringshared string)
6522     *
6523     * Here is an example on its usage:
6524     * @li @ref fileselector_entry_example
6525     *
6526     * @see @ref File_Selector_Button for a similar widget.
6527     * @{
6528     */
6529
6530    /**
6531     * Add a new file selector entry widget to the given parent
6532     * Elementary (container) object
6533     *
6534     * @param parent The parent object
6535     * @return a new file selector entry widget handle or @c NULL, on
6536     * errors
6537     */
6538    EAPI Evas_Object *elm_fileselector_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6539
6540    /**
6541     * Set the label for a given file selector entry widget's button
6542     *
6543     * @param obj The file selector entry widget
6544     * @param label The text label to be displayed on @p obj widget's
6545     * button
6546     *
6547     * @deprecated use elm_object_text_set() instead.
6548     */
6549    EINA_DEPRECATED EAPI void         elm_fileselector_entry_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6550
6551    /**
6552     * Get the label set for a given file selector entry widget's button
6553     *
6554     * @param obj The file selector entry widget
6555     * @return The widget button's label
6556     *
6557     * @deprecated use elm_object_text_set() instead.
6558     */
6559    EINA_DEPRECATED EAPI const char  *elm_fileselector_entry_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6560
6561    /**
6562     * Set the icon on a given file selector entry widget's button
6563     *
6564     * @param obj The file selector entry widget
6565     * @param icon The icon object for the entry's button
6566     *
6567     * Once the icon object is set, a previously set one will be
6568     * deleted. If you want to keep the latter, use the
6569     * elm_fileselector_entry_button_icon_unset() function.
6570     *
6571     * @see elm_fileselector_entry_button_icon_get()
6572     */
6573    EAPI void         elm_fileselector_entry_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6574
6575    /**
6576     * Get the icon set for a given file selector entry widget's button
6577     *
6578     * @param obj The file selector entry widget
6579     * @return The icon object currently set on @p obj widget's button
6580     * or @c NULL, if none is
6581     *
6582     * @see elm_fileselector_entry_button_icon_set()
6583     */
6584    EAPI Evas_Object *elm_fileselector_entry_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6585
6586    /**
6587     * Unset the icon used in a given file selector entry widget's
6588     * button
6589     *
6590     * @param obj The file selector entry widget
6591     * @return The icon object that was being used on @p obj widget's
6592     * button or @c NULL, on errors
6593     *
6594     * Unparent and return the icon object which was set for this
6595     * widget's button.
6596     *
6597     * @see elm_fileselector_entry_button_icon_set()
6598     */
6599    EAPI Evas_Object *elm_fileselector_entry_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6600
6601    /**
6602     * Set the title for a given file selector entry widget's window
6603     *
6604     * @param obj The file selector entry widget
6605     * @param title The title string
6606     *
6607     * This will change the window's title, when the file selector pops
6608     * out after a click on the entry's button. Those windows have the
6609     * default (unlocalized) value of @c "Select a file" as titles.
6610     *
6611     * @note It will only take any effect if the file selector
6612     * entry widget is @b not under "inwin mode".
6613     *
6614     * @see elm_fileselector_entry_window_title_get()
6615     */
6616    EAPI void         elm_fileselector_entry_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
6617
6618    /**
6619     * Get the title set for a given file selector entry widget's
6620     * window
6621     *
6622     * @param obj The file selector entry widget
6623     * @return Title of the file selector entry's window
6624     *
6625     * @see elm_fileselector_entry_window_title_get() for more details
6626     */
6627    EAPI const char  *elm_fileselector_entry_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6628
6629    /**
6630     * Set the size of a given file selector entry widget's window,
6631     * holding the file selector itself.
6632     *
6633     * @param obj The file selector entry widget
6634     * @param width The window's width
6635     * @param height The window's height
6636     *
6637     * @note it will only take any effect if the file selector entry
6638     * widget is @b not under "inwin mode". The default size for the
6639     * window (when applicable) is 400x400 pixels.
6640     *
6641     * @see elm_fileselector_entry_window_size_get()
6642     */
6643    EAPI void         elm_fileselector_entry_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6644
6645    /**
6646     * Get the size of a given file selector entry widget's window,
6647     * holding the file selector itself.
6648     *
6649     * @param obj The file selector entry widget
6650     * @param width Pointer into which to store the width value
6651     * @param height Pointer into which to store the height value
6652     *
6653     * @note Use @c NULL pointers on the size values you're not
6654     * interested in: they'll be ignored by the function.
6655     *
6656     * @see elm_fileselector_entry_window_size_set(), for more details
6657     */
6658    EAPI void         elm_fileselector_entry_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6659
6660    /**
6661     * Set the initial file system path and the entry's path string for
6662     * a given file selector entry widget
6663     *
6664     * @param obj The file selector entry widget
6665     * @param path The path string
6666     *
6667     * It must be a <b>directory</b> path, which will have the contents
6668     * displayed initially in the file selector's view, when invoked
6669     * from @p obj. The default initial path is the @c "HOME"
6670     * environment variable's value.
6671     *
6672     * @see elm_fileselector_entry_path_get()
6673     */
6674    EAPI void         elm_fileselector_entry_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6675
6676    /**
6677     * Get the entry's path string for a given file selector entry
6678     * widget
6679     *
6680     * @param obj The file selector entry widget
6681     * @return path The path string
6682     *
6683     * @see elm_fileselector_entry_path_set() for more details
6684     */
6685    EAPI const char  *elm_fileselector_entry_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6686
6687    /**
6688     * Enable/disable a tree view in the given file selector entry
6689     * widget's internal file selector
6690     *
6691     * @param obj The file selector entry widget
6692     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
6693     * disable
6694     *
6695     * This has the same effect as elm_fileselector_expandable_set(),
6696     * but now applied to a file selector entry's internal file
6697     * selector.
6698     *
6699     * @note There's no way to put a file selector entry's internal
6700     * file selector in "grid mode", as one may do with "pure" file
6701     * selectors.
6702     *
6703     * @see elm_fileselector_expandable_get()
6704     */
6705    EAPI void         elm_fileselector_entry_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6706
6707    /**
6708     * Get whether tree view is enabled for the given file selector
6709     * entry widget's internal file selector
6710     *
6711     * @param obj The file selector entry widget
6712     * @return @c EINA_TRUE if @p obj widget's internal file selector
6713     * is in tree view, @c EINA_FALSE otherwise (and or errors)
6714     *
6715     * @see elm_fileselector_expandable_set() for more details
6716     */
6717    EAPI Eina_Bool    elm_fileselector_entry_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6718
6719    /**
6720     * Set whether a given file selector entry widget's internal file
6721     * selector is to display folders only or the directory contents,
6722     * as well.
6723     *
6724     * @param obj The file selector entry widget
6725     * @param only @c EINA_TRUE to make @p obj widget's internal file
6726     * selector only display directories, @c EINA_FALSE to make files
6727     * to be displayed in it too
6728     *
6729     * This has the same effect as elm_fileselector_folder_only_set(),
6730     * but now applied to a file selector entry's internal file
6731     * selector.
6732     *
6733     * @see elm_fileselector_folder_only_get()
6734     */
6735    EAPI void         elm_fileselector_entry_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6736
6737    /**
6738     * Get whether a given file selector entry widget's internal file
6739     * selector is displaying folders only or the directory contents,
6740     * as well.
6741     *
6742     * @param obj The file selector entry widget
6743     * @return @c EINA_TRUE if @p obj widget's internal file
6744     * selector is only displaying directories, @c EINA_FALSE if files
6745     * are being displayed in it too (and on errors)
6746     *
6747     * @see elm_fileselector_entry_folder_only_set() for more details
6748     */
6749    EAPI Eina_Bool    elm_fileselector_entry_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6750
6751    /**
6752     * Enable/disable the file name entry box where the user can type
6753     * in a name for a file, in a given file selector entry widget's
6754     * internal file selector.
6755     *
6756     * @param obj The file selector entry widget
6757     * @param is_save @c EINA_TRUE to make @p obj widget's internal
6758     * file selector a "saving dialog", @c EINA_FALSE otherwise
6759     *
6760     * This has the same effect as elm_fileselector_is_save_set(),
6761     * but now applied to a file selector entry's internal file
6762     * selector.
6763     *
6764     * @see elm_fileselector_is_save_get()
6765     */
6766    EAPI void         elm_fileselector_entry_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6767
6768    /**
6769     * Get whether the given file selector entry widget's internal
6770     * file selector is in "saving dialog" mode
6771     *
6772     * @param obj The file selector entry widget
6773     * @return @c EINA_TRUE, if @p obj widget's internal file selector
6774     * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
6775     * errors)
6776     *
6777     * @see elm_fileselector_entry_is_save_set() for more details
6778     */
6779    EAPI Eina_Bool    elm_fileselector_entry_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6780
6781    /**
6782     * Set whether a given file selector entry widget's internal file
6783     * selector will raise an Elementary "inner window", instead of a
6784     * dedicated Elementary window. By default, it won't.
6785     *
6786     * @param obj The file selector entry widget
6787     * @param value @c EINA_TRUE to make it use an inner window, @c
6788     * EINA_TRUE to make it use a dedicated window
6789     *
6790     * @see elm_win_inwin_add() for more information on inner windows
6791     * @see elm_fileselector_entry_inwin_mode_get()
6792     */
6793    EAPI void         elm_fileselector_entry_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6794
6795    /**
6796     * Get whether a given file selector entry widget's internal file
6797     * selector will raise an Elementary "inner window", instead of a
6798     * dedicated Elementary window.
6799     *
6800     * @param obj The file selector entry widget
6801     * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
6802     * if it will use a dedicated window
6803     *
6804     * @see elm_fileselector_entry_inwin_mode_set() for more details
6805     */
6806    EAPI Eina_Bool    elm_fileselector_entry_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6807
6808    /**
6809     * Set the initial file system path for a given file selector entry
6810     * widget
6811     *
6812     * @param obj The file selector entry widget
6813     * @param path The path string
6814     *
6815     * It must be a <b>directory</b> path, which will have the contents
6816     * displayed initially in the file selector's view, when invoked
6817     * from @p obj. The default initial path is the @c "HOME"
6818     * environment variable's value.
6819     *
6820     * @see elm_fileselector_entry_path_get()
6821     */
6822    EAPI void         elm_fileselector_entry_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6823
6824    /**
6825     * Get the parent directory's path to the latest file selection on
6826     * a given filer selector entry widget
6827     *
6828     * @param obj The file selector object
6829     * @return The (full) path of the directory of the last selection
6830     * on @p obj widget, a @b stringshared string
6831     *
6832     * @see elm_fileselector_entry_path_set()
6833     */
6834    EAPI const char  *elm_fileselector_entry_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6835
6836    /**
6837     * @}
6838     */
6839
6840    /**
6841     * @defgroup Scroller Scroller
6842     *
6843     * A scroller holds a single object and "scrolls it around". This means that
6844     * it allows the user to use a scrollbar (or a finger) to drag the viewable
6845     * region around, allowing to move through a much larger object that is
6846     * contained in the scroller. The scroiller will always have a small minimum
6847     * size by default as it won't be limited by the contents of the scroller.
6848     *
6849     * Signals that you can add callbacks for are:
6850     * @li "edge,left" - the left edge of the content has been reached
6851     * @li "edge,right" - the right edge of the content has been reached
6852     * @li "edge,top" - the top edge of the content has been reached
6853     * @li "edge,bottom" - the bottom edge of the content has been reached
6854     * @li "scroll" - the content has been scrolled (moved)
6855     * @li "scroll,anim,start" - scrolling animation has started
6856     * @li "scroll,anim,stop" - scrolling animation has stopped
6857     * @li "scroll,drag,start" - dragging the contents around has started
6858     * @li "scroll,drag,stop" - dragging the contents around has stopped
6859     * @note The "scroll,anim,*" and "scroll,drag,*" signals are only emitted by
6860     * user intervetion.
6861     *
6862     * @note When Elemementary is in embedded mode the scrollbars will not be
6863     * dragable, they appear merely as indicators of how much has been scrolled.
6864     * @note When Elementary is in desktop mode the thumbscroll(a.k.a.
6865     * fingerscroll) won't work.
6866     *
6867     * In @ref tutorial_scroller you'll find an example of how to use most of
6868     * this API.
6869     * @{
6870     */
6871    /**
6872     * @brief Type that controls when scrollbars should appear.
6873     *
6874     * @see elm_scroller_policy_set()
6875     */
6876    typedef enum _Elm_Scroller_Policy
6877      {
6878         ELM_SCROLLER_POLICY_AUTO = 0, /**< Show scrollbars as needed */
6879         ELM_SCROLLER_POLICY_ON, /**< Always show scrollbars */
6880         ELM_SCROLLER_POLICY_OFF, /**< Never show scrollbars */
6881         ELM_SCROLLER_POLICY_LAST
6882      } Elm_Scroller_Policy;
6883    /**
6884     * @brief Add a new scroller to the parent
6885     *
6886     * @param parent The parent object
6887     * @return The new object or NULL if it cannot be created
6888     */
6889    EAPI Evas_Object *elm_scroller_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6890    /**
6891     * @brief Set the content of the scroller widget (the object to be scrolled around).
6892     *
6893     * @param obj The scroller object
6894     * @param content The new content object
6895     *
6896     * Once the content object is set, a previously set one will be deleted.
6897     * If you want to keep that old content object, use the
6898     * elm_scroller_content_unset() function.
6899     */
6900    EAPI void         elm_scroller_content_set(Evas_Object *obj, Evas_Object *child) EINA_ARG_NONNULL(1);
6901    /**
6902     * @brief Get the content of the scroller widget
6903     *
6904     * @param obj The slider object
6905     * @return The content that is being used
6906     *
6907     * Return the content object which is set for this widget
6908     *
6909     * @see elm_scroller_content_set()
6910     */
6911    EAPI Evas_Object *elm_scroller_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6912    /**
6913     * @brief Unset the content of the scroller widget
6914     *
6915     * @param obj The slider object
6916     * @return The content that was being used
6917     *
6918     * Unparent and return the content object which was set for this widget
6919     *
6920     * @see elm_scroller_content_set()
6921     */
6922    EAPI Evas_Object *elm_scroller_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6923    /**
6924     * @brief Set custom theme elements for the scroller
6925     *
6926     * @param obj The scroller object
6927     * @param widget The widget name to use (default is "scroller")
6928     * @param base The base name to use (default is "base")
6929     */
6930    EAPI void         elm_scroller_custom_widget_base_theme_set(Evas_Object *obj, const char *widget, const char *base) EINA_ARG_NONNULL(1, 2, 3);
6931    /**
6932     * @brief Make the scroller minimum size limited to the minimum size of the content
6933     *
6934     * @param obj The scroller object
6935     * @param w Enable limiting minimum size horizontally
6936     * @param h Enable limiting minimum size vertically
6937     *
6938     * By default the scroller will be as small as its design allows,
6939     * irrespective of its content. This will make the scroller minimum size the
6940     * right size horizontally and/or vertically to perfectly fit its content in
6941     * that direction.
6942     */
6943    EAPI void         elm_scroller_content_min_limit(Evas_Object *obj, Eina_Bool w, Eina_Bool h) EINA_ARG_NONNULL(1);
6944    /**
6945     * @brief Show a specific virtual region within the scroller content object
6946     *
6947     * @param obj The scroller object
6948     * @param x X coordinate of the region
6949     * @param y Y coordinate of the region
6950     * @param w Width of the region
6951     * @param h Height of the region
6952     *
6953     * This will ensure all (or part if it does not fit) of the designated
6954     * region in the virtual content object (0, 0 starting at the top-left of the
6955     * virtual content object) is shown within the scroller.
6956     */
6957    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);
6958    /**
6959     * @brief Set the scrollbar visibility policy
6960     *
6961     * @param obj The scroller object
6962     * @param policy_h Horizontal scrollbar policy
6963     * @param policy_v Vertical scrollbar policy
6964     *
6965     * This sets the scrollbar visibility policy for the given scroller.
6966     * ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is
6967     * needed, and otherwise kept hidden. ELM_SCROLLER_POLICY_ON turns it on all
6968     * the time, and ELM_SCROLLER_POLICY_OFF always keeps it off. This applies
6969     * respectively for the horizontal and vertical scrollbars.
6970     */
6971    EAPI void         elm_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
6972    /**
6973     * @brief Gets scrollbar visibility policy
6974     *
6975     * @param obj The scroller object
6976     * @param policy_h Horizontal scrollbar policy
6977     * @param policy_v Vertical scrollbar policy
6978     *
6979     * @see elm_scroller_policy_set()
6980     */
6981    EAPI void         elm_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v) EINA_ARG_NONNULL(1);
6982    /**
6983     * @brief Get the currently visible content region
6984     *
6985     * @param obj The scroller object
6986     * @param x X coordinate of the region
6987     * @param y Y coordinate of the region
6988     * @param w Width of the region
6989     * @param h Height of the region
6990     *
6991     * This gets the current region in the content object that is visible through
6992     * the scroller. The region co-ordinates are returned in the @p x, @p y, @p
6993     * w, @p h values pointed to.
6994     *
6995     * @note All coordinates are relative to the content.
6996     *
6997     * @see elm_scroller_region_show()
6998     */
6999    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);
7000    /**
7001     * @brief Get the size of the content object
7002     *
7003     * @param obj The scroller object
7004     * @param w Width return
7005     * @param h Height return
7006     *
7007     * This gets the size of the content object of the scroller.
7008     */
7009    EAPI void         elm_scroller_child_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
7010    /**
7011     * @brief Set bouncing behavior
7012     *
7013     * @param obj The scroller object
7014     * @param h_bounce Will the scroller bounce horizontally or not
7015     * @param v_bounce Will the scroller bounce vertically or not
7016     *
7017     * When scrolling, the scroller may "bounce" when reaching an edge of the
7018     * content object. This is a visual way to indicate the end has been reached.
7019     * This is enabled by default for both axis. This will set if it is enabled
7020     * for that axis with the boolean parameters for each axis.
7021     */
7022    EAPI void         elm_scroller_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
7023    /**
7024     * @brief Get the bounce mode
7025     *
7026     * @param obj The Scroller object
7027     * @param h_bounce Allow bounce horizontally
7028     * @param v_bounce Allow bounce vertically
7029     *
7030     * @see elm_scroller_bounce_set()
7031     */
7032    EAPI void         elm_scroller_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
7033    /**
7034     * @brief Set scroll page size relative to viewport size.
7035     *
7036     * @param obj The scroller object
7037     * @param h_pagerel The horizontal page relative size
7038     * @param v_pagerel The vertical page relative size
7039     *
7040     * The scroller is capable of limiting scrolling by the user to "pages". That
7041     * is to jump by and only show a "whole page" at a time as if the continuous
7042     * area of the scroller content is split into page sized pieces. This sets
7043     * the size of a page relative to the viewport of the scroller. 1.0 is "1
7044     * viewport" is size (horizontally or vertically). 0.0 turns it off in that
7045     * axis. This is mutually exclusive with page size
7046     * (see elm_scroller_page_size_set()  for more information). Likewise 0.5
7047     * is "half a viewport". Sane usable valus are normally between 0.0 and 1.0
7048     * including 1.0. If you only want 1 axis to be page "limited", use 0.0 for
7049     * the other axis.
7050     */
7051    EAPI void         elm_scroller_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
7052    /**
7053     * @brief Set scroll page size.
7054     *
7055     * @param obj The scroller object
7056     * @param h_pagesize The horizontal page size
7057     * @param v_pagesize The vertical page size
7058     *
7059     * This sets the page size to an absolute fixed value, with 0 turning it off
7060     * for that axis.
7061     *
7062     * @see elm_scroller_page_relative_set()
7063     */
7064    EAPI void         elm_scroller_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
7065    /**
7066     * @brief Get scroll current page number.
7067     *
7068     * @param obj The scroller object
7069     * @param h_pagenumber The horizontal page number
7070     * @param v_pagenumber The vertical page number
7071     *
7072     * The page number starts from 0. 0 is the first page.
7073     * Current page means the page which meet the top-left of the viewport.
7074     * If there are two or more pages in the viewport, it returns the number of page
7075     * which meet the top-left of the viewport.
7076     *
7077     * @see elm_scroller_last_page_get()
7078     * @see elm_scroller_page_show()
7079     * @see elm_scroller_page_brint_in()
7080     */
7081    EAPI void         elm_scroller_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
7082    /**
7083     * @brief Get scroll last page number.
7084     *
7085     * @param obj The scroller object
7086     * @param h_pagenumber The horizontal page number
7087     * @param v_pagenumber The vertical page number
7088     *
7089     * The page number starts from 0. 0 is the first page.
7090     * This returns the last page number among the pages.
7091     *
7092     * @see elm_scroller_current_page_get()
7093     * @see elm_scroller_page_show()
7094     * @see elm_scroller_page_brint_in()
7095     */
7096    EAPI void         elm_scroller_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
7097    /**
7098     * Show a specific virtual region within the scroller content object by page number.
7099     *
7100     * @param obj The scroller object
7101     * @param h_pagenumber The horizontal page number
7102     * @param v_pagenumber The vertical page number
7103     *
7104     * 0, 0 of the indicated page is located at the top-left of the viewport.
7105     * This will jump to the page directly without animation.
7106     *
7107     * Example of usage:
7108     *
7109     * @code
7110     * sc = elm_scroller_add(win);
7111     * elm_scroller_content_set(sc, content);
7112     * elm_scroller_page_relative_set(sc, 1, 0);
7113     * elm_scroller_current_page_get(sc, &h_page, &v_page);
7114     * elm_scroller_page_show(sc, h_page + 1, v_page);
7115     * @endcode
7116     *
7117     * @see elm_scroller_page_bring_in()
7118     */
7119    EAPI void         elm_scroller_page_show(Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
7120    /**
7121     * Show a specific virtual region within the scroller content object by page number.
7122     *
7123     * @param obj The scroller object
7124     * @param h_pagenumber The horizontal page number
7125     * @param v_pagenumber The vertical page number
7126     *
7127     * 0, 0 of the indicated page is located at the top-left of the viewport.
7128     * This will slide to the page with animation.
7129     *
7130     * Example of usage:
7131     *
7132     * @code
7133     * sc = elm_scroller_add(win);
7134     * elm_scroller_content_set(sc, content);
7135     * elm_scroller_page_relative_set(sc, 1, 0);
7136     * elm_scroller_last_page_get(sc, &h_page, &v_page);
7137     * elm_scroller_page_bring_in(sc, h_page, v_page);
7138     * @endcode
7139     *
7140     * @see elm_scroller_page_show()
7141     */
7142    EAPI void         elm_scroller_page_bring_in(Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
7143    /**
7144     * @brief Show a specific virtual region within the scroller content object.
7145     *
7146     * @param obj The scroller object
7147     * @param x X coordinate of the region
7148     * @param y Y coordinate of the region
7149     * @param w Width of the region
7150     * @param h Height of the region
7151     *
7152     * This will ensure all (or part if it does not fit) of the designated
7153     * region in the virtual content object (0, 0 starting at the top-left of the
7154     * virtual content object) is shown within the scroller. Unlike
7155     * elm_scroller_region_show(), this allow the scroller to "smoothly slide"
7156     * to this location (if configuration in general calls for transitions). It
7157     * may not jump immediately to the new location and make take a while and
7158     * show other content along the way.
7159     *
7160     * @see elm_scroller_region_show()
7161     */
7162    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);
7163    /**
7164     * @brief Set event propagation on a scroller
7165     *
7166     * @param obj The scroller object
7167     * @param propagation If propagation is enabled or not
7168     *
7169     * This enables or disabled event propagation from the scroller content to
7170     * the scroller and its parent. By default event propagation is disabled.
7171     */
7172    EAPI void         elm_scroller_propagate_events_set(Evas_Object *obj, Eina_Bool propagation);
7173    /**
7174     * @brief Get event propagation for a scroller
7175     *
7176     * @param obj The scroller object
7177     * @return The propagation state
7178     *
7179     * This gets the event propagation for a scroller.
7180     *
7181     * @see elm_scroller_propagate_events_set()
7182     */
7183    EAPI Eina_Bool    elm_scroller_propagate_events_get(const Evas_Object *obj);
7184    /**
7185     * @}
7186     */
7187
7188    /**
7189     * @defgroup Label Label
7190     *
7191     * @image html img/widget/label/preview-00.png
7192     * @image latex img/widget/label/preview-00.eps
7193     *
7194     * @brief Widget to display text, with simple html-like markup.
7195     *
7196     * The Label widget @b doesn't allow text to overflow its boundaries, if the
7197     * text doesn't fit the geometry of the label it will be ellipsized or be
7198     * cut. Elementary provides several themes for this widget:
7199     * @li default - No animation
7200     * @li marker - Centers the text in the label and make it bold by default
7201     * @li slide_long - The entire text appears from the right of the screen and
7202     * slides until it disappears in the left of the screen(reappering on the
7203     * right again).
7204     * @li slide_short - The text appears in the left of the label and slides to
7205     * the right to show the overflow. When all of the text has been shown the
7206     * position is reset.
7207     * @li slide_bounce - The text appears in the left of the label and slides to
7208     * the right to show the overflow. When all of the text has been shown the
7209     * animation reverses, moving the text to the left.
7210     *
7211     * Custom themes can of course invent new markup tags and style them any way
7212     * they like.
7213     *
7214     * See @ref tutorial_label for a demonstration of how to use a label widget.
7215     * @{
7216     */
7217    /**
7218     * @brief Add a new label to the parent
7219     *
7220     * @param parent The parent object
7221     * @return The new object or NULL if it cannot be created
7222     */
7223    EAPI Evas_Object *elm_label_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7224    /**
7225     * @brief Set the label on the label object
7226     *
7227     * @param obj The label object
7228     * @param label The label will be used on the label object
7229     * @deprecated See elm_object_text_set()
7230     */
7231    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 */
7232    /**
7233     * @brief Get the label used on the label object
7234     *
7235     * @param obj The label object
7236     * @return The string inside the label
7237     * @deprecated See elm_object_text_get()
7238     */
7239    EINA_DEPRECATED EAPI const char *elm_label_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1); /* deprecated, use elm_object_text_get instead */
7240    /**
7241     * @brief Set the wrapping behavior of the label
7242     *
7243     * @param obj The label object
7244     * @param wrap To wrap text or not
7245     *
7246     * By default no wrapping is done. Possible values for @p wrap are:
7247     * @li ELM_WRAP_NONE - No wrapping
7248     * @li ELM_WRAP_CHAR - wrap between characters
7249     * @li ELM_WRAP_WORD - wrap between words
7250     * @li ELM_WRAP_MIXED - Word wrap, and if that fails, char wrap
7251     */
7252    EAPI void         elm_label_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
7253    /**
7254     * @brief Get the wrapping behavior of the label
7255     *
7256     * @param obj The label object
7257     * @return Wrap type
7258     *
7259     * @see elm_label_line_wrap_set()
7260     */
7261    EAPI Elm_Wrap_Type elm_label_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7262    /**
7263     * @brief Set wrap width of the label
7264     *
7265     * @param obj The label object
7266     * @param w The wrap width in pixels at a minimum where words need to wrap
7267     *
7268     * This function sets the maximum width size hint of the label.
7269     *
7270     * @warning This is only relevant if the label is inside a container.
7271     */
7272    EAPI void         elm_label_wrap_width_set(Evas_Object *obj, Evas_Coord w) EINA_ARG_NONNULL(1);
7273    /**
7274     * @brief Get wrap width of the label
7275     *
7276     * @param obj The label object
7277     * @return The wrap width in pixels at a minimum where words need to wrap
7278     *
7279     * @see elm_label_wrap_width_set()
7280     */
7281    EAPI Evas_Coord   elm_label_wrap_width_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7282    /**
7283     * @brief Set wrap height of the label
7284     *
7285     * @param obj The label object
7286     * @param h The wrap height in pixels at a minimum where words need to wrap
7287     *
7288     * This function sets the maximum height size hint of the label.
7289     *
7290     * @warning This is only relevant if the label is inside a container.
7291     */
7292    EAPI void         elm_label_wrap_height_set(Evas_Object *obj, Evas_Coord h) EINA_ARG_NONNULL(1);
7293    /**
7294     * @brief get wrap width of the label
7295     *
7296     * @param obj The label object
7297     * @return The wrap height in pixels at a minimum where words need to wrap
7298     */
7299    EAPI Evas_Coord   elm_label_wrap_height_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7300    /**
7301     * @brief Set the font size on the label object.
7302     *
7303     * @param obj The label object
7304     * @param size font size
7305     *
7306     * @warning NEVER use this. It is for hyper-special cases only. use styles
7307     * instead. e.g. "big", "medium", "small" - or better name them by use:
7308     * "title", "footnote", "quote" etc.
7309     */
7310    EAPI void         elm_label_fontsize_set(Evas_Object *obj, int fontsize) EINA_ARG_NONNULL(1);
7311    /**
7312     * @brief Set the text color on the label object
7313     *
7314     * @param obj The label object
7315     * @param r Red property background color of The label object
7316     * @param g Green property background color of The label object
7317     * @param b Blue property background color of The label object
7318     * @param a Alpha property background color of The label object
7319     *
7320     * @warning NEVER use this. It is for hyper-special cases only. use styles
7321     * instead. e.g. "big", "medium", "small" - or better name them by use:
7322     * "title", "footnote", "quote" etc.
7323     */
7324    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);
7325    /**
7326     * @brief Set the text align on the label object
7327     *
7328     * @param obj The label object
7329     * @param align align mode ("left", "center", "right")
7330     *
7331     * @warning NEVER use this. It is for hyper-special cases only. use styles
7332     * instead. e.g. "big", "medium", "small" - or better name them by use:
7333     * "title", "footnote", "quote" etc.
7334     */
7335    EAPI void         elm_label_text_align_set(Evas_Object *obj, const char *alignmode) EINA_ARG_NONNULL(1);
7336    /**
7337     * @brief Set background color of the label
7338     *
7339     * @param obj The label object
7340     * @param r Red property background color of The label object
7341     * @param g Green property background color of The label object
7342     * @param b Blue property background color of The label object
7343     * @param a Alpha property background alpha of The label object
7344     *
7345     * @warning NEVER use this. It is for hyper-special cases only. use styles
7346     * instead. e.g. "big", "medium", "small" - or better name them by use:
7347     * "title", "footnote", "quote" etc.
7348     */
7349    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);
7350    /**
7351     * @brief Set the ellipsis behavior of the label
7352     *
7353     * @param obj The label object
7354     * @param ellipsis To ellipsis text or not
7355     *
7356     * If set to true and the text doesn't fit in the label an ellipsis("...")
7357     * will be shown at the end of the widget.
7358     *
7359     * @warning This doesn't work with slide(elm_label_slide_set()) or if the
7360     * choosen wrap method was ELM_WRAP_WORD.
7361     */
7362    EAPI void         elm_label_ellipsis_set(Evas_Object *obj, Eina_Bool ellipsis) EINA_ARG_NONNULL(1);
7363    /**
7364     * @brief Set the text slide of the label
7365     *
7366     * @param obj The label object
7367     * @param slide To start slide or stop
7368     *
7369     * If set to true the text of the label will slide throught the length of
7370     * label.
7371     *
7372     * @warning This only work with the themes "slide_short", "slide_long" and
7373     * "slide_bounce".
7374     */
7375    EAPI void         elm_label_slide_set(Evas_Object *obj, Eina_Bool slide) EINA_ARG_NONNULL(1);
7376    /**
7377     * @brief Get the text slide mode of the label
7378     *
7379     * @param obj The label object
7380     * @return slide slide mode value
7381     *
7382     * @see elm_label_slide_set()
7383     */
7384    EAPI Eina_Bool    elm_label_slide_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
7385    /**
7386     * @brief Set the slide duration(speed) of the label
7387     *
7388     * @param obj The label object
7389     * @return The duration in seconds in moving text from slide begin position
7390     * to slide end position
7391     */
7392    EAPI void         elm_label_slide_duration_set(Evas_Object *obj, double duration) EINA_ARG_NONNULL(1);
7393    /**
7394     * @brief Get the slide duration(speed) of the label
7395     *
7396     * @param obj The label object
7397     * @return The duration time in moving text from slide begin position to slide end position
7398     *
7399     * @see elm_label_slide_duration_set()
7400     */
7401    EAPI double       elm_label_slide_duration_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
7402    /**
7403     * @}
7404     */
7405
7406    /**
7407     * @defgroup Toggle Toggle
7408     *
7409     * @image html img/widget/toggle/preview-00.png
7410     * @image latex img/widget/toggle/preview-00.eps
7411     *
7412     * @brief A toggle is a slider which can be used to toggle between
7413     * two values.  It has two states: on and off.
7414     *
7415     * Signals that you can add callbacks for are:
7416     * @li "changed" - Whenever the toggle value has been changed.  Is not called
7417     *                 until the toggle is released by the cursor (assuming it
7418     *                 has been triggered by the cursor in the first place).
7419     *
7420     * @ref tutorial_toggle show how to use a toggle.
7421     * @{
7422     */
7423    /**
7424     * @brief Add a toggle to @p parent.
7425     *
7426     * @param parent The parent object
7427     *
7428     * @return The toggle object
7429     */
7430    EAPI Evas_Object *elm_toggle_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7431    /**
7432     * @brief Sets the label to be displayed with the toggle.
7433     *
7434     * @param obj The toggle object
7435     * @param label The label to be displayed
7436     *
7437     * @deprecated use elm_object_text_set() instead.
7438     */
7439    EINA_DEPRECATED EAPI void         elm_toggle_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7440    /**
7441     * @brief Gets the label of the toggle
7442     *
7443     * @param obj  toggle object
7444     * @return The label of the toggle
7445     *
7446     * @deprecated use elm_object_text_get() instead.
7447     */
7448    EINA_DEPRECATED EAPI const char  *elm_toggle_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7449    /**
7450     * @brief Set the icon used for the toggle
7451     *
7452     * @param obj The toggle object
7453     * @param icon The icon object for the button
7454     *
7455     * Once the icon object is set, a previously set one will be deleted
7456     * If you want to keep that old content object, use the
7457     * elm_toggle_icon_unset() function.
7458     */
7459    EAPI void         elm_toggle_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
7460    /**
7461     * @brief Get the icon used for the toggle
7462     *
7463     * @param obj The toggle object
7464     * @return The icon object that is being used
7465     *
7466     * Return the icon object which is set for this widget.
7467     *
7468     * @see elm_toggle_icon_set()
7469     */
7470    EAPI Evas_Object *elm_toggle_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7471    /**
7472     * @brief Unset the icon used for the toggle
7473     *
7474     * @param obj The toggle object
7475     * @return The icon object that was being used
7476     *
7477     * Unparent and return the icon object which was set for this widget.
7478     *
7479     * @see elm_toggle_icon_set()
7480     */
7481    EAPI Evas_Object *elm_toggle_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7482    /**
7483     * @brief Sets the labels to be associated with the on and off states of the toggle.
7484     *
7485     * @param obj The toggle object
7486     * @param onlabel The label displayed when the toggle is in the "on" state
7487     * @param offlabel The label displayed when the toggle is in the "off" state
7488     */
7489    EAPI void         elm_toggle_states_labels_set(Evas_Object *obj, const char *onlabel, const char *offlabel) EINA_ARG_NONNULL(1);
7490    /**
7491     * @brief Gets the labels associated with the on and off states of the toggle.
7492     *
7493     * @param obj The toggle object
7494     * @param onlabel A char** to place the onlabel of @p obj into
7495     * @param offlabel A char** to place the offlabel of @p obj into
7496     */
7497    EAPI void         elm_toggle_states_labels_get(const Evas_Object *obj, const char **onlabel, const char **offlabel) EINA_ARG_NONNULL(1);
7498    /**
7499     * @brief Sets the state of the toggle to @p state.
7500     *
7501     * @param obj The toggle object
7502     * @param state The state of @p obj
7503     */
7504    EAPI void         elm_toggle_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
7505    /**
7506     * @brief Gets the state of the toggle to @p state.
7507     *
7508     * @param obj The toggle object
7509     * @return The state of @p obj
7510     */
7511    EAPI Eina_Bool    elm_toggle_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7512    /**
7513     * @brief Sets the state pointer of the toggle to @p statep.
7514     *
7515     * @param obj The toggle object
7516     * @param statep The state pointer of @p obj
7517     */
7518    EAPI void         elm_toggle_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
7519    /**
7520     * @}
7521     */
7522
7523    /**
7524     * @defgroup Frame Frame
7525     *
7526     * @image html img/widget/frame/preview-00.png
7527     * @image latex img/widget/frame/preview-00.eps
7528     *
7529     * @brief Frame is a widget that holds some content and has a title.
7530     *
7531     * The default look is a frame with a title, but Frame supports multple
7532     * styles:
7533     * @li default
7534     * @li pad_small
7535     * @li pad_medium
7536     * @li pad_large
7537     * @li pad_huge
7538     * @li outdent_top
7539     * @li outdent_bottom
7540     *
7541     * Of all this styles only default shows the title. Frame emits no signals.
7542     *
7543     * For a detailed example see the @ref tutorial_frame.
7544     *
7545     * @{
7546     */
7547    /**
7548     * @brief Add a new frame to the parent
7549     *
7550     * @param parent The parent object
7551     * @return The new object or NULL if it cannot be created
7552     */
7553    EAPI Evas_Object *elm_frame_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7554    /**
7555     * @brief Set the frame label
7556     *
7557     * @param obj The frame object
7558     * @param label The label of this frame object
7559     *
7560     * @deprecated use elm_object_text_set() instead.
7561     */
7562    EINA_DEPRECATED EAPI void         elm_frame_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7563    /**
7564     * @brief Get the frame label
7565     *
7566     * @param obj The frame object
7567     *
7568     * @return The label of this frame objet or NULL if unable to get frame
7569     *
7570     * @deprecated use elm_object_text_get() instead.
7571     */
7572    EINA_DEPRECATED EAPI const char  *elm_frame_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7573    /**
7574     * @brief Set the content of the frame widget
7575     *
7576     * Once the content object is set, a previously set one will be deleted.
7577     * If you want to keep that old content object, use the
7578     * elm_frame_content_unset() function.
7579     *
7580     * @param obj The frame object
7581     * @param content The content will be filled in this frame object
7582     */
7583    EAPI void         elm_frame_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
7584    /**
7585     * @brief Get the content of the frame widget
7586     *
7587     * Return the content object which is set for this widget
7588     *
7589     * @param obj The frame object
7590     * @return The content that is being used
7591     */
7592    EAPI Evas_Object *elm_frame_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7593    /**
7594     * @brief Unset the content of the frame widget
7595     *
7596     * Unparent and return the content object which was set for this widget
7597     *
7598     * @param obj The frame object
7599     * @return The content that was being used
7600     */
7601    EAPI Evas_Object *elm_frame_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7602    /**
7603     * @}
7604     */
7605
7606    /**
7607     * @defgroup Table Table
7608     *
7609     * A container widget to arrange other widgets in a table where items can
7610     * also span multiple columns or rows - even overlap (and then be raised or
7611     * lowered accordingly to adjust stacking if they do overlap).
7612     *
7613     * The followin are examples of how to use a table:
7614     * @li @ref tutorial_table_01
7615     * @li @ref tutorial_table_02
7616     *
7617     * @{
7618     */
7619    /**
7620     * @brief Add a new table to the parent
7621     *
7622     * @param parent The parent object
7623     * @return The new object or NULL if it cannot be created
7624     */
7625    EAPI Evas_Object *elm_table_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7626    /**
7627     * @brief Set the homogeneous layout in the table
7628     *
7629     * @param obj The layout object
7630     * @param homogeneous A boolean to set if the layout is homogeneous in the
7631     * table (EINA_TRUE = homogeneous,  EINA_FALSE = no homogeneous)
7632     */
7633    EAPI void         elm_table_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
7634    /**
7635     * @brief Get the current table homogeneous mode.
7636     *
7637     * @param obj The table object
7638     * @return A boolean to indicating if the layout is homogeneous in the table
7639     * (EINA_TRUE = homogeneous,  EINA_FALSE = no homogeneous)
7640     */
7641    EAPI Eina_Bool    elm_table_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7642    /**
7643     * @warning <b>Use elm_table_homogeneous_set() instead</b>
7644     */
7645    EINA_DEPRECATED EAPI void elm_table_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
7646    /**
7647     * @warning <b>Use elm_table_homogeneous_get() instead</b>
7648     */
7649    EINA_DEPRECATED EAPI Eina_Bool elm_table_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7650    /**
7651     * @brief Set padding between cells.
7652     *
7653     * @param obj The layout object.
7654     * @param horizontal set the horizontal padding.
7655     * @param vertical set the vertical padding.
7656     *
7657     * Default value is 0.
7658     */
7659    EAPI void         elm_table_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
7660    /**
7661     * @brief Get padding between cells.
7662     *
7663     * @param obj The layout object.
7664     * @param horizontal set the horizontal padding.
7665     * @param vertical set the vertical padding.
7666     */
7667    EAPI void         elm_table_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
7668    /**
7669     * @brief Add a subobject on the table with the coordinates passed
7670     *
7671     * @param obj The table object
7672     * @param subobj The subobject to be added to the table
7673     * @param x Row number
7674     * @param y Column number
7675     * @param w rowspan
7676     * @param h colspan
7677     *
7678     * @note All positioning inside the table is relative to rows and columns, so
7679     * a value of 0 for x and y, means the top left cell of the table, and a
7680     * value of 1 for w and h means @p subobj only takes that 1 cell.
7681     */
7682    EAPI void         elm_table_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
7683    /**
7684     * @brief Remove child from table.
7685     *
7686     * @param obj The table object
7687     * @param subobj The subobject
7688     */
7689    EAPI void         elm_table_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
7690    /**
7691     * @brief Faster way to remove all child objects from a table object.
7692     *
7693     * @param obj The table object
7694     * @param clear If true, will delete children, else just remove from table.
7695     */
7696    EAPI void         elm_table_clear(Evas_Object *obj, Eina_Bool clear) EINA_ARG_NONNULL(1);
7697    /**
7698     * @brief Set the packing location of an existing child of the table
7699     *
7700     * @param subobj The subobject to be modified in the table
7701     * @param x Row number
7702     * @param y Column number
7703     * @param w rowspan
7704     * @param h colspan
7705     *
7706     * Modifies the position of an object already in the table.
7707     *
7708     * @note All positioning inside the table is relative to rows and columns, so
7709     * a value of 0 for x and y, means the top left cell of the table, and a
7710     * value of 1 for w and h means @p subobj only takes that 1 cell.
7711     */
7712    EAPI void         elm_table_pack_set(Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
7713    /**
7714     * @brief Get the packing location of an existing child of the table
7715     *
7716     * @param subobj The subobject to be modified in the table
7717     * @param x Row number
7718     * @param y Column number
7719     * @param w rowspan
7720     * @param h colspan
7721     *
7722     * @see elm_table_pack_set()
7723     */
7724    EAPI void         elm_table_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
7725    /**
7726     * @}
7727     */
7728
7729    /**
7730     * @defgroup Gengrid Gengrid (Generic grid)
7731     *
7732     * This widget aims to position objects in a grid layout while
7733     * actually creating and rendering only the visible ones, using the
7734     * same idea as the @ref Genlist "genlist": the user defines a @b
7735     * class for each item, specifying functions that will be called at
7736     * object creation, deletion, etc. When those items are selected by
7737     * the user, a callback function is issued. Users may interact with
7738     * a gengrid via the mouse (by clicking on items to select them and
7739     * clicking on the grid's viewport and swiping to pan the whole
7740     * view) or via the keyboard, navigating through item with the
7741     * arrow keys.
7742     *
7743     * @section Gengrid_Layouts Gengrid layouts
7744     *
7745     * Gengrids may layout its items in one of two possible layouts:
7746     * - horizontal or
7747     * - vertical.
7748     *
7749     * When in "horizontal mode", items will be placed in @b columns,
7750     * from top to bottom and, when the space for a column is filled,
7751     * another one is started on the right, thus expanding the grid
7752     * horizontally, making for horizontal scrolling. When in "vertical
7753     * mode" , though, items will be placed in @b rows, from left to
7754     * right and, when the space for a row is filled, another one is
7755     * started below, thus expanding the grid vertically (and making
7756     * for vertical scrolling).
7757     *
7758     * @section Gengrid_Items Gengrid items
7759     *
7760     * An item in a gengrid can have 0 or more text labels (they can be
7761     * regular text or textblock Evas objects - that's up to the style
7762     * to determine), 0 or more icons (which are simply objects
7763     * swallowed into the gengrid item's theming Edje object) and 0 or
7764     * more <b>boolean states</b>, which have the behavior left to the
7765     * user to define. The Edje part names for each of these properties
7766     * will be looked up, in the theme file for the gengrid, under the
7767     * Edje (string) data items named @c "labels", @c "icons" and @c
7768     * "states", respectively. For each of those properties, if more
7769     * than one part is provided, they must have names listed separated
7770     * by spaces in the data fields. For the default gengrid item
7771     * theme, we have @b one label part (@c "elm.text"), @b two icon
7772     * parts (@c "elm.swalllow.icon" and @c "elm.swallow.end") and @b
7773     * no state parts.
7774     *
7775     * A gengrid item may be at one of several styles. Elementary
7776     * provides one by default - "default", but this can be extended by
7777     * system or application custom themes/overlays/extensions (see
7778     * @ref Theme "themes" for more details).
7779     *
7780     * @section Gengrid_Item_Class Gengrid item classes
7781     *
7782     * In order to have the ability to add and delete items on the fly,
7783     * gengrid implements a class (callback) system where the
7784     * application provides a structure with information about that
7785     * type of item (gengrid may contain multiple different items with
7786     * different classes, states and styles). Gengrid will call the
7787     * functions in this struct (methods) when an item is "realized"
7788     * (i.e., created dynamically, while the user is scrolling the
7789     * grid). All objects will simply be deleted when no longer needed
7790     * with evas_object_del(). The #Elm_GenGrid_Item_Class structure
7791     * contains the following members:
7792     * - @c item_style - This is a constant string and simply defines
7793     * the name of the item style. It @b must be specified and the
7794     * default should be @c "default".
7795     * - @c func.label_get - This function is called when an item
7796     * object is actually created. The @c data parameter will point to
7797     * the same data passed to elm_gengrid_item_append() and related
7798     * item creation functions. The @c obj parameter is the gengrid
7799     * object itself, while the @c part one is the name string of one
7800     * of the existing text parts in the Edje group implementing the
7801     * item's theme. This function @b must return a strdup'()ed string,
7802     * as the caller will free() it when done. See
7803     * #Elm_Gengrid_Item_Label_Get_Cb.
7804     * - @c func.icon_get - This function is called when an item object
7805     * is actually created. The @c data parameter will point to the
7806     * same data passed to elm_gengrid_item_append() and related item
7807     * creation functions. The @c obj parameter is the gengrid object
7808     * itself, while the @c part one is the name string of one of the
7809     * existing (icon) swallow parts in the Edje group implementing the
7810     * item's theme. It must return @c NULL, when no icon is desired,
7811     * or a valid object handle, otherwise. The object will be deleted
7812     * by the gengrid on its deletion or when the item is "unrealized".
7813     * See #Elm_Gengrid_Item_Icon_Get_Cb.
7814     * - @c func.state_get - This function is called when an item
7815     * object is actually created. The @c data parameter will point to
7816     * the same data passed to elm_gengrid_item_append() and related
7817     * item creation functions. The @c obj parameter is the gengrid
7818     * object itself, while the @c part one is the name string of one
7819     * of the state parts in the Edje group implementing the item's
7820     * theme. Return @c EINA_FALSE for false/off or @c EINA_TRUE for
7821     * true/on. Gengrids will emit a signal to its theming Edje object
7822     * with @c "elm,state,XXX,active" and @c "elm" as "emission" and
7823     * "source" arguments, respectively, when the state is true (the
7824     * default is false), where @c XXX is the name of the (state) part.
7825     * See #Elm_Gengrid_Item_State_Get_Cb.
7826     * - @c func.del - This is called when elm_gengrid_item_del() is
7827     * called on an item or elm_gengrid_clear() is called on the
7828     * gengrid. This is intended for use when gengrid items are
7829     * deleted, so any data attached to the item (e.g. its data
7830     * parameter on creation) can be deleted. See #Elm_Gengrid_Item_Del_Cb.
7831     *
7832     * @section Gengrid_Usage_Hints Usage hints
7833     *
7834     * If the user wants to have multiple items selected at the same
7835     * time, elm_gengrid_multi_select_set() will permit it. If the
7836     * gengrid is single-selection only (the default), then
7837     * elm_gengrid_select_item_get() will return the selected item or
7838     * @c NULL, if none is selected. If the gengrid is under
7839     * multi-selection, then elm_gengrid_selected_items_get() will
7840     * return a list (that is only valid as long as no items are
7841     * modified (added, deleted, selected or unselected) of child items
7842     * on a gengrid.
7843     *
7844     * If an item changes (internal (boolean) state, label or icon
7845     * changes), then use elm_gengrid_item_update() to have gengrid
7846     * update the item with the new state. A gengrid will re-"realize"
7847     * the item, thus calling the functions in the
7848     * #Elm_Gengrid_Item_Class set for that item.
7849     *
7850     * To programmatically (un)select an item, use
7851     * elm_gengrid_item_selected_set(). To get its selected state use
7852     * elm_gengrid_item_selected_get(). To make an item disabled
7853     * (unable to be selected and appear differently) use
7854     * elm_gengrid_item_disabled_set() to set this and
7855     * elm_gengrid_item_disabled_get() to get the disabled state.
7856     *
7857     * Grid cells will only have their selection smart callbacks called
7858     * when firstly getting selected. Any further clicks will do
7859     * nothing, unless you enable the "always select mode", with
7860     * elm_gengrid_always_select_mode_set(), thus making every click to
7861     * issue selection callbacks. elm_gengrid_no_select_mode_set() will
7862     * turn off the ability to select items entirely in the widget and
7863     * they will neither appear selected nor call the selection smart
7864     * callbacks.
7865     *
7866     * Remember that you can create new styles and add your own theme
7867     * augmentation per application with elm_theme_extension_add(). If
7868     * you absolutely must have a specific style that overrides any
7869     * theme the user or system sets up you can use
7870     * elm_theme_overlay_add() to add such a file.
7871     *
7872     * @section Gengrid_Smart_Events Gengrid smart events
7873     *
7874     * Smart events that you can add callbacks for are:
7875     * - @c "activated" - The user has double-clicked or pressed
7876     *   (enter|return|spacebar) on an item. The @c event_info parameter
7877     *   is the gengrid item that was activated.
7878     * - @c "clicked,double" - The user has double-clicked an item.
7879     *   The @c event_info parameter is the gengrid item that was double-clicked.
7880     * - @c "longpressed" - This is called when the item is pressed for a certain
7881     *   amount of time. By default it's 1 second.
7882     * - @c "selected" - The user has made an item selected. The
7883     *   @c event_info parameter is the gengrid item that was selected.
7884     * - @c "unselected" - The user has made an item unselected. The
7885     *   @c event_info parameter is the gengrid item that was unselected.
7886     * - @c "realized" - This is called when the item in the gengrid
7887     *   has its implementing Evas object instantiated, de facto. @c
7888     *   event_info is the gengrid item that was created. The object
7889     *   may be deleted at any time, so it is highly advised to the
7890     *   caller @b not to use the object pointer returned from
7891     *   elm_gengrid_item_object_get(), because it may point to freed
7892     *   objects.
7893     * - @c "unrealized" - This is called when the implementing Evas
7894     *   object for this item is deleted. @c event_info is the gengrid
7895     *   item that was deleted.
7896     * - @c "changed" - Called when an item is added, removed, resized
7897     *   or moved and when the gengrid is resized or gets "horizontal"
7898     *   property changes.
7899     * - @c "scroll,anim,start" - This is called when scrolling animation has
7900     *   started.
7901     * - @c "scroll,anim,stop" - This is called when scrolling animation has
7902     *   stopped.
7903     * - @c "drag,start,up" - Called when the item in the gengrid has
7904     *   been dragged (not scrolled) up.
7905     * - @c "drag,start,down" - Called when the item in the gengrid has
7906     *   been dragged (not scrolled) down.
7907     * - @c "drag,start,left" - Called when the item in the gengrid has
7908     *   been dragged (not scrolled) left.
7909     * - @c "drag,start,right" - Called when the item in the gengrid has
7910     *   been dragged (not scrolled) right.
7911     * - @c "drag,stop" - Called when the item in the gengrid has
7912     *   stopped being dragged.
7913     * - @c "drag" - Called when the item in the gengrid is being
7914     *   dragged.
7915     * - @c "scroll" - called when the content has been scrolled
7916     *   (moved).
7917     * - @c "scroll,drag,start" - called when dragging the content has
7918     *   started.
7919     * - @c "scroll,drag,stop" - called when dragging the content has
7920     *   stopped.
7921     * - @c "scroll,edge,top" - This is called when the gengrid is scrolled until
7922     *   the top edge.
7923     * - @c "scroll,edge,bottom" - This is called when the gengrid is scrolled
7924     *   until the bottom edge.
7925     * - @c "scroll,edge,left" - This is called when the gengrid is scrolled
7926     *   until the left edge.
7927     * - @c "scroll,edge,right" - This is called when the gengrid is scrolled
7928     *   until the right edge.
7929     *
7930     * List of gengrid examples:
7931     * @li @ref gengrid_example
7932     */
7933
7934    /**
7935     * @addtogroup Gengrid
7936     * @{
7937     */
7938
7939    typedef struct _Elm_Gengrid_Item_Class Elm_Gengrid_Item_Class; /**< Gengrid item class definition structs */
7940    typedef struct _Elm_Gengrid_Item_Class_Func Elm_Gengrid_Item_Class_Func; /**< Class functions for gengrid item classes. */
7941    typedef struct _Elm_Gengrid_Item Elm_Gengrid_Item; /**< Gengrid item handles */
7942    typedef char        *(*Elm_Gengrid_Item_Label_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< Label fetching class function for gengrid item classes. */
7943    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. */
7944    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. */
7945    typedef void         (*Elm_Gengrid_Item_Del_Cb)      (void *data, Evas_Object *obj); /**< Deletion class function for gengrid item classes. */
7946
7947    typedef char        *(*GridItemLabelGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Gengrid_Item_Label_Get_Cb. */
7948    typedef Evas_Object *(*GridItemIconGetFunc)  (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Gengrid_Item_Icon_Get_Cb. */
7949    typedef Eina_Bool    (*GridItemStateGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Gengrid_Item_State_Get_Cb. */
7950    typedef void         (*GridItemDelFunc)      (void *data, Evas_Object *obj) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Gengrid_Item_Del_Cb. */
7951
7952    /**
7953     * @struct _Elm_Gengrid_Item_Class
7954     *
7955     * Gengrid item class definition. See @ref Gengrid_Item_Class for
7956     * field details.
7957     */
7958    struct _Elm_Gengrid_Item_Class
7959      {
7960         const char             *item_style;
7961         struct _Elm_Gengrid_Item_Class_Func
7962           {
7963              Elm_Gengrid_Item_Label_Get_Cb label_get;
7964              Elm_Gengrid_Item_Icon_Get_Cb  icon_get;
7965              Elm_Gengrid_Item_State_Get_Cb state_get;
7966              Elm_Gengrid_Item_Del_Cb       del;
7967           } func;
7968      }; /**< #Elm_Gengrid_Item_Class member definitions */
7969
7970    /**
7971     * Add a new gengrid widget to the given parent Elementary
7972     * (container) object
7973     *
7974     * @param parent The parent object
7975     * @return a new gengrid widget handle or @c NULL, on errors
7976     *
7977     * This function inserts a new gengrid widget on the canvas.
7978     *
7979     * @see elm_gengrid_item_size_set()
7980     * @see elm_gengrid_group_item_size_set()
7981     * @see elm_gengrid_horizontal_set()
7982     * @see elm_gengrid_item_append()
7983     * @see elm_gengrid_item_del()
7984     * @see elm_gengrid_clear()
7985     *
7986     * @ingroup Gengrid
7987     */
7988    EAPI Evas_Object       *elm_gengrid_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7989
7990    /**
7991     * Set the size for the items of a given gengrid widget
7992     *
7993     * @param obj The gengrid object.
7994     * @param w The items' width.
7995     * @param h The items' height;
7996     *
7997     * A gengrid, after creation, has still no information on the size
7998     * to give to each of its cells. So, you most probably will end up
7999     * with squares one @ref Fingers "finger" wide, the default
8000     * size. Use this function to force a custom size for you items,
8001     * making them as big as you wish.
8002     *
8003     * @see elm_gengrid_item_size_get()
8004     *
8005     * @ingroup Gengrid
8006     */
8007    EAPI void               elm_gengrid_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
8008
8009    /**
8010     * Get the size set for the items of a given gengrid widget
8011     *
8012     * @param obj The gengrid object.
8013     * @param w Pointer to a variable where to store the items' width.
8014     * @param h Pointer to a variable where to store the items' height.
8015     *
8016     * @note Use @c NULL pointers on the size values you're not
8017     * interested in: they'll be ignored by the function.
8018     *
8019     * @see elm_gengrid_item_size_get() for more details
8020     *
8021     * @ingroup Gengrid
8022     */
8023    EAPI void               elm_gengrid_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
8024
8025    /**
8026     * Set the size for the group items of a given gengrid widget
8027     *
8028     * @param obj The gengrid object.
8029     * @param w The group items' width.
8030     * @param h The group items' height;
8031     *
8032     * A gengrid, after creation, has still no information on the size
8033     * to give to each of its cells. So, you most probably will end up
8034     * with squares one @ref Fingers "finger" wide, the default
8035     * size. Use this function to force a custom size for you group items,
8036     * making them as big as you wish.
8037     *
8038     * @see elm_gengrid_group_item_size_get()
8039     *
8040     * @ingroup Gengrid
8041     */
8042    EAPI void               elm_gengrid_group_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
8043
8044    /**
8045     * Get the size set for the group items of a given gengrid widget
8046     *
8047     * @param obj The gengrid object.
8048     * @param w Pointer to a variable where to store the group items' width.
8049     * @param h Pointer to a variable where to store the group items' height.
8050     *
8051     * @note Use @c NULL pointers on the size values you're not
8052     * interested in: they'll be ignored by the function.
8053     *
8054     * @see elm_gengrid_group_item_size_get() for more details
8055     *
8056     * @ingroup Gengrid
8057     */
8058    EAPI void               elm_gengrid_group_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
8059
8060    /**
8061     * Set the items grid's alignment within a given gengrid widget
8062     *
8063     * @param obj The gengrid object.
8064     * @param align_x Alignment in the horizontal axis (0 <= align_x <= 1).
8065     * @param align_y Alignment in the vertical axis (0 <= align_y <= 1).
8066     *
8067     * This sets the alignment of the whole grid of items of a gengrid
8068     * within its given viewport. By default, those values are both
8069     * 0.5, meaning that the gengrid will have its items grid placed
8070     * exactly in the middle of its viewport.
8071     *
8072     * @note If given alignment values are out of the cited ranges,
8073     * they'll be changed to the nearest boundary values on the valid
8074     * ranges.
8075     *
8076     * @see elm_gengrid_align_get()
8077     *
8078     * @ingroup Gengrid
8079     */
8080    EAPI void               elm_gengrid_align_set(Evas_Object *obj, double align_x, double align_y) EINA_ARG_NONNULL(1);
8081
8082    /**
8083     * Get the items grid's alignment values within a given gengrid
8084     * widget
8085     *
8086     * @param obj The gengrid object.
8087     * @param align_x Pointer to a variable where to store the
8088     * horizontal alignment.
8089     * @param align_y Pointer to a variable where to store the vertical
8090     * alignment.
8091     *
8092     * @note Use @c NULL pointers on the alignment values you're not
8093     * interested in: they'll be ignored by the function.
8094     *
8095     * @see elm_gengrid_align_set() for more details
8096     *
8097     * @ingroup Gengrid
8098     */
8099    EAPI void               elm_gengrid_align_get(const Evas_Object *obj, double *align_x, double *align_y) EINA_ARG_NONNULL(1);
8100
8101    /**
8102     * Set whether a given gengrid widget is or not able have items
8103     * @b reordered
8104     *
8105     * @param obj The gengrid object
8106     * @param reorder_mode Use @c EINA_TRUE to turn reoderding on,
8107     * @c EINA_FALSE to turn it off
8108     *
8109     * If a gengrid is set to allow reordering, a click held for more
8110     * than 0.5 over a given item will highlight it specially,
8111     * signalling the gengrid has entered the reordering state. From
8112     * that time on, the user will be able to, while still holding the
8113     * mouse button down, move the item freely in the gengrid's
8114     * viewport, replacing to said item to the locations it goes to.
8115     * The replacements will be animated and, whenever the user
8116     * releases the mouse button, the item being replaced gets a new
8117     * definitive place in the grid.
8118     *
8119     * @see elm_gengrid_reorder_mode_get()
8120     *
8121     * @ingroup Gengrid
8122     */
8123    EAPI void               elm_gengrid_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
8124
8125    /**
8126     * Get whether a given gengrid widget is or not able have items
8127     * @b reordered
8128     *
8129     * @param obj The gengrid object
8130     * @return @c EINA_TRUE, if reoderding is on, @c EINA_FALSE if it's
8131     * off
8132     *
8133     * @see elm_gengrid_reorder_mode_set() for more details
8134     *
8135     * @ingroup Gengrid
8136     */
8137    EAPI Eina_Bool          elm_gengrid_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8138
8139    /**
8140     * Append a new item in a given gengrid widget.
8141     *
8142     * @param obj The gengrid object.
8143     * @param gic The item class for the item.
8144     * @param data The item data.
8145     * @param func Convenience function called when the item is
8146     * selected.
8147     * @param func_data Data to be passed to @p func.
8148     * @return A handle to the item added or @c NULL, on errors.
8149     *
8150     * This adds an item to the beginning of the gengrid.
8151     *
8152     * @see elm_gengrid_item_prepend()
8153     * @see elm_gengrid_item_insert_before()
8154     * @see elm_gengrid_item_insert_after()
8155     * @see elm_gengrid_item_del()
8156     *
8157     * @ingroup Gengrid
8158     */
8159    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);
8160
8161    /**
8162     * Prepend a new item in a given gengrid widget.
8163     *
8164     * @param obj The gengrid object.
8165     * @param gic The item class for the item.
8166     * @param data The item data.
8167     * @param func Convenience function called when the item is
8168     * selected.
8169     * @param func_data Data to be passed to @p func.
8170     * @return A handle to the item added or @c NULL, on errors.
8171     *
8172     * This adds an item to the end of the gengrid.
8173     *
8174     * @see elm_gengrid_item_append()
8175     * @see elm_gengrid_item_insert_before()
8176     * @see elm_gengrid_item_insert_after()
8177     * @see elm_gengrid_item_del()
8178     *
8179     * @ingroup Gengrid
8180     */
8181    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);
8182
8183    /**
8184     * Insert an item before another in a gengrid widget
8185     *
8186     * @param obj The gengrid object.
8187     * @param gic The item class for the item.
8188     * @param data The item data.
8189     * @param relative The item to place this new one before.
8190     * @param func Convenience function called when the item is
8191     * selected.
8192     * @param func_data Data to be passed to @p func.
8193     * @return A handle to the item added or @c NULL, on errors.
8194     *
8195     * This inserts an item before another in the gengrid.
8196     *
8197     * @see elm_gengrid_item_append()
8198     * @see elm_gengrid_item_prepend()
8199     * @see elm_gengrid_item_insert_after()
8200     * @see elm_gengrid_item_del()
8201     *
8202     * @ingroup Gengrid
8203     */
8204    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);
8205
8206    /**
8207     * Insert an item after another in a gengrid widget
8208     *
8209     * @param obj The gengrid object.
8210     * @param gic The item class for the item.
8211     * @param data The item data.
8212     * @param relative The item to place this new one after.
8213     * @param func Convenience function called when the item is
8214     * selected.
8215     * @param func_data Data to be passed to @p func.
8216     * @return A handle to the item added or @c NULL, on errors.
8217     *
8218     * This inserts an item after another in the gengrid.
8219     *
8220     * @see elm_gengrid_item_append()
8221     * @see elm_gengrid_item_prepend()
8222     * @see elm_gengrid_item_insert_after()
8223     * @see elm_gengrid_item_del()
8224     *
8225     * @ingroup Gengrid
8226     */
8227    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);
8228
8229    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);
8230
8231    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);
8232
8233    /**
8234     * Set whether items on a given gengrid widget are to get their
8235     * selection callbacks issued for @b every subsequent selection
8236     * click on them or just for the first click.
8237     *
8238     * @param obj The gengrid object
8239     * @param always_select @c EINA_TRUE to make items "always
8240     * selected", @c EINA_FALSE, otherwise
8241     *
8242     * By default, grid items will only call their selection callback
8243     * function when firstly getting selected, any subsequent further
8244     * clicks will do nothing. With this call, you make those
8245     * subsequent clicks also to issue the selection callbacks.
8246     *
8247     * @note <b>Double clicks</b> will @b always be reported on items.
8248     *
8249     * @see elm_gengrid_always_select_mode_get()
8250     *
8251     * @ingroup Gengrid
8252     */
8253    EAPI void               elm_gengrid_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
8254
8255    /**
8256     * Get whether items on a given gengrid widget have their selection
8257     * callbacks issued for @b every subsequent selection click on them
8258     * or just for the first click.
8259     *
8260     * @param obj The gengrid object.
8261     * @return @c EINA_TRUE if the gengrid items are "always selected",
8262     * @c EINA_FALSE, otherwise
8263     *
8264     * @see elm_gengrid_always_select_mode_set() for more details
8265     *
8266     * @ingroup Gengrid
8267     */
8268    EAPI Eina_Bool          elm_gengrid_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8269
8270    /**
8271     * Set whether items on a given gengrid widget can be selected or not.
8272     *
8273     * @param obj The gengrid object
8274     * @param no_select @c EINA_TRUE to make items selectable,
8275     * @c EINA_FALSE otherwise
8276     *
8277     * This will make items in @p obj selectable or not. In the latter
8278     * case, any user interaction on the gengrid items will neither make
8279     * them appear selected nor them call their selection callback
8280     * functions.
8281     *
8282     * @see elm_gengrid_no_select_mode_get()
8283     *
8284     * @ingroup Gengrid
8285     */
8286    EAPI void               elm_gengrid_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
8287
8288    /**
8289     * Get whether items on a given gengrid widget can be selected or
8290     * not.
8291     *
8292     * @param obj The gengrid object
8293     * @return @c EINA_TRUE, if items are selectable, @c EINA_FALSE
8294     * otherwise
8295     *
8296     * @see elm_gengrid_no_select_mode_set() for more details
8297     *
8298     * @ingroup Gengrid
8299     */
8300    EAPI Eina_Bool          elm_gengrid_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8301
8302    /**
8303     * Enable or disable multi-selection in a given gengrid widget
8304     *
8305     * @param obj The gengrid object.
8306     * @param multi @c EINA_TRUE, to enable multi-selection,
8307     * @c EINA_FALSE to disable it.
8308     *
8309     * Multi-selection is the ability for one to have @b more than one
8310     * item selected, on a given gengrid, simultaneously. When it is
8311     * enabled, a sequence of clicks on different items will make them
8312     * all selected, progressively. A click on an already selected item
8313     * will unselect it. If interecting via the keyboard,
8314     * multi-selection is enabled while holding the "Shift" key.
8315     *
8316     * @note By default, multi-selection is @b disabled on gengrids
8317     *
8318     * @see elm_gengrid_multi_select_get()
8319     *
8320     * @ingroup Gengrid
8321     */
8322    EAPI void               elm_gengrid_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
8323
8324    /**
8325     * Get whether multi-selection is enabled or disabled for a given
8326     * gengrid widget
8327     *
8328     * @param obj The gengrid object.
8329     * @return @c EINA_TRUE, if multi-selection is enabled, @c
8330     * EINA_FALSE otherwise
8331     *
8332     * @see elm_gengrid_multi_select_set() for more details
8333     *
8334     * @ingroup Gengrid
8335     */
8336    EAPI Eina_Bool          elm_gengrid_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8337
8338    /**
8339     * Enable or disable bouncing effect for a given gengrid widget
8340     *
8341     * @param obj The gengrid object
8342     * @param h_bounce @c EINA_TRUE, to enable @b horizontal bouncing,
8343     * @c EINA_FALSE to disable it
8344     * @param v_bounce @c EINA_TRUE, to enable @b vertical bouncing,
8345     * @c EINA_FALSE to disable it
8346     *
8347     * The bouncing effect occurs whenever one reaches the gengrid's
8348     * edge's while panning it -- it will scroll past its limits a
8349     * little bit and return to the edge again, in a animated for,
8350     * automatically.
8351     *
8352     * @note By default, gengrids have bouncing enabled on both axis
8353     *
8354     * @see elm_gengrid_bounce_get()
8355     *
8356     * @ingroup Gengrid
8357     */
8358    EAPI void               elm_gengrid_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
8359
8360    /**
8361     * Get whether bouncing effects are enabled or disabled, for a
8362     * given gengrid widget, on each axis
8363     *
8364     * @param obj The gengrid object
8365     * @param h_bounce Pointer to a variable where to store the
8366     * horizontal bouncing flag.
8367     * @param v_bounce Pointer to a variable where to store the
8368     * vertical bouncing flag.
8369     *
8370     * @see elm_gengrid_bounce_set() for more details
8371     *
8372     * @ingroup Gengrid
8373     */
8374    EAPI void               elm_gengrid_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
8375
8376    /**
8377     * Set a given gengrid widget's scrolling page size, relative to
8378     * its viewport size.
8379     *
8380     * @param obj The gengrid object
8381     * @param h_pagerel The horizontal page (relative) size
8382     * @param v_pagerel The vertical page (relative) size
8383     *
8384     * The gengrid's scroller is capable of binding scrolling by the
8385     * user to "pages". It means that, while scrolling and, specially
8386     * after releasing the mouse button, the grid will @b snap to the
8387     * nearest displaying page's area. When page sizes are set, the
8388     * grid's continuous content area is split into (equal) page sized
8389     * pieces.
8390     *
8391     * This function sets the size of a page <b>relatively to the
8392     * viewport dimensions</b> of the gengrid, for each axis. A value
8393     * @c 1.0 means "the exact viewport's size", in that axis, while @c
8394     * 0.0 turns paging off in that axis. Likewise, @c 0.5 means "half
8395     * a viewport". Sane usable values are, than, between @c 0.0 and @c
8396     * 1.0. Values beyond those will make it behave behave
8397     * inconsistently. If you only want one axis to snap to pages, use
8398     * the value @c 0.0 for the other one.
8399     *
8400     * There is a function setting page size values in @b absolute
8401     * values, too -- elm_gengrid_page_size_set(). Naturally, its use
8402     * is mutually exclusive to this one.
8403     *
8404     * @see elm_gengrid_page_relative_get()
8405     *
8406     * @ingroup Gengrid
8407     */
8408    EAPI void               elm_gengrid_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
8409
8410    /**
8411     * Get a given gengrid widget's scrolling page size, relative to
8412     * its viewport size.
8413     *
8414     * @param obj The gengrid object
8415     * @param h_pagerel Pointer to a variable where to store the
8416     * horizontal page (relative) size
8417     * @param v_pagerel Pointer to a variable where to store the
8418     * vertical page (relative) size
8419     *
8420     * @see elm_gengrid_page_relative_set() for more details
8421     *
8422     * @ingroup Gengrid
8423     */
8424    EAPI void               elm_gengrid_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel) EINA_ARG_NONNULL(1);
8425
8426    /**
8427     * Set a given gengrid widget's scrolling page size
8428     *
8429     * @param obj The gengrid object
8430     * @param h_pagerel The horizontal page size, in pixels
8431     * @param v_pagerel The vertical page size, in pixels
8432     *
8433     * The gengrid's scroller is capable of binding scrolling by the
8434     * user to "pages". It means that, while scrolling and, specially
8435     * after releasing the mouse button, the grid will @b snap to the
8436     * nearest displaying page's area. When page sizes are set, the
8437     * grid's continuous content area is split into (equal) page sized
8438     * pieces.
8439     *
8440     * This function sets the size of a page of the gengrid, in pixels,
8441     * for each axis. Sane usable values are, between @c 0 and the
8442     * dimensions of @p obj, for each axis. Values beyond those will
8443     * make it behave behave inconsistently. If you only want one axis
8444     * to snap to pages, use the value @c 0 for the other one.
8445     *
8446     * There is a function setting page size values in @b relative
8447     * values, too -- elm_gengrid_page_relative_set(). Naturally, its
8448     * use is mutually exclusive to this one.
8449     *
8450     * @ingroup Gengrid
8451     */
8452    EAPI void               elm_gengrid_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
8453
8454    /**
8455     * @brief Get gengrid current page number.
8456     *
8457     * @param obj The gengrid object
8458     * @param h_pagenumber The horizontal page number
8459     * @param v_pagenumber The vertical page number
8460     *
8461     * The page number starts from 0. 0 is the first page.
8462     * Current page means the page which meet the top-left of the viewport.
8463     * If there are two or more pages in the viewport, it returns the number of page
8464     * which meet the top-left of the viewport.
8465     *
8466     * @see elm_gengrid_last_page_get()
8467     * @see elm_gengrid_page_show()
8468     * @see elm_gengrid_page_brint_in()
8469     */
8470    EAPI void         elm_gengrid_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
8471
8472    /**
8473     * @brief Get scroll last page number.
8474     *
8475     * @param obj The gengrid object
8476     * @param h_pagenumber The horizontal page number
8477     * @param v_pagenumber The vertical page number
8478     *
8479     * The page number starts from 0. 0 is the first page.
8480     * This returns the last page number among the pages.
8481     *
8482     * @see elm_gengrid_current_page_get()
8483     * @see elm_gengrid_page_show()
8484     * @see elm_gengrid_page_brint_in()
8485     */
8486    EAPI void         elm_gengrid_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
8487
8488    /**
8489     * Show a specific virtual region within the gengrid content object by page number.
8490     *
8491     * @param obj The gengrid object
8492     * @param h_pagenumber The horizontal page number
8493     * @param v_pagenumber The vertical page number
8494     *
8495     * 0, 0 of the indicated page is located at the top-left of the viewport.
8496     * This will jump to the page directly without animation.
8497     *
8498     * Example of usage:
8499     *
8500     * @code
8501     * sc = elm_gengrid_add(win);
8502     * elm_gengrid_content_set(sc, content);
8503     * elm_gengrid_page_relative_set(sc, 1, 0);
8504     * elm_gengrid_current_page_get(sc, &h_page, &v_page);
8505     * elm_gengrid_page_show(sc, h_page + 1, v_page);
8506     * @endcode
8507     *
8508     * @see elm_gengrid_page_bring_in()
8509     */
8510    EAPI void         elm_gengrid_page_show(const Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
8511
8512    /**
8513     * Show a specific virtual region within the gengrid content object by page number.
8514     *
8515     * @param obj The gengrid object
8516     * @param h_pagenumber The horizontal page number
8517     * @param v_pagenumber The vertical page number
8518     *
8519     * 0, 0 of the indicated page is located at the top-left of the viewport.
8520     * This will slide to the page with animation.
8521     *
8522     * Example of usage:
8523     *
8524     * @code
8525     * sc = elm_gengrid_add(win);
8526     * elm_gengrid_content_set(sc, content);
8527     * elm_gengrid_page_relative_set(sc, 1, 0);
8528     * elm_gengrid_last_page_get(sc, &h_page, &v_page);
8529     * elm_gengrid_page_bring_in(sc, h_page, v_page);
8530     * @endcode
8531     *
8532     * @see elm_gengrid_page_show()
8533     */
8534     EAPI void         elm_gengrid_page_bring_in(const Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
8535
8536    /**
8537     * Set for what direction a given gengrid widget will expand while
8538     * placing its items.
8539     *
8540     * @param obj The gengrid object.
8541     * @param setting @c EINA_TRUE to make the gengrid expand
8542     * horizontally, @c EINA_FALSE to expand vertically.
8543     *
8544     * When in "horizontal mode" (@c EINA_TRUE), items will be placed
8545     * in @b columns, from top to bottom and, when the space for a
8546     * column is filled, another one is started on the right, thus
8547     * expanding the grid horizontally. When in "vertical mode"
8548     * (@c EINA_FALSE), though, items will be placed in @b rows, from left
8549     * to right and, when the space for a row is filled, another one is
8550     * started below, thus expanding the grid vertically.
8551     *
8552     * @see elm_gengrid_horizontal_get()
8553     *
8554     * @ingroup Gengrid
8555     */
8556    EAPI void               elm_gengrid_horizontal_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
8557
8558    /**
8559     * Get for what direction a given gengrid widget will expand while
8560     * placing its items.
8561     *
8562     * @param obj The gengrid object.
8563     * @return @c EINA_TRUE, if @p obj is set to expand horizontally,
8564     * @c EINA_FALSE if it's set to expand vertically.
8565     *
8566     * @see elm_gengrid_horizontal_set() for more detais
8567     *
8568     * @ingroup Gengrid
8569     */
8570    EAPI Eina_Bool          elm_gengrid_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8571
8572    /**
8573     * Get the first item in a given gengrid widget
8574     *
8575     * @param obj The gengrid object
8576     * @return The first item's handle or @c NULL, if there are no
8577     * items in @p obj (and on errors)
8578     *
8579     * This returns the first item in the @p obj's internal list of
8580     * items.
8581     *
8582     * @see elm_gengrid_last_item_get()
8583     *
8584     * @ingroup Gengrid
8585     */
8586    EAPI Elm_Gengrid_Item  *elm_gengrid_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8587
8588    /**
8589     * Get the last item in a given gengrid widget
8590     *
8591     * @param obj The gengrid object
8592     * @return The last item's handle or @c NULL, if there are no
8593     * items in @p obj (and on errors)
8594     *
8595     * This returns the last item in the @p obj's internal list of
8596     * items.
8597     *
8598     * @see elm_gengrid_first_item_get()
8599     *
8600     * @ingroup Gengrid
8601     */
8602    EAPI Elm_Gengrid_Item  *elm_gengrid_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8603
8604    /**
8605     * Get the @b next item in a gengrid widget's internal list of items,
8606     * given a handle to one of those items.
8607     *
8608     * @param item The gengrid item to fetch next from
8609     * @return The item after @p item, or @c NULL if there's none (and
8610     * on errors)
8611     *
8612     * This returns the item placed after the @p item, on the container
8613     * gengrid.
8614     *
8615     * @see elm_gengrid_item_prev_get()
8616     *
8617     * @ingroup Gengrid
8618     */
8619    EAPI Elm_Gengrid_Item  *elm_gengrid_item_next_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8620
8621    /**
8622     * Get the @b previous item in a gengrid widget's internal list of items,
8623     * given a handle to one of those items.
8624     *
8625     * @param item The gengrid item to fetch previous from
8626     * @return The item before @p item, or @c NULL if there's none (and
8627     * on errors)
8628     *
8629     * This returns the item placed before the @p item, on the container
8630     * gengrid.
8631     *
8632     * @see elm_gengrid_item_next_get()
8633     *
8634     * @ingroup Gengrid
8635     */
8636    EAPI Elm_Gengrid_Item  *elm_gengrid_item_prev_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8637
8638    /**
8639     * Get the gengrid object's handle which contains a given gengrid
8640     * item
8641     *
8642     * @param item The item to fetch the container from
8643     * @return The gengrid (parent) object
8644     *
8645     * This returns the gengrid object itself that an item belongs to.
8646     *
8647     * @ingroup Gengrid
8648     */
8649    EAPI Evas_Object       *elm_gengrid_item_gengrid_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8650
8651    /**
8652     * Remove a gengrid item from the its parent, deleting it.
8653     *
8654     * @param item The item to be removed.
8655     * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
8656     *
8657     * @see elm_gengrid_clear(), to remove all items in a gengrid at
8658     * once.
8659     *
8660     * @ingroup Gengrid
8661     */
8662    EAPI void               elm_gengrid_item_del(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8663
8664    /**
8665     * Update the contents of a given gengrid item
8666     *
8667     * @param item The gengrid item
8668     *
8669     * This updates an item by calling all the item class functions
8670     * again to get the icons, labels and states. Use this when the
8671     * original item data has changed and you want thta changes to be
8672     * reflected.
8673     *
8674     * @ingroup Gengrid
8675     */
8676    EAPI void               elm_gengrid_item_update(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8677    EAPI const Elm_Gengrid_Item_Class *elm_gengrid_item_item_class_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8678    EAPI void               elm_gengrid_item_item_class_set(Elm_Gengrid_Item *item, const Elm_Gengrid_Item_Class *gic) EINA_ARG_NONNULL(1, 2);
8679
8680    /**
8681     * Return the data associated to a given gengrid item
8682     *
8683     * @param item The gengrid item.
8684     * @return the data associated to this item.
8685     *
8686     * This returns the @c data value passed on the
8687     * elm_gengrid_item_append() and related item addition calls.
8688     *
8689     * @see elm_gengrid_item_append()
8690     * @see elm_gengrid_item_data_set()
8691     *
8692     * @ingroup Gengrid
8693     */
8694    EAPI void              *elm_gengrid_item_data_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8695
8696    /**
8697     * Set the data associated to a given gengrid item
8698     *
8699     * @param item The gengrid item
8700     * @param data The new data pointer to set on it
8701     *
8702     * This @b overrides the @c data value passed on the
8703     * elm_gengrid_item_append() and related item addition calls. This
8704     * function @b won't call elm_gengrid_item_update() automatically,
8705     * so you'd issue it afterwards if you want to hove the item
8706     * updated to reflect the that new data.
8707     *
8708     * @see elm_gengrid_item_data_get()
8709     *
8710     * @ingroup Gengrid
8711     */
8712    EAPI void               elm_gengrid_item_data_set(Elm_Gengrid_Item *item, const void *data) EINA_ARG_NONNULL(1);
8713
8714    /**
8715     * Get a given gengrid item's position, relative to the whole
8716     * gengrid's grid area.
8717     *
8718     * @param item The Gengrid item.
8719     * @param x Pointer to variable where to store the item's <b>row
8720     * number</b>.
8721     * @param y Pointer to variable where to store the item's <b>column
8722     * number</b>.
8723     *
8724     * This returns the "logical" position of the item whithin the
8725     * gengrid. For example, @c (0, 1) would stand for first row,
8726     * second column.
8727     *
8728     * @ingroup Gengrid
8729     */
8730    EAPI void               elm_gengrid_item_pos_get(const Elm_Gengrid_Item *item, unsigned int *x, unsigned int *y) EINA_ARG_NONNULL(1);
8731
8732    /**
8733     * Set whether a given gengrid item is selected or not
8734     *
8735     * @param item The gengrid item
8736     * @param selected Use @c EINA_TRUE, to make it selected, @c
8737     * EINA_FALSE to make it unselected
8738     *
8739     * This sets the selected state of an item. If multi selection is
8740     * not enabled on the containing gengrid and @p selected is @c
8741     * EINA_TRUE, any other previously selected items will get
8742     * unselected in favor of this new one.
8743     *
8744     * @see elm_gengrid_item_selected_get()
8745     *
8746     * @ingroup Gengrid
8747     */
8748    EAPI void               elm_gengrid_item_selected_set(Elm_Gengrid_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
8749
8750    /**
8751     * Get whether a given gengrid item is selected or not
8752     *
8753     * @param item The gengrid item
8754     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
8755     *
8756     * @see elm_gengrid_item_selected_set() for more details
8757     *
8758     * @ingroup Gengrid
8759     */
8760    EAPI Eina_Bool          elm_gengrid_item_selected_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8761
8762    /**
8763     * Get the real Evas object created to implement the view of a
8764     * given gengrid item
8765     *
8766     * @param item The gengrid item.
8767     * @return the Evas object implementing this item's view.
8768     *
8769     * This returns the actual Evas object used to implement the
8770     * specified gengrid item's view. This may be @c NULL, as it may
8771     * not have been created or may have been deleted, at any time, by
8772     * the gengrid. <b>Do not modify this object</b> (move, resize,
8773     * show, hide, etc.), as the gengrid is controlling it. This
8774     * function is for querying, emitting custom signals or hooking
8775     * lower level callbacks for events on that object. Do not delete
8776     * this object under any circumstances.
8777     *
8778     * @see elm_gengrid_item_data_get()
8779     *
8780     * @ingroup Gengrid
8781     */
8782    EAPI const Evas_Object *elm_gengrid_item_object_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8783
8784    /**
8785     * Show the portion of a gengrid's internal grid containing a given
8786     * item, @b immediately.
8787     *
8788     * @param item The item to display
8789     *
8790     * This causes gengrid to @b redraw its viewport's contents to the
8791     * region contining the given @p item item, if it is not fully
8792     * visible.
8793     *
8794     * @see elm_gengrid_item_bring_in()
8795     *
8796     * @ingroup Gengrid
8797     */
8798    EAPI void               elm_gengrid_item_show(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8799
8800    /**
8801     * Animatedly bring in, to the visible are of a gengrid, a given
8802     * item on it.
8803     *
8804     * @param item The gengrid item to display
8805     *
8806     * This causes gengrig to jump to the given @p item item and show
8807     * it (by scrolling), if it is not fully visible. This will use
8808     * animation to do so and take a period of time to complete.
8809     *
8810     * @see elm_gengrid_item_show()
8811     *
8812     * @ingroup Gengrid
8813     */
8814    EAPI void               elm_gengrid_item_bring_in(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8815
8816    /**
8817     * Set whether a given gengrid item is disabled or not.
8818     *
8819     * @param item The gengrid item
8820     * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
8821     * to enable it back.
8822     *
8823     * A disabled item cannot be selected or unselected. It will also
8824     * change its appearance, to signal the user it's disabled.
8825     *
8826     * @see elm_gengrid_item_disabled_get()
8827     *
8828     * @ingroup Gengrid
8829     */
8830    EAPI void               elm_gengrid_item_disabled_set(Elm_Gengrid_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
8831
8832    /**
8833     * Get whether a given gengrid item is disabled or not.
8834     *
8835     * @param item The gengrid item
8836     * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
8837     * (and on errors).
8838     *
8839     * @see elm_gengrid_item_disabled_set() for more details
8840     *
8841     * @ingroup Gengrid
8842     */
8843    EAPI Eina_Bool          elm_gengrid_item_disabled_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8844
8845    /**
8846     * Set the text to be shown in a given gengrid item's tooltips.
8847     *
8848     * @param item The gengrid item
8849     * @param text The text to set in the content
8850     *
8851     * This call will setup the text to be used as tooltip to that item
8852     * (analogous to elm_object_tooltip_text_set(), but being item
8853     * tooltips with higher precedence than object tooltips). It can
8854     * have only one tooltip at a time, so any previous tooltip data
8855     * will get removed.
8856     *
8857     * @ingroup Gengrid
8858     */
8859    EAPI void               elm_gengrid_item_tooltip_text_set(Elm_Gengrid_Item *item, const char *text) EINA_ARG_NONNULL(1);
8860
8861    /**
8862     * Set the content to be shown in a given gengrid item's tooltips
8863     *
8864     * @param item The gengrid item.
8865     * @param func The function returning the tooltip contents.
8866     * @param data What to provide to @a func as callback data/context.
8867     * @param del_cb Called when data is not needed anymore, either when
8868     *        another callback replaces @p func, the tooltip is unset with
8869     *        elm_gengrid_item_tooltip_unset() or the owner @p item
8870     *        dies. This callback receives as its first parameter the
8871     *        given @p data, being @c event_info the item handle.
8872     *
8873     * This call will setup the tooltip's contents to @p item
8874     * (analogous to elm_object_tooltip_content_cb_set(), but being
8875     * item tooltips with higher precedence than object tooltips). It
8876     * can have only one tooltip at a time, so any previous tooltip
8877     * content will get removed. @p func (with @p data) will be called
8878     * every time Elementary needs to show the tooltip and it should
8879     * return a valid Evas object, which will be fully managed by the
8880     * tooltip system, getting deleted when the tooltip is gone.
8881     *
8882     * @ingroup Gengrid
8883     */
8884    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);
8885
8886    /**
8887     * Unset a tooltip from a given gengrid item
8888     *
8889     * @param item gengrid item to remove a previously set tooltip from.
8890     *
8891     * This call removes any tooltip set on @p item. The callback
8892     * provided as @c del_cb to
8893     * elm_gengrid_item_tooltip_content_cb_set() will be called to
8894     * notify it is not used anymore (and have resources cleaned, if
8895     * need be).
8896     *
8897     * @see elm_gengrid_item_tooltip_content_cb_set()
8898     *
8899     * @ingroup Gengrid
8900     */
8901    EAPI void               elm_gengrid_item_tooltip_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8902
8903    /**
8904     * Set a different @b style for a given gengrid item's tooltip.
8905     *
8906     * @param item gengrid item with tooltip set
8907     * @param style the <b>theme style</b> to use on tooltips (e.g. @c
8908     * "default", @c "transparent", etc)
8909     *
8910     * Tooltips can have <b>alternate styles</b> to be displayed on,
8911     * which are defined by the theme set on Elementary. This function
8912     * works analogously as elm_object_tooltip_style_set(), but here
8913     * applied only to gengrid item objects. The default style for
8914     * tooltips is @c "default".
8915     *
8916     * @note before you set a style you should define a tooltip with
8917     *       elm_gengrid_item_tooltip_content_cb_set() or
8918     *       elm_gengrid_item_tooltip_text_set()
8919     *
8920     * @see elm_gengrid_item_tooltip_style_get()
8921     *
8922     * @ingroup Gengrid
8923     */
8924    EAPI void               elm_gengrid_item_tooltip_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
8925
8926    /**
8927     * Get the style set a given gengrid item's tooltip.
8928     *
8929     * @param item gengrid item with tooltip already set on.
8930     * @return style the theme style in use, which defaults to
8931     *         "default". If the object does not have a tooltip set,
8932     *         then @c NULL is returned.
8933     *
8934     * @see elm_gengrid_item_tooltip_style_set() for more details
8935     *
8936     * @ingroup Gengrid
8937     */
8938    EAPI const char        *elm_gengrid_item_tooltip_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8939    /**
8940     * @brief Disable size restrictions on an object's tooltip
8941     * @param item The tooltip's anchor object
8942     * @param disable If EINA_TRUE, size restrictions are disabled
8943     * @return EINA_FALSE on failure, EINA_TRUE on success
8944     *
8945     * This function allows a tooltip to expand beyond its parant window's canvas.
8946     * It will instead be limited only by the size of the display.
8947     */
8948    EAPI Eina_Bool          elm_gengrid_item_tooltip_size_restrict_disable(Elm_Gengrid_Item *item, Eina_Bool disable);
8949    /**
8950     * @brief Retrieve size restriction state of an object's tooltip
8951     * @param item The tooltip's anchor object
8952     * @return If EINA_TRUE, size restrictions are disabled
8953     *
8954     * This function returns whether a tooltip is allowed to expand beyond
8955     * its parant window's canvas.
8956     * It will instead be limited only by the size of the display.
8957     */
8958    EAPI Eina_Bool          elm_gengrid_item_tooltip_size_restrict_disabled_get(const Elm_Gengrid_Item *item);
8959    /**
8960     * Set the type of mouse pointer/cursor decoration to be shown,
8961     * when the mouse pointer is over the given gengrid widget item
8962     *
8963     * @param item gengrid item to customize cursor on
8964     * @param cursor the cursor type's name
8965     *
8966     * This function works analogously as elm_object_cursor_set(), but
8967     * here the cursor's changing area is restricted to the item's
8968     * area, and not the whole widget's. Note that that item cursors
8969     * have precedence over widget cursors, so that a mouse over @p
8970     * item will always show cursor @p type.
8971     *
8972     * If this function is called twice for an object, a previously set
8973     * cursor will be unset on the second call.
8974     *
8975     * @see elm_object_cursor_set()
8976     * @see elm_gengrid_item_cursor_get()
8977     * @see elm_gengrid_item_cursor_unset()
8978     *
8979     * @ingroup Gengrid
8980     */
8981    EAPI void               elm_gengrid_item_cursor_set(Elm_Gengrid_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
8982
8983    /**
8984     * Get the type of mouse pointer/cursor decoration set to be shown,
8985     * when the mouse pointer is over the given gengrid widget item
8986     *
8987     * @param item gengrid item with custom cursor set
8988     * @return the cursor type's name or @c NULL, if no custom cursors
8989     * were set to @p item (and on errors)
8990     *
8991     * @see elm_object_cursor_get()
8992     * @see elm_gengrid_item_cursor_set() for more details
8993     * @see elm_gengrid_item_cursor_unset()
8994     *
8995     * @ingroup Gengrid
8996     */
8997    EAPI const char        *elm_gengrid_item_cursor_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8998
8999    /**
9000     * Unset any custom mouse pointer/cursor decoration set to be
9001     * shown, when the mouse pointer is over the given gengrid widget
9002     * item, thus making it show the @b default cursor again.
9003     *
9004     * @param item a gengrid item
9005     *
9006     * Use this call to undo any custom settings on this item's cursor
9007     * decoration, bringing it back to defaults (no custom style set).
9008     *
9009     * @see elm_object_cursor_unset()
9010     * @see elm_gengrid_item_cursor_set() for more details
9011     *
9012     * @ingroup Gengrid
9013     */
9014    EAPI void               elm_gengrid_item_cursor_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9015
9016    /**
9017     * Set a different @b style for a given custom cursor set for a
9018     * gengrid item.
9019     *
9020     * @param item gengrid item with custom cursor set
9021     * @param style the <b>theme style</b> to use (e.g. @c "default",
9022     * @c "transparent", etc)
9023     *
9024     * This function only makes sense when one is using custom mouse
9025     * cursor decorations <b>defined in a theme file</b> , which can
9026     * have, given a cursor name/type, <b>alternate styles</b> on
9027     * it. It works analogously as elm_object_cursor_style_set(), but
9028     * here applied only to gengrid item objects.
9029     *
9030     * @warning Before you set a cursor style you should have defined a
9031     *       custom cursor previously on the item, with
9032     *       elm_gengrid_item_cursor_set()
9033     *
9034     * @see elm_gengrid_item_cursor_engine_only_set()
9035     * @see elm_gengrid_item_cursor_style_get()
9036     *
9037     * @ingroup Gengrid
9038     */
9039    EAPI void               elm_gengrid_item_cursor_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
9040
9041    /**
9042     * Get the current @b style set for a given gengrid item's custom
9043     * cursor
9044     *
9045     * @param item gengrid item with custom cursor set.
9046     * @return style the cursor style in use. If the object does not
9047     *         have a cursor set, then @c NULL is returned.
9048     *
9049     * @see elm_gengrid_item_cursor_style_set() for more details
9050     *
9051     * @ingroup Gengrid
9052     */
9053    EAPI const char        *elm_gengrid_item_cursor_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9054
9055    /**
9056     * Set if the (custom) cursor for a given gengrid item should be
9057     * searched in its theme, also, or should only rely on the
9058     * rendering engine.
9059     *
9060     * @param item item with custom (custom) cursor already set on
9061     * @param engine_only Use @c EINA_TRUE to have cursors looked for
9062     * only on those provided by the rendering engine, @c EINA_FALSE to
9063     * have them searched on the widget's theme, as well.
9064     *
9065     * @note This call is of use only if you've set a custom cursor
9066     * for gengrid items, with elm_gengrid_item_cursor_set().
9067     *
9068     * @note By default, cursors will only be looked for between those
9069     * provided by the rendering engine.
9070     *
9071     * @ingroup Gengrid
9072     */
9073    EAPI void               elm_gengrid_item_cursor_engine_only_set(Elm_Gengrid_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
9074
9075    /**
9076     * Get if the (custom) cursor for a given gengrid item is being
9077     * searched in its theme, also, or is only relying on the rendering
9078     * engine.
9079     *
9080     * @param item a gengrid item
9081     * @return @c EINA_TRUE, if cursors are being looked for only on
9082     * those provided by the rendering engine, @c EINA_FALSE if they
9083     * are being searched on the widget's theme, as well.
9084     *
9085     * @see elm_gengrid_item_cursor_engine_only_set(), for more details
9086     *
9087     * @ingroup Gengrid
9088     */
9089    EAPI Eina_Bool          elm_gengrid_item_cursor_engine_only_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9090
9091    /**
9092     * Remove all items from a given gengrid widget
9093     *
9094     * @param obj The gengrid object.
9095     *
9096     * This removes (and deletes) all items in @p obj, leaving it
9097     * empty.
9098     *
9099     * @see elm_gengrid_item_del(), to remove just one item.
9100     *
9101     * @ingroup Gengrid
9102     */
9103    EAPI void               elm_gengrid_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
9104
9105    /**
9106     * Get the selected item in a given gengrid widget
9107     *
9108     * @param obj The gengrid object.
9109     * @return The selected item's handleor @c NULL, if none is
9110     * selected at the moment (and on errors)
9111     *
9112     * This returns the selected item in @p obj. If multi selection is
9113     * enabled on @p obj (@see elm_gengrid_multi_select_set()), only
9114     * the first item in the list is selected, which might not be very
9115     * useful. For that case, see elm_gengrid_selected_items_get().
9116     *
9117     * @ingroup Gengrid
9118     */
9119    EAPI Elm_Gengrid_Item  *elm_gengrid_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9120
9121    /**
9122     * Get <b>a list</b> of selected items in a given gengrid
9123     *
9124     * @param obj The gengrid object.
9125     * @return The list of selected items or @c NULL, if none is
9126     * selected at the moment (and on errors)
9127     *
9128     * This returns a list of the selected items, in the order that
9129     * they appear in the grid. This list is only valid as long as no
9130     * more items are selected or unselected (or unselected implictly
9131     * by deletion). The list contains #Elm_Gengrid_Item pointers as
9132     * data, naturally.
9133     *
9134     * @see elm_gengrid_selected_item_get()
9135     *
9136     * @ingroup Gengrid
9137     */
9138    EAPI const Eina_List   *elm_gengrid_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9139
9140    /**
9141     * @}
9142     */
9143
9144    /**
9145     * @defgroup Clock Clock
9146     *
9147     * @image html img/widget/clock/preview-00.png
9148     * @image latex img/widget/clock/preview-00.eps
9149     *
9150     * This is a @b digital clock widget. In its default theme, it has a
9151     * vintage "flipping numbers clock" appearance, which will animate
9152     * sheets of individual algarisms individually as time goes by.
9153     *
9154     * A newly created clock will fetch system's time (already
9155     * considering local time adjustments) to start with, and will tick
9156     * accondingly. It may or may not show seconds.
9157     *
9158     * Clocks have an @b edition mode. When in it, the sheets will
9159     * display extra arrow indications on the top and bottom and the
9160     * user may click on them to raise or lower the time values. After
9161     * it's told to exit edition mode, it will keep ticking with that
9162     * new time set (it keeps the difference from local time).
9163     *
9164     * Also, when under edition mode, user clicks on the cited arrows
9165     * which are @b held for some time will make the clock to flip the
9166     * sheet, thus editing the time, continuosly and automatically for
9167     * the user. The interval between sheet flips will keep growing in
9168     * time, so that it helps the user to reach a time which is distant
9169     * from the one set.
9170     *
9171     * The time display is, by default, in military mode (24h), but an
9172     * am/pm indicator may be optionally shown, too, when it will
9173     * switch to 12h.
9174     *
9175     * Smart callbacks one can register to:
9176     * - "changed" - the clock's user changed the time
9177     *
9178     * Here is an example on its usage:
9179     * @li @ref clock_example
9180     */
9181
9182    /**
9183     * @addtogroup Clock
9184     * @{
9185     */
9186
9187    /**
9188     * Identifiers for which clock digits should be editable, when a
9189     * clock widget is in edition mode. Values may be ORed together to
9190     * make a mask, naturally.
9191     *
9192     * @see elm_clock_edit_set()
9193     * @see elm_clock_digit_edit_set()
9194     */
9195    typedef enum _Elm_Clock_Digedit
9196      {
9197         ELM_CLOCK_NONE         = 0, /**< Default value. Means that all digits are editable, when in edition mode. */
9198         ELM_CLOCK_HOUR_DECIMAL = 1 << 0, /**< Decimal algarism of hours value should be editable */
9199         ELM_CLOCK_HOUR_UNIT    = 1 << 1, /**< Unit algarism of hours value should be editable */
9200         ELM_CLOCK_MIN_DECIMAL  = 1 << 2, /**< Decimal algarism of minutes value should be editable */
9201         ELM_CLOCK_MIN_UNIT     = 1 << 3, /**< Unit algarism of minutes value should be editable */
9202         ELM_CLOCK_SEC_DECIMAL  = 1 << 4, /**< Decimal algarism of seconds value should be editable */
9203         ELM_CLOCK_SEC_UNIT     = 1 << 5, /**< Unit algarism of seconds value should be editable */
9204         ELM_CLOCK_ALL          = (1 << 6) - 1 /**< All digits should be editable */
9205      } Elm_Clock_Digedit;
9206
9207    /**
9208     * Add a new clock widget to the given parent Elementary
9209     * (container) object
9210     *
9211     * @param parent The parent object
9212     * @return a new clock widget handle or @c NULL, on errors
9213     *
9214     * This function inserts a new clock widget on the canvas.
9215     *
9216     * @ingroup Clock
9217     */
9218    EAPI Evas_Object      *elm_clock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9219
9220    /**
9221     * Set a clock widget's time, programmatically
9222     *
9223     * @param obj The clock widget object
9224     * @param hrs The hours to set
9225     * @param min The minutes to set
9226     * @param sec The secondes to set
9227     *
9228     * This function updates the time that is showed by the clock
9229     * widget.
9230     *
9231     *  Values @b must be set within the following ranges:
9232     * - 0 - 23, for hours
9233     * - 0 - 59, for minutes
9234     * - 0 - 59, for seconds,
9235     *
9236     * even if the clock is not in "military" mode.
9237     *
9238     * @warning The behavior for values set out of those ranges is @b
9239     * indefined.
9240     *
9241     * @ingroup Clock
9242     */
9243    EAPI void              elm_clock_time_set(Evas_Object *obj, int hrs, int min, int sec) EINA_ARG_NONNULL(1);
9244
9245    /**
9246     * Get a clock widget's time values
9247     *
9248     * @param obj The clock object
9249     * @param[out] hrs Pointer to the variable to get the hours value
9250     * @param[out] min Pointer to the variable to get the minutes value
9251     * @param[out] sec Pointer to the variable to get the seconds value
9252     *
9253     * This function gets the time set for @p obj, returning
9254     * it on the variables passed as the arguments to function
9255     *
9256     * @note Use @c NULL pointers on the time values you're not
9257     * interested in: they'll be ignored by the function.
9258     *
9259     * @ingroup Clock
9260     */
9261    EAPI void              elm_clock_time_get(const Evas_Object *obj, int *hrs, int *min, int *sec) EINA_ARG_NONNULL(1);
9262
9263    /**
9264     * Set whether a given clock widget is under <b>edition mode</b> or
9265     * under (default) displaying-only mode.
9266     *
9267     * @param obj The clock object
9268     * @param edit @c EINA_TRUE to put it in edition, @c EINA_FALSE to
9269     * put it back to "displaying only" mode
9270     *
9271     * This function makes a clock's time to be editable or not <b>by
9272     * user interaction</b>. When in edition mode, clocks @b stop
9273     * ticking, until one brings them back to canonical mode. The
9274     * elm_clock_digit_edit_set() function will influence which digits
9275     * of the clock will be editable. By default, all of them will be
9276     * (#ELM_CLOCK_NONE).
9277     *
9278     * @note am/pm sheets, if being shown, will @b always be editable
9279     * under edition mode.
9280     *
9281     * @see elm_clock_edit_get()
9282     *
9283     * @ingroup Clock
9284     */
9285    EAPI void              elm_clock_edit_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
9286
9287    /**
9288     * Retrieve whether a given clock widget is under <b>edition
9289     * mode</b> or under (default) displaying-only mode.
9290     *
9291     * @param obj The clock object
9292     * @param edit @c EINA_TRUE, if it's in edition mode, @c EINA_FALSE
9293     * otherwise
9294     *
9295     * This function retrieves whether the clock's time can be edited
9296     * or not by user interaction.
9297     *
9298     * @see elm_clock_edit_set() for more details
9299     *
9300     * @ingroup Clock
9301     */
9302    EAPI Eina_Bool         elm_clock_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9303
9304    /**
9305     * Set what digits of the given clock widget should be editable
9306     * when in edition mode.
9307     *
9308     * @param obj The clock object
9309     * @param digedit Bit mask indicating the digits to be editable
9310     * (values in #Elm_Clock_Digedit).
9311     *
9312     * If the @p digedit param is #ELM_CLOCK_NONE, editing will be
9313     * disabled on @p obj (same effect as elm_clock_edit_set(), with @c
9314     * EINA_FALSE).
9315     *
9316     * @see elm_clock_digit_edit_get()
9317     *
9318     * @ingroup Clock
9319     */
9320    EAPI void              elm_clock_digit_edit_set(Evas_Object *obj, Elm_Clock_Digedit digedit) EINA_ARG_NONNULL(1);
9321
9322    /**
9323     * Retrieve what digits of the given clock widget should be
9324     * editable when in edition mode.
9325     *
9326     * @param obj The clock object
9327     * @return Bit mask indicating the digits to be editable
9328     * (values in #Elm_Clock_Digedit).
9329     *
9330     * @see elm_clock_digit_edit_set() for more details
9331     *
9332     * @ingroup Clock
9333     */
9334    EAPI Elm_Clock_Digedit elm_clock_digit_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9335
9336    /**
9337     * Set if the given clock widget must show hours in military or
9338     * am/pm mode
9339     *
9340     * @param obj The clock object
9341     * @param am_pm @c EINA_TRUE to put it in am/pm mode, @c EINA_FALSE
9342     * to military mode
9343     *
9344     * This function sets if the clock must show hours in military or
9345     * am/pm mode. In some countries like Brazil the military mode
9346     * (00-24h-format) is used, in opposition to the USA, where the
9347     * am/pm mode is more commonly used.
9348     *
9349     * @see elm_clock_show_am_pm_get()
9350     *
9351     * @ingroup Clock
9352     */
9353    EAPI void              elm_clock_show_am_pm_set(Evas_Object *obj, Eina_Bool am_pm) EINA_ARG_NONNULL(1);
9354
9355    /**
9356     * Get if the given clock widget shows hours in military or am/pm
9357     * mode
9358     *
9359     * @param obj The clock object
9360     * @return @c EINA_TRUE, if in am/pm mode, @c EINA_FALSE if in
9361     * military
9362     *
9363     * This function gets if the clock shows hours in military or am/pm
9364     * mode.
9365     *
9366     * @see elm_clock_show_am_pm_set() for more details
9367     *
9368     * @ingroup Clock
9369     */
9370    EAPI Eina_Bool         elm_clock_show_am_pm_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9371
9372    /**
9373     * Set if the given clock widget must show time with seconds or not
9374     *
9375     * @param obj The clock object
9376     * @param seconds @c EINA_TRUE to show seconds, @c EINA_FALSE otherwise
9377     *
9378     * This function sets if the given clock must show or not elapsed
9379     * seconds. By default, they are @b not shown.
9380     *
9381     * @see elm_clock_show_seconds_get()
9382     *
9383     * @ingroup Clock
9384     */
9385    EAPI void              elm_clock_show_seconds_set(Evas_Object *obj, Eina_Bool seconds) EINA_ARG_NONNULL(1);
9386
9387    /**
9388     * Get whether the given clock widget is showing time with seconds
9389     * or not
9390     *
9391     * @param obj The clock object
9392     * @return @c EINA_TRUE if it's showing seconds, @c EINA_FALSE otherwise
9393     *
9394     * This function gets whether @p obj is showing or not the elapsed
9395     * seconds.
9396     *
9397     * @see elm_clock_show_seconds_set()
9398     *
9399     * @ingroup Clock
9400     */
9401    EAPI Eina_Bool         elm_clock_show_seconds_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9402
9403    /**
9404     * Set the interval on time updates for an user mouse button hold
9405     * on clock widgets' time edition.
9406     *
9407     * @param obj The clock object
9408     * @param interval The (first) interval value in seconds
9409     *
9410     * This interval value is @b decreased while the user holds the
9411     * mouse pointer either incrementing or decrementing a given the
9412     * clock digit's value.
9413     *
9414     * This helps the user to get to a given time distant from the
9415     * current one easier/faster, as it will start to flip quicker and
9416     * quicker on mouse button holds.
9417     *
9418     * The calculation for the next flip interval value, starting from
9419     * the one set with this call, is the previous interval divided by
9420     * 1.05, so it decreases a little bit.
9421     *
9422     * The default starting interval value for automatic flips is
9423     * @b 0.85 seconds.
9424     *
9425     * @see elm_clock_interval_get()
9426     *
9427     * @ingroup Clock
9428     */
9429    EAPI void              elm_clock_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
9430
9431    /**
9432     * Get the interval on time updates for an user mouse button hold
9433     * on clock widgets' time edition.
9434     *
9435     * @param obj The clock object
9436     * @return The (first) interval value, in seconds, set on it
9437     *
9438     * @see elm_clock_interval_set() for more details
9439     *
9440     * @ingroup Clock
9441     */
9442    EAPI double            elm_clock_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9443
9444    /**
9445     * @}
9446     */
9447
9448    /**
9449     * @defgroup Layout Layout
9450     *
9451     * @image html img/widget/layout/preview-00.png
9452     * @image latex img/widget/layout/preview-00.eps width=\textwidth
9453     *
9454     * @image html img/layout-predefined.png
9455     * @image latex img/layout-predefined.eps width=\textwidth
9456     *
9457     * This is a container widget that takes a standard Edje design file and
9458     * wraps it very thinly in a widget.
9459     *
9460     * An Edje design (theme) file has a very wide range of possibilities to
9461     * describe the behavior of elements added to the Layout. Check out the Edje
9462     * documentation and the EDC reference to get more information about what can
9463     * be done with Edje.
9464     *
9465     * Just like @ref List, @ref Box, and other container widgets, any
9466     * object added to the Layout will become its child, meaning that it will be
9467     * deleted if the Layout is deleted, move if the Layout is moved, and so on.
9468     *
9469     * The Layout widget can contain as many Contents, Boxes or Tables as
9470     * described in its theme file. For instance, objects can be added to
9471     * different Tables by specifying the respective Table part names. The same
9472     * is valid for Content and Box.
9473     *
9474     * The objects added as child of the Layout will behave as described in the
9475     * part description where they were added. There are 3 possible types of
9476     * parts where a child can be added:
9477     *
9478     * @section secContent Content (SWALLOW part)
9479     *
9480     * Only one object can be added to the @c SWALLOW part (but you still can
9481     * have many @c SWALLOW parts and one object on each of them). Use the @c
9482     * elm_layout_content_* set of functions to set, retrieve and unset objects
9483     * as content of the @c SWALLOW. After being set to this part, the object
9484     * size, position, visibility, clipping and other description properties
9485     * will be totally controled by the description of the given part (inside
9486     * the Edje theme file).
9487     *
9488     * One can use @c evas_object_size_hint_* functions on the child to have some
9489     * kind of control over its behavior, but the resulting behavior will still
9490     * depend heavily on the @c SWALLOW part description.
9491     *
9492     * The Edje theme also can change the part description, based on signals or
9493     * scripts running inside the theme. This change can also be animated. All of
9494     * this will affect the child object set as content accordingly. The object
9495     * size will be changed if the part size is changed, it will animate move if
9496     * the part is moving, and so on.
9497     *
9498     * The following picture demonstrates a Layout widget with a child object
9499     * added to its @c SWALLOW:
9500     *
9501     * @image html layout_swallow.png
9502     * @image latex layout_swallow.eps width=\textwidth
9503     *
9504     * @section secBox Box (BOX part)
9505     *
9506     * An Edje @c BOX part is very similar to the Elementary @ref Box widget. It
9507     * allows one to add objects to the box and have them distributed along its
9508     * area, accordingly to the specified @a layout property (now by @a layout we
9509     * mean the chosen layouting design of the Box, not the Layout widget
9510     * itself).
9511     *
9512     * A similar effect for having a box with its position, size and other things
9513     * controled by the Layout theme would be to create an Elementary @ref Box
9514     * widget and add it as a Content in the @c SWALLOW part.
9515     *
9516     * The main difference of using the Layout Box is that its behavior, the box
9517     * properties like layouting format, padding, align, etc. will be all
9518     * controled by the theme. This means, for example, that a signal could be
9519     * sent to the Layout theme (with elm_object_signal_emit()) and the theme
9520     * handled the signal by changing the box padding, or align, or both. Using
9521     * the Elementary @ref Box widget is not necessarily harder or easier, it
9522     * just depends on the circunstances and requirements.
9523     *
9524     * The Layout Box can be used through the @c elm_layout_box_* set of
9525     * functions.
9526     *
9527     * The following picture demonstrates a Layout widget with many child objects
9528     * added to its @c BOX part:
9529     *
9530     * @image html layout_box.png
9531     * @image latex layout_box.eps width=\textwidth
9532     *
9533     * @section secTable Table (TABLE part)
9534     *
9535     * Just like the @ref secBox, the Layout Table is very similar to the
9536     * Elementary @ref Table widget. It allows one to add objects to the Table
9537     * specifying the row and column where the object should be added, and any
9538     * column or row span if necessary.
9539     *
9540     * Again, we could have this design by adding a @ref Table widget to the @c
9541     * SWALLOW part using elm_layout_content_set(). The same difference happens
9542     * here when choosing to use the Layout Table (a @c TABLE part) instead of
9543     * the @ref Table plus @c SWALLOW part. It's just a matter of convenience.
9544     *
9545     * The Layout Table can be used through the @c elm_layout_table_* set of
9546     * functions.
9547     *
9548     * The following picture demonstrates a Layout widget with many child objects
9549     * added to its @c TABLE part:
9550     *
9551     * @image html layout_table.png
9552     * @image latex layout_table.eps width=\textwidth
9553     *
9554     * @section secPredef Predefined Layouts
9555     *
9556     * Another interesting thing about the Layout widget is that it offers some
9557     * predefined themes that come with the default Elementary theme. These
9558     * themes can be set by the call elm_layout_theme_set(), and provide some
9559     * basic functionality depending on the theme used.
9560     *
9561     * Most of them already send some signals, some already provide a toolbar or
9562     * back and next buttons.
9563     *
9564     * These are available predefined theme layouts. All of them have class = @c
9565     * layout, group = @c application, and style = one of the following options:
9566     *
9567     * @li @c toolbar-content - application with toolbar and main content area
9568     * @li @c toolbar-content-back - application with toolbar and main content
9569     * area with a back button and title area
9570     * @li @c toolbar-content-back-next - application with toolbar and main
9571     * content area with a back and next buttons and title area
9572     * @li @c content-back - application with a main content area with a back
9573     * button and title area
9574     * @li @c content-back-next - application with a main content area with a
9575     * back and next buttons and title area
9576     * @li @c toolbar-vbox - application with toolbar and main content area as a
9577     * vertical box
9578     * @li @c toolbar-table - application with toolbar and main content area as a
9579     * table
9580     *
9581     * @section secExamples Examples
9582     *
9583     * Some examples of the Layout widget can be found here:
9584     * @li @ref layout_example_01
9585     * @li @ref layout_example_02
9586     * @li @ref layout_example_03
9587     * @li @ref layout_example_edc
9588     *
9589     */
9590
9591    /**
9592     * Add a new layout to the parent
9593     *
9594     * @param parent The parent object
9595     * @return The new object or NULL if it cannot be created
9596     *
9597     * @see elm_layout_file_set()
9598     * @see elm_layout_theme_set()
9599     *
9600     * @ingroup Layout
9601     */
9602    EAPI Evas_Object       *elm_layout_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9603    /**
9604     * Set the file that will be used as layout
9605     *
9606     * @param obj The layout object
9607     * @param file The path to file (edj) that will be used as layout
9608     * @param group The group that the layout belongs in edje file
9609     *
9610     * @return (1 = success, 0 = error)
9611     *
9612     * @ingroup Layout
9613     */
9614    EAPI Eina_Bool          elm_layout_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
9615    /**
9616     * Set the edje group from the elementary theme that will be used as layout
9617     *
9618     * @param obj The layout object
9619     * @param clas the clas of the group
9620     * @param group the group
9621     * @param style the style to used
9622     *
9623     * @return (1 = success, 0 = error)
9624     *
9625     * @ingroup Layout
9626     */
9627    EAPI Eina_Bool          elm_layout_theme_set(Evas_Object *obj, const char *clas, const char *group, const char *style) EINA_ARG_NONNULL(1);
9628    /**
9629     * Set the layout content.
9630     *
9631     * @param obj The layout object
9632     * @param swallow The swallow part name in the edje file
9633     * @param content The child that will be added in this layout object
9634     *
9635     * Once the content object is set, a previously set one will be deleted.
9636     * If you want to keep that old content object, use the
9637     * elm_layout_content_unset() function.
9638     *
9639     * @note In an Edje theme, the part used as a content container is called @c
9640     * SWALLOW. This is why the parameter name is called @p swallow, but it is
9641     * expected to be a part name just like the second parameter of
9642     * elm_layout_box_append().
9643     *
9644     * @see elm_layout_box_append()
9645     * @see elm_layout_content_get()
9646     * @see elm_layout_content_unset()
9647     * @see @ref secBox
9648     *
9649     * @ingroup Layout
9650     */
9651    EAPI void               elm_layout_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
9652    /**
9653     * Get the child object in the given content part.
9654     *
9655     * @param obj The layout object
9656     * @param swallow The SWALLOW part to get its content
9657     *
9658     * @return The swallowed object or NULL if none or an error occurred
9659     *
9660     * @see elm_layout_content_set()
9661     *
9662     * @ingroup Layout
9663     */
9664    EAPI Evas_Object       *elm_layout_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
9665    /**
9666     * Unset the layout content.
9667     *
9668     * @param obj The layout object
9669     * @param swallow The swallow part name in the edje file
9670     * @return The content that was being used
9671     *
9672     * Unparent and return the content object which was set for this part.
9673     *
9674     * @see elm_layout_content_set()
9675     *
9676     * @ingroup Layout
9677     */
9678     EAPI Evas_Object       *elm_layout_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
9679    /**
9680     * Set the text of the given part
9681     *
9682     * @param obj The layout object
9683     * @param part The TEXT part where to set the text
9684     * @param text The text to set
9685     *
9686     * @ingroup Layout
9687     * @deprecated use elm_object_text_* instead.
9688     */
9689    EINA_DEPRECATED EAPI void               elm_layout_text_set(Evas_Object *obj, const char *part, const char *text) EINA_ARG_NONNULL(1);
9690    /**
9691     * Get the text set in the given part
9692     *
9693     * @param obj The layout object
9694     * @param part The TEXT part to retrieve the text off
9695     *
9696     * @return The text set in @p part
9697     *
9698     * @ingroup Layout
9699     * @deprecated use elm_object_text_* instead.
9700     */
9701    EINA_DEPRECATED EAPI const char        *elm_layout_text_get(const Evas_Object *obj, const char *part) EINA_ARG_NONNULL(1);
9702    /**
9703     * Append child to layout box part.
9704     *
9705     * @param obj the layout object
9706     * @param part the box part to which the object will be appended.
9707     * @param child the child object to append to box.
9708     *
9709     * Once the object is appended, it will become child of the layout. Its
9710     * lifetime will be bound to the layout, whenever the layout dies the child
9711     * will be deleted automatically. One should use elm_layout_box_remove() to
9712     * make this layout forget about the object.
9713     *
9714     * @see elm_layout_box_prepend()
9715     * @see elm_layout_box_insert_before()
9716     * @see elm_layout_box_insert_at()
9717     * @see elm_layout_box_remove()
9718     *
9719     * @ingroup Layout
9720     */
9721    EAPI void               elm_layout_box_append(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
9722    /**
9723     * Prepend child to layout box part.
9724     *
9725     * @param obj the layout object
9726     * @param part the box part to prepend.
9727     * @param child the child object to prepend to box.
9728     *
9729     * Once the object is prepended, it will become child of the layout. Its
9730     * lifetime will be bound to the layout, whenever the layout dies the child
9731     * will be deleted automatically. One should use elm_layout_box_remove() to
9732     * make this layout forget about the object.
9733     *
9734     * @see elm_layout_box_append()
9735     * @see elm_layout_box_insert_before()
9736     * @see elm_layout_box_insert_at()
9737     * @see elm_layout_box_remove()
9738     *
9739     * @ingroup Layout
9740     */
9741    EAPI void               elm_layout_box_prepend(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
9742    /**
9743     * Insert child to layout box part before a reference object.
9744     *
9745     * @param obj the layout object
9746     * @param part the box part to insert.
9747     * @param child the child object to insert into box.
9748     * @param reference another reference object to insert before in box.
9749     *
9750     * Once the object is inserted, it will become child of the layout. Its
9751     * lifetime will be bound to the layout, whenever the layout dies the child
9752     * will be deleted automatically. One should use elm_layout_box_remove() to
9753     * make this layout forget about the object.
9754     *
9755     * @see elm_layout_box_append()
9756     * @see elm_layout_box_prepend()
9757     * @see elm_layout_box_insert_before()
9758     * @see elm_layout_box_remove()
9759     *
9760     * @ingroup Layout
9761     */
9762    EAPI void               elm_layout_box_insert_before(Evas_Object *obj, const char *part, Evas_Object *child, const Evas_Object *reference) EINA_ARG_NONNULL(1);
9763    /**
9764     * Insert child to layout box part at a given position.
9765     *
9766     * @param obj the layout object
9767     * @param part the box part to insert.
9768     * @param child the child object to insert into box.
9769     * @param pos the numeric position >=0 to insert the child.
9770     *
9771     * Once the object is inserted, it will become child of the layout. Its
9772     * lifetime will be bound to the layout, whenever the layout dies the child
9773     * will be deleted automatically. One should use elm_layout_box_remove() to
9774     * make this layout forget about the object.
9775     *
9776     * @see elm_layout_box_append()
9777     * @see elm_layout_box_prepend()
9778     * @see elm_layout_box_insert_before()
9779     * @see elm_layout_box_remove()
9780     *
9781     * @ingroup Layout
9782     */
9783    EAPI void               elm_layout_box_insert_at(Evas_Object *obj, const char *part, Evas_Object *child, unsigned int pos) EINA_ARG_NONNULL(1);
9784    /**
9785     * Remove a child of the given part box.
9786     *
9787     * @param obj The layout object
9788     * @param part The box part name to remove child.
9789     * @param child The object to remove from box.
9790     * @return The object that was being used, or NULL if not found.
9791     *
9792     * The object will be removed from the box part and its lifetime will
9793     * not be handled by the layout anymore. This is equivalent to
9794     * elm_layout_content_unset() for box.
9795     *
9796     * @see elm_layout_box_append()
9797     * @see elm_layout_box_remove_all()
9798     *
9799     * @ingroup Layout
9800     */
9801    EAPI Evas_Object       *elm_layout_box_remove(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1, 2, 3);
9802    /**
9803     * Remove all child of the given part box.
9804     *
9805     * @param obj The layout object
9806     * @param part The box part name to remove child.
9807     * @param clear If EINA_TRUE, then all objects will be deleted as
9808     *        well, otherwise they will just be removed and will be
9809     *        dangling on the canvas.
9810     *
9811     * The objects will be removed from the box part and their lifetime will
9812     * not be handled by the layout anymore. This is equivalent to
9813     * elm_layout_box_remove() for all box children.
9814     *
9815     * @see elm_layout_box_append()
9816     * @see elm_layout_box_remove()
9817     *
9818     * @ingroup Layout
9819     */
9820    EAPI void               elm_layout_box_remove_all(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
9821    /**
9822     * Insert child to layout table part.
9823     *
9824     * @param obj the layout object
9825     * @param part the box part to pack child.
9826     * @param child_obj the child object to pack into table.
9827     * @param col the column to which the child should be added. (>= 0)
9828     * @param row the row to which the child should be added. (>= 0)
9829     * @param colspan how many columns should be used to store this object. (>=
9830     *        1)
9831     * @param rowspan how many rows should be used to store this object. (>= 1)
9832     *
9833     * Once the object is inserted, it will become child of the table. Its
9834     * lifetime will be bound to the layout, and whenever the layout dies the
9835     * child will be deleted automatically. One should use
9836     * elm_layout_table_remove() to make this layout forget about the object.
9837     *
9838     * If @p colspan or @p rowspan are bigger than 1, that object will occupy
9839     * more space than a single cell. For instance, the following code:
9840     * @code
9841     * elm_layout_table_pack(layout, "table_part", child, 0, 1, 3, 1);
9842     * @endcode
9843     *
9844     * Would result in an object being added like the following picture:
9845     *
9846     * @image html layout_colspan.png
9847     * @image latex layout_colspan.eps width=\textwidth
9848     *
9849     * @see elm_layout_table_unpack()
9850     * @see elm_layout_table_clear()
9851     *
9852     * @ingroup Layout
9853     */
9854    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);
9855    /**
9856     * Unpack (remove) a child of the given part table.
9857     *
9858     * @param obj The layout object
9859     * @param part The table part name to remove child.
9860     * @param child_obj The object to remove from table.
9861     * @return The object that was being used, or NULL if not found.
9862     *
9863     * The object will be unpacked from the table part and its lifetime
9864     * will not be handled by the layout anymore. This is equivalent to
9865     * elm_layout_content_unset() for table.
9866     *
9867     * @see elm_layout_table_pack()
9868     * @see elm_layout_table_clear()
9869     *
9870     * @ingroup Layout
9871     */
9872    EAPI Evas_Object       *elm_layout_table_unpack(Evas_Object *obj, const char *part, Evas_Object *child_obj) EINA_ARG_NONNULL(1, 2, 3);
9873    /**
9874     * Remove all child of the given part table.
9875     *
9876     * @param obj The layout object
9877     * @param part The table part name to remove child.
9878     * @param clear If EINA_TRUE, then all objects will be deleted as
9879     *        well, otherwise they will just be removed and will be
9880     *        dangling on the canvas.
9881     *
9882     * The objects will be removed from the table part and their lifetime will
9883     * not be handled by the layout anymore. This is equivalent to
9884     * elm_layout_table_unpack() for all table children.
9885     *
9886     * @see elm_layout_table_pack()
9887     * @see elm_layout_table_unpack()
9888     *
9889     * @ingroup Layout
9890     */
9891    EAPI void               elm_layout_table_clear(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
9892    /**
9893     * Get the edje layout
9894     *
9895     * @param obj The layout object
9896     *
9897     * @return A Evas_Object with the edje layout settings loaded
9898     * with function elm_layout_file_set
9899     *
9900     * This returns the edje object. It is not expected to be used to then
9901     * swallow objects via edje_object_part_swallow() for example. Use
9902     * elm_layout_content_set() instead so child object handling and sizing is
9903     * done properly.
9904     *
9905     * @note This function should only be used if you really need to call some
9906     * low level Edje function on this edje object. All the common stuff (setting
9907     * text, emitting signals, hooking callbacks to signals, etc.) can be done
9908     * with proper elementary functions.
9909     *
9910     * @see elm_object_signal_callback_add()
9911     * @see elm_object_signal_emit()
9912     * @see elm_object_text_part_set()
9913     * @see elm_layout_content_set()
9914     * @see elm_layout_box_append()
9915     * @see elm_layout_table_pack()
9916     * @see elm_layout_data_get()
9917     *
9918     * @ingroup Layout
9919     */
9920    EAPI Evas_Object       *elm_layout_edje_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9921    /**
9922     * Get the edje data from the given layout
9923     *
9924     * @param obj The layout object
9925     * @param key The data key
9926     *
9927     * @return The edje data string
9928     *
9929     * This function fetches data specified inside the edje theme of this layout.
9930     * This function return NULL if data is not found.
9931     *
9932     * In EDC this comes from a data block within the group block that @p
9933     * obj was loaded from. E.g.
9934     *
9935     * @code
9936     * collections {
9937     *   group {
9938     *     name: "a_group";
9939     *     data {
9940     *       item: "key1" "value1";
9941     *       item: "key2" "value2";
9942     *     }
9943     *   }
9944     * }
9945     * @endcode
9946     *
9947     * @ingroup Layout
9948     */
9949    EAPI const char        *elm_layout_data_get(const Evas_Object *obj, const char *key) EINA_ARG_NONNULL(1, 2);
9950    /**
9951     * Eval sizing
9952     *
9953     * @param obj The layout object
9954     *
9955     * Manually forces a sizing re-evaluation. This is useful when the minimum
9956     * size required by the edje theme of this layout has changed. The change on
9957     * the minimum size required by the edje theme is not immediately reported to
9958     * the elementary layout, so one needs to call this function in order to tell
9959     * the widget (layout) that it needs to reevaluate its own size.
9960     *
9961     * The minimum size of the theme is calculated based on minimum size of
9962     * parts, the size of elements inside containers like box and table, etc. All
9963     * of this can change due to state changes, and that's when this function
9964     * should be called.
9965     *
9966     * Also note that a standard signal of "size,eval" "elm" emitted from the
9967     * edje object will cause this to happen too.
9968     *
9969     * @ingroup Layout
9970     */
9971    EAPI void               elm_layout_sizing_eval(Evas_Object *obj) EINA_ARG_NONNULL(1);
9972
9973    /**
9974     * Sets a specific cursor for an edje part.
9975     *
9976     * @param obj The layout object.
9977     * @param part_name a part from loaded edje group.
9978     * @param cursor cursor name to use, see Elementary_Cursor.h
9979     *
9980     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
9981     *         part not exists or it has "mouse_events: 0".
9982     *
9983     * @ingroup Layout
9984     */
9985    EAPI Eina_Bool          elm_layout_part_cursor_set(Evas_Object *obj, const char *part_name, const char *cursor) EINA_ARG_NONNULL(1, 2);
9986
9987    /**
9988     * Get the cursor to be shown when mouse is over an edje part
9989     *
9990     * @param obj The layout object.
9991     * @param part_name a part from loaded edje group.
9992     * @return the cursor name.
9993     *
9994     * @ingroup Layout
9995     */
9996    EAPI const char        *elm_layout_part_cursor_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
9997
9998    /**
9999     * Unsets a cursor previously set with elm_layout_part_cursor_set().
10000     *
10001     * @param obj The layout object.
10002     * @param part_name a part from loaded edje group, that had a cursor set
10003     *        with elm_layout_part_cursor_set().
10004     *
10005     * @ingroup Layout
10006     */
10007    EAPI void               elm_layout_part_cursor_unset(Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10008
10009    /**
10010     * Sets a specific cursor style for an edje part.
10011     *
10012     * @param obj The layout object.
10013     * @param part_name a part from loaded edje group.
10014     * @param style the theme style to use (default, transparent, ...)
10015     *
10016     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
10017     *         part not exists or it did not had a cursor set.
10018     *
10019     * @ingroup Layout
10020     */
10021    EAPI Eina_Bool          elm_layout_part_cursor_style_set(Evas_Object *obj, const char *part_name, const char *style) EINA_ARG_NONNULL(1, 2);
10022
10023    /**
10024     * Gets a specific cursor style for an edje part.
10025     *
10026     * @param obj The layout object.
10027     * @param part_name a part from loaded edje group.
10028     *
10029     * @return the theme style in use, defaults to "default". If the
10030     *         object does not have a cursor set, then NULL is returned.
10031     *
10032     * @ingroup Layout
10033     */
10034    EAPI const char        *elm_layout_part_cursor_style_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10035
10036    /**
10037     * Sets if the cursor set should be searched on the theme or should use
10038     * the provided by the engine, only.
10039     *
10040     * @note before you set if should look on theme you should define a
10041     * cursor with elm_layout_part_cursor_set(). By default it will only
10042     * look for cursors provided by the engine.
10043     *
10044     * @param obj The layout object.
10045     * @param part_name a part from loaded edje group.
10046     * @param engine_only if cursors should be just provided by the engine
10047     *        or should also search on widget's theme as well
10048     *
10049     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
10050     *         part not exists or it did not had a cursor set.
10051     *
10052     * @ingroup Layout
10053     */
10054    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);
10055
10056    /**
10057     * Gets a specific cursor engine_only for an edje part.
10058     *
10059     * @param obj The layout object.
10060     * @param part_name a part from loaded edje group.
10061     *
10062     * @return whenever the cursor is just provided by engine or also from theme.
10063     *
10064     * @ingroup Layout
10065     */
10066    EAPI Eina_Bool          elm_layout_part_cursor_engine_only_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10067
10068 /**
10069  * @def elm_layout_icon_set
10070  * Convienience macro to set the icon object in a layout that follows the
10071  * Elementary naming convention for its parts.
10072  *
10073  * @ingroup Layout
10074  */
10075 #define elm_layout_icon_set(_ly, _obj) \
10076   do { \
10077     const char *sig; \
10078     elm_layout_content_set((_ly), "elm.swallow.icon", (_obj)); \
10079     if ((_obj)) sig = "elm,state,icon,visible"; \
10080     else sig = "elm,state,icon,hidden"; \
10081     elm_object_signal_emit((_ly), sig, "elm"); \
10082   } while (0)
10083
10084 /**
10085  * @def elm_layout_icon_get
10086  * Convienience macro to get the icon object from a layout that follows the
10087  * Elementary naming convention for its parts.
10088  *
10089  * @ingroup Layout
10090  */
10091 #define elm_layout_icon_get(_ly) \
10092   elm_layout_content_get((_ly), "elm.swallow.icon")
10093
10094 /**
10095  * @def elm_layout_end_set
10096  * Convienience macro to set the end object in a layout that follows the
10097  * Elementary naming convention for its parts.
10098  *
10099  * @ingroup Layout
10100  */
10101 #define elm_layout_end_set(_ly, _obj) \
10102   do { \
10103     const char *sig; \
10104     elm_layout_content_set((_ly), "elm.swallow.end", (_obj)); \
10105     if ((_obj)) sig = "elm,state,end,visible"; \
10106     else sig = "elm,state,end,hidden"; \
10107     elm_object_signal_emit((_ly), sig, "elm"); \
10108   } while (0)
10109
10110 /**
10111  * @def elm_layout_end_get
10112  * Convienience macro to get the end object in a layout that follows the
10113  * Elementary naming convention for its parts.
10114  *
10115  * @ingroup Layout
10116  */
10117 #define elm_layout_end_get(_ly) \
10118   elm_layout_content_get((_ly), "elm.swallow.end")
10119
10120 /**
10121  * @def elm_layout_label_set
10122  * Convienience macro to set the label in a layout that follows the
10123  * Elementary naming convention for its parts.
10124  *
10125  * @ingroup Layout
10126  * @deprecated use elm_object_text_* instead.
10127  */
10128 #define elm_layout_label_set(_ly, _txt) \
10129   elm_layout_text_set((_ly), "elm.text", (_txt))
10130
10131 /**
10132  * @def elm_layout_label_get
10133  * Convienience macro to get the label in a layout that follows the
10134  * Elementary naming convention for its parts.
10135  *
10136  * @ingroup Layout
10137  * @deprecated use elm_object_text_* instead.
10138  */
10139 #define elm_layout_label_get(_ly) \
10140   elm_layout_text_get((_ly), "elm.text")
10141
10142    /* smart callbacks called:
10143     * "theme,changed" - when elm theme is changed.
10144     */
10145
10146    /**
10147     * @defgroup Notify Notify
10148     *
10149     * @image html img/widget/notify/preview-00.png
10150     * @image latex img/widget/notify/preview-00.eps
10151     *
10152     * Display a container in a particular region of the parent(top, bottom,
10153     * etc.  A timeout can be set to automatically hide the notify. This is so
10154     * that, after an evas_object_show() on a notify object, if a timeout was set
10155     * on it, it will @b automatically get hidden after that time.
10156     *
10157     * Signals that you can add callbacks for are:
10158     * @li "timeout" - when timeout happens on notify and it's hidden
10159     * @li "block,clicked" - when a click outside of the notify happens
10160     *
10161     * @ref tutorial_notify show usage of the API.
10162     *
10163     * @{
10164     */
10165    /**
10166     * @brief Possible orient values for notify.
10167     *
10168     * This values should be used in conjunction to elm_notify_orient_set() to
10169     * set the position in which the notify should appear(relative to its parent)
10170     * and in conjunction with elm_notify_orient_get() to know where the notify
10171     * is appearing.
10172     */
10173    typedef enum _Elm_Notify_Orient
10174      {
10175         ELM_NOTIFY_ORIENT_TOP, /**< Notify should appear in the top of parent, default */
10176         ELM_NOTIFY_ORIENT_CENTER, /**< Notify should appear in the center of parent */
10177         ELM_NOTIFY_ORIENT_BOTTOM, /**< Notify should appear in the bottom of parent */
10178         ELM_NOTIFY_ORIENT_LEFT, /**< Notify should appear in the left of parent */
10179         ELM_NOTIFY_ORIENT_RIGHT, /**< Notify should appear in the right of parent */
10180         ELM_NOTIFY_ORIENT_TOP_LEFT, /**< Notify should appear in the top left of parent */
10181         ELM_NOTIFY_ORIENT_TOP_RIGHT, /**< Notify should appear in the top right of parent */
10182         ELM_NOTIFY_ORIENT_BOTTOM_LEFT, /**< Notify should appear in the bottom left of parent */
10183         ELM_NOTIFY_ORIENT_BOTTOM_RIGHT, /**< Notify should appear in the bottom right of parent */
10184         ELM_NOTIFY_ORIENT_LAST /**< Sentinel value, @b don't use */
10185      } Elm_Notify_Orient;
10186    /**
10187     * @brief Add a new notify to the parent
10188     *
10189     * @param parent The parent object
10190     * @return The new object or NULL if it cannot be created
10191     */
10192    EAPI Evas_Object      *elm_notify_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10193    /**
10194     * @brief Set the content of the notify widget
10195     *
10196     * @param obj The notify object
10197     * @param content The content will be filled in this notify object
10198     *
10199     * Once the content object is set, a previously set one will be deleted. If
10200     * you want to keep that old content object, use the
10201     * elm_notify_content_unset() function.
10202     */
10203    EAPI void              elm_notify_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
10204    /**
10205     * @brief Unset the content of the notify widget
10206     *
10207     * @param obj The notify object
10208     * @return The content that was being used
10209     *
10210     * Unparent and return the content object which was set for this widget
10211     *
10212     * @see elm_notify_content_set()
10213     */
10214    EAPI Evas_Object      *elm_notify_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
10215    /**
10216     * @brief Return the content of the notify widget
10217     *
10218     * @param obj The notify object
10219     * @return The content that is being used
10220     *
10221     * @see elm_notify_content_set()
10222     */
10223    EAPI Evas_Object      *elm_notify_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10224    /**
10225     * @brief Set the notify parent
10226     *
10227     * @param obj The notify object
10228     * @param content The new parent
10229     *
10230     * Once the parent object is set, a previously set one will be disconnected
10231     * and replaced.
10232     */
10233    EAPI void              elm_notify_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
10234    /**
10235     * @brief Get the notify parent
10236     *
10237     * @param obj The notify object
10238     * @return The parent
10239     *
10240     * @see elm_notify_parent_set()
10241     */
10242    EAPI Evas_Object      *elm_notify_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10243    /**
10244     * @brief Set the orientation
10245     *
10246     * @param obj The notify object
10247     * @param orient The new orientation
10248     *
10249     * Sets the position in which the notify will appear in its parent.
10250     *
10251     * @see @ref Elm_Notify_Orient for possible values.
10252     */
10253    EAPI void              elm_notify_orient_set(Evas_Object *obj, Elm_Notify_Orient orient) EINA_ARG_NONNULL(1);
10254    /**
10255     * @brief Return the orientation
10256     * @param obj The notify object
10257     * @return The orientation of the notification
10258     *
10259     * @see elm_notify_orient_set()
10260     * @see Elm_Notify_Orient
10261     */
10262    EAPI Elm_Notify_Orient elm_notify_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10263    /**
10264     * @brief Set the time interval after which the notify window is going to be
10265     * hidden.
10266     *
10267     * @param obj The notify object
10268     * @param time The timeout in seconds
10269     *
10270     * This function sets a timeout and starts the timer controlling when the
10271     * notify is hidden. Since calling evas_object_show() on a notify restarts
10272     * the timer controlling when the notify is hidden, setting this before the
10273     * notify is shown will in effect mean starting the timer when the notify is
10274     * shown.
10275     *
10276     * @note Set a value <= 0.0 to disable a running timer.
10277     *
10278     * @note If the value > 0.0 and the notify is previously visible, the
10279     * timer will be started with this value, canceling any running timer.
10280     */
10281    EAPI void              elm_notify_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
10282    /**
10283     * @brief Return the timeout value (in seconds)
10284     * @param obj the notify object
10285     *
10286     * @see elm_notify_timeout_set()
10287     */
10288    EAPI double            elm_notify_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10289    /**
10290     * @brief Sets whether events should be passed to by a click outside
10291     * its area.
10292     *
10293     * @param obj The notify object
10294     * @param repeats EINA_TRUE Events are repeats, else no
10295     *
10296     * When true if the user clicks outside the window the events will be caught
10297     * by the others widgets, else the events are blocked.
10298     *
10299     * @note The default value is EINA_TRUE.
10300     */
10301    EAPI void              elm_notify_repeat_events_set(Evas_Object *obj, Eina_Bool repeat) EINA_ARG_NONNULL(1);
10302    /**
10303     * @brief Return true if events are repeat below the notify object
10304     * @param obj the notify object
10305     *
10306     * @see elm_notify_repeat_events_set()
10307     */
10308    EAPI Eina_Bool         elm_notify_repeat_events_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10309    /**
10310     * @}
10311     */
10312
10313    /**
10314     * @defgroup Hover Hover
10315     *
10316     * @image html img/widget/hover/preview-00.png
10317     * @image latex img/widget/hover/preview-00.eps
10318     *
10319     * A Hover object will hover over its @p parent object at the @p target
10320     * location. Anything in the background will be given a darker coloring to
10321     * indicate that the hover object is on top (at the default theme). When the
10322     * hover is clicked it is dismissed(hidden), if the contents of the hover are
10323     * clicked that @b doesn't cause the hover to be dismissed.
10324     *
10325     * @note The hover object will take up the entire space of @p target
10326     * object.
10327     *
10328     * Elementary has the following styles for the hover widget:
10329     * @li default
10330     * @li popout
10331     * @li menu
10332     * @li hoversel_vertical
10333     *
10334     * The following are the available position for content:
10335     * @li left
10336     * @li top-left
10337     * @li top
10338     * @li top-right
10339     * @li right
10340     * @li bottom-right
10341     * @li bottom
10342     * @li bottom-left
10343     * @li middle
10344     * @li smart
10345     *
10346     * Signals that you can add callbacks for are:
10347     * @li "clicked" - the user clicked the empty space in the hover to dismiss
10348     * @li "smart,changed" - a content object placed under the "smart"
10349     *                   policy was replaced to a new slot direction.
10350     *
10351     * See @ref tutorial_hover for more information.
10352     *
10353     * @{
10354     */
10355    typedef enum _Elm_Hover_Axis
10356      {
10357         ELM_HOVER_AXIS_NONE, /**< ELM_HOVER_AXIS_NONE -- no prefered orientation */
10358         ELM_HOVER_AXIS_HORIZONTAL, /**< ELM_HOVER_AXIS_HORIZONTAL -- horizontal */
10359         ELM_HOVER_AXIS_VERTICAL, /**< ELM_HOVER_AXIS_VERTICAL -- vertical */
10360         ELM_HOVER_AXIS_BOTH /**< ELM_HOVER_AXIS_BOTH -- both */
10361      } Elm_Hover_Axis;
10362    /**
10363     * @brief Adds a hover object to @p parent
10364     *
10365     * @param parent The parent object
10366     * @return The hover object or NULL if one could not be created
10367     */
10368    EAPI Evas_Object *elm_hover_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10369    /**
10370     * @brief Sets the target object for the hover.
10371     *
10372     * @param obj The hover object
10373     * @param target The object to center the hover onto. The hover
10374     *
10375     * This function will cause the hover to be centered on the target object.
10376     */
10377    EAPI void         elm_hover_target_set(Evas_Object *obj, Evas_Object *target) EINA_ARG_NONNULL(1);
10378    /**
10379     * @brief Gets the target object for the hover.
10380     *
10381     * @param obj The hover object
10382     * @param parent The object to locate the hover over.
10383     *
10384     * @see elm_hover_target_set()
10385     */
10386    EAPI Evas_Object *elm_hover_target_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10387    /**
10388     * @brief Sets the parent object for the hover.
10389     *
10390     * @param obj The hover object
10391     * @param parent The object to locate the hover over.
10392     *
10393     * This function will cause the hover to take up the entire space that the
10394     * parent object fills.
10395     */
10396    EAPI void         elm_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
10397    /**
10398     * @brief Gets the parent object for the hover.
10399     *
10400     * @param obj The hover object
10401     * @return The parent object to locate the hover over.
10402     *
10403     * @see elm_hover_parent_set()
10404     */
10405    EAPI Evas_Object *elm_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10406    /**
10407     * @brief Sets the content of the hover object and the direction in which it
10408     * will pop out.
10409     *
10410     * @param obj The hover object
10411     * @param swallow The direction that the object will be displayed
10412     * at. Accepted values are "left", "top-left", "top", "top-right",
10413     * "right", "bottom-right", "bottom", "bottom-left", "middle" and
10414     * "smart".
10415     * @param content The content to place at @p swallow
10416     *
10417     * Once the content object is set for a given direction, a previously
10418     * set one (on the same direction) will be deleted. If you want to
10419     * keep that old content object, use the elm_hover_content_unset()
10420     * function.
10421     *
10422     * All directions may have contents at the same time, except for
10423     * "smart". This is a special placement hint and its use case
10424     * independs of the calculations coming from
10425     * elm_hover_best_content_location_get(). Its use is for cases when
10426     * one desires only one hover content, but with a dinamic special
10427     * placement within the hover area. The content's geometry, whenever
10428     * it changes, will be used to decide on a best location not
10429     * extrapolating the hover's parent object view to show it in (still
10430     * being the hover's target determinant of its medium part -- move and
10431     * resize it to simulate finger sizes, for example). If one of the
10432     * directions other than "smart" are used, a previously content set
10433     * using it will be deleted, and vice-versa.
10434     */
10435    EAPI void         elm_hover_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
10436    /**
10437     * @brief Get the content of the hover object, in a given direction.
10438     *
10439     * Return the content object which was set for this widget in the
10440     * @p swallow direction.
10441     *
10442     * @param obj The hover object
10443     * @param swallow The direction that the object was display at.
10444     * @return The content that was being used
10445     *
10446     * @see elm_hover_content_set()
10447     */
10448    EAPI Evas_Object *elm_hover_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10449    /**
10450     * @brief Unset the content of the hover object, in a given direction.
10451     *
10452     * Unparent and return the content object set at @p swallow direction.
10453     *
10454     * @param obj The hover object
10455     * @param swallow The direction that the object was display at.
10456     * @return The content that was being used.
10457     *
10458     * @see elm_hover_content_set()
10459     */
10460    EAPI Evas_Object *elm_hover_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10461    /**
10462     * @brief Returns the best swallow location for content in the hover.
10463     *
10464     * @param obj The hover object
10465     * @param pref_axis The preferred orientation axis for the hover object to use
10466     * @return The edje location to place content into the hover or @c
10467     *         NULL, on errors.
10468     *
10469     * Best is defined here as the location at which there is the most available
10470     * space.
10471     *
10472     * @p pref_axis may be one of
10473     * - @c ELM_HOVER_AXIS_NONE -- no prefered orientation
10474     * - @c ELM_HOVER_AXIS_HORIZONTAL -- horizontal
10475     * - @c ELM_HOVER_AXIS_VERTICAL -- vertical
10476     * - @c ELM_HOVER_AXIS_BOTH -- both
10477     *
10478     * If ELM_HOVER_AXIS_HORIZONTAL is choosen the returned position will
10479     * nescessarily be along the horizontal axis("left" or "right"). If
10480     * ELM_HOVER_AXIS_VERTICAL is choosen the returned position will nescessarily
10481     * be along the vertical axis("top" or "bottom"). Chossing
10482     * ELM_HOVER_AXIS_BOTH or ELM_HOVER_AXIS_NONE has the same effect and the
10483     * returned position may be in either axis.
10484     *
10485     * @see elm_hover_content_set()
10486     */
10487    EAPI const char  *elm_hover_best_content_location_get(const Evas_Object *obj, Elm_Hover_Axis pref_axis) EINA_ARG_NONNULL(1);
10488    /**
10489     * @}
10490     */
10491
10492    /* entry */
10493    /**
10494     * @defgroup Entry Entry
10495     *
10496     * @image html img/widget/entry/preview-00.png
10497     * @image latex img/widget/entry/preview-00.eps width=\textwidth
10498     * @image html img/widget/entry/preview-01.png
10499     * @image latex img/widget/entry/preview-01.eps width=\textwidth
10500     * @image html img/widget/entry/preview-02.png
10501     * @image latex img/widget/entry/preview-02.eps width=\textwidth
10502     * @image html img/widget/entry/preview-03.png
10503     * @image latex img/widget/entry/preview-03.eps width=\textwidth
10504     *
10505     * An entry is a convenience widget which shows a box that the user can
10506     * enter text into. Entries by default don't scroll, so they grow to
10507     * accomodate the entire text, resizing the parent window as needed. This
10508     * can be changed with the elm_entry_scrollable_set() function.
10509     *
10510     * They can also be single line or multi line (the default) and when set
10511     * to multi line mode they support text wrapping in any of the modes
10512     * indicated by #Elm_Wrap_Type.
10513     *
10514     * Other features include password mode, filtering of inserted text with
10515     * elm_entry_text_filter_append() and related functions, inline "items" and
10516     * formatted markup text.
10517     *
10518     * @section entry-markup Formatted text
10519     *
10520     * The markup tags supported by the Entry are defined by the theme, but
10521     * even when writing new themes or extensions it's a good idea to stick to
10522     * a sane default, to maintain coherency and avoid application breakages.
10523     * Currently defined by the default theme are the following tags:
10524     * @li \<br\>: Inserts a line break.
10525     * @li \<ps\>: Inserts a paragraph separator. This is preferred over line
10526     * breaks.
10527     * @li \<tab\>: Inserts a tab.
10528     * @li \<em\>...\</em\>: Emphasis. Sets the @em oblique style for the
10529     * enclosed text.
10530     * @li \<b\>...\</b\>: Sets the @b bold style for the enclosed text.
10531     * @li \<link\>...\</link\>: Underlines the enclosed text.
10532     * @li \<hilight\>...\</hilight\>: Hilights the enclosed text.
10533     *
10534     * @section entry-special Special markups
10535     *
10536     * Besides those used to format text, entries support two special markup
10537     * tags used to insert clickable portions of text or items inlined within
10538     * the text.
10539     *
10540     * @subsection entry-anchors Anchors
10541     *
10542     * Anchors are similar to HTML anchors. Text can be surrounded by \<a\> and
10543     * \</a\> tags and an event will be generated when this text is clicked,
10544     * like this:
10545     *
10546     * @code
10547     * This text is outside <a href=anc-01>but this one is an anchor</a>
10548     * @endcode
10549     *
10550     * The @c href attribute in the opening tag gives the name that will be
10551     * used to identify the anchor and it can be any valid utf8 string.
10552     *
10553     * When an anchor is clicked, an @c "anchor,clicked" signal is emitted with
10554     * an #Elm_Entry_Anchor_Info in the @c event_info parameter for the
10555     * callback function. The same applies for "anchor,in" (mouse in), "anchor,out"
10556     * (mouse out), "anchor,down" (mouse down), and "anchor,up" (mouse up) events on
10557     * an anchor.
10558     *
10559     * @subsection entry-items Items
10560     *
10561     * Inlined in the text, any other @c Evas_Object can be inserted by using
10562     * \<item\> tags this way:
10563     *
10564     * @code
10565     * <item size=16x16 vsize=full href=emoticon/haha></item>
10566     * @endcode
10567     *
10568     * Just like with anchors, the @c href identifies each item, but these need,
10569     * in addition, to indicate their size, which is done using any one of
10570     * @c size, @c absize or @c relsize attributes. These attributes take their
10571     * value in the WxH format, where W is the width and H the height of the
10572     * item.
10573     *
10574     * @li absize: Absolute pixel size for the item. Whatever value is set will
10575     * be the item's size regardless of any scale value the object may have
10576     * been set to. The final line height will be adjusted to fit larger items.
10577     * @li size: Similar to @c absize, but it's adjusted to the scale value set
10578     * for the object.
10579     * @li relsize: Size is adjusted for the item to fit within the current
10580     * line height.
10581     *
10582     * Besides their size, items are specificed a @c vsize value that affects
10583     * how their final size and position are calculated. The possible values
10584     * are:
10585     * @li ascent: Item will be placed within the line's baseline and its
10586     * ascent. That is, the height between the line where all characters are
10587     * positioned and the highest point in the line. For @c size and @c absize
10588     * items, the descent value will be added to the total line height to make
10589     * them fit. @c relsize items will be adjusted to fit within this space.
10590     * @li full: Items will be placed between the descent and ascent, or the
10591     * lowest point in the line and its highest.
10592     *
10593     * The next image shows different configurations of items and how they
10594     * are the previously mentioned options affect their sizes. In all cases,
10595     * the green line indicates the ascent, blue for the baseline and red for
10596     * the descent.
10597     *
10598     * @image html entry_item.png
10599     * @image latex entry_item.eps width=\textwidth
10600     *
10601     * And another one to show how size differs from absize. In the first one,
10602     * the scale value is set to 1.0, while the second one is using one of 2.0.
10603     *
10604     * @image html entry_item_scale.png
10605     * @image latex entry_item_scale.eps width=\textwidth
10606     *
10607     * After the size for an item is calculated, the entry will request an
10608     * object to place in its space. For this, the functions set with
10609     * elm_entry_item_provider_append() and related functions will be called
10610     * in order until one of them returns a @c non-NULL value. If no providers
10611     * are available, or all of them return @c NULL, then the entry falls back
10612     * to one of the internal defaults, provided the name matches with one of
10613     * them.
10614     *
10615     * All of the following are currently supported:
10616     *
10617     * - emoticon/angry
10618     * - emoticon/angry-shout
10619     * - emoticon/crazy-laugh
10620     * - emoticon/evil-laugh
10621     * - emoticon/evil
10622     * - emoticon/goggle-smile
10623     * - emoticon/grumpy
10624     * - emoticon/grumpy-smile
10625     * - emoticon/guilty
10626     * - emoticon/guilty-smile
10627     * - emoticon/haha
10628     * - emoticon/half-smile
10629     * - emoticon/happy-panting
10630     * - emoticon/happy
10631     * - emoticon/indifferent
10632     * - emoticon/kiss
10633     * - emoticon/knowing-grin
10634     * - emoticon/laugh
10635     * - emoticon/little-bit-sorry
10636     * - emoticon/love-lots
10637     * - emoticon/love
10638     * - emoticon/minimal-smile
10639     * - emoticon/not-happy
10640     * - emoticon/not-impressed
10641     * - emoticon/omg
10642     * - emoticon/opensmile
10643     * - emoticon/smile
10644     * - emoticon/sorry
10645     * - emoticon/squint-laugh
10646     * - emoticon/surprised
10647     * - emoticon/suspicious
10648     * - emoticon/tongue-dangling
10649     * - emoticon/tongue-poke
10650     * - emoticon/uh
10651     * - emoticon/unhappy
10652     * - emoticon/very-sorry
10653     * - emoticon/what
10654     * - emoticon/wink
10655     * - emoticon/worried
10656     * - emoticon/wtf
10657     *
10658     * Alternatively, an item may reference an image by its path, using
10659     * the URI form @c file:///path/to/an/image.png and the entry will then
10660     * use that image for the item.
10661     *
10662     * @section entry-files Loading and saving files
10663     *
10664     * Entries have convinience functions to load text from a file and save
10665     * changes back to it after a short delay. The automatic saving is enabled
10666     * by default, but can be disabled with elm_entry_autosave_set() and files
10667     * can be loaded directly as plain text or have any markup in them
10668     * recognized. See elm_entry_file_set() for more details.
10669     *
10670     * @section entry-signals Emitted signals
10671     *
10672     * This widget emits the following signals:
10673     *
10674     * @li "changed": The text within the entry was changed.
10675     * @li "changed,user": The text within the entry was changed because of user interaction.
10676     * @li "activated": The enter key was pressed on a single line entry.
10677     * @li "press": A mouse button has been pressed on the entry.
10678     * @li "longpressed": A mouse button has been pressed and held for a couple
10679     * seconds.
10680     * @li "clicked": The entry has been clicked (mouse press and release).
10681     * @li "clicked,double": The entry has been double clicked.
10682     * @li "clicked,triple": The entry has been triple clicked.
10683     * @li "focused": The entry has received focus.
10684     * @li "unfocused": The entry has lost focus.
10685     * @li "selection,paste": A paste of the clipboard contents was requested.
10686     * @li "selection,copy": A copy of the selected text into the clipboard was
10687     * requested.
10688     * @li "selection,cut": A cut of the selected text into the clipboard was
10689     * requested.
10690     * @li "selection,start": A selection has begun and no previous selection
10691     * existed.
10692     * @li "selection,changed": The current selection has changed.
10693     * @li "selection,cleared": The current selection has been cleared.
10694     * @li "cursor,changed": The cursor has changed position.
10695     * @li "anchor,clicked": An anchor has been clicked. The event_info
10696     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10697     * @li "anchor,in": Mouse cursor has moved into an anchor. The event_info
10698     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10699     * @li "anchor,out": Mouse cursor has moved out of an anchor. The event_info
10700     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10701     * @li "anchor,up": Mouse button has been unpressed on an anchor. The event_info
10702     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10703     * @li "anchor,down": Mouse button has been pressed on an anchor. The event_info
10704     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10705     * @li "preedit,changed": The preedit string has changed.
10706     *
10707     * @section entry-examples
10708     *
10709     * An overview of the Entry API can be seen in @ref entry_example_01
10710     *
10711     * @{
10712     */
10713    /**
10714     * @typedef Elm_Entry_Anchor_Info
10715     *
10716     * The info sent in the callback for the "anchor,clicked" signals emitted
10717     * by entries.
10718     */
10719    typedef struct _Elm_Entry_Anchor_Info Elm_Entry_Anchor_Info;
10720    /**
10721     * @struct _Elm_Entry_Anchor_Info
10722     *
10723     * The info sent in the callback for the "anchor,clicked" signals emitted
10724     * by entries.
10725     */
10726    struct _Elm_Entry_Anchor_Info
10727      {
10728         const char *name; /**< The name of the anchor, as stated in its href */
10729         int         button; /**< The mouse button used to click on it */
10730         Evas_Coord  x, /**< Anchor geometry, relative to canvas */
10731                     y, /**< Anchor geometry, relative to canvas */
10732                     w, /**< Anchor geometry, relative to canvas */
10733                     h; /**< Anchor geometry, relative to canvas */
10734      };
10735    /**
10736     * @typedef Elm_Entry_Filter_Cb
10737     * This callback type is used by entry filters to modify text.
10738     * @param data The data specified as the last param when adding the filter
10739     * @param entry The entry object
10740     * @param text A pointer to the location of the text being filtered. This data can be modified,
10741     * but any additional allocations must be managed by the user.
10742     * @see elm_entry_text_filter_append
10743     * @see elm_entry_text_filter_prepend
10744     */
10745    typedef void (*Elm_Entry_Filter_Cb)(void *data, Evas_Object *entry, char **text);
10746
10747    /**
10748     * This adds an entry to @p parent object.
10749     *
10750     * By default, entries are:
10751     * @li not scrolled
10752     * @li multi-line
10753     * @li word wrapped
10754     * @li autosave is enabled
10755     *
10756     * @param parent The parent object
10757     * @return The new object or NULL if it cannot be created
10758     */
10759    EAPI Evas_Object *elm_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10760    /**
10761     * Sets the entry to single line mode.
10762     *
10763     * In single line mode, entries don't ever wrap when the text reaches the
10764     * edge, and instead they keep growing horizontally. Pressing the @c Enter
10765     * key will generate an @c "activate" event instead of adding a new line.
10766     *
10767     * When @p single_line is @c EINA_FALSE, line wrapping takes effect again
10768     * and pressing enter will break the text into a different line
10769     * without generating any events.
10770     *
10771     * @param obj The entry object
10772     * @param single_line If true, the text in the entry
10773     * will be on a single line.
10774     */
10775    EAPI void         elm_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
10776    /**
10777     * Gets whether the entry is set to be single line.
10778     *
10779     * @param obj The entry object
10780     * @return single_line If true, the text in the entry is set to display
10781     * on a single line.
10782     *
10783     * @see elm_entry_single_line_set()
10784     */
10785    EAPI Eina_Bool    elm_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10786    /**
10787     * Sets the entry to password mode.
10788     *
10789     * In password mode, entries are implicitly single line and the display of
10790     * any text in them is replaced with asterisks (*).
10791     *
10792     * @param obj The entry object
10793     * @param password If true, password mode is enabled.
10794     */
10795    EAPI void         elm_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
10796    /**
10797     * Gets whether the entry is set to password mode.
10798     *
10799     * @param obj The entry object
10800     * @return If true, the entry is set to display all characters
10801     * as asterisks (*).
10802     *
10803     * @see elm_entry_password_set()
10804     */
10805    EAPI Eina_Bool    elm_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10806    /**
10807     * This sets the text displayed within the entry to @p entry.
10808     *
10809     * @param obj The entry object
10810     * @param entry The text to be displayed
10811     *
10812     * @deprecated Use elm_object_text_set() instead.
10813     */
10814    EAPI void         elm_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
10815    /**
10816     * This returns the text currently shown in object @p entry.
10817     * See also elm_entry_entry_set().
10818     *
10819     * @param obj The entry object
10820     * @return The currently displayed text or NULL on failure
10821     *
10822     * @deprecated Use elm_object_text_get() instead.
10823     */
10824    EAPI const char  *elm_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10825    /**
10826     * Appends @p entry to the text of the entry.
10827     *
10828     * Adds the text in @p entry to the end of any text already present in the
10829     * widget.
10830     *
10831     * The appended text is subject to any filters set for the widget.
10832     *
10833     * @param obj The entry object
10834     * @param entry The text to be displayed
10835     *
10836     * @see elm_entry_text_filter_append()
10837     */
10838    EAPI void         elm_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
10839    /**
10840     * Gets whether the entry is empty.
10841     *
10842     * Empty means no text at all. If there are any markup tags, like an item
10843     * tag for which no provider finds anything, and no text is displayed, this
10844     * function still returns EINA_FALSE.
10845     *
10846     * @param obj The entry object
10847     * @return EINA_TRUE if the entry is empty, EINA_FALSE otherwise.
10848     */
10849    EAPI Eina_Bool    elm_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10850    /**
10851     * Gets any selected text within the entry.
10852     *
10853     * If there's any selected text in the entry, this function returns it as
10854     * a string in markup format. NULL is returned if no selection exists or
10855     * if an error occurred.
10856     *
10857     * The returned value points to an internal string and should not be freed
10858     * or modified in any way. If the @p entry object is deleted or its
10859     * contents are changed, the returned pointer should be considered invalid.
10860     *
10861     * @param obj The entry object
10862     * @return The selected text within the entry or NULL on failure
10863     */
10864    EAPI const char  *elm_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10865    /**
10866     * Inserts the given text into the entry at the current cursor position.
10867     *
10868     * This inserts text at the cursor position as if it was typed
10869     * by the user (note that this also allows markup which a user
10870     * can't just "type" as it would be converted to escaped text, so this
10871     * call can be used to insert things like emoticon items or bold push/pop
10872     * tags, other font and color change tags etc.)
10873     *
10874     * If any selection exists, it will be replaced by the inserted text.
10875     *
10876     * The inserted text is subject to any filters set for the widget.
10877     *
10878     * @param obj The entry object
10879     * @param entry The text to insert
10880     *
10881     * @see elm_entry_text_filter_append()
10882     */
10883    EAPI void         elm_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
10884    /**
10885     * Set the line wrap type to use on multi-line entries.
10886     *
10887     * Sets the wrap type used by the entry to any of the specified in
10888     * #Elm_Wrap_Type. This tells how the text will be implicitly cut into a new
10889     * line (without inserting a line break or paragraph separator) when it
10890     * reaches the far edge of the widget.
10891     *
10892     * Note that this only makes sense for multi-line entries. A widget set
10893     * to be single line will never wrap.
10894     *
10895     * @param obj The entry object
10896     * @param wrap The wrap mode to use. See #Elm_Wrap_Type for details on them
10897     */
10898    EAPI void         elm_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
10899    /**
10900     * Gets the wrap mode the entry was set to use.
10901     *
10902     * @param obj The entry object
10903     * @return Wrap type
10904     *
10905     * @see also elm_entry_line_wrap_set()
10906     */
10907    EAPI Elm_Wrap_Type elm_entry_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10908    /**
10909     * Sets if the entry is to be editable or not.
10910     *
10911     * By default, entries are editable and when focused, any text input by the
10912     * user will be inserted at the current cursor position. But calling this
10913     * function with @p editable as EINA_FALSE will prevent the user from
10914     * inputting text into the entry.
10915     *
10916     * The only way to change the text of a non-editable entry is to use
10917     * elm_object_text_set(), elm_entry_entry_insert() and other related
10918     * functions.
10919     *
10920     * @param obj The entry object
10921     * @param editable If EINA_TRUE, user input will be inserted in the entry,
10922     * if not, the entry is read-only and no user input is allowed.
10923     */
10924    EAPI void         elm_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
10925    /**
10926     * Gets whether the entry is editable or not.
10927     *
10928     * @param obj The entry object
10929     * @return If true, the entry is editable by the user.
10930     * If false, it is not editable by the user
10931     *
10932     * @see elm_entry_editable_set()
10933     */
10934    EAPI Eina_Bool    elm_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10935    /**
10936     * This drops any existing text selection within the entry.
10937     *
10938     * @param obj The entry object
10939     */
10940    EAPI void         elm_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
10941    /**
10942     * This selects all text within the entry.
10943     *
10944     * @param obj The entry object
10945     */
10946    EAPI void         elm_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
10947    /**
10948     * This moves the cursor one place to the right within the entry.
10949     *
10950     * @param obj The entry object
10951     * @return EINA_TRUE upon success, EINA_FALSE upon failure
10952     */
10953    EAPI Eina_Bool    elm_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
10954    /**
10955     * This moves the cursor one place to the left within the entry.
10956     *
10957     * @param obj The entry object
10958     * @return EINA_TRUE upon success, EINA_FALSE upon failure
10959     */
10960    EAPI Eina_Bool    elm_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
10961    /**
10962     * This moves the cursor one line up within the entry.
10963     *
10964     * @param obj The entry object
10965     * @return EINA_TRUE upon success, EINA_FALSE upon failure
10966     */
10967    EAPI Eina_Bool    elm_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
10968    /**
10969     * This moves the cursor one line down within the entry.
10970     *
10971     * @param obj The entry object
10972     * @return EINA_TRUE upon success, EINA_FALSE upon failure
10973     */
10974    EAPI Eina_Bool    elm_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
10975    /**
10976     * This moves the cursor to the beginning of the entry.
10977     *
10978     * @param obj The entry object
10979     */
10980    EAPI void         elm_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
10981    /**
10982     * This moves the cursor to the end of the entry.
10983     *
10984     * @param obj The entry object
10985     */
10986    EAPI void         elm_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
10987    /**
10988     * This moves the cursor to the beginning of the current line.
10989     *
10990     * @param obj The entry object
10991     */
10992    EAPI void         elm_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
10993    /**
10994     * This moves the cursor to the end of the current line.
10995     *
10996     * @param obj The entry object
10997     */
10998    EAPI void         elm_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
10999    /**
11000     * This begins a selection within the entry as though
11001     * the user were holding down the mouse button to make a selection.
11002     *
11003     * @param obj The entry object
11004     */
11005    EAPI void         elm_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
11006    /**
11007     * This ends a selection within the entry as though
11008     * the user had just released the mouse button while making a selection.
11009     *
11010     * @param obj The entry object
11011     */
11012    EAPI void         elm_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
11013    /**
11014     * Gets whether a format node exists at the current cursor position.
11015     *
11016     * A format node is anything that defines how the text is rendered. It can
11017     * be a visible format node, such as a line break or a paragraph separator,
11018     * or an invisible one, such as bold begin or end tag.
11019     * This function returns whether any format node exists at the current
11020     * cursor position.
11021     *
11022     * @param obj The entry object
11023     * @return EINA_TRUE if the current cursor position contains a format node,
11024     * EINA_FALSE otherwise.
11025     *
11026     * @see elm_entry_cursor_is_visible_format_get()
11027     */
11028    EAPI Eina_Bool    elm_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11029    /**
11030     * Gets if the current cursor position holds a visible format node.
11031     *
11032     * @param obj The entry object
11033     * @return EINA_TRUE if the current cursor is a visible format, EINA_FALSE
11034     * if it's an invisible one or no format exists.
11035     *
11036     * @see elm_entry_cursor_is_format_get()
11037     */
11038    EAPI Eina_Bool    elm_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11039    /**
11040     * Gets the character pointed by the cursor at its current position.
11041     *
11042     * This function returns a string with the utf8 character stored at the
11043     * current cursor position.
11044     * Only the text is returned, any format that may exist will not be part
11045     * of the return value.
11046     *
11047     * @param obj The entry object
11048     * @return The text pointed by the cursors.
11049     */
11050    EAPI const char  *elm_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11051    /**
11052     * This function returns the geometry of the cursor.
11053     *
11054     * It's useful if you want to draw something on the cursor (or where it is),
11055     * or for example in the case of scrolled entry where you want to show the
11056     * cursor.
11057     *
11058     * @param obj The entry object
11059     * @param x returned geometry
11060     * @param y returned geometry
11061     * @param w returned geometry
11062     * @param h returned geometry
11063     * @return EINA_TRUE upon success, EINA_FALSE upon failure
11064     */
11065    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);
11066    /**
11067     * Sets the cursor position in the entry to the given value
11068     *
11069     * The value in @p pos is the index of the character position within the
11070     * contents of the string as returned by elm_entry_cursor_pos_get().
11071     *
11072     * @param obj The entry object
11073     * @param pos The position of the cursor
11074     */
11075    EAPI void         elm_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
11076    /**
11077     * Retrieves the current position of the cursor in the entry
11078     *
11079     * @param obj The entry object
11080     * @return The cursor position
11081     */
11082    EAPI int          elm_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11083    /**
11084     * This executes a "cut" action on the selected text in the entry.
11085     *
11086     * @param obj The entry object
11087     */
11088    EAPI void         elm_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
11089    /**
11090     * This executes a "copy" action on the selected text in the entry.
11091     *
11092     * @param obj The entry object
11093     */
11094    EAPI void         elm_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
11095    /**
11096     * This executes a "paste" action in the entry.
11097     *
11098     * @param obj The entry object
11099     */
11100    EAPI void         elm_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
11101    /**
11102     * This clears and frees the items in a entry's contextual (longpress)
11103     * menu.
11104     *
11105     * @param obj The entry object
11106     *
11107     * @see elm_entry_context_menu_item_add()
11108     */
11109    EAPI void         elm_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
11110    /**
11111     * This adds an item to the entry's contextual menu.
11112     *
11113     * A longpress on an entry will make the contextual menu show up, if this
11114     * hasn't been disabled with elm_entry_context_menu_disabled_set().
11115     * By default, this menu provides a few options like enabling selection mode,
11116     * which is useful on embedded devices that need to be explicit about it,
11117     * and when a selection exists it also shows the copy and cut actions.
11118     *
11119     * With this function, developers can add other options to this menu to
11120     * perform any action they deem necessary.
11121     *
11122     * @param obj The entry object
11123     * @param label The item's text label
11124     * @param icon_file The item's icon file
11125     * @param icon_type The item's icon type
11126     * @param func The callback to execute when the item is clicked
11127     * @param data The data to associate with the item for related functions
11128     */
11129    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);
11130    /**
11131     * This disables the entry's contextual (longpress) menu.
11132     *
11133     * @param obj The entry object
11134     * @param disabled If true, the menu is disabled
11135     */
11136    EAPI void         elm_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
11137    /**
11138     * This returns whether the entry's contextual (longpress) menu is
11139     * disabled.
11140     *
11141     * @param obj The entry object
11142     * @return If true, the menu is disabled
11143     */
11144    EAPI Eina_Bool    elm_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11145    /**
11146     * This appends a custom item provider to the list for that entry
11147     *
11148     * This appends the given callback. The list is walked from beginning to end
11149     * with each function called given the item href string in the text. If the
11150     * function returns an object handle other than NULL (it should create an
11151     * object to do this), then this object is used to replace that item. If
11152     * not the next provider is called until one provides an item object, or the
11153     * default provider in entry does.
11154     *
11155     * @param obj The entry object
11156     * @param func The function called to provide the item object
11157     * @param data The data passed to @p func
11158     *
11159     * @see @ref entry-items
11160     */
11161    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);
11162    /**
11163     * This prepends a custom item provider to the list for that entry
11164     *
11165     * This prepends the given callback. See elm_entry_item_provider_append() for
11166     * more information
11167     *
11168     * @param obj The entry object
11169     * @param func The function called to provide the item object
11170     * @param data The data passed to @p func
11171     */
11172    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);
11173    /**
11174     * This removes a custom item provider to the list for that entry
11175     *
11176     * This removes the given callback. See elm_entry_item_provider_append() for
11177     * more information
11178     *
11179     * @param obj The entry object
11180     * @param func The function called to provide the item object
11181     * @param data The data passed to @p func
11182     */
11183    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);
11184    /**
11185     * Append a filter function for text inserted in the entry
11186     *
11187     * Append the given callback to the list. This functions will be called
11188     * whenever any text is inserted into the entry, with the text to be inserted
11189     * as a parameter. The callback function is free to alter the text in any way
11190     * it wants, but it must remember to free the given pointer and update it.
11191     * If the new text is to be discarded, the function can free it and set its
11192     * text parameter to NULL. This will also prevent any following filters from
11193     * being called.
11194     *
11195     * @param obj The entry object
11196     * @param func The function to use as text filter
11197     * @param data User data to pass to @p func
11198     */
11199    EAPI void         elm_entry_text_filter_append(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11200    /**
11201     * Prepend a filter function for text insdrted in the entry
11202     *
11203     * Prepend the given callback to the list. See elm_entry_text_filter_append()
11204     * for more information
11205     *
11206     * @param obj The entry object
11207     * @param func The function to use as text filter
11208     * @param data User data to pass to @p func
11209     */
11210    EAPI void         elm_entry_text_filter_prepend(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11211    /**
11212     * Remove a filter from the list
11213     *
11214     * Removes the given callback from the filter list. See
11215     * elm_entry_text_filter_append() for more information.
11216     *
11217     * @param obj The entry object
11218     * @param func The filter function to remove
11219     * @param data The user data passed when adding the function
11220     */
11221    EAPI void         elm_entry_text_filter_remove(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11222    /**
11223     * This converts a markup (HTML-like) string into UTF-8.
11224     *
11225     * The returned string is a malloc'ed buffer and it should be freed when
11226     * not needed anymore.
11227     *
11228     * @param s The string (in markup) to be converted
11229     * @return The converted string (in UTF-8). It should be freed.
11230     */
11231    EAPI char        *elm_entry_markup_to_utf8(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
11232    /**
11233     * This converts a UTF-8 string into markup (HTML-like).
11234     *
11235     * The returned string is a malloc'ed buffer and it should be freed when
11236     * not needed anymore.
11237     *
11238     * @param s The string (in UTF-8) to be converted
11239     * @return The converted string (in markup). It should be freed.
11240     */
11241    EAPI char        *elm_entry_utf8_to_markup(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
11242    /**
11243     * This sets the file (and implicitly loads it) for the text to display and
11244     * then edit. All changes are written back to the file after a short delay if
11245     * the entry object is set to autosave (which is the default).
11246     *
11247     * If the entry had any other file set previously, any changes made to it
11248     * will be saved if the autosave feature is enabled, otherwise, the file
11249     * will be silently discarded and any non-saved changes will be lost.
11250     *
11251     * @param obj The entry object
11252     * @param file The path to the file to load and save
11253     * @param format The file format
11254     */
11255    EAPI void         elm_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
11256    /**
11257     * Gets the file being edited by the entry.
11258     *
11259     * This function can be used to retrieve any file set on the entry for
11260     * edition, along with the format used to load and save it.
11261     *
11262     * @param obj The entry object
11263     * @param file The path to the file to load and save
11264     * @param format The file format
11265     */
11266    EAPI void         elm_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
11267    /**
11268     * This function writes any changes made to the file set with
11269     * elm_entry_file_set()
11270     *
11271     * @param obj The entry object
11272     */
11273    EAPI void         elm_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
11274    /**
11275     * This sets the entry object to 'autosave' the loaded text file or not.
11276     *
11277     * @param obj The entry object
11278     * @param autosave Autosave the loaded file or not
11279     *
11280     * @see elm_entry_file_set()
11281     */
11282    EAPI void         elm_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
11283    /**
11284     * This gets the entry object's 'autosave' status.
11285     *
11286     * @param obj The entry object
11287     * @return Autosave the loaded file or not
11288     *
11289     * @see elm_entry_file_set()
11290     */
11291    EAPI Eina_Bool    elm_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11292    /**
11293     * Control pasting of text and images for the widget.
11294     *
11295     * Normally the entry allows both text and images to be pasted.  By setting
11296     * textonly to be true, this prevents images from being pasted.
11297     *
11298     * Note this only changes the behaviour of text.
11299     *
11300     * @param obj The entry object
11301     * @param textonly paste mode - EINA_TRUE is text only, EINA_FALSE is
11302     * text+image+other.
11303     */
11304    EAPI void         elm_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
11305    /**
11306     * Getting elm_entry text paste/drop mode.
11307     *
11308     * In textonly mode, only text may be pasted or dropped into the widget.
11309     *
11310     * @param obj The entry object
11311     * @return If the widget only accepts text from pastes.
11312     */
11313    EAPI Eina_Bool    elm_entry_cnp_textonly_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11314    /**
11315     * Enable or disable scrolling in entry
11316     *
11317     * Normally the entry is not scrollable unless you enable it with this call.
11318     *
11319     * @param obj The entry object
11320     * @param scroll EINA_TRUE if it is to be scrollable, EINA_FALSE otherwise
11321     */
11322    EAPI void         elm_entry_scrollable_set(Evas_Object *obj, Eina_Bool scroll);
11323    /**
11324     * Get the scrollable state of the entry
11325     *
11326     * Normally the entry is not scrollable. This gets the scrollable state
11327     * of the entry. See elm_entry_scrollable_set() for more information.
11328     *
11329     * @param obj The entry object
11330     * @return The scrollable state
11331     */
11332    EAPI Eina_Bool    elm_entry_scrollable_get(const Evas_Object *obj);
11333    /**
11334     * This sets a widget to be displayed to the left of a scrolled entry.
11335     *
11336     * @param obj The scrolled entry object
11337     * @param icon The widget to display on the left side of the scrolled
11338     * entry.
11339     *
11340     * @note A previously set widget will be destroyed.
11341     * @note If the object being set does not have minimum size hints set,
11342     * it won't get properly displayed.
11343     *
11344     * @see elm_entry_end_set()
11345     */
11346    EAPI void         elm_entry_icon_set(Evas_Object *obj, Evas_Object *icon);
11347    /**
11348     * Gets the leftmost widget of the scrolled entry. This object is
11349     * owned by the scrolled entry and should not be modified.
11350     *
11351     * @param obj The scrolled entry object
11352     * @return the left widget inside the scroller
11353     */
11354    EAPI Evas_Object *elm_entry_icon_get(const Evas_Object *obj);
11355    /**
11356     * Unset the leftmost widget of the scrolled entry, unparenting and
11357     * returning it.
11358     *
11359     * @param obj The scrolled entry object
11360     * @return the previously set icon sub-object of this entry, on
11361     * success.
11362     *
11363     * @see elm_entry_icon_set()
11364     */
11365    EAPI Evas_Object *elm_entry_icon_unset(Evas_Object *obj);
11366    /**
11367     * Sets the visibility of the left-side widget of the scrolled entry,
11368     * set by elm_entry_icon_set().
11369     *
11370     * @param obj The scrolled entry object
11371     * @param setting EINA_TRUE if the object should be displayed,
11372     * EINA_FALSE if not.
11373     */
11374    EAPI void         elm_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting);
11375    /**
11376     * This sets a widget to be displayed to the end of a scrolled entry.
11377     *
11378     * @param obj The scrolled entry object
11379     * @param end The widget to display on the right side of the scrolled
11380     * entry.
11381     *
11382     * @note A previously set widget will be destroyed.
11383     * @note If the object being set does not have minimum size hints set,
11384     * it won't get properly displayed.
11385     *
11386     * @see elm_entry_icon_set
11387     */
11388    EAPI void         elm_entry_end_set(Evas_Object *obj, Evas_Object *end);
11389    /**
11390     * Gets the endmost widget of the scrolled entry. This object is owned
11391     * by the scrolled entry and should not be modified.
11392     *
11393     * @param obj The scrolled entry object
11394     * @return the right widget inside the scroller
11395     */
11396    EAPI Evas_Object *elm_entry_end_get(const Evas_Object *obj);
11397    /**
11398     * Unset the endmost widget of the scrolled entry, unparenting and
11399     * returning it.
11400     *
11401     * @param obj The scrolled entry object
11402     * @return the previously set icon sub-object of this entry, on
11403     * success.
11404     *
11405     * @see elm_entry_icon_set()
11406     */
11407    EAPI Evas_Object *elm_entry_end_unset(Evas_Object *obj);
11408    /**
11409     * Sets the visibility of the end widget of the scrolled entry, set by
11410     * elm_entry_end_set().
11411     *
11412     * @param obj The scrolled entry object
11413     * @param setting EINA_TRUE if the object should be displayed,
11414     * EINA_FALSE if not.
11415     */
11416    EAPI void         elm_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting);
11417    /**
11418     * This sets the scrolled entry's scrollbar policy (ie. enabling/disabling
11419     * them).
11420     *
11421     * Setting an entry to single-line mode with elm_entry_single_line_set()
11422     * will automatically disable the display of scrollbars when the entry
11423     * moves inside its scroller.
11424     *
11425     * @param obj The scrolled entry object
11426     * @param h The horizontal scrollbar policy to apply
11427     * @param v The vertical scrollbar policy to apply
11428     */
11429    EAPI void         elm_entry_scrollbar_policy_set(Evas_Object *obj, Elm_Scroller_Policy h, Elm_Scroller_Policy v);
11430    /**
11431     * This enables/disables bouncing within the entry.
11432     *
11433     * This function sets whether the entry will bounce when scrolling reaches
11434     * the end of the contained entry.
11435     *
11436     * @param obj The scrolled entry object
11437     * @param h The horizontal bounce state
11438     * @param v The vertical bounce state
11439     */
11440    EAPI void         elm_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
11441    /**
11442     * Get the bounce mode
11443     *
11444     * @param obj The Entry object
11445     * @param h_bounce Allow bounce horizontally
11446     * @param v_bounce Allow bounce vertically
11447     */
11448    EAPI void         elm_entry_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
11449
11450    /* pre-made filters for entries */
11451    /**
11452     * @typedef Elm_Entry_Filter_Limit_Size
11453     *
11454     * Data for the elm_entry_filter_limit_size() entry filter.
11455     */
11456    typedef struct _Elm_Entry_Filter_Limit_Size Elm_Entry_Filter_Limit_Size;
11457    /**
11458     * @struct _Elm_Entry_Filter_Limit_Size
11459     *
11460     * Data for the elm_entry_filter_limit_size() entry filter.
11461     */
11462    struct _Elm_Entry_Filter_Limit_Size
11463      {
11464         int max_char_count; /**< The maximum number of characters allowed. */
11465         int max_byte_count; /**< The maximum number of bytes allowed*/
11466      };
11467    /**
11468     * Filter inserted text based on user defined character and byte limits
11469     *
11470     * Add this filter to an entry to limit the characters that it will accept
11471     * based the the contents of the provided #Elm_Entry_Filter_Limit_Size.
11472     * The funtion works on the UTF-8 representation of the string, converting
11473     * it from the set markup, thus not accounting for any format in it.
11474     *
11475     * The user must create an #Elm_Entry_Filter_Limit_Size structure and pass
11476     * it as data when setting the filter. In it, it's possible to set limits
11477     * by character count or bytes (any of them is disabled if 0), and both can
11478     * be set at the same time. In that case, it first checks for characters,
11479     * then bytes.
11480     *
11481     * The function will cut the inserted text in order to allow only the first
11482     * number of characters that are still allowed. The cut is made in
11483     * characters, even when limiting by bytes, in order to always contain
11484     * valid ones and avoid half unicode characters making it in.
11485     *
11486     * This filter, like any others, does not apply when setting the entry text
11487     * directly with elm_object_text_set() (or the deprecated
11488     * elm_entry_entry_set()).
11489     */
11490    EAPI void         elm_entry_filter_limit_size(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 2, 3);
11491    /**
11492     * @typedef Elm_Entry_Filter_Accept_Set
11493     *
11494     * Data for the elm_entry_filter_accept_set() entry filter.
11495     */
11496    typedef struct _Elm_Entry_Filter_Accept_Set Elm_Entry_Filter_Accept_Set;
11497    /**
11498     * @struct _Elm_Entry_Filter_Accept_Set
11499     *
11500     * Data for the elm_entry_filter_accept_set() entry filter.
11501     */
11502    struct _Elm_Entry_Filter_Accept_Set
11503      {
11504         const char *accepted; /**< Set of characters accepted in the entry. */
11505         const char *rejected; /**< Set of characters rejected from the entry. */
11506      };
11507    /**
11508     * Filter inserted text based on accepted or rejected sets of characters
11509     *
11510     * Add this filter to an entry to restrict the set of accepted characters
11511     * based on the sets in the provided #Elm_Entry_Filter_Accept_Set.
11512     * This structure contains both accepted and rejected sets, but they are
11513     * mutually exclusive.
11514     *
11515     * The @c accepted set takes preference, so if it is set, the filter will
11516     * only work based on the accepted characters, ignoring anything in the
11517     * @c rejected value. If @c accepted is @c NULL, then @c rejected is used.
11518     *
11519     * In both cases, the function filters by matching utf8 characters to the
11520     * raw markup text, so it can be used to remove formatting tags.
11521     *
11522     * This filter, like any others, does not apply when setting the entry text
11523     * directly with elm_object_text_set() (or the deprecated
11524     * elm_entry_entry_set()).
11525     */
11526    EAPI void         elm_entry_filter_accept_set(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 3);
11527    /**
11528     * Set the input panel layout of the entry
11529     *
11530     * @param obj The entry object
11531     * @param layout layout type
11532     */
11533    EAPI void elm_entry_input_panel_layout_set(Evas_Object *obj, Elm_Input_Panel_Layout layout) EINA_ARG_NONNULL(1);
11534    /**
11535     * Get the input panel layout of the entry
11536     *
11537     * @param obj The entry object
11538     * @return layout type
11539     *
11540     * @see elm_entry_input_panel_layout_set
11541     */
11542    EAPI Elm_Input_Panel_Layout elm_entry_input_panel_layout_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
11543    /**
11544     * @}
11545     */
11546
11547    /* composite widgets - these basically put together basic widgets above
11548     * in convenient packages that do more than basic stuff */
11549
11550    /* anchorview */
11551    /**
11552     * @defgroup Anchorview Anchorview
11553     *
11554     * @image html img/widget/anchorview/preview-00.png
11555     * @image latex img/widget/anchorview/preview-00.eps
11556     *
11557     * Anchorview is for displaying text that contains markup with anchors
11558     * like <c>\<a href=1234\>something\</\></c> in it.
11559     *
11560     * Besides being styled differently, the anchorview widget provides the
11561     * necessary functionality so that clicking on these anchors brings up a
11562     * popup with user defined content such as "call", "add to contacts" or
11563     * "open web page". This popup is provided using the @ref Hover widget.
11564     *
11565     * This widget is very similar to @ref Anchorblock, so refer to that
11566     * widget for an example. The only difference Anchorview has is that the
11567     * widget is already provided with scrolling functionality, so if the
11568     * text set to it is too large to fit in the given space, it will scroll,
11569     * whereas the @ref Anchorblock widget will keep growing to ensure all the
11570     * text can be displayed.
11571     *
11572     * This widget emits the following signals:
11573     * @li "anchor,clicked": will be called when an anchor is clicked. The
11574     * @p event_info parameter on the callback will be a pointer of type
11575     * ::Elm_Entry_Anchorview_Info.
11576     *
11577     * See @ref Anchorblock for an example on how to use both of them.
11578     *
11579     * @see Anchorblock
11580     * @see Entry
11581     * @see Hover
11582     *
11583     * @{
11584     */
11585    /**
11586     * @typedef Elm_Entry_Anchorview_Info
11587     *
11588     * The info sent in the callback for "anchor,clicked" signals emitted by
11589     * the Anchorview widget.
11590     */
11591    typedef struct _Elm_Entry_Anchorview_Info Elm_Entry_Anchorview_Info;
11592    /**
11593     * @struct _Elm_Entry_Anchorview_Info
11594     *
11595     * The info sent in the callback for "anchor,clicked" signals emitted by
11596     * the Anchorview widget.
11597     */
11598    struct _Elm_Entry_Anchorview_Info
11599      {
11600         const char     *name; /**< Name of the anchor, as indicated in its href
11601                                    attribute */
11602         int             button; /**< The mouse button used to click on it */
11603         Evas_Object    *hover; /**< The hover object to use for the popup */
11604         struct {
11605              Evas_Coord    x, y, w, h;
11606         } anchor, /**< Geometry selection of text used as anchor */
11607           hover_parent; /**< Geometry of the object used as parent by the
11608                              hover */
11609         Eina_Bool       hover_left : 1; /**< Hint indicating if there's space
11610                                              for content on the left side of
11611                                              the hover. Before calling the
11612                                              callback, the widget will make the
11613                                              necessary calculations to check
11614                                              which sides are fit to be set with
11615                                              content, based on the position the
11616                                              hover is activated and its distance
11617                                              to the edges of its parent object
11618                                              */
11619         Eina_Bool       hover_right : 1; /**< Hint indicating content fits on
11620                                               the right side of the hover.
11621                                               See @ref hover_left */
11622         Eina_Bool       hover_top : 1; /**< Hint indicating content fits on top
11623                                             of the hover. See @ref hover_left */
11624         Eina_Bool       hover_bottom : 1; /**< Hint indicating content fits
11625                                                below the hover. See @ref
11626                                                hover_left */
11627      };
11628    /**
11629     * Add a new Anchorview object
11630     *
11631     * @param parent The parent object
11632     * @return The new object or NULL if it cannot be created
11633     */
11634    EAPI Evas_Object *elm_anchorview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11635    /**
11636     * Set the text to show in the anchorview
11637     *
11638     * Sets the text of the anchorview to @p text. This text can include markup
11639     * format tags, including <c>\<a href=anchorname\></c> to begin a segment of
11640     * text that will be specially styled and react to click events, ended with
11641     * either of \</a\> or \</\>. When clicked, the anchor will emit an
11642     * "anchor,clicked" signal that you can attach a callback to with
11643     * evas_object_smart_callback_add(). The name of the anchor given in the
11644     * event info struct will be the one set in the href attribute, in this
11645     * case, anchorname.
11646     *
11647     * Other markup can be used to style the text in different ways, but it's
11648     * up to the style defined in the theme which tags do what.
11649     * @deprecated use elm_object_text_set() instead.
11650     */
11651    EINA_DEPRECATED EAPI void         elm_anchorview_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
11652    /**
11653     * Get the markup text set for the anchorview
11654     *
11655     * Retrieves the text set on the anchorview, with markup tags included.
11656     *
11657     * @param obj The anchorview object
11658     * @return The markup text set or @c NULL if nothing was set or an error
11659     * occurred
11660     * @deprecated use elm_object_text_set() instead.
11661     */
11662    EINA_DEPRECATED EAPI const char  *elm_anchorview_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11663    /**
11664     * Set the parent of the hover popup
11665     *
11666     * Sets the parent object to use by the hover created by the anchorview
11667     * when an anchor is clicked. See @ref Hover for more details on this.
11668     * If no parent is set, the same anchorview object will be used.
11669     *
11670     * @param obj The anchorview object
11671     * @param parent The object to use as parent for the hover
11672     */
11673    EAPI void         elm_anchorview_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
11674    /**
11675     * Get the parent of the hover popup
11676     *
11677     * Get the object used as parent for the hover created by the anchorview
11678     * widget. See @ref Hover for more details on this.
11679     *
11680     * @param obj The anchorview object
11681     * @return The object used as parent for the hover, NULL if none is set.
11682     */
11683    EAPI Evas_Object *elm_anchorview_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11684    /**
11685     * Set the style that the hover should use
11686     *
11687     * When creating the popup hover, anchorview will request that it's
11688     * themed according to @p style.
11689     *
11690     * @param obj The anchorview object
11691     * @param style The style to use for the underlying hover
11692     *
11693     * @see elm_object_style_set()
11694     */
11695    EAPI void         elm_anchorview_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
11696    /**
11697     * Get the style that the hover should use
11698     *
11699     * Get the style the hover created by anchorview will use.
11700     *
11701     * @param obj The anchorview object
11702     * @return The style to use by the hover. NULL means the default is used.
11703     *
11704     * @see elm_object_style_set()
11705     */
11706    EAPI const char  *elm_anchorview_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11707    /**
11708     * Ends the hover popup in the anchorview
11709     *
11710     * When an anchor is clicked, the anchorview widget will create a hover
11711     * object to use as a popup with user provided content. This function
11712     * terminates this popup, returning the anchorview to its normal state.
11713     *
11714     * @param obj The anchorview object
11715     */
11716    EAPI void         elm_anchorview_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
11717    /**
11718     * Set bouncing behaviour when the scrolled content reaches an edge
11719     *
11720     * Tell the internal scroller object whether it should bounce or not
11721     * when it reaches the respective edges for each axis.
11722     *
11723     * @param obj The anchorview object
11724     * @param h_bounce Whether to bounce or not in the horizontal axis
11725     * @param v_bounce Whether to bounce or not in the vertical axis
11726     *
11727     * @see elm_scroller_bounce_set()
11728     */
11729    EAPI void         elm_anchorview_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
11730    /**
11731     * Get the set bouncing behaviour of the internal scroller
11732     *
11733     * Get whether the internal scroller should bounce when the edge of each
11734     * axis is reached scrolling.
11735     *
11736     * @param obj The anchorview object
11737     * @param h_bounce Pointer where to store the bounce state of the horizontal
11738     *                 axis
11739     * @param v_bounce Pointer where to store the bounce state of the vertical
11740     *                 axis
11741     *
11742     * @see elm_scroller_bounce_get()
11743     */
11744    EAPI void         elm_anchorview_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
11745    /**
11746     * Appends a custom item provider to the given anchorview
11747     *
11748     * Appends the given function to the list of items providers. This list is
11749     * called, one function at a time, with the given @p data pointer, the
11750     * anchorview object and, in the @p item parameter, the item name as
11751     * referenced in its href string. Following functions in the list will be
11752     * called in order until one of them returns something different to NULL,
11753     * which should be an Evas_Object which will be used in place of the item
11754     * element.
11755     *
11756     * Items in the markup text take the form \<item relsize=16x16 vsize=full
11757     * href=item/name\>\</item\>
11758     *
11759     * @param obj The anchorview object
11760     * @param func The function to add to the list of providers
11761     * @param data User data that will be passed to the callback function
11762     *
11763     * @see elm_entry_item_provider_append()
11764     */
11765    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);
11766    /**
11767     * Prepend a custom item provider to the given anchorview
11768     *
11769     * Like elm_anchorview_item_provider_append(), but it adds the function
11770     * @p func to the beginning of the list, instead of the end.
11771     *
11772     * @param obj The anchorview object
11773     * @param func The function to add to the list of providers
11774     * @param data User data that will be passed to the callback function
11775     */
11776    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);
11777    /**
11778     * Remove a custom item provider from the list of the given anchorview
11779     *
11780     * Removes the function and data pairing that matches @p func and @p data.
11781     * That is, unless the same function and same user data are given, the
11782     * function will not be removed from the list. This allows us to add the
11783     * same callback several times, with different @p data pointers and be
11784     * able to remove them later without conflicts.
11785     *
11786     * @param obj The anchorview object
11787     * @param func The function to remove from the list
11788     * @param data The data matching the function to remove from the list
11789     */
11790    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);
11791    /**
11792     * @}
11793     */
11794
11795    /* anchorblock */
11796    /**
11797     * @defgroup Anchorblock Anchorblock
11798     *
11799     * @image html img/widget/anchorblock/preview-00.png
11800     * @image latex img/widget/anchorblock/preview-00.eps
11801     *
11802     * Anchorblock is for displaying text that contains markup with anchors
11803     * like <c>\<a href=1234\>something\</\></c> in it.
11804     *
11805     * Besides being styled differently, the anchorblock widget provides the
11806     * necessary functionality so that clicking on these anchors brings up a
11807     * popup with user defined content such as "call", "add to contacts" or
11808     * "open web page". This popup is provided using the @ref Hover widget.
11809     *
11810     * This widget emits the following signals:
11811     * @li "anchor,clicked": will be called when an anchor is clicked. The
11812     * @p event_info parameter on the callback will be a pointer of type
11813     * ::Elm_Entry_Anchorblock_Info.
11814     *
11815     * @see Anchorview
11816     * @see Entry
11817     * @see Hover
11818     *
11819     * Since examples are usually better than plain words, we might as well
11820     * try @ref tutorial_anchorblock_example "one".
11821     */
11822    /**
11823     * @addtogroup Anchorblock
11824     * @{
11825     */
11826    /**
11827     * @typedef Elm_Entry_Anchorblock_Info
11828     *
11829     * The info sent in the callback for "anchor,clicked" signals emitted by
11830     * the Anchorblock widget.
11831     */
11832    typedef struct _Elm_Entry_Anchorblock_Info Elm_Entry_Anchorblock_Info;
11833    /**
11834     * @struct _Elm_Entry_Anchorblock_Info
11835     *
11836     * The info sent in the callback for "anchor,clicked" signals emitted by
11837     * the Anchorblock widget.
11838     */
11839    struct _Elm_Entry_Anchorblock_Info
11840      {
11841         const char     *name; /**< Name of the anchor, as indicated in its href
11842                                    attribute */
11843         int             button; /**< The mouse button used to click on it */
11844         Evas_Object    *hover; /**< The hover object to use for the popup */
11845         struct {
11846              Evas_Coord    x, y, w, h;
11847         } anchor, /**< Geometry selection of text used as anchor */
11848           hover_parent; /**< Geometry of the object used as parent by the
11849                              hover */
11850         Eina_Bool       hover_left : 1; /**< Hint indicating if there's space
11851                                              for content on the left side of
11852                                              the hover. Before calling the
11853                                              callback, the widget will make the
11854                                              necessary calculations to check
11855                                              which sides are fit to be set with
11856                                              content, based on the position the
11857                                              hover is activated and its distance
11858                                              to the edges of its parent object
11859                                              */
11860         Eina_Bool       hover_right : 1; /**< Hint indicating content fits on
11861                                               the right side of the hover.
11862                                               See @ref hover_left */
11863         Eina_Bool       hover_top : 1; /**< Hint indicating content fits on top
11864                                             of the hover. See @ref hover_left */
11865         Eina_Bool       hover_bottom : 1; /**< Hint indicating content fits
11866                                                below the hover. See @ref
11867                                                hover_left */
11868      };
11869    /**
11870     * Add a new Anchorblock object
11871     *
11872     * @param parent The parent object
11873     * @return The new object or NULL if it cannot be created
11874     */
11875    EAPI Evas_Object *elm_anchorblock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11876    /**
11877     * Set the text to show in the anchorblock
11878     *
11879     * Sets the text of the anchorblock to @p text. This text can include markup
11880     * format tags, including <c>\<a href=anchorname\></a></c> to begin a segment
11881     * of text that will be specially styled and react to click events, ended
11882     * with either of \</a\> or \</\>. When clicked, the anchor will emit an
11883     * "anchor,clicked" signal that you can attach a callback to with
11884     * evas_object_smart_callback_add(). The name of the anchor given in the
11885     * event info struct will be the one set in the href attribute, in this
11886     * case, anchorname.
11887     *
11888     * Other markup can be used to style the text in different ways, but it's
11889     * up to the style defined in the theme which tags do what.
11890     * @deprecated use elm_object_text_set() instead.
11891     */
11892    EINA_DEPRECATED EAPI void         elm_anchorblock_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
11893    /**
11894     * Get the markup text set for the anchorblock
11895     *
11896     * Retrieves the text set on the anchorblock, with markup tags included.
11897     *
11898     * @param obj The anchorblock object
11899     * @return The markup text set or @c NULL if nothing was set or an error
11900     * occurred
11901     * @deprecated use elm_object_text_set() instead.
11902     */
11903    EINA_DEPRECATED EAPI const char  *elm_anchorblock_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11904    /**
11905     * Set the parent of the hover popup
11906     *
11907     * Sets the parent object to use by the hover created by the anchorblock
11908     * when an anchor is clicked. See @ref Hover for more details on this.
11909     *
11910     * @param obj The anchorblock object
11911     * @param parent The object to use as parent for the hover
11912     */
11913    EAPI void         elm_anchorblock_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
11914    /**
11915     * Get the parent of the hover popup
11916     *
11917     * Get the object used as parent for the hover created by the anchorblock
11918     * widget. See @ref Hover for more details on this.
11919     * If no parent is set, the same anchorblock object will be used.
11920     *
11921     * @param obj The anchorblock object
11922     * @return The object used as parent for the hover, NULL if none is set.
11923     */
11924    EAPI Evas_Object *elm_anchorblock_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11925    /**
11926     * Set the style that the hover should use
11927     *
11928     * When creating the popup hover, anchorblock will request that it's
11929     * themed according to @p style.
11930     *
11931     * @param obj The anchorblock object
11932     * @param style The style to use for the underlying hover
11933     *
11934     * @see elm_object_style_set()
11935     */
11936    EAPI void         elm_anchorblock_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
11937    /**
11938     * Get the style that the hover should use
11939     *
11940     * Get the style the hover created by anchorblock will use.
11941     *
11942     * @param obj The anchorblock object
11943     * @return The style to use by the hover. NULL means the default is used.
11944     *
11945     * @see elm_object_style_set()
11946     */
11947    EAPI const char  *elm_anchorblock_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11948    /**
11949     * Ends the hover popup in the anchorblock
11950     *
11951     * When an anchor is clicked, the anchorblock widget will create a hover
11952     * object to use as a popup with user provided content. This function
11953     * terminates this popup, returning the anchorblock to its normal state.
11954     *
11955     * @param obj The anchorblock object
11956     */
11957    EAPI void         elm_anchorblock_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
11958    /**
11959     * Appends a custom item provider to the given anchorblock
11960     *
11961     * Appends the given function to the list of items providers. This list is
11962     * called, one function at a time, with the given @p data pointer, the
11963     * anchorblock object and, in the @p item parameter, the item name as
11964     * referenced in its href string. Following functions in the list will be
11965     * called in order until one of them returns something different to NULL,
11966     * which should be an Evas_Object which will be used in place of the item
11967     * element.
11968     *
11969     * Items in the markup text take the form \<item relsize=16x16 vsize=full
11970     * href=item/name\>\</item\>
11971     *
11972     * @param obj The anchorblock object
11973     * @param func The function to add to the list of providers
11974     * @param data User data that will be passed to the callback function
11975     *
11976     * @see elm_entry_item_provider_append()
11977     */
11978    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);
11979    /**
11980     * Prepend a custom item provider to the given anchorblock
11981     *
11982     * Like elm_anchorblock_item_provider_append(), but it adds the function
11983     * @p func to the beginning of the list, instead of the end.
11984     *
11985     * @param obj The anchorblock object
11986     * @param func The function to add to the list of providers
11987     * @param data User data that will be passed to the callback function
11988     */
11989    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);
11990    /**
11991     * Remove a custom item provider from the list of the given anchorblock
11992     *
11993     * Removes the function and data pairing that matches @p func and @p data.
11994     * That is, unless the same function and same user data are given, the
11995     * function will not be removed from the list. This allows us to add the
11996     * same callback several times, with different @p data pointers and be
11997     * able to remove them later without conflicts.
11998     *
11999     * @param obj The anchorblock object
12000     * @param func The function to remove from the list
12001     * @param data The data matching the function to remove from the list
12002     */
12003    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);
12004    /**
12005     * @}
12006     */
12007
12008    /**
12009     * @defgroup Bubble Bubble
12010     *
12011     * @image html img/widget/bubble/preview-00.png
12012     * @image latex img/widget/bubble/preview-00.eps
12013     * @image html img/widget/bubble/preview-01.png
12014     * @image latex img/widget/bubble/preview-01.eps
12015     * @image html img/widget/bubble/preview-02.png
12016     * @image latex img/widget/bubble/preview-02.eps
12017     *
12018     * @brief The Bubble is a widget to show text similarly to how speech is
12019     * represented in comics.
12020     *
12021     * The bubble widget contains 5 important visual elements:
12022     * @li The frame is a rectangle with rounded rectangles and an "arrow".
12023     * @li The @p icon is an image to which the frame's arrow points to.
12024     * @li The @p label is a text which appears to the right of the icon if the
12025     * corner is "top_left" or "bottom_left" and is right aligned to the frame
12026     * otherwise.
12027     * @li The @p info is a text which appears to the right of the label. Info's
12028     * font is of a ligther color than label.
12029     * @li The @p content is an evas object that is shown inside the frame.
12030     *
12031     * The position of the arrow, icon, label and info depends on which corner is
12032     * selected. The four available corners are:
12033     * @li "top_left" - Default
12034     * @li "top_right"
12035     * @li "bottom_left"
12036     * @li "bottom_right"
12037     *
12038     * Signals that you can add callbacks for are:
12039     * @li "clicked" - This is called when a user has clicked the bubble.
12040     *
12041     * For an example of using a buble see @ref bubble_01_example_page "this".
12042     *
12043     * @{
12044     */
12045    /**
12046     * Add a new bubble to the parent
12047     *
12048     * @param parent The parent object
12049     * @return The new object or NULL if it cannot be created
12050     *
12051     * This function adds a text bubble to the given parent evas object.
12052     */
12053    EAPI Evas_Object *elm_bubble_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12054    /**
12055     * Set the label of the bubble
12056     *
12057     * @param obj The bubble object
12058     * @param label The string to set in the label
12059     *
12060     * This function sets the title of the bubble. Where this appears depends on
12061     * the selected corner.
12062     * @deprecated use elm_object_text_set() instead.
12063     */
12064    EINA_DEPRECATED EAPI void         elm_bubble_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
12065    /**
12066     * Get the label of the bubble
12067     *
12068     * @param obj The bubble object
12069     * @return The string of set in the label
12070     *
12071     * This function gets the title of the bubble.
12072     * @deprecated use elm_object_text_get() instead.
12073     */
12074    EINA_DEPRECATED EAPI const char  *elm_bubble_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12075    /**
12076     * Set the info of the bubble
12077     *
12078     * @param obj The bubble object
12079     * @param info The given info about the bubble
12080     *
12081     * This function sets the info of the bubble. Where this appears depends on
12082     * the selected corner.
12083     * @deprecated use elm_object_text_part_set() instead. (with "info" as the parameter).
12084     */
12085    EINA_DEPRECATED EAPI void         elm_bubble_info_set(Evas_Object *obj, const char *info) EINA_ARG_NONNULL(1);
12086    /**
12087     * Get the info of the bubble
12088     *
12089     * @param obj The bubble object
12090     *
12091     * @return The "info" string of the bubble
12092     *
12093     * This function gets the info text.
12094     * @deprecated use elm_object_text_part_get() instead. (with "info" as the parameter).
12095     */
12096    EINA_DEPRECATED EAPI const char  *elm_bubble_info_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12097    /**
12098     * Set the content to be shown in the bubble
12099     *
12100     * Once the content object is set, a previously set one will be deleted.
12101     * If you want to keep the old content object, use the
12102     * elm_bubble_content_unset() function.
12103     *
12104     * @param obj The bubble object
12105     * @param content The given content of the bubble
12106     *
12107     * This function sets the content shown on the middle of the bubble.
12108     */
12109    EAPI void         elm_bubble_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
12110    /**
12111     * Get the content shown in the bubble
12112     *
12113     * Return the content object which is set for this widget.
12114     *
12115     * @param obj The bubble object
12116     * @return The content that is being used
12117     */
12118    EAPI Evas_Object *elm_bubble_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12119    /**
12120     * Unset the content shown in the bubble
12121     *
12122     * Unparent and return the content object which was set for this widget.
12123     *
12124     * @param obj The bubble object
12125     * @return The content that was being used
12126     */
12127    EAPI Evas_Object *elm_bubble_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12128    /**
12129     * Set the icon of the bubble
12130     *
12131     * Once the icon object is set, a previously set one will be deleted.
12132     * If you want to keep the old content object, use the
12133     * elm_icon_content_unset() function.
12134     *
12135     * @param obj The bubble object
12136     * @param icon The given icon for the bubble
12137     */
12138    EAPI void         elm_bubble_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
12139    /**
12140     * Get the icon of the bubble
12141     *
12142     * @param obj The bubble object
12143     * @return The icon for the bubble
12144     *
12145     * This function gets the icon shown on the top left of bubble.
12146     */
12147    EAPI Evas_Object *elm_bubble_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12148    /**
12149     * Unset the icon of the bubble
12150     *
12151     * Unparent and return the icon object which was set for this widget.
12152     *
12153     * @param obj The bubble object
12154     * @return The icon that was being used
12155     */
12156    EAPI Evas_Object *elm_bubble_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12157    /**
12158     * Set the corner of the bubble
12159     *
12160     * @param obj The bubble object.
12161     * @param corner The given corner for the bubble.
12162     *
12163     * This function sets the corner of the bubble. The corner will be used to
12164     * determine where the arrow in the frame points to and where label, icon and
12165     * info arre shown.
12166     *
12167     * Possible values for corner are:
12168     * @li "top_left" - Default
12169     * @li "top_right"
12170     * @li "bottom_left"
12171     * @li "bottom_right"
12172     */
12173    EAPI void         elm_bubble_corner_set(Evas_Object *obj, const char *corner) EINA_ARG_NONNULL(1, 2);
12174    /**
12175     * Get the corner of the bubble
12176     *
12177     * @param obj The bubble object.
12178     * @return The given corner for the bubble.
12179     *
12180     * This function gets the selected corner of the bubble.
12181     */
12182    EAPI const char  *elm_bubble_corner_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12183    /**
12184     * @}
12185     */
12186
12187    /**
12188     * @defgroup Photo Photo
12189     *
12190     * For displaying the photo of a person (contact). Simple yet
12191     * with a very specific purpose.
12192     *
12193     * Signals that you can add callbacks for are:
12194     *
12195     * "clicked" - This is called when a user has clicked the photo
12196     * "drag,start" - Someone started dragging the image out of the object
12197     * "drag,end" - Dragged item was dropped (somewhere)
12198     *
12199     * @{
12200     */
12201
12202    /**
12203     * Add a new photo to the parent
12204     *
12205     * @param parent The parent object
12206     * @return The new object or NULL if it cannot be created
12207     *
12208     * @ingroup Photo
12209     */
12210    EAPI Evas_Object *elm_photo_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12211
12212    /**
12213     * Set the file that will be used as photo
12214     *
12215     * @param obj The photo object
12216     * @param file The path to file that will be used as photo
12217     *
12218     * @return (1 = success, 0 = error)
12219     *
12220     * @ingroup Photo
12221     */
12222    EAPI Eina_Bool    elm_photo_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
12223
12224     /**
12225     * Set the file that will be used as thumbnail in the photo.
12226     *
12227     * @param obj The photo object.
12228     * @param file The path to file that will be used as thumb.
12229     * @param group The key used in case of an EET file.
12230     *
12231     * @ingroup Photo
12232     */
12233    EAPI void         elm_photo_thumb_set(const Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
12234
12235    /**
12236     * Set the size that will be used on the photo
12237     *
12238     * @param obj The photo object
12239     * @param size The size that the photo will be
12240     *
12241     * @ingroup Photo
12242     */
12243    EAPI void         elm_photo_size_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
12244
12245    /**
12246     * Set if the photo should be completely visible or not.
12247     *
12248     * @param obj The photo object
12249     * @param fill if true the photo will be completely visible
12250     *
12251     * @ingroup Photo
12252     */
12253    EAPI void         elm_photo_fill_inside_set(Evas_Object *obj, Eina_Bool fill) EINA_ARG_NONNULL(1);
12254
12255    /**
12256     * Set editability of the photo.
12257     *
12258     * An editable photo can be dragged to or from, and can be cut or
12259     * pasted too.  Note that pasting an image or dropping an item on
12260     * the image will delete the existing content.
12261     *
12262     * @param obj The photo object.
12263     * @param set To set of clear editablity.
12264     */
12265    EAPI void         elm_photo_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
12266
12267    /**
12268     * @}
12269     */
12270
12271    /* gesture layer */
12272    /**
12273     * @defgroup Elm_Gesture_Layer Gesture Layer
12274     * Gesture Layer Usage:
12275     *
12276     * Use Gesture Layer to detect gestures.
12277     * The advantage is that you don't have to implement
12278     * gesture detection, just set callbacks of gesture state.
12279     * By using gesture layer we make standard interface.
12280     *
12281     * In order to use Gesture Layer you start with @ref elm_gesture_layer_add
12282     * with a parent object parameter.
12283     * Next 'activate' gesture layer with a @ref elm_gesture_layer_attach
12284     * call. Usually with same object as target (2nd parameter).
12285     *
12286     * Now you need to tell gesture layer what gestures you follow.
12287     * This is done with @ref elm_gesture_layer_cb_set call.
12288     * By setting the callback you actually saying to gesture layer:
12289     * I would like to know when the gesture @ref Elm_Gesture_Types
12290     * switches to state @ref Elm_Gesture_State.
12291     *
12292     * Next, you need to implement the actual action that follows the input
12293     * in your callback.
12294     *
12295     * Note that if you like to stop being reported about a gesture, just set
12296     * all callbacks referring this gesture to NULL.
12297     * (again with @ref elm_gesture_layer_cb_set)
12298     *
12299     * The information reported by gesture layer to your callback is depending
12300     * on @ref Elm_Gesture_Types:
12301     * @ref Elm_Gesture_Taps_Info is the info reported for tap gestures:
12302     * @ref ELM_GESTURE_N_TAPS, @ref ELM_GESTURE_N_LONG_TAPS,
12303     * @ref ELM_GESTURE_N_DOUBLE_TAPS, @ref ELM_GESTURE_N_TRIPLE_TAPS.
12304     *
12305     * @ref Elm_Gesture_Momentum_Info is info reported for momentum gestures:
12306     * @ref ELM_GESTURE_MOMENTUM.
12307     *
12308     * @ref Elm_Gesture_Line_Info is the info reported for line gestures:
12309     * (this also contains @ref Elm_Gesture_Momentum_Info internal structure)
12310     * @ref ELM_GESTURE_N_LINES, @ref ELM_GESTURE_N_FLICKS.
12311     * Note that we consider a flick as a line-gesture that should be completed
12312     * in flick-time-limit as defined in @ref Config.
12313     *
12314     * @ref Elm_Gesture_Zoom_Info is the info reported for @ref ELM_GESTURE_ZOOM gesture.
12315     *
12316     * @ref Elm_Gesture_Rotate_Info is the info reported for @ref ELM_GESTURE_ROTATE gesture.
12317     *
12318     *
12319     * Gesture Layer Tweaks:
12320     *
12321     * Note that line, flick, gestures can start without the need to remove fingers from surface.
12322     * When user fingers rests on same-spot gesture is ended and starts again when fingers moved.
12323     *
12324     * Setting glayer_continues_enable to false in @ref Config will change this behavior
12325     * so gesture starts when user touches (a *DOWN event) touch-surface
12326     * and ends when no fingers touches surface (a *UP event).
12327     */
12328
12329    /**
12330     * @enum _Elm_Gesture_Types
12331     * Enum of supported gesture types.
12332     * @ingroup Elm_Gesture_Layer
12333     */
12334    enum _Elm_Gesture_Types
12335      {
12336         ELM_GESTURE_FIRST = 0,
12337
12338         ELM_GESTURE_N_TAPS, /**< N fingers single taps */
12339         ELM_GESTURE_N_LONG_TAPS, /**< N fingers single long-taps */
12340         ELM_GESTURE_N_DOUBLE_TAPS, /**< N fingers double-single taps */
12341         ELM_GESTURE_N_TRIPLE_TAPS, /**< N fingers triple-single taps */
12342
12343         ELM_GESTURE_MOMENTUM, /**< Reports momentum in the dircetion of move */
12344
12345         ELM_GESTURE_N_LINES, /**< N fingers line gesture */
12346         ELM_GESTURE_N_FLICKS, /**< N fingers flick gesture */
12347
12348         ELM_GESTURE_ZOOM, /**< Zoom */
12349         ELM_GESTURE_ROTATE, /**< Rotate */
12350
12351         ELM_GESTURE_LAST
12352      };
12353
12354    /**
12355     * @typedef Elm_Gesture_Types
12356     * gesture types enum
12357     * @ingroup Elm_Gesture_Layer
12358     */
12359    typedef enum _Elm_Gesture_Types Elm_Gesture_Types;
12360
12361    /**
12362     * @enum _Elm_Gesture_State
12363     * Enum of gesture states.
12364     * @ingroup Elm_Gesture_Layer
12365     */
12366    enum _Elm_Gesture_State
12367      {
12368         ELM_GESTURE_STATE_UNDEFINED = -1, /**< Gesture not STARTed */
12369         ELM_GESTURE_STATE_START,          /**< Gesture STARTed     */
12370         ELM_GESTURE_STATE_MOVE,           /**< Gesture is ongoing  */
12371         ELM_GESTURE_STATE_END,            /**< Gesture completed   */
12372         ELM_GESTURE_STATE_ABORT    /**< Onging gesture was ABORTed */
12373      };
12374
12375    /**
12376     * @typedef Elm_Gesture_State
12377     * gesture states enum
12378     * @ingroup Elm_Gesture_Layer
12379     */
12380    typedef enum _Elm_Gesture_State Elm_Gesture_State;
12381
12382    /**
12383     * @struct _Elm_Gesture_Taps_Info
12384     * Struct holds taps info for user
12385     * @ingroup Elm_Gesture_Layer
12386     */
12387    struct _Elm_Gesture_Taps_Info
12388      {
12389         Evas_Coord x, y;         /**< Holds center point between fingers */
12390         unsigned int n;          /**< Number of fingers tapped           */
12391         unsigned int timestamp;  /**< event timestamp       */
12392      };
12393
12394    /**
12395     * @typedef Elm_Gesture_Taps_Info
12396     * holds taps info for user
12397     * @ingroup Elm_Gesture_Layer
12398     */
12399    typedef struct _Elm_Gesture_Taps_Info Elm_Gesture_Taps_Info;
12400
12401    /**
12402     * @struct _Elm_Gesture_Momentum_Info
12403     * Struct holds momentum info for user
12404     * x1 and y1 are not necessarily in sync
12405     * x1 holds x value of x direction starting point
12406     * and same holds for y1.
12407     * This is noticeable when doing V-shape movement
12408     * @ingroup Elm_Gesture_Layer
12409     */
12410    struct _Elm_Gesture_Momentum_Info
12411      {  /* Report line ends, timestamps, and momentum computed        */
12412         Evas_Coord x1; /**< Final-swipe direction starting point on X */
12413         Evas_Coord y1; /**< Final-swipe direction starting point on Y */
12414         Evas_Coord x2; /**< Final-swipe direction ending point on X   */
12415         Evas_Coord y2; /**< Final-swipe direction ending point on Y   */
12416
12417         unsigned int tx; /**< Timestamp of start of final x-swipe */
12418         unsigned int ty; /**< Timestamp of start of final y-swipe */
12419
12420         Evas_Coord mx; /**< Momentum on X */
12421         Evas_Coord my; /**< Momentum on Y */
12422      };
12423
12424    /**
12425     * @typedef Elm_Gesture_Momentum_Info
12426     * holds momentum info for user
12427     * @ingroup Elm_Gesture_Layer
12428     */
12429     typedef struct _Elm_Gesture_Momentum_Info Elm_Gesture_Momentum_Info;
12430
12431    /**
12432     * @struct _Elm_Gesture_Line_Info
12433     * Struct holds line info for user
12434     * @ingroup Elm_Gesture_Layer
12435     */
12436    struct _Elm_Gesture_Line_Info
12437      {  /* Report line ends, timestamps, and momentum computed      */
12438         Elm_Gesture_Momentum_Info momentum; /**< Line momentum info */
12439         unsigned int n;            /**< Number of fingers (lines)   */
12440         /* FIXME should be radians, bot degrees */
12441         double angle;              /**< Angle (direction) of lines  */
12442      };
12443
12444    /**
12445     * @typedef Elm_Gesture_Line_Info
12446     * Holds line info for user
12447     * @ingroup Elm_Gesture_Layer
12448     */
12449     typedef struct  _Elm_Gesture_Line_Info Elm_Gesture_Line_Info;
12450
12451    /**
12452     * @struct _Elm_Gesture_Zoom_Info
12453     * Struct holds zoom info for user
12454     * @ingroup Elm_Gesture_Layer
12455     */
12456    struct _Elm_Gesture_Zoom_Info
12457      {
12458         Evas_Coord x, y;       /**< Holds zoom center point reported to user  */
12459         Evas_Coord radius; /**< Holds radius between fingers reported to user */
12460         double zoom;            /**< Zoom value: 1.0 means no zoom             */
12461         double momentum;        /**< Zoom momentum: zoom growth per second (NOT YET SUPPORTED) */
12462      };
12463
12464    /**
12465     * @typedef Elm_Gesture_Zoom_Info
12466     * Holds zoom info for user
12467     * @ingroup Elm_Gesture_Layer
12468     */
12469    typedef struct _Elm_Gesture_Zoom_Info Elm_Gesture_Zoom_Info;
12470
12471    /**
12472     * @struct _Elm_Gesture_Rotate_Info
12473     * Struct holds rotation info for user
12474     * @ingroup Elm_Gesture_Layer
12475     */
12476    struct _Elm_Gesture_Rotate_Info
12477      {
12478         Evas_Coord x, y;   /**< Holds zoom center point reported to user      */
12479         Evas_Coord radius; /**< Holds radius between fingers reported to user */
12480         double base_angle; /**< Holds start-angle */
12481         double angle;      /**< Rotation value: 0.0 means no rotation         */
12482         double momentum;   /**< Rotation momentum: rotation done per second (NOT YET SUPPORTED) */
12483      };
12484
12485    /**
12486     * @typedef Elm_Gesture_Rotate_Info
12487     * Holds rotation info for user
12488     * @ingroup Elm_Gesture_Layer
12489     */
12490    typedef struct _Elm_Gesture_Rotate_Info Elm_Gesture_Rotate_Info;
12491
12492    /**
12493     * @typedef Elm_Gesture_Event_Cb
12494     * User callback used to stream gesture info from gesture layer
12495     * @param data user data
12496     * @param event_info gesture report info
12497     * Returns a flag field to be applied on the causing event.
12498     * You should probably return EVAS_EVENT_FLAG_ON_HOLD if your widget acted
12499     * upon the event, in an irreversible way.
12500     *
12501     * @ingroup Elm_Gesture_Layer
12502     */
12503    typedef Evas_Event_Flags (*Elm_Gesture_Event_Cb) (void *data, void *event_info);
12504
12505    /**
12506     * Use function to set callbacks to be notified about
12507     * change of state of gesture.
12508     * When a user registers a callback with this function
12509     * this means this gesture has to be tested.
12510     *
12511     * When ALL callbacks for a gesture are set to NULL
12512     * it means user isn't interested in gesture-state
12513     * and it will not be tested.
12514     *
12515     * @param obj Pointer to gesture-layer.
12516     * @param idx The gesture you would like to track its state.
12517     * @param cb callback function pointer.
12518     * @param cb_type what event this callback tracks: START, MOVE, END, ABORT.
12519     * @param data user info to be sent to callback (usually, Smart Data)
12520     *
12521     * @ingroup Elm_Gesture_Layer
12522     */
12523    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);
12524
12525    /**
12526     * Call this function to get repeat-events settings.
12527     *
12528     * @param obj Pointer to gesture-layer.
12529     *
12530     * @return repeat events settings.
12531     * @see elm_gesture_layer_hold_events_set()
12532     * @ingroup Elm_Gesture_Layer
12533     */
12534    EAPI Eina_Bool elm_gesture_layer_hold_events_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
12535
12536    /**
12537     * This function called in order to make gesture-layer repeat events.
12538     * Set this of you like to get the raw events only if gestures were not detected.
12539     * Clear this if you like gesture layer to fwd events as testing gestures.
12540     *
12541     * @param obj Pointer to gesture-layer.
12542     * @param r Repeat: TRUE/FALSE
12543     *
12544     * @ingroup Elm_Gesture_Layer
12545     */
12546    EAPI void elm_gesture_layer_hold_events_set(Evas_Object *obj, Eina_Bool r) EINA_ARG_NONNULL(1);
12547
12548    /**
12549     * This function sets step-value for zoom action.
12550     * Set step to any positive value.
12551     * Cancel step setting by setting to 0.0
12552     *
12553     * @param obj Pointer to gesture-layer.
12554     * @param s new zoom step value.
12555     *
12556     * @ingroup Elm_Gesture_Layer
12557     */
12558    EAPI void elm_gesture_layer_zoom_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
12559
12560    /**
12561     * This function sets step-value for rotate action.
12562     * Set step to any positive value.
12563     * Cancel step setting by setting to 0.0
12564     *
12565     * @param obj Pointer to gesture-layer.
12566     * @param s new roatate step value.
12567     *
12568     * @ingroup Elm_Gesture_Layer
12569     */
12570    EAPI void elm_gesture_layer_rotate_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
12571
12572    /**
12573     * This function called to attach gesture-layer to an Evas_Object.
12574     * @param obj Pointer to gesture-layer.
12575     * @param t Pointer to underlying object (AKA Target)
12576     *
12577     * @return TRUE, FALSE on success, failure.
12578     *
12579     * @ingroup Elm_Gesture_Layer
12580     */
12581    EAPI Eina_Bool elm_gesture_layer_attach(Evas_Object *obj, Evas_Object *t) EINA_ARG_NONNULL(1, 2);
12582
12583    /**
12584     * Call this function to construct a new gesture-layer object.
12585     * This does not activate the gesture layer. You have to
12586     * call elm_gesture_layer_attach in order to 'activate' gesture-layer.
12587     *
12588     * @param parent the parent object.
12589     *
12590     * @return Pointer to new gesture-layer object.
12591     *
12592     * @ingroup Elm_Gesture_Layer
12593     */
12594    EAPI Evas_Object *elm_gesture_layer_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12595
12596    /**
12597     * @defgroup Thumb Thumb
12598     *
12599     * @image html img/widget/thumb/preview-00.png
12600     * @image latex img/widget/thumb/preview-00.eps
12601     *
12602     * A thumb object is used for displaying the thumbnail of an image or video.
12603     * You must have compiled Elementary with Ethumb_Client support and the DBus
12604     * service must be present and auto-activated in order to have thumbnails to
12605     * be generated.
12606     *
12607     * Once the thumbnail object becomes visible, it will check if there is a
12608     * previously generated thumbnail image for the file set on it. If not, it
12609     * will start generating this thumbnail.
12610     *
12611     * Different config settings will cause different thumbnails to be generated
12612     * even on the same file.
12613     *
12614     * Generated thumbnails are stored under @c $HOME/.thumbnails/. Check the
12615     * Ethumb documentation to change this path, and to see other configuration
12616     * options.
12617     *
12618     * Signals that you can add callbacks for are:
12619     *
12620     * - "clicked" - This is called when a user has clicked the thumb without dragging
12621     *             around.
12622     * - "clicked,double" - This is called when a user has double-clicked the thumb.
12623     * - "press" - This is called when a user has pressed down the thumb.
12624     * - "generate,start" - The thumbnail generation started.
12625     * - "generate,stop" - The generation process stopped.
12626     * - "generate,error" - The generation failed.
12627     * - "load,error" - The thumbnail image loading failed.
12628     *
12629     * available styles:
12630     * - default
12631     * - noframe
12632     *
12633     * An example of use of thumbnail:
12634     *
12635     * - @ref thumb_example_01
12636     */
12637
12638    /**
12639     * @addtogroup Thumb
12640     * @{
12641     */
12642
12643    /**
12644     * @enum _Elm_Thumb_Animation_Setting
12645     * @typedef Elm_Thumb_Animation_Setting
12646     *
12647     * Used to set if a video thumbnail is animating or not.
12648     *
12649     * @ingroup Thumb
12650     */
12651    typedef enum _Elm_Thumb_Animation_Setting
12652      {
12653         ELM_THUMB_ANIMATION_START = 0, /**< Play animation once */
12654         ELM_THUMB_ANIMATION_LOOP,      /**< Keep playing animation until stop is requested */
12655         ELM_THUMB_ANIMATION_STOP,      /**< Stop playing the animation */
12656         ELM_THUMB_ANIMATION_LAST
12657      } Elm_Thumb_Animation_Setting;
12658
12659    /**
12660     * Add a new thumb object to the parent.
12661     *
12662     * @param parent The parent object.
12663     * @return The new object or NULL if it cannot be created.
12664     *
12665     * @see elm_thumb_file_set()
12666     * @see elm_thumb_ethumb_client_get()
12667     *
12668     * @ingroup Thumb
12669     */
12670    EAPI Evas_Object                 *elm_thumb_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12671    /**
12672     * Reload thumbnail if it was generated before.
12673     *
12674     * @param obj The thumb object to reload
12675     *
12676     * This is useful if the ethumb client configuration changed, like its
12677     * size, aspect or any other property one set in the handle returned
12678     * by elm_thumb_ethumb_client_get().
12679     *
12680     * If the options didn't change, the thumbnail won't be generated again, but
12681     * the old one will still be used.
12682     *
12683     * @see elm_thumb_file_set()
12684     *
12685     * @ingroup Thumb
12686     */
12687    EAPI void                         elm_thumb_reload(Evas_Object *obj) EINA_ARG_NONNULL(1);
12688    /**
12689     * Set the file that will be used as thumbnail.
12690     *
12691     * @param obj The thumb object.
12692     * @param file The path to file that will be used as thumb.
12693     * @param key The key used in case of an EET file.
12694     *
12695     * The file can be an image or a video (in that case, acceptable extensions are:
12696     * avi, mp4, ogv, mov, mpg and wmv). To start the video animation, use the
12697     * function elm_thumb_animate().
12698     *
12699     * @see elm_thumb_file_get()
12700     * @see elm_thumb_reload()
12701     * @see elm_thumb_animate()
12702     *
12703     * @ingroup Thumb
12704     */
12705    EAPI void                         elm_thumb_file_set(Evas_Object *obj, const char *file, const char *key) EINA_ARG_NONNULL(1);
12706    /**
12707     * Get the image or video path and key used to generate the thumbnail.
12708     *
12709     * @param obj The thumb object.
12710     * @param file Pointer to filename.
12711     * @param key Pointer to key.
12712     *
12713     * @see elm_thumb_file_set()
12714     * @see elm_thumb_path_get()
12715     *
12716     * @ingroup Thumb
12717     */
12718    EAPI void                         elm_thumb_file_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
12719    /**
12720     * Get the path and key to the image or video generated by ethumb.
12721     *
12722     * One just need to make sure that the thumbnail was generated before getting
12723     * its path; otherwise, the path will be NULL. One way to do that is by asking
12724     * for the path when/after the "generate,stop" smart callback is called.
12725     *
12726     * @param obj The thumb object.
12727     * @param file Pointer to thumb path.
12728     * @param key Pointer to thumb key.
12729     *
12730     * @see elm_thumb_file_get()
12731     *
12732     * @ingroup Thumb
12733     */
12734    EAPI void                         elm_thumb_path_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
12735    /**
12736     * Set the animation state for the thumb object. If its content is an animated
12737     * video, you may start/stop the animation or tell it to play continuously and
12738     * looping.
12739     *
12740     * @param obj The thumb object.
12741     * @param setting The animation setting.
12742     *
12743     * @see elm_thumb_file_set()
12744     *
12745     * @ingroup Thumb
12746     */
12747    EAPI void                         elm_thumb_animate_set(Evas_Object *obj, Elm_Thumb_Animation_Setting s) EINA_ARG_NONNULL(1);
12748    /**
12749     * Get the animation state for the thumb object.
12750     *
12751     * @param obj The thumb object.
12752     * @return getting The animation setting or @c ELM_THUMB_ANIMATION_LAST,
12753     * on errors.
12754     *
12755     * @see elm_thumb_animate_set()
12756     *
12757     * @ingroup Thumb
12758     */
12759    EAPI Elm_Thumb_Animation_Setting  elm_thumb_animate_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12760    /**
12761     * Get the ethumb_client handle so custom configuration can be made.
12762     *
12763     * @return Ethumb_Client instance or NULL.
12764     *
12765     * This must be called before the objects are created to be sure no object is
12766     * visible and no generation started.
12767     *
12768     * Example of usage:
12769     *
12770     * @code
12771     * #include <Elementary.h>
12772     * #ifndef ELM_LIB_QUICKLAUNCH
12773     * EAPI_MAIN int
12774     * elm_main(int argc, char **argv)
12775     * {
12776     *    Ethumb_Client *client;
12777     *
12778     *    elm_need_ethumb();
12779     *
12780     *    // ... your code
12781     *
12782     *    client = elm_thumb_ethumb_client_get();
12783     *    if (!client)
12784     *      {
12785     *         ERR("could not get ethumb_client");
12786     *         return 1;
12787     *      }
12788     *    ethumb_client_size_set(client, 100, 100);
12789     *    ethumb_client_crop_align_set(client, 0.5, 0.5);
12790     *    // ... your code
12791     *
12792     *    // Create elm_thumb objects here
12793     *
12794     *    elm_run();
12795     *    elm_shutdown();
12796     *    return 0;
12797     * }
12798     * #endif
12799     * ELM_MAIN()
12800     * @endcode
12801     *
12802     * @note There's only one client handle for Ethumb, so once a configuration
12803     * change is done to it, any other request for thumbnails (for any thumbnail
12804     * object) will use that configuration. Thus, this configuration is global.
12805     *
12806     * @ingroup Thumb
12807     */
12808    EAPI void                        *elm_thumb_ethumb_client_get(void);
12809    /**
12810     * Get the ethumb_client connection state.
12811     *
12812     * @return EINA_TRUE if the client is connected to the server or EINA_FALSE
12813     * otherwise.
12814     */
12815    EAPI Eina_Bool                    elm_thumb_ethumb_client_connected(void);
12816    /**
12817     * Make the thumbnail 'editable'.
12818     *
12819     * @param obj Thumb object.
12820     * @param set Turn on or off editability. Default is @c EINA_FALSE.
12821     *
12822     * This means the thumbnail is a valid drag target for drag and drop, and can be
12823     * cut or pasted too.
12824     *
12825     * @see elm_thumb_editable_get()
12826     *
12827     * @ingroup Thumb
12828     */
12829    EAPI Eina_Bool                    elm_thumb_editable_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
12830    /**
12831     * Make the thumbnail 'editable'.
12832     *
12833     * @param obj Thumb object.
12834     * @return Editability.
12835     *
12836     * This means the thumbnail is a valid drag target for drag and drop, and can be
12837     * cut or pasted too.
12838     *
12839     * @see elm_thumb_editable_set()
12840     *
12841     * @ingroup Thumb
12842     */
12843    EAPI Eina_Bool                    elm_thumb_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12844
12845    /**
12846     * @}
12847     */
12848
12849    /**
12850     * @defgroup Hoversel Hoversel
12851     *
12852     * @image html img/widget/hoversel/preview-00.png
12853     * @image latex img/widget/hoversel/preview-00.eps
12854     *
12855     * A hoversel is a button that pops up a list of items (automatically
12856     * choosing the direction to display) that have a label and, optionally, an
12857     * icon to select from. It is a convenience widget to avoid the need to do
12858     * all the piecing together yourself. It is intended for a small number of
12859     * items in the hoversel menu (no more than 8), though is capable of many
12860     * more.
12861     *
12862     * Signals that you can add callbacks for are:
12863     * "clicked" - the user clicked the hoversel button and popped up the sel
12864     * "selected" - an item in the hoversel list is selected. event_info is the item
12865     * "dismissed" - the hover is dismissed
12866     *
12867     * See @ref tutorial_hoversel for an example.
12868     * @{
12869     */
12870    typedef struct _Elm_Hoversel_Item Elm_Hoversel_Item; /**< Item of Elm_Hoversel. Sub-type of Elm_Widget_Item */
12871    /**
12872     * @brief Add a new Hoversel object
12873     *
12874     * @param parent The parent object
12875     * @return The new object or NULL if it cannot be created
12876     */
12877    EAPI Evas_Object       *elm_hoversel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12878    /**
12879     * @brief This sets the hoversel to expand horizontally.
12880     *
12881     * @param obj The hoversel object
12882     * @param horizontal If true, the hover will expand horizontally to the
12883     * right.
12884     *
12885     * @note The initial button will display horizontally regardless of this
12886     * setting.
12887     */
12888    EAPI void               elm_hoversel_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
12889    /**
12890     * @brief This returns whether the hoversel is set to expand horizontally.
12891     *
12892     * @param obj The hoversel object
12893     * @return If true, the hover will expand horizontally to the right.
12894     *
12895     * @see elm_hoversel_horizontal_set()
12896     */
12897    EAPI Eina_Bool          elm_hoversel_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12898    /**
12899     * @brief Set the Hover parent
12900     *
12901     * @param obj The hoversel object
12902     * @param parent The parent to use
12903     *
12904     * Sets the hover parent object, the area that will be darkened when the
12905     * hoversel is clicked. Should probably be the window that the hoversel is
12906     * in. See @ref Hover objects for more information.
12907     */
12908    EAPI void               elm_hoversel_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
12909    /**
12910     * @brief Get the Hover parent
12911     *
12912     * @param obj The hoversel object
12913     * @return The used parent
12914     *
12915     * Gets the hover parent object.
12916     *
12917     * @see elm_hoversel_hover_parent_set()
12918     */
12919    EAPI Evas_Object       *elm_hoversel_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12920    /**
12921     * @brief Set the hoversel button label
12922     *
12923     * @param obj The hoversel object
12924     * @param label The label text.
12925     *
12926     * This sets the label of the button that is always visible (before it is
12927     * clicked and expanded).
12928     *
12929     * @deprecated elm_object_text_set()
12930     */
12931    EINA_DEPRECATED EAPI void               elm_hoversel_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
12932    /**
12933     * @brief Get the hoversel button label
12934     *
12935     * @param obj The hoversel object
12936     * @return The label text.
12937     *
12938     * @deprecated elm_object_text_get()
12939     */
12940    EINA_DEPRECATED EAPI const char        *elm_hoversel_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12941    /**
12942     * @brief Set the icon of the hoversel button
12943     *
12944     * @param obj The hoversel object
12945     * @param icon The icon object
12946     *
12947     * Sets the icon of the button that is always visible (before it is clicked
12948     * and expanded).  Once the icon object is set, a previously set one will be
12949     * deleted, if you want to keep that old content object, use the
12950     * elm_hoversel_icon_unset() function.
12951     *
12952     * @see elm_button_icon_set()
12953     */
12954    EAPI void               elm_hoversel_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
12955    /**
12956     * @brief Get the icon of the hoversel button
12957     *
12958     * @param obj The hoversel object
12959     * @return The icon object
12960     *
12961     * Get the icon of the button that is always visible (before it is clicked
12962     * and expanded). Also see elm_button_icon_get().
12963     *
12964     * @see elm_hoversel_icon_set()
12965     */
12966    EAPI Evas_Object       *elm_hoversel_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12967    /**
12968     * @brief Get and unparent the icon of the hoversel button
12969     *
12970     * @param obj The hoversel object
12971     * @return The icon object that was being used
12972     *
12973     * Unparent and return the icon of the button that is always visible
12974     * (before it is clicked and expanded).
12975     *
12976     * @see elm_hoversel_icon_set()
12977     * @see elm_button_icon_unset()
12978     */
12979    EAPI Evas_Object       *elm_hoversel_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12980    /**
12981     * @brief This triggers the hoversel popup from code, the same as if the user
12982     * had clicked the button.
12983     *
12984     * @param obj The hoversel object
12985     */
12986    EAPI void               elm_hoversel_hover_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
12987    /**
12988     * @brief This dismisses the hoversel popup as if the user had clicked
12989     * outside the hover.
12990     *
12991     * @param obj The hoversel object
12992     */
12993    EAPI void               elm_hoversel_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
12994    /**
12995     * @brief Returns whether the hoversel is expanded.
12996     *
12997     * @param obj The hoversel object
12998     * @return  This will return EINA_TRUE if the hoversel is expanded or
12999     * EINA_FALSE if it is not expanded.
13000     */
13001    EAPI Eina_Bool          elm_hoversel_expanded_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13002    /**
13003     * @brief This will remove all the children items from the hoversel.
13004     *
13005     * @param obj The hoversel object
13006     *
13007     * @warning Should @b not be called while the hoversel is active; use
13008     * elm_hoversel_expanded_get() to check first.
13009     *
13010     * @see elm_hoversel_item_del_cb_set()
13011     * @see elm_hoversel_item_del()
13012     */
13013    EAPI void               elm_hoversel_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
13014    /**
13015     * @brief Get the list of items within the given hoversel.
13016     *
13017     * @param obj The hoversel object
13018     * @return Returns a list of Elm_Hoversel_Item*
13019     *
13020     * @see elm_hoversel_item_add()
13021     */
13022    EAPI const Eina_List   *elm_hoversel_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13023    /**
13024     * @brief Add an item to the hoversel button
13025     *
13026     * @param obj The hoversel object
13027     * @param label The text label to use for the item (NULL if not desired)
13028     * @param icon_file An image file path on disk to use for the icon or standard
13029     * icon name (NULL if not desired)
13030     * @param icon_type The icon type if relevant
13031     * @param func Convenience function to call when this item is selected
13032     * @param data Data to pass to item-related functions
13033     * @return A handle to the item added.
13034     *
13035     * This adds an item to the hoversel to show when it is clicked. Note: if you
13036     * need to use an icon from an edje file then use
13037     * elm_hoversel_item_icon_set() right after the this function, and set
13038     * icon_file to NULL here.
13039     *
13040     * For more information on what @p icon_file and @p icon_type are see the
13041     * @ref Icon "icon documentation".
13042     */
13043    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);
13044    /**
13045     * @brief Delete an item from the hoversel
13046     *
13047     * @param item The item to delete
13048     *
13049     * This deletes the item from the hoversel (should not be called while the
13050     * hoversel is active; use elm_hoversel_expanded_get() to check first).
13051     *
13052     * @see elm_hoversel_item_add()
13053     * @see elm_hoversel_item_del_cb_set()
13054     */
13055    EAPI void               elm_hoversel_item_del(Elm_Hoversel_Item *item) EINA_ARG_NONNULL(1);
13056    /**
13057     * @brief Set the function to be called when an item from the hoversel is
13058     * freed.
13059     *
13060     * @param item The item to set the callback on
13061     * @param func The function called
13062     *
13063     * That function will receive these parameters:
13064     * @li void *item_data
13065     * @li Evas_Object *the_item_object
13066     * @li Elm_Hoversel_Item *the_object_struct
13067     *
13068     * @see elm_hoversel_item_add()
13069     */
13070    EAPI void               elm_hoversel_item_del_cb_set(Elm_Hoversel_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
13071    /**
13072     * @brief This returns the data pointer supplied with elm_hoversel_item_add()
13073     * that will be passed to associated function callbacks.
13074     *
13075     * @param item The item to get the data from
13076     * @return The data pointer set with elm_hoversel_item_add()
13077     *
13078     * @see elm_hoversel_item_add()
13079     */
13080    EAPI void              *elm_hoversel_item_data_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
13081    /**
13082     * @brief This returns the label text of the given hoversel item.
13083     *
13084     * @param item The item to get the label
13085     * @return The label text of the hoversel item
13086     *
13087     * @see elm_hoversel_item_add()
13088     */
13089    EAPI const char        *elm_hoversel_item_label_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
13090    /**
13091     * @brief This sets the icon for the given hoversel item.
13092     *
13093     * @param item The item to set the icon
13094     * @param icon_file An image file path on disk to use for the icon or standard
13095     * icon name
13096     * @param icon_group The edje group to use if @p icon_file is an edje file. Set this
13097     * to NULL if the icon is not an edje file
13098     * @param icon_type The icon type
13099     *
13100     * The icon can be loaded from the standard set, from an image file, or from
13101     * an edje file.
13102     *
13103     * @see elm_hoversel_item_add()
13104     */
13105    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);
13106    /**
13107     * @brief Get the icon object of the hoversel item
13108     *
13109     * @param item The item to get the icon from
13110     * @param icon_file The image file path on disk used for the icon or standard
13111     * icon name
13112     * @param icon_group The edje group used if @p icon_file is an edje file. NULL
13113     * if the icon is not an edje file
13114     * @param icon_type The icon type
13115     *
13116     * @see elm_hoversel_item_icon_set()
13117     * @see elm_hoversel_item_add()
13118     */
13119    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);
13120    /**
13121     * @}
13122     */
13123
13124    /**
13125     * @defgroup Toolbar Toolbar
13126     * @ingroup Elementary
13127     *
13128     * @image html img/widget/toolbar/preview-00.png
13129     * @image latex img/widget/toolbar/preview-00.eps width=\textwidth
13130     *
13131     * @image html img/toolbar.png
13132     * @image latex img/toolbar.eps width=\textwidth
13133     *
13134     * A toolbar is a widget that displays a list of items inside
13135     * a box. It can be scrollable, show a menu with items that don't fit
13136     * to toolbar size or even crop them.
13137     *
13138     * Only one item can be selected at a time.
13139     *
13140     * Items can have multiple states, or show menus when selected by the user.
13141     *
13142     * Smart callbacks one can listen to:
13143     * - "clicked" - when the user clicks on a toolbar item and becomes selected.
13144     *
13145     * Available styles for it:
13146     * - @c "default"
13147     * - @c "transparent" - no background or shadow, just show the content
13148     *
13149     * List of examples:
13150     * @li @ref toolbar_example_01
13151     * @li @ref toolbar_example_02
13152     * @li @ref toolbar_example_03
13153     */
13154
13155    /**
13156     * @addtogroup Toolbar
13157     * @{
13158     */
13159
13160    /**
13161     * @enum _Elm_Toolbar_Shrink_Mode
13162     * @typedef Elm_Toolbar_Shrink_Mode
13163     *
13164     * Set toolbar's items display behavior, it can be scrollabel,
13165     * show a menu with exceeding items, or simply hide them.
13166     *
13167     * @note Default value is #ELM_TOOLBAR_SHRINK_MENU. It reads value
13168     * from elm config.
13169     *
13170     * Values <b> don't </b> work as bitmask, only one can be choosen.
13171     *
13172     * @see elm_toolbar_mode_shrink_set()
13173     * @see elm_toolbar_mode_shrink_get()
13174     *
13175     * @ingroup Toolbar
13176     */
13177    typedef enum _Elm_Toolbar_Shrink_Mode
13178      {
13179         ELM_TOOLBAR_SHRINK_NONE,   /**< Set toolbar minimun size to fit all the items. */
13180         ELM_TOOLBAR_SHRINK_HIDE,   /**< Hide exceeding items. */
13181         ELM_TOOLBAR_SHRINK_SCROLL, /**< Allow accessing exceeding items through a scroller. */
13182         ELM_TOOLBAR_SHRINK_MENU    /**< Inserts a button to pop up a menu with exceeding items. */
13183      } Elm_Toolbar_Shrink_Mode;
13184
13185    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(). */
13186
13187    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(). */
13188
13189    /**
13190     * Add a new toolbar widget to the given parent Elementary
13191     * (container) object.
13192     *
13193     * @param parent The parent object.
13194     * @return a new toolbar widget handle or @c NULL, on errors.
13195     *
13196     * This function inserts a new toolbar widget on the canvas.
13197     *
13198     * @ingroup Toolbar
13199     */
13200    EAPI Evas_Object            *elm_toolbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13201
13202    /**
13203     * Set the icon size, in pixels, to be used by toolbar items.
13204     *
13205     * @param obj The toolbar object
13206     * @param icon_size The icon size in pixels
13207     *
13208     * @note Default value is @c 32. It reads value from elm config.
13209     *
13210     * @see elm_toolbar_icon_size_get()
13211     *
13212     * @ingroup Toolbar
13213     */
13214    EAPI void                    elm_toolbar_icon_size_set(Evas_Object *obj, int icon_size) EINA_ARG_NONNULL(1);
13215
13216    /**
13217     * Get the icon size, in pixels, to be used by toolbar items.
13218     *
13219     * @param obj The toolbar object.
13220     * @return The icon size in pixels.
13221     *
13222     * @see elm_toolbar_icon_size_set() for details.
13223     *
13224     * @ingroup Toolbar
13225     */
13226    EAPI int                     elm_toolbar_icon_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13227
13228    /**
13229     * Sets icon lookup order, for toolbar items' icons.
13230     *
13231     * @param obj The toolbar object.
13232     * @param order The icon lookup order.
13233     *
13234     * Icons added before calling this function will not be affected.
13235     * The default lookup order is #ELM_ICON_LOOKUP_THEME_FDO.
13236     *
13237     * @see elm_toolbar_icon_order_lookup_get()
13238     *
13239     * @ingroup Toolbar
13240     */
13241    EAPI void                    elm_toolbar_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
13242
13243    /**
13244     * Gets the icon lookup order.
13245     *
13246     * @param obj The toolbar object.
13247     * @return The icon lookup order.
13248     *
13249     * @see elm_toolbar_icon_order_lookup_set() for details.
13250     *
13251     * @ingroup Toolbar
13252     */
13253    EAPI Elm_Icon_Lookup_Order   elm_toolbar_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13254
13255    /**
13256     * Set whether the toolbar items' should be selected by the user or not.
13257     *
13258     * @param obj The toolbar object.
13259     * @param wrap @c EINA_TRUE to disable selection or @c EINA_FALSE to
13260     * enable it.
13261     *
13262     * This will turn off the ability to select items entirely and they will
13263     * neither appear selected nor emit selected signals. The clicked
13264     * callback function will still be called.
13265     *
13266     * Selection is enabled by default.
13267     *
13268     * @see elm_toolbar_no_select_mode_get().
13269     *
13270     * @ingroup Toolbar
13271     */
13272    EAPI void                    elm_toolbar_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
13273
13274    /**
13275     * Set whether the toolbar items' should be selected by the user or not.
13276     *
13277     * @param obj The toolbar object.
13278     * @return @c EINA_TRUE means items can be selected. @c EINA_FALSE indicates
13279     * they can't. If @p obj is @c NULL, @c EINA_FALSE is returned.
13280     *
13281     * @see elm_toolbar_no_select_mode_set() for details.
13282     *
13283     * @ingroup Toolbar
13284     */
13285    EAPI Eina_Bool               elm_toolbar_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13286
13287    /**
13288     * Append item to the toolbar.
13289     *
13290     * @param obj The toolbar object.
13291     * @param icon A string with icon name or the absolute path of an image file.
13292     * @param label The label of the item.
13293     * @param func The function to call when the item is clicked.
13294     * @param data The data to associate with the item for related callbacks.
13295     * @return The created item or @c NULL upon failure.
13296     *
13297     * A new item will be created and appended to the toolbar, i.e., will
13298     * be set as @b last item.
13299     *
13300     * Items created with this method can be deleted with
13301     * elm_toolbar_item_del().
13302     *
13303     * Associated @p data can be properly freed when item is deleted if a
13304     * callback function is set with elm_toolbar_item_del_cb_set().
13305     *
13306     * If a function is passed as argument, it will be called everytime this item
13307     * is selected, i.e., the user clicks over an unselected item.
13308     * If such function isn't needed, just passing
13309     * @c NULL as @p func is enough. The same should be done for @p data.
13310     *
13311     * Toolbar will load icon image from fdo or current theme.
13312     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
13313     * If an absolute path is provided it will load it direct from a file.
13314     *
13315     * @see elm_toolbar_item_icon_set()
13316     * @see elm_toolbar_item_del()
13317     * @see elm_toolbar_item_del_cb_set()
13318     *
13319     * @ingroup Toolbar
13320     */
13321    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);
13322
13323    /**
13324     * Prepend item to the toolbar.
13325     *
13326     * @param obj The toolbar object.
13327     * @param icon A string with icon name or the absolute path of an image file.
13328     * @param label The label of the item.
13329     * @param func The function to call when the item is clicked.
13330     * @param data The data to associate with the item for related callbacks.
13331     * @return The created item or @c NULL upon failure.
13332     *
13333     * A new item will be created and prepended to the toolbar, i.e., will
13334     * be set as @b first item.
13335     *
13336     * Items created with this method can be deleted with
13337     * elm_toolbar_item_del().
13338     *
13339     * Associated @p data can be properly freed when item is deleted if a
13340     * callback function is set with elm_toolbar_item_del_cb_set().
13341     *
13342     * If a function is passed as argument, it will be called everytime this item
13343     * is selected, i.e., the user clicks over an unselected item.
13344     * If such function isn't needed, just passing
13345     * @c NULL as @p func is enough. The same should be done for @p data.
13346     *
13347     * Toolbar will load icon image from fdo or current theme.
13348     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
13349     * If an absolute path is provided it will load it direct from a file.
13350     *
13351     * @see elm_toolbar_item_icon_set()
13352     * @see elm_toolbar_item_del()
13353     * @see elm_toolbar_item_del_cb_set()
13354     *
13355     * @ingroup Toolbar
13356     */
13357    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);
13358
13359    /**
13360     * Insert a new item into the toolbar object before item @p before.
13361     *
13362     * @param obj The toolbar object.
13363     * @param before The toolbar item to insert before.
13364     * @param icon A string with icon name or the absolute path of an image file.
13365     * @param label The label of the item.
13366     * @param func The function to call when the item is clicked.
13367     * @param data The data to associate with the item for related callbacks.
13368     * @return The created item or @c NULL upon failure.
13369     *
13370     * A new item will be created and added to the toolbar. Its position in
13371     * this toolbar will be just before item @p before.
13372     *
13373     * Items created with this method can be deleted with
13374     * elm_toolbar_item_del().
13375     *
13376     * Associated @p data can be properly freed when item is deleted if a
13377     * callback function is set with elm_toolbar_item_del_cb_set().
13378     *
13379     * If a function is passed as argument, it will be called everytime this item
13380     * is selected, i.e., the user clicks over an unselected item.
13381     * If such function isn't needed, just passing
13382     * @c NULL as @p func is enough. The same should be done for @p data.
13383     *
13384     * Toolbar will load icon image from fdo or current theme.
13385     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
13386     * If an absolute path is provided it will load it direct from a file.
13387     *
13388     * @see elm_toolbar_item_icon_set()
13389     * @see elm_toolbar_item_del()
13390     * @see elm_toolbar_item_del_cb_set()
13391     *
13392     * @ingroup Toolbar
13393     */
13394    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);
13395
13396    /**
13397     * Insert a new item into the toolbar object after item @p after.
13398     *
13399     * @param obj The toolbar object.
13400     * @param before The toolbar item to insert before.
13401     * @param icon A string with icon name or the absolute path of an image file.
13402     * @param label The label of the item.
13403     * @param func The function to call when the item is clicked.
13404     * @param data The data to associate with the item for related callbacks.
13405     * @return The created item or @c NULL upon failure.
13406     *
13407     * A new item will be created and added to the toolbar. Its position in
13408     * this toolbar will be just after item @p after.
13409     *
13410     * Items created with this method can be deleted with
13411     * elm_toolbar_item_del().
13412     *
13413     * Associated @p data can be properly freed when item is deleted if a
13414     * callback function is set with elm_toolbar_item_del_cb_set().
13415     *
13416     * If a function is passed as argument, it will be called everytime this item
13417     * is selected, i.e., the user clicks over an unselected item.
13418     * If such function isn't needed, just passing
13419     * @c NULL as @p func is enough. The same should be done for @p data.
13420     *
13421     * Toolbar will load icon image from fdo or current theme.
13422     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
13423     * If an absolute path is provided it will load it direct from a file.
13424     *
13425     * @see elm_toolbar_item_icon_set()
13426     * @see elm_toolbar_item_del()
13427     * @see elm_toolbar_item_del_cb_set()
13428     *
13429     * @ingroup Toolbar
13430     */
13431    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);
13432
13433    /**
13434     * Get the first item in the given toolbar widget's list of
13435     * items.
13436     *
13437     * @param obj The toolbar object
13438     * @return The first item or @c NULL, if it has no items (and on
13439     * errors)
13440     *
13441     * @see elm_toolbar_item_append()
13442     * @see elm_toolbar_last_item_get()
13443     *
13444     * @ingroup Toolbar
13445     */
13446    EAPI Elm_Toolbar_Item       *elm_toolbar_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13447
13448    /**
13449     * Get the last item in the given toolbar widget's list of
13450     * items.
13451     *
13452     * @param obj The toolbar object
13453     * @return The last item or @c NULL, if it has no items (and on
13454     * errors)
13455     *
13456     * @see elm_toolbar_item_prepend()
13457     * @see elm_toolbar_first_item_get()
13458     *
13459     * @ingroup Toolbar
13460     */
13461    EAPI Elm_Toolbar_Item       *elm_toolbar_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13462
13463    /**
13464     * Get the item after @p item in toolbar.
13465     *
13466     * @param item The toolbar item.
13467     * @return The item after @p item, or @c NULL if none or on failure.
13468     *
13469     * @note If it is the last item, @c NULL will be returned.
13470     *
13471     * @see elm_toolbar_item_append()
13472     *
13473     * @ingroup Toolbar
13474     */
13475    EAPI Elm_Toolbar_Item       *elm_toolbar_item_next_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13476
13477    /**
13478     * Get the item before @p item in toolbar.
13479     *
13480     * @param item The toolbar item.
13481     * @return The item before @p item, or @c NULL if none or on failure.
13482     *
13483     * @note If it is the first item, @c NULL will be returned.
13484     *
13485     * @see elm_toolbar_item_prepend()
13486     *
13487     * @ingroup Toolbar
13488     */
13489    EAPI Elm_Toolbar_Item       *elm_toolbar_item_prev_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13490
13491    /**
13492     * Get the toolbar object from an item.
13493     *
13494     * @param item The item.
13495     * @return The toolbar object.
13496     *
13497     * This returns the toolbar object itself that an item belongs to.
13498     *
13499     * @ingroup Toolbar
13500     */
13501    EAPI Evas_Object            *elm_toolbar_item_toolbar_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13502
13503    /**
13504     * Set the priority of a toolbar item.
13505     *
13506     * @param item The toolbar item.
13507     * @param priority The item priority. The default is zero.
13508     *
13509     * This is used only when the toolbar shrink mode is set to
13510     * #ELM_TOOLBAR_SHRINK_MENU or #ELM_TOOLBAR_SHRINK_HIDE.
13511     * When space is less than required, items with low priority
13512     * will be removed from the toolbar and added to a dynamically-created menu,
13513     * while items with higher priority will remain on the toolbar,
13514     * with the same order they were added.
13515     *
13516     * @see elm_toolbar_item_priority_get()
13517     *
13518     * @ingroup Toolbar
13519     */
13520    EAPI void                    elm_toolbar_item_priority_set(Elm_Toolbar_Item *item, int priority) EINA_ARG_NONNULL(1);
13521
13522    /**
13523     * Get the priority of a toolbar item.
13524     *
13525     * @param item The toolbar item.
13526     * @return The @p item priority, or @c 0 on failure.
13527     *
13528     * @see elm_toolbar_item_priority_set() for details.
13529     *
13530     * @ingroup Toolbar
13531     */
13532    EAPI int                     elm_toolbar_item_priority_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13533
13534    /**
13535     * Get the label of item.
13536     *
13537     * @param item The item of toolbar.
13538     * @return The label of item.
13539     *
13540     * The return value is a pointer to the label associated to @p item when
13541     * it was created, with function elm_toolbar_item_append() or similar,
13542     * or later,
13543     * with function elm_toolbar_item_label_set. If no label
13544     * was passed as argument, it will return @c NULL.
13545     *
13546     * @see elm_toolbar_item_label_set() for more details.
13547     * @see elm_toolbar_item_append()
13548     *
13549     * @ingroup Toolbar
13550     */
13551    EAPI const char             *elm_toolbar_item_label_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13552
13553    /**
13554     * Set the label of item.
13555     *
13556     * @param item The item of toolbar.
13557     * @param text The label of item.
13558     *
13559     * The label to be displayed by the item.
13560     * Label will be placed at icons bottom (if set).
13561     *
13562     * If a label was passed as argument on item creation, with function
13563     * elm_toolbar_item_append() or similar, it will be already
13564     * displayed by the item.
13565     *
13566     * @see elm_toolbar_item_label_get()
13567     * @see elm_toolbar_item_append()
13568     *
13569     * @ingroup Toolbar
13570     */
13571    EAPI void                    elm_toolbar_item_label_set(Elm_Toolbar_Item *item, const char *label) EINA_ARG_NONNULL(1);
13572
13573    /**
13574     * Return the data associated with a given toolbar widget item.
13575     *
13576     * @param item The toolbar widget item handle.
13577     * @return The data associated with @p item.
13578     *
13579     * @see elm_toolbar_item_data_set()
13580     *
13581     * @ingroup Toolbar
13582     */
13583    EAPI void                   *elm_toolbar_item_data_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13584
13585    /**
13586     * Set the data associated with a given toolbar widget item.
13587     *
13588     * @param item The toolbar widget item handle.
13589     * @param data The new data pointer to set to @p item.
13590     *
13591     * This sets new item data on @p item.
13592     *
13593     * @warning The old data pointer won't be touched by this function, so
13594     * the user had better to free that old data himself/herself.
13595     *
13596     * @ingroup Toolbar
13597     */
13598    EAPI void                    elm_toolbar_item_data_set(Elm_Toolbar_Item *item, const void *data) EINA_ARG_NONNULL(1);
13599
13600    /**
13601     * Returns a pointer to a toolbar item by its label.
13602     *
13603     * @param obj The toolbar object.
13604     * @param label The label of the item to find.
13605     *
13606     * @return The pointer to the toolbar item matching @p label or @c NULL
13607     * on failure.
13608     *
13609     * @ingroup Toolbar
13610     */
13611    EAPI Elm_Toolbar_Item       *elm_toolbar_item_find_by_label(const Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
13612
13613    /*
13614     * Get whether the @p item is selected or not.
13615     *
13616     * @param item The toolbar item.
13617     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
13618     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
13619     *
13620     * @see elm_toolbar_selected_item_set() for details.
13621     * @see elm_toolbar_item_selected_get()
13622     *
13623     * @ingroup Toolbar
13624     */
13625    EAPI Eina_Bool               elm_toolbar_item_selected_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13626
13627    /**
13628     * Set the selected state of an item.
13629     *
13630     * @param item The toolbar item
13631     * @param selected The selected state
13632     *
13633     * This sets the selected state of the given item @p it.
13634     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
13635     *
13636     * If a new item is selected the previosly selected will be unselected.
13637     * Previoulsy selected item can be get with function
13638     * elm_toolbar_selected_item_get().
13639     *
13640     * Selected items will be highlighted.
13641     *
13642     * @see elm_toolbar_item_selected_get()
13643     * @see elm_toolbar_selected_item_get()
13644     *
13645     * @ingroup Toolbar
13646     */
13647    EAPI void                    elm_toolbar_item_selected_set(Elm_Toolbar_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
13648
13649    /**
13650     * Get the selected item.
13651     *
13652     * @param obj The toolbar object.
13653     * @return The selected toolbar item.
13654     *
13655     * The selected item can be unselected with function
13656     * elm_toolbar_item_selected_set().
13657     *
13658     * The selected item always will be highlighted on toolbar.
13659     *
13660     * @see elm_toolbar_selected_items_get()
13661     *
13662     * @ingroup Toolbar
13663     */
13664    EAPI Elm_Toolbar_Item       *elm_toolbar_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13665
13666    /**
13667     * Set the icon associated with @p item.
13668     *
13669     * @param obj The parent of this item.
13670     * @param item The toolbar item.
13671     * @param icon A string with icon name or the absolute path of an image file.
13672     *
13673     * Toolbar will load icon image from fdo or current theme.
13674     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
13675     * If an absolute path is provided it will load it direct from a file.
13676     *
13677     * @see elm_toolbar_icon_order_lookup_set()
13678     * @see elm_toolbar_icon_order_lookup_get()
13679     *
13680     * @ingroup Toolbar
13681     */
13682    EAPI void                    elm_toolbar_item_icon_set(Elm_Toolbar_Item *item, const char *icon) EINA_ARG_NONNULL(1);
13683
13684    /**
13685     * Get the string used to set the icon of @p item.
13686     *
13687     * @param item The toolbar item.
13688     * @return The string associated with the icon object.
13689     *
13690     * @see elm_toolbar_item_icon_set() for details.
13691     *
13692     * @ingroup Toolbar
13693     */
13694    EAPI const char             *elm_toolbar_item_icon_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13695
13696    /**
13697     * Set the icon associated with @p item to an image in a binary buffer.
13698     *
13699     * @param item The toolbar item.
13700     * @param img The binary data that will be used as an image
13701     * @param size The size of binary data @p img
13702     * @param format Optional format of @p img to pass to the image loader
13703     * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
13704     *
13705     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
13706     *
13707     * @note The icon image set by this function can be changed by
13708     * elm_toolbar_item_icon_set().
13709     * 
13710     * @ingroup Toolbar
13711     */
13712    EAPI Eina_Bool elm_toolbar_item_icon_memfile_set(Elm_Toolbar_Item *item, const void *img, size_t size, const char *format, const char *key) EINA_ARG_NONNULL(1);
13713
13714    /**
13715     * Delete them item from the toolbar.
13716     *
13717     * @param item The item of toolbar to be deleted.
13718     *
13719     * @see elm_toolbar_item_append()
13720     * @see elm_toolbar_item_del_cb_set()
13721     *
13722     * @ingroup Toolbar
13723     */
13724    EAPI void                    elm_toolbar_item_del(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13725
13726    /**
13727     * Set the function called when a toolbar item is freed.
13728     *
13729     * @param item The item to set the callback on.
13730     * @param func The function called.
13731     *
13732     * If there is a @p func, then it will be called prior item's memory release.
13733     * That will be called with the following arguments:
13734     * @li item's data;
13735     * @li item's Evas object;
13736     * @li item itself;
13737     *
13738     * This way, a data associated to a toolbar item could be properly freed.
13739     *
13740     * @ingroup Toolbar
13741     */
13742    EAPI void                    elm_toolbar_item_del_cb_set(Elm_Toolbar_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
13743
13744    /**
13745     * Get a value whether toolbar item is disabled or not.
13746     *
13747     * @param item The item.
13748     * @return The disabled state.
13749     *
13750     * @see elm_toolbar_item_disabled_set() for more details.
13751     *
13752     * @ingroup Toolbar
13753     */
13754    EAPI Eina_Bool               elm_toolbar_item_disabled_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13755
13756    /**
13757     * Sets the disabled/enabled state of a toolbar item.
13758     *
13759     * @param item The item.
13760     * @param disabled The disabled state.
13761     *
13762     * A disabled item cannot be selected or unselected. It will also
13763     * change its appearance (generally greyed out). This sets the
13764     * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
13765     * enabled).
13766     *
13767     * @ingroup Toolbar
13768     */
13769    EAPI void                    elm_toolbar_item_disabled_set(Elm_Toolbar_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
13770
13771    /**
13772     * Set or unset item as a separator.
13773     *
13774     * @param item The toolbar item.
13775     * @param setting @c EINA_TRUE to set item @p item as separator or
13776     * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
13777     *
13778     * Items aren't set as separator by default.
13779     *
13780     * If set as separator it will display separator theme, so won't display
13781     * icons or label.
13782     *
13783     * @see elm_toolbar_item_separator_get()
13784     *
13785     * @ingroup Toolbar
13786     */
13787    EAPI void                    elm_toolbar_item_separator_set(Elm_Toolbar_Item *item, Eina_Bool separator) EINA_ARG_NONNULL(1);
13788
13789    /**
13790     * Get a value whether item is a separator or not.
13791     *
13792     * @param item The toolbar item.
13793     * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
13794     * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
13795     *
13796     * @see elm_toolbar_item_separator_set() for details.
13797     *
13798     * @ingroup Toolbar
13799     */
13800    EAPI Eina_Bool               elm_toolbar_item_separator_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13801
13802    /**
13803     * Set the shrink state of toolbar @p obj.
13804     *
13805     * @param obj The toolbar object.
13806     * @param shrink_mode Toolbar's items display behavior.
13807     *
13808     * The toolbar won't scroll if #ELM_TOOLBAR_SHRINK_NONE,
13809     * but will enforce a minimun size so all the items will fit, won't scroll
13810     * and won't show the items that don't fit if #ELM_TOOLBAR_SHRINK_HIDE,
13811     * will scroll if #ELM_TOOLBAR_SHRINK_SCROLL, and will create a button to
13812     * pop up excess elements with #ELM_TOOLBAR_SHRINK_MENU.
13813     *
13814     * @ingroup Toolbar
13815     */
13816    EAPI void                    elm_toolbar_mode_shrink_set(Evas_Object *obj, Elm_Toolbar_Shrink_Mode shrink_mode) EINA_ARG_NONNULL(1);
13817
13818    /**
13819     * Get the shrink mode of toolbar @p obj.
13820     *
13821     * @param obj The toolbar object.
13822     * @return Toolbar's items display behavior.
13823     *
13824     * @see elm_toolbar_mode_shrink_set() for details.
13825     *
13826     * @ingroup Toolbar
13827     */
13828    EAPI Elm_Toolbar_Shrink_Mode elm_toolbar_mode_shrink_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13829
13830    /**
13831     * Enable/disable homogenous mode.
13832     *
13833     * @param obj The toolbar object
13834     * @param homogeneous Assume the items within the toolbar are of the
13835     * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
13836     *
13837     * This will enable the homogeneous mode where items are of the same size.
13838     * @see elm_toolbar_homogeneous_get()
13839     *
13840     * @ingroup Toolbar
13841     */
13842    EAPI void                    elm_toolbar_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
13843
13844    /**
13845     * Get whether the homogenous mode is enabled.
13846     *
13847     * @param obj The toolbar object.
13848     * @return Assume the items within the toolbar are of the same height
13849     * and width (EINA_TRUE = on, EINA_FALSE = off).
13850     *
13851     * @see elm_toolbar_homogeneous_set()
13852     *
13853     * @ingroup Toolbar
13854     */
13855    EAPI Eina_Bool               elm_toolbar_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13856
13857    /**
13858     * Enable/disable homogenous mode.
13859     *
13860     * @param obj The toolbar object
13861     * @param homogeneous Assume the items within the toolbar are of the
13862     * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
13863     *
13864     * This will enable the homogeneous mode where items are of the same size.
13865     * @see elm_toolbar_homogeneous_get()
13866     *
13867     * @deprecated use elm_toolbar_homogeneous_set() instead.
13868     *
13869     * @ingroup Toolbar
13870     */
13871    EINA_DEPRECATED EAPI void    elm_toolbar_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
13872
13873    /**
13874     * Get whether the homogenous mode is enabled.
13875     *
13876     * @param obj The toolbar object.
13877     * @return Assume the items within the toolbar are of the same height
13878     * and width (EINA_TRUE = on, EINA_FALSE = off).
13879     *
13880     * @see elm_toolbar_homogeneous_set()
13881     * @deprecated use elm_toolbar_homogeneous_get() instead.
13882     *
13883     * @ingroup Toolbar
13884     */
13885    EINA_DEPRECATED EAPI Eina_Bool elm_toolbar_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13886
13887    /**
13888     * Set the parent object of the toolbar items' menus.
13889     *
13890     * @param obj The toolbar object.
13891     * @param parent The parent of the menu objects.
13892     *
13893     * Each item can be set as item menu, with elm_toolbar_item_menu_set().
13894     *
13895     * For more details about setting the parent for toolbar menus, see
13896     * elm_menu_parent_set().
13897     *
13898     * @see elm_menu_parent_set() for details.
13899     * @see elm_toolbar_item_menu_set() for details.
13900     *
13901     * @ingroup Toolbar
13902     */
13903    EAPI void                    elm_toolbar_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
13904
13905    /**
13906     * Get the parent object of the toolbar items' menus.
13907     *
13908     * @param obj The toolbar object.
13909     * @return The parent of the menu objects.
13910     *
13911     * @see elm_toolbar_menu_parent_set() for details.
13912     *
13913     * @ingroup Toolbar
13914     */
13915    EAPI Evas_Object            *elm_toolbar_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13916
13917    /**
13918     * Set the alignment of the items.
13919     *
13920     * @param obj The toolbar object.
13921     * @param align The new alignment, a float between <tt> 0.0 </tt>
13922     * and <tt> 1.0 </tt>.
13923     *
13924     * Alignment of toolbar items, from <tt> 0.0 </tt> to indicates to align
13925     * left, to <tt> 1.0 </tt>, to align to right. <tt> 0.5 </tt> centralize
13926     * items.
13927     *
13928     * Centered items by default.
13929     *
13930     * @see elm_toolbar_align_get()
13931     *
13932     * @ingroup Toolbar
13933     */
13934    EAPI void                    elm_toolbar_align_set(Evas_Object *obj, double align) EINA_ARG_NONNULL(1);
13935
13936    /**
13937     * Get the alignment of the items.
13938     *
13939     * @param obj The toolbar object.
13940     * @return toolbar items alignment, a float between <tt> 0.0 </tt> and
13941     * <tt> 1.0 </tt>.
13942     *
13943     * @see elm_toolbar_align_set() for details.
13944     *
13945     * @ingroup Toolbar
13946     */
13947    EAPI double                  elm_toolbar_align_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13948
13949    /**
13950     * Set whether the toolbar item opens a menu.
13951     *
13952     * @param item The toolbar item.
13953     * @param menu If @c EINA_TRUE, @p item will opens a menu when selected.
13954     *
13955     * A toolbar item can be set to be a menu, using this function.
13956     *
13957     * Once it is set to be a menu, it can be manipulated through the
13958     * menu-like function elm_toolbar_menu_parent_set() and the other
13959     * elm_menu functions, using the Evas_Object @c menu returned by
13960     * elm_toolbar_item_menu_get().
13961     *
13962     * So, items to be displayed in this item's menu should be added with
13963     * elm_menu_item_add().
13964     *
13965     * The following code exemplifies the most basic usage:
13966     * @code
13967     * tb = elm_toolbar_add(win)
13968     * item = elm_toolbar_item_append(tb, "refresh", "Menu", NULL, NULL);
13969     * elm_toolbar_item_menu_set(item, EINA_TRUE);
13970     * elm_toolbar_menu_parent_set(tb, win);
13971     * menu = elm_toolbar_item_menu_get(item);
13972     * elm_menu_item_add(menu, NULL, "edit-cut", "Cut", NULL, NULL);
13973     * menu_item = elm_menu_item_add(menu, NULL, "edit-copy", "Copy", NULL,
13974     * NULL);
13975     * @endcode
13976     *
13977     * @see elm_toolbar_item_menu_get()
13978     *
13979     * @ingroup Toolbar
13980     */
13981    EAPI void                    elm_toolbar_item_menu_set(Elm_Toolbar_Item *item, Eina_Bool menu) EINA_ARG_NONNULL(1);
13982
13983    /**
13984     * Get toolbar item's menu.
13985     *
13986     * @param item The toolbar item.
13987     * @return Item's menu object or @c NULL on failure.
13988     *
13989     * If @p item wasn't set as menu item with elm_toolbar_item_menu_set(),
13990     * this function will set it.
13991     *
13992     * @see elm_toolbar_item_menu_set() for details.
13993     *
13994     * @ingroup Toolbar
13995     */
13996    EAPI Evas_Object            *elm_toolbar_item_menu_get(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13997
13998    /**
13999     * Add a new state to @p item.
14000     *
14001     * @param item The item.
14002     * @param icon A string with icon name or the absolute path of an image file.
14003     * @param label The label of the new state.
14004     * @param func The function to call when the item is clicked when this
14005     * state is selected.
14006     * @param data The data to associate with the state.
14007     * @return The toolbar item state, or @c NULL upon failure.
14008     *
14009     * Toolbar will load icon image from fdo or current theme.
14010     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14011     * If an absolute path is provided it will load it direct from a file.
14012     *
14013     * States created with this function can be removed with
14014     * elm_toolbar_item_state_del().
14015     *
14016     * @see elm_toolbar_item_state_del()
14017     * @see elm_toolbar_item_state_sel()
14018     * @see elm_toolbar_item_state_get()
14019     *
14020     * @ingroup Toolbar
14021     */
14022    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);
14023
14024    /**
14025     * Delete a previoulsy added state to @p item.
14026     *
14027     * @param item The toolbar item.
14028     * @param state The state to be deleted.
14029     * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
14030     *
14031     * @see elm_toolbar_item_state_add()
14032     */
14033    EAPI Eina_Bool               elm_toolbar_item_state_del(Elm_Toolbar_Item *item, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
14034
14035    /**
14036     * Set @p state as the current state of @p it.
14037     *
14038     * @param it The item.
14039     * @param state The state to use.
14040     * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
14041     *
14042     * If @p state is @c NULL, it won't select any state and the default item's
14043     * icon and label will be used. It's the same behaviour than
14044     * elm_toolbar_item_state_unser().
14045     *
14046     * @see elm_toolbar_item_state_unset()
14047     *
14048     * @ingroup Toolbar
14049     */
14050    EAPI Eina_Bool               elm_toolbar_item_state_set(Elm_Toolbar_Item *it, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
14051
14052    /**
14053     * Unset the state of @p it.
14054     *
14055     * @param it The item.
14056     *
14057     * The default icon and label from this item will be displayed.
14058     *
14059     * @see elm_toolbar_item_state_set() for more details.
14060     *
14061     * @ingroup Toolbar
14062     */
14063    EAPI void                    elm_toolbar_item_state_unset(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
14064
14065    /**
14066     * Get the current state of @p it.
14067     *
14068     * @param item The item.
14069     * @return The selected state or @c NULL if none is selected or on failure.
14070     *
14071     * @see elm_toolbar_item_state_set() for details.
14072     * @see elm_toolbar_item_state_unset()
14073     * @see elm_toolbar_item_state_add()
14074     *
14075     * @ingroup Toolbar
14076     */
14077    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_get(const Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
14078
14079    /**
14080     * Get the state after selected state in toolbar's @p item.
14081     *
14082     * @param it The toolbar item to change state.
14083     * @return The state after current state, or @c NULL on failure.
14084     *
14085     * If last state is selected, this function will return first state.
14086     *
14087     * @see elm_toolbar_item_state_set()
14088     * @see elm_toolbar_item_state_add()
14089     *
14090     * @ingroup Toolbar
14091     */
14092    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_next(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
14093
14094    /**
14095     * Get the state before selected state in toolbar's @p item.
14096     *
14097     * @param it The toolbar item to change state.
14098     * @return The state before current state, or @c NULL on failure.
14099     *
14100     * If first state is selected, this function will return last state.
14101     *
14102     * @see elm_toolbar_item_state_set()
14103     * @see elm_toolbar_item_state_add()
14104     *
14105     * @ingroup Toolbar
14106     */
14107    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_prev(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
14108
14109    /**
14110     * Set the text to be shown in a given toolbar item's tooltips.
14111     *
14112     * @param item Target item.
14113     * @param text The text to set in the content.
14114     *
14115     * Setup the text as tooltip to object. The item can have only one tooltip,
14116     * so any previous tooltip data - set with this function or
14117     * elm_toolbar_item_tooltip_content_cb_set() - is removed.
14118     *
14119     * @see elm_object_tooltip_text_set() for more details.
14120     *
14121     * @ingroup Toolbar
14122     */
14123    EAPI void             elm_toolbar_item_tooltip_text_set(Elm_Toolbar_Item *item, const char *text) EINA_ARG_NONNULL(1);
14124
14125    /**
14126     * Set the content to be shown in the tooltip item.
14127     *
14128     * Setup the tooltip to item. The item can have only one tooltip,
14129     * so any previous tooltip data is removed. @p func(with @p data) will
14130     * be called every time that need show the tooltip and it should
14131     * return a valid Evas_Object. This object is then managed fully by
14132     * tooltip system and is deleted when the tooltip is gone.
14133     *
14134     * @param item the toolbar item being attached a tooltip.
14135     * @param func the function used to create the tooltip contents.
14136     * @param data what to provide to @a func as callback data/context.
14137     * @param del_cb called when data is not needed anymore, either when
14138     *        another callback replaces @a func, the tooltip is unset with
14139     *        elm_toolbar_item_tooltip_unset() or the owner @a item
14140     *        dies. This callback receives as the first parameter the
14141     *        given @a data, and @c event_info is the item.
14142     *
14143     * @see elm_object_tooltip_content_cb_set() for more details.
14144     *
14145     * @ingroup Toolbar
14146     */
14147    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);
14148
14149    /**
14150     * Unset tooltip from item.
14151     *
14152     * @param item toolbar item to remove previously set tooltip.
14153     *
14154     * Remove tooltip from item. The callback provided as del_cb to
14155     * elm_toolbar_item_tooltip_content_cb_set() will be called to notify
14156     * it is not used anymore.
14157     *
14158     * @see elm_object_tooltip_unset() for more details.
14159     * @see elm_toolbar_item_tooltip_content_cb_set()
14160     *
14161     * @ingroup Toolbar
14162     */
14163    EAPI void             elm_toolbar_item_tooltip_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14164
14165    /**
14166     * Sets a different style for this item tooltip.
14167     *
14168     * @note before you set a style you should define a tooltip with
14169     *       elm_toolbar_item_tooltip_content_cb_set() or
14170     *       elm_toolbar_item_tooltip_text_set()
14171     *
14172     * @param item toolbar item with tooltip already set.
14173     * @param style the theme style to use (default, transparent, ...)
14174     *
14175     * @see elm_object_tooltip_style_set() for more details.
14176     *
14177     * @ingroup Toolbar
14178     */
14179    EAPI void             elm_toolbar_item_tooltip_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
14180
14181    /**
14182     * Get the style for this item tooltip.
14183     *
14184     * @param item toolbar item with tooltip already set.
14185     * @return style the theme style in use, defaults to "default". If the
14186     *         object does not have a tooltip set, then NULL is returned.
14187     *
14188     * @see elm_object_tooltip_style_get() for more details.
14189     * @see elm_toolbar_item_tooltip_style_set()
14190     *
14191     * @ingroup Toolbar
14192     */
14193    EAPI const char      *elm_toolbar_item_tooltip_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14194
14195    /**
14196     * Set the type of mouse pointer/cursor decoration to be shown,
14197     * when the mouse pointer is over the given toolbar widget item
14198     *
14199     * @param item toolbar item to customize cursor on
14200     * @param cursor the cursor type's name
14201     *
14202     * This function works analogously as elm_object_cursor_set(), but
14203     * here the cursor's changing area is restricted to the item's
14204     * area, and not the whole widget's. Note that that item cursors
14205     * have precedence over widget cursors, so that a mouse over an
14206     * item with custom cursor set will always show @b that cursor.
14207     *
14208     * If this function is called twice for an object, a previously set
14209     * cursor will be unset on the second call.
14210     *
14211     * @see elm_object_cursor_set()
14212     * @see elm_toolbar_item_cursor_get()
14213     * @see elm_toolbar_item_cursor_unset()
14214     *
14215     * @ingroup Toolbar
14216     */
14217    EAPI void             elm_toolbar_item_cursor_set(Elm_Toolbar_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
14218
14219    /*
14220     * Get the type of mouse pointer/cursor decoration set to be shown,
14221     * when the mouse pointer is over the given toolbar widget item
14222     *
14223     * @param item toolbar item with custom cursor set
14224     * @return the cursor type's name or @c NULL, if no custom cursors
14225     * were set to @p item (and on errors)
14226     *
14227     * @see elm_object_cursor_get()
14228     * @see elm_toolbar_item_cursor_set()
14229     * @see elm_toolbar_item_cursor_unset()
14230     *
14231     * @ingroup Toolbar
14232     */
14233    EAPI const char      *elm_toolbar_item_cursor_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14234
14235    /**
14236     * Unset any custom mouse pointer/cursor decoration set to be
14237     * shown, when the mouse pointer is over the given toolbar widget
14238     * item, thus making it show the @b default cursor again.
14239     *
14240     * @param item a toolbar item
14241     *
14242     * Use this call to undo any custom settings on this item's cursor
14243     * decoration, bringing it back to defaults (no custom style set).
14244     *
14245     * @see elm_object_cursor_unset()
14246     * @see elm_toolbar_item_cursor_set()
14247     *
14248     * @ingroup Toolbar
14249     */
14250    EAPI void             elm_toolbar_item_cursor_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14251
14252    /**
14253     * Set a different @b style for a given custom cursor set for a
14254     * toolbar item.
14255     *
14256     * @param item toolbar item with custom cursor set
14257     * @param style the <b>theme style</b> to use (e.g. @c "default",
14258     * @c "transparent", etc)
14259     *
14260     * This function only makes sense when one is using custom mouse
14261     * cursor decorations <b>defined in a theme file</b>, which can have,
14262     * given a cursor name/type, <b>alternate styles</b> on it. It
14263     * works analogously as elm_object_cursor_style_set(), but here
14264     * applyed only to toolbar item objects.
14265     *
14266     * @warning Before you set a cursor style you should have definen a
14267     *       custom cursor previously on the item, with
14268     *       elm_toolbar_item_cursor_set()
14269     *
14270     * @see elm_toolbar_item_cursor_engine_only_set()
14271     * @see elm_toolbar_item_cursor_style_get()
14272     *
14273     * @ingroup Toolbar
14274     */
14275    EAPI void             elm_toolbar_item_cursor_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
14276
14277    /**
14278     * Get the current @b style set for a given toolbar item's custom
14279     * cursor
14280     *
14281     * @param item toolbar item with custom cursor set.
14282     * @return style the cursor style in use. If the object does not
14283     *         have a cursor set, then @c NULL is returned.
14284     *
14285     * @see elm_toolbar_item_cursor_style_set() for more details
14286     *
14287     * @ingroup Toolbar
14288     */
14289    EAPI const char      *elm_toolbar_item_cursor_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14290
14291    /**
14292     * Set if the (custom)cursor for a given toolbar item should be
14293     * searched in its theme, also, or should only rely on the
14294     * rendering engine.
14295     *
14296     * @param item item with custom (custom) cursor already set on
14297     * @param engine_only Use @c EINA_TRUE to have cursors looked for
14298     * only on those provided by the rendering engine, @c EINA_FALSE to
14299     * have them searched on the widget's theme, as well.
14300     *
14301     * @note This call is of use only if you've set a custom cursor
14302     * for toolbar items, with elm_toolbar_item_cursor_set().
14303     *
14304     * @note By default, cursors will only be looked for between those
14305     * provided by the rendering engine.
14306     *
14307     * @ingroup Toolbar
14308     */
14309    EAPI void             elm_toolbar_item_cursor_engine_only_set(Elm_Toolbar_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
14310
14311    /**
14312     * Get if the (custom) cursor for a given toolbar item is being
14313     * searched in its theme, also, or is only relying on the rendering
14314     * engine.
14315     *
14316     * @param item a toolbar item
14317     * @return @c EINA_TRUE, if cursors are being looked for only on
14318     * those provided by the rendering engine, @c EINA_FALSE if they
14319     * are being searched on the widget's theme, as well.
14320     *
14321     * @see elm_toolbar_item_cursor_engine_only_set(), for more details
14322     *
14323     * @ingroup Toolbar
14324     */
14325    EAPI Eina_Bool        elm_toolbar_item_cursor_engine_only_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14326
14327    /**
14328     * Change a toolbar's orientation
14329     * @param obj The toolbar object
14330     * @param vertical If @c EINA_TRUE, the toolbar is vertical
14331     * By default, a toolbar will be horizontal. Use this function to create a vertical toolbar.
14332     * @ingroup Toolbar
14333     */
14334    EAPI void             elm_toolbar_orientation_set(Evas_Object *obj, Eina_Bool vertical) EINA_ARG_NONNULL(1);
14335
14336    /**
14337     * Get a toolbar's orientation
14338     * @param obj The toolbar object
14339     * @return If @c EINA_TRUE, the toolbar is vertical
14340     * By default, a toolbar will be horizontal. Use this function to determine whether a toolbar is vertical.
14341     * @ingroup Toolbar
14342     */
14343    EAPI Eina_Bool        elm_toolbar_orientation_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
14344
14345    /**
14346     * @}
14347     */
14348
14349    /**
14350     * @defgroup Tooltips Tooltips
14351     *
14352     * The Tooltip is an (internal, for now) smart object used to show a
14353     * content in a frame on mouse hover of objects(or widgets), with
14354     * tips/information about them.
14355     *
14356     * @{
14357     */
14358
14359    EAPI double       elm_tooltip_delay_get(void);
14360    EAPI Eina_Bool    elm_tooltip_delay_set(double delay);
14361    EAPI void         elm_object_tooltip_show(Evas_Object *obj) EINA_ARG_NONNULL(1);
14362    EAPI void         elm_object_tooltip_hide(Evas_Object *obj) EINA_ARG_NONNULL(1);
14363    EAPI void         elm_object_tooltip_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1, 2);
14364    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);
14365    EAPI void         elm_object_tooltip_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
14366    EAPI void         elm_object_tooltip_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
14367    EAPI const char  *elm_object_tooltip_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14368    EAPI Eina_Bool    elm_tooltip_size_restrict_disable(Evas_Object *obj, Eina_Bool disable); EINA_ARG_NONNULL(1);
14369    EAPI Eina_Bool    elm_tooltip_size_restrict_disabled_get(const Evas_Object *obj); EINA_ARG_NONNULL(1);
14370
14371    /**
14372     * @}
14373     */
14374
14375    /**
14376     * @defgroup Cursors Cursors
14377     *
14378     * The Elementary cursor is an internal smart object used to
14379     * customize the mouse cursor displayed over objects (or
14380     * widgets). In the most common scenario, the cursor decoration
14381     * comes from the graphical @b engine Elementary is running
14382     * on. Those engines may provide different decorations for cursors,
14383     * and Elementary provides functions to choose them (think of X11
14384     * cursors, as an example).
14385     *
14386     * There's also the possibility of, besides using engine provided
14387     * cursors, also use ones coming from Edje theming files. Both
14388     * globally and per widget, Elementary makes it possible for one to
14389     * make the cursors lookup to be held on engines only or on
14390     * Elementary's theme file, too.
14391     *
14392     * @{
14393     */
14394
14395    /**
14396     * Set the cursor to be shown when mouse is over the object
14397     *
14398     * Set the cursor that will be displayed when mouse is over the
14399     * object. The object can have only one cursor set to it, so if
14400     * this function is called twice for an object, the previous set
14401     * will be unset.
14402     * If using X cursors, a definition of all the valid cursor names
14403     * is listed on Elementary_Cursors.h. If an invalid name is set
14404     * the default cursor will be used.
14405     *
14406     * @param obj the object being set a cursor.
14407     * @param cursor the cursor name to be used.
14408     *
14409     * @ingroup Cursors
14410     */
14411    EAPI void         elm_object_cursor_set(Evas_Object *obj, const char *cursor) EINA_ARG_NONNULL(1);
14412
14413    /**
14414     * Get the cursor to be shown when mouse is over the object
14415     *
14416     * @param obj an object with cursor already set.
14417     * @return the cursor name.
14418     *
14419     * @ingroup Cursors
14420     */
14421    EAPI const char  *elm_object_cursor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14422
14423    /**
14424     * Unset cursor for object
14425     *
14426     * Unset cursor for object, and set the cursor to default if the mouse
14427     * was over this object.
14428     *
14429     * @param obj Target object
14430     * @see elm_object_cursor_set()
14431     *
14432     * @ingroup Cursors
14433     */
14434    EAPI void         elm_object_cursor_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
14435
14436    /**
14437     * Sets a different style for this object cursor.
14438     *
14439     * @note before you set a style you should define a cursor with
14440     *       elm_object_cursor_set()
14441     *
14442     * @param obj an object with cursor already set.
14443     * @param style the theme style to use (default, transparent, ...)
14444     *
14445     * @ingroup Cursors
14446     */
14447    EAPI void         elm_object_cursor_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
14448
14449    /**
14450     * Get the style for this object cursor.
14451     *
14452     * @param obj an object with cursor already set.
14453     * @return style the theme style in use, defaults to "default". If the
14454     *         object does not have a cursor set, then NULL is returned.
14455     *
14456     * @ingroup Cursors
14457     */
14458    EAPI const char  *elm_object_cursor_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14459
14460    /**
14461     * Set if the cursor set should be searched on the theme or should use
14462     * the provided by the engine, only.
14463     *
14464     * @note before you set if should look on theme you should define a cursor
14465     * with elm_object_cursor_set(). By default it will only look for cursors
14466     * provided by the engine.
14467     *
14468     * @param obj an object with cursor already set.
14469     * @param engine_only boolean to define it cursors should be looked only
14470     * between the provided by the engine or searched on widget's theme as well.
14471     *
14472     * @ingroup Cursors
14473     */
14474    EAPI void         elm_object_cursor_engine_only_set(Evas_Object *obj, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
14475
14476    /**
14477     * Get the cursor engine only usage for this object cursor.
14478     *
14479     * @param obj an object with cursor already set.
14480     * @return engine_only boolean to define it cursors should be
14481     * looked only between the provided by the engine or searched on
14482     * widget's theme as well. If the object does not have a cursor
14483     * set, then EINA_FALSE is returned.
14484     *
14485     * @ingroup Cursors
14486     */
14487    EAPI Eina_Bool    elm_object_cursor_engine_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14488
14489    /**
14490     * Get the configured cursor engine only usage
14491     *
14492     * This gets the globally configured exclusive usage of engine cursors.
14493     *
14494     * @return 1 if only engine cursors should be used
14495     * @ingroup Cursors
14496     */
14497    EAPI int          elm_cursor_engine_only_get(void);
14498
14499    /**
14500     * Set the configured cursor engine only usage
14501     *
14502     * This sets the globally configured exclusive usage of engine cursors.
14503     * It won't affect cursors set before changing this value.
14504     *
14505     * @param engine_only If 1 only engine cursors will be enabled, if 0 will
14506     * look for them on theme before.
14507     * @return EINA_TRUE if value is valid and setted (0 or 1)
14508     * @ingroup Cursors
14509     */
14510    EAPI Eina_Bool    elm_cursor_engine_only_set(int engine_only);
14511
14512    /**
14513     * @}
14514     */
14515
14516    /**
14517     * @defgroup Menu Menu
14518     *
14519     * @image html img/widget/menu/preview-00.png
14520     * @image latex img/widget/menu/preview-00.eps
14521     *
14522     * A menu is a list of items displayed above its parent. When the menu is
14523     * showing its parent is darkened. Each item can have a sub-menu. The menu
14524     * object can be used to display a menu on a right click event, in a toolbar,
14525     * anywhere.
14526     *
14527     * Signals that you can add callbacks for are:
14528     * @li "clicked" - the user clicked the empty space in the menu to dismiss.
14529     *             event_info is NULL.
14530     *
14531     * @see @ref tutorial_menu
14532     * @{
14533     */
14534    typedef struct _Elm_Menu_Item Elm_Menu_Item; /**< Item of Elm_Menu. Sub-type of Elm_Widget_Item */
14535    /**
14536     * @brief Add a new menu to the parent
14537     *
14538     * @param parent The parent object.
14539     * @return The new object or NULL if it cannot be created.
14540     */
14541    EAPI Evas_Object       *elm_menu_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14542    /**
14543     * @brief Set the parent for the given menu widget
14544     *
14545     * @param obj The menu object.
14546     * @param parent The new parent.
14547     */
14548    EAPI void               elm_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
14549    /**
14550     * @brief Get the parent for the given menu widget
14551     *
14552     * @param obj The menu object.
14553     * @return The parent.
14554     *
14555     * @see elm_menu_parent_set()
14556     */
14557    EAPI Evas_Object       *elm_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14558    /**
14559     * @brief Move the menu to a new position
14560     *
14561     * @param obj The menu object.
14562     * @param x The new position.
14563     * @param y The new position.
14564     *
14565     * Sets the top-left position of the menu to (@p x,@p y).
14566     *
14567     * @note @p x and @p y coordinates are relative to parent.
14568     */
14569    EAPI void               elm_menu_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
14570    /**
14571     * @brief Close a opened menu
14572     *
14573     * @param obj the menu object
14574     * @return void
14575     *
14576     * Hides the menu and all it's sub-menus.
14577     */
14578    EAPI void               elm_menu_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
14579    /**
14580     * @brief Returns a list of @p item's items.
14581     *
14582     * @param obj The menu object
14583     * @return An Eina_List* of @p item's items
14584     */
14585    EAPI const Eina_List   *elm_menu_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14586    /**
14587     * @brief Get the Evas_Object of an Elm_Menu_Item
14588     *
14589     * @param item The menu item object.
14590     * @return The edje object containing the swallowed content
14591     *
14592     * @warning Don't manipulate this object!
14593     */
14594    EAPI Evas_Object       *elm_menu_item_object_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14595    /**
14596     * @brief Add an item at the end of the given menu widget
14597     *
14598     * @param obj The menu object.
14599     * @param parent The parent menu item (optional)
14600     * @param icon A icon display on the item. The icon will be destryed by the menu.
14601     * @param label The label of the item.
14602     * @param func Function called when the user select the item.
14603     * @param data Data sent by the callback.
14604     * @return Returns the new item.
14605     */
14606    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);
14607    /**
14608     * @brief Add an object swallowed in an item at the end of the given menu
14609     * widget
14610     *
14611     * @param obj The menu object.
14612     * @param parent The parent menu item (optional)
14613     * @param subobj The object to swallow
14614     * @param func Function called when the user select the item.
14615     * @param data Data sent by the callback.
14616     * @return Returns the new item.
14617     *
14618     * Add an evas object as an item to the menu.
14619     */
14620    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);
14621    /**
14622     * @brief Set the label of a menu item
14623     *
14624     * @param item The menu item object.
14625     * @param label The label to set for @p item
14626     *
14627     * @warning Don't use this funcion on items created with
14628     * elm_menu_item_add_object() or elm_menu_item_separator_add().
14629     */
14630    EAPI void               elm_menu_item_label_set(Elm_Menu_Item *item, const char *label) EINA_ARG_NONNULL(1);
14631    /**
14632     * @brief Get the label of a menu item
14633     *
14634     * @param item The menu item object.
14635     * @return The label of @p item
14636     */
14637    EAPI const char        *elm_menu_item_label_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14638    /**
14639     * @brief Set the icon of a menu item to the standard icon with name @p icon
14640     *
14641     * @param item The menu item object.
14642     * @param icon The icon object to set for the content of @p item
14643     *
14644     * Once this icon is set, any previously set icon will be deleted.
14645     */
14646    EAPI void               elm_menu_item_object_icon_name_set(Elm_Menu_Item *item, const char *icon) EINA_ARG_NONNULL(1, 2);
14647    /**
14648     * @brief Get the string representation from the icon of a menu item
14649     *
14650     * @param item The menu item object.
14651     * @return The string representation of @p item's icon or NULL
14652     *
14653     * @see elm_menu_item_object_icon_name_set()
14654     */
14655    EAPI const char        *elm_menu_item_object_icon_name_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14656    /**
14657     * @brief Set the content object of a menu item
14658     *
14659     * @param item The menu item object
14660     * @param The content object or NULL
14661     * @return EINA_TRUE on success, else EINA_FALSE
14662     *
14663     * Use this function to change the object swallowed by a menu item, deleting
14664     * any previously swallowed object.
14665     */
14666    EAPI Eina_Bool          elm_menu_item_object_content_set(Elm_Menu_Item *item, Evas_Object *obj) EINA_ARG_NONNULL(1);
14667    /**
14668     * @brief Get the content object of a menu item
14669     *
14670     * @param item The menu item object
14671     * @return The content object or NULL
14672     * @note If @p item was added with elm_menu_item_add_object, this
14673     * function will return the object passed, else it will return the
14674     * icon object.
14675     *
14676     * @see elm_menu_item_object_content_set()
14677     */
14678    EAPI Evas_Object *elm_menu_item_object_content_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14679    /**
14680     * @brief Set the selected state of @p item.
14681     *
14682     * @param item The menu item object.
14683     * @param selected The selected/unselected state of the item
14684     */
14685    EAPI void               elm_menu_item_selected_set(Elm_Menu_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
14686    /**
14687     * @brief Get the selected state of @p item.
14688     *
14689     * @param item The menu item object.
14690     * @return The selected/unselected state of the item
14691     *
14692     * @see elm_menu_item_selected_set()
14693     */
14694    EAPI Eina_Bool          elm_menu_item_selected_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14695    /**
14696     * @brief Set the disabled state of @p item.
14697     *
14698     * @param item The menu item object.
14699     * @param disabled The enabled/disabled state of the item
14700     */
14701    EAPI void               elm_menu_item_disabled_set(Elm_Menu_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
14702    /**
14703     * @brief Get the disabled state of @p item.
14704     *
14705     * @param item The menu item object.
14706     * @return The enabled/disabled state of the item
14707     *
14708     * @see elm_menu_item_disabled_set()
14709     */
14710    EAPI Eina_Bool          elm_menu_item_disabled_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14711    /**
14712     * @brief Add a separator item to menu @p obj under @p parent.
14713     *
14714     * @param obj The menu object
14715     * @param parent The item to add the separator under
14716     * @return The created item or NULL on failure
14717     *
14718     * This is item is a @ref Separator.
14719     */
14720    EAPI Elm_Menu_Item     *elm_menu_item_separator_add(Evas_Object *obj, Elm_Menu_Item *parent) EINA_ARG_NONNULL(1);
14721    /**
14722     * @brief Returns whether @p item is a separator.
14723     *
14724     * @param item The item to check
14725     * @return If true, @p item is a separator
14726     *
14727     * @see elm_menu_item_separator_add()
14728     */
14729    EAPI Eina_Bool          elm_menu_item_is_separator(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14730    /**
14731     * @brief Deletes an item from the menu.
14732     *
14733     * @param item The item to delete.
14734     *
14735     * @see elm_menu_item_add()
14736     */
14737    EAPI void               elm_menu_item_del(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14738    /**
14739     * @brief Set the function called when a menu item is deleted.
14740     *
14741     * @param item The item to set the callback on
14742     * @param func The function called
14743     *
14744     * @see elm_menu_item_add()
14745     * @see elm_menu_item_del()
14746     */
14747    EAPI void               elm_menu_item_del_cb_set(Elm_Menu_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
14748    /**
14749     * @brief Returns the data associated with menu item @p item.
14750     *
14751     * @param item The item
14752     * @return The data associated with @p item or NULL if none was set.
14753     *
14754     * This is the data set with elm_menu_add() or elm_menu_item_data_set().
14755     */
14756    EAPI void              *elm_menu_item_data_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14757    /**
14758     * @brief Sets the data to be associated with menu item @p item.
14759     *
14760     * @param item The item
14761     * @param data The data to be associated with @p item
14762     */
14763    EAPI void               elm_menu_item_data_set(Elm_Menu_Item *item, const void *data) EINA_ARG_NONNULL(1);
14764    /**
14765     * @brief Returns a list of @p item's subitems.
14766     *
14767     * @param item The item
14768     * @return An Eina_List* of @p item's subitems
14769     *
14770     * @see elm_menu_add()
14771     */
14772    EAPI const Eina_List   *elm_menu_item_subitems_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14773    /**
14774     * @brief Get the position of a menu item
14775     *
14776     * @param item The menu item
14777     * @return The item's index
14778     *
14779     * This function returns the index position of a menu item in a menu.
14780     * For a sub-menu, this number is relative to the first item in the sub-menu.
14781     *
14782     * @note Index values begin with 0
14783     */
14784    EAPI unsigned int       elm_menu_item_index_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_PURE;
14785    /**
14786     * @brief @brief Return a menu item's owner menu
14787     *
14788     * @param item The menu item
14789     * @return The menu object owning @p item, or NULL on failure
14790     *
14791     * Use this function to get the menu object owning an item.
14792     */
14793    EAPI Evas_Object       *elm_menu_item_menu_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_PURE;
14794    /**
14795     * @brief Get the selected item in the menu
14796     *
14797     * @param obj The menu object
14798     * @return The selected item, or NULL if none
14799     *
14800     * @see elm_menu_item_selected_get()
14801     * @see elm_menu_item_selected_set()
14802     */
14803    EAPI Elm_Menu_Item *elm_menu_selected_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
14804    /**
14805     * @brief Get the last item in the menu
14806     *
14807     * @param obj The menu object
14808     * @return The last item, or NULL if none
14809     */
14810    EAPI Elm_Menu_Item *elm_menu_last_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
14811    /**
14812     * @brief Get the first item in the menu
14813     *
14814     * @param obj The menu object
14815     * @return The first item, or NULL if none
14816     */
14817    EAPI Elm_Menu_Item *elm_menu_first_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
14818    /**
14819     * @brief Get the next item in the menu.
14820     *
14821     * @param item The menu item object.
14822     * @return The item after it, or NULL if none
14823     */
14824    EAPI Elm_Menu_Item *elm_menu_item_next_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14825    /**
14826     * @brief Get the previous item in the menu.
14827     *
14828     * @param item The menu item object.
14829     * @return The item before it, or NULL if none
14830     */
14831    EAPI Elm_Menu_Item *elm_menu_item_prev_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14832    /**
14833     * @}
14834     */
14835
14836    /**
14837     * @defgroup List List
14838     * @ingroup Elementary
14839     *
14840     * @image html img/widget/list/preview-00.png
14841     * @image latex img/widget/list/preview-00.eps width=\textwidth
14842     *
14843     * @image html img/list.png
14844     * @image latex img/list.eps width=\textwidth
14845     *
14846     * A list widget is a container whose children are displayed vertically or
14847     * horizontally, in order, and can be selected.
14848     * The list can accept only one or multiple items selection. Also has many
14849     * modes of items displaying.
14850     *
14851     * A list is a very simple type of list widget.  For more robust
14852     * lists, @ref Genlist should probably be used.
14853     *
14854     * Smart callbacks one can listen to:
14855     * - @c "activated" - The user has double-clicked or pressed
14856     *   (enter|return|spacebar) on an item. The @c event_info parameter
14857     *   is the item that was activated.
14858     * - @c "clicked,double" - The user has double-clicked an item.
14859     *   The @c event_info parameter is the item that was double-clicked.
14860     * - "selected" - when the user selected an item
14861     * - "unselected" - when the user unselected an item
14862     * - "longpressed" - an item in the list is long-pressed
14863     * - "scroll,edge,top" - the list is scrolled until the top edge
14864     * - "scroll,edge,bottom" - the list is scrolled until the bottom edge
14865     * - "scroll,edge,left" - the list is scrolled until the left edge
14866     * - "scroll,edge,right" - the list is scrolled until the right edge
14867     *
14868     * Available styles for it:
14869     * - @c "default"
14870     *
14871     * List of examples:
14872     * @li @ref list_example_01
14873     * @li @ref list_example_02
14874     * @li @ref list_example_03
14875     */
14876
14877    /**
14878     * @addtogroup List
14879     * @{
14880     */
14881
14882    /**
14883     * @enum _Elm_List_Mode
14884     * @typedef Elm_List_Mode
14885     *
14886     * Set list's resize behavior, transverse axis scroll and
14887     * items cropping. See each mode's description for more details.
14888     *
14889     * @note Default value is #ELM_LIST_SCROLL.
14890     *
14891     * Values <b> don't </b> work as bitmask, only one can be choosen.
14892     *
14893     * @see elm_list_mode_set()
14894     * @see elm_list_mode_get()
14895     *
14896     * @ingroup List
14897     */
14898    typedef enum _Elm_List_Mode
14899      {
14900         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. */
14901         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). */
14902         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. */
14903         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. */
14904         ELM_LIST_LAST /**< Indicates error if returned by elm_list_mode_get() */
14905      } Elm_List_Mode;
14906
14907    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().  */
14908
14909    /**
14910     * Add a new list widget to the given parent Elementary
14911     * (container) object.
14912     *
14913     * @param parent The parent object.
14914     * @return a new list widget handle or @c NULL, on errors.
14915     *
14916     * This function inserts a new list widget on the canvas.
14917     *
14918     * @ingroup List
14919     */
14920    EAPI Evas_Object     *elm_list_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14921
14922    /**
14923     * Starts the list.
14924     *
14925     * @param obj The list object
14926     *
14927     * @note Call before running show() on the list object.
14928     * @warning If not called, it won't display the list properly.
14929     *
14930     * @code
14931     * li = elm_list_add(win);
14932     * elm_list_item_append(li, "First", NULL, NULL, NULL, NULL);
14933     * elm_list_item_append(li, "Second", NULL, NULL, NULL, NULL);
14934     * elm_list_go(li);
14935     * evas_object_show(li);
14936     * @endcode
14937     *
14938     * @ingroup List
14939     */
14940    EAPI void             elm_list_go(Evas_Object *obj) EINA_ARG_NONNULL(1);
14941
14942    /**
14943     * Enable or disable multiple items selection on the list object.
14944     *
14945     * @param obj The list object
14946     * @param multi @c EINA_TRUE to enable multi selection or @c EINA_FALSE to
14947     * disable it.
14948     *
14949     * Disabled by default. If disabled, the user can select a single item of
14950     * the list each time. Selected items are highlighted on list.
14951     * If enabled, many items can be selected.
14952     *
14953     * If a selected item is selected again, it will be unselected.
14954     *
14955     * @see elm_list_multi_select_get()
14956     *
14957     * @ingroup List
14958     */
14959    EAPI void             elm_list_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
14960
14961    /**
14962     * Get a value whether multiple items selection is enabled or not.
14963     *
14964     * @see elm_list_multi_select_set() for details.
14965     *
14966     * @param obj The list object.
14967     * @return @c EINA_TRUE means multiple items selection is enabled.
14968     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
14969     * @c EINA_FALSE is returned.
14970     *
14971     * @ingroup List
14972     */
14973    EAPI Eina_Bool        elm_list_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14974
14975    /**
14976     * Set which mode to use for the list object.
14977     *
14978     * @param obj The list object
14979     * @param mode One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
14980     * #ELM_LIST_LIMIT or #ELM_LIST_EXPAND.
14981     *
14982     * Set list's resize behavior, transverse axis scroll and
14983     * items cropping. See each mode's description for more details.
14984     *
14985     * @note Default value is #ELM_LIST_SCROLL.
14986     *
14987     * Only one can be set, if a previous one was set, it will be changed
14988     * by the new mode set. Bitmask won't work as well.
14989     *
14990     * @see elm_list_mode_get()
14991     *
14992     * @ingroup List
14993     */
14994    EAPI void             elm_list_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
14995
14996    /**
14997     * Get the mode the list is at.
14998     *
14999     * @param obj The list object
15000     * @return One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
15001     * #ELM_LIST_LIMIT, #ELM_LIST_EXPAND or #ELM_LIST_LAST on errors.
15002     *
15003     * @note see elm_list_mode_set() for more information.
15004     *
15005     * @ingroup List
15006     */
15007    EAPI Elm_List_Mode    elm_list_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15008
15009    /**
15010     * Enable or disable horizontal mode on the list object.
15011     *
15012     * @param obj The list object.
15013     * @param horizontal @c EINA_TRUE to enable horizontal or @c EINA_FALSE to
15014     * disable it, i.e., to enable vertical mode.
15015     *
15016     * @note Vertical mode is set by default.
15017     *
15018     * On horizontal mode items are displayed on list from left to right,
15019     * instead of from top to bottom. Also, the list will scroll horizontally.
15020     * Each item will presents left icon on top and right icon, or end, at
15021     * the bottom.
15022     *
15023     * @see elm_list_horizontal_get()
15024     *
15025     * @ingroup List
15026     */
15027    EAPI void             elm_list_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
15028
15029    /**
15030     * Get a value whether horizontal mode is enabled or not.
15031     *
15032     * @param obj The list object.
15033     * @return @c EINA_TRUE means horizontal mode selection is enabled.
15034     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
15035     * @c EINA_FALSE is returned.
15036     *
15037     * @see elm_list_horizontal_set() for details.
15038     *
15039     * @ingroup List
15040     */
15041    EAPI Eina_Bool        elm_list_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15042
15043    /**
15044     * Enable or disable always select mode on the list object.
15045     *
15046     * @param obj The list object
15047     * @param always_select @c EINA_TRUE to enable always select mode or
15048     * @c EINA_FALSE to disable it.
15049     *
15050     * @note Always select mode is disabled by default.
15051     *
15052     * Default behavior of list items is to only call its callback function
15053     * the first time it's pressed, i.e., when it is selected. If a selected
15054     * item is pressed again, and multi-select is disabled, it won't call
15055     * this function (if multi-select is enabled it will unselect the item).
15056     *
15057     * If always select is enabled, it will call the callback function
15058     * everytime a item is pressed, so it will call when the item is selected,
15059     * and again when a selected item is pressed.
15060     *
15061     * @see elm_list_always_select_mode_get()
15062     * @see elm_list_multi_select_set()
15063     *
15064     * @ingroup List
15065     */
15066    EAPI void             elm_list_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
15067
15068    /**
15069     * Get a value whether always select mode is enabled or not, meaning that
15070     * an item will always call its callback function, even if already selected.
15071     *
15072     * @param obj The list object
15073     * @return @c EINA_TRUE means horizontal mode selection is enabled.
15074     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
15075     * @c EINA_FALSE is returned.
15076     *
15077     * @see elm_list_always_select_mode_set() for details.
15078     *
15079     * @ingroup List
15080     */
15081    EAPI Eina_Bool        elm_list_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15082
15083    /**
15084     * Set bouncing behaviour when the scrolled content reaches an edge.
15085     *
15086     * Tell the internal scroller object whether it should bounce or not
15087     * when it reaches the respective edges for each axis.
15088     *
15089     * @param obj The list object
15090     * @param h_bounce Whether to bounce or not in the horizontal axis.
15091     * @param v_bounce Whether to bounce or not in the vertical axis.
15092     *
15093     * @see elm_scroller_bounce_set()
15094     *
15095     * @ingroup List
15096     */
15097    EAPI void             elm_list_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
15098
15099    /**
15100     * Get the bouncing behaviour of the internal scroller.
15101     *
15102     * Get whether the internal scroller should bounce when the edge of each
15103     * axis is reached scrolling.
15104     *
15105     * @param obj The list object.
15106     * @param h_bounce Pointer where to store the bounce state of the horizontal
15107     * axis.
15108     * @param v_bounce Pointer where to store the bounce state of the vertical
15109     * axis.
15110     *
15111     * @see elm_scroller_bounce_get()
15112     * @see elm_list_bounce_set()
15113     *
15114     * @ingroup List
15115     */
15116    EAPI void             elm_list_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
15117
15118    /**
15119     * Set the scrollbar policy.
15120     *
15121     * @param obj The list object
15122     * @param policy_h Horizontal scrollbar policy.
15123     * @param policy_v Vertical scrollbar policy.
15124     *
15125     * This sets the scrollbar visibility policy for the given scroller.
15126     * #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it
15127     * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
15128     * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
15129     * This applies respectively for the horizontal and vertical scrollbars.
15130     *
15131     * The both are disabled by default, i.e., are set to
15132     * #ELM_SCROLLER_POLICY_OFF.
15133     *
15134     * @ingroup List
15135     */
15136    EAPI void             elm_list_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
15137
15138    /**
15139     * Get the scrollbar policy.
15140     *
15141     * @see elm_list_scroller_policy_get() for details.
15142     *
15143     * @param obj The list object.
15144     * @param policy_h Pointer where to store horizontal scrollbar policy.
15145     * @param policy_v Pointer where to store vertical scrollbar policy.
15146     *
15147     * @ingroup List
15148     */
15149    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);
15150
15151    /**
15152     * Append a new item to the list object.
15153     *
15154     * @param obj The list object.
15155     * @param label The label of the list item.
15156     * @param icon The icon object to use for the left side of the item. An
15157     * icon can be any Evas object, but usually it is an icon created
15158     * with elm_icon_add().
15159     * @param end The icon object to use for the right side of the item. An
15160     * icon can be any Evas object.
15161     * @param func The function to call when the item is clicked.
15162     * @param data The data to associate with the item for related callbacks.
15163     *
15164     * @return The created item or @c NULL upon failure.
15165     *
15166     * A new item will be created and appended to the list, i.e., will
15167     * be set as @b last item.
15168     *
15169     * Items created with this method can be deleted with
15170     * elm_list_item_del().
15171     *
15172     * Associated @p data can be properly freed when item is deleted if a
15173     * callback function is set with elm_list_item_del_cb_set().
15174     *
15175     * If a function is passed as argument, it will be called everytime this item
15176     * is selected, i.e., the user clicks over an unselected item.
15177     * If always select is enabled it will call this function every time
15178     * user clicks over an item (already selected or not).
15179     * If such function isn't needed, just passing
15180     * @c NULL as @p func is enough. The same should be done for @p data.
15181     *
15182     * Simple example (with no function callback or data associated):
15183     * @code
15184     * li = elm_list_add(win);
15185     * ic = elm_icon_add(win);
15186     * elm_icon_file_set(ic, "path/to/image", NULL);
15187     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
15188     * elm_list_item_append(li, "label", ic, NULL, NULL, NULL);
15189     * elm_list_go(li);
15190     * evas_object_show(li);
15191     * @endcode
15192     *
15193     * @see elm_list_always_select_mode_set()
15194     * @see elm_list_item_del()
15195     * @see elm_list_item_del_cb_set()
15196     * @see elm_list_clear()
15197     * @see elm_icon_add()
15198     *
15199     * @ingroup List
15200     */
15201    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);
15202
15203    /**
15204     * Prepend a new item to the list object.
15205     *
15206     * @param obj The list object.
15207     * @param label The label of the list item.
15208     * @param icon The icon object to use for the left side of the item. An
15209     * icon can be any Evas object, but usually it is an icon created
15210     * with elm_icon_add().
15211     * @param end The icon object to use for the right side of the item. An
15212     * icon can be any Evas object.
15213     * @param func The function to call when the item is clicked.
15214     * @param data The data to associate with the item for related callbacks.
15215     *
15216     * @return The created item or @c NULL upon failure.
15217     *
15218     * A new item will be created and prepended to the list, i.e., will
15219     * be set as @b first item.
15220     *
15221     * Items created with this method can be deleted with
15222     * elm_list_item_del().
15223     *
15224     * Associated @p data can be properly freed when item is deleted if a
15225     * callback function is set with elm_list_item_del_cb_set().
15226     *
15227     * If a function is passed as argument, it will be called everytime this item
15228     * is selected, i.e., the user clicks over an unselected item.
15229     * If always select is enabled it will call this function every time
15230     * user clicks over an item (already selected or not).
15231     * If such function isn't needed, just passing
15232     * @c NULL as @p func is enough. The same should be done for @p data.
15233     *
15234     * @see elm_list_item_append() for a simple code example.
15235     * @see elm_list_always_select_mode_set()
15236     * @see elm_list_item_del()
15237     * @see elm_list_item_del_cb_set()
15238     * @see elm_list_clear()
15239     * @see elm_icon_add()
15240     *
15241     * @ingroup List
15242     */
15243    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);
15244
15245    /**
15246     * Insert a new item into the list object before item @p before.
15247     *
15248     * @param obj The list object.
15249     * @param before The list item to insert before.
15250     * @param label The label of the list item.
15251     * @param icon The icon object to use for the left side of the item. An
15252     * icon can be any Evas object, but usually it is an icon created
15253     * with elm_icon_add().
15254     * @param end The icon object to use for the right side of the item. An
15255     * icon can be any Evas object.
15256     * @param func The function to call when the item is clicked.
15257     * @param data The data to associate with the item for related callbacks.
15258     *
15259     * @return The created item or @c NULL upon failure.
15260     *
15261     * A new item will be created and added to the list. Its position in
15262     * this list will be just before item @p before.
15263     *
15264     * Items created with this method can be deleted with
15265     * elm_list_item_del().
15266     *
15267     * Associated @p data can be properly freed when item is deleted if a
15268     * callback function is set with elm_list_item_del_cb_set().
15269     *
15270     * If a function is passed as argument, it will be called everytime this item
15271     * is selected, i.e., the user clicks over an unselected item.
15272     * If always select is enabled it will call this function every time
15273     * user clicks over an item (already selected or not).
15274     * If such function isn't needed, just passing
15275     * @c NULL as @p func is enough. The same should be done for @p data.
15276     *
15277     * @see elm_list_item_append() for a simple code example.
15278     * @see elm_list_always_select_mode_set()
15279     * @see elm_list_item_del()
15280     * @see elm_list_item_del_cb_set()
15281     * @see elm_list_clear()
15282     * @see elm_icon_add()
15283     *
15284     * @ingroup List
15285     */
15286    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);
15287
15288    /**
15289     * Insert a new item into the list object after item @p after.
15290     *
15291     * @param obj The list object.
15292     * @param after The list item to insert after.
15293     * @param label The label of the list item.
15294     * @param icon The icon object to use for the left side of the item. An
15295     * icon can be any Evas object, but usually it is an icon created
15296     * with elm_icon_add().
15297     * @param end The icon object to use for the right side of the item. An
15298     * icon can be any Evas object.
15299     * @param func The function to call when the item is clicked.
15300     * @param data The data to associate with the item for related callbacks.
15301     *
15302     * @return The created item or @c NULL upon failure.
15303     *
15304     * A new item will be created and added to the list. Its position in
15305     * this list will be just after item @p after.
15306     *
15307     * Items created with this method can be deleted with
15308     * elm_list_item_del().
15309     *
15310     * Associated @p data can be properly freed when item is deleted if a
15311     * callback function is set with elm_list_item_del_cb_set().
15312     *
15313     * If a function is passed as argument, it will be called everytime this item
15314     * is selected, i.e., the user clicks over an unselected item.
15315     * If always select is enabled it will call this function every time
15316     * user clicks over an item (already selected or not).
15317     * If such function isn't needed, just passing
15318     * @c NULL as @p func is enough. The same should be done for @p data.
15319     *
15320     * @see elm_list_item_append() for a simple code example.
15321     * @see elm_list_always_select_mode_set()
15322     * @see elm_list_item_del()
15323     * @see elm_list_item_del_cb_set()
15324     * @see elm_list_clear()
15325     * @see elm_icon_add()
15326     *
15327     * @ingroup List
15328     */
15329    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);
15330
15331    /**
15332     * Insert a new item into the sorted list object.
15333     *
15334     * @param obj The list object.
15335     * @param label The label of the list item.
15336     * @param icon The icon object to use for the left side of the item. An
15337     * icon can be any Evas object, but usually it is an icon created
15338     * with elm_icon_add().
15339     * @param end The icon object to use for the right side of the item. An
15340     * icon can be any Evas object.
15341     * @param func The function to call when the item is clicked.
15342     * @param data The data to associate with the item for related callbacks.
15343     * @param cmp_func The comparing function to be used to sort list
15344     * items <b>by #Elm_List_Item item handles</b>. This function will
15345     * receive two items and compare them, returning a non-negative integer
15346     * if the second item should be place after the first, or negative value
15347     * if should be placed before.
15348     *
15349     * @return The created item or @c NULL upon failure.
15350     *
15351     * @note This function inserts values into a list object assuming it was
15352     * sorted and the result will be sorted.
15353     *
15354     * A new item will be created and added to the list. Its position in
15355     * this list will be found comparing the new item with previously inserted
15356     * items using function @p cmp_func.
15357     *
15358     * Items created with this method can be deleted with
15359     * elm_list_item_del().
15360     *
15361     * Associated @p data can be properly freed when item is deleted if a
15362     * callback function is set with elm_list_item_del_cb_set().
15363     *
15364     * If a function is passed as argument, it will be called everytime this item
15365     * is selected, i.e., the user clicks over an unselected item.
15366     * If always select is enabled it will call this function every time
15367     * user clicks over an item (already selected or not).
15368     * If such function isn't needed, just passing
15369     * @c NULL as @p func is enough. The same should be done for @p data.
15370     *
15371     * @see elm_list_item_append() for a simple code example.
15372     * @see elm_list_always_select_mode_set()
15373     * @see elm_list_item_del()
15374     * @see elm_list_item_del_cb_set()
15375     * @see elm_list_clear()
15376     * @see elm_icon_add()
15377     *
15378     * @ingroup List
15379     */
15380    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);
15381
15382    /**
15383     * Remove all list's items.
15384     *
15385     * @param obj The list object
15386     *
15387     * @see elm_list_item_del()
15388     * @see elm_list_item_append()
15389     *
15390     * @ingroup List
15391     */
15392    EAPI void             elm_list_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
15393
15394    /**
15395     * Get a list of all the list items.
15396     *
15397     * @param obj The list object
15398     * @return An @c Eina_List of list items, #Elm_List_Item,
15399     * or @c NULL on failure.
15400     *
15401     * @see elm_list_item_append()
15402     * @see elm_list_item_del()
15403     * @see elm_list_clear()
15404     *
15405     * @ingroup List
15406     */
15407    EAPI const Eina_List *elm_list_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15408
15409    /**
15410     * Get the selected item.
15411     *
15412     * @param obj The list object.
15413     * @return The selected list item.
15414     *
15415     * The selected item can be unselected with function
15416     * elm_list_item_selected_set().
15417     *
15418     * The selected item always will be highlighted on list.
15419     *
15420     * @see elm_list_selected_items_get()
15421     *
15422     * @ingroup List
15423     */
15424    EAPI Elm_List_Item   *elm_list_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15425
15426    /**
15427     * Return a list of the currently selected list items.
15428     *
15429     * @param obj The list object.
15430     * @return An @c Eina_List of list items, #Elm_List_Item,
15431     * or @c NULL on failure.
15432     *
15433     * Multiple items can be selected if multi select is enabled. It can be
15434     * done with elm_list_multi_select_set().
15435     *
15436     * @see elm_list_selected_item_get()
15437     * @see elm_list_multi_select_set()
15438     *
15439     * @ingroup List
15440     */
15441    EAPI const Eina_List *elm_list_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15442
15443    /**
15444     * Set the selected state of an item.
15445     *
15446     * @param item The list item
15447     * @param selected The selected state
15448     *
15449     * This sets the selected state of the given item @p it.
15450     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
15451     *
15452     * If a new item is selected the previosly selected will be unselected,
15453     * unless multiple selection is enabled with elm_list_multi_select_set().
15454     * Previoulsy selected item can be get with function
15455     * elm_list_selected_item_get().
15456     *
15457     * Selected items will be highlighted.
15458     *
15459     * @see elm_list_item_selected_get()
15460     * @see elm_list_selected_item_get()
15461     * @see elm_list_multi_select_set()
15462     *
15463     * @ingroup List
15464     */
15465    EAPI void             elm_list_item_selected_set(Elm_List_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
15466
15467    /*
15468     * Get whether the @p item is selected or not.
15469     *
15470     * @param item The list item.
15471     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
15472     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
15473     *
15474     * @see elm_list_selected_item_set() for details.
15475     * @see elm_list_item_selected_get()
15476     *
15477     * @ingroup List
15478     */
15479    EAPI Eina_Bool        elm_list_item_selected_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15480
15481    /**
15482     * Set or unset item as a separator.
15483     *
15484     * @param it The list item.
15485     * @param setting @c EINA_TRUE to set item @p it as separator or
15486     * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
15487     *
15488     * Items aren't set as separator by default.
15489     *
15490     * If set as separator it will display separator theme, so won't display
15491     * icons or label.
15492     *
15493     * @see elm_list_item_separator_get()
15494     *
15495     * @ingroup List
15496     */
15497    EAPI void             elm_list_item_separator_set(Elm_List_Item *it, Eina_Bool setting) EINA_ARG_NONNULL(1);
15498
15499    /**
15500     * Get a value whether item is a separator or not.
15501     *
15502     * @see elm_list_item_separator_set() for details.
15503     *
15504     * @param it The list item.
15505     * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
15506     * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
15507     *
15508     * @ingroup List
15509     */
15510    EAPI Eina_Bool        elm_list_item_separator_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
15511
15512    /**
15513     * Show @p item in the list view.
15514     *
15515     * @param item The list item to be shown.
15516     *
15517     * It won't animate list until item is visible. If such behavior is wanted,
15518     * use elm_list_bring_in() intead.
15519     *
15520     * @ingroup List
15521     */
15522    EAPI void             elm_list_item_show(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15523
15524    /**
15525     * Bring in the given item to list view.
15526     *
15527     * @param item The item.
15528     *
15529     * This causes list to jump to the given item @p item and show it
15530     * (by scrolling), if it is not fully visible.
15531     *
15532     * This may use animation to do so and take a period of time.
15533     *
15534     * If animation isn't wanted, elm_list_item_show() can be used.
15535     *
15536     * @ingroup List
15537     */
15538    EAPI void             elm_list_item_bring_in(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15539
15540    /**
15541     * Delete them item from the list.
15542     *
15543     * @param item The item of list to be deleted.
15544     *
15545     * If deleting all list items is required, elm_list_clear()
15546     * should be used instead of getting items list and deleting each one.
15547     *
15548     * @see elm_list_clear()
15549     * @see elm_list_item_append()
15550     * @see elm_list_item_del_cb_set()
15551     *
15552     * @ingroup List
15553     */
15554    EAPI void             elm_list_item_del(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15555
15556    /**
15557     * Set the function called when a list item is freed.
15558     *
15559     * @param item The item to set the callback on
15560     * @param func The function called
15561     *
15562     * If there is a @p func, then it will be called prior item's memory release.
15563     * That will be called with the following arguments:
15564     * @li item's data;
15565     * @li item's Evas object;
15566     * @li item itself;
15567     *
15568     * This way, a data associated to a list item could be properly freed.
15569     *
15570     * @ingroup List
15571     */
15572    EAPI void             elm_list_item_del_cb_set(Elm_List_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
15573
15574    /**
15575     * Get the data associated to the item.
15576     *
15577     * @param item The list item
15578     * @return The data associated to @p item
15579     *
15580     * The return value is a pointer to data associated to @p item when it was
15581     * created, with function elm_list_item_append() or similar. If no data
15582     * was passed as argument, it will return @c NULL.
15583     *
15584     * @see elm_list_item_append()
15585     *
15586     * @ingroup List
15587     */
15588    EAPI void            *elm_list_item_data_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15589
15590    /**
15591     * Get the left side icon associated to the item.
15592     *
15593     * @param item The list item
15594     * @return The left side icon associated to @p item
15595     *
15596     * The return value is a pointer to the icon associated to @p item when
15597     * it was
15598     * created, with function elm_list_item_append() or similar, or later
15599     * with function elm_list_item_icon_set(). If no icon
15600     * was passed as argument, it will return @c NULL.
15601     *
15602     * @see elm_list_item_append()
15603     * @see elm_list_item_icon_set()
15604     *
15605     * @ingroup List
15606     */
15607    EAPI Evas_Object     *elm_list_item_icon_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15608
15609    /**
15610     * Set the left side icon associated to the item.
15611     *
15612     * @param item The list item
15613     * @param icon The left side icon object to associate with @p item
15614     *
15615     * The icon object to use at left side of the item. An
15616     * icon can be any Evas object, but usually it is an icon created
15617     * with elm_icon_add().
15618     *
15619     * Once the icon object is set, a previously set one will be deleted.
15620     * @warning Setting the same icon for two items will cause the icon to
15621     * dissapear from the first item.
15622     *
15623     * If an icon was passed as argument on item creation, with function
15624     * elm_list_item_append() or similar, it will be already
15625     * associated to the item.
15626     *
15627     * @see elm_list_item_append()
15628     * @see elm_list_item_icon_get()
15629     *
15630     * @ingroup List
15631     */
15632    EAPI void             elm_list_item_icon_set(Elm_List_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
15633
15634    /**
15635     * Get the right side icon associated to the item.
15636     *
15637     * @param item The list item
15638     * @return The right side icon associated to @p item
15639     *
15640     * The return value is a pointer to the icon associated to @p item when
15641     * it was
15642     * created, with function elm_list_item_append() or similar, or later
15643     * with function elm_list_item_icon_set(). If no icon
15644     * was passed as argument, it will return @c NULL.
15645     *
15646     * @see elm_list_item_append()
15647     * @see elm_list_item_icon_set()
15648     *
15649     * @ingroup List
15650     */
15651    EAPI Evas_Object     *elm_list_item_end_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15652
15653    /**
15654     * Set the right side icon associated to the item.
15655     *
15656     * @param item The list item
15657     * @param end The right side icon object to associate with @p item
15658     *
15659     * The icon object to use at right side of the item. An
15660     * icon can be any Evas object, but usually it is an icon created
15661     * with elm_icon_add().
15662     *
15663     * Once the icon object is set, a previously set one will be deleted.
15664     * @warning Setting the same icon for two items will cause the icon to
15665     * dissapear from the first item.
15666     *
15667     * If an icon was passed as argument on item creation, with function
15668     * elm_list_item_append() or similar, it will be already
15669     * associated to the item.
15670     *
15671     * @see elm_list_item_append()
15672     * @see elm_list_item_end_get()
15673     *
15674     * @ingroup List
15675     */
15676    EAPI void             elm_list_item_end_set(Elm_List_Item *item, Evas_Object *end) EINA_ARG_NONNULL(1);
15677
15678    /**
15679     * Gets the base object of the item.
15680     *
15681     * @param item The list item
15682     * @return The base object associated with @p item
15683     *
15684     * Base object is the @c Evas_Object that represents that item.
15685     *
15686     * @ingroup List
15687     */
15688    EAPI Evas_Object     *elm_list_item_object_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15689    EINA_DEPRECATED EAPI Evas_Object     *elm_list_item_base_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15690
15691    /**
15692     * Get the label of item.
15693     *
15694     * @param item The item of list.
15695     * @return The label of item.
15696     *
15697     * The return value is a pointer to the label associated to @p item when
15698     * it was created, with function elm_list_item_append(), or later
15699     * with function elm_list_item_label_set. If no label
15700     * was passed as argument, it will return @c NULL.
15701     *
15702     * @see elm_list_item_label_set() for more details.
15703     * @see elm_list_item_append()
15704     *
15705     * @ingroup List
15706     */
15707    EAPI const char      *elm_list_item_label_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15708
15709    /**
15710     * Set the label of item.
15711     *
15712     * @param item The item of list.
15713     * @param text The label of item.
15714     *
15715     * The label to be displayed by the item.
15716     * Label will be placed between left and right side icons (if set).
15717     *
15718     * If a label was passed as argument on item creation, with function
15719     * elm_list_item_append() or similar, it will be already
15720     * displayed by the item.
15721     *
15722     * @see elm_list_item_label_get()
15723     * @see elm_list_item_append()
15724     *
15725     * @ingroup List
15726     */
15727    EAPI void             elm_list_item_label_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
15728
15729
15730    /**
15731     * Get the item before @p it in list.
15732     *
15733     * @param it The list item.
15734     * @return The item before @p it, or @c NULL if none or on failure.
15735     *
15736     * @note If it is the first item, @c NULL will be returned.
15737     *
15738     * @see elm_list_item_append()
15739     * @see elm_list_items_get()
15740     *
15741     * @ingroup List
15742     */
15743    EAPI Elm_List_Item   *elm_list_item_prev(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
15744
15745    /**
15746     * Get the item after @p it in list.
15747     *
15748     * @param it The list item.
15749     * @return The item after @p it, or @c NULL if none or on failure.
15750     *
15751     * @note If it is the last item, @c NULL will be returned.
15752     *
15753     * @see elm_list_item_append()
15754     * @see elm_list_items_get()
15755     *
15756     * @ingroup List
15757     */
15758    EAPI Elm_List_Item   *elm_list_item_next(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
15759
15760    /**
15761     * Sets the disabled/enabled state of a list item.
15762     *
15763     * @param it The item.
15764     * @param disabled The disabled state.
15765     *
15766     * A disabled item cannot be selected or unselected. It will also
15767     * change its appearance (generally greyed out). This sets the
15768     * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
15769     * enabled).
15770     *
15771     * @ingroup List
15772     */
15773    EAPI void             elm_list_item_disabled_set(Elm_List_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
15774
15775    /**
15776     * Get a value whether list item is disabled or not.
15777     *
15778     * @param it The item.
15779     * @return The disabled state.
15780     *
15781     * @see elm_list_item_disabled_set() for more details.
15782     *
15783     * @ingroup List
15784     */
15785    EAPI Eina_Bool        elm_list_item_disabled_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
15786
15787    /**
15788     * Set the text to be shown in a given list item's tooltips.
15789     *
15790     * @param item Target item.
15791     * @param text The text to set in the content.
15792     *
15793     * Setup the text as tooltip to object. The item can have only one tooltip,
15794     * so any previous tooltip data - set with this function or
15795     * elm_list_item_tooltip_content_cb_set() - is removed.
15796     *
15797     * @see elm_object_tooltip_text_set() for more details.
15798     *
15799     * @ingroup List
15800     */
15801    EAPI void             elm_list_item_tooltip_text_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
15802
15803
15804    /**
15805     * @brief Disable size restrictions on an object's tooltip
15806     * @param item The tooltip's anchor object
15807     * @param disable If EINA_TRUE, size restrictions are disabled
15808     * @return EINA_FALSE on failure, EINA_TRUE on success
15809     *
15810     * This function allows a tooltip to expand beyond its parant window's canvas.
15811     * It will instead be limited only by the size of the display.
15812     */
15813    EAPI Eina_Bool        elm_list_item_tooltip_size_restrict_disable(Elm_List_Item *item, Eina_Bool disable) EINA_ARG_NONNULL(1);
15814    /**
15815     * @brief Retrieve size restriction state of an object's tooltip
15816     * @param obj The tooltip's anchor object
15817     * @return If EINA_TRUE, size restrictions are disabled
15818     *
15819     * This function returns whether a tooltip is allowed to expand beyond
15820     * its parant window's canvas.
15821     * It will instead be limited only by the size of the display.
15822     */
15823    EAPI Eina_Bool        elm_list_item_tooltip_size_restrict_disabled_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15824
15825    /**
15826     * Set the content to be shown in the tooltip item.
15827     *
15828     * Setup the tooltip to item. The item can have only one tooltip,
15829     * so any previous tooltip data is removed. @p func(with @p data) will
15830     * be called every time that need show the tooltip and it should
15831     * return a valid Evas_Object. This object is then managed fully by
15832     * tooltip system and is deleted when the tooltip is gone.
15833     *
15834     * @param item the list item being attached a tooltip.
15835     * @param func the function used to create the tooltip contents.
15836     * @param data what to provide to @a func as callback data/context.
15837     * @param del_cb called when data is not needed anymore, either when
15838     *        another callback replaces @a func, the tooltip is unset with
15839     *        elm_list_item_tooltip_unset() or the owner @a item
15840     *        dies. This callback receives as the first parameter the
15841     *        given @a data, and @c event_info is the item.
15842     *
15843     * @see elm_object_tooltip_content_cb_set() for more details.
15844     *
15845     * @ingroup List
15846     */
15847    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);
15848
15849    /**
15850     * Unset tooltip from item.
15851     *
15852     * @param item list item to remove previously set tooltip.
15853     *
15854     * Remove tooltip from item. The callback provided as del_cb to
15855     * elm_list_item_tooltip_content_cb_set() will be called to notify
15856     * it is not used anymore.
15857     *
15858     * @see elm_object_tooltip_unset() for more details.
15859     * @see elm_list_item_tooltip_content_cb_set()
15860     *
15861     * @ingroup List
15862     */
15863    EAPI void             elm_list_item_tooltip_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15864
15865    /**
15866     * Sets a different style for this item tooltip.
15867     *
15868     * @note before you set a style you should define a tooltip with
15869     *       elm_list_item_tooltip_content_cb_set() or
15870     *       elm_list_item_tooltip_text_set()
15871     *
15872     * @param item list item with tooltip already set.
15873     * @param style the theme style to use (default, transparent, ...)
15874     *
15875     * @see elm_object_tooltip_style_set() for more details.
15876     *
15877     * @ingroup List
15878     */
15879    EAPI void             elm_list_item_tooltip_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
15880
15881    /**
15882     * Get the style for this item tooltip.
15883     *
15884     * @param item list item with tooltip already set.
15885     * @return style the theme style in use, defaults to "default". If the
15886     *         object does not have a tooltip set, then NULL is returned.
15887     *
15888     * @see elm_object_tooltip_style_get() for more details.
15889     * @see elm_list_item_tooltip_style_set()
15890     *
15891     * @ingroup List
15892     */
15893    EAPI const char      *elm_list_item_tooltip_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15894
15895    /**
15896     * Set the type of mouse pointer/cursor decoration to be shown,
15897     * when the mouse pointer is over the given list widget item
15898     *
15899     * @param item list item to customize cursor on
15900     * @param cursor the cursor type's name
15901     *
15902     * This function works analogously as elm_object_cursor_set(), but
15903     * here the cursor's changing area is restricted to the item's
15904     * area, and not the whole widget's. Note that that item cursors
15905     * have precedence over widget cursors, so that a mouse over an
15906     * item with custom cursor set will always show @b that cursor.
15907     *
15908     * If this function is called twice for an object, a previously set
15909     * cursor will be unset on the second call.
15910     *
15911     * @see elm_object_cursor_set()
15912     * @see elm_list_item_cursor_get()
15913     * @see elm_list_item_cursor_unset()
15914     *
15915     * @ingroup List
15916     */
15917    EAPI void             elm_list_item_cursor_set(Elm_List_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
15918
15919    /*
15920     * Get the type of mouse pointer/cursor decoration set to be shown,
15921     * when the mouse pointer is over the given list widget item
15922     *
15923     * @param item list item with custom cursor set
15924     * @return the cursor type's name or @c NULL, if no custom cursors
15925     * were set to @p item (and on errors)
15926     *
15927     * @see elm_object_cursor_get()
15928     * @see elm_list_item_cursor_set()
15929     * @see elm_list_item_cursor_unset()
15930     *
15931     * @ingroup List
15932     */
15933    EAPI const char      *elm_list_item_cursor_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15934
15935    /**
15936     * Unset any custom mouse pointer/cursor decoration set to be
15937     * shown, when the mouse pointer is over the given list widget
15938     * item, thus making it show the @b default cursor again.
15939     *
15940     * @param item a list item
15941     *
15942     * Use this call to undo any custom settings on this item's cursor
15943     * decoration, bringing it back to defaults (no custom style set).
15944     *
15945     * @see elm_object_cursor_unset()
15946     * @see elm_list_item_cursor_set()
15947     *
15948     * @ingroup List
15949     */
15950    EAPI void             elm_list_item_cursor_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15951
15952    /**
15953     * Set a different @b style for a given custom cursor set for a
15954     * list item.
15955     *
15956     * @param item list item with custom cursor set
15957     * @param style the <b>theme style</b> to use (e.g. @c "default",
15958     * @c "transparent", etc)
15959     *
15960     * This function only makes sense when one is using custom mouse
15961     * cursor decorations <b>defined in a theme file</b>, which can have,
15962     * given a cursor name/type, <b>alternate styles</b> on it. It
15963     * works analogously as elm_object_cursor_style_set(), but here
15964     * applyed only to list item objects.
15965     *
15966     * @warning Before you set a cursor style you should have definen a
15967     *       custom cursor previously on the item, with
15968     *       elm_list_item_cursor_set()
15969     *
15970     * @see elm_list_item_cursor_engine_only_set()
15971     * @see elm_list_item_cursor_style_get()
15972     *
15973     * @ingroup List
15974     */
15975    EAPI void             elm_list_item_cursor_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
15976
15977    /**
15978     * Get the current @b style set for a given list item's custom
15979     * cursor
15980     *
15981     * @param item list item with custom cursor set.
15982     * @return style the cursor style in use. If the object does not
15983     *         have a cursor set, then @c NULL is returned.
15984     *
15985     * @see elm_list_item_cursor_style_set() for more details
15986     *
15987     * @ingroup List
15988     */
15989    EAPI const char      *elm_list_item_cursor_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15990
15991    /**
15992     * Set if the (custom)cursor for a given list item should be
15993     * searched in its theme, also, or should only rely on the
15994     * rendering engine.
15995     *
15996     * @param item item with custom (custom) cursor already set on
15997     * @param engine_only Use @c EINA_TRUE to have cursors looked for
15998     * only on those provided by the rendering engine, @c EINA_FALSE to
15999     * have them searched on the widget's theme, as well.
16000     *
16001     * @note This call is of use only if you've set a custom cursor
16002     * for list items, with elm_list_item_cursor_set().
16003     *
16004     * @note By default, cursors will only be looked for between those
16005     * provided by the rendering engine.
16006     *
16007     * @ingroup List
16008     */
16009    EAPI void             elm_list_item_cursor_engine_only_set(Elm_List_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
16010
16011    /**
16012     * Get if the (custom) cursor for a given list item is being
16013     * searched in its theme, also, or is only relying on the rendering
16014     * engine.
16015     *
16016     * @param item a list item
16017     * @return @c EINA_TRUE, if cursors are being looked for only on
16018     * those provided by the rendering engine, @c EINA_FALSE if they
16019     * are being searched on the widget's theme, as well.
16020     *
16021     * @see elm_list_item_cursor_engine_only_set(), for more details
16022     *
16023     * @ingroup List
16024     */
16025    EAPI Eina_Bool        elm_list_item_cursor_engine_only_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
16026
16027    /**
16028     * @}
16029     */
16030
16031    /**
16032     * @defgroup Slider Slider
16033     * @ingroup Elementary
16034     *
16035     * @image html img/widget/slider/preview-00.png
16036     * @image latex img/widget/slider/preview-00.eps width=\textwidth
16037     *
16038     * The slider adds a dragable “slider” widget for selecting the value of
16039     * something within a range.
16040     *
16041     * A slider can be horizontal or vertical. It can contain an Icon and has a
16042     * primary label as well as a units label (that is formatted with floating
16043     * point values and thus accepts a printf-style format string, like
16044     * “%1.2f units”. There is also an indicator string that may be somewhere
16045     * else (like on the slider itself) that also accepts a format string like
16046     * units. Label, Icon Unit and Indicator strings/objects are optional.
16047     *
16048     * A slider may be inverted which means values invert, with high vales being
16049     * on the left or top and low values on the right or bottom (as opposed to
16050     * normally being low on the left or top and high on the bottom and right).
16051     *
16052     * The slider should have its minimum and maximum values set by the
16053     * application with  elm_slider_min_max_set() and value should also be set by
16054     * the application before use with  elm_slider_value_set(). The span of the
16055     * slider is its length (horizontally or vertically). This will be scaled by
16056     * the object or applications scaling factor. At any point code can query the
16057     * slider for its value with elm_slider_value_get().
16058     *
16059     * Smart callbacks one can listen to:
16060     * - "changed" - Whenever the slider value is changed by the user.
16061     * - "slider,drag,start" - dragging the slider indicator around has started.
16062     * - "slider,drag,stop" - dragging the slider indicator around has stopped.
16063     * - "delay,changed" - A short time after the value is changed by the user.
16064     * This will be called only when the user stops dragging for
16065     * a very short period or when they release their
16066     * finger/mouse, so it avoids possibly expensive reactions to
16067     * the value change.
16068     *
16069     * Available styles for it:
16070     * - @c "default"
16071     *
16072     * Here is an example on its usage:
16073     * @li @ref slider_example
16074     */
16075
16076    /**
16077     * @addtogroup Slider
16078     * @{
16079     */
16080
16081    /**
16082     * Add a new slider widget to the given parent Elementary
16083     * (container) object.
16084     *
16085     * @param parent The parent object.
16086     * @return a new slider widget handle or @c NULL, on errors.
16087     *
16088     * This function inserts a new slider widget on the canvas.
16089     *
16090     * @ingroup Slider
16091     */
16092    EAPI Evas_Object       *elm_slider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16093
16094    /**
16095     * Set the label of a given slider widget
16096     *
16097     * @param obj The progress bar object
16098     * @param label The text label string, in UTF-8
16099     *
16100     * @ingroup Slider
16101     * @deprecated use elm_object_text_set() instead.
16102     */
16103    EINA_DEPRECATED EAPI void               elm_slider_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
16104
16105    /**
16106     * Get the label of a given slider widget
16107     *
16108     * @param obj The progressbar object
16109     * @return The text label string, in UTF-8
16110     *
16111     * @ingroup Slider
16112     * @deprecated use elm_object_text_get() instead.
16113     */
16114    EINA_DEPRECATED EAPI const char        *elm_slider_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16115
16116    /**
16117     * Set the icon object of the slider object.
16118     *
16119     * @param obj The slider object.
16120     * @param icon The icon object.
16121     *
16122     * On horizontal mode, icon is placed at left, and on vertical mode,
16123     * placed at top.
16124     *
16125     * @note Once the icon object is set, a previously set one will be deleted.
16126     * If you want to keep that old content object, use the
16127     * elm_slider_icon_unset() function.
16128     *
16129     * @warning If the object being set does not have minimum size hints set,
16130     * it won't get properly displayed.
16131     *
16132     * @ingroup Slider
16133     */
16134    EAPI void               elm_slider_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
16135
16136    /**
16137     * Unset an icon set on a given slider widget.
16138     *
16139     * @param obj The slider object.
16140     * @return The icon object that was being used, if any was set, or
16141     * @c NULL, otherwise (and on errors).
16142     *
16143     * On horizontal mode, icon is placed at left, and on vertical mode,
16144     * placed at top.
16145     *
16146     * This call will unparent and return the icon object which was set
16147     * for this widget, previously, on success.
16148     *
16149     * @see elm_slider_icon_set() for more details
16150     * @see elm_slider_icon_get()
16151     *
16152     * @ingroup Slider
16153     */
16154    EAPI Evas_Object       *elm_slider_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
16155
16156    /**
16157     * Retrieve the icon object set for a given slider widget.
16158     *
16159     * @param obj The slider object.
16160     * @return The icon object's handle, if @p obj had one set, or @c NULL,
16161     * otherwise (and on errors).
16162     *
16163     * On horizontal mode, icon is placed at left, and on vertical mode,
16164     * placed at top.
16165     *
16166     * @see elm_slider_icon_set() for more details
16167     * @see elm_slider_icon_unset()
16168     *
16169     * @ingroup Slider
16170     */
16171    EAPI Evas_Object       *elm_slider_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16172
16173    /**
16174     * Set the end object of the slider object.
16175     *
16176     * @param obj The slider object.
16177     * @param end The end object.
16178     *
16179     * On horizontal mode, end is placed at left, and on vertical mode,
16180     * placed at bottom.
16181     *
16182     * @note Once the icon object is set, a previously set one will be deleted.
16183     * If you want to keep that old content object, use the
16184     * elm_slider_end_unset() function.
16185     *
16186     * @warning If the object being set does not have minimum size hints set,
16187     * it won't get properly displayed.
16188     *
16189     * @ingroup Slider
16190     */
16191    EAPI void               elm_slider_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1);
16192
16193    /**
16194     * Unset an end object set on a given slider widget.
16195     *
16196     * @param obj The slider object.
16197     * @return The end object that was being used, if any was set, or
16198     * @c NULL, otherwise (and on errors).
16199     *
16200     * On horizontal mode, end is placed at left, and on vertical mode,
16201     * placed at bottom.
16202     *
16203     * This call will unparent and return the icon object which was set
16204     * for this widget, previously, on success.
16205     *
16206     * @see elm_slider_end_set() for more details.
16207     * @see elm_slider_end_get()
16208     *
16209     * @ingroup Slider
16210     */
16211    EAPI Evas_Object       *elm_slider_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
16212
16213    /**
16214     * Retrieve the end object set for a given slider widget.
16215     *
16216     * @param obj The slider object.
16217     * @return The end object's handle, if @p obj had one set, or @c NULL,
16218     * otherwise (and on errors).
16219     *
16220     * On horizontal mode, icon is placed at right, and on vertical mode,
16221     * placed at bottom.
16222     *
16223     * @see elm_slider_end_set() for more details.
16224     * @see elm_slider_end_unset()
16225     *
16226     * @ingroup Slider
16227     */
16228    EAPI Evas_Object       *elm_slider_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16229
16230    /**
16231     * Set the (exact) length of the bar region of a given slider widget.
16232     *
16233     * @param obj The slider object.
16234     * @param size The length of the slider's bar region.
16235     *
16236     * This sets the minimum width (when in horizontal mode) or height
16237     * (when in vertical mode) of the actual bar area of the slider
16238     * @p obj. This in turn affects the object's minimum size. Use
16239     * this when you're not setting other size hints expanding on the
16240     * given direction (like weight and alignment hints) and you would
16241     * like it to have a specific size.
16242     *
16243     * @note Icon, end, label, indicator and unit text around @p obj
16244     * will require their
16245     * own space, which will make @p obj to require more the @p size,
16246     * actually.
16247     *
16248     * @see elm_slider_span_size_get()
16249     *
16250     * @ingroup Slider
16251     */
16252    EAPI void               elm_slider_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
16253
16254    /**
16255     * Get the length set for the bar region of a given slider widget
16256     *
16257     * @param obj The slider object.
16258     * @return The length of the slider's bar region.
16259     *
16260     * If that size was not set previously, with
16261     * elm_slider_span_size_set(), this call will return @c 0.
16262     *
16263     * @ingroup Slider
16264     */
16265    EAPI Evas_Coord         elm_slider_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16266
16267    /**
16268     * Set the format string for the unit label.
16269     *
16270     * @param obj The slider object.
16271     * @param format The format string for the unit display.
16272     *
16273     * Unit label is displayed all the time, if set, after slider's bar.
16274     * In horizontal mode, at right and in vertical mode, at bottom.
16275     *
16276     * If @c NULL, unit label won't be visible. If not it sets the format
16277     * string for the label text. To the label text is provided a floating point
16278     * value, so the label text can display up to 1 floating point value.
16279     * Note that this is optional.
16280     *
16281     * Use a format string such as "%1.2f meters" for example, and it will
16282     * display values like: "3.14 meters" for a value equal to 3.14159.
16283     *
16284     * Default is unit label disabled.
16285     *
16286     * @see elm_slider_indicator_format_get()
16287     *
16288     * @ingroup Slider
16289     */
16290    EAPI void               elm_slider_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
16291
16292    /**
16293     * Get the unit label format of the slider.
16294     *
16295     * @param obj The slider object.
16296     * @return The unit label format string in UTF-8.
16297     *
16298     * Unit label is displayed all the time, if set, after slider's bar.
16299     * In horizontal mode, at right and in vertical mode, at bottom.
16300     *
16301     * @see elm_slider_unit_format_set() for more
16302     * information on how this works.
16303     *
16304     * @ingroup Slider
16305     */
16306    EAPI const char        *elm_slider_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16307
16308    /**
16309     * Set the format string for the indicator label.
16310     *
16311     * @param obj The slider object.
16312     * @param indicator The format string for the indicator display.
16313     *
16314     * The slider may display its value somewhere else then unit label,
16315     * for example, above the slider knob that is dragged around. This function
16316     * sets the format string used for this.
16317     *
16318     * If @c NULL, indicator label won't be visible. If not it sets the format
16319     * string for the label text. To the label text is provided a floating point
16320     * value, so the label text can display up to 1 floating point value.
16321     * Note that this is optional.
16322     *
16323     * Use a format string such as "%1.2f meters" for example, and it will
16324     * display values like: "3.14 meters" for a value equal to 3.14159.
16325     *
16326     * Default is indicator label disabled.
16327     *
16328     * @see elm_slider_indicator_format_get()
16329     *
16330     * @ingroup Slider
16331     */
16332    EAPI void               elm_slider_indicator_format_set(Evas_Object *obj, const char *indicator) EINA_ARG_NONNULL(1);
16333
16334    /**
16335     * Get the indicator label format of the slider.
16336     *
16337     * @param obj The slider object.
16338     * @return The indicator label format string in UTF-8.
16339     *
16340     * The slider may display its value somewhere else then unit label,
16341     * for example, above the slider knob that is dragged around. This function
16342     * gets the format string used for this.
16343     *
16344     * @see elm_slider_indicator_format_set() for more
16345     * information on how this works.
16346     *
16347     * @ingroup Slider
16348     */
16349    EAPI const char        *elm_slider_indicator_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16350
16351    /**
16352     * Set the format function pointer for the indicator label
16353     *
16354     * @param obj The slider object.
16355     * @param func The indicator format function.
16356     * @param free_func The freeing function for the format string.
16357     *
16358     * Set the callback function to format the indicator string.
16359     *
16360     * @see elm_slider_indicator_format_set() for more info on how this works.
16361     *
16362     * @ingroup Slider
16363     */
16364   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);
16365
16366   /**
16367    * Set the format function pointer for the units label
16368    *
16369    * @param obj The slider object.
16370    * @param func The units format function.
16371    * @param free_func The freeing function for the format string.
16372    *
16373    * Set the callback function to format the indicator string.
16374    *
16375    * @see elm_slider_units_format_set() for more info on how this works.
16376    *
16377    * @ingroup Slider
16378    */
16379   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);
16380
16381   /**
16382    * Set the orientation of a given slider widget.
16383    *
16384    * @param obj The slider object.
16385    * @param horizontal Use @c EINA_TRUE to make @p obj to be
16386    * @b horizontal, @c EINA_FALSE to make it @b vertical.
16387    *
16388    * Use this function to change how your slider is to be
16389    * disposed: vertically or horizontally.
16390    *
16391    * By default it's displayed horizontally.
16392    *
16393    * @see elm_slider_horizontal_get()
16394    *
16395    * @ingroup Slider
16396    */
16397    EAPI void               elm_slider_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
16398
16399    /**
16400     * Retrieve the orientation of a given slider widget
16401     *
16402     * @param obj The slider object.
16403     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
16404     * @c EINA_FALSE if it's @b vertical (and on errors).
16405     *
16406     * @see elm_slider_horizontal_set() for more details.
16407     *
16408     * @ingroup Slider
16409     */
16410    EAPI Eina_Bool          elm_slider_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16411
16412    /**
16413     * Set the minimum and maximum values for the slider.
16414     *
16415     * @param obj The slider object.
16416     * @param min The minimum value.
16417     * @param max The maximum value.
16418     *
16419     * Define the allowed range of values to be selected by the user.
16420     *
16421     * If actual value is less than @p min, it will be updated to @p min. If it
16422     * is bigger then @p max, will be updated to @p max. Actual value can be
16423     * get with elm_slider_value_get().
16424     *
16425     * By default, min is equal to 0.0, and max is equal to 1.0.
16426     *
16427     * @warning Maximum must be greater than minimum, otherwise behavior
16428     * is undefined.
16429     *
16430     * @see elm_slider_min_max_get()
16431     *
16432     * @ingroup Slider
16433     */
16434    EAPI void               elm_slider_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
16435
16436    /**
16437     * Get the minimum and maximum values of the slider.
16438     *
16439     * @param obj The slider object.
16440     * @param min Pointer where to store the minimum value.
16441     * @param max Pointer where to store the maximum value.
16442     *
16443     * @note If only one value is needed, the other pointer can be passed
16444     * as @c NULL.
16445     *
16446     * @see elm_slider_min_max_set() for details.
16447     *
16448     * @ingroup Slider
16449     */
16450    EAPI void               elm_slider_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
16451
16452    /**
16453     * Set the value the slider displays.
16454     *
16455     * @param obj The slider object.
16456     * @param val The value to be displayed.
16457     *
16458     * Value will be presented on the unit label following format specified with
16459     * elm_slider_unit_format_set() and on indicator with
16460     * elm_slider_indicator_format_set().
16461     *
16462     * @warning The value must to be between min and max values. This values
16463     * are set by elm_slider_min_max_set().
16464     *
16465     * @see elm_slider_value_get()
16466     * @see elm_slider_unit_format_set()
16467     * @see elm_slider_indicator_format_set()
16468     * @see elm_slider_min_max_set()
16469     *
16470     * @ingroup Slider
16471     */
16472    EAPI void               elm_slider_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
16473
16474    /**
16475     * Get the value displayed by the spinner.
16476     *
16477     * @param obj The spinner object.
16478     * @return The value displayed.
16479     *
16480     * @see elm_spinner_value_set() for details.
16481     *
16482     * @ingroup Slider
16483     */
16484    EAPI double             elm_slider_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16485
16486    /**
16487     * Invert a given slider widget's displaying values order
16488     *
16489     * @param obj The slider object.
16490     * @param inverted Use @c EINA_TRUE to make @p obj inverted,
16491     * @c EINA_FALSE to bring it back to default, non-inverted values.
16492     *
16493     * A slider may be @b inverted, in which state it gets its
16494     * values inverted, with high vales being on the left or top and
16495     * low values on the right or bottom, as opposed to normally have
16496     * the low values on the former and high values on the latter,
16497     * respectively, for horizontal and vertical modes.
16498     *
16499     * @see elm_slider_inverted_get()
16500     *
16501     * @ingroup Slider
16502     */
16503    EAPI void               elm_slider_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
16504
16505    /**
16506     * Get whether a given slider widget's displaying values are
16507     * inverted or not.
16508     *
16509     * @param obj The slider object.
16510     * @return @c EINA_TRUE, if @p obj has inverted values,
16511     * @c EINA_FALSE otherwise (and on errors).
16512     *
16513     * @see elm_slider_inverted_set() for more details.
16514     *
16515     * @ingroup Slider
16516     */
16517    EAPI Eina_Bool          elm_slider_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16518
16519    /**
16520     * Set whether to enlarge slider indicator (augmented knob) or not.
16521     *
16522     * @param obj The slider object.
16523     * @param show @c EINA_TRUE will make it enlarge, @c EINA_FALSE will
16524     * let the knob always at default size.
16525     *
16526     * By default, indicator will be bigger while dragged by the user.
16527     *
16528     * @warning It won't display values set with
16529     * elm_slider_indicator_format_set() if you disable indicator.
16530     *
16531     * @ingroup Slider
16532     */
16533    EAPI void               elm_slider_indicator_show_set(Evas_Object *obj, Eina_Bool show) EINA_ARG_NONNULL(1);
16534
16535    /**
16536     * Get whether a given slider widget's enlarging indicator or not.
16537     *
16538     * @param obj The slider object.
16539     * @return @c EINA_TRUE, if @p obj is enlarging indicator, or
16540     * @c EINA_FALSE otherwise (and on errors).
16541     *
16542     * @see elm_slider_indicator_show_set() for details.
16543     *
16544     * @ingroup Slider
16545     */
16546    EAPI Eina_Bool          elm_slider_indicator_show_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16547
16548    /**
16549     * @}
16550     */
16551
16552    /**
16553     * @addtogroup Actionslider Actionslider
16554     *
16555     * @image html img/widget/actionslider/preview-00.png
16556     * @image latex img/widget/actionslider/preview-00.eps
16557     *
16558     * A actionslider is a switcher for 2 or 3 labels with customizable magnet
16559     * properties. The indicator is the element the user drags to choose a label.
16560     * When the position is set with magnet, when released the indicator will be
16561     * moved to it if it's nearest the magnetized position.
16562     *
16563     * @note By default all positions are set as enabled.
16564     *
16565     * Signals that you can add callbacks for are:
16566     *
16567     * "selected" - when user selects an enabled position (the label is passed
16568     *              as event info)".
16569     * @n
16570     * "pos_changed" - when the indicator reaches any of the positions("left",
16571     *                 "right" or "center").
16572     *
16573     * See an example of actionslider usage @ref actionslider_example_page "here"
16574     * @{
16575     */
16576    typedef enum _Elm_Actionslider_Pos
16577      {
16578         ELM_ACTIONSLIDER_NONE = 0,
16579         ELM_ACTIONSLIDER_LEFT = 1 << 0,
16580         ELM_ACTIONSLIDER_CENTER = 1 << 1,
16581         ELM_ACTIONSLIDER_RIGHT = 1 << 2,
16582         ELM_ACTIONSLIDER_ALL = (1 << 3) -1
16583      } Elm_Actionslider_Pos;
16584
16585    /**
16586     * Add a new actionslider to the parent.
16587     *
16588     * @param parent The parent object
16589     * @return The new actionslider object or NULL if it cannot be created
16590     */
16591    EAPI Evas_Object          *elm_actionslider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16592    /**
16593     * Set actionslider labels.
16594     *
16595     * @param obj The actionslider object
16596     * @param left_label The label to be set on the left.
16597     * @param center_label The label to be set on the center.
16598     * @param right_label The label to be set on the right.
16599     * @deprecated use elm_object_text_set() instead.
16600     */
16601    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);
16602    /**
16603     * Get actionslider labels.
16604     *
16605     * @param obj The actionslider object
16606     * @param left_label A char** to place the left_label of @p obj into.
16607     * @param center_label A char** to place the center_label of @p obj into.
16608     * @param right_label A char** to place the right_label of @p obj into.
16609     * @deprecated use elm_object_text_set() instead.
16610     */
16611    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);
16612    /**
16613     * Get actionslider selected label.
16614     *
16615     * @param obj The actionslider object
16616     * @return The selected label
16617     */
16618    EAPI const char           *elm_actionslider_selected_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16619    /**
16620     * Set actionslider indicator position.
16621     *
16622     * @param obj The actionslider object.
16623     * @param pos The position of the indicator.
16624     */
16625    EAPI void                  elm_actionslider_indicator_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
16626    /**
16627     * Get actionslider indicator position.
16628     *
16629     * @param obj The actionslider object.
16630     * @return The position of the indicator.
16631     */
16632    EAPI Elm_Actionslider_Pos  elm_actionslider_indicator_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16633    /**
16634     * Set actionslider magnet position. To make multiple positions magnets @c or
16635     * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT)
16636     *
16637     * @param obj The actionslider object.
16638     * @param pos Bit mask indicating the magnet positions.
16639     */
16640    EAPI void                  elm_actionslider_magnet_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
16641    /**
16642     * Get actionslider magnet position.
16643     *
16644     * @param obj The actionslider object.
16645     * @return The positions with magnet property.
16646     */
16647    EAPI Elm_Actionslider_Pos  elm_actionslider_magnet_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16648    /**
16649     * Set actionslider enabled position. To set multiple positions as enabled @c or
16650     * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT).
16651     *
16652     * @note All the positions are enabled by default.
16653     *
16654     * @param obj The actionslider object.
16655     * @param pos Bit mask indicating the enabled positions.
16656     */
16657    EAPI void                  elm_actionslider_enabled_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
16658    /**
16659     * Get actionslider enabled position.
16660     *
16661     * @param obj The actionslider object.
16662     * @return The enabled positions.
16663     */
16664    EAPI Elm_Actionslider_Pos  elm_actionslider_enabled_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16665    /**
16666     * Set the label used on the indicator.
16667     *
16668     * @param obj The actionslider object
16669     * @param label The label to be set on the indicator.
16670     * @deprecated use elm_object_text_set() instead.
16671     */
16672    EINA_DEPRECATED EAPI void                  elm_actionslider_indicator_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
16673    /**
16674     * Get the label used on the indicator object.
16675     *
16676     * @param obj The actionslider object
16677     * @return The indicator label
16678     * @deprecated use elm_object_text_get() instead.
16679     */
16680    EINA_DEPRECATED EAPI const char           *elm_actionslider_indicator_label_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
16681    /**
16682     * @}
16683     */
16684
16685    /**
16686     * @defgroup Genlist Genlist
16687     *
16688     * @image html img/widget/genlist/preview-00.png
16689     * @image latex img/widget/genlist/preview-00.eps
16690     * @image html img/genlist.png
16691     * @image latex img/genlist.eps
16692     *
16693     * This widget aims to have more expansive list than the simple list in
16694     * Elementary that could have more flexible items and allow many more entries
16695     * while still being fast and low on memory usage. At the same time it was
16696     * also made to be able to do tree structures. But the price to pay is more
16697     * complexity when it comes to usage. If all you want is a simple list with
16698     * icons and a single label, use the normal @ref List object.
16699     *
16700     * Genlist has a fairly large API, mostly because it's relatively complex,
16701     * trying to be both expansive, powerful and efficient. First we will begin
16702     * an overview on the theory behind genlist.
16703     *
16704     * @section Genlist_Item_Class Genlist item classes - creating items
16705     *
16706     * In order to have the ability to add and delete items on the fly, genlist
16707     * implements a class (callback) system where the application provides a
16708     * structure with information about that type of item (genlist may contain
16709     * multiple different items with different classes, states and styles).
16710     * Genlist will call the functions in this struct (methods) when an item is
16711     * "realized" (i.e., created dynamically, while the user is scrolling the
16712     * grid). All objects will simply be deleted when no longer needed with
16713     * evas_object_del(). The #Elm_Genlist_Item_Class structure contains the
16714     * following members:
16715     * - @c item_style - This is a constant string and simply defines the name
16716     *   of the item style. It @b must be specified and the default should be @c
16717     *   "default".
16718     * - @c mode_item_style - This is a constant string and simply defines the
16719     *   name of the style that will be used for mode animations. It can be left
16720     *   as @c NULL if you don't plan to use Genlist mode. See
16721     *   elm_genlist_item_mode_set() for more info.
16722     *
16723     * - @c func - A struct with pointers to functions that will be called when
16724     *   an item is going to be actually created. All of them receive a @c data
16725     *   parameter that will point to the same data passed to
16726     *   elm_genlist_item_append() and related item creation functions, and a @c
16727     *   obj parameter that points to the genlist object itself.
16728     *
16729     * The function pointers inside @c func are @c label_get, @c icon_get, @c
16730     * state_get and @c del. The 3 first functions also receive a @c part
16731     * parameter described below. A brief description of these functions follows:
16732     *
16733     * - @c label_get - The @c part parameter is the name string of one of the
16734     *   existing text parts in the Edje group implementing the item's theme.
16735     *   This function @b must return a strdup'()ed string, as the caller will
16736     *   free() it when done. See #Elm_Genlist_Item_Label_Get_Cb.
16737     * - @c icon_get - The @c part parameter is the name string of one of the
16738     *   existing (icon) swallow parts in the Edje group implementing the item's
16739     *   theme. It must return @c NULL, when no icon is desired, or a valid
16740     *   object handle, otherwise.  The object will be deleted by the genlist on
16741     *   its deletion or when the item is "unrealized".  See
16742     *   #Elm_Genlist_Item_Icon_Get_Cb.
16743     * - @c func.state_get - The @c part parameter is the name string of one of
16744     *   the state parts in the Edje group implementing the item's theme. Return
16745     *   @c EINA_FALSE for false/off or @c EINA_TRUE for true/on. Genlists will
16746     *   emit a signal to its theming Edje object with @c "elm,state,XXX,active"
16747     *   and @c "elm" as "emission" and "source" arguments, respectively, when
16748     *   the state is true (the default is false), where @c XXX is the name of
16749     *   the (state) part.  See #Elm_Genlist_Item_State_Get_Cb.
16750     * - @c func.del - This is intended for use when genlist items are deleted,
16751     *   so any data attached to the item (e.g. its data parameter on creation)
16752     *   can be deleted. See #Elm_Genlist_Item_Del_Cb.
16753     *
16754     * available item styles:
16755     * - default
16756     * - default_style - The text part is a textblock
16757     *
16758     * @image html img/widget/genlist/preview-04.png
16759     * @image latex img/widget/genlist/preview-04.eps
16760     *
16761     * - double_label
16762     *
16763     * @image html img/widget/genlist/preview-01.png
16764     * @image latex img/widget/genlist/preview-01.eps
16765     *
16766     * - icon_top_text_bottom
16767     *
16768     * @image html img/widget/genlist/preview-02.png
16769     * @image latex img/widget/genlist/preview-02.eps
16770     *
16771     * - group_index
16772     *
16773     * @image html img/widget/genlist/preview-03.png
16774     * @image latex img/widget/genlist/preview-03.eps
16775     *
16776     * @section Genlist_Items Structure of items
16777     *
16778     * An item in a genlist can have 0 or more text labels (they can be regular
16779     * text or textblock Evas objects - that's up to the style to determine), 0
16780     * or more icons (which are simply objects swallowed into the genlist item's
16781     * theming Edje object) and 0 or more <b>boolean states</b>, which have the
16782     * behavior left to the user to define. The Edje part names for each of
16783     * these properties will be looked up, in the theme file for the genlist,
16784     * under the Edje (string) data items named @c "labels", @c "icons" and @c
16785     * "states", respectively. For each of those properties, if more than one
16786     * part is provided, they must have names listed separated by spaces in the
16787     * data fields. For the default genlist item theme, we have @b one label
16788     * part (@c "elm.text"), @b two icon parts (@c "elm.swalllow.icon" and @c
16789     * "elm.swallow.end") and @b no state parts.
16790     *
16791     * A genlist item may be at one of several styles. Elementary provides one
16792     * by default - "default", but this can be extended by system or application
16793     * custom themes/overlays/extensions (see @ref Theme "themes" for more
16794     * details).
16795     *
16796     * @section Genlist_Manipulation Editing and Navigating
16797     *
16798     * Items can be added by several calls. All of them return a @ref
16799     * Elm_Genlist_Item handle that is an internal member inside the genlist.
16800     * They all take a data parameter that is meant to be used for a handle to
16801     * the applications internal data (eg the struct with the original item
16802     * data). The parent parameter is the parent genlist item this belongs to if
16803     * it is a tree or an indexed group, and NULL if there is no parent. The
16804     * flags can be a bitmask of #ELM_GENLIST_ITEM_NONE,
16805     * #ELM_GENLIST_ITEM_SUBITEMS and #ELM_GENLIST_ITEM_GROUP. If
16806     * #ELM_GENLIST_ITEM_SUBITEMS is set then this item is displayed as an item
16807     * that is able to expand and have child items.  If ELM_GENLIST_ITEM_GROUP
16808     * is set then this item is group index item that is displayed at the top
16809     * until the next group comes. The func parameter is a convenience callback
16810     * that is called when the item is selected and the data parameter will be
16811     * the func_data parameter, obj be the genlist object and event_info will be
16812     * the genlist item.
16813     *
16814     * elm_genlist_item_append() adds an item to the end of the list, or if
16815     * there is a parent, to the end of all the child items of the parent.
16816     * elm_genlist_item_prepend() is the same but adds to the beginning of
16817     * the list or children list. elm_genlist_item_insert_before() inserts at
16818     * item before another item and elm_genlist_item_insert_after() inserts after
16819     * the indicated item.
16820     *
16821     * The application can clear the list with elm_genlist_clear() which deletes
16822     * all the items in the list and elm_genlist_item_del() will delete a specific
16823     * item. elm_genlist_item_subitems_clear() will clear all items that are
16824     * children of the indicated parent item.
16825     *
16826     * To help inspect list items you can jump to the item at the top of the list
16827     * with elm_genlist_first_item_get() which will return the item pointer, and
16828     * similarly elm_genlist_last_item_get() gets the item at the end of the list.
16829     * elm_genlist_item_next_get() and elm_genlist_item_prev_get() get the next
16830     * and previous items respectively relative to the indicated item. Using
16831     * these calls you can walk the entire item list/tree. Note that as a tree
16832     * the items are flattened in the list, so elm_genlist_item_parent_get() will
16833     * let you know which item is the parent (and thus know how to skip them if
16834     * wanted).
16835     *
16836     * @section Genlist_Muti_Selection Multi-selection
16837     *
16838     * If the application wants multiple items to be able to be selected,
16839     * elm_genlist_multi_select_set() can enable this. If the list is
16840     * single-selection only (the default), then elm_genlist_selected_item_get()
16841     * will return the selected item, if any, or NULL I none is selected. If the
16842     * list is multi-select then elm_genlist_selected_items_get() will return a
16843     * list (that is only valid as long as no items are modified (added, deleted,
16844     * selected or unselected)).
16845     *
16846     * @section Genlist_Usage_Hints Usage hints
16847     *
16848     * There are also convenience functions. elm_genlist_item_genlist_get() will
16849     * return the genlist object the item belongs to. elm_genlist_item_show()
16850     * will make the scroller scroll to show that specific item so its visible.
16851     * elm_genlist_item_data_get() returns the data pointer set by the item
16852     * creation functions.
16853     *
16854     * If an item changes (state of boolean changes, label or icons change),
16855     * then use elm_genlist_item_update() to have genlist update the item with
16856     * the new state. Genlist will re-realize the item thus call the functions
16857     * in the _Elm_Genlist_Item_Class for that item.
16858     *
16859     * To programmatically (un)select an item use elm_genlist_item_selected_set().
16860     * To get its selected state use elm_genlist_item_selected_get(). Similarly
16861     * to expand/contract an item and get its expanded state, use
16862     * elm_genlist_item_expanded_set() and elm_genlist_item_expanded_get(). And
16863     * again to make an item disabled (unable to be selected and appear
16864     * differently) use elm_genlist_item_disabled_set() to set this and
16865     * elm_genlist_item_disabled_get() to get the disabled state.
16866     *
16867     * In general to indicate how the genlist should expand items horizontally to
16868     * fill the list area, use elm_genlist_horizontal_set(). Valid modes are
16869     * ELM_LIST_LIMIT and ELM_LIST_SCROLL. The default is ELM_LIST_SCROLL. This
16870     * mode means that if items are too wide to fit, the scroller will scroll
16871     * horizontally. Otherwise items are expanded to fill the width of the
16872     * viewport of the scroller. If it is ELM_LIST_LIMIT, items will be expanded
16873     * to the viewport width and limited to that size. This can be combined with
16874     * a different style that uses edjes' ellipsis feature (cutting text off like
16875     * this: "tex...").
16876     *
16877     * Items will only call their selection func and callback when first becoming
16878     * selected. Any further clicks will do nothing, unless you enable always
16879     * select with elm_genlist_always_select_mode_set(). This means even if
16880     * selected, every click will make the selected callbacks be called.
16881     * elm_genlist_no_select_mode_set() will turn off the ability to select
16882     * items entirely and they will neither appear selected nor call selected
16883     * callback functions.
16884     *
16885     * Remember that you can create new styles and add your own theme augmentation
16886     * per application with elm_theme_extension_add(). If you absolutely must
16887     * have a specific style that overrides any theme the user or system sets up
16888     * you can use elm_theme_overlay_add() to add such a file.
16889     *
16890     * @section Genlist_Implementation Implementation
16891     *
16892     * Evas tracks every object you create. Every time it processes an event
16893     * (mouse move, down, up etc.) it needs to walk through objects and find out
16894     * what event that affects. Even worse every time it renders display updates,
16895     * in order to just calculate what to re-draw, it needs to walk through many
16896     * many many objects. Thus, the more objects you keep active, the more
16897     * overhead Evas has in just doing its work. It is advisable to keep your
16898     * active objects to the minimum working set you need. Also remember that
16899     * object creation and deletion carries an overhead, so there is a
16900     * middle-ground, which is not easily determined. But don't keep massive lists
16901     * of objects you can't see or use. Genlist does this with list objects. It
16902     * creates and destroys them dynamically as you scroll around. It groups them
16903     * into blocks so it can determine the visibility etc. of a whole block at
16904     * once as opposed to having to walk the whole list. This 2-level list allows
16905     * for very large numbers of items to be in the list (tests have used up to
16906     * 2,000,000 items). Also genlist employs a queue for adding items. As items
16907     * may be different sizes, every item added needs to be calculated as to its
16908     * size and thus this presents a lot of overhead on populating the list, this
16909     * genlist employs a queue. Any item added is queued and spooled off over
16910     * time, actually appearing some time later, so if your list has many members
16911     * you may find it takes a while for them to all appear, with your process
16912     * consuming a lot of CPU while it is busy spooling.
16913     *
16914     * Genlist also implements a tree structure, but it does so with callbacks to
16915     * the application, with the application filling in tree structures when
16916     * requested (allowing for efficient building of a very deep tree that could
16917     * even be used for file-management). See the above smart signal callbacks for
16918     * details.
16919     *
16920     * @section Genlist_Smart_Events Genlist smart events
16921     *
16922     * Signals that you can add callbacks for are:
16923     * - @c "activated" - The user has double-clicked or pressed
16924     *   (enter|return|spacebar) on an item. The @c event_info parameter is the
16925     *   item that was activated.
16926     * - @c "clicked,double" - The user has double-clicked an item.  The @c
16927     *   event_info parameter is the item that was double-clicked.
16928     * - @c "selected" - This is called when a user has made an item selected.
16929     *   The event_info parameter is the genlist item that was selected.
16930     * - @c "unselected" - This is called when a user has made an item
16931     *   unselected. The event_info parameter is the genlist item that was
16932     *   unselected.
16933     * - @c "expanded" - This is called when elm_genlist_item_expanded_set() is
16934     *   called and the item is now meant to be expanded. The event_info
16935     *   parameter is the genlist item that was indicated to expand.  It is the
16936     *   job of this callback to then fill in the child items.
16937     * - @c "contracted" - This is called when elm_genlist_item_expanded_set() is
16938     *   called and the item is now meant to be contracted. The event_info
16939     *   parameter is the genlist item that was indicated to contract. It is the
16940     *   job of this callback to then delete the child items.
16941     * - @c "expand,request" - This is called when a user has indicated they want
16942     *   to expand a tree branch item. The callback should decide if the item can
16943     *   expand (has any children) and then call elm_genlist_item_expanded_set()
16944     *   appropriately to set the state. The event_info parameter is the genlist
16945     *   item that was indicated to expand.
16946     * - @c "contract,request" - This is called when a user has indicated they
16947     *   want to contract a tree branch item. The callback should decide if the
16948     *   item can contract (has any children) and then call
16949     *   elm_genlist_item_expanded_set() appropriately to set the state. The
16950     *   event_info parameter is the genlist item that was indicated to contract.
16951     * - @c "realized" - This is called when the item in the list is created as a
16952     *   real evas object. event_info parameter is the genlist item that was
16953     *   created. The object may be deleted at any time, so it is up to the
16954     *   caller to not use the object pointer from elm_genlist_item_object_get()
16955     *   in a way where it may point to freed objects.
16956     * - @c "unrealized" - This is called just before an item is unrealized.
16957     *   After this call icon objects provided will be deleted and the item
16958     *   object itself delete or be put into a floating cache.
16959     * - @c "drag,start,up" - This is called when the item in the list has been
16960     *   dragged (not scrolled) up.
16961     * - @c "drag,start,down" - This is called when the item in the list has been
16962     *   dragged (not scrolled) down.
16963     * - @c "drag,start,left" - This is called when the item in the list has been
16964     *   dragged (not scrolled) left.
16965     * - @c "drag,start,right" - This is called when the item in the list has
16966     *   been dragged (not scrolled) right.
16967     * - @c "drag,stop" - This is called when the item in the list has stopped
16968     *   being dragged.
16969     * - @c "drag" - This is called when the item in the list is being dragged.
16970     * - @c "longpressed" - This is called when the item is pressed for a certain
16971     *   amount of time. By default it's 1 second.
16972     * - @c "scroll,anim,start" - This is called when scrolling animation has
16973     *   started.
16974     * - @c "scroll,anim,stop" - This is called when scrolling animation has
16975     *   stopped.
16976     * - @c "scroll,drag,start" - This is called when dragging the content has
16977     *   started.
16978     * - @c "scroll,drag,stop" - This is called when dragging the content has
16979     *   stopped.
16980     * - @c "scroll,edge,top" - This is called when the genlist is scrolled until
16981     *   the top edge.
16982     * - @c "scroll,edge,bottom" - This is called when the genlist is scrolled
16983     *   until the bottom edge.
16984     * - @c "scroll,edge,left" - This is called when the genlist is scrolled
16985     *   until the left edge.
16986     * - @c "scroll,edge,right" - This is called when the genlist is scrolled
16987     *   until the right edge.
16988     * - @c "multi,swipe,left" - This is called when the genlist is multi-touch
16989     *   swiped left.
16990     * - @c "multi,swipe,right" - This is called when the genlist is multi-touch
16991     *   swiped right.
16992     * - @c "multi,swipe,up" - This is called when the genlist is multi-touch
16993     *   swiped up.
16994     * - @c "multi,swipe,down" - This is called when the genlist is multi-touch
16995     *   swiped down.
16996     * - @c "multi,pinch,out" - This is called when the genlist is multi-touch
16997     *   pinched out.  "- @c multi,pinch,in" - This is called when the genlist is
16998     *   multi-touch pinched in.
16999     * - @c "swipe" - This is called when the genlist is swiped.
17000     *
17001     * @section Genlist_Examples Examples
17002     *
17003     * Here is a list of examples that use the genlist, trying to show some of
17004     * its capabilities:
17005     * - @ref genlist_example_01
17006     * - @ref genlist_example_02
17007     * - @ref genlist_example_03
17008     * - @ref genlist_example_04
17009     * - @ref genlist_example_05
17010     */
17011
17012    /**
17013     * @addtogroup Genlist
17014     * @{
17015     */
17016
17017    /**
17018     * @enum _Elm_Genlist_Item_Flags
17019     * @typedef Elm_Genlist_Item_Flags
17020     *
17021     * Defines if the item is of any special type (has subitems or it's the
17022     * index of a group), or is just a simple item.
17023     *
17024     * @ingroup Genlist
17025     */
17026    typedef enum _Elm_Genlist_Item_Flags
17027      {
17028         ELM_GENLIST_ITEM_NONE = 0, /**< simple item */
17029         ELM_GENLIST_ITEM_SUBITEMS = (1 << 0), /**< may expand and have child items */
17030         ELM_GENLIST_ITEM_GROUP = (1 << 1) /**< index of a group of items */
17031      } Elm_Genlist_Item_Flags;
17032    typedef struct _Elm_Genlist_Item_Class Elm_Genlist_Item_Class;  /**< Genlist item class definition structs */
17033    typedef struct _Elm_Genlist_Item       Elm_Genlist_Item; /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
17034    typedef struct _Elm_Genlist_Item_Class_Func Elm_Genlist_Item_Class_Func; /**< Class functions for genlist item class */
17035    typedef char        *(*Elm_Genlist_Item_Label_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< Label fetching class function for genlist item classes. */
17036    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. */
17037    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. */
17038    typedef void         (*Elm_Genlist_Item_Del_Cb)      (void *data, Evas_Object *obj); /**< Deletion class function for genlist item classes. */
17039    typedef void         (*GenlistItemMovedFunc)    (Evas_Object *obj, Elm_Genlist_Item *item, Elm_Genlist_Item *rel_item, Eina_Bool move_after); /** TODO: remove this by SeoZ **/
17040
17041    typedef char        *(*GenlistItemLabelGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_Label_Get_Cb instead. */
17042    typedef Evas_Object *(*GenlistItemIconGetFunc)  (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_Icon_Get_Cb instead. */
17043    typedef Eina_Bool    (*GenlistItemStateGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_State_Get_Cb instead. */
17044    typedef void         (*GenlistItemDelFunc)      (void *data, Evas_Object *obj) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_Del_Cb instead. */
17045
17046    /**
17047     * @struct _Elm_Genlist_Item_Class
17048     *
17049     * Genlist item class definition structs.
17050     *
17051     * This struct contains the style and fetching functions that will define the
17052     * contents of each item.
17053     *
17054     * @see @ref Genlist_Item_Class
17055     */
17056    struct _Elm_Genlist_Item_Class
17057      {
17058         const char                *item_style; /**< style of this class. */
17059         struct
17060           {
17061              Elm_Genlist_Item_Label_Get_Cb  label_get; /**< Label fetching class function for genlist item classes.*/
17062              Elm_Genlist_Item_Icon_Get_Cb   icon_get; /**< Icon fetching class function for genlist item classes. */
17063              Elm_Genlist_Item_State_Get_Cb  state_get; /**< State fetching class function for genlist item classes. */
17064              Elm_Genlist_Item_Del_Cb        del; /**< Deletion class function for genlist item classes. */
17065              GenlistItemMovedFunc     moved; // TODO: do not use this. change this to smart callback.
17066           } func;
17067         const char                *mode_item_style;
17068      };
17069
17070    /**
17071     * Add a new genlist widget to the given parent Elementary
17072     * (container) object
17073     *
17074     * @param parent The parent object
17075     * @return a new genlist widget handle or @c NULL, on errors
17076     *
17077     * This function inserts a new genlist widget on the canvas.
17078     *
17079     * @see elm_genlist_item_append()
17080     * @see elm_genlist_item_del()
17081     * @see elm_genlist_clear()
17082     *
17083     * @ingroup Genlist
17084     */
17085    EAPI Evas_Object      *elm_genlist_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
17086    /**
17087     * Remove all items from a given genlist widget.
17088     *
17089     * @param obj The genlist object
17090     *
17091     * This removes (and deletes) all items in @p obj, leaving it empty.
17092     *
17093     * @see elm_genlist_item_del(), to remove just one item.
17094     *
17095     * @ingroup Genlist
17096     */
17097    EAPI void              elm_genlist_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
17098    /**
17099     * Enable or disable multi-selection in the genlist
17100     *
17101     * @param obj The genlist object
17102     * @param multi Multi-select enable/disable. Default is disabled.
17103     *
17104     * This enables (@c EINA_TRUE) or disables (@c EINA_FALSE) multi-selection in
17105     * the list. This allows more than 1 item to be selected. To retrieve the list
17106     * of selected items, use elm_genlist_selected_items_get().
17107     *
17108     * @see elm_genlist_selected_items_get()
17109     * @see elm_genlist_multi_select_get()
17110     *
17111     * @ingroup Genlist
17112     */
17113    EAPI void              elm_genlist_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
17114    /**
17115     * Gets if multi-selection in genlist is enabled or disabled.
17116     *
17117     * @param obj The genlist object
17118     * @return Multi-select enabled/disabled
17119     * (@c EINA_TRUE = enabled/@c EINA_FALSE = disabled). Default is @c EINA_FALSE.
17120     *
17121     * @see elm_genlist_multi_select_set()
17122     *
17123     * @ingroup Genlist
17124     */
17125    EAPI Eina_Bool         elm_genlist_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17126    /**
17127     * This sets the horizontal stretching mode.
17128     *
17129     * @param obj The genlist object
17130     * @param mode The mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).
17131     *
17132     * This sets the mode used for sizing items horizontally. Valid modes
17133     * are #ELM_LIST_LIMIT and #ELM_LIST_SCROLL. The default is
17134     * ELM_LIST_SCROLL. This mode means that if items are too wide to fit,
17135     * the scroller will scroll horizontally. Otherwise items are expanded
17136     * to fill the width of the viewport of the scroller. If it is
17137     * ELM_LIST_LIMIT, items will be expanded to the viewport width and
17138     * limited to that size.
17139     *
17140     * @see elm_genlist_horizontal_get()
17141     *
17142     * @ingroup Genlist
17143     */
17144    EAPI void              elm_genlist_horizontal_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
17145    EINA_DEPRECATED EAPI void              elm_genlist_horizontal_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
17146    /**
17147     * Gets the horizontal stretching mode.
17148     *
17149     * @param obj The genlist object
17150     * @return The mode to use
17151     * (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL)
17152     *
17153     * @see elm_genlist_horizontal_set()
17154     *
17155     * @ingroup Genlist
17156     */
17157    EAPI Elm_List_Mode     elm_genlist_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17158    EINA_DEPRECATED EAPI Elm_List_Mode     elm_genlist_horizontal_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17159    /**
17160     * Set the always select mode.
17161     *
17162     * @param obj The genlist object
17163     * @param always_select The always select mode (@c EINA_TRUE = on, @c
17164     * EINA_FALSE = off). Default is @c EINA_FALSE.
17165     *
17166     * Items will only call their selection func and callback when first
17167     * becoming selected. Any further clicks will do nothing, unless you
17168     * enable always select with elm_genlist_always_select_mode_set().
17169     * This means that, even if selected, every click will make the selected
17170     * callbacks be called.
17171     *
17172     * @see elm_genlist_always_select_mode_get()
17173     *
17174     * @ingroup Genlist
17175     */
17176    EAPI void              elm_genlist_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
17177    /**
17178     * Get the always select mode.
17179     *
17180     * @param obj The genlist object
17181     * @return The always select mode
17182     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
17183     *
17184     * @see elm_genlist_always_select_mode_set()
17185     *
17186     * @ingroup Genlist
17187     */
17188    EAPI Eina_Bool         elm_genlist_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17189    /**
17190     * Enable/disable the no select mode.
17191     *
17192     * @param obj The genlist object
17193     * @param no_select The no select mode
17194     * (EINA_TRUE = on, EINA_FALSE = off)
17195     *
17196     * This will turn off the ability to select items entirely and they
17197     * will neither appear selected nor call selected callback functions.
17198     *
17199     * @see elm_genlist_no_select_mode_get()
17200     *
17201     * @ingroup Genlist
17202     */
17203    EAPI void              elm_genlist_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
17204    /**
17205     * Gets whether the no select mode is enabled.
17206     *
17207     * @param obj The genlist object
17208     * @return The no select mode
17209     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
17210     *
17211     * @see elm_genlist_no_select_mode_set()
17212     *
17213     * @ingroup Genlist
17214     */
17215    EAPI Eina_Bool         elm_genlist_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17216    /**
17217     * Enable/disable compress mode.
17218     *
17219     * @param obj The genlist object
17220     * @param compress The compress mode
17221     * (@c EINA_TRUE = on, @c EINA_FALSE = off). Default is @c EINA_FALSE.
17222     *
17223     * This will enable the compress mode where items are "compressed"
17224     * horizontally to fit the genlist scrollable viewport width. This is
17225     * special for genlist.  Do not rely on
17226     * elm_genlist_horizontal_set() being set to @c ELM_LIST_COMPRESS to
17227     * work as genlist needs to handle it specially.
17228     *
17229     * @see elm_genlist_compress_mode_get()
17230     *
17231     * @ingroup Genlist
17232     */
17233    EAPI void              elm_genlist_compress_mode_set(Evas_Object *obj, Eina_Bool compress) EINA_ARG_NONNULL(1);
17234    /**
17235     * Get whether the compress mode is enabled.
17236     *
17237     * @param obj The genlist object
17238     * @return The compress mode
17239     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
17240     *
17241     * @see elm_genlist_compress_mode_set()
17242     *
17243     * @ingroup Genlist
17244     */
17245    EAPI Eina_Bool         elm_genlist_compress_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17246    /**
17247     * Enable/disable height-for-width mode.
17248     *
17249     * @param obj The genlist object
17250     * @param setting The height-for-width mode (@c EINA_TRUE = on,
17251     * @c EINA_FALSE = off). Default is @c EINA_FALSE.
17252     *
17253     * With height-for-width mode the item width will be fixed (restricted
17254     * to a minimum of) to the list width when calculating its size in
17255     * order to allow the height to be calculated based on it. This allows,
17256     * for instance, text block to wrap lines if the Edje part is
17257     * configured with "text.min: 0 1".
17258     *
17259     * @note This mode will make list resize slower as it will have to
17260     *       recalculate every item height again whenever the list width
17261     *       changes!
17262     *
17263     * @note When height-for-width mode is enabled, it also enables
17264     *       compress mode (see elm_genlist_compress_mode_set()) and
17265     *       disables homogeneous (see elm_genlist_homogeneous_set()).
17266     *
17267     * @ingroup Genlist
17268     */
17269    EAPI void              elm_genlist_height_for_width_mode_set(Evas_Object *obj, Eina_Bool height_for_width) EINA_ARG_NONNULL(1);
17270    /**
17271     * Get whether the height-for-width mode is enabled.
17272     *
17273     * @param obj The genlist object
17274     * @return The height-for-width mode (@c EINA_TRUE = on, @c EINA_FALSE =
17275     * off)
17276     *
17277     * @ingroup Genlist
17278     */
17279    EAPI Eina_Bool         elm_genlist_height_for_width_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17280    /**
17281     * Enable/disable horizontal and vertical bouncing effect.
17282     *
17283     * @param obj The genlist object
17284     * @param h_bounce Allow bounce horizontally (@c EINA_TRUE = on, @c
17285     * EINA_FALSE = off). Default is @c EINA_FALSE.
17286     * @param v_bounce Allow bounce vertically (@c EINA_TRUE = on, @c
17287     * EINA_FALSE = off). Default is @c EINA_TRUE.
17288     *
17289     * This will enable or disable the scroller bouncing effect for the
17290     * genlist. See elm_scroller_bounce_set() for details.
17291     *
17292     * @see elm_scroller_bounce_set()
17293     * @see elm_genlist_bounce_get()
17294     *
17295     * @ingroup Genlist
17296     */
17297    EAPI void              elm_genlist_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
17298    /**
17299     * Get whether the horizontal and vertical bouncing effect is enabled.
17300     *
17301     * @param obj The genlist object
17302     * @param h_bounce Pointer to a bool to receive if the bounce horizontally
17303     * option is set.
17304     * @param v_bounce Pointer to a bool to receive if the bounce vertically
17305     * option is set.
17306     *
17307     * @see elm_genlist_bounce_set()
17308     *
17309     * @ingroup Genlist
17310     */
17311    EAPI void              elm_genlist_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
17312    /**
17313     * Enable/disable homogenous mode.
17314     *
17315     * @param obj The genlist object
17316     * @param homogeneous Assume the items within the genlist are of the
17317     * same height and width (EINA_TRUE = on, EINA_FALSE = off). Default is @c
17318     * EINA_FALSE.
17319     *
17320     * This will enable the homogeneous mode where items are of the same
17321     * height and width so that genlist may do the lazy-loading at its
17322     * maximum (which increases the performance for scrolling the list). This
17323     * implies 'compressed' mode.
17324     *
17325     * @see elm_genlist_compress_mode_set()
17326     * @see elm_genlist_homogeneous_get()
17327     *
17328     * @ingroup Genlist
17329     */
17330    EAPI void              elm_genlist_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
17331    /**
17332     * Get whether the homogenous mode is enabled.
17333     *
17334     * @param obj The genlist object
17335     * @return Assume the items within the genlist are of the same height
17336     * and width (EINA_TRUE = on, EINA_FALSE = off)
17337     *
17338     * @see elm_genlist_homogeneous_set()
17339     *
17340     * @ingroup Genlist
17341     */
17342    EAPI Eina_Bool         elm_genlist_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17343    /**
17344     * Set the maximum number of items within an item block
17345     *
17346     * @param obj The genlist object
17347     * @param n   Maximum number of items within an item block. Default is 32.
17348     *
17349     * This will configure the block count to tune to the target with
17350     * particular performance matrix.
17351     *
17352     * A block of objects will be used to reduce the number of operations due to
17353     * many objects in the screen. It can determine the visibility, or if the
17354     * object has changed, it theme needs to be updated, etc. doing this kind of
17355     * calculation to the entire block, instead of per object.
17356     *
17357     * The default value for the block count is enough for most lists, so unless
17358     * you know you will have a lot of objects visible in the screen at the same
17359     * time, don't try to change this.
17360     *
17361     * @see elm_genlist_block_count_get()
17362     * @see @ref Genlist_Implementation
17363     *
17364     * @ingroup Genlist
17365     */
17366    EAPI void              elm_genlist_block_count_set(Evas_Object *obj, int n) EINA_ARG_NONNULL(1);
17367    /**
17368     * Get the maximum number of items within an item block
17369     *
17370     * @param obj The genlist object
17371     * @return Maximum number of items within an item block
17372     *
17373     * @see elm_genlist_block_count_set()
17374     *
17375     * @ingroup Genlist
17376     */
17377    EAPI int               elm_genlist_block_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17378    /**
17379     * Set the timeout in seconds for the longpress event.
17380     *
17381     * @param obj The genlist object
17382     * @param timeout timeout in seconds. Default is 1.
17383     *
17384     * This option will change how long it takes to send an event "longpressed"
17385     * after the mouse down signal is sent to the list. If this event occurs, no
17386     * "clicked" event will be sent.
17387     *
17388     * @see elm_genlist_longpress_timeout_set()
17389     *
17390     * @ingroup Genlist
17391     */
17392    EAPI void              elm_genlist_longpress_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
17393    /**
17394     * Get the timeout in seconds for the longpress event.
17395     *
17396     * @param obj The genlist object
17397     * @return timeout in seconds
17398     *
17399     * @see elm_genlist_longpress_timeout_get()
17400     *
17401     * @ingroup Genlist
17402     */
17403    EAPI double            elm_genlist_longpress_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17404    /**
17405     * Append a new item in a given genlist widget.
17406     *
17407     * @param obj The genlist object
17408     * @param itc The item class for the item
17409     * @param data The item data
17410     * @param parent The parent item, or NULL if none
17411     * @param flags Item flags
17412     * @param func Convenience function called when the item is selected
17413     * @param func_data Data passed to @p func above.
17414     * @return A handle to the item added or @c NULL if not possible
17415     *
17416     * This adds the given item to the end of the list or the end of
17417     * the children list if the @p parent is given.
17418     *
17419     * @see elm_genlist_item_prepend()
17420     * @see elm_genlist_item_insert_before()
17421     * @see elm_genlist_item_insert_after()
17422     * @see elm_genlist_item_del()
17423     *
17424     * @ingroup Genlist
17425     */
17426    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);
17427    /**
17428     * Prepend a new item in a given genlist widget.
17429     *
17430     * @param obj The genlist object
17431     * @param itc The item class for the item
17432     * @param data The item data
17433     * @param parent The parent item, or NULL if none
17434     * @param flags Item flags
17435     * @param func Convenience function called when the item is selected
17436     * @param func_data Data passed to @p func above.
17437     * @return A handle to the item added or NULL if not possible
17438     *
17439     * This adds an item to the beginning of the list or beginning of the
17440     * children of the parent if given.
17441     *
17442     * @see elm_genlist_item_append()
17443     * @see elm_genlist_item_insert_before()
17444     * @see elm_genlist_item_insert_after()
17445     * @see elm_genlist_item_del()
17446     *
17447     * @ingroup Genlist
17448     */
17449    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);
17450    /**
17451     * Insert an item before another in a genlist widget
17452     *
17453     * @param obj The genlist object
17454     * @param itc The item class for the item
17455     * @param data The item data
17456     * @param before The item to place this new one before.
17457     * @param flags Item flags
17458     * @param func Convenience function called when the item is selected
17459     * @param func_data Data passed to @p func above.
17460     * @return A handle to the item added or @c NULL if not possible
17461     *
17462     * This inserts an item before another in the list. It will be in the
17463     * same tree level or group as the item it is inserted before.
17464     *
17465     * @see elm_genlist_item_append()
17466     * @see elm_genlist_item_prepend()
17467     * @see elm_genlist_item_insert_after()
17468     * @see elm_genlist_item_del()
17469     *
17470     * @ingroup Genlist
17471     */
17472    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);
17473    /**
17474     * Insert an item after another in a genlist widget
17475     *
17476     * @param obj The genlist object
17477     * @param itc The item class for the item
17478     * @param data The item data
17479     * @param after The item to place this new one after.
17480     * @param flags Item flags
17481     * @param func Convenience function called when the item is selected
17482     * @param func_data Data passed to @p func above.
17483     * @return A handle to the item added or @c NULL if not possible
17484     *
17485     * This inserts an item after another in the list. It will be in the
17486     * same tree level or group as the item it is inserted after.
17487     *
17488     * @see elm_genlist_item_append()
17489     * @see elm_genlist_item_prepend()
17490     * @see elm_genlist_item_insert_before()
17491     * @see elm_genlist_item_del()
17492     *
17493     * @ingroup Genlist
17494     */
17495    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);
17496    /**
17497     * Insert a new item into the sorted genlist object
17498     *
17499     * @param obj The genlist object
17500     * @param itc The item class for the item
17501     * @param data The item data
17502     * @param parent The parent item, or NULL if none
17503     * @param flags Item flags
17504     * @param comp The function called for the sort
17505     * @param func Convenience function called when item selected
17506     * @param func_data Data passed to @p func above.
17507     * @return A handle to the item added or NULL if not possible
17508     *
17509     * @ingroup Genlist
17510     */
17511    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);
17512    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);
17513    /* operations to retrieve existing items */
17514    /**
17515     * Get the selectd item in the genlist.
17516     *
17517     * @param obj The genlist object
17518     * @return The selected item, or NULL if none is selected.
17519     *
17520     * This gets the selected item in the list (if multi-selection is enabled, only
17521     * the item that was first selected in the list is returned - which is not very
17522     * useful, so see elm_genlist_selected_items_get() for when multi-selection is
17523     * used).
17524     *
17525     * If no item is selected, NULL is returned.
17526     *
17527     * @see elm_genlist_selected_items_get()
17528     *
17529     * @ingroup Genlist
17530     */
17531    EAPI Elm_Genlist_Item *elm_genlist_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17532    /**
17533     * Get a list of selected items in the genlist.
17534     *
17535     * @param obj The genlist object
17536     * @return The list of selected items, or NULL if none are selected.
17537     *
17538     * It returns a list of the selected items. This list pointer is only valid so
17539     * long as the selection doesn't change (no items are selected or unselected, or
17540     * unselected implicitly by deletion). The list contains Elm_Genlist_Item
17541     * pointers. The order of the items in this list is the order which they were
17542     * selected, i.e. the first item in this list is the first item that was
17543     * selected, and so on.
17544     *
17545     * @note If not in multi-select mode, consider using function
17546     * elm_genlist_selected_item_get() instead.
17547     *
17548     * @see elm_genlist_multi_select_set()
17549     * @see elm_genlist_selected_item_get()
17550     *
17551     * @ingroup Genlist
17552     */
17553    EAPI const Eina_List  *elm_genlist_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17554    /**
17555     * Get a list of realized items in genlist
17556     *
17557     * @param obj The genlist object
17558     * @return The list of realized items, nor NULL if none are realized.
17559     *
17560     * This returns a list of the realized items in the genlist. The list
17561     * contains Elm_Genlist_Item pointers. The list must be freed by the
17562     * caller when done with eina_list_free(). The item pointers in the
17563     * list are only valid so long as those items are not deleted or the
17564     * genlist is not deleted.
17565     *
17566     * @see elm_genlist_realized_items_update()
17567     *
17568     * @ingroup Genlist
17569     */
17570    EAPI Eina_List        *elm_genlist_realized_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17571    /**
17572     * Get the item that is at the x, y canvas coords.
17573     *
17574     * @param obj The gelinst object.
17575     * @param x The input x coordinate
17576     * @param y The input y coordinate
17577     * @param posret The position relative to the item returned here
17578     * @return The item at the coordinates or NULL if none
17579     *
17580     * This returns the item at the given coordinates (which are canvas
17581     * relative, not object-relative). If an item is at that coordinate,
17582     * that item handle is returned, and if @p posret is not NULL, the
17583     * integer pointed to is set to a value of -1, 0 or 1, depending if
17584     * the coordinate is on the upper portion of that item (-1), on the
17585     * middle section (0) or on the lower part (1). If NULL is returned as
17586     * an item (no item found there), then posret may indicate -1 or 1
17587     * based if the coordinate is above or below all items respectively in
17588     * the genlist.
17589     *
17590     * @ingroup Genlist
17591     */
17592    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);
17593    /**
17594     * Get the first item in the genlist
17595     *
17596     * This returns the first item in the list.
17597     *
17598     * @param obj The genlist object
17599     * @return The first item, or NULL if none
17600     *
17601     * @ingroup Genlist
17602     */
17603    EAPI Elm_Genlist_Item *elm_genlist_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17604    /**
17605     * Get the last item in the genlist
17606     *
17607     * This returns the last item in the list.
17608     *
17609     * @return The last item, or NULL if none
17610     *
17611     * @ingroup Genlist
17612     */
17613    EAPI Elm_Genlist_Item *elm_genlist_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17614    /**
17615     * Set the scrollbar policy
17616     *
17617     * @param obj The genlist object
17618     * @param policy_h Horizontal scrollbar policy.
17619     * @param policy_v Vertical scrollbar policy.
17620     *
17621     * This sets the scrollbar visibility policy for the given genlist
17622     * scroller. #ELM_SMART_SCROLLER_POLICY_AUTO means the scrollbar is
17623     * made visible if it is needed, and otherwise kept hidden.
17624     * #ELM_SMART_SCROLLER_POLICY_ON turns it on all the time, and
17625     * #ELM_SMART_SCROLLER_POLICY_OFF always keeps it off. This applies
17626     * respectively for the horizontal and vertical scrollbars. Default is
17627     * #ELM_SMART_SCROLLER_POLICY_AUTO
17628     *
17629     * @see elm_genlist_scroller_policy_get()
17630     *
17631     * @ingroup Genlist
17632     */
17633    EAPI void              elm_genlist_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
17634    /**
17635     * Get the scrollbar policy
17636     *
17637     * @param obj The genlist object
17638     * @param policy_h Pointer to store the horizontal scrollbar policy.
17639     * @param policy_v Pointer to store the vertical scrollbar policy.
17640     *
17641     * @see elm_genlist_scroller_policy_set()
17642     *
17643     * @ingroup Genlist
17644     */
17645    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);
17646    /**
17647     * Get the @b next item in a genlist widget's internal list of items,
17648     * given a handle to one of those items.
17649     *
17650     * @param item The genlist item to fetch next from
17651     * @return The item after @p item, or @c NULL if there's none (and
17652     * on errors)
17653     *
17654     * This returns the item placed after the @p item, on the container
17655     * genlist.
17656     *
17657     * @see elm_genlist_item_prev_get()
17658     *
17659     * @ingroup Genlist
17660     */
17661    EAPI Elm_Genlist_Item  *elm_genlist_item_next_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17662    /**
17663     * Get the @b previous item in a genlist widget's internal list of items,
17664     * given a handle to one of those items.
17665     *
17666     * @param item The genlist item to fetch previous from
17667     * @return The item before @p item, or @c NULL if there's none (and
17668     * on errors)
17669     *
17670     * This returns the item placed before the @p item, on the container
17671     * genlist.
17672     *
17673     * @see elm_genlist_item_next_get()
17674     *
17675     * @ingroup Genlist
17676     */
17677    EAPI Elm_Genlist_Item  *elm_genlist_item_prev_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17678    /**
17679     * Get the genlist object's handle which contains a given genlist
17680     * item
17681     *
17682     * @param item The item to fetch the container from
17683     * @return The genlist (parent) object
17684     *
17685     * This returns the genlist object itself that an item belongs to.
17686     *
17687     * @ingroup Genlist
17688     */
17689    EAPI Evas_Object       *elm_genlist_item_genlist_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17690    /**
17691     * Get the parent item of the given item
17692     *
17693     * @param it The item
17694     * @return The parent of the item or @c NULL if it has no parent.
17695     *
17696     * This returns the item that was specified as parent of the item @p it on
17697     * elm_genlist_item_append() and insertion related functions.
17698     *
17699     * @ingroup Genlist
17700     */
17701    EAPI Elm_Genlist_Item  *elm_genlist_item_parent_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17702    /**
17703     * Remove all sub-items (children) of the given item
17704     *
17705     * @param it The item
17706     *
17707     * This removes all items that are children (and their descendants) of the
17708     * given item @p it.
17709     *
17710     * @see elm_genlist_clear()
17711     * @see elm_genlist_item_del()
17712     *
17713     * @ingroup Genlist
17714     */
17715    EAPI void               elm_genlist_item_subitems_clear(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17716    /**
17717     * Set whether a given genlist item is selected or not
17718     *
17719     * @param it The item
17720     * @param selected Use @c EINA_TRUE, to make it selected, @c
17721     * EINA_FALSE to make it unselected
17722     *
17723     * This sets the selected state of an item. If multi selection is
17724     * not enabled on the containing genlist and @p selected is @c
17725     * EINA_TRUE, any other previously selected items will get
17726     * unselected in favor of this new one.
17727     *
17728     * @see elm_genlist_item_selected_get()
17729     *
17730     * @ingroup Genlist
17731     */
17732    EAPI void               elm_genlist_item_selected_set(Elm_Genlist_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
17733    /**
17734     * Get whether a given genlist item is selected or not
17735     *
17736     * @param it The item
17737     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
17738     *
17739     * @see elm_genlist_item_selected_set() for more details
17740     *
17741     * @ingroup Genlist
17742     */
17743    EAPI Eina_Bool          elm_genlist_item_selected_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17744    /**
17745     * Sets the expanded state of an item.
17746     *
17747     * @param it The item
17748     * @param expanded The expanded state (@c EINA_TRUE expanded, @c EINA_FALSE not expanded).
17749     *
17750     * This function flags the item of type #ELM_GENLIST_ITEM_SUBITEMS as
17751     * expanded or not.
17752     *
17753     * The theme will respond to this change visually, and a signal "expanded" or
17754     * "contracted" will be sent from the genlist with a pointer to the item that
17755     * has been expanded/contracted.
17756     *
17757     * Calling this function won't show or hide any child of this item (if it is
17758     * a parent). You must manually delete and create them on the callbacks fo
17759     * the "expanded" or "contracted" signals.
17760     *
17761     * @see elm_genlist_item_expanded_get()
17762     *
17763     * @ingroup Genlist
17764     */
17765    EAPI void               elm_genlist_item_expanded_set(Elm_Genlist_Item *item, Eina_Bool expanded) EINA_ARG_NONNULL(1);
17766    /**
17767     * Get the expanded state of an item
17768     *
17769     * @param it The item
17770     * @return The expanded state
17771     *
17772     * This gets the expanded state of an item.
17773     *
17774     * @see elm_genlist_item_expanded_set()
17775     *
17776     * @ingroup Genlist
17777     */
17778    EAPI Eina_Bool          elm_genlist_item_expanded_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17779    /**
17780     * Get the depth of expanded item
17781     *
17782     * @param it The genlist item object
17783     * @return The depth of expanded item
17784     *
17785     * @ingroup Genlist
17786     */
17787    EAPI int                elm_genlist_item_expanded_depth_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17788    /**
17789     * Set whether a given genlist item is disabled or not.
17790     *
17791     * @param it The item
17792     * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
17793     * to enable it back.
17794     *
17795     * A disabled item cannot be selected or unselected. It will also
17796     * change its appearance, to signal the user it's disabled.
17797     *
17798     * @see elm_genlist_item_disabled_get()
17799     *
17800     * @ingroup Genlist
17801     */
17802    EAPI void               elm_genlist_item_disabled_set(Elm_Genlist_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
17803    /**
17804     * Get whether a given genlist item is disabled or not.
17805     *
17806     * @param it The item
17807     * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
17808     * (and on errors).
17809     *
17810     * @see elm_genlist_item_disabled_set() for more details
17811     *
17812     * @ingroup Genlist
17813     */
17814    EAPI Eina_Bool          elm_genlist_item_disabled_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17815    /**
17816     * Sets the display only state of an item.
17817     *
17818     * @param it The item
17819     * @param display_only @c EINA_TRUE if the item is display only, @c
17820     * EINA_FALSE otherwise.
17821     *
17822     * A display only item cannot be selected or unselected. It is for
17823     * display only and not selecting or otherwise clicking, dragging
17824     * etc. by the user, thus finger size rules will not be applied to
17825     * this item.
17826     *
17827     * It's good to set group index items to display only state.
17828     *
17829     * @see elm_genlist_item_display_only_get()
17830     *
17831     * @ingroup Genlist
17832     */
17833    EAPI void               elm_genlist_item_display_only_set(Elm_Genlist_Item *it, Eina_Bool display_only) EINA_ARG_NONNULL(1);
17834    /**
17835     * Get the display only state of an item
17836     *
17837     * @param it The item
17838     * @return @c EINA_TRUE if the item is display only, @c
17839     * EINA_FALSE otherwise.
17840     *
17841     * @see elm_genlist_item_display_only_set()
17842     *
17843     * @ingroup Genlist
17844     */
17845    EAPI Eina_Bool          elm_genlist_item_display_only_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17846    /**
17847     * Show the portion of a genlist's internal list containing a given
17848     * item, immediately.
17849     *
17850     * @param it The item to display
17851     *
17852     * This causes genlist to jump to the given item @p it and show it (by
17853     * immediately scrolling to that position), if it is not fully visible.
17854     *
17855     * @see elm_genlist_item_bring_in()
17856     * @see elm_genlist_item_top_show()
17857     * @see elm_genlist_item_middle_show()
17858     *
17859     * @ingroup Genlist
17860     */
17861    EAPI void               elm_genlist_item_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17862    /**
17863     * Animatedly bring in, to the visible are of a genlist, a given
17864     * item on it.
17865     *
17866     * @param it The item to display
17867     *
17868     * This causes genlist to jump to the given item @p it and show it (by
17869     * animatedly scrolling), if it is not fully visible. This may use animation
17870     * to do so and take a period of time
17871     *
17872     * @see elm_genlist_item_show()
17873     * @see elm_genlist_item_top_bring_in()
17874     * @see elm_genlist_item_middle_bring_in()
17875     *
17876     * @ingroup Genlist
17877     */
17878    EAPI void               elm_genlist_item_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17879    /**
17880     * Show the portion of a genlist's internal list containing a given
17881     * item, immediately.
17882     *
17883     * @param it The item to display
17884     *
17885     * This causes genlist to jump to the given item @p it and show it (by
17886     * immediately scrolling to that position), if it is not fully visible.
17887     *
17888     * The item will be positioned at the top of the genlist viewport.
17889     *
17890     * @see elm_genlist_item_show()
17891     * @see elm_genlist_item_top_bring_in()
17892     *
17893     * @ingroup Genlist
17894     */
17895    EAPI void               elm_genlist_item_top_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17896    /**
17897     * Animatedly bring in, to the visible are of a genlist, a given
17898     * item on it.
17899     *
17900     * @param it The item
17901     *
17902     * This causes genlist to jump to the given item @p it and show it (by
17903     * animatedly scrolling), if it is not fully visible. This may use animation
17904     * to do so and take a period of time
17905     *
17906     * The item will be positioned at the top of the genlist viewport.
17907     *
17908     * @see elm_genlist_item_bring_in()
17909     * @see elm_genlist_item_top_show()
17910     *
17911     * @ingroup Genlist
17912     */
17913    EAPI void               elm_genlist_item_top_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17914    /**
17915     * Show the portion of a genlist's internal list containing a given
17916     * item, immediately.
17917     *
17918     * @param it The item to display
17919     *
17920     * This causes genlist to jump to the given item @p it and show it (by
17921     * immediately scrolling to that position), if it is not fully visible.
17922     *
17923     * The item will be positioned at the middle of the genlist viewport.
17924     *
17925     * @see elm_genlist_item_show()
17926     * @see elm_genlist_item_middle_bring_in()
17927     *
17928     * @ingroup Genlist
17929     */
17930    EAPI void               elm_genlist_item_middle_show(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17931    /**
17932     * Animatedly bring in, to the visible are of a genlist, a given
17933     * item on it.
17934     *
17935     * @param it The item
17936     *
17937     * This causes genlist to jump to the given item @p it and show it (by
17938     * animatedly scrolling), if it is not fully visible. This may use animation
17939     * to do so and take a period of time
17940     *
17941     * The item will be positioned at the middle of the genlist viewport.
17942     *
17943     * @see elm_genlist_item_bring_in()
17944     * @see elm_genlist_item_middle_show()
17945     *
17946     * @ingroup Genlist
17947     */
17948    EAPI void               elm_genlist_item_middle_bring_in(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17949    /**
17950     * Remove a genlist item from the its parent, deleting it.
17951     *
17952     * @param item The item to be removed.
17953     * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
17954     *
17955     * @see elm_genlist_clear(), to remove all items in a genlist at
17956     * once.
17957     *
17958     * @ingroup Genlist
17959     */
17960    EAPI void               elm_genlist_item_del(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17961    /**
17962     * Return the data associated to a given genlist item
17963     *
17964     * @param item The genlist item.
17965     * @return the data associated to this item.
17966     *
17967     * This returns the @c data value passed on the
17968     * elm_genlist_item_append() and related item addition calls.
17969     *
17970     * @see elm_genlist_item_append()
17971     * @see elm_genlist_item_data_set()
17972     *
17973     * @ingroup Genlist
17974     */
17975    EAPI void              *elm_genlist_item_data_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17976    /**
17977     * Set the data associated to a given genlist item
17978     *
17979     * @param item The genlist item
17980     * @param data The new data pointer to set on it
17981     *
17982     * This @b overrides the @c data value passed on the
17983     * elm_genlist_item_append() and related item addition calls. This
17984     * function @b won't call elm_genlist_item_update() automatically,
17985     * so you'd issue it afterwards if you want to hove the item
17986     * updated to reflect the that new data.
17987     *
17988     * @see elm_genlist_item_data_get()
17989     *
17990     * @ingroup Genlist
17991     */
17992    EAPI void               elm_genlist_item_data_set(Elm_Genlist_Item *it, const void *data) EINA_ARG_NONNULL(1);
17993    /**
17994     * Tells genlist to "orphan" icons fetchs by the item class
17995     *
17996     * @param it The item
17997     *
17998     * This instructs genlist to release references to icons in the item,
17999     * meaning that they will no longer be managed by genlist and are
18000     * floating "orphans" that can be re-used elsewhere if the user wants
18001     * to.
18002     *
18003     * @ingroup Genlist
18004     */
18005    EAPI void               elm_genlist_item_icons_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
18006    /**
18007     * Get the real Evas object created to implement the view of a
18008     * given genlist item
18009     *
18010     * @param item The genlist item.
18011     * @return the Evas object implementing this item's view.
18012     *
18013     * This returns the actual Evas object used to implement the
18014     * specified genlist item's view. This may be @c NULL, as it may
18015     * not have been created or may have been deleted, at any time, by
18016     * the genlist. <b>Do not modify this object</b> (move, resize,
18017     * show, hide, etc.), as the genlist is controlling it. This
18018     * function is for querying, emitting custom signals or hooking
18019     * lower level callbacks for events on that object. Do not delete
18020     * this object under any circumstances.
18021     *
18022     * @see elm_genlist_item_data_get()
18023     *
18024     * @ingroup Genlist
18025     */
18026    EAPI const Evas_Object *elm_genlist_item_object_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
18027    /**
18028     * Update the contents of an item
18029     *
18030     * @param it The item
18031     *
18032     * This updates an item by calling all the item class functions again
18033     * to get the icons, labels and states. Use this when the original
18034     * item data has changed and the changes are desired to be reflected.
18035     *
18036     * Use elm_genlist_realized_items_update() to update all already realized
18037     * items.
18038     *
18039     * @see elm_genlist_realized_items_update()
18040     *
18041     * @ingroup Genlist
18042     */
18043    EAPI void               elm_genlist_item_update(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18044    /**
18045     * Update the item class of an item
18046     *
18047     * @param it The item
18048     * @param itc The item class for the item
18049     *
18050     * This sets another class fo the item, changing the way that it is
18051     * displayed. After changing the item class, elm_genlist_item_update() is
18052     * called on the item @p it.
18053     *
18054     * @ingroup Genlist
18055     */
18056    EAPI void               elm_genlist_item_item_class_update(Elm_Genlist_Item *it, const Elm_Genlist_Item_Class *itc) EINA_ARG_NONNULL(1, 2);
18057    EAPI const Elm_Genlist_Item_Class *elm_genlist_item_item_class_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
18058    /**
18059     * Set the text to be shown in a given genlist item's tooltips.
18060     *
18061     * @param item The genlist item
18062     * @param text The text to set in the content
18063     *
18064     * This call will setup the text to be used as tooltip to that item
18065     * (analogous to elm_object_tooltip_text_set(), but being item
18066     * tooltips with higher precedence than object tooltips). It can
18067     * have only one tooltip at a time, so any previous tooltip data
18068     * will get removed.
18069     *
18070     * In order to set an icon or something else as a tooltip, look at
18071     * elm_genlist_item_tooltip_content_cb_set().
18072     *
18073     * @ingroup Genlist
18074     */
18075    EAPI void               elm_genlist_item_tooltip_text_set(Elm_Genlist_Item *item, const char *text) EINA_ARG_NONNULL(1);
18076    /**
18077     * Set the content to be shown in a given genlist item's tooltips
18078     *
18079     * @param item The genlist item.
18080     * @param func The function returning the tooltip contents.
18081     * @param data What to provide to @a func as callback data/context.
18082     * @param del_cb Called when data is not needed anymore, either when
18083     *        another callback replaces @p func, the tooltip is unset with
18084     *        elm_genlist_item_tooltip_unset() or the owner @p item
18085     *        dies. This callback receives as its first parameter the
18086     *        given @p data, being @c event_info the item handle.
18087     *
18088     * This call will setup the tooltip's contents to @p item
18089     * (analogous to elm_object_tooltip_content_cb_set(), but being
18090     * item tooltips with higher precedence than object tooltips). It
18091     * can have only one tooltip at a time, so any previous tooltip
18092     * content will get removed. @p func (with @p data) will be called
18093     * every time Elementary needs to show the tooltip and it should
18094     * return a valid Evas object, which will be fully managed by the
18095     * tooltip system, getting deleted when the tooltip is gone.
18096     *
18097     * In order to set just a text as a tooltip, look at
18098     * elm_genlist_item_tooltip_text_set().
18099     *
18100     * @ingroup Genlist
18101     */
18102    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);
18103    /**
18104     * Unset a tooltip from a given genlist item
18105     *
18106     * @param item genlist item to remove a previously set tooltip from.
18107     *
18108     * This call removes any tooltip set on @p item. The callback
18109     * provided as @c del_cb to
18110     * elm_genlist_item_tooltip_content_cb_set() will be called to
18111     * notify it is not used anymore (and have resources cleaned, if
18112     * need be).
18113     *
18114     * @see elm_genlist_item_tooltip_content_cb_set()
18115     *
18116     * @ingroup Genlist
18117     */
18118    EAPI void               elm_genlist_item_tooltip_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18119    /**
18120     * Set a different @b style for a given genlist item's tooltip.
18121     *
18122     * @param item genlist item with tooltip set
18123     * @param style the <b>theme style</b> to use on tooltips (e.g. @c
18124     * "default", @c "transparent", etc)
18125     *
18126     * Tooltips can have <b>alternate styles</b> to be displayed on,
18127     * which are defined by the theme set on Elementary. This function
18128     * works analogously as elm_object_tooltip_style_set(), but here
18129     * applied only to genlist item objects. The default style for
18130     * tooltips is @c "default".
18131     *
18132     * @note before you set a style you should define a tooltip with
18133     *       elm_genlist_item_tooltip_content_cb_set() or
18134     *       elm_genlist_item_tooltip_text_set()
18135     *
18136     * @see elm_genlist_item_tooltip_style_get()
18137     *
18138     * @ingroup Genlist
18139     */
18140    EAPI void               elm_genlist_item_tooltip_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
18141    /**
18142     * Get the style set a given genlist item's tooltip.
18143     *
18144     * @param item genlist item with tooltip already set on.
18145     * @return style the theme style in use, which defaults to
18146     *         "default". If the object does not have a tooltip set,
18147     *         then @c NULL is returned.
18148     *
18149     * @see elm_genlist_item_tooltip_style_set() for more details
18150     *
18151     * @ingroup Genlist
18152     */
18153    EAPI const char        *elm_genlist_item_tooltip_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18154    /**
18155     * @brief Disable size restrictions on an object's tooltip
18156     * @param item The tooltip's anchor object
18157     * @param disable If EINA_TRUE, size restrictions are disabled
18158     * @return EINA_FALSE on failure, EINA_TRUE on success
18159     *
18160     * This function allows a tooltip to expand beyond its parant window's canvas.
18161     * It will instead be limited only by the size of the display.
18162     */
18163    EAPI Eina_Bool          elm_genlist_item_tooltip_size_restrict_disable(Elm_Genlist_Item *item, Eina_Bool disable);
18164    /**
18165     * @brief Retrieve size restriction state of an object's tooltip
18166     * @param item The tooltip's anchor object
18167     * @return If EINA_TRUE, size restrictions are disabled
18168     *
18169     * This function returns whether a tooltip is allowed to expand beyond
18170     * its parant window's canvas.
18171     * It will instead be limited only by the size of the display.
18172     */
18173    EAPI Eina_Bool          elm_genlist_item_tooltip_size_restrict_disabled_get(const Elm_Genlist_Item *item);
18174    /**
18175     * Set the type of mouse pointer/cursor decoration to be shown,
18176     * when the mouse pointer is over the given genlist widget item
18177     *
18178     * @param item genlist item to customize cursor on
18179     * @param cursor the cursor type's name
18180     *
18181     * This function works analogously as elm_object_cursor_set(), but
18182     * here the cursor's changing area is restricted to the item's
18183     * area, and not the whole widget's. Note that that item cursors
18184     * have precedence over widget cursors, so that a mouse over @p
18185     * item will always show cursor @p type.
18186     *
18187     * If this function is called twice for an object, a previously set
18188     * cursor will be unset on the second call.
18189     *
18190     * @see elm_object_cursor_set()
18191     * @see elm_genlist_item_cursor_get()
18192     * @see elm_genlist_item_cursor_unset()
18193     *
18194     * @ingroup Genlist
18195     */
18196    EAPI void               elm_genlist_item_cursor_set(Elm_Genlist_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
18197    /**
18198     * Get the type of mouse pointer/cursor decoration set to be shown,
18199     * when the mouse pointer is over the given genlist widget item
18200     *
18201     * @param item genlist item with custom cursor set
18202     * @return the cursor type's name or @c NULL, if no custom cursors
18203     * were set to @p item (and on errors)
18204     *
18205     * @see elm_object_cursor_get()
18206     * @see elm_genlist_item_cursor_set() for more details
18207     * @see elm_genlist_item_cursor_unset()
18208     *
18209     * @ingroup Genlist
18210     */
18211    EAPI const char        *elm_genlist_item_cursor_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18212    /**
18213     * Unset any custom mouse pointer/cursor decoration set to be
18214     * shown, when the mouse pointer is over the given genlist widget
18215     * item, thus making it show the @b default cursor again.
18216     *
18217     * @param item a genlist item
18218     *
18219     * Use this call to undo any custom settings on this item's cursor
18220     * decoration, bringing it back to defaults (no custom style set).
18221     *
18222     * @see elm_object_cursor_unset()
18223     * @see elm_genlist_item_cursor_set() for more details
18224     *
18225     * @ingroup Genlist
18226     */
18227    EAPI void               elm_genlist_item_cursor_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18228    /**
18229     * Set a different @b style for a given custom cursor set for a
18230     * genlist item.
18231     *
18232     * @param item genlist item with custom cursor set
18233     * @param style the <b>theme style</b> to use (e.g. @c "default",
18234     * @c "transparent", etc)
18235     *
18236     * This function only makes sense when one is using custom mouse
18237     * cursor decorations <b>defined in a theme file</b> , which can
18238     * have, given a cursor name/type, <b>alternate styles</b> on
18239     * it. It works analogously as elm_object_cursor_style_set(), but
18240     * here applied only to genlist item objects.
18241     *
18242     * @warning Before you set a cursor style you should have defined a
18243     *       custom cursor previously on the item, with
18244     *       elm_genlist_item_cursor_set()
18245     *
18246     * @see elm_genlist_item_cursor_engine_only_set()
18247     * @see elm_genlist_item_cursor_style_get()
18248     *
18249     * @ingroup Genlist
18250     */
18251    EAPI void               elm_genlist_item_cursor_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
18252    /**
18253     * Get the current @b style set for a given genlist item's custom
18254     * cursor
18255     *
18256     * @param item genlist item with custom cursor set.
18257     * @return style the cursor style in use. If the object does not
18258     *         have a cursor set, then @c NULL is returned.
18259     *
18260     * @see elm_genlist_item_cursor_style_set() for more details
18261     *
18262     * @ingroup Genlist
18263     */
18264    EAPI const char        *elm_genlist_item_cursor_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18265    /**
18266     * Set if the (custom) cursor for a given genlist item should be
18267     * searched in its theme, also, or should only rely on the
18268     * rendering engine.
18269     *
18270     * @param item item with custom (custom) cursor already set on
18271     * @param engine_only Use @c EINA_TRUE to have cursors looked for
18272     * only on those provided by the rendering engine, @c EINA_FALSE to
18273     * have them searched on the widget's theme, as well.
18274     *
18275     * @note This call is of use only if you've set a custom cursor
18276     * for genlist items, with elm_genlist_item_cursor_set().
18277     *
18278     * @note By default, cursors will only be looked for between those
18279     * provided by the rendering engine.
18280     *
18281     * @ingroup Genlist
18282     */
18283    EAPI void               elm_genlist_item_cursor_engine_only_set(Elm_Genlist_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
18284    /**
18285     * Get if the (custom) cursor for a given genlist item is being
18286     * searched in its theme, also, or is only relying on the rendering
18287     * engine.
18288     *
18289     * @param item a genlist item
18290     * @return @c EINA_TRUE, if cursors are being looked for only on
18291     * those provided by the rendering engine, @c EINA_FALSE if they
18292     * are being searched on the widget's theme, as well.
18293     *
18294     * @see elm_genlist_item_cursor_engine_only_set(), for more details
18295     *
18296     * @ingroup Genlist
18297     */
18298    EAPI Eina_Bool          elm_genlist_item_cursor_engine_only_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18299    /**
18300     * Update the contents of all realized items.
18301     *
18302     * @param obj The genlist object.
18303     *
18304     * This updates all realized items by calling all the item class functions again
18305     * to get the icons, labels and states. Use this when the original
18306     * item data has changed and the changes are desired to be reflected.
18307     *
18308     * To update just one item, use elm_genlist_item_update().
18309     *
18310     * @see elm_genlist_realized_items_get()
18311     * @see elm_genlist_item_update()
18312     *
18313     * @ingroup Genlist
18314     */
18315    EAPI void               elm_genlist_realized_items_update(Evas_Object *obj) EINA_ARG_NONNULL(1);
18316    /**
18317     * Activate a genlist mode on an item
18318     *
18319     * @param item The genlist item
18320     * @param mode Mode name
18321     * @param mode_set Boolean to define set or unset mode.
18322     *
18323     * A genlist mode is a different way of selecting an item. Once a mode is
18324     * activated on an item, any other selected item is immediately unselected.
18325     * This feature provides an easy way of implementing a new kind of animation
18326     * for selecting an item, without having to entirely rewrite the item style
18327     * theme. However, the elm_genlist_selected_* API can't be used to get what
18328     * item is activate for a mode.
18329     *
18330     * The current item style will still be used, but applying a genlist mode to
18331     * an item will select it using a different kind of animation.
18332     *
18333     * The current active item for a mode can be found by
18334     * elm_genlist_mode_item_get().
18335     *
18336     * The characteristics of genlist mode are:
18337     * - Only one mode can be active at any time, and for only one item.
18338     * - Genlist handles deactivating other items when one item is activated.
18339     * - A mode is defined in the genlist theme (edc), and more modes can easily
18340     *   be added.
18341     * - A mode style and the genlist item style are different things. They
18342     *   can be combined to provide a default style to the item, with some kind
18343     *   of animation for that item when the mode is activated.
18344     *
18345     * When a mode is activated on an item, a new view for that item is created.
18346     * The theme of this mode defines the animation that will be used to transit
18347     * the item from the old view to the new view. This second (new) view will be
18348     * active for that item while the mode is active on the item, and will be
18349     * destroyed after the mode is totally deactivated from that item.
18350     *
18351     * @see elm_genlist_mode_get()
18352     * @see elm_genlist_mode_item_get()
18353     *
18354     * @ingroup Genlist
18355     */
18356    EAPI void               elm_genlist_item_mode_set(Elm_Genlist_Item *it, const char *mode_type, Eina_Bool mode_set) EINA_ARG_NONNULL(1, 2);
18357    /**
18358     * Get the last (or current) genlist mode used.
18359     *
18360     * @param obj The genlist object
18361     *
18362     * This function just returns the name of the last used genlist mode. It will
18363     * be the current mode if it's still active.
18364     *
18365     * @see elm_genlist_item_mode_set()
18366     * @see elm_genlist_mode_item_get()
18367     *
18368     * @ingroup Genlist
18369     */
18370    EAPI const char        *elm_genlist_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18371    /**
18372     * Get active genlist mode item
18373     *
18374     * @param obj The genlist object
18375     * @return The active item for that current mode. Or @c NULL if no item is
18376     * activated with any mode.
18377     *
18378     * This function returns the item that was activated with a mode, by the
18379     * function elm_genlist_item_mode_set().
18380     *
18381     * @see elm_genlist_item_mode_set()
18382     * @see elm_genlist_mode_get()
18383     *
18384     * @ingroup Genlist
18385     */
18386    EAPI const Elm_Genlist_Item *elm_genlist_mode_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18387
18388    /**
18389     * Set reorder mode
18390     *
18391     * @param obj The genlist object
18392     * @param reorder_mode The reorder mode
18393     * (EINA_TRUE = on, EINA_FALSE = off)
18394     *
18395     * @ingroup Genlist
18396     */
18397    EAPI void               elm_genlist_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
18398
18399    /**
18400     * Get the reorder mode
18401     *
18402     * @param obj The genlist object
18403     * @return The reorder mode
18404     * (EINA_TRUE = on, EINA_FALSE = off)
18405     *
18406     * @ingroup Genlist
18407     */
18408    EAPI Eina_Bool          elm_genlist_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18409
18410    /**
18411     * @}
18412     */
18413
18414    /**
18415     * @defgroup Check Check
18416     *
18417     * @image html img/widget/check/preview-00.png
18418     * @image latex img/widget/check/preview-00.eps
18419     * @image html img/widget/check/preview-01.png
18420     * @image latex img/widget/check/preview-01.eps
18421     * @image html img/widget/check/preview-02.png
18422     * @image latex img/widget/check/preview-02.eps
18423     *
18424     * @brief The check widget allows for toggling a value between true and
18425     * false.
18426     *
18427     * Check objects are a lot like radio objects in layout and functionality
18428     * except they do not work as a group, but independently and only toggle the
18429     * value of a boolean from false to true (0 or 1). elm_check_state_set() sets
18430     * the boolean state (1 for true, 0 for false), and elm_check_state_get()
18431     * returns the current state. For convenience, like the radio objects, you
18432     * can set a pointer to a boolean directly with elm_check_state_pointer_set()
18433     * for it to modify.
18434     *
18435     * Signals that you can add callbacks for are:
18436     * "changed" - This is called whenever the user changes the state of one of
18437     *             the check object(event_info is NULL).
18438     *
18439     * @ref tutorial_check should give you a firm grasp of how to use this widget.
18440     * @{
18441     */
18442    /**
18443     * @brief Add a new Check object
18444     *
18445     * @param parent The parent object
18446     * @return The new object or NULL if it cannot be created
18447     */
18448    EAPI Evas_Object *elm_check_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18449    /**
18450     * @brief Set the text label of the check object
18451     *
18452     * @param obj The check object
18453     * @param label The text label string in UTF-8
18454     *
18455     * @deprecated use elm_object_text_set() instead.
18456     */
18457    EINA_DEPRECATED EAPI void         elm_check_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
18458    /**
18459     * @brief Get the text label of the check object
18460     *
18461     * @param obj The check object
18462     * @return The text label string in UTF-8
18463     *
18464     * @deprecated use elm_object_text_get() instead.
18465     */
18466    EINA_DEPRECATED EAPI const char  *elm_check_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18467    /**
18468     * @brief Set the icon object of the check object
18469     *
18470     * @param obj The check object
18471     * @param icon The icon object
18472     *
18473     * Once the icon object is set, a previously set one will be deleted.
18474     * If you want to keep that old content object, use the
18475     * elm_check_icon_unset() function.
18476     */
18477    EAPI void         elm_check_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
18478    /**
18479     * @brief Get the icon object of the check object
18480     *
18481     * @param obj The check object
18482     * @return The icon object
18483     */
18484    EAPI Evas_Object *elm_check_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18485    /**
18486     * @brief Unset the icon used for the check object
18487     *
18488     * @param obj The check object
18489     * @return The icon object that was being used
18490     *
18491     * Unparent and return the icon object which was set for this widget.
18492     */
18493    EAPI Evas_Object *elm_check_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
18494    /**
18495     * @brief Set the on/off state of the check object
18496     *
18497     * @param obj The check object
18498     * @param state The state to use (1 == on, 0 == off)
18499     *
18500     * This sets the state of the check. If set
18501     * with elm_check_state_pointer_set() the state of that variable is also
18502     * changed. Calling this @b doesn't cause the "changed" signal to be emited.
18503     */
18504    EAPI void         elm_check_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
18505    /**
18506     * @brief Get the state of the check object
18507     *
18508     * @param obj The check object
18509     * @return The boolean state
18510     */
18511    EAPI Eina_Bool    elm_check_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18512    /**
18513     * @brief Set a convenience pointer to a boolean to change
18514     *
18515     * @param obj The check object
18516     * @param statep Pointer to the boolean to modify
18517     *
18518     * This sets a pointer to a boolean, that, in addition to the check objects
18519     * state will also be modified directly. To stop setting the object pointed
18520     * to simply use NULL as the @p statep parameter. If @p statep is not NULL,
18521     * then when this is called, the check objects state will also be modified to
18522     * reflect the value of the boolean @p statep points to, just like calling
18523     * elm_check_state_set().
18524     */
18525    EAPI void         elm_check_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
18526    /**
18527     * @}
18528     */
18529
18530    /**
18531     * @defgroup Radio Radio
18532     *
18533     * @image html img/widget/radio/preview-00.png
18534     * @image latex img/widget/radio/preview-00.eps
18535     *
18536     * @brief Radio is a widget that allows for 1 or more options to be displayed
18537     * and have the user choose only 1 of them.
18538     *
18539     * A radio object contains an indicator, an optional Label and an optional
18540     * icon object. While it's possible to have a group of only one radio they,
18541     * are normally used in groups of 2 or more. To add a radio to a group use
18542     * elm_radio_group_add(). The radio object(s) will select from one of a set
18543     * of integer values, so any value they are configuring needs to be mapped to
18544     * a set of integers. To configure what value that radio object represents,
18545     * use  elm_radio_state_value_set() to set the integer it represents. To set
18546     * the value the whole group(which one is currently selected) is to indicate
18547     * use elm_radio_value_set() on any group member, and to get the groups value
18548     * use elm_radio_value_get(). For convenience the radio objects are also able
18549     * to directly set an integer(int) to the value that is selected. To specify
18550     * the pointer to this integer to modify, use elm_radio_value_pointer_set().
18551     * The radio objects will modify this directly. That implies the pointer must
18552     * point to valid memory for as long as the radio objects exist.
18553     *
18554     * Signals that you can add callbacks for are:
18555     * @li changed - This is called whenever the user changes the state of one of
18556     * the radio objects within the group of radio objects that work together.
18557     *
18558     * @ref tutorial_radio show most of this API in action.
18559     * @{
18560     */
18561    /**
18562     * @brief Add a new radio to the parent
18563     *
18564     * @param parent The parent object
18565     * @return The new object or NULL if it cannot be created
18566     */
18567    EAPI Evas_Object *elm_radio_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18568    /**
18569     * @brief Set the text label of the radio object
18570     *
18571     * @param obj The radio object
18572     * @param label The text label string in UTF-8
18573     *
18574     * @deprecated use elm_object_text_set() instead.
18575     */
18576    EINA_DEPRECATED EAPI void         elm_radio_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
18577    /**
18578     * @brief Get the text label of the radio object
18579     *
18580     * @param obj The radio object
18581     * @return The text label string in UTF-8
18582     *
18583     * @deprecated use elm_object_text_set() instead.
18584     */
18585    EINA_DEPRECATED EAPI const char  *elm_radio_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18586    /**
18587     * @brief Set the icon object of the radio object
18588     *
18589     * @param obj The radio object
18590     * @param icon The icon object
18591     *
18592     * Once the icon object is set, a previously set one will be deleted. If you
18593     * want to keep that old content object, use the elm_radio_icon_unset()
18594     * function.
18595     */
18596    EAPI void         elm_radio_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
18597    /**
18598     * @brief Get the icon object of the radio object
18599     *
18600     * @param obj The radio object
18601     * @return The icon object
18602     *
18603     * @see elm_radio_icon_set()
18604     */
18605    EAPI Evas_Object *elm_radio_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18606    /**
18607     * @brief Unset the icon used for the radio object
18608     *
18609     * @param obj The radio object
18610     * @return The icon object that was being used
18611     *
18612     * Unparent and return the icon object which was set for this widget.
18613     *
18614     * @see elm_radio_icon_set()
18615     */
18616    EAPI Evas_Object *elm_radio_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
18617    /**
18618     * @brief Add this radio to a group of other radio objects
18619     *
18620     * @param obj The radio object
18621     * @param group Any object whose group the @p obj is to join.
18622     *
18623     * Radio objects work in groups. Each member should have a different integer
18624     * value assigned. In order to have them work as a group, they need to know
18625     * about each other. This adds the given radio object to the group of which
18626     * the group object indicated is a member.
18627     */
18628    EAPI void         elm_radio_group_add(Evas_Object *obj, Evas_Object *group) EINA_ARG_NONNULL(1);
18629    /**
18630     * @brief Set the integer value that this radio object represents
18631     *
18632     * @param obj The radio object
18633     * @param value The value to use if this radio object is selected
18634     *
18635     * This sets the value of the radio.
18636     */
18637    EAPI void         elm_radio_state_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
18638    /**
18639     * @brief Get the integer value that this radio object represents
18640     *
18641     * @param obj The radio object
18642     * @return The value used if this radio object is selected
18643     *
18644     * This gets the value of the radio.
18645     *
18646     * @see elm_radio_value_set()
18647     */
18648    EAPI int          elm_radio_state_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18649    /**
18650     * @brief Set the value of the radio.
18651     *
18652     * @param obj The radio object
18653     * @param value The value to use for the group
18654     *
18655     * This sets the value of the radio group and will also set the value if
18656     * pointed to, to the value supplied, but will not call any callbacks.
18657     */
18658    EAPI void         elm_radio_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
18659    /**
18660     * @brief Get the state of the radio object
18661     *
18662     * @param obj The radio object
18663     * @return The integer state
18664     */
18665    EAPI int          elm_radio_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18666    /**
18667     * @brief Set a convenience pointer to a integer to change
18668     *
18669     * @param obj The radio object
18670     * @param valuep Pointer to the integer to modify
18671     *
18672     * This sets a pointer to a integer, that, in addition to the radio objects
18673     * state will also be modified directly. To stop setting the object pointed
18674     * to simply use NULL as the @p valuep argument. If valuep is not NULL, then
18675     * when this is called, the radio objects state will also be modified to
18676     * reflect the value of the integer valuep points to, just like calling
18677     * elm_radio_value_set().
18678     */
18679    EAPI void         elm_radio_value_pointer_set(Evas_Object *obj, int *valuep) EINA_ARG_NONNULL(1);
18680    /**
18681     * @}
18682     */
18683
18684    /**
18685     * @defgroup Pager Pager
18686     *
18687     * @image html img/widget/pager/preview-00.png
18688     * @image latex img/widget/pager/preview-00.eps
18689     *
18690     * @brief Widget that allows flipping between 1 or more “pages” of objects.
18691     *
18692     * The flipping between “pages” of objects is animated. All content in pager
18693     * is kept in a stack, the last content to be added will be on the top of the
18694     * stack(be visible).
18695     *
18696     * Objects can be pushed or popped from the stack or deleted as normal.
18697     * Pushes and pops will animate (and a pop will delete the object once the
18698     * animation is finished). Any object already in the pager can be promoted to
18699     * the top(from its current stacking position) through the use of
18700     * elm_pager_content_promote(). Objects are pushed to the top with
18701     * elm_pager_content_push() and when the top item is no longer wanted, simply
18702     * pop it with elm_pager_content_pop() and it will also be deleted. If an
18703     * object is no longer needed and is not the top item, just delete it as
18704     * normal. You can query which objects are the top and bottom with
18705     * elm_pager_content_bottom_get() and elm_pager_content_top_get().
18706     *
18707     * Signals that you can add callbacks for are:
18708     * "hide,finished" - when the previous page is hided
18709     *
18710     * This widget has the following styles available:
18711     * @li default
18712     * @li fade
18713     * @li fade_translucide
18714     * @li fade_invisible
18715     * @note This styles affect only the flipping animations, the appearance when
18716     * not animating is unaffected by styles.
18717     *
18718     * @ref tutorial_pager gives a good overview of the usage of the API.
18719     * @{
18720     */
18721    /**
18722     * Add a new pager to the parent
18723     *
18724     * @param parent The parent object
18725     * @return The new object or NULL if it cannot be created
18726     *
18727     * @ingroup Pager
18728     */
18729    EAPI Evas_Object *elm_pager_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18730    /**
18731     * @brief Push an object to the top of the pager stack (and show it).
18732     *
18733     * @param obj The pager object
18734     * @param content The object to push
18735     *
18736     * The object pushed becomes a child of the pager, it will be controlled and
18737     * deleted when the pager is deleted.
18738     *
18739     * @note If the content is already in the stack use
18740     * elm_pager_content_promote().
18741     * @warning Using this function on @p content already in the stack results in
18742     * undefined behavior.
18743     */
18744    EAPI void         elm_pager_content_push(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
18745    /**
18746     * @brief Pop the object that is on top of the stack
18747     *
18748     * @param obj The pager object
18749     *
18750     * This pops the object that is on the top(visible) of the pager, makes it
18751     * disappear, then deletes the object. The object that was underneath it on
18752     * the stack will become visible.
18753     */
18754    EAPI void         elm_pager_content_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
18755    /**
18756     * @brief Moves an object already in the pager stack to the top of the stack.
18757     *
18758     * @param obj The pager object
18759     * @param content The object to promote
18760     *
18761     * This will take the @p content and move it to the top of the stack as
18762     * if it had been pushed there.
18763     *
18764     * @note If the content isn't already in the stack use
18765     * elm_pager_content_push().
18766     * @warning Using this function on @p content not already in the stack
18767     * results in undefined behavior.
18768     */
18769    EAPI void         elm_pager_content_promote(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
18770    /**
18771     * @brief Return the object at the bottom of the pager stack
18772     *
18773     * @param obj The pager object
18774     * @return The bottom object or NULL if none
18775     */
18776    EAPI Evas_Object *elm_pager_content_bottom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18777    /**
18778     * @brief  Return the object at the top of the pager stack
18779     *
18780     * @param obj The pager object
18781     * @return The top object or NULL if none
18782     */
18783    EAPI Evas_Object *elm_pager_content_top_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18784    /**
18785     * @}
18786     */
18787
18788    /**
18789     * @defgroup Slideshow Slideshow
18790     *
18791     * @image html img/widget/slideshow/preview-00.png
18792     * @image latex img/widget/slideshow/preview-00.eps
18793     *
18794     * This widget, as the name indicates, is a pre-made image
18795     * slideshow panel, with API functions acting on (child) image
18796     * items presentation. Between those actions, are:
18797     * - advance to next/previous image
18798     * - select the style of image transition animation
18799     * - set the exhibition time for each image
18800     * - start/stop the slideshow
18801     *
18802     * The transition animations are defined in the widget's theme,
18803     * consequently new animations can be added without having to
18804     * update the widget's code.
18805     *
18806     * @section Slideshow_Items Slideshow items
18807     *
18808     * For slideshow items, just like for @ref Genlist "genlist" ones,
18809     * the user defines a @b classes, specifying functions that will be
18810     * called on the item's creation and deletion times.
18811     *
18812     * The #Elm_Slideshow_Item_Class structure contains the following
18813     * members:
18814     *
18815     * - @c func.get - When an item is displayed, this function is
18816     *   called, and it's where one should create the item object, de
18817     *   facto. For example, the object can be a pure Evas image object
18818     *   or an Elementary @ref Photocam "photocam" widget. See
18819     *   #SlideshowItemGetFunc.
18820     * - @c func.del - When an item is no more displayed, this function
18821     *   is called, where the user must delete any data associated to
18822     *   the item. See #SlideshowItemDelFunc.
18823     *
18824     * @section Slideshow_Caching Slideshow caching
18825     *
18826     * The slideshow provides facilities to have items adjacent to the
18827     * one being displayed <b>already "realized"</b> (i.e. loaded) for
18828     * you, so that the system does not have to decode image data
18829     * anymore at the time it has to actually switch images on its
18830     * viewport. The user is able to set the numbers of items to be
18831     * cached @b before and @b after the current item, in the widget's
18832     * item list.
18833     *
18834     * Smart events one can add callbacks for are:
18835     *
18836     * - @c "changed" - when the slideshow switches its view to a new
18837     *   item
18838     *
18839     * List of examples for the slideshow widget:
18840     * @li @ref slideshow_example
18841     */
18842
18843    /**
18844     * @addtogroup Slideshow
18845     * @{
18846     */
18847
18848    typedef struct _Elm_Slideshow_Item_Class Elm_Slideshow_Item_Class; /**< Slideshow item class definition struct */
18849    typedef struct _Elm_Slideshow_Item_Class_Func Elm_Slideshow_Item_Class_Func; /**< Class functions for slideshow item classes. */
18850    typedef struct _Elm_Slideshow_Item       Elm_Slideshow_Item; /**< Slideshow item handle */
18851    typedef Evas_Object *(*SlideshowItemGetFunc) (void *data, Evas_Object *obj); /**< Image fetching class function for slideshow item classes. */
18852    typedef void         (*SlideshowItemDelFunc) (void *data, Evas_Object *obj); /**< Deletion class function for slideshow item classes. */
18853
18854    /**
18855     * @struct _Elm_Slideshow_Item_Class
18856     *
18857     * Slideshow item class definition. See @ref Slideshow_Items for
18858     * field details.
18859     */
18860    struct _Elm_Slideshow_Item_Class
18861      {
18862         struct _Elm_Slideshow_Item_Class_Func
18863           {
18864              SlideshowItemGetFunc get;
18865              SlideshowItemDelFunc del;
18866           } func;
18867      }; /**< #Elm_Slideshow_Item_Class member definitions */
18868
18869    /**
18870     * Add a new slideshow widget to the given parent Elementary
18871     * (container) object
18872     *
18873     * @param parent The parent object
18874     * @return A new slideshow widget handle or @c NULL, on errors
18875     *
18876     * This function inserts a new slideshow widget on the canvas.
18877     *
18878     * @ingroup Slideshow
18879     */
18880    EAPI Evas_Object        *elm_slideshow_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18881
18882    /**
18883     * Add (append) a new item in a given slideshow widget.
18884     *
18885     * @param obj The slideshow object
18886     * @param itc The item class for the item
18887     * @param data The item's data
18888     * @return A handle to the item added or @c NULL, on errors
18889     *
18890     * Add a new item to @p obj's internal list of items, appending it.
18891     * The item's class must contain the function really fetching the
18892     * image object to show for this item, which could be an Evas image
18893     * object or an Elementary photo, for example. The @p data
18894     * parameter is going to be passed to both class functions of the
18895     * item.
18896     *
18897     * @see #Elm_Slideshow_Item_Class
18898     * @see elm_slideshow_item_sorted_insert()
18899     *
18900     * @ingroup Slideshow
18901     */
18902    EAPI Elm_Slideshow_Item *elm_slideshow_item_add(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data) EINA_ARG_NONNULL(1);
18903
18904    /**
18905     * Insert a new item into the given slideshow widget, using the @p func
18906     * function to sort items (by item handles).
18907     *
18908     * @param obj The slideshow object
18909     * @param itc The item class for the item
18910     * @param data The item's data
18911     * @param func The comparing function to be used to sort slideshow
18912     * items <b>by #Elm_Slideshow_Item item handles</b>
18913     * @return Returns The slideshow item handle, on success, or
18914     * @c NULL, on errors
18915     *
18916     * Add a new item to @p obj's internal list of items, in a position
18917     * determined by the @p func comparing function. The item's class
18918     * must contain the function really fetching the image object to
18919     * show for this item, which could be an Evas image object or an
18920     * Elementary photo, for example. The @p data parameter is going to
18921     * be passed to both class functions of the item.
18922     *
18923     * @see #Elm_Slideshow_Item_Class
18924     * @see elm_slideshow_item_add()
18925     *
18926     * @ingroup Slideshow
18927     */
18928    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);
18929
18930    /**
18931     * Display a given slideshow widget's item, programmatically.
18932     *
18933     * @param obj The slideshow object
18934     * @param item The item to display on @p obj's viewport
18935     *
18936     * The change between the current item and @p item will use the
18937     * transition @p obj is set to use (@see
18938     * elm_slideshow_transition_set()).
18939     *
18940     * @ingroup Slideshow
18941     */
18942    EAPI void                elm_slideshow_show(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
18943
18944    /**
18945     * Slide to the @b next item, in a given slideshow widget
18946     *
18947     * @param obj The slideshow object
18948     *
18949     * The sliding animation @p obj is set to use will be the
18950     * transition effect used, after this call is issued.
18951     *
18952     * @note If the end of the slideshow's internal list of items is
18953     * reached, it'll wrap around to the list's beginning, again.
18954     *
18955     * @ingroup Slideshow
18956     */
18957    EAPI void                elm_slideshow_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
18958
18959    /**
18960     * Slide to the @b previous item, in a given slideshow widget
18961     *
18962     * @param obj The slideshow object
18963     *
18964     * The sliding animation @p obj is set to use will be the
18965     * transition effect used, after this call is issued.
18966     *
18967     * @note If the beginning of the slideshow's internal list of items
18968     * is reached, it'll wrap around to the list's end, again.
18969     *
18970     * @ingroup Slideshow
18971     */
18972    EAPI void                elm_slideshow_previous(Evas_Object *obj) EINA_ARG_NONNULL(1);
18973
18974    /**
18975     * Returns the list of sliding transition/effect names available, for a
18976     * given slideshow widget.
18977     *
18978     * @param obj The slideshow object
18979     * @return The list of transitions (list of @b stringshared strings
18980     * as data)
18981     *
18982     * The transitions, which come from @p obj's theme, must be an EDC
18983     * data item named @c "transitions" on the theme file, with (prefix)
18984     * names of EDC programs actually implementing them.
18985     *
18986     * The available transitions for slideshows on the default theme are:
18987     * - @c "fade" - the current item fades out, while the new one
18988     *   fades in to the slideshow's viewport.
18989     * - @c "black_fade" - the current item fades to black, and just
18990     *   then, the new item will fade in.
18991     * - @c "horizontal" - the current item slides horizontally, until
18992     *   it gets out of the slideshow's viewport, while the new item
18993     *   comes from the left to take its place.
18994     * - @c "vertical" - the current item slides vertically, until it
18995     *   gets out of the slideshow's viewport, while the new item comes
18996     *   from the bottom to take its place.
18997     * - @c "square" - the new item starts to appear from the middle of
18998     *   the current one, but with a tiny size, growing until its
18999     *   target (full) size and covering the old one.
19000     *
19001     * @warning The stringshared strings get no new references
19002     * exclusive to the user grabbing the list, here, so if you'd like
19003     * to use them out of this call's context, you'd better @c
19004     * eina_stringshare_ref() them.
19005     *
19006     * @see elm_slideshow_transition_set()
19007     *
19008     * @ingroup Slideshow
19009     */
19010    EAPI const Eina_List    *elm_slideshow_transitions_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19011
19012    /**
19013     * Set the current slide transition/effect in use for a given
19014     * slideshow widget
19015     *
19016     * @param obj The slideshow object
19017     * @param transition The new transition's name string
19018     *
19019     * If @p transition is implemented in @p obj's theme (i.e., is
19020     * contained in the list returned by
19021     * elm_slideshow_transitions_get()), this new sliding effect will
19022     * be used on the widget.
19023     *
19024     * @see elm_slideshow_transitions_get() for more details
19025     *
19026     * @ingroup Slideshow
19027     */
19028    EAPI void                elm_slideshow_transition_set(Evas_Object *obj, const char *transition) EINA_ARG_NONNULL(1);
19029
19030    /**
19031     * Get the current slide transition/effect in use for a given
19032     * slideshow widget
19033     *
19034     * @param obj The slideshow object
19035     * @return The current transition's name
19036     *
19037     * @see elm_slideshow_transition_set() for more details
19038     *
19039     * @ingroup Slideshow
19040     */
19041    EAPI const char         *elm_slideshow_transition_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19042
19043    /**
19044     * Set the interval between each image transition on a given
19045     * slideshow widget, <b>and start the slideshow, itself</b>
19046     *
19047     * @param obj The slideshow object
19048     * @param timeout The new displaying timeout for images
19049     *
19050     * After this call, the slideshow widget will start cycling its
19051     * view, sequentially and automatically, with the images of the
19052     * items it has. The time between each new image displayed is going
19053     * to be @p timeout, in @b seconds. If a different timeout was set
19054     * previously and an slideshow was in progress, it will continue
19055     * with the new time between transitions, after this call.
19056     *
19057     * @note A value less than or equal to 0 on @p timeout will disable
19058     * the widget's internal timer, thus halting any slideshow which
19059     * could be happening on @p obj.
19060     *
19061     * @see elm_slideshow_timeout_get()
19062     *
19063     * @ingroup Slideshow
19064     */
19065    EAPI void                elm_slideshow_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
19066
19067    /**
19068     * Get the interval set for image transitions on a given slideshow
19069     * widget.
19070     *
19071     * @param obj The slideshow object
19072     * @return Returns the timeout set on it
19073     *
19074     * @see elm_slideshow_timeout_set() for more details
19075     *
19076     * @ingroup Slideshow
19077     */
19078    EAPI double              elm_slideshow_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19079
19080    /**
19081     * Set if, after a slideshow is started, for a given slideshow
19082     * widget, its items should be displayed cyclically or not.
19083     *
19084     * @param obj The slideshow object
19085     * @param loop Use @c EINA_TRUE to make it cycle through items or
19086     * @c EINA_FALSE for it to stop at the end of @p obj's internal
19087     * list of items
19088     *
19089     * @note elm_slideshow_next() and elm_slideshow_previous() will @b
19090     * ignore what is set by this functions, i.e., they'll @b always
19091     * cycle through items. This affects only the "automatic"
19092     * slideshow, as set by elm_slideshow_timeout_set().
19093     *
19094     * @see elm_slideshow_loop_get()
19095     *
19096     * @ingroup Slideshow
19097     */
19098    EAPI void                elm_slideshow_loop_set(Evas_Object *obj, Eina_Bool loop) EINA_ARG_NONNULL(1);
19099
19100    /**
19101     * Get if, after a slideshow is started, for a given slideshow
19102     * widget, its items are to be displayed cyclically or not.
19103     *
19104     * @param obj The slideshow object
19105     * @return @c EINA_TRUE, if the items in @p obj will be cycled
19106     * through or @c EINA_FALSE, otherwise
19107     *
19108     * @see elm_slideshow_loop_set() for more details
19109     *
19110     * @ingroup Slideshow
19111     */
19112    EAPI Eina_Bool           elm_slideshow_loop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19113
19114    /**
19115     * Remove all items from a given slideshow widget
19116     *
19117     * @param obj The slideshow object
19118     *
19119     * This removes (and deletes) all items in @p obj, leaving it
19120     * empty.
19121     *
19122     * @see elm_slideshow_item_del(), to remove just one item.
19123     *
19124     * @ingroup Slideshow
19125     */
19126    EAPI void                elm_slideshow_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
19127
19128    /**
19129     * Get the internal list of items in a given slideshow widget.
19130     *
19131     * @param obj The slideshow object
19132     * @return The list of items (#Elm_Slideshow_Item as data) or
19133     * @c NULL on errors.
19134     *
19135     * This list is @b not to be modified in any way and must not be
19136     * freed. Use the list members with functions like
19137     * elm_slideshow_item_del(), elm_slideshow_item_data_get().
19138     *
19139     * @warning This list is only valid until @p obj object's internal
19140     * items list is changed. It should be fetched again with another
19141     * call to this function when changes happen.
19142     *
19143     * @ingroup Slideshow
19144     */
19145    EAPI const Eina_List    *elm_slideshow_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19146
19147    /**
19148     * Delete a given item from a slideshow widget.
19149     *
19150     * @param item The slideshow item
19151     *
19152     * @ingroup Slideshow
19153     */
19154    EAPI void                elm_slideshow_item_del(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
19155
19156    /**
19157     * Return the data associated with a given slideshow item
19158     *
19159     * @param item The slideshow item
19160     * @return Returns the data associated to this item
19161     *
19162     * @ingroup Slideshow
19163     */
19164    EAPI void               *elm_slideshow_item_data_get(const Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
19165
19166    /**
19167     * Returns the currently displayed item, in a given slideshow widget
19168     *
19169     * @param obj The slideshow object
19170     * @return A handle to the item being displayed in @p obj or
19171     * @c NULL, if none is (and on errors)
19172     *
19173     * @ingroup Slideshow
19174     */
19175    EAPI Elm_Slideshow_Item *elm_slideshow_item_current_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19176
19177    /**
19178     * Get the real Evas object created to implement the view of a
19179     * given slideshow item
19180     *
19181     * @param item The slideshow item.
19182     * @return the Evas object implementing this item's view.
19183     *
19184     * This returns the actual Evas object used to implement the
19185     * specified slideshow item's view. This may be @c NULL, as it may
19186     * not have been created or may have been deleted, at any time, by
19187     * the slideshow. <b>Do not modify this object</b> (move, resize,
19188     * show, hide, etc.), as the slideshow is controlling it. This
19189     * function is for querying, emitting custom signals or hooking
19190     * lower level callbacks for events on that object. Do not delete
19191     * this object under any circumstances.
19192     *
19193     * @see elm_slideshow_item_data_get()
19194     *
19195     * @ingroup Slideshow
19196     */
19197    EAPI Evas_Object*        elm_slideshow_item_object_get(const Elm_Slideshow_Item* item) EINA_ARG_NONNULL(1);
19198
19199    /**
19200     * Get the the item, in a given slideshow widget, placed at
19201     * position @p nth, in its internal items list
19202     *
19203     * @param obj The slideshow object
19204     * @param nth The number of the item to grab a handle to (0 being
19205     * the first)
19206     * @return The item stored in @p obj at position @p nth or @c NULL,
19207     * if there's no item with that index (and on errors)
19208     *
19209     * @ingroup Slideshow
19210     */
19211    EAPI Elm_Slideshow_Item *elm_slideshow_item_nth_get(const Evas_Object *obj, unsigned int nth) EINA_ARG_NONNULL(1);
19212
19213    /**
19214     * Set the current slide layout in use for a given slideshow widget
19215     *
19216     * @param obj The slideshow object
19217     * @param layout The new layout's name string
19218     *
19219     * If @p layout is implemented in @p obj's theme (i.e., is contained
19220     * in the list returned by elm_slideshow_layouts_get()), this new
19221     * images layout will be used on the widget.
19222     *
19223     * @see elm_slideshow_layouts_get() for more details
19224     *
19225     * @ingroup Slideshow
19226     */
19227    EAPI void                elm_slideshow_layout_set(Evas_Object *obj, const char *layout) EINA_ARG_NONNULL(1);
19228
19229    /**
19230     * Get the current slide layout in use for a given slideshow widget
19231     *
19232     * @param obj The slideshow object
19233     * @return The current layout's name
19234     *
19235     * @see elm_slideshow_layout_set() for more details
19236     *
19237     * @ingroup Slideshow
19238     */
19239    EAPI const char         *elm_slideshow_layout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19240
19241    /**
19242     * Returns the list of @b layout names available, for a given
19243     * slideshow widget.
19244     *
19245     * @param obj The slideshow object
19246     * @return The list of layouts (list of @b stringshared strings
19247     * as data)
19248     *
19249     * Slideshow layouts will change how the widget is to dispose each
19250     * image item in its viewport, with regard to cropping, scaling,
19251     * etc.
19252     *
19253     * The layouts, which come from @p obj's theme, must be an EDC
19254     * data item name @c "layouts" on the theme file, with (prefix)
19255     * names of EDC programs actually implementing them.
19256     *
19257     * The available layouts for slideshows on the default theme are:
19258     * - @c "fullscreen" - item images with original aspect, scaled to
19259     *   touch top and down slideshow borders or, if the image's heigh
19260     *   is not enough, left and right slideshow borders.
19261     * - @c "not_fullscreen" - the same behavior as the @c "fullscreen"
19262     *   one, but always leaving 10% of the slideshow's dimensions of
19263     *   distance between the item image's borders and the slideshow
19264     *   borders, for each axis.
19265     *
19266     * @warning The stringshared strings get no new references
19267     * exclusive to the user grabbing the list, here, so if you'd like
19268     * to use them out of this call's context, you'd better @c
19269     * eina_stringshare_ref() them.
19270     *
19271     * @see elm_slideshow_layout_set()
19272     *
19273     * @ingroup Slideshow
19274     */
19275    EAPI const Eina_List    *elm_slideshow_layouts_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19276
19277    /**
19278     * Set the number of items to cache, on a given slideshow widget,
19279     * <b>before the current item</b>
19280     *
19281     * @param obj The slideshow object
19282     * @param count Number of items to cache before the current one
19283     *
19284     * The default value for this property is @c 2. See
19285     * @ref Slideshow_Caching "slideshow caching" for more details.
19286     *
19287     * @see elm_slideshow_cache_before_get()
19288     *
19289     * @ingroup Slideshow
19290     */
19291    EAPI void                elm_slideshow_cache_before_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
19292
19293    /**
19294     * Retrieve the number of items to cache, on a given slideshow widget,
19295     * <b>before the current item</b>
19296     *
19297     * @param obj The slideshow object
19298     * @return The number of items set to be cached before the current one
19299     *
19300     * @see elm_slideshow_cache_before_set() for more details
19301     *
19302     * @ingroup Slideshow
19303     */
19304    EAPI int                 elm_slideshow_cache_before_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19305
19306    /**
19307     * Set the number of items to cache, on a given slideshow widget,
19308     * <b>after the current item</b>
19309     *
19310     * @param obj The slideshow object
19311     * @param count Number of items to cache after the current one
19312     *
19313     * The default value for this property is @c 2. See
19314     * @ref Slideshow_Caching "slideshow caching" for more details.
19315     *
19316     * @see elm_slideshow_cache_after_get()
19317     *
19318     * @ingroup Slideshow
19319     */
19320    EAPI void                elm_slideshow_cache_after_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
19321
19322    /**
19323     * Retrieve the number of items to cache, on a given slideshow widget,
19324     * <b>after the current item</b>
19325     *
19326     * @param obj The slideshow object
19327     * @return The number of items set to be cached after the current one
19328     *
19329     * @see elm_slideshow_cache_after_set() for more details
19330     *
19331     * @ingroup Slideshow
19332     */
19333    EAPI int                 elm_slideshow_cache_after_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19334
19335    /**
19336     * Get the number of items stored in a given slideshow widget
19337     *
19338     * @param obj The slideshow object
19339     * @return The number of items on @p obj, at the moment of this call
19340     *
19341     * @ingroup Slideshow
19342     */
19343    EAPI unsigned int        elm_slideshow_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19344
19345    /**
19346     * @}
19347     */
19348
19349    /**
19350     * @defgroup Fileselector File Selector
19351     *
19352     * @image html img/widget/fileselector/preview-00.png
19353     * @image latex img/widget/fileselector/preview-00.eps
19354     *
19355     * A file selector is a widget that allows a user to navigate
19356     * through a file system, reporting file selections back via its
19357     * API.
19358     *
19359     * It contains shortcut buttons for home directory (@c ~) and to
19360     * jump one directory upwards (..), as well as cancel/ok buttons to
19361     * confirm/cancel a given selection. After either one of those two
19362     * former actions, the file selector will issue its @c "done" smart
19363     * callback.
19364     *
19365     * There's a text entry on it, too, showing the name of the current
19366     * selection. There's the possibility of making it editable, so it
19367     * is useful on file saving dialogs on applications, where one
19368     * gives a file name to save contents to, in a given directory in
19369     * the system. This custom file name will be reported on the @c
19370     * "done" smart callback (explained in sequence).
19371     *
19372     * Finally, it has a view to display file system items into in two
19373     * possible forms:
19374     * - list
19375     * - grid
19376     *
19377     * If Elementary is built with support of the Ethumb thumbnailing
19378     * library, the second form of view will display preview thumbnails
19379     * of files which it supports.
19380     *
19381     * Smart callbacks one can register to:
19382     *
19383     * - @c "selected" - the user has clicked on a file (when not in
19384     *      folders-only mode) or directory (when in folders-only mode)
19385     * - @c "directory,open" - the list has been populated with new
19386     *      content (@c event_info is a pointer to the directory's
19387     *      path, a @b stringshared string)
19388     * - @c "done" - the user has clicked on the "ok" or "cancel"
19389     *      buttons (@c event_info is a pointer to the selection's
19390     *      path, a @b stringshared string)
19391     *
19392     * Here is an example on its usage:
19393     * @li @ref fileselector_example
19394     */
19395
19396    /**
19397     * @addtogroup Fileselector
19398     * @{
19399     */
19400
19401    /**
19402     * Defines how a file selector widget is to layout its contents
19403     * (file system entries).
19404     */
19405    typedef enum _Elm_Fileselector_Mode
19406      {
19407         ELM_FILESELECTOR_LIST = 0, /**< layout as a list */
19408         ELM_FILESELECTOR_GRID, /**< layout as a grid */
19409         ELM_FILESELECTOR_LAST /**< sentinel (helper) value, not used */
19410      } Elm_Fileselector_Mode;
19411
19412    /**
19413     * Add a new file selector widget to the given parent Elementary
19414     * (container) object
19415     *
19416     * @param parent The parent object
19417     * @return a new file selector widget handle or @c NULL, on errors
19418     *
19419     * This function inserts a new file selector widget on the canvas.
19420     *
19421     * @ingroup Fileselector
19422     */
19423    EAPI Evas_Object          *elm_fileselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19424
19425    /**
19426     * Enable/disable the file name entry box where the user can type
19427     * in a name for a file, in a given file selector widget
19428     *
19429     * @param obj The file selector object
19430     * @param is_save @c EINA_TRUE to make the file selector a "saving
19431     * dialog", @c EINA_FALSE otherwise
19432     *
19433     * Having the entry editable is useful on file saving dialogs on
19434     * applications, where one gives a file name to save contents to,
19435     * in a given directory in the system. This custom file name will
19436     * be reported on the @c "done" smart callback.
19437     *
19438     * @see elm_fileselector_is_save_get()
19439     *
19440     * @ingroup Fileselector
19441     */
19442    EAPI void                  elm_fileselector_is_save_set(Evas_Object *obj, Eina_Bool is_save) EINA_ARG_NONNULL(1);
19443
19444    /**
19445     * Get whether the given file selector is in "saving dialog" mode
19446     *
19447     * @param obj The file selector object
19448     * @return @c EINA_TRUE, if the file selector is in "saving dialog"
19449     * mode, @c EINA_FALSE otherwise (and on errors)
19450     *
19451     * @see elm_fileselector_is_save_set() for more details
19452     *
19453     * @ingroup Fileselector
19454     */
19455    EAPI Eina_Bool             elm_fileselector_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19456
19457    /**
19458     * Enable/disable folder-only view for a given file selector widget
19459     *
19460     * @param obj The file selector object
19461     * @param only @c EINA_TRUE to make @p obj only display
19462     * directories, @c EINA_FALSE to make files to be displayed in it
19463     * too
19464     *
19465     * If enabled, the widget's view will only display folder items,
19466     * naturally.
19467     *
19468     * @see elm_fileselector_folder_only_get()
19469     *
19470     * @ingroup Fileselector
19471     */
19472    EAPI void                  elm_fileselector_folder_only_set(Evas_Object *obj, Eina_Bool only) EINA_ARG_NONNULL(1);
19473
19474    /**
19475     * Get whether folder-only view is set for a given file selector
19476     * widget
19477     *
19478     * @param obj The file selector object
19479     * @return only @c EINA_TRUE if @p obj is only displaying
19480     * directories, @c EINA_FALSE if files are being displayed in it
19481     * too (and on errors)
19482     *
19483     * @see elm_fileselector_folder_only_get()
19484     *
19485     * @ingroup Fileselector
19486     */
19487    EAPI Eina_Bool             elm_fileselector_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19488
19489    /**
19490     * Enable/disable the "ok" and "cancel" buttons on a given file
19491     * selector widget
19492     *
19493     * @param obj The file selector object
19494     * @param only @c EINA_TRUE to show them, @c EINA_FALSE to hide.
19495     *
19496     * @note A file selector without those buttons will never emit the
19497     * @c "done" smart event, and is only usable if one is just hooking
19498     * to the other two events.
19499     *
19500     * @see elm_fileselector_buttons_ok_cancel_get()
19501     *
19502     * @ingroup Fileselector
19503     */
19504    EAPI void                  elm_fileselector_buttons_ok_cancel_set(Evas_Object *obj, Eina_Bool buttons) EINA_ARG_NONNULL(1);
19505
19506    /**
19507     * Get whether the "ok" and "cancel" buttons on a given file
19508     * selector widget are being shown.
19509     *
19510     * @param obj The file selector object
19511     * @return @c EINA_TRUE if they are being shown, @c EINA_FALSE
19512     * otherwise (and on errors)
19513     *
19514     * @see elm_fileselector_buttons_ok_cancel_set() for more details
19515     *
19516     * @ingroup Fileselector
19517     */
19518    EAPI Eina_Bool             elm_fileselector_buttons_ok_cancel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19519
19520    /**
19521     * Enable/disable a tree view in the given file selector widget,
19522     * <b>if it's in @c #ELM_FILESELECTOR_LIST mode</b>
19523     *
19524     * @param obj The file selector object
19525     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
19526     * disable
19527     *
19528     * In a tree view, arrows are created on the sides of directories,
19529     * allowing them to expand in place.
19530     *
19531     * @note If it's in other mode, the changes made by this function
19532     * will only be visible when one switches back to "list" mode.
19533     *
19534     * @see elm_fileselector_expandable_get()
19535     *
19536     * @ingroup Fileselector
19537     */
19538    EAPI void                  elm_fileselector_expandable_set(Evas_Object *obj, Eina_Bool expand) EINA_ARG_NONNULL(1);
19539
19540    /**
19541     * Get whether tree view is enabled for the given file selector
19542     * widget
19543     *
19544     * @param obj The file selector object
19545     * @return @c EINA_TRUE if @p obj is in tree view, @c EINA_FALSE
19546     * otherwise (and or errors)
19547     *
19548     * @see elm_fileselector_expandable_set() for more details
19549     *
19550     * @ingroup Fileselector
19551     */
19552    EAPI Eina_Bool             elm_fileselector_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19553
19554    /**
19555     * Set, programmatically, the @b directory that a given file
19556     * selector widget will display contents from
19557     *
19558     * @param obj The file selector object
19559     * @param path The path to display in @p obj
19560     *
19561     * This will change the @b directory that @p obj is displaying. It
19562     * will also clear the text entry area on the @p obj object, which
19563     * displays select files' names.
19564     *
19565     * @see elm_fileselector_path_get()
19566     *
19567     * @ingroup Fileselector
19568     */
19569    EAPI void                  elm_fileselector_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
19570
19571    /**
19572     * Get the parent directory's path that a given file selector
19573     * widget is displaying
19574     *
19575     * @param obj The file selector object
19576     * @return The (full) path of the directory the file selector is
19577     * displaying, a @b stringshared string
19578     *
19579     * @see elm_fileselector_path_set()
19580     *
19581     * @ingroup Fileselector
19582     */
19583    EAPI const char           *elm_fileselector_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19584
19585    /**
19586     * Set, programmatically, the currently selected file/directory in
19587     * the given file selector widget
19588     *
19589     * @param obj The file selector object
19590     * @param path The (full) path to a file or directory
19591     * @return @c EINA_TRUE on success, @c EINA_FALSE on failure. The
19592     * latter case occurs if the directory or file pointed to do not
19593     * exist.
19594     *
19595     * @see elm_fileselector_selected_get()
19596     *
19597     * @ingroup Fileselector
19598     */
19599    EAPI Eina_Bool             elm_fileselector_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
19600
19601    /**
19602     * Get the currently selected item's (full) path, in the given file
19603     * selector widget
19604     *
19605     * @param obj The file selector object
19606     * @return The absolute path of the selected item, a @b
19607     * stringshared string
19608     *
19609     * @note Custom editions on @p obj object's text entry, if made,
19610     * will appear on the return string of this function, naturally.
19611     *
19612     * @see elm_fileselector_selected_set() for more details
19613     *
19614     * @ingroup Fileselector
19615     */
19616    EAPI const char           *elm_fileselector_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19617
19618    /**
19619     * Set the mode in which a given file selector widget will display
19620     * (layout) file system entries in its view
19621     *
19622     * @param obj The file selector object
19623     * @param mode The mode of the fileselector, being it one of
19624     * #ELM_FILESELECTOR_LIST (default) or #ELM_FILESELECTOR_GRID. The
19625     * first one, naturally, will display the files in a list. The
19626     * latter will make the widget to display its entries in a grid
19627     * form.
19628     *
19629     * @note By using elm_fileselector_expandable_set(), the user may
19630     * trigger a tree view for that list.
19631     *
19632     * @note If Elementary is built with support of the Ethumb
19633     * thumbnailing library, the second form of view will display
19634     * preview thumbnails of files which it supports. You must have
19635     * elm_need_ethumb() called in your Elementary for thumbnailing to
19636     * work, though.
19637     *
19638     * @see elm_fileselector_expandable_set().
19639     * @see elm_fileselector_mode_get().
19640     *
19641     * @ingroup Fileselector
19642     */
19643    EAPI void                  elm_fileselector_mode_set(Evas_Object *obj, Elm_Fileselector_Mode mode) EINA_ARG_NONNULL(1);
19644
19645    /**
19646     * Get the mode in which a given file selector widget is displaying
19647     * (layouting) file system entries in its view
19648     *
19649     * @param obj The fileselector object
19650     * @return The mode in which the fileselector is at
19651     *
19652     * @see elm_fileselector_mode_set() for more details
19653     *
19654     * @ingroup Fileselector
19655     */
19656    EAPI Elm_Fileselector_Mode elm_fileselector_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19657
19658    /**
19659     * @}
19660     */
19661
19662    /**
19663     * @defgroup Progressbar Progress bar
19664     *
19665     * The progress bar is a widget for visually representing the
19666     * progress status of a given job/task.
19667     *
19668     * A progress bar may be horizontal or vertical. It may display an
19669     * icon besides it, as well as primary and @b units labels. The
19670     * former is meant to label the widget as a whole, while the
19671     * latter, which is formatted with floating point values (and thus
19672     * accepts a <c>printf</c>-style format string, like <c>"%1.2f
19673     * units"</c>), is meant to label the widget's <b>progress
19674     * value</b>. Label, icon and unit strings/objects are @b optional
19675     * for progress bars.
19676     *
19677     * A progress bar may be @b inverted, in which state it gets its
19678     * values inverted, with high values being on the left or top and
19679     * low values on the right or bottom, as opposed to normally have
19680     * the low values on the former and high values on the latter,
19681     * respectively, for horizontal and vertical modes.
19682     *
19683     * The @b span of the progress, as set by
19684     * elm_progressbar_span_size_set(), is its length (horizontally or
19685     * vertically), unless one puts size hints on the widget to expand
19686     * on desired directions, by any container. That length will be
19687     * scaled by the object or applications scaling factor. At any
19688     * point code can query the progress bar for its value with
19689     * elm_progressbar_value_get().
19690     *
19691     * Available widget styles for progress bars:
19692     * - @c "default"
19693     * - @c "wheel" (simple style, no text, no progression, only
19694     *      "pulse" effect is available)
19695     *
19696     * Here is an example on its usage:
19697     * @li @ref progressbar_example
19698     */
19699
19700    /**
19701     * Add a new progress bar widget to the given parent Elementary
19702     * (container) object
19703     *
19704     * @param parent The parent object
19705     * @return a new progress bar widget handle or @c NULL, on errors
19706     *
19707     * This function inserts a new progress bar widget on the canvas.
19708     *
19709     * @ingroup Progressbar
19710     */
19711    EAPI Evas_Object *elm_progressbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19712
19713    /**
19714     * Set whether a given progress bar widget is at "pulsing mode" or
19715     * not.
19716     *
19717     * @param obj The progress bar object
19718     * @param pulse @c EINA_TRUE to put @p obj in pulsing mode,
19719     * @c EINA_FALSE to put it back to its default one
19720     *
19721     * By default, progress bars will display values from the low to
19722     * high value boundaries. There are, though, contexts in which the
19723     * state of progression of a given task is @b unknown.  For those,
19724     * one can set a progress bar widget to a "pulsing state", to give
19725     * the user an idea that some computation is being held, but
19726     * without exact progress values. In the default theme it will
19727     * animate its bar with the contents filling in constantly and back
19728     * to non-filled, in a loop. To start and stop this pulsing
19729     * animation, one has to explicitly call elm_progressbar_pulse().
19730     *
19731     * @see elm_progressbar_pulse_get()
19732     * @see elm_progressbar_pulse()
19733     *
19734     * @ingroup Progressbar
19735     */
19736    EAPI void         elm_progressbar_pulse_set(Evas_Object *obj, Eina_Bool pulse) EINA_ARG_NONNULL(1);
19737
19738    /**
19739     * Get whether a given progress bar widget is at "pulsing mode" or
19740     * not.
19741     *
19742     * @param obj The progress bar object
19743     * @return @c EINA_TRUE, if @p obj is in pulsing mode, @c EINA_FALSE
19744     * if it's in the default one (and on errors)
19745     *
19746     * @ingroup Progressbar
19747     */
19748    EAPI Eina_Bool    elm_progressbar_pulse_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19749
19750    /**
19751     * Start/stop a given progress bar "pulsing" animation, if its
19752     * under that mode
19753     *
19754     * @param obj The progress bar object
19755     * @param state @c EINA_TRUE, to @b start the pulsing animation,
19756     * @c EINA_FALSE to @b stop it
19757     *
19758     * @note This call won't do anything if @p obj is not under "pulsing mode".
19759     *
19760     * @see elm_progressbar_pulse_set() for more details.
19761     *
19762     * @ingroup Progressbar
19763     */
19764    EAPI void         elm_progressbar_pulse(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
19765
19766    /**
19767     * Set the progress value (in percentage) on a given progress bar
19768     * widget
19769     *
19770     * @param obj The progress bar object
19771     * @param val The progress value (@b must be between @c 0.0 and @c
19772     * 1.0)
19773     *
19774     * Use this call to set progress bar levels.
19775     *
19776     * @note If you passes a value out of the specified range for @p
19777     * val, it will be interpreted as the @b closest of the @b boundary
19778     * values in the range.
19779     *
19780     * @ingroup Progressbar
19781     */
19782    EAPI void         elm_progressbar_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
19783
19784    /**
19785     * Get the progress value (in percentage) on a given progress bar
19786     * widget
19787     *
19788     * @param obj The progress bar object
19789     * @return The value of the progressbar
19790     *
19791     * @see elm_progressbar_value_set() for more details
19792     *
19793     * @ingroup Progressbar
19794     */
19795    EAPI double       elm_progressbar_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19796
19797    /**
19798     * Set the label of a given progress bar widget
19799     *
19800     * @param obj The progress bar object
19801     * @param label The text label string, in UTF-8
19802     *
19803     * @ingroup Progressbar
19804     * @deprecated use elm_object_text_set() instead.
19805     */
19806    EINA_DEPRECATED EAPI void         elm_progressbar_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
19807
19808    /**
19809     * Get the label of a given progress bar widget
19810     *
19811     * @param obj The progressbar object
19812     * @return The text label string, in UTF-8
19813     *
19814     * @ingroup Progressbar
19815     * @deprecated use elm_object_text_set() instead.
19816     */
19817    EINA_DEPRECATED EAPI const char  *elm_progressbar_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19818
19819    /**
19820     * Set the icon object of a given progress bar widget
19821     *
19822     * @param obj The progress bar object
19823     * @param icon The icon object
19824     *
19825     * Use this call to decorate @p obj with an icon next to it.
19826     *
19827     * @note Once the icon object is set, a previously set one will be
19828     * deleted. If you want to keep that old content object, use the
19829     * elm_progressbar_icon_unset() function.
19830     *
19831     * @see elm_progressbar_icon_get()
19832     *
19833     * @ingroup Progressbar
19834     */
19835    EAPI void         elm_progressbar_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
19836
19837    /**
19838     * Retrieve the icon object set for a given progress bar widget
19839     *
19840     * @param obj The progress bar object
19841     * @return The icon object's handle, if @p obj had one set, or @c NULL,
19842     * otherwise (and on errors)
19843     *
19844     * @see elm_progressbar_icon_set() for more details
19845     *
19846     * @ingroup Progressbar
19847     */
19848    EAPI Evas_Object *elm_progressbar_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19849
19850    /**
19851     * Unset an icon set on a given progress bar widget
19852     *
19853     * @param obj The progress bar object
19854     * @return The icon object that was being used, if any was set, or
19855     * @c NULL, otherwise (and on errors)
19856     *
19857     * This call will unparent and return the icon object which was set
19858     * for this widget, previously, on success.
19859     *
19860     * @see elm_progressbar_icon_set() for more details
19861     *
19862     * @ingroup Progressbar
19863     */
19864    EAPI Evas_Object *elm_progressbar_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
19865
19866    /**
19867     * Set the (exact) length of the bar region of a given progress bar
19868     * widget
19869     *
19870     * @param obj The progress bar object
19871     * @param size The length of the progress bar's bar region
19872     *
19873     * This sets the minimum width (when in horizontal mode) or height
19874     * (when in vertical mode) of the actual bar area of the progress
19875     * bar @p obj. This in turn affects the object's minimum size. Use
19876     * this when you're not setting other size hints expanding on the
19877     * given direction (like weight and alignment hints) and you would
19878     * like it to have a specific size.
19879     *
19880     * @note Icon, label and unit text around @p obj will require their
19881     * own space, which will make @p obj to require more the @p size,
19882     * actually.
19883     *
19884     * @see elm_progressbar_span_size_get()
19885     *
19886     * @ingroup Progressbar
19887     */
19888    EAPI void         elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
19889
19890    /**
19891     * Get the length set for the bar region of a given progress bar
19892     * widget
19893     *
19894     * @param obj The progress bar object
19895     * @return The length of the progress bar's bar region
19896     *
19897     * If that size was not set previously, with
19898     * elm_progressbar_span_size_set(), this call will return @c 0.
19899     *
19900     * @ingroup Progressbar
19901     */
19902    EAPI Evas_Coord   elm_progressbar_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19903
19904    /**
19905     * Set the format string for a given progress bar widget's units
19906     * label
19907     *
19908     * @param obj The progress bar object
19909     * @param format The format string for @p obj's units label
19910     *
19911     * If @c NULL is passed on @p format, it will make @p obj's units
19912     * area to be hidden completely. If not, it'll set the <b>format
19913     * string</b> for the units label's @b text. The units label is
19914     * provided a floating point value, so the units text is up display
19915     * at most one floating point falue. Note that the units label is
19916     * optional. Use a format string such as "%1.2f meters" for
19917     * example.
19918     *
19919     * @note The default format string for a progress bar is an integer
19920     * percentage, as in @c "%.0f %%".
19921     *
19922     * @see elm_progressbar_unit_format_get()
19923     *
19924     * @ingroup Progressbar
19925     */
19926    EAPI void         elm_progressbar_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
19927
19928    /**
19929     * Retrieve the format string set for a given progress bar widget's
19930     * units label
19931     *
19932     * @param obj The progress bar object
19933     * @return The format set string for @p obj's units label or
19934     * @c NULL, if none was set (and on errors)
19935     *
19936     * @see elm_progressbar_unit_format_set() for more details
19937     *
19938     * @ingroup Progressbar
19939     */
19940    EAPI const char  *elm_progressbar_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19941
19942    /**
19943     * Set the orientation of a given progress bar widget
19944     *
19945     * @param obj The progress bar object
19946     * @param horizontal Use @c EINA_TRUE to make @p obj to be
19947     * @b horizontal, @c EINA_FALSE to make it @b vertical
19948     *
19949     * Use this function to change how your progress bar is to be
19950     * disposed: vertically or horizontally.
19951     *
19952     * @see elm_progressbar_horizontal_get()
19953     *
19954     * @ingroup Progressbar
19955     */
19956    EAPI void         elm_progressbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
19957
19958    /**
19959     * Retrieve the orientation of a given progress bar widget
19960     *
19961     * @param obj The progress bar object
19962     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
19963     * @c EINA_FALSE if it's @b vertical (and on errors)
19964     *
19965     * @see elm_progressbar_horizontal_set() for more details
19966     *
19967     * @ingroup Progressbar
19968     */
19969    EAPI Eina_Bool    elm_progressbar_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19970
19971    /**
19972     * Invert a given progress bar widget's displaying values order
19973     *
19974     * @param obj The progress bar object
19975     * @param inverted Use @c EINA_TRUE to make @p obj inverted,
19976     * @c EINA_FALSE to bring it back to default, non-inverted values.
19977     *
19978     * A progress bar may be @b inverted, in which state it gets its
19979     * values inverted, with high values being on the left or top and
19980     * low values on the right or bottom, as opposed to normally have
19981     * the low values on the former and high values on the latter,
19982     * respectively, for horizontal and vertical modes.
19983     *
19984     * @see elm_progressbar_inverted_get()
19985     *
19986     * @ingroup Progressbar
19987     */
19988    EAPI void         elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
19989
19990    /**
19991     * Get whether a given progress bar widget's displaying values are
19992     * inverted or not
19993     *
19994     * @param obj The progress bar object
19995     * @return @c EINA_TRUE, if @p obj has inverted values,
19996     * @c EINA_FALSE otherwise (and on errors)
19997     *
19998     * @see elm_progressbar_inverted_set() for more details
19999     *
20000     * @ingroup Progressbar
20001     */
20002    EAPI Eina_Bool    elm_progressbar_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20003
20004    /**
20005     * @defgroup Separator Separator
20006     *
20007     * @brief Separator is a very thin object used to separate other objects.
20008     *
20009     * A separator can be vertical or horizontal.
20010     *
20011     * @ref tutorial_separator is a good example of how to use a separator.
20012     * @{
20013     */
20014    /**
20015     * @brief Add a separator object to @p parent
20016     *
20017     * @param parent The parent object
20018     *
20019     * @return The separator object, or NULL upon failure
20020     */
20021    EAPI Evas_Object *elm_separator_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20022    /**
20023     * @brief Set the horizontal mode of a separator object
20024     *
20025     * @param obj The separator object
20026     * @param horizontal If true, the separator is horizontal
20027     */
20028    EAPI void         elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
20029    /**
20030     * @brief Get the horizontal mode of a separator object
20031     *
20032     * @param obj The separator object
20033     * @return If true, the separator is horizontal
20034     *
20035     * @see elm_separator_horizontal_set()
20036     */
20037    EAPI Eina_Bool    elm_separator_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20038    /**
20039     * @}
20040     */
20041
20042    /**
20043     * @defgroup Spinner Spinner
20044     * @ingroup Elementary
20045     *
20046     * @image html img/widget/spinner/preview-00.png
20047     * @image latex img/widget/spinner/preview-00.eps
20048     *
20049     * A spinner is a widget which allows the user to increase or decrease
20050     * numeric values using arrow buttons, or edit values directly, clicking
20051     * over it and typing the new value.
20052     *
20053     * By default the spinner will not wrap and has a label
20054     * of "%.0f" (just showing the integer value of the double).
20055     *
20056     * A spinner has a label that is formatted with floating
20057     * point values and thus accepts a printf-style format string, like
20058     * “%1.2f units”.
20059     *
20060     * It also allows specific values to be replaced by pre-defined labels.
20061     *
20062     * Smart callbacks one can register to:
20063     *
20064     * - "changed" - Whenever the spinner value is changed.
20065     * - "delay,changed" - A short time after the value is changed by the user.
20066     *    This will be called only when the user stops dragging for a very short
20067     *    period or when they release their finger/mouse, so it avoids possibly
20068     *    expensive reactions to the value change.
20069     *
20070     * Available styles for it:
20071     * - @c "default";
20072     * - @c "vertical": up/down buttons at the right side and text left aligned.
20073     *
20074     * Here is an example on its usage:
20075     * @ref spinner_example
20076     */
20077
20078    /**
20079     * @addtogroup Spinner
20080     * @{
20081     */
20082
20083    /**
20084     * Add a new spinner widget to the given parent Elementary
20085     * (container) object.
20086     *
20087     * @param parent The parent object.
20088     * @return a new spinner widget handle or @c NULL, on errors.
20089     *
20090     * This function inserts a new spinner widget on the canvas.
20091     *
20092     * @ingroup Spinner
20093     *
20094     */
20095    EAPI Evas_Object *elm_spinner_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20096
20097    /**
20098     * Set the format string of the displayed label.
20099     *
20100     * @param obj The spinner object.
20101     * @param fmt The format string for the label display.
20102     *
20103     * If @c NULL, this sets the format to "%.0f". If not it sets the format
20104     * string for the label text. The label text is provided a floating point
20105     * value, so the label text can display up to 1 floating point value.
20106     * Note that this is optional.
20107     *
20108     * Use a format string such as "%1.2f meters" for example, and it will
20109     * display values like: "3.14 meters" for a value equal to 3.14159.
20110     *
20111     * Default is "%0.f".
20112     *
20113     * @see elm_spinner_label_format_get()
20114     *
20115     * @ingroup Spinner
20116     */
20117    EAPI void         elm_spinner_label_format_set(Evas_Object *obj, const char *fmt) EINA_ARG_NONNULL(1);
20118
20119    /**
20120     * Get the label format of the spinner.
20121     *
20122     * @param obj The spinner object.
20123     * @return The text label format string in UTF-8.
20124     *
20125     * @see elm_spinner_label_format_set() for details.
20126     *
20127     * @ingroup Spinner
20128     */
20129    EAPI const char  *elm_spinner_label_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20130
20131    /**
20132     * Set the minimum and maximum values for the spinner.
20133     *
20134     * @param obj The spinner object.
20135     * @param min The minimum value.
20136     * @param max The maximum value.
20137     *
20138     * Define the allowed range of values to be selected by the user.
20139     *
20140     * If actual value is less than @p min, it will be updated to @p min. If it
20141     * is bigger then @p max, will be updated to @p max. Actual value can be
20142     * get with elm_spinner_value_get().
20143     *
20144     * By default, min is equal to 0, and max is equal to 100.
20145     *
20146     * @warning Maximum must be greater than minimum.
20147     *
20148     * @see elm_spinner_min_max_get()
20149     *
20150     * @ingroup Spinner
20151     */
20152    EAPI void         elm_spinner_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
20153
20154    /**
20155     * Get the minimum and maximum values of the spinner.
20156     *
20157     * @param obj The spinner object.
20158     * @param min Pointer where to store the minimum value.
20159     * @param max Pointer where to store the maximum value.
20160     *
20161     * @note If only one value is needed, the other pointer can be passed
20162     * as @c NULL.
20163     *
20164     * @see elm_spinner_min_max_set() for details.
20165     *
20166     * @ingroup Spinner
20167     */
20168    EAPI void         elm_spinner_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
20169
20170    /**
20171     * Set the step used to increment or decrement the spinner value.
20172     *
20173     * @param obj The spinner object.
20174     * @param step The step value.
20175     *
20176     * This value will be incremented or decremented to the displayed value.
20177     * It will be incremented while the user keep right or top arrow pressed,
20178     * and will be decremented while the user keep left or bottom arrow pressed.
20179     *
20180     * The interval to increment / decrement can be set with
20181     * elm_spinner_interval_set().
20182     *
20183     * By default step value is equal to 1.
20184     *
20185     * @see elm_spinner_step_get()
20186     *
20187     * @ingroup Spinner
20188     */
20189    EAPI void         elm_spinner_step_set(Evas_Object *obj, double step) EINA_ARG_NONNULL(1);
20190
20191    /**
20192     * Get the step used to increment or decrement the spinner value.
20193     *
20194     * @param obj The spinner object.
20195     * @return The step value.
20196     *
20197     * @see elm_spinner_step_get() for more details.
20198     *
20199     * @ingroup Spinner
20200     */
20201    EAPI double       elm_spinner_step_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20202
20203    /**
20204     * Set the value the spinner displays.
20205     *
20206     * @param obj The spinner object.
20207     * @param val The value to be displayed.
20208     *
20209     * Value will be presented on the label following format specified with
20210     * elm_spinner_format_set().
20211     *
20212     * @warning The value must to be between min and max values. This values
20213     * are set by elm_spinner_min_max_set().
20214     *
20215     * @see elm_spinner_value_get().
20216     * @see elm_spinner_format_set().
20217     * @see elm_spinner_min_max_set().
20218     *
20219     * @ingroup Spinner
20220     */
20221    EAPI void         elm_spinner_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
20222
20223    /**
20224     * Get the value displayed by the spinner.
20225     *
20226     * @param obj The spinner object.
20227     * @return The value displayed.
20228     *
20229     * @see elm_spinner_value_set() for details.
20230     *
20231     * @ingroup Spinner
20232     */
20233    EAPI double       elm_spinner_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20234
20235    /**
20236     * Set whether the spinner should wrap when it reaches its
20237     * minimum or maximum value.
20238     *
20239     * @param obj The spinner object.
20240     * @param wrap @c EINA_TRUE to enable wrap or @c EINA_FALSE to
20241     * disable it.
20242     *
20243     * Disabled by default. If disabled, when the user tries to increment the
20244     * value,
20245     * but displayed value plus step value is bigger than maximum value,
20246     * the spinner
20247     * won't allow it. The same happens when the user tries to decrement it,
20248     * but the value less step is less than minimum value.
20249     *
20250     * When wrap is enabled, in such situations it will allow these changes,
20251     * but will get the value that would be less than minimum and subtracts
20252     * from maximum. Or add the value that would be more than maximum to
20253     * the minimum.
20254     *
20255     * E.g.:
20256     * @li min value = 10
20257     * @li max value = 50
20258     * @li step value = 20
20259     * @li displayed value = 20
20260     *
20261     * When the user decrement value (using left or bottom arrow), it will
20262     * displays @c 40, because max - (min - (displayed - step)) is
20263     * @c 50 - (@c 10 - (@c 20 - @c 20)) = @c 40.
20264     *
20265     * @see elm_spinner_wrap_get().
20266     *
20267     * @ingroup Spinner
20268     */
20269    EAPI void         elm_spinner_wrap_set(Evas_Object *obj, Eina_Bool wrap) EINA_ARG_NONNULL(1);
20270
20271    /**
20272     * Get whether the spinner should wrap when it reaches its
20273     * minimum or maximum value.
20274     *
20275     * @param obj The spinner object
20276     * @return @c EINA_TRUE means wrap is enabled. @c EINA_FALSE indicates
20277     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
20278     *
20279     * @see elm_spinner_wrap_set() for details.
20280     *
20281     * @ingroup Spinner
20282     */
20283    EAPI Eina_Bool    elm_spinner_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20284
20285    /**
20286     * Set whether the spinner can be directly edited by the user or not.
20287     *
20288     * @param obj The spinner object.
20289     * @param editable @c EINA_TRUE to allow users to edit it or @c EINA_FALSE to
20290     * don't allow users to edit it directly.
20291     *
20292     * Spinner objects can have edition @b disabled, in which state they will
20293     * be changed only by arrows.
20294     * Useful for contexts
20295     * where you don't want your users to interact with it writting the value.
20296     * Specially
20297     * when using special values, the user can see real value instead
20298     * of special label on edition.
20299     *
20300     * It's enabled by default.
20301     *
20302     * @see elm_spinner_editable_get()
20303     *
20304     * @ingroup Spinner
20305     */
20306    EAPI void         elm_spinner_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
20307
20308    /**
20309     * Get whether the spinner can be directly edited by the user or not.
20310     *
20311     * @param obj The spinner object.
20312     * @return @c EINA_TRUE means edition is enabled. @c EINA_FALSE indicates
20313     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
20314     *
20315     * @see elm_spinner_editable_set() for details.
20316     *
20317     * @ingroup Spinner
20318     */
20319    EAPI Eina_Bool    elm_spinner_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20320
20321    /**
20322     * Set a special string to display in the place of the numerical value.
20323     *
20324     * @param obj The spinner object.
20325     * @param value The value to be replaced.
20326     * @param label The label to be used.
20327     *
20328     * It's useful for cases when a user should select an item that is
20329     * better indicated by a label than a value. For example, weekdays or months.
20330     *
20331     * E.g.:
20332     * @code
20333     * sp = elm_spinner_add(win);
20334     * elm_spinner_min_max_set(sp, 1, 3);
20335     * elm_spinner_special_value_add(sp, 1, "January");
20336     * elm_spinner_special_value_add(sp, 2, "February");
20337     * elm_spinner_special_value_add(sp, 3, "March");
20338     * evas_object_show(sp);
20339     * @endcode
20340     *
20341     * @ingroup Spinner
20342     */
20343    EAPI void         elm_spinner_special_value_add(Evas_Object *obj, double value, const char *label) EINA_ARG_NONNULL(1);
20344
20345    /**
20346     * Set the interval on time updates for an user mouse button hold
20347     * on spinner widgets' arrows.
20348     *
20349     * @param obj The spinner object.
20350     * @param interval The (first) interval value in seconds.
20351     *
20352     * This interval value is @b decreased while the user holds the
20353     * mouse pointer either incrementing or decrementing spinner's value.
20354     *
20355     * This helps the user to get to a given value distant from the
20356     * current one easier/faster, as it will start to change quicker and
20357     * quicker on mouse button holds.
20358     *
20359     * The calculation for the next change interval value, starting from
20360     * the one set with this call, is the previous interval divided by
20361     * @c 1.05, so it decreases a little bit.
20362     *
20363     * The default starting interval value for automatic changes is
20364     * @c 0.85 seconds.
20365     *
20366     * @see elm_spinner_interval_get()
20367     *
20368     * @ingroup Spinner
20369     */
20370    EAPI void         elm_spinner_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
20371
20372    /**
20373     * Get the interval on time updates for an user mouse button hold
20374     * on spinner widgets' arrows.
20375     *
20376     * @param obj The spinner object.
20377     * @return The (first) interval value, in seconds, set on it.
20378     *
20379     * @see elm_spinner_interval_set() for more details.
20380     *
20381     * @ingroup Spinner
20382     */
20383    EAPI double       elm_spinner_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20384
20385    /**
20386     * @}
20387     */
20388
20389    /**
20390     * @defgroup Index Index
20391     *
20392     * @image html img/widget/index/preview-00.png
20393     * @image latex img/widget/index/preview-00.eps
20394     *
20395     * An index widget gives you an index for fast access to whichever
20396     * group of other UI items one might have. It's a list of text
20397     * items (usually letters, for alphabetically ordered access).
20398     *
20399     * Index widgets are by default hidden and just appear when the
20400     * user clicks over it's reserved area in the canvas. In its
20401     * default theme, it's an area one @ref Fingers "finger" wide on
20402     * the right side of the index widget's container.
20403     *
20404     * When items on the index are selected, smart callbacks get
20405     * called, so that its user can make other container objects to
20406     * show a given area or child object depending on the index item
20407     * selected. You'd probably be using an index together with @ref
20408     * List "lists", @ref Genlist "generic lists" or @ref Gengrid
20409     * "general grids".
20410     *
20411     * Smart events one  can add callbacks for are:
20412     * - @c "changed" - When the selected index item changes. @c
20413     *      event_info is the selected item's data pointer.
20414     * - @c "delay,changed" - When the selected index item changes, but
20415     *      after a small idling period. @c event_info is the selected
20416     *      item's data pointer.
20417     * - @c "selected" - When the user releases a mouse button and
20418     *      selects an item. @c event_info is the selected item's data
20419     *      pointer.
20420     * - @c "level,up" - when the user moves a finger from the first
20421     *      level to the second level
20422     * - @c "level,down" - when the user moves a finger from the second
20423     *      level to the first level
20424     *
20425     * The @c "delay,changed" event is so that it'll wait a small time
20426     * before actually reporting those events and, moreover, just the
20427     * last event happening on those time frames will actually be
20428     * reported.
20429     *
20430     * Here are some examples on its usage:
20431     * @li @ref index_example_01
20432     * @li @ref index_example_02
20433     */
20434
20435    /**
20436     * @addtogroup Index
20437     * @{
20438     */
20439
20440    typedef struct _Elm_Index_Item Elm_Index_Item; /**< Opaque handle for items of Elementary index widgets */
20441
20442    /**
20443     * Add a new index widget to the given parent Elementary
20444     * (container) object
20445     *
20446     * @param parent The parent object
20447     * @return a new index widget handle or @c NULL, on errors
20448     *
20449     * This function inserts a new index widget on the canvas.
20450     *
20451     * @ingroup Index
20452     */
20453    EAPI Evas_Object    *elm_index_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20454
20455    /**
20456     * Set whether a given index widget is or not visible,
20457     * programatically.
20458     *
20459     * @param obj The index object
20460     * @param active @c EINA_TRUE to show it, @c EINA_FALSE to hide it
20461     *
20462     * Not to be confused with visible as in @c evas_object_show() --
20463     * visible with regard to the widget's auto hiding feature.
20464     *
20465     * @see elm_index_active_get()
20466     *
20467     * @ingroup Index
20468     */
20469    EAPI void            elm_index_active_set(Evas_Object *obj, Eina_Bool active) EINA_ARG_NONNULL(1);
20470
20471    /**
20472     * Get whether a given index widget is currently visible or not.
20473     *
20474     * @param obj The index object
20475     * @return @c EINA_TRUE, if it's shown, @c EINA_FALSE otherwise
20476     *
20477     * @see elm_index_active_set() for more details
20478     *
20479     * @ingroup Index
20480     */
20481    EAPI Eina_Bool       elm_index_active_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20482
20483    /**
20484     * Set the items level for a given index widget.
20485     *
20486     * @param obj The index object.
20487     * @param level @c 0 or @c 1, the currently implemented levels.
20488     *
20489     * @see elm_index_item_level_get()
20490     *
20491     * @ingroup Index
20492     */
20493    EAPI void            elm_index_item_level_set(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
20494
20495    /**
20496     * Get the items level set for a given index widget.
20497     *
20498     * @param obj The index object.
20499     * @return @c 0 or @c 1, which are the levels @p obj might be at.
20500     *
20501     * @see elm_index_item_level_set() for more information
20502     *
20503     * @ingroup Index
20504     */
20505    EAPI int             elm_index_item_level_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20506
20507    /**
20508     * Returns the last selected item's data, for a given index widget.
20509     *
20510     * @param obj The index object.
20511     * @return The item @b data associated to the last selected item on
20512     * @p obj (or @c NULL, on errors).
20513     *
20514     * @warning The returned value is @b not an #Elm_Index_Item item
20515     * handle, but the data associated to it (see the @c item parameter
20516     * in elm_index_item_append(), as an example).
20517     *
20518     * @ingroup Index
20519     */
20520    EAPI void           *elm_index_item_selected_get(const Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
20521
20522    /**
20523     * Append a new item on a given index widget.
20524     *
20525     * @param obj The index object.
20526     * @param letter Letter under which the item should be indexed
20527     * @param item The item data to set for the index's item
20528     *
20529     * Despite the most common usage of the @p letter argument is for
20530     * single char strings, one could use arbitrary strings as index
20531     * entries.
20532     *
20533     * @c item will be the pointer returned back on @c "changed", @c
20534     * "delay,changed" and @c "selected" smart events.
20535     *
20536     * @ingroup Index
20537     */
20538    EAPI void            elm_index_item_append(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
20539
20540    /**
20541     * Prepend a new item on a given index widget.
20542     *
20543     * @param obj The index object.
20544     * @param letter Letter under which the item should be indexed
20545     * @param item The item data to set for the index's item
20546     *
20547     * Despite the most common usage of the @p letter argument is for
20548     * single char strings, one could use arbitrary strings as index
20549     * entries.
20550     *
20551     * @c item will be the pointer returned back on @c "changed", @c
20552     * "delay,changed" and @c "selected" smart events.
20553     *
20554     * @ingroup Index
20555     */
20556    EAPI void            elm_index_item_prepend(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
20557
20558    /**
20559     * Append a new item, on a given index widget, <b>after the item
20560     * having @p relative as data</b>.
20561     *
20562     * @param obj The index object.
20563     * @param letter Letter under which the item should be indexed
20564     * @param item The item data to set for the index's item
20565     * @param relative The item data of the index item to be the
20566     * predecessor of this new one
20567     *
20568     * Despite the most common usage of the @p letter argument is for
20569     * single char strings, one could use arbitrary strings as index
20570     * entries.
20571     *
20572     * @c item will be the pointer returned back on @c "changed", @c
20573     * "delay,changed" and @c "selected" smart events.
20574     *
20575     * @note If @p relative is @c NULL or if it's not found to be data
20576     * set on any previous item on @p obj, this function will behave as
20577     * elm_index_item_append().
20578     *
20579     * @ingroup Index
20580     */
20581    EAPI void            elm_index_item_append_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
20582
20583    /**
20584     * Prepend a new item, on a given index widget, <b>after the item
20585     * having @p relative as data</b>.
20586     *
20587     * @param obj The index object.
20588     * @param letter Letter under which the item should be indexed
20589     * @param item The item data to set for the index's item
20590     * @param relative The item data of the index item to be the
20591     * successor of this new one
20592     *
20593     * Despite the most common usage of the @p letter argument is for
20594     * single char strings, one could use arbitrary strings as index
20595     * entries.
20596     *
20597     * @c item will be the pointer returned back on @c "changed", @c
20598     * "delay,changed" and @c "selected" smart events.
20599     *
20600     * @note If @p relative is @c NULL or if it's not found to be data
20601     * set on any previous item on @p obj, this function will behave as
20602     * elm_index_item_prepend().
20603     *
20604     * @ingroup Index
20605     */
20606    EAPI void            elm_index_item_prepend_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
20607
20608    /**
20609     * Insert a new item into the given index widget, using @p cmp_func
20610     * function to sort items (by item handles).
20611     *
20612     * @param obj The index object.
20613     * @param letter Letter under which the item should be indexed
20614     * @param item The item data to set for the index's item
20615     * @param cmp_func The comparing function to be used to sort index
20616     * items <b>by #Elm_Index_Item item handles</b>
20617     * @param cmp_data_func A @b fallback function to be called for the
20618     * sorting of index items <b>by item data</b>). It will be used
20619     * when @p cmp_func returns @c 0 (equality), which means an index
20620     * item with provided item data already exists. To decide which
20621     * data item should be pointed to by the index item in question, @p
20622     * cmp_data_func will be used. If @p cmp_data_func returns a
20623     * non-negative value, the previous index item data will be
20624     * replaced by the given @p item pointer. If the previous data need
20625     * to be freed, it should be done by the @p cmp_data_func function,
20626     * because all references to it will be lost. If this function is
20627     * not provided (@c NULL is given), index items will be @b
20628     * duplicated, if @p cmp_func returns @c 0.
20629     *
20630     * Despite the most common usage of the @p letter argument is for
20631     * single char strings, one could use arbitrary strings as index
20632     * entries.
20633     *
20634     * @c item will be the pointer returned back on @c "changed", @c
20635     * "delay,changed" and @c "selected" smart events.
20636     *
20637     * @ingroup Index
20638     */
20639    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);
20640
20641    /**
20642     * Remove an item from a given index widget, <b>to be referenced by
20643     * it's data value</b>.
20644     *
20645     * @param obj The index object
20646     * @param item The item's data pointer for the item to be removed
20647     * from @p obj
20648     *
20649     * If a deletion callback is set, via elm_index_item_del_cb_set(),
20650     * that callback function will be called by this one.
20651     *
20652     * @warning The item to be removed from @p obj will be found via
20653     * its item data pointer, and not by an #Elm_Index_Item handle.
20654     *
20655     * @ingroup Index
20656     */
20657    EAPI void            elm_index_item_del(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
20658
20659    /**
20660     * Find a given index widget's item, <b>using item data</b>.
20661     *
20662     * @param obj The index object
20663     * @param item The item data pointed to by the desired index item
20664     * @return The index item handle, if found, or @c NULL otherwise
20665     *
20666     * @ingroup Index
20667     */
20668    EAPI Elm_Index_Item *elm_index_item_find(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
20669
20670    /**
20671     * Removes @b all items from a given index widget.
20672     *
20673     * @param obj The index object.
20674     *
20675     * If deletion callbacks are set, via elm_index_item_del_cb_set(),
20676     * that callback function will be called for each item in @p obj.
20677     *
20678     * @ingroup Index
20679     */
20680    EAPI void            elm_index_item_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
20681
20682    /**
20683     * Go to a given items level on a index widget
20684     *
20685     * @param obj The index object
20686     * @param level The index level (one of @c 0 or @c 1)
20687     *
20688     * @ingroup Index
20689     */
20690    EAPI void            elm_index_item_go(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
20691
20692    /**
20693     * Return the data associated with a given index widget item
20694     *
20695     * @param it The index widget item handle
20696     * @return The data associated with @p it
20697     *
20698     * @see elm_index_item_data_set()
20699     *
20700     * @ingroup Index
20701     */
20702    EAPI void           *elm_index_item_data_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
20703
20704    /**
20705     * Set the data associated with a given index widget item
20706     *
20707     * @param it The index widget item handle
20708     * @param data The new data pointer to set to @p it
20709     *
20710     * This sets new item data on @p it.
20711     *
20712     * @warning The old data pointer won't be touched by this function, so
20713     * the user had better to free that old data himself/herself.
20714     *
20715     * @ingroup Index
20716     */
20717    EAPI void            elm_index_item_data_set(Elm_Index_Item *it, const void *data) EINA_ARG_NONNULL(1);
20718
20719    /**
20720     * Set the function to be called when a given index widget item is freed.
20721     *
20722     * @param it The item to set the callback on
20723     * @param func The function to call on the item's deletion
20724     *
20725     * When called, @p func will have both @c data and @c event_info
20726     * arguments with the @p it item's data value and, naturally, the
20727     * @c obj argument with a handle to the parent index widget.
20728     *
20729     * @ingroup Index
20730     */
20731    EAPI void            elm_index_item_del_cb_set(Elm_Index_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
20732
20733    /**
20734     * Get the letter (string) set on a given index widget item.
20735     *
20736     * @param it The index item handle
20737     * @return The letter string set on @p it
20738     *
20739     * @ingroup Index
20740     */
20741    EAPI const char     *elm_index_item_letter_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
20742
20743    /**
20744     * @}
20745     */
20746
20747    /**
20748     * @defgroup Photocam Photocam
20749     *
20750     * @image html img/widget/photocam/preview-00.png
20751     * @image latex img/widget/photocam/preview-00.eps
20752     *
20753     * This is a widget specifically for displaying high-resolution digital
20754     * camera photos giving speedy feedback (fast load), low memory footprint
20755     * and zooming and panning as well as fitting logic. It is entirely focused
20756     * on jpeg images, and takes advantage of properties of the jpeg format (via
20757     * evas loader features in the jpeg loader).
20758     *
20759     * Signals that you can add callbacks for are:
20760     * @li "clicked" - This is called when a user has clicked the photo without
20761     *                 dragging around.
20762     * @li "press" - This is called when a user has pressed down on the photo.
20763     * @li "longpressed" - This is called when a user has pressed down on the
20764     *                     photo for a long time without dragging around.
20765     * @li "clicked,double" - This is called when a user has double-clicked the
20766     *                        photo.
20767     * @li "load" - Photo load begins.
20768     * @li "loaded" - This is called when the image file load is complete for the
20769     *                first view (low resolution blurry version).
20770     * @li "load,detail" - Photo detailed data load begins.
20771     * @li "loaded,detail" - This is called when the image file load is complete
20772     *                      for the detailed image data (full resolution needed).
20773     * @li "zoom,start" - Zoom animation started.
20774     * @li "zoom,stop" - Zoom animation stopped.
20775     * @li "zoom,change" - Zoom changed when using an auto zoom mode.
20776     * @li "scroll" - the content has been scrolled (moved)
20777     * @li "scroll,anim,start" - scrolling animation has started
20778     * @li "scroll,anim,stop" - scrolling animation has stopped
20779     * @li "scroll,drag,start" - dragging the contents around has started
20780     * @li "scroll,drag,stop" - dragging the contents around has stopped
20781     *
20782     * @ref tutorial_photocam shows the API in action.
20783     * @{
20784     */
20785    /**
20786     * @brief Types of zoom available.
20787     */
20788    typedef enum _Elm_Photocam_Zoom_Mode
20789      {
20790         ELM_PHOTOCAM_ZOOM_MODE_MANUAL = 0, /**< Zoom controled normally by elm_photocam_zoom_set */
20791         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT, /**< Zoom until photo fits in photocam */
20792         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL, /**< Zoom until photo fills photocam */
20793         ELM_PHOTOCAM_ZOOM_MODE_LAST
20794      } Elm_Photocam_Zoom_Mode;
20795    /**
20796     * @brief Add a new Photocam object
20797     *
20798     * @param parent The parent object
20799     * @return The new object or NULL if it cannot be created
20800     */
20801    EAPI Evas_Object           *elm_photocam_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20802    /**
20803     * @brief Set the photo file to be shown
20804     *
20805     * @param obj The photocam object
20806     * @param file The photo file
20807     * @return The return error (see EVAS_LOAD_ERROR_NONE, EVAS_LOAD_ERROR_GENERIC etc.)
20808     *
20809     * This sets (and shows) the specified file (with a relative or absolute
20810     * path) and will return a load error (same error that
20811     * evas_object_image_load_error_get() will return). The image will change and
20812     * adjust its size at this point and begin a background load process for this
20813     * photo that at some time in the future will be displayed at the full
20814     * quality needed.
20815     */
20816    EAPI Evas_Load_Error        elm_photocam_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
20817    /**
20818     * @brief Returns the path of the current image file
20819     *
20820     * @param obj The photocam object
20821     * @return Returns the path
20822     *
20823     * @see elm_photocam_file_set()
20824     */
20825    EAPI const char            *elm_photocam_file_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20826    /**
20827     * @brief Set the zoom level of the photo
20828     *
20829     * @param obj The photocam object
20830     * @param zoom The zoom level to set
20831     *
20832     * This sets the zoom level. 1 will be 1:1 pixel for pixel. 2 will be 2:1
20833     * (that is 2x2 photo pixels will display as 1 on-screen pixel). 4:1 will be
20834     * 4x4 photo pixels as 1 screen pixel, and so on. The @p zoom parameter must
20835     * be greater than 0. It is usggested to stick to powers of 2. (1, 2, 4, 8,
20836     * 16, 32, etc.).
20837     */
20838    EAPI void                   elm_photocam_zoom_set(Evas_Object *obj, double zoom) EINA_ARG_NONNULL(1);
20839    /**
20840     * @brief Get the zoom level of the photo
20841     *
20842     * @param obj The photocam object
20843     * @return The current zoom level
20844     *
20845     * This returns the current zoom level of the photocam object. Note that if
20846     * you set the fill mode to other than ELM_PHOTOCAM_ZOOM_MODE_MANUAL
20847     * (which is the default), the zoom level may be changed at any time by the
20848     * photocam object itself to account for photo size and photocam viewpoer
20849     * size.
20850     *
20851     * @see elm_photocam_zoom_set()
20852     * @see elm_photocam_zoom_mode_set()
20853     */
20854    EAPI double                 elm_photocam_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20855    /**
20856     * @brief Set the zoom mode
20857     *
20858     * @param obj The photocam object
20859     * @param mode The desired mode
20860     *
20861     * This sets the zoom mode to manual or one of several automatic levels.
20862     * Manual (ELM_PHOTOCAM_ZOOM_MODE_MANUAL) means that zoom is set manually by
20863     * elm_photocam_zoom_set() and will stay at that level until changed by code
20864     * or until zoom mode is changed. This is the default mode. The Automatic
20865     * modes will allow the photocam object to automatically adjust zoom mode
20866     * based on properties. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT) will adjust zoom so
20867     * the photo fits EXACTLY inside the scroll frame with no pixels outside this
20868     * area. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL will be similar but ensure no
20869     * pixels within the frame are left unfilled.
20870     */
20871    EAPI void                   elm_photocam_zoom_mode_set(Evas_Object *obj, Elm_Photocam_Zoom_Mode mode) EINA_ARG_NONNULL(1);
20872    /**
20873     * @brief Get the zoom mode
20874     *
20875     * @param obj The photocam object
20876     * @return The current zoom mode
20877     *
20878     * This gets the current zoom mode of the photocam object.
20879     *
20880     * @see elm_photocam_zoom_mode_set()
20881     */
20882    EAPI Elm_Photocam_Zoom_Mode elm_photocam_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20883    /**
20884     * @brief Get the current image pixel width and height
20885     *
20886     * @param obj The photocam object
20887     * @param w A pointer to the width return
20888     * @param h A pointer to the height return
20889     *
20890     * This gets the current photo pixel width and height (for the original).
20891     * The size will be returned in the integers @p w and @p h that are pointed
20892     * to.
20893     */
20894    EAPI void                   elm_photocam_image_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
20895    /**
20896     * @brief Get the area of the image that is currently shown
20897     *
20898     * @param obj
20899     * @param x A pointer to the X-coordinate of region
20900     * @param y A pointer to the Y-coordinate of region
20901     * @param w A pointer to the width
20902     * @param h A pointer to the height
20903     *
20904     * @see elm_photocam_image_region_show()
20905     * @see elm_photocam_image_region_bring_in()
20906     */
20907    EAPI void                   elm_photocam_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
20908    /**
20909     * @brief Set the viewed portion of the image
20910     *
20911     * @param obj The photocam object
20912     * @param x X-coordinate of region in image original pixels
20913     * @param y Y-coordinate of region in image original pixels
20914     * @param w Width of region in image original pixels
20915     * @param h Height of region in image original pixels
20916     *
20917     * This shows the region of the image without using animation.
20918     */
20919    EAPI void                   elm_photocam_image_region_show(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
20920    /**
20921     * @brief Bring in the viewed portion of the image
20922     *
20923     * @param obj The photocam object
20924     * @param x X-coordinate of region in image original pixels
20925     * @param y Y-coordinate of region in image original pixels
20926     * @param w Width of region in image original pixels
20927     * @param h Height of region in image original pixels
20928     *
20929     * This shows the region of the image using animation.
20930     */
20931    EAPI void                   elm_photocam_image_region_bring_in(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
20932    /**
20933     * @brief Set the paused state for photocam
20934     *
20935     * @param obj The photocam object
20936     * @param paused The pause state to set
20937     *
20938     * This sets the paused state to on(EINA_TRUE) or off (EINA_FALSE) for
20939     * photocam. The default is off. This will stop zooming using animation on
20940     * zoom levels changes and change instantly. This will stop any existing
20941     * animations that are running.
20942     */
20943    EAPI void                   elm_photocam_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
20944    /**
20945     * @brief Get the paused state for photocam
20946     *
20947     * @param obj The photocam object
20948     * @return The current paused state
20949     *
20950     * This gets the current paused state for the photocam object.
20951     *
20952     * @see elm_photocam_paused_set()
20953     */
20954    EAPI Eina_Bool              elm_photocam_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20955    /**
20956     * @brief Get the internal low-res image used for photocam
20957     *
20958     * @param obj The photocam object
20959     * @return The internal image object handle, or NULL if none exists
20960     *
20961     * This gets the internal image object inside photocam. Do not modify it. It
20962     * is for inspection only, and hooking callbacks to. Nothing else. It may be
20963     * deleted at any time as well.
20964     */
20965    EAPI Evas_Object           *elm_photocam_internal_image_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20966    /**
20967     * @brief Set the photocam scrolling bouncing.
20968     *
20969     * @param obj The photocam object
20970     * @param h_bounce bouncing for horizontal
20971     * @param v_bounce bouncing for vertical
20972     */
20973    EAPI void                   elm_photocam_bounce_set(Evas_Object *obj,  Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
20974    /**
20975     * @brief Get the photocam scrolling bouncing.
20976     *
20977     * @param obj The photocam object
20978     * @param h_bounce bouncing for horizontal
20979     * @param v_bounce bouncing for vertical
20980     *
20981     * @see elm_photocam_bounce_set()
20982     */
20983    EAPI void                   elm_photocam_bounce_get(const Evas_Object *obj,  Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
20984    /**
20985     * @}
20986     */
20987
20988    /**
20989     * @defgroup Map Map
20990     * @ingroup Elementary
20991     *
20992     * @image html img/widget/map/preview-00.png
20993     * @image latex img/widget/map/preview-00.eps
20994     *
20995     * This is a widget specifically for displaying a map. It uses basically
20996     * OpenStreetMap provider http://www.openstreetmap.org/,
20997     * but custom providers can be added.
20998     *
20999     * It supports some basic but yet nice features:
21000     * @li zoom and scroll
21001     * @li markers with content to be displayed when user clicks over it
21002     * @li group of markers
21003     * @li routes
21004     *
21005     * Smart callbacks one can listen to:
21006     *
21007     * - "clicked" - This is called when a user has clicked the map without
21008     *   dragging around.
21009     * - "press" - This is called when a user has pressed down on the map.
21010     * - "longpressed" - This is called when a user has pressed down on the map
21011     *   for a long time without dragging around.
21012     * - "clicked,double" - This is called when a user has double-clicked
21013     *   the map.
21014     * - "load,detail" - Map detailed data load begins.
21015     * - "loaded,detail" - This is called when all currently visible parts of
21016     *   the map are loaded.
21017     * - "zoom,start" - Zoom animation started.
21018     * - "zoom,stop" - Zoom animation stopped.
21019     * - "zoom,change" - Zoom changed when using an auto zoom mode.
21020     * - "scroll" - the content has been scrolled (moved).
21021     * - "scroll,anim,start" - scrolling animation has started.
21022     * - "scroll,anim,stop" - scrolling animation has stopped.
21023     * - "scroll,drag,start" - dragging the contents around has started.
21024     * - "scroll,drag,stop" - dragging the contents around has stopped.
21025     * - "downloaded" - This is called when all currently required map images
21026     *   are downloaded.
21027     * - "route,load" - This is called when route request begins.
21028     * - "route,loaded" - This is called when route request ends.
21029     * - "name,load" - This is called when name request begins.
21030     * - "name,loaded- This is called when name request ends.
21031     *
21032     * Available style for map widget:
21033     * - @c "default"
21034     *
21035     * Available style for markers:
21036     * - @c "radio"
21037     * - @c "radio2"
21038     * - @c "empty"
21039     *
21040     * Available style for marker bubble:
21041     * - @c "default"
21042     *
21043     * List of examples:
21044     * @li @ref map_example_01
21045     * @li @ref map_example_02
21046     * @li @ref map_example_03
21047     */
21048
21049    /**
21050     * @addtogroup Map
21051     * @{
21052     */
21053
21054    /**
21055     * @enum _Elm_Map_Zoom_Mode
21056     * @typedef Elm_Map_Zoom_Mode
21057     *
21058     * Set map's zoom behavior. It can be set to manual or automatic.
21059     *
21060     * Default value is #ELM_MAP_ZOOM_MODE_MANUAL.
21061     *
21062     * Values <b> don't </b> work as bitmask, only one can be choosen.
21063     *
21064     * @note Valid sizes are 2^zoom, consequently the map may be smaller
21065     * than the scroller view.
21066     *
21067     * @see elm_map_zoom_mode_set()
21068     * @see elm_map_zoom_mode_get()
21069     *
21070     * @ingroup Map
21071     */
21072    typedef enum _Elm_Map_Zoom_Mode
21073      {
21074         ELM_MAP_ZOOM_MODE_MANUAL, /**< Zoom controled manually by elm_map_zoom_set(). It's set by default. */
21075         ELM_MAP_ZOOM_MODE_AUTO_FIT, /**< Zoom until map fits inside the scroll frame with no pixels outside this area. */
21076         ELM_MAP_ZOOM_MODE_AUTO_FILL, /**< Zoom until map fills scroll, ensuring no pixels are left unfilled. */
21077         ELM_MAP_ZOOM_MODE_LAST
21078      } Elm_Map_Zoom_Mode;
21079
21080    /**
21081     * @enum _Elm_Map_Route_Sources
21082     * @typedef Elm_Map_Route_Sources
21083     *
21084     * Set route service to be used. By default used source is
21085     * #ELM_MAP_ROUTE_SOURCE_YOURS.
21086     *
21087     * @see elm_map_route_source_set()
21088     * @see elm_map_route_source_get()
21089     *
21090     * @ingroup Map
21091     */
21092    typedef enum _Elm_Map_Route_Sources
21093      {
21094         ELM_MAP_ROUTE_SOURCE_YOURS, /**< Routing service http://www.yournavigation.org/ . Set by default.*/
21095         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. */
21096         ELM_MAP_ROUTE_SOURCE_ORS, /**< Open Route Service: http://www.openrouteservice.org/ . It's not working with Map yet. */
21097         ELM_MAP_ROUTE_SOURCE_LAST
21098      } Elm_Map_Route_Sources;
21099
21100    typedef enum _Elm_Map_Name_Sources
21101      {
21102         ELM_MAP_NAME_SOURCE_NOMINATIM,
21103         ELM_MAP_NAME_SOURCE_LAST
21104      } Elm_Map_Name_Sources;
21105
21106    /**
21107     * @enum _Elm_Map_Route_Type
21108     * @typedef Elm_Map_Route_Type
21109     *
21110     * Set type of transport used on route.
21111     *
21112     * @see elm_map_route_add()
21113     *
21114     * @ingroup Map
21115     */
21116    typedef enum _Elm_Map_Route_Type
21117      {
21118         ELM_MAP_ROUTE_TYPE_MOTOCAR, /**< Route should consider an automobile will be used. */
21119         ELM_MAP_ROUTE_TYPE_BICYCLE, /**< Route should consider a bicycle will be used by the user. */
21120         ELM_MAP_ROUTE_TYPE_FOOT, /**< Route should consider user will be walking. */
21121         ELM_MAP_ROUTE_TYPE_LAST
21122      } Elm_Map_Route_Type;
21123
21124    /**
21125     * @enum _Elm_Map_Route_Method
21126     * @typedef Elm_Map_Route_Method
21127     *
21128     * Set the routing method, what should be priorized, time or distance.
21129     *
21130     * @see elm_map_route_add()
21131     *
21132     * @ingroup Map
21133     */
21134    typedef enum _Elm_Map_Route_Method
21135      {
21136         ELM_MAP_ROUTE_METHOD_FASTEST, /**< Route should priorize time. */
21137         ELM_MAP_ROUTE_METHOD_SHORTEST, /**< Route should priorize distance. */
21138         ELM_MAP_ROUTE_METHOD_LAST
21139      } Elm_Map_Route_Method;
21140
21141    typedef enum _Elm_Map_Name_Method
21142      {
21143         ELM_MAP_NAME_METHOD_SEARCH,
21144         ELM_MAP_NAME_METHOD_REVERSE,
21145         ELM_MAP_NAME_METHOD_LAST
21146      } Elm_Map_Name_Method;
21147
21148    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(). */
21149    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(). */
21150    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(). */
21151    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(). */
21152    typedef struct _Elm_Map_Name            Elm_Map_Name; /**< A handle for specific coordinates. */
21153    typedef struct _Elm_Map_Track           Elm_Map_Track;
21154
21155    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. */
21156    typedef void         (*ElmMapMarkerDelFunc)      (Evas_Object *obj, Elm_Map_Marker *marker, void *data, Evas_Object *o); /**< Function to delete bubble content for marker classes. */
21157    typedef Evas_Object *(*ElmMapMarkerIconGetFunc)  (Evas_Object *obj, Elm_Map_Marker *marker, void *data); /**< Icon fetching class function for marker classes. */
21158    typedef Evas_Object *(*ElmMapGroupIconGetFunc)   (Evas_Object *obj, void *data); /**< Icon fetching class function for markers group classes. */
21159
21160    typedef char        *(*ElmMapModuleSourceFunc) (void);
21161    typedef int          (*ElmMapModuleZoomMinFunc) (void);
21162    typedef int          (*ElmMapModuleZoomMaxFunc) (void);
21163    typedef char        *(*ElmMapModuleUrlFunc) (Evas_Object *obj, int x, int y, int zoom);
21164    typedef int          (*ElmMapModuleRouteSourceFunc) (void);
21165    typedef char        *(*ElmMapModuleRouteUrlFunc) (Evas_Object *obj, char *type_name, int method, double flon, double flat, double tlon, double tlat);
21166    typedef char        *(*ElmMapModuleNameUrlFunc) (Evas_Object *obj, int method, char *name, double lon, double lat);
21167    typedef Eina_Bool    (*ElmMapModuleGeoIntoCoordFunc) (const Evas_Object *obj, int zoom, double lon, double lat, int size, int *x, int *y);
21168    typedef Eina_Bool    (*ElmMapModuleCoordIntoGeoFunc) (const Evas_Object *obj, int zoom, int x, int y, int size, double *lon, double *lat);
21169
21170    /**
21171     * Add a new map widget to the given parent Elementary (container) object.
21172     *
21173     * @param parent The parent object.
21174     * @return a new map widget handle or @c NULL, on errors.
21175     *
21176     * This function inserts a new map widget on the canvas.
21177     *
21178     * @ingroup Map
21179     */
21180    EAPI Evas_Object          *elm_map_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21181
21182    /**
21183     * Set the zoom level of the map.
21184     *
21185     * @param obj The map object.
21186     * @param zoom The zoom level to set.
21187     *
21188     * This sets the zoom level.
21189     *
21190     * It will respect limits defined by elm_map_source_zoom_min_set() and
21191     * elm_map_source_zoom_max_set().
21192     *
21193     * By default these values are 0 (world map) and 18 (maximum zoom).
21194     *
21195     * This function should be used when zoom mode is set to
21196     * #ELM_MAP_ZOOM_MODE_MANUAL. This is the default mode, and can be set
21197     * with elm_map_zoom_mode_set().
21198     *
21199     * @see elm_map_zoom_mode_set().
21200     * @see elm_map_zoom_get().
21201     *
21202     * @ingroup Map
21203     */
21204    EAPI void                  elm_map_zoom_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
21205
21206    /**
21207     * Get the zoom level of the map.
21208     *
21209     * @param obj The map object.
21210     * @return The current zoom level.
21211     *
21212     * This returns the current zoom level of the map object.
21213     *
21214     * Note that if you set the fill mode to other than #ELM_MAP_ZOOM_MODE_MANUAL
21215     * (which is the default), the zoom level may be changed at any time by the
21216     * map object itself to account for map size and map viewport size.
21217     *
21218     * @see elm_map_zoom_set() for details.
21219     *
21220     * @ingroup Map
21221     */
21222    EAPI int                   elm_map_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21223
21224    /**
21225     * Set the zoom mode used by the map object.
21226     *
21227     * @param obj The map object.
21228     * @param mode The zoom mode of the map, being it one of
21229     * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
21230     * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
21231     *
21232     * This sets the zoom mode to manual or one of the automatic levels.
21233     * Manual (#ELM_MAP_ZOOM_MODE_MANUAL) means that zoom is set manually by
21234     * elm_map_zoom_set() and will stay at that level until changed by code
21235     * or until zoom mode is changed. This is the default mode.
21236     *
21237     * The Automatic modes will allow the map object to automatically
21238     * adjust zoom mode based on properties. #ELM_MAP_ZOOM_MODE_AUTO_FIT will
21239     * adjust zoom so the map fits inside the scroll frame with no pixels
21240     * outside this area. #ELM_MAP_ZOOM_MODE_AUTO_FILL will be similar but
21241     * ensure no pixels within the frame are left unfilled. Do not forget that
21242     * the valid sizes are 2^zoom, consequently the map may be smaller than
21243     * the scroller view.
21244     *
21245     * @see elm_map_zoom_set()
21246     *
21247     * @ingroup Map
21248     */
21249    EAPI void                  elm_map_zoom_mode_set(Evas_Object *obj, Elm_Map_Zoom_Mode mode) EINA_ARG_NONNULL(1);
21250
21251    /**
21252     * Get the zoom mode used by the map object.
21253     *
21254     * @param obj The map object.
21255     * @return The zoom mode of the map, being it one of
21256     * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
21257     * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
21258     *
21259     * This function returns the current zoom mode used by the map object.
21260     *
21261     * @see elm_map_zoom_mode_set() for more details.
21262     *
21263     * @ingroup Map
21264     */
21265    EAPI Elm_Map_Zoom_Mode     elm_map_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21266
21267    /**
21268     * Get the current coordinates of the map.
21269     *
21270     * @param obj The map object.
21271     * @param lon Pointer where to store longitude.
21272     * @param lat Pointer where to store latitude.
21273     *
21274     * This gets the current center coordinates of the map object. It can be
21275     * set by elm_map_geo_region_bring_in() and elm_map_geo_region_show().
21276     *
21277     * @see elm_map_geo_region_bring_in()
21278     * @see elm_map_geo_region_show()
21279     *
21280     * @ingroup Map
21281     */
21282    EAPI void                  elm_map_geo_region_get(const Evas_Object *obj, double *lon, double *lat) EINA_ARG_NONNULL(1);
21283
21284    /**
21285     * Animatedly bring in given coordinates to the center of the map.
21286     *
21287     * @param obj The map object.
21288     * @param lon Longitude to center at.
21289     * @param lat Latitude to center at.
21290     *
21291     * This causes map to jump to the given @p lat and @p lon coordinates
21292     * and show it (by scrolling) in the center of the viewport, if it is not
21293     * already centered. This will use animation to do so and take a period
21294     * of time to complete.
21295     *
21296     * @see elm_map_geo_region_show() for a function to avoid animation.
21297     * @see elm_map_geo_region_get()
21298     *
21299     * @ingroup Map
21300     */
21301    EAPI void                  elm_map_geo_region_bring_in(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
21302
21303    /**
21304     * Show the given coordinates at the center of the map, @b immediately.
21305     *
21306     * @param obj The map object.
21307     * @param lon Longitude to center at.
21308     * @param lat Latitude to center at.
21309     *
21310     * This causes map to @b redraw its viewport's contents to the
21311     * region contining the given @p lat and @p lon, that will be moved to the
21312     * center of the map.
21313     *
21314     * @see elm_map_geo_region_bring_in() for a function to move with animation.
21315     * @see elm_map_geo_region_get()
21316     *
21317     * @ingroup Map
21318     */
21319    EAPI void                  elm_map_geo_region_show(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
21320
21321    /**
21322     * Pause or unpause the map.
21323     *
21324     * @param obj The map object.
21325     * @param paused Use @c EINA_TRUE to pause the map @p obj or @c EINA_FALSE
21326     * to unpause it.
21327     *
21328     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
21329     * for map.
21330     *
21331     * The default is off.
21332     *
21333     * This will stop zooming using animation, changing zoom levels will
21334     * change instantly. This will stop any existing animations that are running.
21335     *
21336     * @see elm_map_paused_get()
21337     *
21338     * @ingroup Map
21339     */
21340    EAPI void                  elm_map_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
21341
21342    /**
21343     * Get a value whether map is paused or not.
21344     *
21345     * @param obj The map object.
21346     * @return @c EINA_TRUE means map is pause. @c EINA_FALSE indicates
21347     * it is not. If @p obj is @c NULL, @c EINA_FALSE is returned.
21348     *
21349     * This gets the current paused state for the map object.
21350     *
21351     * @see elm_map_paused_set() for details.
21352     *
21353     * @ingroup Map
21354     */
21355    EAPI Eina_Bool             elm_map_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21356
21357    /**
21358     * Set to show markers during zoom level changes or not.
21359     *
21360     * @param obj The map object.
21361     * @param paused Use @c EINA_TRUE to @b not show markers or @c EINA_FALSE
21362     * to show them.
21363     *
21364     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
21365     * for map.
21366     *
21367     * The default is off.
21368     *
21369     * This will stop zooming using animation, changing zoom levels will
21370     * change instantly. This will stop any existing animations that are running.
21371     *
21372     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
21373     * for the markers.
21374     *
21375     * The default  is off.
21376     *
21377     * Enabling it will force the map to stop displaying the markers during
21378     * zoom level changes. Set to on if you have a large number of markers.
21379     *
21380     * @see elm_map_paused_markers_get()
21381     *
21382     * @ingroup Map
21383     */
21384    EAPI void                  elm_map_paused_markers_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
21385
21386    /**
21387     * Get a value whether markers will be displayed on zoom level changes or not
21388     *
21389     * @param obj The map object.
21390     * @return @c EINA_TRUE means map @b won't display markers or @c EINA_FALSE
21391     * indicates it will. If @p obj is @c NULL, @c EINA_FALSE is returned.
21392     *
21393     * This gets the current markers paused state for the map object.
21394     *
21395     * @see elm_map_paused_markers_set() for details.
21396     *
21397     * @ingroup Map
21398     */
21399    EAPI Eina_Bool             elm_map_paused_markers_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21400
21401    /**
21402     * Get the information of downloading status.
21403     *
21404     * @param obj The map object.
21405     * @param try_num Pointer where to store number of tiles being downloaded.
21406     * @param finish_num Pointer where to store number of tiles successfully
21407     * downloaded.
21408     *
21409     * This gets the current downloading status for the map object, the number
21410     * of tiles being downloaded and the number of tiles already downloaded.
21411     *
21412     * @ingroup Map
21413     */
21414    EAPI void                  elm_map_utils_downloading_status_get(const Evas_Object *obj, int *try_num, int *finish_num) EINA_ARG_NONNULL(1, 2, 3);
21415
21416    /**
21417     * Convert a pixel coordinate (x,y) into a geographic coordinate
21418     * (longitude, latitude).
21419     *
21420     * @param obj The map object.
21421     * @param x the coordinate.
21422     * @param y the coordinate.
21423     * @param size the size in pixels of the map.
21424     * The map is a square and generally his size is : pow(2.0, zoom)*256.
21425     * @param lon Pointer where to store the longitude that correspond to x.
21426     * @param lat Pointer where to store the latitude that correspond to y.
21427     *
21428     * @note Origin pixel point is the top left corner of the viewport.
21429     * Map zoom and size are taken on account.
21430     *
21431     * @see elm_map_utils_convert_geo_into_coord() if you need the inverse.
21432     *
21433     * @ingroup Map
21434     */
21435    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);
21436
21437    /**
21438     * Convert a geographic coordinate (longitude, latitude) into a pixel
21439     * coordinate (x, y).
21440     *
21441     * @param obj The map object.
21442     * @param lon the longitude.
21443     * @param lat the latitude.
21444     * @param size the size in pixels of the map. The map is a square
21445     * and generally his size is : pow(2.0, zoom)*256.
21446     * @param x Pointer where to store the horizontal pixel coordinate that
21447     * correspond to the longitude.
21448     * @param y Pointer where to store the vertical pixel coordinate that
21449     * correspond to the latitude.
21450     *
21451     * @note Origin pixel point is the top left corner of the viewport.
21452     * Map zoom and size are taken on account.
21453     *
21454     * @see elm_map_utils_convert_coord_into_geo() if you need the inverse.
21455     *
21456     * @ingroup Map
21457     */
21458    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);
21459
21460    /**
21461     * Convert a geographic coordinate (longitude, latitude) into a name
21462     * (address).
21463     *
21464     * @param obj The map object.
21465     * @param lon the longitude.
21466     * @param lat the latitude.
21467     * @return name A #Elm_Map_Name handle for this coordinate.
21468     *
21469     * To get the string for this address, elm_map_name_address_get()
21470     * should be used.
21471     *
21472     * @see elm_map_utils_convert_name_into_coord() if you need the inverse.
21473     *
21474     * @ingroup Map
21475     */
21476    EAPI Elm_Map_Name         *elm_map_utils_convert_coord_into_name(const Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
21477
21478    /**
21479     * Convert a name (address) into a geographic coordinate
21480     * (longitude, latitude).
21481     *
21482     * @param obj The map object.
21483     * @param name The address.
21484     * @return name A #Elm_Map_Name handle for this address.
21485     *
21486     * To get the longitude and latitude, elm_map_name_region_get()
21487     * should be used.
21488     *
21489     * @see elm_map_utils_convert_coord_into_name() if you need the inverse.
21490     *
21491     * @ingroup Map
21492     */
21493    EAPI Elm_Map_Name         *elm_map_utils_convert_name_into_coord(const Evas_Object *obj, char *address) EINA_ARG_NONNULL(1, 2);
21494
21495    /**
21496     * Convert a pixel coordinate into a rotated pixel coordinate.
21497     *
21498     * @param obj The map object.
21499     * @param x horizontal coordinate of the point to rotate.
21500     * @param y vertical coordinate of the point to rotate.
21501     * @param cx rotation's center horizontal position.
21502     * @param cy rotation's center vertical position.
21503     * @param degree amount of degrees from 0.0 to 360.0 to rotate arount Z axis.
21504     * @param xx Pointer where to store rotated x.
21505     * @param yy Pointer where to store rotated y.
21506     *
21507     * @ingroup Map
21508     */
21509    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);
21510
21511    /**
21512     * Add a new marker to the map object.
21513     *
21514     * @param obj The map object.
21515     * @param lon The longitude of the marker.
21516     * @param lat The latitude of the marker.
21517     * @param clas The class, to use when marker @b isn't grouped to others.
21518     * @param clas_group The class group, to use when marker is grouped to others
21519     * @param data The data passed to the callbacks.
21520     *
21521     * @return The created marker or @c NULL upon failure.
21522     *
21523     * A marker will be created and shown in a specific point of the map, defined
21524     * by @p lon and @p lat.
21525     *
21526     * It will be displayed using style defined by @p class when this marker
21527     * is displayed alone (not grouped). A new class can be created with
21528     * elm_map_marker_class_new().
21529     *
21530     * If the marker is grouped to other markers, it will be displayed with
21531     * style defined by @p class_group. Markers with the same group are grouped
21532     * if they are close. A new group class can be created with
21533     * elm_map_marker_group_class_new().
21534     *
21535     * Markers created with this method can be deleted with
21536     * elm_map_marker_remove().
21537     *
21538     * A marker can have associated content to be displayed by a bubble,
21539     * when a user click over it, as well as an icon. These objects will
21540     * be fetch using class' callback functions.
21541     *
21542     * @see elm_map_marker_class_new()
21543     * @see elm_map_marker_group_class_new()
21544     * @see elm_map_marker_remove()
21545     *
21546     * @ingroup Map
21547     */
21548    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);
21549
21550    /**
21551     * Set the maximum numbers of markers' content to be displayed in a group.
21552     *
21553     * @param obj The map object.
21554     * @param max The maximum numbers of items displayed in a bubble.
21555     *
21556     * A bubble will be displayed when the user clicks over the group,
21557     * and will place the content of markers that belong to this group
21558     * inside it.
21559     *
21560     * A group can have a long list of markers, consequently the creation
21561     * of the content of the bubble can be very slow.
21562     *
21563     * In order to avoid this, a maximum number of items is displayed
21564     * in a bubble.
21565     *
21566     * By default this number is 30.
21567     *
21568     * Marker with the same group class are grouped if they are close.
21569     *
21570     * @see elm_map_marker_add()
21571     *
21572     * @ingroup Map
21573     */
21574    EAPI void                  elm_map_max_marker_per_group_set(Evas_Object *obj, int max) EINA_ARG_NONNULL(1);
21575
21576    /**
21577     * Remove a marker from the map.
21578     *
21579     * @param marker The marker to remove.
21580     *
21581     * @see elm_map_marker_add()
21582     *
21583     * @ingroup Map
21584     */
21585    EAPI void                  elm_map_marker_remove(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21586
21587    /**
21588     * Get the current coordinates of the marker.
21589     *
21590     * @param marker marker.
21591     * @param lat Pointer where to store the marker's latitude.
21592     * @param lon Pointer where to store the marker's longitude.
21593     *
21594     * These values are set when adding markers, with function
21595     * elm_map_marker_add().
21596     *
21597     * @see elm_map_marker_add()
21598     *
21599     * @ingroup Map
21600     */
21601    EAPI void                  elm_map_marker_region_get(const Elm_Map_Marker *marker, double *lon, double *lat) EINA_ARG_NONNULL(1);
21602
21603    /**
21604     * Animatedly bring in given marker to the center of the map.
21605     *
21606     * @param marker The marker to center at.
21607     *
21608     * This causes map to jump to the given @p marker's coordinates
21609     * and show it (by scrolling) in the center of the viewport, if it is not
21610     * already centered. This will use animation to do so and take a period
21611     * of time to complete.
21612     *
21613     * @see elm_map_marker_show() for a function to avoid animation.
21614     * @see elm_map_marker_region_get()
21615     *
21616     * @ingroup Map
21617     */
21618    EAPI void                  elm_map_marker_bring_in(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21619
21620    /**
21621     * Show the given marker at the center of the map, @b immediately.
21622     *
21623     * @param marker The marker to center at.
21624     *
21625     * This causes map to @b redraw its viewport's contents to the
21626     * region contining the given @p marker's coordinates, that will be
21627     * moved to the center of the map.
21628     *
21629     * @see elm_map_marker_bring_in() for a function to move with animation.
21630     * @see elm_map_markers_list_show() if more than one marker need to be
21631     * displayed.
21632     * @see elm_map_marker_region_get()
21633     *
21634     * @ingroup Map
21635     */
21636    EAPI void                  elm_map_marker_show(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21637
21638    /**
21639     * Move and zoom the map to display a list of markers.
21640     *
21641     * @param markers A list of #Elm_Map_Marker handles.
21642     *
21643     * The map will be centered on the center point of the markers in the list.
21644     * Then the map will be zoomed in order to fit the markers using the maximum
21645     * zoom which allows display of all the markers.
21646     *
21647     * @warning All the markers should belong to the same map object.
21648     *
21649     * @see elm_map_marker_show() to show a single marker.
21650     * @see elm_map_marker_bring_in()
21651     *
21652     * @ingroup Map
21653     */
21654    EAPI void                  elm_map_markers_list_show(Eina_List *markers) EINA_ARG_NONNULL(1);
21655
21656    /**
21657     * Get the Evas object returned by the ElmMapMarkerGetFunc callback
21658     *
21659     * @param marker The marker wich content should be returned.
21660     * @return Return the evas object if it exists, else @c NULL.
21661     *
21662     * To set callback function #ElmMapMarkerGetFunc for the marker class,
21663     * elm_map_marker_class_get_cb_set() should be used.
21664     *
21665     * This content is what will be inside the bubble that will be displayed
21666     * when an user clicks over the marker.
21667     *
21668     * This returns the actual Evas object used to be placed inside
21669     * the bubble. This may be @c NULL, as it may
21670     * not have been created or may have been deleted, at any time, by
21671     * the map. <b>Do not modify this object</b> (move, resize,
21672     * show, hide, etc.), as the map is controlling it. This
21673     * function is for querying, emitting custom signals or hooking
21674     * lower level callbacks for events on that object. Do not delete
21675     * this object under any circumstances.
21676     *
21677     * @ingroup Map
21678     */
21679    EAPI Evas_Object          *elm_map_marker_object_get(const Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21680
21681    /**
21682     * Update the marker
21683     *
21684     * @param marker The marker to be updated.
21685     *
21686     * If a content is set to this marker, it will call function to delete it,
21687     * #ElmMapMarkerDelFunc, and then will fetch the content again with
21688     * #ElmMapMarkerGetFunc.
21689     *
21690     * These functions are set for the marker class with
21691     * elm_map_marker_class_get_cb_set() and elm_map_marker_class_del_cb_set().
21692     *
21693     * @ingroup Map
21694     */
21695    EAPI void                  elm_map_marker_update(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21696
21697    /**
21698     * Close all the bubbles opened by the user.
21699     *
21700     * @param obj The map object.
21701     *
21702     * A bubble is displayed with a content fetched with #ElmMapMarkerGetFunc
21703     * when the user clicks on a marker.
21704     *
21705     * This functions is set for the marker class with
21706     * elm_map_marker_class_get_cb_set().
21707     *
21708     * @ingroup Map
21709     */
21710    EAPI void                  elm_map_bubbles_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
21711
21712    /**
21713     * Create a new group class.
21714     *
21715     * @param obj The map object.
21716     * @return Returns the new group class.
21717     *
21718     * Each marker must be associated to a group class. Markers in the same
21719     * group are grouped if they are close.
21720     *
21721     * The group class defines the style of the marker when a marker is grouped
21722     * to others markers. When it is alone, another class will be used.
21723     *
21724     * A group class will need to be provided when creating a marker with
21725     * elm_map_marker_add().
21726     *
21727     * Some properties and functions can be set by class, as:
21728     * - style, with elm_map_group_class_style_set()
21729     * - data - to be associated to the group class. It can be set using
21730     *   elm_map_group_class_data_set().
21731     * - min zoom to display markers, set with
21732     *   elm_map_group_class_zoom_displayed_set().
21733     * - max zoom to group markers, set using
21734     *   elm_map_group_class_zoom_grouped_set().
21735     * - visibility - set if markers will be visible or not, set with
21736     *   elm_map_group_class_hide_set().
21737     * - #ElmMapGroupIconGetFunc - used to fetch icon for markers group classes.
21738     *   It can be set using elm_map_group_class_icon_cb_set().
21739     *
21740     * @see elm_map_marker_add()
21741     * @see elm_map_group_class_style_set()
21742     * @see elm_map_group_class_data_set()
21743     * @see elm_map_group_class_zoom_displayed_set()
21744     * @see elm_map_group_class_zoom_grouped_set()
21745     * @see elm_map_group_class_hide_set()
21746     * @see elm_map_group_class_icon_cb_set()
21747     *
21748     * @ingroup Map
21749     */
21750    EAPI Elm_Map_Group_Class  *elm_map_group_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
21751
21752    /**
21753     * Set the marker's style of a group class.
21754     *
21755     * @param clas The group class.
21756     * @param style The style to be used by markers.
21757     *
21758     * Each marker must be associated to a group class, and will use the style
21759     * defined by such class when grouped to other markers.
21760     *
21761     * The following styles are provided by default theme:
21762     * @li @c radio - blue circle
21763     * @li @c radio2 - green circle
21764     * @li @c empty
21765     *
21766     * @see elm_map_group_class_new() for more details.
21767     * @see elm_map_marker_add()
21768     *
21769     * @ingroup Map
21770     */
21771    EAPI void                  elm_map_group_class_style_set(Elm_Map_Group_Class *clas, const char *style) EINA_ARG_NONNULL(1);
21772
21773    /**
21774     * Set the icon callback function of a group class.
21775     *
21776     * @param clas The group class.
21777     * @param icon_get The callback function that will return the icon.
21778     *
21779     * Each marker must be associated to a group class, and it can display a
21780     * custom icon. The function @p icon_get must return this icon.
21781     *
21782     * @see elm_map_group_class_new() for more details.
21783     * @see elm_map_marker_add()
21784     *
21785     * @ingroup Map
21786     */
21787    EAPI void                  elm_map_group_class_icon_cb_set(Elm_Map_Group_Class *clas, ElmMapGroupIconGetFunc icon_get) EINA_ARG_NONNULL(1);
21788
21789    /**
21790     * Set the data associated to the group class.
21791     *
21792     * @param clas The group class.
21793     * @param data The new user data.
21794     *
21795     * This data will be passed for callback functions, like icon get callback,
21796     * that can be set with elm_map_group_class_icon_cb_set().
21797     *
21798     * If a data was previously set, the object will lose the pointer for it,
21799     * so if needs to be freed, you must do it yourself.
21800     *
21801     * @see elm_map_group_class_new() for more details.
21802     * @see elm_map_group_class_icon_cb_set()
21803     * @see elm_map_marker_add()
21804     *
21805     * @ingroup Map
21806     */
21807    EAPI void                  elm_map_group_class_data_set(Elm_Map_Group_Class *clas, void *data) EINA_ARG_NONNULL(1);
21808
21809    /**
21810     * Set the minimum zoom from where the markers are displayed.
21811     *
21812     * @param clas The group class.
21813     * @param zoom The minimum zoom.
21814     *
21815     * Markers only will be displayed when the map is displayed at @p zoom
21816     * or bigger.
21817     *
21818     * @see elm_map_group_class_new() for more details.
21819     * @see elm_map_marker_add()
21820     *
21821     * @ingroup Map
21822     */
21823    EAPI void                  elm_map_group_class_zoom_displayed_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
21824
21825    /**
21826     * Set the zoom from where the markers are no more grouped.
21827     *
21828     * @param clas The group class.
21829     * @param zoom The maximum zoom.
21830     *
21831     * Markers only will be grouped when the map is displayed at
21832     * less than @p zoom.
21833     *
21834     * @see elm_map_group_class_new() for more details.
21835     * @see elm_map_marker_add()
21836     *
21837     * @ingroup Map
21838     */
21839    EAPI void                  elm_map_group_class_zoom_grouped_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
21840
21841    /**
21842     * Set if the markers associated to the group class @clas are hidden or not.
21843     *
21844     * @param clas The group class.
21845     * @param hide Use @c EINA_TRUE to hide markers or @c EINA_FALSE
21846     * to show them.
21847     *
21848     * If @p hide is @c EINA_TRUE the markers will be hidden, but default
21849     * is to show them.
21850     *
21851     * @ingroup Map
21852     */
21853    EAPI void                  elm_map_group_class_hide_set(Evas_Object *obj, Elm_Map_Group_Class *clas, Eina_Bool hide) EINA_ARG_NONNULL(1, 2);
21854
21855    /**
21856     * Create a new marker class.
21857     *
21858     * @param obj The map object.
21859     * @return Returns the new group class.
21860     *
21861     * Each marker must be associated to a class.
21862     *
21863     * The marker class defines the style of the marker when a marker is
21864     * displayed alone, i.e., not grouped to to others markers. When grouped
21865     * it will use group class style.
21866     *
21867     * A marker class will need to be provided when creating a marker with
21868     * elm_map_marker_add().
21869     *
21870     * Some properties and functions can be set by class, as:
21871     * - style, with elm_map_marker_class_style_set()
21872     * - #ElmMapMarkerIconGetFunc - used to fetch icon for markers classes.
21873     *   It can be set using elm_map_marker_class_icon_cb_set().
21874     * - #ElmMapMarkerGetFunc - used to fetch bubble content for marker classes.
21875     *   Set using elm_map_marker_class_get_cb_set().
21876     * - #ElmMapMarkerDelFunc - used to delete bubble content for marker classes.
21877     *   Set using elm_map_marker_class_del_cb_set().
21878     *
21879     * @see elm_map_marker_add()
21880     * @see elm_map_marker_class_style_set()
21881     * @see elm_map_marker_class_icon_cb_set()
21882     * @see elm_map_marker_class_get_cb_set()
21883     * @see elm_map_marker_class_del_cb_set()
21884     *
21885     * @ingroup Map
21886     */
21887    EAPI Elm_Map_Marker_Class *elm_map_marker_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
21888
21889    /**
21890     * Set the marker's style of a marker class.
21891     *
21892     * @param clas The marker class.
21893     * @param style The style to be used by markers.
21894     *
21895     * Each marker must be associated to a marker class, and will use the style
21896     * defined by such class when alone, i.e., @b not grouped to other markers.
21897     *
21898     * The following styles are provided by default theme:
21899     * @li @c radio
21900     * @li @c radio2
21901     * @li @c empty
21902     *
21903     * @see elm_map_marker_class_new() for more details.
21904     * @see elm_map_marker_add()
21905     *
21906     * @ingroup Map
21907     */
21908    EAPI void                  elm_map_marker_class_style_set(Elm_Map_Marker_Class *clas, const char *style) EINA_ARG_NONNULL(1);
21909
21910    /**
21911     * Set the icon callback function of a marker class.
21912     *
21913     * @param clas The marker class.
21914     * @param icon_get The callback function that will return the icon.
21915     *
21916     * Each marker must be associated to a marker class, and it can display a
21917     * custom icon. The function @p icon_get must return this icon.
21918     *
21919     * @see elm_map_marker_class_new() for more details.
21920     * @see elm_map_marker_add()
21921     *
21922     * @ingroup Map
21923     */
21924    EAPI void                  elm_map_marker_class_icon_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerIconGetFunc icon_get) EINA_ARG_NONNULL(1);
21925
21926    /**
21927     * Set the bubble content callback function of a marker class.
21928     *
21929     * @param clas The marker class.
21930     * @param get The callback function that will return the content.
21931     *
21932     * Each marker must be associated to a marker class, and it can display a
21933     * a content on a bubble that opens when the user click over the marker.
21934     * The function @p get must return this content object.
21935     *
21936     * If this content will need to be deleted, elm_map_marker_class_del_cb_set()
21937     * can be used.
21938     *
21939     * @see elm_map_marker_class_new() for more details.
21940     * @see elm_map_marker_class_del_cb_set()
21941     * @see elm_map_marker_add()
21942     *
21943     * @ingroup Map
21944     */
21945    EAPI void                  elm_map_marker_class_get_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerGetFunc get) EINA_ARG_NONNULL(1);
21946
21947    /**
21948     * Set the callback function used to delete bubble content of a marker class.
21949     *
21950     * @param clas The marker class.
21951     * @param del The callback function that will delete the content.
21952     *
21953     * Each marker must be associated to a marker class, and it can display a
21954     * a content on a bubble that opens when the user click over the marker.
21955     * The function to return such content can be set with
21956     * elm_map_marker_class_get_cb_set().
21957     *
21958     * If this content must be freed, a callback function need to be
21959     * set for that task with this function.
21960     *
21961     * If this callback is defined it will have to delete (or not) the
21962     * object inside, but if the callback is not defined the object will be
21963     * destroyed with evas_object_del().
21964     *
21965     * @see elm_map_marker_class_new() for more details.
21966     * @see elm_map_marker_class_get_cb_set()
21967     * @see elm_map_marker_add()
21968     *
21969     * @ingroup Map
21970     */
21971    EAPI void                  elm_map_marker_class_del_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerDelFunc del) EINA_ARG_NONNULL(1);
21972
21973    /**
21974     * Get the list of available sources.
21975     *
21976     * @param obj The map object.
21977     * @return The source names list.
21978     *
21979     * It will provide a list with all available sources, that can be set as
21980     * current source with elm_map_source_name_set(), or get with
21981     * elm_map_source_name_get().
21982     *
21983     * Available sources:
21984     * @li "Mapnik"
21985     * @li "Osmarender"
21986     * @li "CycleMap"
21987     * @li "Maplint"
21988     *
21989     * @see elm_map_source_name_set() for more details.
21990     * @see elm_map_source_name_get()
21991     *
21992     * @ingroup Map
21993     */
21994    EAPI const char          **elm_map_source_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21995
21996    /**
21997     * Set the source of the map.
21998     *
21999     * @param obj The map object.
22000     * @param source The source to be used.
22001     *
22002     * Map widget retrieves images that composes the map from a web service.
22003     * This web service can be set with this method.
22004     *
22005     * A different service can return a different maps with different
22006     * information and it can use different zoom values.
22007     *
22008     * The @p source_name need to match one of the names provided by
22009     * elm_map_source_names_get().
22010     *
22011     * The current source can be get using elm_map_source_name_get().
22012     *
22013     * @see elm_map_source_names_get()
22014     * @see elm_map_source_name_get()
22015     *
22016     *
22017     * @ingroup Map
22018     */
22019    EAPI void                  elm_map_source_name_set(Evas_Object *obj, const char *source_name) EINA_ARG_NONNULL(1);
22020
22021    /**
22022     * Get the name of currently used source.
22023     *
22024     * @param obj The map object.
22025     * @return Returns the name of the source in use.
22026     *
22027     * @see elm_map_source_name_set() for more details.
22028     *
22029     * @ingroup Map
22030     */
22031    EAPI const char           *elm_map_source_name_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22032
22033    /**
22034     * Set the source of the route service to be used by the map.
22035     *
22036     * @param obj The map object.
22037     * @param source The route service to be used, being it one of
22038     * #ELM_MAP_ROUTE_SOURCE_YOURS (default), #ELM_MAP_ROUTE_SOURCE_MONAV,
22039     * and #ELM_MAP_ROUTE_SOURCE_ORS.
22040     *
22041     * Each one has its own algorithm, so the route retrieved may
22042     * differ depending on the source route. Now, only the default is working.
22043     *
22044     * #ELM_MAP_ROUTE_SOURCE_YOURS is the routing service provided at
22045     * http://www.yournavigation.org/.
22046     *
22047     * #ELM_MAP_ROUTE_SOURCE_MONAV, offers exact routing without heuristic
22048     * assumptions. Its routing core is based on Contraction Hierarchies.
22049     *
22050     * #ELM_MAP_ROUTE_SOURCE_ORS, is provided at http://www.openrouteservice.org/
22051     *
22052     * @see elm_map_route_source_get().
22053     *
22054     * @ingroup Map
22055     */
22056    EAPI void                  elm_map_route_source_set(Evas_Object *obj, Elm_Map_Route_Sources source) EINA_ARG_NONNULL(1);
22057
22058    /**
22059     * Get the current route source.
22060     *
22061     * @param obj The map object.
22062     * @return The source of the route service used by the map.
22063     *
22064     * @see elm_map_route_source_set() for details.
22065     *
22066     * @ingroup Map
22067     */
22068    EAPI Elm_Map_Route_Sources elm_map_route_source_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22069
22070    /**
22071     * Set the minimum zoom of the source.
22072     *
22073     * @param obj The map object.
22074     * @param zoom New minimum zoom value to be used.
22075     *
22076     * By default, it's 0.
22077     *
22078     * @ingroup Map
22079     */
22080    EAPI void                  elm_map_source_zoom_min_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
22081
22082    /**
22083     * Get the minimum zoom of the source.
22084     *
22085     * @param obj The map object.
22086     * @return Returns the minimum zoom of the source.
22087     *
22088     * @see elm_map_source_zoom_min_set() for details.
22089     *
22090     * @ingroup Map
22091     */
22092    EAPI int                   elm_map_source_zoom_min_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22093
22094    /**
22095     * Set the maximum zoom of the source.
22096     *
22097     * @param obj The map object.
22098     * @param zoom New maximum zoom value to be used.
22099     *
22100     * By default, it's 18.
22101     *
22102     * @ingroup Map
22103     */
22104    EAPI void                  elm_map_source_zoom_max_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
22105
22106    /**
22107     * Get the maximum zoom of the source.
22108     *
22109     * @param obj The map object.
22110     * @return Returns the maximum zoom of the source.
22111     *
22112     * @see elm_map_source_zoom_min_set() for details.
22113     *
22114     * @ingroup Map
22115     */
22116    EAPI int                   elm_map_source_zoom_max_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22117
22118    /**
22119     * Set the user agent used by the map object to access routing services.
22120     *
22121     * @param obj The map object.
22122     * @param user_agent The user agent to be used by the map.
22123     *
22124     * User agent is a client application implementing a network protocol used
22125     * in communications within a client–server distributed computing system
22126     *
22127     * The @p user_agent identification string will transmitted in a header
22128     * field @c User-Agent.
22129     *
22130     * @see elm_map_user_agent_get()
22131     *
22132     * @ingroup Map
22133     */
22134    EAPI void                  elm_map_user_agent_set(Evas_Object *obj, const char *user_agent) EINA_ARG_NONNULL(1, 2);
22135
22136    /**
22137     * Get the user agent used by the map object.
22138     *
22139     * @param obj The map object.
22140     * @return The user agent identification string used by the map.
22141     *
22142     * @see elm_map_user_agent_set() for details.
22143     *
22144     * @ingroup Map
22145     */
22146    EAPI const char           *elm_map_user_agent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22147
22148    /**
22149     * Add a new route to the map object.
22150     *
22151     * @param obj The map object.
22152     * @param type The type of transport to be considered when tracing a route.
22153     * @param method The routing method, what should be priorized.
22154     * @param flon The start longitude.
22155     * @param flat The start latitude.
22156     * @param tlon The destination longitude.
22157     * @param tlat The destination latitude.
22158     *
22159     * @return The created route or @c NULL upon failure.
22160     *
22161     * A route will be traced by point on coordinates (@p flat, @p flon)
22162     * to point on coordinates (@p tlat, @p tlon), using the route service
22163     * set with elm_map_route_source_set().
22164     *
22165     * It will take @p type on consideration to define the route,
22166     * depending if the user will be walking or driving, the route may vary.
22167     * One of #ELM_MAP_ROUTE_TYPE_MOTOCAR, #ELM_MAP_ROUTE_TYPE_BICYCLE, or
22168     * #ELM_MAP_ROUTE_TYPE_FOOT need to be used.
22169     *
22170     * Another parameter is what the route should priorize, the minor distance
22171     * or the less time to be spend on the route. So @p method should be one
22172     * of #ELM_MAP_ROUTE_METHOD_SHORTEST or #ELM_MAP_ROUTE_METHOD_FASTEST.
22173     *
22174     * Routes created with this method can be deleted with
22175     * elm_map_route_remove(), colored with elm_map_route_color_set(),
22176     * and distance can be get with elm_map_route_distance_get().
22177     *
22178     * @see elm_map_route_remove()
22179     * @see elm_map_route_color_set()
22180     * @see elm_map_route_distance_get()
22181     * @see elm_map_route_source_set()
22182     *
22183     * @ingroup Map
22184     */
22185    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);
22186
22187    /**
22188     * Remove a route from the map.
22189     *
22190     * @param route The route to remove.
22191     *
22192     * @see elm_map_route_add()
22193     *
22194     * @ingroup Map
22195     */
22196    EAPI void                  elm_map_route_remove(Elm_Map_Route *route) EINA_ARG_NONNULL(1);
22197
22198    /**
22199     * Set the route color.
22200     *
22201     * @param route The route object.
22202     * @param r Red channel value, from 0 to 255.
22203     * @param g Green channel value, from 0 to 255.
22204     * @param b Blue channel value, from 0 to 255.
22205     * @param a Alpha channel value, from 0 to 255.
22206     *
22207     * It uses an additive color model, so each color channel represents
22208     * how much of each primary colors must to be used. 0 represents
22209     * ausence of this color, so if all of the three are set to 0,
22210     * the color will be black.
22211     *
22212     * These component values should be integers in the range 0 to 255,
22213     * (single 8-bit byte).
22214     *
22215     * This sets the color used for the route. By default, it is set to
22216     * solid red (r = 255, g = 0, b = 0, a = 255).
22217     *
22218     * For alpha channel, 0 represents completely transparent, and 255, opaque.
22219     *
22220     * @see elm_map_route_color_get()
22221     *
22222     * @ingroup Map
22223     */
22224    EAPI void                  elm_map_route_color_set(Elm_Map_Route *route, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
22225
22226    /**
22227     * Get the route color.
22228     *
22229     * @param route The route object.
22230     * @param r Pointer where to store the red channel value.
22231     * @param g Pointer where to store the green channel value.
22232     * @param b Pointer where to store the blue channel value.
22233     * @param a Pointer where to store the alpha channel value.
22234     *
22235     * @see elm_map_route_color_set() for details.
22236     *
22237     * @ingroup Map
22238     */
22239    EAPI void                  elm_map_route_color_get(const Elm_Map_Route *route, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
22240
22241    /**
22242     * Get the route distance in kilometers.
22243     *
22244     * @param route The route object.
22245     * @return The distance of route (unit : km).
22246     *
22247     * @ingroup Map
22248     */
22249    EAPI double                elm_map_route_distance_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
22250
22251    /**
22252     * Get the information of route nodes.
22253     *
22254     * @param route The route object.
22255     * @return Returns a string with the nodes of route.
22256     *
22257     * @ingroup Map
22258     */
22259    EAPI const char           *elm_map_route_node_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
22260
22261    /**
22262     * Get the information of route waypoint.
22263     *
22264     * @param route the route object.
22265     * @return Returns a string with information about waypoint of route.
22266     *
22267     * @ingroup Map
22268     */
22269    EAPI const char           *elm_map_route_waypoint_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
22270
22271    /**
22272     * Get the address of the name.
22273     *
22274     * @param name The name handle.
22275     * @return Returns the address string of @p name.
22276     *
22277     * This gets the coordinates of the @p name, created with one of the
22278     * conversion functions.
22279     *
22280     * @see elm_map_utils_convert_name_into_coord()
22281     * @see elm_map_utils_convert_coord_into_name()
22282     *
22283     * @ingroup Map
22284     */
22285    EAPI const char           *elm_map_name_address_get(const Elm_Map_Name *name) EINA_ARG_NONNULL(1);
22286
22287    /**
22288     * Get the current coordinates of the name.
22289     *
22290     * @param name The name handle.
22291     * @param lat Pointer where to store the latitude.
22292     * @param lon Pointer where to store The longitude.
22293     *
22294     * This gets the coordinates of the @p name, created with one of the
22295     * conversion functions.
22296     *
22297     * @see elm_map_utils_convert_name_into_coord()
22298     * @see elm_map_utils_convert_coord_into_name()
22299     *
22300     * @ingroup Map
22301     */
22302    EAPI void                  elm_map_name_region_get(const Elm_Map_Name *name, double *lon, double *lat) EINA_ARG_NONNULL(1);
22303
22304    /**
22305     * Remove a name from the map.
22306     *
22307     * @param name The name to remove.
22308     *
22309     * Basically the struct handled by @p name will be freed, so convertions
22310     * between address and coordinates will be lost.
22311     *
22312     * @see elm_map_utils_convert_name_into_coord()
22313     * @see elm_map_utils_convert_coord_into_name()
22314     *
22315     * @ingroup Map
22316     */
22317    EAPI void                  elm_map_name_remove(Elm_Map_Name *name) EINA_ARG_NONNULL(1);
22318
22319    /**
22320     * Rotate the map.
22321     *
22322     * @param obj The map object.
22323     * @param degree Angle from 0.0 to 360.0 to rotate arount Z axis.
22324     * @param cx Rotation's center horizontal position.
22325     * @param cy Rotation's center vertical position.
22326     *
22327     * @see elm_map_rotate_get()
22328     *
22329     * @ingroup Map
22330     */
22331    EAPI void                  elm_map_rotate_set(Evas_Object *obj, double degree, Evas_Coord cx, Evas_Coord cy) EINA_ARG_NONNULL(1);
22332
22333    /**
22334     * Get the rotate degree of the map
22335     *
22336     * @param obj The map object
22337     * @param degree Pointer where to store degrees from 0.0 to 360.0
22338     * to rotate arount Z axis.
22339     * @param cx Pointer where to store rotation's center horizontal position.
22340     * @param cy Pointer where to store rotation's center vertical position.
22341     *
22342     * @see elm_map_rotate_set() to set map rotation.
22343     *
22344     * @ingroup Map
22345     */
22346    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);
22347
22348    /**
22349     * Enable or disable mouse wheel to be used to zoom in / out the map.
22350     *
22351     * @param obj The map object.
22352     * @param disabled Use @c EINA_TRUE to disable mouse wheel or @c EINA_FALSE
22353     * to enable it.
22354     *
22355     * Mouse wheel can be used for the user to zoom in or zoom out the map.
22356     *
22357     * It's disabled by default.
22358     *
22359     * @see elm_map_wheel_disabled_get()
22360     *
22361     * @ingroup Map
22362     */
22363    EAPI void                  elm_map_wheel_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
22364
22365    /**
22366     * Get a value whether mouse wheel is enabled or not.
22367     *
22368     * @param obj The map object.
22369     * @return @c EINA_TRUE means map is disabled. @c EINA_FALSE indicates
22370     * it is enabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
22371     *
22372     * Mouse wheel can be used for the user to zoom in or zoom out the map.
22373     *
22374     * @see elm_map_wheel_disabled_set() for details.
22375     *
22376     * @ingroup Map
22377     */
22378    EAPI Eina_Bool             elm_map_wheel_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22379
22380 #ifdef ELM_EMAP
22381    /**
22382     * Add a track on the map
22383     *
22384     * @param obj The map object.
22385     * @param emap The emap route object.
22386     * @return The route object. This is an elm object of type Route.
22387     *
22388     * @see elm_route_add() for details.
22389     *
22390     * @ingroup Map
22391     */
22392    EAPI Evas_Object          *elm_map_track_add(Evas_Object *obj, EMap_Route *emap) EINA_ARG_NONNULL(1);
22393 #endif
22394
22395    /**
22396     * Remove a track from the map
22397     *
22398     * @param obj The map object.
22399     * @param route The track to remove.
22400     *
22401     * @ingroup Map
22402     */
22403    EAPI void                  elm_map_track_remove(Evas_Object *obj, Evas_Object *route) EINA_ARG_NONNULL(1);
22404
22405    /**
22406     * @}
22407     */
22408
22409    /* Route */
22410    EAPI Evas_Object *elm_route_add(Evas_Object *parent);
22411 #ifdef ELM_EMAP
22412    EAPI void elm_route_emap_set(Evas_Object *obj, EMap_Route *emap);
22413 #endif
22414    EAPI double elm_route_lon_min_get(Evas_Object *obj);
22415    EAPI double elm_route_lat_min_get(Evas_Object *obj);
22416    EAPI double elm_route_lon_max_get(Evas_Object *obj);
22417    EAPI double elm_route_lat_max_get(Evas_Object *obj);
22418
22419
22420    /**
22421     * @defgroup Panel Panel
22422     *
22423     * @image html img/widget/panel/preview-00.png
22424     * @image latex img/widget/panel/preview-00.eps
22425     *
22426     * @brief A panel is a type of animated container that contains subobjects.
22427     * It can be expanded or contracted by clicking the button on it's edge.
22428     *
22429     * Orientations are as follows:
22430     * @li ELM_PANEL_ORIENT_TOP
22431     * @li ELM_PANEL_ORIENT_LEFT
22432     * @li ELM_PANEL_ORIENT_RIGHT
22433     *
22434     * @ref tutorial_panel shows one way to use this widget.
22435     * @{
22436     */
22437    typedef enum _Elm_Panel_Orient
22438      {
22439         ELM_PANEL_ORIENT_TOP, /**< Panel (dis)appears from the top */
22440         ELM_PANEL_ORIENT_BOTTOM, /**< Not implemented */
22441         ELM_PANEL_ORIENT_LEFT, /**< Panel (dis)appears from the left */
22442         ELM_PANEL_ORIENT_RIGHT, /**< Panel (dis)appears from the right */
22443      } Elm_Panel_Orient;
22444    /**
22445     * @brief Adds a panel object
22446     *
22447     * @param parent The parent object
22448     *
22449     * @return The panel object, or NULL on failure
22450     */
22451    EAPI Evas_Object          *elm_panel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22452    /**
22453     * @brief Sets the orientation of the panel
22454     *
22455     * @param parent The parent object
22456     * @param orient The panel orientation. Can be one of the following:
22457     * @li ELM_PANEL_ORIENT_TOP
22458     * @li ELM_PANEL_ORIENT_LEFT
22459     * @li ELM_PANEL_ORIENT_RIGHT
22460     *
22461     * Sets from where the panel will (dis)appear.
22462     */
22463    EAPI void                  elm_panel_orient_set(Evas_Object *obj, Elm_Panel_Orient orient) EINA_ARG_NONNULL(1);
22464    /**
22465     * @brief Get the orientation of the panel.
22466     *
22467     * @param obj The panel object
22468     * @return The Elm_Panel_Orient, or ELM_PANEL_ORIENT_LEFT on failure.
22469     */
22470    EAPI Elm_Panel_Orient      elm_panel_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22471    /**
22472     * @brief Set the content of the panel.
22473     *
22474     * @param obj The panel object
22475     * @param content The panel content
22476     *
22477     * Once the content object is set, a previously set one will be deleted.
22478     * If you want to keep that old content object, use the
22479     * elm_panel_content_unset() function.
22480     */
22481    EAPI void                  elm_panel_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22482    /**
22483     * @brief Get the content of the panel.
22484     *
22485     * @param obj The panel object
22486     * @return The content that is being used
22487     *
22488     * Return the content object which is set for this widget.
22489     *
22490     * @see elm_panel_content_set()
22491     */
22492    EAPI Evas_Object          *elm_panel_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22493    /**
22494     * @brief Unset the content of the panel.
22495     *
22496     * @param obj The panel object
22497     * @return The content that was being used
22498     *
22499     * Unparent and return the content object which was set for this widget.
22500     *
22501     * @see elm_panel_content_set()
22502     */
22503    EAPI Evas_Object          *elm_panel_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22504    /**
22505     * @brief Set the state of the panel.
22506     *
22507     * @param obj The panel object
22508     * @param hidden If true, the panel will run the animation to contract
22509     */
22510    EAPI void                  elm_panel_hidden_set(Evas_Object *obj, Eina_Bool hidden) EINA_ARG_NONNULL(1);
22511    /**
22512     * @brief Get the state of the panel.
22513     *
22514     * @param obj The panel object
22515     * @param hidden If true, the panel is in the "hide" state
22516     */
22517    EAPI Eina_Bool             elm_panel_hidden_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22518    /**
22519     * @brief Toggle the hidden state of the panel from code
22520     *
22521     * @param obj The panel object
22522     */
22523    EAPI void                  elm_panel_toggle(Evas_Object *obj) EINA_ARG_NONNULL(1);
22524    /**
22525     * @}
22526     */
22527
22528    /**
22529     * @defgroup Panes Panes
22530     * @ingroup Elementary
22531     *
22532     * @image html img/widget/panes/preview-00.png
22533     * @image latex img/widget/panes/preview-00.eps width=\textwidth
22534     *
22535     * @image html img/panes.png
22536     * @image latex img/panes.eps width=\textwidth
22537     *
22538     * The panes adds a dragable bar between two contents. When dragged
22539     * this bar will resize contents size.
22540     *
22541     * Panes can be displayed vertically or horizontally, and contents
22542     * size proportion can be customized (homogeneous by default).
22543     *
22544     * Smart callbacks one can listen to:
22545     * - "press" - The panes has been pressed (button wasn't released yet).
22546     * - "unpressed" - The panes was released after being pressed.
22547     * - "clicked" - The panes has been clicked>
22548     * - "clicked,double" - The panes has been double clicked
22549     *
22550     * Available styles for it:
22551     * - @c "default"
22552     *
22553     * Here is an example on its usage:
22554     * @li @ref panes_example
22555     */
22556
22557    /**
22558     * @addtogroup Panes
22559     * @{
22560     */
22561
22562    /**
22563     * Add a new panes widget to the given parent Elementary
22564     * (container) object.
22565     *
22566     * @param parent The parent object.
22567     * @return a new panes widget handle or @c NULL, on errors.
22568     *
22569     * This function inserts a new panes widget on the canvas.
22570     *
22571     * @ingroup Panes
22572     */
22573    EAPI Evas_Object          *elm_panes_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22574
22575    /**
22576     * Set the left content of the panes widget.
22577     *
22578     * @param obj The panes object.
22579     * @param content The new left content object.
22580     *
22581     * Once the content object is set, a previously set one will be deleted.
22582     * If you want to keep that old content object, use the
22583     * elm_panes_content_left_unset() function.
22584     *
22585     * If panes is displayed vertically, left content will be displayed at
22586     * top.
22587     *
22588     * @see elm_panes_content_left_get()
22589     * @see elm_panes_content_right_set() to set content on the other side.
22590     *
22591     * @ingroup Panes
22592     */
22593    EAPI void                  elm_panes_content_left_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22594
22595    /**
22596     * Set the right content of the panes widget.
22597     *
22598     * @param obj The panes object.
22599     * @param content The new right content object.
22600     *
22601     * Once the content object is set, a previously set one will be deleted.
22602     * If you want to keep that old content object, use the
22603     * elm_panes_content_right_unset() function.
22604     *
22605     * If panes is displayed vertically, left content will be displayed at
22606     * bottom.
22607     *
22608     * @see elm_panes_content_right_get()
22609     * @see elm_panes_content_left_set() to set content on the other side.
22610     *
22611     * @ingroup Panes
22612     */
22613    EAPI void                  elm_panes_content_right_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22614
22615    /**
22616     * Get the left content of the panes.
22617     *
22618     * @param obj The panes object.
22619     * @return The left content object that is being used.
22620     *
22621     * Return the left content object which is set for this widget.
22622     *
22623     * @see elm_panes_content_left_set() for details.
22624     *
22625     * @ingroup Panes
22626     */
22627    EAPI Evas_Object          *elm_panes_content_left_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22628
22629    /**
22630     * Get the right content of the panes.
22631     *
22632     * @param obj The panes object
22633     * @return The right content object that is being used
22634     *
22635     * Return the right content object which is set for this widget.
22636     *
22637     * @see elm_panes_content_right_set() for details.
22638     *
22639     * @ingroup Panes
22640     */
22641    EAPI Evas_Object          *elm_panes_content_right_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22642
22643    /**
22644     * Unset the left content used for the panes.
22645     *
22646     * @param obj The panes object.
22647     * @return The left content object that was being used.
22648     *
22649     * Unparent and return the left content object which was set for this widget.
22650     *
22651     * @see elm_panes_content_left_set() for details.
22652     * @see elm_panes_content_left_get().
22653     *
22654     * @ingroup Panes
22655     */
22656    EAPI Evas_Object          *elm_panes_content_left_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22657
22658    /**
22659     * Unset the right content used for the panes.
22660     *
22661     * @param obj The panes object.
22662     * @return The right content object that was being used.
22663     *
22664     * Unparent and return the right content object which was set for this
22665     * widget.
22666     *
22667     * @see elm_panes_content_right_set() for details.
22668     * @see elm_panes_content_right_get().
22669     *
22670     * @ingroup Panes
22671     */
22672    EAPI Evas_Object          *elm_panes_content_right_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22673
22674    /**
22675     * Get the size proportion of panes widget's left side.
22676     *
22677     * @param obj The panes object.
22678     * @return float value between 0.0 and 1.0 representing size proportion
22679     * of left side.
22680     *
22681     * @see elm_panes_content_left_size_set() for more details.
22682     *
22683     * @ingroup Panes
22684     */
22685    EAPI double                elm_panes_content_left_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22686
22687    /**
22688     * Set the size proportion of panes widget's left side.
22689     *
22690     * @param obj The panes object.
22691     * @param size Value between 0.0 and 1.0 representing size proportion
22692     * of left side.
22693     *
22694     * By default it's homogeneous, i.e., both sides have the same size.
22695     *
22696     * If something different is required, it can be set with this function.
22697     * For example, if the left content should be displayed over
22698     * 75% of the panes size, @p size should be passed as @c 0.75.
22699     * This way, right content will be resized to 25% of panes size.
22700     *
22701     * If displayed vertically, left content is displayed at top, and
22702     * right content at bottom.
22703     *
22704     * @note This proportion will change when user drags the panes bar.
22705     *
22706     * @see elm_panes_content_left_size_get()
22707     *
22708     * @ingroup Panes
22709     */
22710    EAPI void                  elm_panes_content_left_size_set(Evas_Object *obj, double size) EINA_ARG_NONNULL(1);
22711
22712   /**
22713    * Set the orientation of a given panes widget.
22714    *
22715    * @param obj The panes object.
22716    * @param horizontal Use @c EINA_TRUE to make @p obj to be
22717    * @b horizontal, @c EINA_FALSE to make it @b vertical.
22718    *
22719    * Use this function to change how your panes is to be
22720    * disposed: vertically or horizontally.
22721    *
22722    * By default it's displayed horizontally.
22723    *
22724    * @see elm_panes_horizontal_get()
22725    *
22726    * @ingroup Panes
22727    */
22728    EAPI void                  elm_panes_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
22729
22730    /**
22731     * Retrieve the orientation of a given panes widget.
22732     *
22733     * @param obj The panes object.
22734     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
22735     * @c EINA_FALSE if it's @b vertical (and on errors).
22736     *
22737     * @see elm_panes_horizontal_set() for more details.
22738     *
22739     * @ingroup Panes
22740     */
22741    EAPI Eina_Bool             elm_panes_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22742
22743    /**
22744     * @}
22745     */
22746
22747    /**
22748     * @defgroup Flip Flip
22749     *
22750     * @image html img/widget/flip/preview-00.png
22751     * @image latex img/widget/flip/preview-00.eps
22752     *
22753     * This widget holds 2 content objects(Evas_Object): one on the front and one
22754     * on the back. It allows you to flip from front to back and vice-versa using
22755     * various animations.
22756     *
22757     * If either the front or back contents are not set the flip will treat that
22758     * as transparent. So if you wore to set the front content but not the back,
22759     * and then call elm_flip_go() you would see whatever is below the flip.
22760     *
22761     * For a list of supported animations see elm_flip_go().
22762     *
22763     * Signals that you can add callbacks for are:
22764     * "animate,begin" - when a flip animation was started
22765     * "animate,done" - when a flip animation is finished
22766     *
22767     * @ref tutorial_flip show how to use most of the API.
22768     *
22769     * @{
22770     */
22771    typedef enum _Elm_Flip_Mode
22772      {
22773         ELM_FLIP_ROTATE_Y_CENTER_AXIS,
22774         ELM_FLIP_ROTATE_X_CENTER_AXIS,
22775         ELM_FLIP_ROTATE_XZ_CENTER_AXIS,
22776         ELM_FLIP_ROTATE_YZ_CENTER_AXIS,
22777         ELM_FLIP_CUBE_LEFT,
22778         ELM_FLIP_CUBE_RIGHT,
22779         ELM_FLIP_CUBE_UP,
22780         ELM_FLIP_CUBE_DOWN,
22781         ELM_FLIP_PAGE_LEFT,
22782         ELM_FLIP_PAGE_RIGHT,
22783         ELM_FLIP_PAGE_UP,
22784         ELM_FLIP_PAGE_DOWN
22785      } Elm_Flip_Mode;
22786    typedef enum _Elm_Flip_Interaction
22787      {
22788         ELM_FLIP_INTERACTION_NONE,
22789         ELM_FLIP_INTERACTION_ROTATE,
22790         ELM_FLIP_INTERACTION_CUBE,
22791         ELM_FLIP_INTERACTION_PAGE
22792      } Elm_Flip_Interaction;
22793    typedef enum _Elm_Flip_Direction
22794      {
22795         ELM_FLIP_DIRECTION_UP, /**< Allows interaction with the top of the widget */
22796         ELM_FLIP_DIRECTION_DOWN, /**< Allows interaction with the bottom of the widget */
22797         ELM_FLIP_DIRECTION_LEFT, /**< Allows interaction with the left portion of the widget */
22798         ELM_FLIP_DIRECTION_RIGHT /**< Allows interaction with the right portion of the widget */
22799      } Elm_Flip_Direction;
22800    /**
22801     * @brief Add a new flip to the parent
22802     *
22803     * @param parent The parent object
22804     * @return The new object or NULL if it cannot be created
22805     */
22806    EAPI Evas_Object *elm_flip_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22807    /**
22808     * @brief Set the front content of the flip widget.
22809     *
22810     * @param obj The flip object
22811     * @param content The new front content object
22812     *
22813     * Once the content object is set, a previously set one will be deleted.
22814     * If you want to keep that old content object, use the
22815     * elm_flip_content_front_unset() function.
22816     */
22817    EAPI void         elm_flip_content_front_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22818    /**
22819     * @brief Set the back content of the flip widget.
22820     *
22821     * @param obj The flip object
22822     * @param content The new back content object
22823     *
22824     * Once the content object is set, a previously set one will be deleted.
22825     * If you want to keep that old content object, use the
22826     * elm_flip_content_back_unset() function.
22827     */
22828    EAPI void         elm_flip_content_back_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22829    /**
22830     * @brief Get the front content used for the flip
22831     *
22832     * @param obj The flip object
22833     * @return The front content object that is being used
22834     *
22835     * Return the front content object which is set for this widget.
22836     */
22837    EAPI Evas_Object *elm_flip_content_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22838    /**
22839     * @brief Get the back content used for the flip
22840     *
22841     * @param obj The flip object
22842     * @return The back content object that is being used
22843     *
22844     * Return the back content object which is set for this widget.
22845     */
22846    EAPI Evas_Object *elm_flip_content_back_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22847    /**
22848     * @brief Unset the front content used for the flip
22849     *
22850     * @param obj The flip object
22851     * @return The front content object that was being used
22852     *
22853     * Unparent and return the front content object which was set for this widget.
22854     */
22855    EAPI Evas_Object *elm_flip_content_front_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22856    /**
22857     * @brief Unset the back content used for the flip
22858     *
22859     * @param obj The flip object
22860     * @return The back content object that was being used
22861     *
22862     * Unparent and return the back content object which was set for this widget.
22863     */
22864    EAPI Evas_Object *elm_flip_content_back_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22865    /**
22866     * @brief Get flip front visibility state
22867     *
22868     * @param obj The flip objct
22869     * @return EINA_TRUE if front front is showing, EINA_FALSE if the back is
22870     * showing.
22871     */
22872    EAPI Eina_Bool    elm_flip_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22873    /**
22874     * @brief Set flip perspective
22875     *
22876     * @param obj The flip object
22877     * @param foc The coordinate to set the focus on
22878     * @param x The X coordinate
22879     * @param y The Y coordinate
22880     *
22881     * @warning This function currently does nothing.
22882     */
22883    EAPI void         elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
22884    /**
22885     * @brief Runs the flip animation
22886     *
22887     * @param obj The flip object
22888     * @param mode The mode type
22889     *
22890     * Flips the front and back contents using the @p mode animation. This
22891     * efectively hides the currently visible content and shows the hidden one.
22892     *
22893     * There a number of possible animations to use for the flipping:
22894     * @li ELM_FLIP_ROTATE_X_CENTER_AXIS - Rotate the currently visible content
22895     * around a horizontal axis in the middle of its height, the other content
22896     * is shown as the other side of the flip.
22897     * @li ELM_FLIP_ROTATE_Y_CENTER_AXIS - Rotate the currently visible content
22898     * around a vertical axis in the middle of its width, the other content is
22899     * shown as the other side of the flip.
22900     * @li ELM_FLIP_ROTATE_XZ_CENTER_AXIS - Rotate the currently visible content
22901     * around a diagonal axis in the middle of its width, the other content is
22902     * shown as the other side of the flip.
22903     * @li ELM_FLIP_ROTATE_YZ_CENTER_AXIS - Rotate the currently visible content
22904     * around a diagonal axis in the middle of its height, the other content is
22905     * shown as the other side of the flip.
22906     * @li ELM_FLIP_CUBE_LEFT - Rotate the currently visible content to the left
22907     * as if the flip was a cube, the other content is show as the right face of
22908     * the cube.
22909     * @li ELM_FLIP_CUBE_RIGHT - Rotate the currently visible content to the
22910     * right as if the flip was a cube, the other content is show as the left
22911     * face of the cube.
22912     * @li ELM_FLIP_CUBE_UP - Rotate the currently visible content up as if the
22913     * flip was a cube, the other content is show as the bottom face of the cube.
22914     * @li ELM_FLIP_CUBE_DOWN - Rotate the currently visible content down as if
22915     * the flip was a cube, the other content is show as the upper face of the
22916     * cube.
22917     * @li ELM_FLIP_PAGE_LEFT - Move the currently visible content to the left as
22918     * if the flip was a book, the other content is shown as the page below that.
22919     * @li ELM_FLIP_PAGE_RIGHT - Move the currently visible content to the right
22920     * as if the flip was a book, the other content is shown as the page below
22921     * that.
22922     * @li ELM_FLIP_PAGE_UP - Move the currently visible content up as if the
22923     * flip was a book, the other content is shown as the page below that.
22924     * @li ELM_FLIP_PAGE_DOWN - Move the currently visible content down as if the
22925     * flip was a book, the other content is shown as the page below that.
22926     *
22927     * @image html elm_flip.png
22928     * @image latex elm_flip.eps width=\textwidth
22929     */
22930    EAPI void         elm_flip_go(Evas_Object *obj, Elm_Flip_Mode mode) EINA_ARG_NONNULL(1);
22931    /**
22932     * @brief Set the interactive flip mode
22933     *
22934     * @param obj The flip object
22935     * @param mode The interactive flip mode to use
22936     *
22937     * This sets if the flip should be interactive (allow user to click and
22938     * drag a side of the flip to reveal the back page and cause it to flip).
22939     * By default a flip is not interactive. You may also need to set which
22940     * sides of the flip are "active" for flipping and how much space they use
22941     * (a minimum of a finger size) with elm_flip_interacton_direction_enabled_set()
22942     * and elm_flip_interacton_direction_hitsize_set()
22943     *
22944     * The four avilable mode of interaction are:
22945     * @li ELM_FLIP_INTERACTION_NONE - No interaction is allowed
22946     * @li ELM_FLIP_INTERACTION_ROTATE - Interaction will cause rotate animation
22947     * @li ELM_FLIP_INTERACTION_CUBE - Interaction will cause cube animation
22948     * @li ELM_FLIP_INTERACTION_PAGE - Interaction will cause page animation
22949     *
22950     * @note ELM_FLIP_INTERACTION_ROTATE won't cause
22951     * ELM_FLIP_ROTATE_XZ_CENTER_AXIS or ELM_FLIP_ROTATE_YZ_CENTER_AXIS to
22952     * happen, those can only be acheived with elm_flip_go();
22953     */
22954    EAPI void         elm_flip_interaction_set(Evas_Object *obj, Elm_Flip_Interaction mode);
22955    /**
22956     * @brief Get the interactive flip mode
22957     *
22958     * @param obj The flip object
22959     * @return The interactive flip mode
22960     *
22961     * Returns the interactive flip mode set by elm_flip_interaction_set()
22962     */
22963    EAPI Elm_Flip_Interaction elm_flip_interaction_get(const Evas_Object *obj);
22964    /**
22965     * @brief Set which directions of the flip respond to interactive flip
22966     *
22967     * @param obj The flip object
22968     * @param dir The direction to change
22969     * @param enabled If that direction is enabled or not
22970     *
22971     * By default all directions are disabled, so you may want to enable the
22972     * desired directions for flipping if you need interactive flipping. You must
22973     * call this function once for each direction that should be enabled.
22974     *
22975     * @see elm_flip_interaction_set()
22976     */
22977    EAPI void         elm_flip_interacton_direction_enabled_set(Evas_Object *obj, Elm_Flip_Direction dir, Eina_Bool enabled);
22978    /**
22979     * @brief Get the enabled state of that flip direction
22980     *
22981     * @param obj The flip object
22982     * @param dir The direction to check
22983     * @return If that direction is enabled or not
22984     *
22985     * Gets the enabled state set by elm_flip_interacton_direction_enabled_set()
22986     *
22987     * @see elm_flip_interaction_set()
22988     */
22989    EAPI Eina_Bool    elm_flip_interacton_direction_enabled_get(Evas_Object *obj, Elm_Flip_Direction dir);
22990    /**
22991     * @brief Set the amount of the flip that is sensitive to interactive flip
22992     *
22993     * @param obj The flip object
22994     * @param dir The direction to modify
22995     * @param hitsize The amount of that dimension (0.0 to 1.0) to use
22996     *
22997     * Set the amount of the flip that is sensitive to interactive flip, with 0
22998     * representing no area in the flip and 1 representing the entire flip. There
22999     * is however a consideration to be made in that the area will never be
23000     * smaller than the finger size set(as set in your Elementary configuration).
23001     *
23002     * @see elm_flip_interaction_set()
23003     */
23004    EAPI void         elm_flip_interacton_direction_hitsize_set(Evas_Object *obj, Elm_Flip_Direction dir, double hitsize);
23005    /**
23006     * @brief Get the amount of the flip that is sensitive to interactive flip
23007     *
23008     * @param obj The flip object
23009     * @param dir The direction to check
23010     * @return The size set for that direction
23011     *
23012     * Returns the amount os sensitive area set by
23013     * elm_flip_interacton_direction_hitsize_set().
23014     */
23015    EAPI double       elm_flip_interacton_direction_hitsize_get(Evas_Object *obj, Elm_Flip_Direction dir);
23016    /**
23017     * @}
23018     */
23019
23020    /* scrolledentry */
23021    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23022    EINA_DEPRECATED EAPI void         elm_scrolled_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
23023    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23024    EINA_DEPRECATED EAPI void         elm_scrolled_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
23025    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23026    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
23027    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23028    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
23029    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23030    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23031    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
23032    EINA_DEPRECATED EAPI void         elm_scrolled_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
23033    EINA_DEPRECATED EAPI void         elm_scrolled_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
23034    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23035    EINA_DEPRECATED EAPI void         elm_scrolled_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
23036    EINA_DEPRECATED EAPI void         elm_scrolled_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
23037    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
23038    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
23039    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
23040    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
23041    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
23042    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
23043    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
23044    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
23045    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
23046    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
23047    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23048    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23049    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23050    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
23051    EINA_DEPRECATED EAPI int          elm_scrolled_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23052    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
23053    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
23054    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
23055    EINA_DEPRECATED EAPI void         elm_scrolled_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
23056    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);
23057    EINA_DEPRECATED EAPI void         elm_scrolled_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
23058    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23059    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);
23060    EINA_DEPRECATED EAPI void         elm_scrolled_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
23061    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);
23062    EINA_DEPRECATED EAPI void         elm_scrolled_entry_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1, 2);
23063    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23064    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
23065    EINA_DEPRECATED EAPI void         elm_scrolled_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
23066    EINA_DEPRECATED EAPI void         elm_scrolled_entry_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1, 2);
23067    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23068    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
23069    EINA_DEPRECATED EAPI void         elm_scrolled_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
23070    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);
23071    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);
23072    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);
23073    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);
23074    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);
23075    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);
23076    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
23077    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
23078    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
23079    EINA_DEPRECATED EAPI void         elm_scrolled_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
23080    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23081    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
23082    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cnp_textonly_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
23083
23084    /**
23085     * @defgroup Conformant Conformant
23086     * @ingroup Elementary
23087     *
23088     * @image html img/widget/conformant/preview-00.png
23089     * @image latex img/widget/conformant/preview-00.eps width=\textwidth
23090     *
23091     * @image html img/conformant.png
23092     * @image latex img/conformant.eps width=\textwidth
23093     *
23094     * The aim is to provide a widget that can be used in elementary apps to
23095     * account for space taken up by the indicator, virtual keypad & softkey
23096     * windows when running the illume2 module of E17.
23097     *
23098     * So conformant content will be sized and positioned considering the
23099     * space required for such stuff, and when they popup, as a keyboard
23100     * shows when an entry is selected, conformant content won't change.
23101     *
23102     * Available styles for it:
23103     * - @c "default"
23104     *
23105     * See how to use this widget in this example:
23106     * @ref conformant_example
23107     */
23108
23109    /**
23110     * @addtogroup Conformant
23111     * @{
23112     */
23113
23114    /**
23115     * Add a new conformant widget to the given parent Elementary
23116     * (container) object.
23117     *
23118     * @param parent The parent object.
23119     * @return A new conformant widget handle or @c NULL, on errors.
23120     *
23121     * This function inserts a new conformant widget on the canvas.
23122     *
23123     * @ingroup Conformant
23124     */
23125    EAPI Evas_Object *elm_conformant_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23126
23127    /**
23128     * Set the content of the conformant widget.
23129     *
23130     * @param obj The conformant object.
23131     * @param content The content to be displayed by the conformant.
23132     *
23133     * Content will be sized and positioned considering the space required
23134     * to display a virtual keyboard. So it won't fill all the conformant
23135     * size. This way is possible to be sure that content won't resize
23136     * or be re-positioned after the keyboard is displayed.
23137     *
23138     * Once the content object is set, a previously set one will be deleted.
23139     * If you want to keep that old content object, use the
23140     * elm_conformat_content_unset() function.
23141     *
23142     * @see elm_conformant_content_unset()
23143     * @see elm_conformant_content_get()
23144     *
23145     * @ingroup Conformant
23146     */
23147    EAPI void         elm_conformant_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
23148
23149    /**
23150     * Get the content of the conformant widget.
23151     *
23152     * @param obj The conformant object.
23153     * @return The content that is being used.
23154     *
23155     * Return the content object which is set for this widget.
23156     * It won't be unparent from conformant. For that, use
23157     * elm_conformant_content_unset().
23158     *
23159     * @see elm_conformant_content_set() for more details.
23160     * @see elm_conformant_content_unset()
23161     *
23162     * @ingroup Conformant
23163     */
23164    EAPI Evas_Object *elm_conformant_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23165
23166    /**
23167     * Unset the content of the conformant widget.
23168     *
23169     * @param obj The conformant object.
23170     * @return The content that was being used.
23171     *
23172     * Unparent and return the content object which was set for this widget.
23173     *
23174     * @see elm_conformant_content_set() for more details.
23175     *
23176     * @ingroup Conformant
23177     */
23178    EAPI Evas_Object *elm_conformant_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
23179
23180    /**
23181     * Returns the Evas_Object that represents the content area.
23182     *
23183     * @param obj The conformant object.
23184     * @return The content area of the widget.
23185     *
23186     * @ingroup Conformant
23187     */
23188    EAPI Evas_Object *elm_conformant_content_area_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23189
23190    /**
23191     * @}
23192     */
23193
23194    /**
23195     * @defgroup Mapbuf Mapbuf
23196     * @ingroup Elementary
23197     *
23198     * @image html img/widget/mapbuf/preview-00.png
23199     * @image latex img/widget/mapbuf/preview-00.eps width=\textwidth
23200     *
23201     * This holds one content object and uses an Evas Map of transformation
23202     * points to be later used with this content. So the content will be
23203     * moved, resized, etc as a single image. So it will improve performance
23204     * when you have a complex interafce, with a lot of elements, and will
23205     * need to resize or move it frequently (the content object and its
23206     * children).
23207     *
23208     * See how to use this widget in this example:
23209     * @ref mapbuf_example
23210     */
23211
23212    /**
23213     * @addtogroup Mapbuf
23214     * @{
23215     */
23216
23217    /**
23218     * Add a new mapbuf widget to the given parent Elementary
23219     * (container) object.
23220     *
23221     * @param parent The parent object.
23222     * @return A new mapbuf widget handle or @c NULL, on errors.
23223     *
23224     * This function inserts a new mapbuf widget on the canvas.
23225     *
23226     * @ingroup Mapbuf
23227     */
23228    EAPI Evas_Object *elm_mapbuf_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23229
23230    /**
23231     * Set the content of the mapbuf.
23232     *
23233     * @param obj The mapbuf object.
23234     * @param content The content that will be filled in this mapbuf object.
23235     *
23236     * Once the content object is set, a previously set one will be deleted.
23237     * If you want to keep that old content object, use the
23238     * elm_mapbuf_content_unset() function.
23239     *
23240     * To enable map, elm_mapbuf_enabled_set() should be used.
23241     *
23242     * @ingroup Mapbuf
23243     */
23244    EAPI void         elm_mapbuf_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
23245
23246    /**
23247     * Get the content of the mapbuf.
23248     *
23249     * @param obj The mapbuf object.
23250     * @return The content that is being used.
23251     *
23252     * Return the content object which is set for this widget.
23253     *
23254     * @see elm_mapbuf_content_set() for details.
23255     *
23256     * @ingroup Mapbuf
23257     */
23258    EAPI Evas_Object *elm_mapbuf_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23259
23260    /**
23261     * Unset the content of the mapbuf.
23262     *
23263     * @param obj The mapbuf object.
23264     * @return The content that was being used.
23265     *
23266     * Unparent and return the content object which was set for this widget.
23267     *
23268     * @see elm_mapbuf_content_set() for details.
23269     *
23270     * @ingroup Mapbuf
23271     */
23272    EAPI Evas_Object *elm_mapbuf_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
23273
23274    /**
23275     * Enable or disable the map.
23276     *
23277     * @param obj The mapbuf object.
23278     * @param enabled @c EINA_TRUE to enable map or @c EINA_FALSE to disable it.
23279     *
23280     * This enables the map that is set or disables it. On enable, the object
23281     * geometry will be saved, and the new geometry will change (position and
23282     * size) to reflect the map geometry set.
23283     *
23284     * Also, when enabled, alpha and smooth states will be used, so if the
23285     * content isn't solid, alpha should be enabled, for example, otherwise
23286     * a black retangle will fill the content.
23287     *
23288     * When disabled, the stored map will be freed and geometry prior to
23289     * enabling the map will be restored.
23290     *
23291     * It's disabled by default.
23292     *
23293     * @see elm_mapbuf_alpha_set()
23294     * @see elm_mapbuf_smooth_set()
23295     *
23296     * @ingroup Mapbuf
23297     */
23298    EAPI void         elm_mapbuf_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
23299
23300    /**
23301     * Get a value whether map is enabled or not.
23302     *
23303     * @param obj The mapbuf object.
23304     * @return @c EINA_TRUE means map is enabled. @c EINA_FALSE indicates
23305     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
23306     *
23307     * @see elm_mapbuf_enabled_set() for details.
23308     *
23309     * @ingroup Mapbuf
23310     */
23311    EAPI Eina_Bool    elm_mapbuf_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23312
23313    /**
23314     * Enable or disable smooth map rendering.
23315     *
23316     * @param obj The mapbuf object.
23317     * @param smooth @c EINA_TRUE to enable smooth map rendering or @c EINA_FALSE
23318     * to disable it.
23319     *
23320     * This sets smoothing for map rendering. If the object is a type that has
23321     * its own smoothing settings, then both the smooth settings for this object
23322     * and the map must be turned off.
23323     *
23324     * By default smooth maps are enabled.
23325     *
23326     * @ingroup Mapbuf
23327     */
23328    EAPI void         elm_mapbuf_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
23329
23330    /**
23331     * Get a value whether smooth map rendering is enabled or not.
23332     *
23333     * @param obj The mapbuf object.
23334     * @return @c EINA_TRUE means smooth map rendering is enabled. @c EINA_FALSE
23335     * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
23336     *
23337     * @see elm_mapbuf_smooth_set() for details.
23338     *
23339     * @ingroup Mapbuf
23340     */
23341    EAPI Eina_Bool    elm_mapbuf_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23342
23343    /**
23344     * Set or unset alpha flag for map rendering.
23345     *
23346     * @param obj The mapbuf object.
23347     * @param alpha @c EINA_TRUE to enable alpha blending or @c EINA_FALSE
23348     * to disable it.
23349     *
23350     * This sets alpha flag for map rendering. If the object is a type that has
23351     * its own alpha settings, then this will take precedence. Only image objects
23352     * have this currently. It stops alpha blending of the map area, and is
23353     * useful if you know the object and/or all sub-objects is 100% solid.
23354     *
23355     * Alpha is enabled by default.
23356     *
23357     * @ingroup Mapbuf
23358     */
23359    EAPI void         elm_mapbuf_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
23360
23361    /**
23362     * Get a value whether alpha blending is enabled or not.
23363     *
23364     * @param obj The mapbuf object.
23365     * @return @c EINA_TRUE means alpha blending is enabled. @c EINA_FALSE
23366     * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
23367     *
23368     * @see elm_mapbuf_alpha_set() for details.
23369     *
23370     * @ingroup Mapbuf
23371     */
23372    EAPI Eina_Bool    elm_mapbuf_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23373
23374    /**
23375     * @}
23376     */
23377
23378    /**
23379     * @defgroup Flipselector Flip Selector
23380     *
23381     * @image html img/widget/flipselector/preview-00.png
23382     * @image latex img/widget/flipselector/preview-00.eps
23383     *
23384     * A flip selector is a widget to show a set of @b text items, one
23385     * at a time, with the same sheet switching style as the @ref Clock
23386     * "clock" widget, when one changes the current displaying sheet
23387     * (thus, the "flip" in the name).
23388     *
23389     * User clicks to flip sheets which are @b held for some time will
23390     * make the flip selector to flip continuosly and automatically for
23391     * the user. The interval between flips will keep growing in time,
23392     * so that it helps the user to reach an item which is distant from
23393     * the current selection.
23394     *
23395     * Smart callbacks one can register to:
23396     * - @c "selected" - when the widget's selected text item is changed
23397     * - @c "overflowed" - when the widget's current selection is changed
23398     *   from the first item in its list to the last
23399     * - @c "underflowed" - when the widget's current selection is changed
23400     *   from the last item in its list to the first
23401     *
23402     * Available styles for it:
23403     * - @c "default"
23404     *
23405     * Here is an example on its usage:
23406     * @li @ref flipselector_example
23407     */
23408
23409    /**
23410     * @addtogroup Flipselector
23411     * @{
23412     */
23413
23414    typedef struct _Elm_Flipselector_Item Elm_Flipselector_Item; /**< Item handle for a flip selector widget. */
23415
23416    /**
23417     * Add a new flip selector widget to the given parent Elementary
23418     * (container) widget
23419     *
23420     * @param parent The parent object
23421     * @return a new flip selector widget handle or @c NULL, on errors
23422     *
23423     * This function inserts a new flip selector widget on the canvas.
23424     *
23425     * @ingroup Flipselector
23426     */
23427    EAPI Evas_Object               *elm_flipselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23428
23429    /**
23430     * Programmatically select the next item of a flip selector widget
23431     *
23432     * @param obj The flipselector object
23433     *
23434     * @note The selection will be animated. Also, if it reaches the
23435     * end of its list of member items, it will continue with the first
23436     * one onwards.
23437     *
23438     * @ingroup Flipselector
23439     */
23440    EAPI void                       elm_flipselector_flip_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
23441
23442    /**
23443     * Programmatically select the previous item of a flip selector
23444     * widget
23445     *
23446     * @param obj The flipselector object
23447     *
23448     * @note The selection will be animated.  Also, if it reaches the
23449     * beginning of its list of member items, it will continue with the
23450     * last one backwards.
23451     *
23452     * @ingroup Flipselector
23453     */
23454    EAPI void                       elm_flipselector_flip_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
23455
23456    /**
23457     * Append a (text) item to a flip selector widget
23458     *
23459     * @param obj The flipselector object
23460     * @param label The (text) label of the new item
23461     * @param func Convenience callback function to take place when
23462     * item is selected
23463     * @param data Data passed to @p func, above
23464     * @return A handle to the item added or @c NULL, on errors
23465     *
23466     * The widget's list of labels to show will be appended with the
23467     * given value. If the user wishes so, a callback function pointer
23468     * can be passed, which will get called when this same item is
23469     * selected.
23470     *
23471     * @note The current selection @b won't be modified by appending an
23472     * element to the list.
23473     *
23474     * @note The maximum length of the text label is going to be
23475     * determined <b>by the widget's theme</b>. Strings larger than
23476     * that value are going to be @b truncated.
23477     *
23478     * @ingroup Flipselector
23479     */
23480    EAPI Elm_Flipselector_Item     *elm_flipselector_item_append(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
23481
23482    /**
23483     * Prepend a (text) item to a flip selector widget
23484     *
23485     * @param obj The flipselector object
23486     * @param label The (text) label of the new item
23487     * @param func Convenience callback function to take place when
23488     * item is selected
23489     * @param data Data passed to @p func, above
23490     * @return A handle to the item added or @c NULL, on errors
23491     *
23492     * The widget's list of labels to show will be prepended with the
23493     * given value. If the user wishes so, a callback function pointer
23494     * can be passed, which will get called when this same item is
23495     * selected.
23496     *
23497     * @note The current selection @b won't be modified by prepending
23498     * an element to the list.
23499     *
23500     * @note The maximum length of the text label is going to be
23501     * determined <b>by the widget's theme</b>. Strings larger than
23502     * that value are going to be @b truncated.
23503     *
23504     * @ingroup Flipselector
23505     */
23506    EAPI Elm_Flipselector_Item     *elm_flipselector_item_prepend(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
23507
23508    /**
23509     * Get the internal list of items in a given flip selector widget.
23510     *
23511     * @param obj The flipselector object
23512     * @return The list of items (#Elm_Flipselector_Item as data) or
23513     * @c NULL on errors.
23514     *
23515     * This list is @b not to be modified in any way and must not be
23516     * freed. Use the list members with functions like
23517     * elm_flipselector_item_label_set(),
23518     * elm_flipselector_item_label_get(),
23519     * elm_flipselector_item_del(),
23520     * elm_flipselector_item_selected_get(),
23521     * elm_flipselector_item_selected_set().
23522     *
23523     * @warning This list is only valid until @p obj object's internal
23524     * items list is changed. It should be fetched again with another
23525     * call to this function when changes happen.
23526     *
23527     * @ingroup Flipselector
23528     */
23529    EAPI const Eina_List           *elm_flipselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23530
23531    /**
23532     * Get the first item in the given flip selector widget's list of
23533     * items.
23534     *
23535     * @param obj The flipselector object
23536     * @return The first item or @c NULL, if it has no items (and on
23537     * errors)
23538     *
23539     * @see elm_flipselector_item_append()
23540     * @see elm_flipselector_last_item_get()
23541     *
23542     * @ingroup Flipselector
23543     */
23544    EAPI Elm_Flipselector_Item     *elm_flipselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23545
23546    /**
23547     * Get the last item in the given flip selector widget's list of
23548     * items.
23549     *
23550     * @param obj The flipselector object
23551     * @return The last item or @c NULL, if it has no items (and on
23552     * errors)
23553     *
23554     * @see elm_flipselector_item_prepend()
23555     * @see elm_flipselector_first_item_get()
23556     *
23557     * @ingroup Flipselector
23558     */
23559    EAPI Elm_Flipselector_Item     *elm_flipselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23560
23561    /**
23562     * Get the currently selected item in a flip selector widget.
23563     *
23564     * @param obj The flipselector object
23565     * @return The selected item or @c NULL, if the widget has no items
23566     * (and on erros)
23567     *
23568     * @ingroup Flipselector
23569     */
23570    EAPI Elm_Flipselector_Item     *elm_flipselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23571
23572    /**
23573     * Set whether a given flip selector widget's item should be the
23574     * currently selected one.
23575     *
23576     * @param item The flip selector item
23577     * @param selected @c EINA_TRUE to select it, @c EINA_FALSE to unselect.
23578     *
23579     * This sets whether @p item is or not the selected (thus, under
23580     * display) one. If @p item is different than one under display,
23581     * the latter will be unselected. If the @p item is set to be
23582     * unselected, on the other hand, the @b first item in the widget's
23583     * internal members list will be the new selected one.
23584     *
23585     * @see elm_flipselector_item_selected_get()
23586     *
23587     * @ingroup Flipselector
23588     */
23589    EAPI void                       elm_flipselector_item_selected_set(Elm_Flipselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
23590
23591    /**
23592     * Get whether a given flip selector widget's item is the currently
23593     * selected one.
23594     *
23595     * @param item The flip selector item
23596     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
23597     * (or on errors).
23598     *
23599     * @see elm_flipselector_item_selected_set()
23600     *
23601     * @ingroup Flipselector
23602     */
23603    EAPI Eina_Bool                  elm_flipselector_item_selected_get(const Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23604
23605    /**
23606     * Delete a given item from a flip selector widget.
23607     *
23608     * @param item The item to delete
23609     *
23610     * @ingroup Flipselector
23611     */
23612    EAPI void                       elm_flipselector_item_del(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23613
23614    /**
23615     * Get the label of a given flip selector widget's item.
23616     *
23617     * @param item The item to get label from
23618     * @return The text label of @p item or @c NULL, on errors
23619     *
23620     * @see elm_flipselector_item_label_set()
23621     *
23622     * @ingroup Flipselector
23623     */
23624    EAPI const char                *elm_flipselector_item_label_get(const Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23625
23626    /**
23627     * Set the label of a given flip selector widget's item.
23628     *
23629     * @param item The item to set label on
23630     * @param label The text label string, in UTF-8 encoding
23631     *
23632     * @see elm_flipselector_item_label_get()
23633     *
23634     * @ingroup Flipselector
23635     */
23636    EAPI void                       elm_flipselector_item_label_set(Elm_Flipselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
23637
23638    /**
23639     * Gets the item before @p item in a flip selector widget's
23640     * internal list of items.
23641     *
23642     * @param item The item to fetch previous from
23643     * @return The item before the @p item, in its parent's list. If
23644     *         there is no previous item for @p item or there's an
23645     *         error, @c NULL is returned.
23646     *
23647     * @see elm_flipselector_item_next_get()
23648     *
23649     * @ingroup Flipselector
23650     */
23651    EAPI Elm_Flipselector_Item     *elm_flipselector_item_prev_get(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23652
23653    /**
23654     * Gets the item after @p item in a flip selector widget's
23655     * internal list of items.
23656     *
23657     * @param item The item to fetch next from
23658     * @return The item after the @p item, in its parent's list. If
23659     *         there is no next item for @p item or there's an
23660     *         error, @c NULL is returned.
23661     *
23662     * @see elm_flipselector_item_next_get()
23663     *
23664     * @ingroup Flipselector
23665     */
23666    EAPI Elm_Flipselector_Item     *elm_flipselector_item_next_get(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23667
23668    /**
23669     * Set the interval on time updates for an user mouse button hold
23670     * on a flip selector widget.
23671     *
23672     * @param obj The flip selector object
23673     * @param interval The (first) interval value in seconds
23674     *
23675     * This interval value is @b decreased while the user holds the
23676     * mouse pointer either flipping up or flipping doww a given flip
23677     * selector.
23678     *
23679     * This helps the user to get to a given item distant from the
23680     * current one easier/faster, as it will start to flip quicker and
23681     * quicker on mouse button holds.
23682     *
23683     * The calculation for the next flip interval value, starting from
23684     * the one set with this call, is the previous interval divided by
23685     * 1.05, so it decreases a little bit.
23686     *
23687     * The default starting interval value for automatic flips is
23688     * @b 0.85 seconds.
23689     *
23690     * @see elm_flipselector_interval_get()
23691     *
23692     * @ingroup Flipselector
23693     */
23694    EAPI void                       elm_flipselector_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
23695
23696    /**
23697     * Get the interval on time updates for an user mouse button hold
23698     * on a flip selector widget.
23699     *
23700     * @param obj The flip selector object
23701     * @return The (first) interval value, in seconds, set on it
23702     *
23703     * @see elm_flipselector_interval_set() for more details
23704     *
23705     * @ingroup Flipselector
23706     */
23707    EAPI double                     elm_flipselector_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23708    /**
23709     * @}
23710     */
23711
23712    /**
23713     * @addtogroup Calendar
23714     * @{
23715     */
23716
23717    /**
23718     * @enum _Elm_Calendar_Mark_Repeat
23719     * @typedef Elm_Calendar_Mark_Repeat
23720     *
23721     * Event periodicity, used to define if a mark should be repeated
23722     * @b beyond event's day. It's set when a mark is added.
23723     *
23724     * So, for a mark added to 13th May with periodicity set to WEEKLY,
23725     * there will be marks every week after this date. Marks will be displayed
23726     * at 13th, 20th, 27th, 3rd June ...
23727     *
23728     * Values don't work as bitmask, only one can be choosen.
23729     *
23730     * @see elm_calendar_mark_add()
23731     *
23732     * @ingroup Calendar
23733     */
23734    typedef enum _Elm_Calendar_Mark_Repeat
23735      {
23736         ELM_CALENDAR_UNIQUE, /**< Default value. Marks will be displayed only on event day. */
23737         ELM_CALENDAR_DAILY, /**< Marks will be displayed everyday after event day (inclusive). */
23738         ELM_CALENDAR_WEEKLY, /**< Marks will be displayed every week after event day (inclusive) - i.e. each seven days. */
23739         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*/
23740         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. */
23741      } Elm_Calendar_Mark_Repeat;
23742
23743    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(). */
23744
23745    /**
23746     * Add a new calendar widget to the given parent Elementary
23747     * (container) object.
23748     *
23749     * @param parent The parent object.
23750     * @return a new calendar widget handle or @c NULL, on errors.
23751     *
23752     * This function inserts a new calendar widget on the canvas.
23753     *
23754     * @ref calendar_example_01
23755     *
23756     * @ingroup Calendar
23757     */
23758    EAPI Evas_Object       *elm_calendar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23759
23760    /**
23761     * Get weekdays names displayed by the calendar.
23762     *
23763     * @param obj The calendar object.
23764     * @return Array of seven strings to be used as weekday names.
23765     *
23766     * By default, weekdays abbreviations get from system are displayed:
23767     * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
23768     * The first string is related to Sunday, the second to Monday...
23769     *
23770     * @see elm_calendar_weekdays_name_set()
23771     *
23772     * @ref calendar_example_05
23773     *
23774     * @ingroup Calendar
23775     */
23776    EAPI const char       **elm_calendar_weekdays_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23777
23778    /**
23779     * Set weekdays names to be displayed by the calendar.
23780     *
23781     * @param obj The calendar object.
23782     * @param weekdays Array of seven strings to be used as weekday names.
23783     * @warning It must have 7 elements, or it will access invalid memory.
23784     * @warning The strings must be NULL terminated ('@\0').
23785     *
23786     * By default, weekdays abbreviations get from system are displayed:
23787     * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
23788     *
23789     * The first string should be related to Sunday, the second to Monday...
23790     *
23791     * The usage should be like this:
23792     * @code
23793     *   const char *weekdays[] =
23794     *   {
23795     *      "Sunday", "Monday", "Tuesday", "Wednesday",
23796     *      "Thursday", "Friday", "Saturday"
23797     *   };
23798     *   elm_calendar_weekdays_names_set(calendar, weekdays);
23799     * @endcode
23800     *
23801     * @see elm_calendar_weekdays_name_get()
23802     *
23803     * @ref calendar_example_02
23804     *
23805     * @ingroup Calendar
23806     */
23807    EAPI void               elm_calendar_weekdays_names_set(Evas_Object *obj, const char *weekdays[]) EINA_ARG_NONNULL(1, 2);
23808
23809    /**
23810     * Set the minimum and maximum values for the year
23811     *
23812     * @param obj The calendar object
23813     * @param min The minimum year, greater than 1901;
23814     * @param max The maximum year;
23815     *
23816     * Maximum must be greater than minimum, except if you don't wan't to set
23817     * maximum year.
23818     * Default values are 1902 and -1.
23819     *
23820     * If the maximum year is a negative value, it will be limited depending
23821     * on the platform architecture (year 2037 for 32 bits);
23822     *
23823     * @see elm_calendar_min_max_year_get()
23824     *
23825     * @ref calendar_example_03
23826     *
23827     * @ingroup Calendar
23828     */
23829    EAPI void               elm_calendar_min_max_year_set(Evas_Object *obj, int min, int max) EINA_ARG_NONNULL(1);
23830
23831    /**
23832     * Get the minimum and maximum values for the year
23833     *
23834     * @param obj The calendar object.
23835     * @param min The minimum year.
23836     * @param max The maximum year.
23837     *
23838     * Default values are 1902 and -1.
23839     *
23840     * @see elm_calendar_min_max_year_get() for more details.
23841     *
23842     * @ref calendar_example_05
23843     *
23844     * @ingroup Calendar
23845     */
23846    EAPI void               elm_calendar_min_max_year_get(const Evas_Object *obj, int *min, int *max) EINA_ARG_NONNULL(1);
23847
23848    /**
23849     * Enable or disable day selection
23850     *
23851     * @param obj The calendar object.
23852     * @param enabled @c EINA_TRUE to enable selection or @c EINA_FALSE to
23853     * disable it.
23854     *
23855     * Enabled by default. If disabled, the user still can select months,
23856     * but not days. Selected days are highlighted on calendar.
23857     * It should be used if you won't need such selection for the widget usage.
23858     *
23859     * When a day is selected, or month is changed, smart callbacks for
23860     * signal "changed" will be called.
23861     *
23862     * @see elm_calendar_day_selection_enable_get()
23863     *
23864     * @ref calendar_example_04
23865     *
23866     * @ingroup Calendar
23867     */
23868    EAPI void               elm_calendar_day_selection_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
23869
23870    /**
23871     * Get a value whether day selection is enabled or not.
23872     *
23873     * @see elm_calendar_day_selection_enable_set() for details.
23874     *
23875     * @param obj The calendar object.
23876     * @return EINA_TRUE means day selection is enabled. EINA_FALSE indicates
23877     * it's disabled. If @p obj is NULL, EINA_FALSE is returned.
23878     *
23879     * @ref calendar_example_05
23880     *
23881     * @ingroup Calendar
23882     */
23883    EAPI Eina_Bool          elm_calendar_day_selection_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23884
23885
23886    /**
23887     * Set selected date to be highlighted on calendar.
23888     *
23889     * @param obj The calendar object.
23890     * @param selected_time A @b tm struct to represent the selected date.
23891     *
23892     * Set the selected date, changing the displayed month if needed.
23893     * Selected date changes when the user goes to next/previous month or
23894     * select a day pressing over it on calendar.
23895     *
23896     * @see elm_calendar_selected_time_get()
23897     *
23898     * @ref calendar_example_04
23899     *
23900     * @ingroup Calendar
23901     */
23902    EAPI void               elm_calendar_selected_time_set(Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1);
23903
23904    /**
23905     * Get selected date.
23906     *
23907     * @param obj The calendar object
23908     * @param selected_time A @b tm struct to point to selected date
23909     * @return EINA_FALSE means an error ocurred and returned time shouldn't
23910     * be considered.
23911     *
23912     * Get date selected by the user or set by function
23913     * elm_calendar_selected_time_set().
23914     * Selected date changes when the user goes to next/previous month or
23915     * select a day pressing over it on calendar.
23916     *
23917     * @see elm_calendar_selected_time_get()
23918     *
23919     * @ref calendar_example_05
23920     *
23921     * @ingroup Calendar
23922     */
23923    EAPI Eina_Bool          elm_calendar_selected_time_get(const Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1, 2);
23924
23925    /**
23926     * Set a function to format the string that will be used to display
23927     * month and year;
23928     *
23929     * @param obj The calendar object
23930     * @param format_function Function to set the month-year string given
23931     * the selected date
23932     *
23933     * By default it uses strftime with "%B %Y" format string.
23934     * It should allocate the memory that will be used by the string,
23935     * that will be freed by the widget after usage.
23936     * A pointer to the string and a pointer to the time struct will be provided.
23937     *
23938     * Example:
23939     * @code
23940     * static char *
23941     * _format_month_year(struct tm *selected_time)
23942     * {
23943     *    char buf[32];
23944     *    if (!strftime(buf, sizeof(buf), "%B %Y", selected_time)) return NULL;
23945     *    return strdup(buf);
23946     * }
23947     *
23948     * elm_calendar_format_function_set(calendar, _format_month_year);
23949     * @endcode
23950     *
23951     * @ref calendar_example_02
23952     *
23953     * @ingroup Calendar
23954     */
23955    EAPI void               elm_calendar_format_function_set(Evas_Object *obj, char * (*format_function) (struct tm *stime)) EINA_ARG_NONNULL(1);
23956
23957    /**
23958     * Add a new mark to the calendar
23959     *
23960     * @param obj The calendar object
23961     * @param mark_type A string used to define the type of mark. It will be
23962     * emitted to the theme, that should display a related modification on these
23963     * days representation.
23964     * @param mark_time A time struct to represent the date of inclusion of the
23965     * mark. For marks that repeats it will just be displayed after the inclusion
23966     * date in the calendar.
23967     * @param repeat Repeat the event following this periodicity. Can be a unique
23968     * mark (that don't repeat), daily, weekly, monthly or annually.
23969     * @return The created mark or @p NULL upon failure.
23970     *
23971     * Add a mark that will be drawn in the calendar respecting the insertion
23972     * time and periodicity. It will emit the type as signal to the widget theme.
23973     * Default theme supports "holiday" and "checked", but it can be extended.
23974     *
23975     * It won't immediately update the calendar, drawing the marks.
23976     * For this, call elm_calendar_marks_draw(). However, when user selects
23977     * next or previous month calendar forces marks drawn.
23978     *
23979     * Marks created with this method can be deleted with
23980     * elm_calendar_mark_del().
23981     *
23982     * Example
23983     * @code
23984     * struct tm selected_time;
23985     * time_t current_time;
23986     *
23987     * current_time = time(NULL) + 5 * 84600;
23988     * localtime_r(&current_time, &selected_time);
23989     * elm_calendar_mark_add(cal, "holiday", selected_time,
23990     *     ELM_CALENDAR_ANNUALLY);
23991     *
23992     * current_time = time(NULL) + 1 * 84600;
23993     * localtime_r(&current_time, &selected_time);
23994     * elm_calendar_mark_add(cal, "checked", selected_time, ELM_CALENDAR_UNIQUE);
23995     *
23996     * elm_calendar_marks_draw(cal);
23997     * @endcode
23998     *
23999     * @see elm_calendar_marks_draw()
24000     * @see elm_calendar_mark_del()
24001     *
24002     * @ref calendar_example_06
24003     *
24004     * @ingroup Calendar
24005     */
24006    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);
24007
24008    /**
24009     * Delete mark from the calendar.
24010     *
24011     * @param mark The mark to be deleted.
24012     *
24013     * If deleting all calendar marks is required, elm_calendar_marks_clear()
24014     * should be used instead of getting marks list and deleting each one.
24015     *
24016     * @see elm_calendar_mark_add()
24017     *
24018     * @ref calendar_example_06
24019     *
24020     * @ingroup Calendar
24021     */
24022    EAPI void               elm_calendar_mark_del(Elm_Calendar_Mark *mark) EINA_ARG_NONNULL(1);
24023
24024    /**
24025     * Remove all calendar's marks
24026     *
24027     * @param obj The calendar object.
24028     *
24029     * @see elm_calendar_mark_add()
24030     * @see elm_calendar_mark_del()
24031     *
24032     * @ingroup Calendar
24033     */
24034    EAPI void               elm_calendar_marks_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
24035
24036
24037    /**
24038     * Get a list of all the calendar marks.
24039     *
24040     * @param obj The calendar object.
24041     * @return An @c Eina_List of calendar marks objects, or @c NULL on failure.
24042     *
24043     * @see elm_calendar_mark_add()
24044     * @see elm_calendar_mark_del()
24045     * @see elm_calendar_marks_clear()
24046     *
24047     * @ingroup Calendar
24048     */
24049    EAPI const Eina_List   *elm_calendar_marks_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24050
24051    /**
24052     * Draw calendar marks.
24053     *
24054     * @param obj The calendar object.
24055     *
24056     * Should be used after adding, removing or clearing marks.
24057     * It will go through the entire marks list updating the calendar.
24058     * If lots of marks will be added, add all the marks and then call
24059     * this function.
24060     *
24061     * When the month is changed, i.e. user selects next or previous month,
24062     * marks will be drawed.
24063     *
24064     * @see elm_calendar_mark_add()
24065     * @see elm_calendar_mark_del()
24066     * @see elm_calendar_marks_clear()
24067     *
24068     * @ref calendar_example_06
24069     *
24070     * @ingroup Calendar
24071     */
24072    EAPI void               elm_calendar_marks_draw(Evas_Object *obj) EINA_ARG_NONNULL(1);
24073
24074    /**
24075     * Set a day text color to the same that represents Saturdays.
24076     *
24077     * @param obj The calendar object.
24078     * @param pos The text position. Position is the cell counter, from left
24079     * to right, up to down. It starts on 0 and ends on 41.
24080     *
24081     * @deprecated use elm_calendar_mark_add() instead like:
24082     *
24083     * @code
24084     * struct tm t = { 0, 0, 12, 6, 0, 0, 6, 6, -1 };
24085     * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
24086     * @endcode
24087     *
24088     * @see elm_calendar_mark_add()
24089     *
24090     * @ingroup Calendar
24091     */
24092    EINA_DEPRECATED EAPI void               elm_calendar_text_saturday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
24093
24094    /**
24095     * Set a day text color to the same that represents Sundays.
24096     *
24097     * @param obj The calendar object.
24098     * @param pos The text position. Position is the cell counter, from left
24099     * to right, up to down. It starts on 0 and ends on 41.
24100
24101     * @deprecated use elm_calendar_mark_add() instead like:
24102     *
24103     * @code
24104     * struct tm t = { 0, 0, 12, 7, 0, 0, 0, 0, -1 };
24105     * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
24106     * @endcode
24107     *
24108     * @see elm_calendar_mark_add()
24109     *
24110     * @ingroup Calendar
24111     */
24112    EINA_DEPRECATED EAPI void               elm_calendar_text_sunday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
24113
24114    /**
24115     * Set a day text color to the same that represents Weekdays.
24116     *
24117     * @param obj The calendar object
24118     * @param pos The text position. Position is the cell counter, from left
24119     * to right, up to down. It starts on 0 and ends on 41.
24120     *
24121     * @deprecated use elm_calendar_mark_add() instead like:
24122     *
24123     * @code
24124     * struct tm t = { 0, 0, 12, 1, 0, 0, 0, 0, -1 };
24125     *
24126     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // monday
24127     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
24128     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // tuesday
24129     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
24130     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // wednesday
24131     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
24132     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // thursday
24133     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
24134     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // friday
24135     * @endcode
24136     *
24137     * @see elm_calendar_mark_add()
24138     *
24139     * @ingroup Calendar
24140     */
24141    EINA_DEPRECATED EAPI void               elm_calendar_text_weekday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
24142
24143    /**
24144     * Set the interval on time updates for an user mouse button hold
24145     * on calendar widgets' month selection.
24146     *
24147     * @param obj The calendar object
24148     * @param interval The (first) interval value in seconds
24149     *
24150     * This interval value is @b decreased while the user holds the
24151     * mouse pointer either selecting next or previous month.
24152     *
24153     * This helps the user to get to a given month distant from the
24154     * current one easier/faster, as it will start to change quicker and
24155     * quicker on mouse button holds.
24156     *
24157     * The calculation for the next change interval value, starting from
24158     * the one set with this call, is the previous interval divided by
24159     * 1.05, so it decreases a little bit.
24160     *
24161     * The default starting interval value for automatic changes is
24162     * @b 0.85 seconds.
24163     *
24164     * @see elm_calendar_interval_get()
24165     *
24166     * @ingroup Calendar
24167     */
24168    EAPI void               elm_calendar_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
24169
24170    /**
24171     * Get the interval on time updates for an user mouse button hold
24172     * on calendar widgets' month selection.
24173     *
24174     * @param obj The calendar object
24175     * @return The (first) interval value, in seconds, set on it
24176     *
24177     * @see elm_calendar_interval_set() for more details
24178     *
24179     * @ingroup Calendar
24180     */
24181    EAPI double             elm_calendar_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24182
24183    /**
24184     * @}
24185     */
24186
24187    /**
24188     * @defgroup Diskselector Diskselector
24189     * @ingroup Elementary
24190     *
24191     * @image html img/widget/diskselector/preview-00.png
24192     * @image latex img/widget/diskselector/preview-00.eps
24193     *
24194     * A diskselector is a kind of list widget. It scrolls horizontally,
24195     * and can contain label and icon objects. Three items are displayed
24196     * with the selected one in the middle.
24197     *
24198     * It can act like a circular list with round mode and labels can be
24199     * reduced for a defined length for side items.
24200     *
24201     * Smart callbacks one can listen to:
24202     * - "selected" - when item is selected, i.e. scroller stops.
24203     *
24204     * Available styles for it:
24205     * - @c "default"
24206     *
24207     * List of examples:
24208     * @li @ref diskselector_example_01
24209     * @li @ref diskselector_example_02
24210     */
24211
24212    /**
24213     * @addtogroup Diskselector
24214     * @{
24215     */
24216
24217    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(). */
24218
24219    /**
24220     * Add a new diskselector widget to the given parent Elementary
24221     * (container) object.
24222     *
24223     * @param parent The parent object.
24224     * @return a new diskselector widget handle or @c NULL, on errors.
24225     *
24226     * This function inserts a new diskselector widget on the canvas.
24227     *
24228     * @ingroup Diskselector
24229     */
24230    EAPI Evas_Object           *elm_diskselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24231
24232    /**
24233     * Enable or disable round mode.
24234     *
24235     * @param obj The diskselector object.
24236     * @param round @c EINA_TRUE to enable round mode or @c EINA_FALSE to
24237     * disable it.
24238     *
24239     * Disabled by default. If round mode is enabled the items list will
24240     * work like a circle list, so when the user reaches the last item,
24241     * the first one will popup.
24242     *
24243     * @see elm_diskselector_round_get()
24244     *
24245     * @ingroup Diskselector
24246     */
24247    EAPI void                   elm_diskselector_round_set(Evas_Object *obj, Eina_Bool round) EINA_ARG_NONNULL(1);
24248
24249    /**
24250     * Get a value whether round mode is enabled or not.
24251     *
24252     * @see elm_diskselector_round_set() for details.
24253     *
24254     * @param obj The diskselector object.
24255     * @return @c EINA_TRUE means round mode is enabled. @c EINA_FALSE indicates
24256     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
24257     *
24258     * @ingroup Diskselector
24259     */
24260    EAPI Eina_Bool              elm_diskselector_round_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24261
24262    /**
24263     * Get the side labels max length.
24264     *
24265     * @deprecated use elm_diskselector_side_label_length_get() instead:
24266     *
24267     * @param obj The diskselector object.
24268     * @return The max length defined for side labels, or 0 if not a valid
24269     * diskselector.
24270     *
24271     * @ingroup Diskselector
24272     */
24273    EINA_DEPRECATED EAPI int    elm_diskselector_side_label_lenght_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24274
24275    /**
24276     * Set the side labels max length.
24277     *
24278     * @deprecated use elm_diskselector_side_label_length_set() instead:
24279     *
24280     * @param obj The diskselector object.
24281     * @param len The max length defined for side labels.
24282     *
24283     * @ingroup Diskselector
24284     */
24285    EINA_DEPRECATED EAPI void   elm_diskselector_side_label_lenght_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
24286
24287    /**
24288     * Get the side labels max length.
24289     *
24290     * @see elm_diskselector_side_label_length_set() for details.
24291     *
24292     * @param obj The diskselector object.
24293     * @return The max length defined for side labels, or 0 if not a valid
24294     * diskselector.
24295     *
24296     * @ingroup Diskselector
24297     */
24298    EAPI int                    elm_diskselector_side_label_length_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24299
24300    /**
24301     * Set the side labels max length.
24302     *
24303     * @param obj The diskselector object.
24304     * @param len The max length defined for side labels.
24305     *
24306     * Length is the number of characters of items' label that will be
24307     * visible when it's set on side positions. It will just crop
24308     * the string after defined size. E.g.:
24309     *
24310     * An item with label "January" would be displayed on side position as
24311     * "Jan" if max length is set to 3, or "Janu", if this property
24312     * is set to 4.
24313     *
24314     * When it's selected, the entire label will be displayed, except for
24315     * width restrictions. In this case label will be cropped and "..."
24316     * will be concatenated.
24317     *
24318     * Default side label max length is 3.
24319     *
24320     * This property will be applyed over all items, included before or
24321     * later this function call.
24322     *
24323     * @ingroup Diskselector
24324     */
24325    EAPI void                   elm_diskselector_side_label_length_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
24326
24327    /**
24328     * Set the number of items to be displayed.
24329     *
24330     * @param obj The diskselector object.
24331     * @param num The number of items the diskselector will display.
24332     *
24333     * Default value is 3, and also it's the minimun. If @p num is less
24334     * than 3, it will be set to 3.
24335     *
24336     * Also, it can be set on theme, using data item @c display_item_num
24337     * on group "elm/diskselector/item/X", where X is style set.
24338     * E.g.:
24339     *
24340     * group { name: "elm/diskselector/item/X";
24341     * data {
24342     *     item: "display_item_num" "5";
24343     *     }
24344     *
24345     * @ingroup Diskselector
24346     */
24347    EAPI void                   elm_diskselector_display_item_num_set(Evas_Object *obj, int num) EINA_ARG_NONNULL(1);
24348
24349    /**
24350     * Get the number of items in the diskselector object.
24351     *
24352     * @param obj The diskselector object.
24353     *
24354     * @ingroup Diskselector
24355     */
24356    EAPI int                   elm_diskselector_display_item_num_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24357
24358    /**
24359     * Set bouncing behaviour when the scrolled content reaches an edge.
24360     *
24361     * Tell the internal scroller object whether it should bounce or not
24362     * when it reaches the respective edges for each axis.
24363     *
24364     * @param obj The diskselector object.
24365     * @param h_bounce Whether to bounce or not in the horizontal axis.
24366     * @param v_bounce Whether to bounce or not in the vertical axis.
24367     *
24368     * @see elm_scroller_bounce_set()
24369     *
24370     * @ingroup Diskselector
24371     */
24372    EAPI void                   elm_diskselector_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
24373
24374    /**
24375     * Get the bouncing behaviour of the internal scroller.
24376     *
24377     * Get whether the internal scroller should bounce when the edge of each
24378     * axis is reached scrolling.
24379     *
24380     * @param obj The diskselector object.
24381     * @param h_bounce Pointer where to store the bounce state of the horizontal
24382     * axis.
24383     * @param v_bounce Pointer where to store the bounce state of the vertical
24384     * axis.
24385     *
24386     * @see elm_scroller_bounce_get()
24387     * @see elm_diskselector_bounce_set()
24388     *
24389     * @ingroup Diskselector
24390     */
24391    EAPI void                   elm_diskselector_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
24392
24393    /**
24394     * Get the scrollbar policy.
24395     *
24396     * @see elm_diskselector_scroller_policy_get() for details.
24397     *
24398     * @param obj The diskselector object.
24399     * @param policy_h Pointer where to store horizontal scrollbar policy.
24400     * @param policy_v Pointer where to store vertical scrollbar policy.
24401     *
24402     * @ingroup Diskselector
24403     */
24404    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);
24405
24406    /**
24407     * Set the scrollbar policy.
24408     *
24409     * @param obj The diskselector object.
24410     * @param policy_h Horizontal scrollbar policy.
24411     * @param policy_v Vertical scrollbar policy.
24412     *
24413     * This sets the scrollbar visibility policy for the given scroller.
24414     * #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it
24415     * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
24416     * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
24417     * This applies respectively for the horizontal and vertical scrollbars.
24418     *
24419     * The both are disabled by default, i.e., are set to
24420     * #ELM_SCROLLER_POLICY_OFF.
24421     *
24422     * @ingroup Diskselector
24423     */
24424    EAPI void                   elm_diskselector_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
24425
24426    /**
24427     * Remove all diskselector's items.
24428     *
24429     * @param obj The diskselector object.
24430     *
24431     * @see elm_diskselector_item_del()
24432     * @see elm_diskselector_item_append()
24433     *
24434     * @ingroup Diskselector
24435     */
24436    EAPI void                   elm_diskselector_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
24437
24438    /**
24439     * Get a list of all the diskselector items.
24440     *
24441     * @param obj The diskselector object.
24442     * @return An @c Eina_List of diskselector items, #Elm_Diskselector_Item,
24443     * or @c NULL on failure.
24444     *
24445     * @see elm_diskselector_item_append()
24446     * @see elm_diskselector_item_del()
24447     * @see elm_diskselector_clear()
24448     *
24449     * @ingroup Diskselector
24450     */
24451    EAPI const Eina_List       *elm_diskselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24452
24453    /**
24454     * Appends a new item to the diskselector object.
24455     *
24456     * @param obj The diskselector object.
24457     * @param label The label of the diskselector item.
24458     * @param icon The icon object to use at left side of the item. An
24459     * icon can be any Evas object, but usually it is an icon created
24460     * with elm_icon_add().
24461     * @param func The function to call when the item is selected.
24462     * @param data The data to associate with the item for related callbacks.
24463     *
24464     * @return The created item or @c NULL upon failure.
24465     *
24466     * A new item will be created and appended to the diskselector, i.e., will
24467     * be set as last item. Also, if there is no selected item, it will
24468     * be selected. This will always happens for the first appended item.
24469     *
24470     * If no icon is set, label will be centered on item position, otherwise
24471     * the icon will be placed at left of the label, that will be shifted
24472     * to the right.
24473     *
24474     * Items created with this method can be deleted with
24475     * elm_diskselector_item_del().
24476     *
24477     * Associated @p data can be properly freed when item is deleted if a
24478     * callback function is set with elm_diskselector_item_del_cb_set().
24479     *
24480     * If a function is passed as argument, it will be called everytime this item
24481     * is selected, i.e., the user stops the diskselector with this
24482     * item on center position. If such function isn't needed, just passing
24483     * @c NULL as @p func is enough. The same should be done for @p data.
24484     *
24485     * Simple example (with no function callback or data associated):
24486     * @code
24487     * disk = elm_diskselector_add(win);
24488     * ic = elm_icon_add(win);
24489     * elm_icon_file_set(ic, "path/to/image", NULL);
24490     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
24491     * elm_diskselector_item_append(disk, "label", ic, NULL, NULL);
24492     * @endcode
24493     *
24494     * @see elm_diskselector_item_del()
24495     * @see elm_diskselector_item_del_cb_set()
24496     * @see elm_diskselector_clear()
24497     * @see elm_icon_add()
24498     *
24499     * @ingroup Diskselector
24500     */
24501    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);
24502
24503
24504    /**
24505     * Delete them item from the diskselector.
24506     *
24507     * @param it The item of diskselector to be deleted.
24508     *
24509     * If deleting all diskselector items is required, elm_diskselector_clear()
24510     * should be used instead of getting items list and deleting each one.
24511     *
24512     * @see elm_diskselector_clear()
24513     * @see elm_diskselector_item_append()
24514     * @see elm_diskselector_item_del_cb_set()
24515     *
24516     * @ingroup Diskselector
24517     */
24518    EAPI void                   elm_diskselector_item_del(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24519
24520    /**
24521     * Set the function called when a diskselector item is freed.
24522     *
24523     * @param it The item to set the callback on
24524     * @param func The function called
24525     *
24526     * If there is a @p func, then it will be called prior item's memory release.
24527     * That will be called with the following arguments:
24528     * @li item's data;
24529     * @li item's Evas object;
24530     * @li item itself;
24531     *
24532     * This way, a data associated to a diskselector item could be properly
24533     * freed.
24534     *
24535     * @ingroup Diskselector
24536     */
24537    EAPI void                   elm_diskselector_item_del_cb_set(Elm_Diskselector_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
24538
24539    /**
24540     * Get the data associated to the item.
24541     *
24542     * @param it The diskselector item
24543     * @return The data associated to @p it
24544     *
24545     * The return value is a pointer to data associated to @p item when it was
24546     * created, with function elm_diskselector_item_append(). If no data
24547     * was passed as argument, it will return @c NULL.
24548     *
24549     * @see elm_diskselector_item_append()
24550     *
24551     * @ingroup Diskselector
24552     */
24553    EAPI void                  *elm_diskselector_item_data_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24554
24555    /**
24556     * Set the icon associated to the item.
24557     *
24558     * @param it The diskselector item
24559     * @param icon The icon object to associate with @p it
24560     *
24561     * The icon object to use at left side of the item. An
24562     * icon can be any Evas object, but usually it is an icon created
24563     * with elm_icon_add().
24564     *
24565     * Once the icon object is set, a previously set one will be deleted.
24566     * @warning Setting the same icon for two items will cause the icon to
24567     * dissapear from the first item.
24568     *
24569     * If an icon was passed as argument on item creation, with function
24570     * elm_diskselector_item_append(), it will be already
24571     * associated to the item.
24572     *
24573     * @see elm_diskselector_item_append()
24574     * @see elm_diskselector_item_icon_get()
24575     *
24576     * @ingroup Diskselector
24577     */
24578    EAPI void                   elm_diskselector_item_icon_set(Elm_Diskselector_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
24579
24580    /**
24581     * Get the icon associated to the item.
24582     *
24583     * @param it The diskselector item
24584     * @return The icon associated to @p it
24585     *
24586     * The return value is a pointer to the icon associated to @p item when it was
24587     * created, with function elm_diskselector_item_append(), or later
24588     * with function elm_diskselector_item_icon_set. If no icon
24589     * was passed as argument, it will return @c NULL.
24590     *
24591     * @see elm_diskselector_item_append()
24592     * @see elm_diskselector_item_icon_set()
24593     *
24594     * @ingroup Diskselector
24595     */
24596    EAPI Evas_Object           *elm_diskselector_item_icon_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24597
24598    /**
24599     * Set the label of item.
24600     *
24601     * @param it The item of diskselector.
24602     * @param label The label of item.
24603     *
24604     * The label to be displayed by the item.
24605     *
24606     * If no icon is set, label will be centered on item position, otherwise
24607     * the icon will be placed at left of the label, that will be shifted
24608     * to the right.
24609     *
24610     * An item with label "January" would be displayed on side position as
24611     * "Jan" if max length is set to 3 with function
24612     * elm_diskselector_side_label_lenght_set(), or "Janu", if this property
24613     * is set to 4.
24614     *
24615     * When this @p item is selected, the entire label will be displayed,
24616     * except for width restrictions.
24617     * In this case label will be cropped and "..." will be concatenated,
24618     * but only for display purposes. It will keep the entire string, so
24619     * if diskselector is resized the remaining characters will be displayed.
24620     *
24621     * If a label was passed as argument on item creation, with function
24622     * elm_diskselector_item_append(), it will be already
24623     * displayed by the item.
24624     *
24625     * @see elm_diskselector_side_label_lenght_set()
24626     * @see elm_diskselector_item_label_get()
24627     * @see elm_diskselector_item_append()
24628     *
24629     * @ingroup Diskselector
24630     */
24631    EAPI void                   elm_diskselector_item_label_set(Elm_Diskselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
24632
24633    /**
24634     * Get the label of item.
24635     *
24636     * @param it The item of diskselector.
24637     * @return The label of item.
24638     *
24639     * The return value is a pointer to the label associated to @p item when it was
24640     * created, with function elm_diskselector_item_append(), or later
24641     * with function elm_diskselector_item_label_set. If no label
24642     * was passed as argument, it will return @c NULL.
24643     *
24644     * @see elm_diskselector_item_label_set() for more details.
24645     * @see elm_diskselector_item_append()
24646     *
24647     * @ingroup Diskselector
24648     */
24649    EAPI const char            *elm_diskselector_item_label_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24650
24651    /**
24652     * Get the selected item.
24653     *
24654     * @param obj The diskselector object.
24655     * @return The selected diskselector item.
24656     *
24657     * The selected item can be unselected with function
24658     * elm_diskselector_item_selected_set(), and the first item of
24659     * diskselector will be selected.
24660     *
24661     * The selected item always will be centered on diskselector, with
24662     * full label displayed, i.e., max lenght set to side labels won't
24663     * apply on the selected item. More details on
24664     * elm_diskselector_side_label_length_set().
24665     *
24666     * @ingroup Diskselector
24667     */
24668    EAPI Elm_Diskselector_Item *elm_diskselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24669
24670    /**
24671     * Set the selected state of an item.
24672     *
24673     * @param it The diskselector item
24674     * @param selected The selected state
24675     *
24676     * This sets the selected state of the given item @p it.
24677     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
24678     *
24679     * If a new item is selected the previosly selected will be unselected.
24680     * Previoulsy selected item can be get with function
24681     * elm_diskselector_selected_item_get().
24682     *
24683     * If the item @p it is unselected, the first item of diskselector will
24684     * be selected.
24685     *
24686     * Selected items will be visible on center position of diskselector.
24687     * So if it was on another position before selected, or was invisible,
24688     * diskselector will animate items until the selected item reaches center
24689     * position.
24690     *
24691     * @see elm_diskselector_item_selected_get()
24692     * @see elm_diskselector_selected_item_get()
24693     *
24694     * @ingroup Diskselector
24695     */
24696    EAPI void                   elm_diskselector_item_selected_set(Elm_Diskselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
24697
24698    /*
24699     * Get whether the @p item is selected or not.
24700     *
24701     * @param it The diskselector item.
24702     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
24703     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
24704     *
24705     * @see elm_diskselector_selected_item_set() for details.
24706     * @see elm_diskselector_item_selected_get()
24707     *
24708     * @ingroup Diskselector
24709     */
24710    EAPI Eina_Bool              elm_diskselector_item_selected_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24711
24712    /**
24713     * Get the first item of the diskselector.
24714     *
24715     * @param obj The diskselector object.
24716     * @return The first item, or @c NULL if none.
24717     *
24718     * The list of items follows append order. So it will return the first
24719     * item appended to the widget that wasn't deleted.
24720     *
24721     * @see elm_diskselector_item_append()
24722     * @see elm_diskselector_items_get()
24723     *
24724     * @ingroup Diskselector
24725     */
24726    EAPI Elm_Diskselector_Item *elm_diskselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24727
24728    /**
24729     * Get the last item of the diskselector.
24730     *
24731     * @param obj The diskselector object.
24732     * @return The last item, or @c NULL if none.
24733     *
24734     * The list of items follows append order. So it will return last first
24735     * item appended to the widget that wasn't deleted.
24736     *
24737     * @see elm_diskselector_item_append()
24738     * @see elm_diskselector_items_get()
24739     *
24740     * @ingroup Diskselector
24741     */
24742    EAPI Elm_Diskselector_Item *elm_diskselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24743
24744    /**
24745     * Get the item before @p item in diskselector.
24746     *
24747     * @param it The diskselector item.
24748     * @return The item before @p item, or @c NULL if none or on failure.
24749     *
24750     * The list of items follows append order. So it will return item appended
24751     * just before @p item and that wasn't deleted.
24752     *
24753     * If it is the first item, @c NULL will be returned.
24754     * First item can be get by elm_diskselector_first_item_get().
24755     *
24756     * @see elm_diskselector_item_append()
24757     * @see elm_diskselector_items_get()
24758     *
24759     * @ingroup Diskselector
24760     */
24761    EAPI Elm_Diskselector_Item *elm_diskselector_item_prev_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24762
24763    /**
24764     * Get the item after @p item in diskselector.
24765     *
24766     * @param it The diskselector item.
24767     * @return The item after @p item, or @c NULL if none or on failure.
24768     *
24769     * The list of items follows append order. So it will return item appended
24770     * just after @p item and that wasn't deleted.
24771     *
24772     * If it is the last item, @c NULL will be returned.
24773     * Last item can be get by elm_diskselector_last_item_get().
24774     *
24775     * @see elm_diskselector_item_append()
24776     * @see elm_diskselector_items_get()
24777     *
24778     * @ingroup Diskselector
24779     */
24780    EAPI Elm_Diskselector_Item *elm_diskselector_item_next_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24781
24782    /**
24783     * Set the text to be shown in the diskselector item.
24784     *
24785     * @param item Target item
24786     * @param text The text to set in the content
24787     *
24788     * Setup the text as tooltip to object. The item can have only one tooltip,
24789     * so any previous tooltip data is removed.
24790     *
24791     * @see elm_object_tooltip_text_set() for more details.
24792     *
24793     * @ingroup Diskselector
24794     */
24795    EAPI void                   elm_diskselector_item_tooltip_text_set(Elm_Diskselector_Item *item, const char *text) EINA_ARG_NONNULL(1);
24796
24797    /**
24798     * Set the content to be shown in the tooltip item.
24799     *
24800     * Setup the tooltip to item. The item can have only one tooltip,
24801     * so any previous tooltip data is removed. @p func(with @p data) will
24802     * be called every time that need show the tooltip and it should
24803     * return a valid Evas_Object. This object is then managed fully by
24804     * tooltip system and is deleted when the tooltip is gone.
24805     *
24806     * @param item the diskselector item being attached a tooltip.
24807     * @param func the function used to create the tooltip contents.
24808     * @param data what to provide to @a func as callback data/context.
24809     * @param del_cb called when data is not needed anymore, either when
24810     *        another callback replaces @p func, the tooltip is unset with
24811     *        elm_diskselector_item_tooltip_unset() or the owner @a item
24812     *        dies. This callback receives as the first parameter the
24813     *        given @a data, and @c event_info is the item.
24814     *
24815     * @see elm_object_tooltip_content_cb_set() for more details.
24816     *
24817     * @ingroup Diskselector
24818     */
24819    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);
24820
24821    /**
24822     * Unset tooltip from item.
24823     *
24824     * @param item diskselector item to remove previously set tooltip.
24825     *
24826     * Remove tooltip from item. The callback provided as del_cb to
24827     * elm_diskselector_item_tooltip_content_cb_set() will be called to notify
24828     * it is not used anymore.
24829     *
24830     * @see elm_object_tooltip_unset() for more details.
24831     * @see elm_diskselector_item_tooltip_content_cb_set()
24832     *
24833     * @ingroup Diskselector
24834     */
24835    EAPI void                   elm_diskselector_item_tooltip_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24836
24837
24838    /**
24839     * Sets a different style for this item tooltip.
24840     *
24841     * @note before you set a style you should define a tooltip with
24842     *       elm_diskselector_item_tooltip_content_cb_set() or
24843     *       elm_diskselector_item_tooltip_text_set()
24844     *
24845     * @param item diskselector item with tooltip already set.
24846     * @param style the theme style to use (default, transparent, ...)
24847     *
24848     * @see elm_object_tooltip_style_set() for more details.
24849     *
24850     * @ingroup Diskselector
24851     */
24852    EAPI void                   elm_diskselector_item_tooltip_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
24853
24854    /**
24855     * Get the style for this item tooltip.
24856     *
24857     * @param item diskselector item with tooltip already set.
24858     * @return style the theme style in use, defaults to "default". If the
24859     *         object does not have a tooltip set, then NULL is returned.
24860     *
24861     * @see elm_object_tooltip_style_get() for more details.
24862     * @see elm_diskselector_item_tooltip_style_set()
24863     *
24864     * @ingroup Diskselector
24865     */
24866    EAPI const char            *elm_diskselector_item_tooltip_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24867
24868    /**
24869     * Set the cursor to be shown when mouse is over the diskselector item
24870     *
24871     * @param item Target item
24872     * @param cursor the cursor name to be used.
24873     *
24874     * @see elm_object_cursor_set() for more details.
24875     *
24876     * @ingroup Diskselector
24877     */
24878    EAPI void                   elm_diskselector_item_cursor_set(Elm_Diskselector_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
24879
24880    /**
24881     * Get the cursor to be shown when mouse is over the diskselector item
24882     *
24883     * @param item diskselector item with cursor already set.
24884     * @return the cursor name.
24885     *
24886     * @see elm_object_cursor_get() for more details.
24887     * @see elm_diskselector_cursor_set()
24888     *
24889     * @ingroup Diskselector
24890     */
24891    EAPI const char            *elm_diskselector_item_cursor_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24892
24893
24894    /**
24895     * Unset the cursor to be shown when mouse is over the diskselector item
24896     *
24897     * @param item Target item
24898     *
24899     * @see elm_object_cursor_unset() for more details.
24900     * @see elm_diskselector_cursor_set()
24901     *
24902     * @ingroup Diskselector
24903     */
24904    EAPI void                   elm_diskselector_item_cursor_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24905
24906    /**
24907     * Sets a different style for this item cursor.
24908     *
24909     * @note before you set a style you should define a cursor with
24910     *       elm_diskselector_item_cursor_set()
24911     *
24912     * @param item diskselector item with cursor already set.
24913     * @param style the theme style to use (default, transparent, ...)
24914     *
24915     * @see elm_object_cursor_style_set() for more details.
24916     *
24917     * @ingroup Diskselector
24918     */
24919    EAPI void                   elm_diskselector_item_cursor_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
24920
24921
24922    /**
24923     * Get the style for this item cursor.
24924     *
24925     * @param item diskselector item with cursor already set.
24926     * @return style the theme style in use, defaults to "default". If the
24927     *         object does not have a cursor set, then @c NULL is returned.
24928     *
24929     * @see elm_object_cursor_style_get() for more details.
24930     * @see elm_diskselector_item_cursor_style_set()
24931     *
24932     * @ingroup Diskselector
24933     */
24934    EAPI const char            *elm_diskselector_item_cursor_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24935
24936
24937    /**
24938     * Set if the cursor set should be searched on the theme or should use
24939     * the provided by the engine, only.
24940     *
24941     * @note before you set if should look on theme you should define a cursor
24942     * with elm_diskselector_item_cursor_set().
24943     * By default it will only look for cursors provided by the engine.
24944     *
24945     * @param item widget item with cursor already set.
24946     * @param engine_only boolean to define if cursors set with
24947     * elm_diskselector_item_cursor_set() should be searched only
24948     * between cursors provided by the engine or searched on widget's
24949     * theme as well.
24950     *
24951     * @see elm_object_cursor_engine_only_set() for more details.
24952     *
24953     * @ingroup Diskselector
24954     */
24955    EAPI void                   elm_diskselector_item_cursor_engine_only_set(Elm_Diskselector_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
24956
24957    /**
24958     * Get the cursor engine only usage for this item cursor.
24959     *
24960     * @param item widget item with cursor already set.
24961     * @return engine_only boolean to define it cursors should be looked only
24962     * between the provided by the engine or searched on widget's theme as well.
24963     * If the item does not have a cursor set, then @c EINA_FALSE is returned.
24964     *
24965     * @see elm_object_cursor_engine_only_get() for more details.
24966     * @see elm_diskselector_item_cursor_engine_only_set()
24967     *
24968     * @ingroup Diskselector
24969     */
24970    EAPI Eina_Bool              elm_diskselector_item_cursor_engine_only_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24971
24972    /**
24973     * @}
24974     */
24975
24976    /**
24977     * @defgroup Colorselector Colorselector
24978     *
24979     * @{
24980     *
24981     * @image html img/widget/colorselector/preview-00.png
24982     * @image latex img/widget/colorselector/preview-00.eps
24983     *
24984     * @brief Widget for user to select a color.
24985     *
24986     * Signals that you can add callbacks for are:
24987     * "changed" - When the color value changes(event_info is NULL).
24988     *
24989     * See @ref tutorial_colorselector.
24990     */
24991    /**
24992     * @brief Add a new colorselector to the parent
24993     *
24994     * @param parent The parent object
24995     * @return The new object or NULL if it cannot be created
24996     *
24997     * @ingroup Colorselector
24998     */
24999    EAPI Evas_Object *elm_colorselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25000    /**
25001     * Set a color for the colorselector
25002     *
25003     * @param obj   Colorselector object
25004     * @param r     r-value of color
25005     * @param g     g-value of color
25006     * @param b     b-value of color
25007     * @param a     a-value of color
25008     *
25009     * @ingroup Colorselector
25010     */
25011    EAPI void         elm_colorselector_color_set(Evas_Object *obj, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
25012    /**
25013     * Get a color from the colorselector
25014     *
25015     * @param obj   Colorselector object
25016     * @param r     integer pointer for r-value of color
25017     * @param g     integer pointer for g-value of color
25018     * @param b     integer pointer for b-value of color
25019     * @param a     integer pointer for a-value of color
25020     *
25021     * @ingroup Colorselector
25022     */
25023    EAPI void         elm_colorselector_color_get(const Evas_Object *obj, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
25024    /**
25025     * @}
25026     */
25027
25028    /**
25029     * @defgroup Ctxpopup Ctxpopup
25030     *
25031     * @image html img/widget/ctxpopup/preview-00.png
25032     * @image latex img/widget/ctxpopup/preview-00.eps
25033     *
25034     * @brief Context popup widet.
25035     *
25036     * A ctxpopup is a widget that, when shown, pops up a list of items.
25037     * It automatically chooses an area inside its parent object's view
25038     * (set via elm_ctxpopup_add() and elm_ctxpopup_hover_parent_set()) to
25039     * optimally fit into it. In the default theme, it will also point an
25040     * arrow to it's top left position at the time one shows it. Ctxpopup
25041     * items have a label and/or an icon. It is intended for a small
25042     * number of items (hence the use of list, not genlist).
25043     *
25044     * @note Ctxpopup is a especialization of @ref Hover.
25045     *
25046     * Signals that you can add callbacks for are:
25047     * "dismissed" - the ctxpopup was dismissed
25048     *
25049     * @ref tutorial_ctxpopup shows the usage of a good deal of the API.
25050     * @{
25051     */
25052    typedef enum _Elm_Ctxpopup_Direction
25053      {
25054         ELM_CTXPOPUP_DIRECTION_DOWN, /**< ctxpopup show appear below clicked
25055                                           area */
25056         ELM_CTXPOPUP_DIRECTION_RIGHT, /**< ctxpopup show appear to the right of
25057                                            the clicked area */
25058         ELM_CTXPOPUP_DIRECTION_LEFT, /**< ctxpopup show appear to the left of
25059                                           the clicked area */
25060         ELM_CTXPOPUP_DIRECTION_UP, /**< ctxpopup show appear above the clicked
25061                                         area */
25062         ELM_CTXPOPUP_DIRECTION_UNKNOWN, /**< ctxpopup does not determine it's direction yet*/
25063      } Elm_Ctxpopup_Direction;
25064
25065    /**
25066     * @brief Add a new Ctxpopup object to the parent.
25067     *
25068     * @param parent Parent object
25069     * @return New object or @c NULL, if it cannot be created
25070     */
25071    EAPI Evas_Object  *elm_ctxpopup_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25072    /**
25073     * @brief Set the Ctxpopup's parent
25074     *
25075     * @param obj The ctxpopup object
25076     * @param area The parent to use
25077     *
25078     * Set the parent object.
25079     *
25080     * @note elm_ctxpopup_add() will automatically call this function
25081     * with its @c parent argument.
25082     *
25083     * @see elm_ctxpopup_add()
25084     * @see elm_hover_parent_set()
25085     */
25086    EAPI void          elm_ctxpopup_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1, 2);
25087    /**
25088     * @brief Get the Ctxpopup's parent
25089     *
25090     * @param obj The ctxpopup object
25091     *
25092     * @see elm_ctxpopup_hover_parent_set() for more information
25093     */
25094    EAPI Evas_Object  *elm_ctxpopup_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25095    /**
25096     * @brief Clear all items in the given ctxpopup object.
25097     *
25098     * @param obj Ctxpopup object
25099     */
25100    EAPI void          elm_ctxpopup_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
25101    /**
25102     * @brief Change the ctxpopup's orientation to horizontal or vertical.
25103     *
25104     * @param obj Ctxpopup object
25105     * @param horizontal @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical
25106     */
25107    EAPI void          elm_ctxpopup_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
25108    /**
25109     * @brief Get the value of current ctxpopup object's orientation.
25110     *
25111     * @param obj Ctxpopup object
25112     * @return @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical mode (or errors)
25113     *
25114     * @see elm_ctxpopup_horizontal_set()
25115     */
25116    EAPI Eina_Bool     elm_ctxpopup_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25117    /**
25118     * @brief Add a new item to a ctxpopup object.
25119     *
25120     * @param obj Ctxpopup object
25121     * @param icon Icon to be set on new item
25122     * @param label The Label of the new item
25123     * @param func Convenience function called when item selected
25124     * @param data Data passed to @p func
25125     * @return A handle to the item added or @c NULL, on errors
25126     *
25127     * @warning Ctxpopup can't hold both an item list and a content at the same
25128     * time. When an item is added, any previous content will be removed.
25129     *
25130     * @see elm_ctxpopup_content_set()
25131     */
25132    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);
25133    /**
25134     * @brief Delete the given item in a ctxpopup object.
25135     *
25136     * @param it Ctxpopup item to be deleted
25137     *
25138     * @see elm_ctxpopup_item_append()
25139     */
25140    EAPI void          elm_ctxpopup_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25141    /**
25142     * @brief Set the ctxpopup item's state as disabled or enabled.
25143     *
25144     * @param it Ctxpopup item to be enabled/disabled
25145     * @param disabled @c EINA_TRUE to disable it, @c EINA_FALSE to enable it
25146     *
25147     * When disabled the item is greyed out to indicate it's state.
25148     */
25149    EAPI void          elm_ctxpopup_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
25150    /**
25151     * @brief Get the ctxpopup item's disabled/enabled state.
25152     *
25153     * @param it Ctxpopup item to be enabled/disabled
25154     * @return disabled @c EINA_TRUE, if disabled, @c EINA_FALSE otherwise
25155     *
25156     * @see elm_ctxpopup_item_disabled_set()
25157     */
25158    EAPI Eina_Bool     elm_ctxpopup_item_disabled_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25159    /**
25160     * @brief Get the icon object for the given ctxpopup item.
25161     *
25162     * @param it Ctxpopup item
25163     * @return icon object or @c NULL, if the item does not have icon or an error
25164     * occurred
25165     *
25166     * @see elm_ctxpopup_item_append()
25167     * @see elm_ctxpopup_item_icon_set()
25168     */
25169    EAPI Evas_Object  *elm_ctxpopup_item_icon_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25170    /**
25171     * @brief Sets the side icon associated with the ctxpopup item
25172     *
25173     * @param it Ctxpopup item
25174     * @param icon Icon object to be set
25175     *
25176     * Once the icon object is set, a previously set one will be deleted.
25177     * @warning Setting the same icon for two items will cause the icon to
25178     * dissapear from the first item.
25179     *
25180     * @see elm_ctxpopup_item_append()
25181     */
25182    EAPI void          elm_ctxpopup_item_icon_set(Elm_Object_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
25183    /**
25184     * @brief Get the label for the given ctxpopup item.
25185     *
25186     * @param it Ctxpopup item
25187     * @return label string or @c NULL, if the item does not have label or an
25188     * error occured
25189     *
25190     * @see elm_ctxpopup_item_append()
25191     * @see elm_ctxpopup_item_label_set()
25192     */
25193    EAPI const char   *elm_ctxpopup_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25194    /**
25195     * @brief (Re)set the label on the given ctxpopup item.
25196     *
25197     * @param it Ctxpopup item
25198     * @param label String to set as label
25199     */
25200    EAPI void          elm_ctxpopup_item_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
25201    /**
25202     * @brief Set an elm widget as the content of the ctxpopup.
25203     *
25204     * @param obj Ctxpopup object
25205     * @param content Content to be swallowed
25206     *
25207     * If the content object is already set, a previous one will bedeleted. If
25208     * you want to keep that old content object, use the
25209     * elm_ctxpopup_content_unset() function.
25210     *
25211     * @deprecated use elm_object_content_set()
25212     *
25213     * @warning Ctxpopup can't hold both a item list and a content at the same
25214     * time. When a content is set, any previous items will be removed.
25215     */
25216    EINA_DEPRECATED EAPI void          elm_ctxpopup_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1, 2);
25217    /**
25218     * @brief Unset the ctxpopup content
25219     *
25220     * @param obj Ctxpopup object
25221     * @return The content that was being used
25222     *
25223     * Unparent and return the content object which was set for this widget.
25224     *
25225     * @deprecated use elm_object_content_unset()
25226     *
25227     * @see elm_ctxpopup_content_set()
25228     */
25229    EINA_DEPRECATED EAPI Evas_Object  *elm_ctxpopup_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
25230    /**
25231     * @brief Set the direction priority of a ctxpopup.
25232     *
25233     * @param obj Ctxpopup object
25234     * @param first 1st priority of direction
25235     * @param second 2nd priority of direction
25236     * @param third 3th priority of direction
25237     * @param fourth 4th priority of direction
25238     *
25239     * This functions gives a chance to user to set the priority of ctxpopup
25240     * showing direction. This doesn't guarantee the ctxpopup will appear in the
25241     * requested direction.
25242     *
25243     * @see Elm_Ctxpopup_Direction
25244     */
25245    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);
25246    /**
25247     * @brief Get the direction priority of a ctxpopup.
25248     *
25249     * @param obj Ctxpopup object
25250     * @param first 1st priority of direction to be returned
25251     * @param second 2nd priority of direction to be returned
25252     * @param third 3th priority of direction to be returned
25253     * @param fourth 4th priority of direction to be returned
25254     *
25255     * @see elm_ctxpopup_direction_priority_set() for more information.
25256     */
25257    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);
25258
25259    /**
25260     * @brief Get the current direction of a ctxpopup.
25261     *
25262     * @param obj Ctxpopup object
25263     * @return current direction of a ctxpopup
25264     *
25265     * @warning Once the ctxpopup showed up, the direction would be determined
25266     */
25267    EAPI Elm_Ctxpopup_Direction elm_ctxpopup_direction_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25268
25269    /**
25270     * @}
25271     */
25272
25273    /* transit */
25274    /**
25275     *
25276     * @defgroup Transit Transit
25277     * @ingroup Elementary
25278     *
25279     * Transit is designed to apply various animated transition effects to @c
25280     * Evas_Object, such like translation, rotation, etc. For using these
25281     * effects, create an @ref Elm_Transit and add the desired transition effects.
25282     *
25283     * Once the effects are added into transit, they will be automatically
25284     * managed (their callback will be called until the duration is ended, and
25285     * they will be deleted on completion).
25286     *
25287     * Example:
25288     * @code
25289     * Elm_Transit *trans = elm_transit_add();
25290     * elm_transit_object_add(trans, obj);
25291     * elm_transit_effect_translation_add(trans, 0, 0, 280, 280
25292     * elm_transit_duration_set(transit, 1);
25293     * elm_transit_auto_reverse_set(transit, EINA_TRUE);
25294     * elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
25295     * elm_transit_repeat_times_set(transit, 3);
25296     * @endcode
25297     *
25298     * Some transition effects are used to change the properties of objects. They
25299     * are:
25300     * @li @ref elm_transit_effect_translation_add
25301     * @li @ref elm_transit_effect_color_add
25302     * @li @ref elm_transit_effect_rotation_add
25303     * @li @ref elm_transit_effect_wipe_add
25304     * @li @ref elm_transit_effect_zoom_add
25305     * @li @ref elm_transit_effect_resizing_add
25306     *
25307     * Other transition effects are used to make one object disappear and another
25308     * object appear on its old place. These effects are:
25309     *
25310     * @li @ref elm_transit_effect_flip_add
25311     * @li @ref elm_transit_effect_resizable_flip_add
25312     * @li @ref elm_transit_effect_fade_add
25313     * @li @ref elm_transit_effect_blend_add
25314     *
25315     * It's also possible to make a transition chain with @ref
25316     * elm_transit_chain_transit_add.
25317     *
25318     * @warning We strongly recommend to use elm_transit just when edje can not do
25319     * the trick. Edje has more advantage than Elm_Transit, it has more flexibility and
25320     * animations can be manipulated inside the theme.
25321     *
25322     * List of examples:
25323     * @li @ref transit_example_01_explained
25324     * @li @ref transit_example_02_explained
25325     * @li @ref transit_example_03_c
25326     * @li @ref transit_example_04_c
25327     *
25328     * @{
25329     */
25330
25331    /**
25332     * @enum Elm_Transit_Tween_Mode
25333     *
25334     * The type of acceleration used in the transition.
25335     */
25336    typedef enum
25337      {
25338         ELM_TRANSIT_TWEEN_MODE_LINEAR, /**< Constant speed */
25339         ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL, /**< Starts slow, increase speed
25340                                              over time, then decrease again
25341                                              and stop slowly */
25342         ELM_TRANSIT_TWEEN_MODE_DECELERATE, /**< Starts fast and decrease
25343                                              speed over time */
25344         ELM_TRANSIT_TWEEN_MODE_ACCELERATE /**< Starts slow and increase speed
25345                                             over time */
25346      } Elm_Transit_Tween_Mode;
25347
25348    /**
25349     * @enum Elm_Transit_Effect_Flip_Axis
25350     *
25351     * The axis where flip effect should be applied.
25352     */
25353    typedef enum
25354      {
25355         ELM_TRANSIT_EFFECT_FLIP_AXIS_X, /**< Flip on X axis */
25356         ELM_TRANSIT_EFFECT_FLIP_AXIS_Y /**< Flip on Y axis */
25357      } Elm_Transit_Effect_Flip_Axis;
25358    /**
25359     * @enum Elm_Transit_Effect_Wipe_Dir
25360     *
25361     * The direction where the wipe effect should occur.
25362     */
25363    typedef enum
25364      {
25365         ELM_TRANSIT_EFFECT_WIPE_DIR_LEFT, /**< Wipe to the left */
25366         ELM_TRANSIT_EFFECT_WIPE_DIR_RIGHT, /**< Wipe to the right */
25367         ELM_TRANSIT_EFFECT_WIPE_DIR_UP, /**< Wipe up */
25368         ELM_TRANSIT_EFFECT_WIPE_DIR_DOWN /**< Wipe down */
25369      } Elm_Transit_Effect_Wipe_Dir;
25370    /** @enum Elm_Transit_Effect_Wipe_Type
25371     *
25372     * Whether the wipe effect should show or hide the object.
25373     */
25374    typedef enum
25375      {
25376         ELM_TRANSIT_EFFECT_WIPE_TYPE_HIDE, /**< Hide the object during the
25377                                              animation */
25378         ELM_TRANSIT_EFFECT_WIPE_TYPE_SHOW /**< Show the object during the
25379                                             animation */
25380      } Elm_Transit_Effect_Wipe_Type;
25381
25382    /**
25383     * @typedef Elm_Transit
25384     *
25385     * The Transit created with elm_transit_add(). This type has the information
25386     * about the objects which the transition will be applied, and the
25387     * transition effects that will be used. It also contains info about
25388     * duration, number of repetitions, auto-reverse, etc.
25389     */
25390    typedef struct _Elm_Transit Elm_Transit;
25391    typedef void Elm_Transit_Effect;
25392    /**
25393     * @typedef Elm_Transit_Effect_Transition_Cb
25394     *
25395     * Transition callback called for this effect on each transition iteration.
25396     */
25397    typedef void (*Elm_Transit_Effect_Transition_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit, double progress);
25398    /**
25399     * Elm_Transit_Effect_End_Cb
25400     *
25401     * Transition callback called for this effect when the transition is over.
25402     */
25403    typedef void (*Elm_Transit_Effect_End_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit);
25404
25405    /**
25406     * Elm_Transit_Del_Cb
25407     *
25408     * A callback called when the transit is deleted.
25409     */
25410    typedef void (*Elm_Transit_Del_Cb) (void *data, Elm_Transit *transit);
25411
25412    /**
25413     * Add new transit.
25414     *
25415     * @note Is not necessary to delete the transit object, it will be deleted at
25416     * the end of its operation.
25417     * @note The transit will start playing when the program enter in the main loop, is not
25418     * necessary to give a start to the transit.
25419     *
25420     * @return The transit object.
25421     *
25422     * @ingroup Transit
25423     */
25424    EAPI Elm_Transit                *elm_transit_add(void);
25425
25426    /**
25427     * Stops the animation and delete the @p transit object.
25428     *
25429     * Call this function if you wants to stop the animation before the duration
25430     * time. Make sure the @p transit object is still alive with
25431     * elm_transit_del_cb_set() function.
25432     * All added effects will be deleted, calling its repective data_free_cb
25433     * functions. The function setted by elm_transit_del_cb_set() will be called.
25434     *
25435     * @see elm_transit_del_cb_set()
25436     *
25437     * @param transit The transit object to be deleted.
25438     *
25439     * @ingroup Transit
25440     * @warning Just call this function if you are sure the transit is alive.
25441     */
25442    EAPI void                        elm_transit_del(Elm_Transit *transit) EINA_ARG_NONNULL(1);
25443
25444    /**
25445     * Add a new effect to the transit.
25446     *
25447     * @note The cb function and the data are the key to the effect. If you try to
25448     * add an already added effect, nothing is done.
25449     * @note After the first addition of an effect in @p transit, if its
25450     * effect list become empty again, the @p transit will be killed by
25451     * elm_transit_del(transit) function.
25452     *
25453     * Exemple:
25454     * @code
25455     * Elm_Transit *transit = elm_transit_add();
25456     * elm_transit_effect_add(transit,
25457     *                        elm_transit_effect_blend_op,
25458     *                        elm_transit_effect_blend_context_new(),
25459     *                        elm_transit_effect_blend_context_free);
25460     * @endcode
25461     *
25462     * @param transit The transit object.
25463     * @param transition_cb The operation function. It is called when the
25464     * animation begins, it is the function that actually performs the animation.
25465     * It is called with the @p data, @p transit and the time progression of the
25466     * animation (a double value between 0.0 and 1.0).
25467     * @param effect The context data of the effect.
25468     * @param end_cb The function to free the context data, it will be called
25469     * at the end of the effect, it must finalize the animation and free the
25470     * @p data.
25471     *
25472     * @ingroup Transit
25473     * @warning The transit free the context data at the and of the transition with
25474     * the data_free_cb function, do not use the context data in another transit.
25475     */
25476    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);
25477
25478    /**
25479     * Delete an added effect.
25480     *
25481     * This function will remove the effect from the @p transit, calling the
25482     * data_free_cb to free the @p data.
25483     *
25484     * @see elm_transit_effect_add()
25485     *
25486     * @note If the effect is not found, nothing is done.
25487     * @note If the effect list become empty, this function will call
25488     * elm_transit_del(transit), that is, it will kill the @p transit.
25489     *
25490     * @param transit The transit object.
25491     * @param transition_cb The operation function.
25492     * @param effect The context data of the effect.
25493     *
25494     * @ingroup Transit
25495     */
25496    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);
25497
25498    /**
25499     * Add new object to apply the effects.
25500     *
25501     * @note After the first addition of an object in @p transit, if its
25502     * object list become empty again, the @p transit will be killed by
25503     * elm_transit_del(transit) function.
25504     * @note If the @p obj belongs to another transit, the @p obj will be
25505     * removed from it and it will only belong to the @p transit. If the old
25506     * transit stays without objects, it will die.
25507     * @note When you add an object into the @p transit, its state from
25508     * evas_object_pass_events_get(obj) is saved, and it is applied when the
25509     * transit ends, if you change this state whith evas_object_pass_events_set()
25510     * after add the object, this state will change again when @p transit stops to
25511     * run.
25512     *
25513     * @param transit The transit object.
25514     * @param obj Object to be animated.
25515     *
25516     * @ingroup Transit
25517     * @warning It is not allowed to add a new object after transit begins to go.
25518     */
25519    EAPI void                        elm_transit_object_add(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
25520
25521    /**
25522     * Removes an added object from the transit.
25523     *
25524     * @note If the @p obj is not in the @p transit, nothing is done.
25525     * @note If the list become empty, this function will call
25526     * elm_transit_del(transit), that is, it will kill the @p transit.
25527     *
25528     * @param transit The transit object.
25529     * @param obj Object to be removed from @p transit.
25530     *
25531     * @ingroup Transit
25532     * @warning It is not allowed to remove objects after transit begins to go.
25533     */
25534    EAPI void                        elm_transit_object_remove(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
25535
25536    /**
25537     * Get the objects of the transit.
25538     *
25539     * @param transit The transit object.
25540     * @return a Eina_List with the objects from the transit.
25541     *
25542     * @ingroup Transit
25543     */
25544    EAPI const Eina_List            *elm_transit_objects_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25545
25546    /**
25547     * Enable/disable keeping up the objects states.
25548     * If it is not kept, the objects states will be reset when transition ends.
25549     *
25550     * @note @p transit can not be NULL.
25551     * @note One state includes geometry, color, map data.
25552     *
25553     * @param transit The transit object.
25554     * @param state_keep Keeping or Non Keeping.
25555     *
25556     * @ingroup Transit
25557     */
25558    EAPI void                        elm_transit_objects_final_state_keep_set(Elm_Transit *transit, Eina_Bool state_keep) EINA_ARG_NONNULL(1);
25559
25560    /**
25561     * Get a value whether the objects states will be reset or not.
25562     *
25563     * @note @p transit can not be NULL
25564     *
25565     * @see elm_transit_objects_final_state_keep_set()
25566     *
25567     * @param transit The transit object.
25568     * @return EINA_TRUE means the states of the objects will be reset.
25569     * If @p transit is NULL, EINA_FALSE is returned
25570     *
25571     * @ingroup Transit
25572     */
25573    EAPI Eina_Bool                   elm_transit_objects_final_state_keep_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25574
25575    /**
25576     * Set the event enabled when transit is operating.
25577     *
25578     * If @p enabled is EINA_TRUE, the objects of the transit will receives
25579     * events from mouse and keyboard during the animation.
25580     * @note When you add an object with elm_transit_object_add(), its state from
25581     * evas_object_pass_events_get(obj) is saved, and it is applied when the
25582     * transit ends, if you change this state with evas_object_pass_events_set()
25583     * after adding the object, this state will change again when @p transit stops
25584     * to run.
25585     *
25586     * @param transit The transit object.
25587     * @param enabled Events are received when enabled is @c EINA_TRUE, and
25588     * ignored otherwise.
25589     *
25590     * @ingroup Transit
25591     */
25592    EAPI void                        elm_transit_event_enabled_set(Elm_Transit *transit, Eina_Bool enabled) EINA_ARG_NONNULL(1);
25593
25594    /**
25595     * Get the value of event enabled status.
25596     *
25597     * @see elm_transit_event_enabled_set()
25598     *
25599     * @param transit The Transit object
25600     * @return EINA_TRUE, when event is enabled. If @p transit is NULL
25601     * EINA_FALSE is returned
25602     *
25603     * @ingroup Transit
25604     */
25605    EAPI Eina_Bool                   elm_transit_event_enabled_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25606
25607    /**
25608     * Set the user-callback function when the transit is deleted.
25609     *
25610     * @note Using this function twice will overwrite the first function setted.
25611     * @note the @p transit object will be deleted after call @p cb function.
25612     *
25613     * @param transit The transit object.
25614     * @param cb Callback function pointer. This function will be called before
25615     * the deletion of the transit.
25616     * @param data Callback funtion user data. It is the @p op parameter.
25617     *
25618     * @ingroup Transit
25619     */
25620    EAPI void                        elm_transit_del_cb_set(Elm_Transit *transit, Elm_Transit_Del_Cb cb, void *data) EINA_ARG_NONNULL(1);
25621
25622    /**
25623     * Set reverse effect automatically.
25624     *
25625     * If auto reverse is setted, after running the effects with the progress
25626     * parameter from 0 to 1, it will call the effecs again with the progress
25627     * from 1 to 0. The transit will last for a time iqual to (2 * duration * repeat),
25628     * where the duration was setted with the function elm_transit_add and
25629     * the repeat with the function elm_transit_repeat_times_set().
25630     *
25631     * @param transit The transit object.
25632     * @param reverse EINA_TRUE means the auto_reverse is on.
25633     *
25634     * @ingroup Transit
25635     */
25636    EAPI void                        elm_transit_auto_reverse_set(Elm_Transit *transit, Eina_Bool reverse) EINA_ARG_NONNULL(1);
25637
25638    /**
25639     * Get if the auto reverse is on.
25640     *
25641     * @see elm_transit_auto_reverse_set()
25642     *
25643     * @param transit The transit object.
25644     * @return EINA_TRUE means auto reverse is on. If @p transit is NULL
25645     * EINA_FALSE is returned
25646     *
25647     * @ingroup Transit
25648     */
25649    EAPI Eina_Bool                   elm_transit_auto_reverse_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25650
25651    /**
25652     * Set the transit repeat count. Effect will be repeated by repeat count.
25653     *
25654     * This function sets the number of repetition the transit will run after
25655     * the first one, that is, if @p repeat is 1, the transit will run 2 times.
25656     * If the @p repeat is a negative number, it will repeat infinite times.
25657     *
25658     * @note If this function is called during the transit execution, the transit
25659     * will run @p repeat times, ignoring the times it already performed.
25660     *
25661     * @param transit The transit object
25662     * @param repeat Repeat count
25663     *
25664     * @ingroup Transit
25665     */
25666    EAPI void                        elm_transit_repeat_times_set(Elm_Transit *transit, int repeat) EINA_ARG_NONNULL(1);
25667
25668    /**
25669     * Get the transit repeat count.
25670     *
25671     * @see elm_transit_repeat_times_set()
25672     *
25673     * @param transit The Transit object.
25674     * @return The repeat count. If @p transit is NULL
25675     * 0 is returned
25676     *
25677     * @ingroup Transit
25678     */
25679    EAPI int                         elm_transit_repeat_times_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25680
25681    /**
25682     * Set the transit animation acceleration type.
25683     *
25684     * This function sets the tween mode of the transit that can be:
25685     * ELM_TRANSIT_TWEEN_MODE_LINEAR - The default mode.
25686     * ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL - Starts in accelerate mode and ends decelerating.
25687     * ELM_TRANSIT_TWEEN_MODE_DECELERATE - The animation will be slowed over time.
25688     * ELM_TRANSIT_TWEEN_MODE_ACCELERATE - The animation will accelerate over time.
25689     *
25690     * @param transit The transit object.
25691     * @param tween_mode The tween type.
25692     *
25693     * @ingroup Transit
25694     */
25695    EAPI void                        elm_transit_tween_mode_set(Elm_Transit *transit, Elm_Transit_Tween_Mode tween_mode) EINA_ARG_NONNULL(1);
25696
25697    /**
25698     * Get the transit animation acceleration type.
25699     *
25700     * @note @p transit can not be NULL
25701     *
25702     * @param transit The transit object.
25703     * @return The tween type. If @p transit is NULL
25704     * ELM_TRANSIT_TWEEN_MODE_LINEAR is returned.
25705     *
25706     * @ingroup Transit
25707     */
25708    EAPI Elm_Transit_Tween_Mode      elm_transit_tween_mode_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25709
25710    /**
25711     * Set the transit animation time
25712     *
25713     * @note @p transit can not be NULL
25714     *
25715     * @param transit The transit object.
25716     * @param duration The animation time.
25717     *
25718     * @ingroup Transit
25719     */
25720    EAPI void                        elm_transit_duration_set(Elm_Transit *transit, double duration) EINA_ARG_NONNULL(1);
25721
25722    /**
25723     * Get the transit animation time
25724     *
25725     * @note @p transit can not be NULL
25726     *
25727     * @param transit The transit object.
25728     *
25729     * @return The transit animation time.
25730     *
25731     * @ingroup Transit
25732     */
25733    EAPI double                      elm_transit_duration_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25734
25735    /**
25736     * Starts the transition.
25737     * Once this API is called, the transit begins to measure the time.
25738     *
25739     * @note @p transit can not be NULL
25740     *
25741     * @param transit The transit object.
25742     *
25743     * @ingroup Transit
25744     */
25745    EAPI void                        elm_transit_go(Elm_Transit *transit) EINA_ARG_NONNULL(1);
25746
25747    /**
25748     * Pause/Resume the transition.
25749     *
25750     * If you call elm_transit_go again, the transit will be started from the
25751     * beginning, and will be unpaused.
25752     *
25753     * @note @p transit can not be NULL
25754     *
25755     * @param transit The transit object.
25756     * @param paused Whether the transition should be paused or not.
25757     *
25758     * @ingroup Transit
25759     */
25760    EAPI void                        elm_transit_paused_set(Elm_Transit *transit, Eina_Bool paused) EINA_ARG_NONNULL(1);
25761
25762    /**
25763     * Get the value of paused status.
25764     *
25765     * @see elm_transit_paused_set()
25766     *
25767     * @note @p transit can not be NULL
25768     *
25769     * @param transit The transit object.
25770     * @return EINA_TRUE means transition is paused. If @p transit is NULL
25771     * EINA_FALSE is returned
25772     *
25773     * @ingroup Transit
25774     */
25775    EAPI Eina_Bool                   elm_transit_paused_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25776
25777    /**
25778     * Get the time progression of the animation (a double value between 0.0 and 1.0).
25779     *
25780     * The value returned is a fraction (current time / total time). It
25781     * represents the progression position relative to the total.
25782     *
25783     * @note @p transit can not be NULL
25784     *
25785     * @param transit The transit object.
25786     *
25787     * @return The time progression value. If @p transit is NULL
25788     * 0 is returned
25789     *
25790     * @ingroup Transit
25791     */
25792    EAPI double                      elm_transit_progress_value_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25793
25794    /**
25795     * Makes the chain relationship between two transits.
25796     *
25797     * @note @p transit can not be NULL. Transit would have multiple chain transits.
25798     * @note @p chain_transit can not be NULL. Chain transits could be chained to the only one transit.
25799     *
25800     * @param transit The transit object.
25801     * @param chain_transit The chain transit object. This transit will be operated
25802     *        after transit is done.
25803     *
25804     * This function adds @p chain_transit transition to a chain after the @p
25805     * transit, and will be started as soon as @p transit ends. See @ref
25806     * transit_example_02_explained for a full example.
25807     *
25808     * @ingroup Transit
25809     */
25810    EAPI void                        elm_transit_chain_transit_add(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1, 2);
25811
25812    /**
25813     * Cut off the chain relationship between two transits.
25814     *
25815     * @note @p transit can not be NULL. Transit would have the chain relationship with @p chain transit.
25816     * @note @p chain_transit can not be NULL. Chain transits should be chained to the @p transit.
25817     *
25818     * @param transit The transit object.
25819     * @param chain_transit The chain transit object.
25820     *
25821     * This function remove the @p chain_transit transition from the @p transit.
25822     *
25823     * @ingroup Transit
25824     */
25825    EAPI void                        elm_transit_chain_transit_del(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1,2);
25826
25827    /**
25828     * Get the current chain transit list.
25829     *
25830     * @note @p transit can not be NULL.
25831     *
25832     * @param transit The transit object.
25833     * @return chain transit list.
25834     *
25835     * @ingroup Transit
25836     */
25837    EAPI Eina_List                  *elm_transit_chain_transits_get(const Elm_Transit *transit);
25838
25839    /**
25840     * Add the Resizing Effect to Elm_Transit.
25841     *
25842     * @note This API is one of the facades. It creates resizing effect context
25843     * and add it's required APIs to elm_transit_effect_add.
25844     *
25845     * @see elm_transit_effect_add()
25846     *
25847     * @param transit Transit object.
25848     * @param from_w Object width size when effect begins.
25849     * @param from_h Object height size when effect begins.
25850     * @param to_w Object width size when effect ends.
25851     * @param to_h Object height size when effect ends.
25852     * @return Resizing effect context data.
25853     *
25854     * @ingroup Transit
25855     */
25856    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);
25857
25858    /**
25859     * Add the Translation Effect to Elm_Transit.
25860     *
25861     * @note This API is one of the facades. It creates translation effect context
25862     * and add it's required APIs to elm_transit_effect_add.
25863     *
25864     * @see elm_transit_effect_add()
25865     *
25866     * @param transit Transit object.
25867     * @param from_dx X Position variation when effect begins.
25868     * @param from_dy Y Position variation when effect begins.
25869     * @param to_dx X Position variation when effect ends.
25870     * @param to_dy Y Position variation when effect ends.
25871     * @return Translation effect context data.
25872     *
25873     * @ingroup Transit
25874     * @warning It is highly recommended just create a transit with this effect when
25875     * the window that the objects of the transit belongs has already been created.
25876     * This is because this effect needs the geometry information about the objects,
25877     * and if the window was not created yet, it can get a wrong information.
25878     */
25879    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);
25880
25881    /**
25882     * Add the Zoom Effect to Elm_Transit.
25883     *
25884     * @note This API is one of the facades. It creates zoom effect context
25885     * and add it's required APIs to elm_transit_effect_add.
25886     *
25887     * @see elm_transit_effect_add()
25888     *
25889     * @param transit Transit object.
25890     * @param from_rate Scale rate when effect begins (1 is current rate).
25891     * @param to_rate Scale rate when effect ends.
25892     * @return Zoom effect context data.
25893     *
25894     * @ingroup Transit
25895     * @warning It is highly recommended just create a transit with this effect when
25896     * the window that the objects of the transit belongs has already been created.
25897     * This is because this effect needs the geometry information about the objects,
25898     * and if the window was not created yet, it can get a wrong information.
25899     */
25900    EAPI Elm_Transit_Effect *elm_transit_effect_zoom_add(Elm_Transit *transit, float from_rate, float to_rate);
25901
25902    /**
25903     * Add the Flip Effect to Elm_Transit.
25904     *
25905     * @note This API is one of the facades. It creates flip effect context
25906     * and add it's required APIs to elm_transit_effect_add.
25907     * @note This effect is applied to each pair of objects in the order they are listed
25908     * in the transit list of objects. The first object in the pair will be the
25909     * "front" object and the second will be the "back" object.
25910     *
25911     * @see elm_transit_effect_add()
25912     *
25913     * @param transit Transit object.
25914     * @param axis Flipping Axis(X or Y).
25915     * @param cw Flipping Direction. EINA_TRUE is clock-wise.
25916     * @return Flip effect context data.
25917     *
25918     * @ingroup Transit
25919     * @warning It is highly recommended just create a transit with this effect when
25920     * the window that the objects of the transit belongs has already been created.
25921     * This is because this effect needs the geometry information about the objects,
25922     * and if the window was not created yet, it can get a wrong information.
25923     */
25924    EAPI Elm_Transit_Effect *elm_transit_effect_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
25925
25926    /**
25927     * Add the Resizable Flip Effect to Elm_Transit.
25928     *
25929     * @note This API is one of the facades. It creates resizable flip effect context
25930     * and add it's required APIs to elm_transit_effect_add.
25931     * @note This effect is applied to each pair of objects in the order they are listed
25932     * in the transit list of objects. The first object in the pair will be the
25933     * "front" object and the second will be the "back" object.
25934     *
25935     * @see elm_transit_effect_add()
25936     *
25937     * @param transit Transit object.
25938     * @param axis Flipping Axis(X or Y).
25939     * @param cw Flipping Direction. EINA_TRUE is clock-wise.
25940     * @return Resizable flip effect context data.
25941     *
25942     * @ingroup Transit
25943     * @warning It is highly recommended just create a transit with this effect when
25944     * the window that the objects of the transit belongs has already been created.
25945     * This is because this effect needs the geometry information about the objects,
25946     * and if the window was not created yet, it can get a wrong information.
25947     */
25948    EAPI Elm_Transit_Effect *elm_transit_effect_resizable_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
25949
25950    /**
25951     * Add the Wipe Effect to Elm_Transit.
25952     *
25953     * @note This API is one of the facades. It creates wipe effect context
25954     * and add it's required APIs to elm_transit_effect_add.
25955     *
25956     * @see elm_transit_effect_add()
25957     *
25958     * @param transit Transit object.
25959     * @param type Wipe type. Hide or show.
25960     * @param dir Wipe Direction.
25961     * @return Wipe effect context data.
25962     *
25963     * @ingroup Transit
25964     * @warning It is highly recommended just create a transit with this effect when
25965     * the window that the objects of the transit belongs has already been created.
25966     * This is because this effect needs the geometry information about the objects,
25967     * and if the window was not created yet, it can get a wrong information.
25968     */
25969    EAPI Elm_Transit_Effect *elm_transit_effect_wipe_add(Elm_Transit *transit, Elm_Transit_Effect_Wipe_Type type, Elm_Transit_Effect_Wipe_Dir dir);
25970
25971    /**
25972     * Add the Color Effect to Elm_Transit.
25973     *
25974     * @note This API is one of the facades. It creates color effect context
25975     * and add it's required APIs to elm_transit_effect_add.
25976     *
25977     * @see elm_transit_effect_add()
25978     *
25979     * @param transit        Transit object.
25980     * @param  from_r        RGB R when effect begins.
25981     * @param  from_g        RGB G when effect begins.
25982     * @param  from_b        RGB B when effect begins.
25983     * @param  from_a        RGB A when effect begins.
25984     * @param  to_r          RGB R when effect ends.
25985     * @param  to_g          RGB G when effect ends.
25986     * @param  to_b          RGB B when effect ends.
25987     * @param  to_a          RGB A when effect ends.
25988     * @return               Color effect context data.
25989     *
25990     * @ingroup Transit
25991     */
25992    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);
25993
25994    /**
25995     * Add the Fade Effect to Elm_Transit.
25996     *
25997     * @note This API is one of the facades. It creates fade effect context
25998     * and add it's required APIs to elm_transit_effect_add.
25999     * @note This effect is applied to each pair of objects in the order they are listed
26000     * in the transit list of objects. The first object in the pair will be the
26001     * "before" object and the second will be the "after" object.
26002     *
26003     * @see elm_transit_effect_add()
26004     *
26005     * @param transit Transit object.
26006     * @return Fade effect context data.
26007     *
26008     * @ingroup Transit
26009     * @warning It is highly recommended just create a transit with this effect when
26010     * the window that the objects of the transit belongs has already been created.
26011     * This is because this effect needs the color information about the objects,
26012     * and if the window was not created yet, it can get a wrong information.
26013     */
26014    EAPI Elm_Transit_Effect *elm_transit_effect_fade_add(Elm_Transit *transit);
26015
26016    /**
26017     * Add the Blend Effect to Elm_Transit.
26018     *
26019     * @note This API is one of the facades. It creates blend effect context
26020     * and add it's required APIs to elm_transit_effect_add.
26021     * @note This effect is applied to each pair of objects in the order they are listed
26022     * in the transit list of objects. The first object in the pair will be the
26023     * "before" object and the second will be the "after" object.
26024     *
26025     * @see elm_transit_effect_add()
26026     *
26027     * @param transit Transit object.
26028     * @return Blend effect context data.
26029     *
26030     * @ingroup Transit
26031     * @warning It is highly recommended just create a transit with this effect when
26032     * the window that the objects of the transit belongs has already been created.
26033     * This is because this effect needs the color information about the objects,
26034     * and if the window was not created yet, it can get a wrong information.
26035     */
26036    EAPI Elm_Transit_Effect *elm_transit_effect_blend_add(Elm_Transit *transit);
26037
26038    /**
26039     * Add the Rotation Effect to Elm_Transit.
26040     *
26041     * @note This API is one of the facades. It creates rotation effect context
26042     * and add it's required APIs to elm_transit_effect_add.
26043     *
26044     * @see elm_transit_effect_add()
26045     *
26046     * @param transit Transit object.
26047     * @param from_degree Degree when effect begins.
26048     * @param to_degree Degree when effect is ends.
26049     * @return Rotation effect context data.
26050     *
26051     * @ingroup Transit
26052     * @warning It is highly recommended just create a transit with this effect when
26053     * the window that the objects of the transit belongs has already been created.
26054     * This is because this effect needs the geometry information about the objects,
26055     * and if the window was not created yet, it can get a wrong information.
26056     */
26057    EAPI Elm_Transit_Effect *elm_transit_effect_rotation_add(Elm_Transit *transit, float from_degree, float to_degree);
26058
26059    /**
26060     * Add the ImageAnimation Effect to Elm_Transit.
26061     *
26062     * @note This API is one of the facades. It creates image animation effect context
26063     * and add it's required APIs to elm_transit_effect_add.
26064     * The @p images parameter is a list images paths. This list and
26065     * its contents will be deleted at the end of the effect by
26066     * elm_transit_effect_image_animation_context_free() function.
26067     *
26068     * Example:
26069     * @code
26070     * char buf[PATH_MAX];
26071     * Eina_List *images = NULL;
26072     * Elm_Transit *transi = elm_transit_add();
26073     *
26074     * snprintf(buf, sizeof(buf), "%s/images/icon_11.png", PACKAGE_DATA_DIR);
26075     * images = eina_list_append(images, eina_stringshare_add(buf));
26076     *
26077     * snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
26078     * images = eina_list_append(images, eina_stringshare_add(buf));
26079     * elm_transit_effect_image_animation_add(transi, images);
26080     *
26081     * @endcode
26082     *
26083     * @see elm_transit_effect_add()
26084     *
26085     * @param transit Transit object.
26086     * @param images Eina_List of images file paths. This list and
26087     * its contents will be deleted at the end of the effect by
26088     * elm_transit_effect_image_animation_context_free() function.
26089     * @return Image Animation effect context data.
26090     *
26091     * @ingroup Transit
26092     */
26093    EAPI Elm_Transit_Effect *elm_transit_effect_image_animation_add(Elm_Transit *transit, Eina_List *images);
26094    /**
26095     * @}
26096     */
26097
26098   typedef struct _Elm_Store                      Elm_Store;
26099   typedef struct _Elm_Store_Filesystem           Elm_Store_Filesystem;
26100   typedef struct _Elm_Store_Item                 Elm_Store_Item;
26101   typedef struct _Elm_Store_Item_Filesystem      Elm_Store_Item_Filesystem;
26102   typedef struct _Elm_Store_Item_Info            Elm_Store_Item_Info;
26103   typedef struct _Elm_Store_Item_Info_Filesystem Elm_Store_Item_Info_Filesystem;
26104   typedef struct _Elm_Store_Item_Mapping         Elm_Store_Item_Mapping;
26105   typedef struct _Elm_Store_Item_Mapping_Empty   Elm_Store_Item_Mapping_Empty;
26106   typedef struct _Elm_Store_Item_Mapping_Icon    Elm_Store_Item_Mapping_Icon;
26107   typedef struct _Elm_Store_Item_Mapping_Photo   Elm_Store_Item_Mapping_Photo;
26108   typedef struct _Elm_Store_Item_Mapping_Custom  Elm_Store_Item_Mapping_Custom;
26109
26110   typedef Eina_Bool (*Elm_Store_Item_List_Cb) (void *data, Elm_Store_Item_Info *info);
26111   typedef void      (*Elm_Store_Item_Fetch_Cb) (void *data, Elm_Store_Item *sti);
26112   typedef void      (*Elm_Store_Item_Unfetch_Cb) (void *data, Elm_Store_Item *sti);
26113   typedef void     *(*Elm_Store_Item_Mapping_Cb) (void *data, Elm_Store_Item *sti, const char *part);
26114
26115   typedef enum
26116     {
26117        ELM_STORE_ITEM_MAPPING_NONE = 0,
26118        ELM_STORE_ITEM_MAPPING_LABEL, // const char * -> label
26119        ELM_STORE_ITEM_MAPPING_STATE, // Eina_Bool -> state
26120        ELM_STORE_ITEM_MAPPING_ICON, // char * -> icon path
26121        ELM_STORE_ITEM_MAPPING_PHOTO, // char * -> photo path
26122        ELM_STORE_ITEM_MAPPING_CUSTOM, // item->custom(it->data, it, part) -> void * (-> any)
26123        // can add more here as needed by common apps
26124        ELM_STORE_ITEM_MAPPING_LAST
26125     } Elm_Store_Item_Mapping_Type;
26126
26127   struct _Elm_Store_Item_Mapping_Icon
26128     {
26129        // FIXME: allow edje file icons
26130        int                   w, h;
26131        Elm_Icon_Lookup_Order lookup_order;
26132        Eina_Bool             standard_name : 1;
26133        Eina_Bool             no_scale : 1;
26134        Eina_Bool             smooth : 1;
26135        Eina_Bool             scale_up : 1;
26136        Eina_Bool             scale_down : 1;
26137     };
26138
26139   struct _Elm_Store_Item_Mapping_Empty
26140     {
26141        Eina_Bool             dummy;
26142     };
26143
26144   struct _Elm_Store_Item_Mapping_Photo
26145     {
26146        int                   size;
26147     };
26148
26149   struct _Elm_Store_Item_Mapping_Custom
26150     {
26151        Elm_Store_Item_Mapping_Cb func;
26152     };
26153
26154   struct _Elm_Store_Item_Mapping
26155     {
26156        Elm_Store_Item_Mapping_Type     type;
26157        const char                     *part;
26158        int                             offset;
26159        union
26160          {
26161             Elm_Store_Item_Mapping_Empty  empty;
26162             Elm_Store_Item_Mapping_Icon   icon;
26163             Elm_Store_Item_Mapping_Photo  photo;
26164             Elm_Store_Item_Mapping_Custom custom;
26165             // add more types here
26166          } details;
26167     };
26168
26169   struct _Elm_Store_Item_Info
26170     {
26171       Elm_Genlist_Item_Class       *item_class;
26172       const Elm_Store_Item_Mapping *mapping;
26173       void                         *data;
26174       char                         *sort_id;
26175     };
26176
26177   struct _Elm_Store_Item_Info_Filesystem
26178     {
26179       Elm_Store_Item_Info  base;
26180       char                *path;
26181     };
26182
26183 #define ELM_STORE_ITEM_MAPPING_END { ELM_STORE_ITEM_MAPPING_NONE, NULL, 0, { .empty = { EINA_TRUE } } }
26184 #define ELM_STORE_ITEM_MAPPING_OFFSET(st, it) offsetof(st, it)
26185
26186   EAPI void                    elm_store_free(Elm_Store *st);
26187
26188   EAPI Elm_Store              *elm_store_filesystem_new(void);
26189   EAPI void                    elm_store_filesystem_directory_set(Elm_Store *st, const char *dir) EINA_ARG_NONNULL(1);
26190   EAPI const char             *elm_store_filesystem_directory_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
26191   EAPI const char             *elm_store_item_filesystem_path_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
26192
26193   EAPI void                    elm_store_target_genlist_set(Elm_Store *st, Evas_Object *obj) EINA_ARG_NONNULL(1);
26194
26195   EAPI void                    elm_store_cache_set(Elm_Store *st, int max) EINA_ARG_NONNULL(1);
26196   EAPI int                     elm_store_cache_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
26197   EAPI void                    elm_store_list_func_set(Elm_Store *st, Elm_Store_Item_List_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
26198   EAPI void                    elm_store_fetch_func_set(Elm_Store *st, Elm_Store_Item_Fetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
26199   EAPI void                    elm_store_fetch_thread_set(Elm_Store *st, Eina_Bool use_thread) EINA_ARG_NONNULL(1);
26200   EAPI Eina_Bool               elm_store_fetch_thread_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
26201
26202   EAPI void                    elm_store_unfetch_func_set(Elm_Store *st, Elm_Store_Item_Unfetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
26203   EAPI void                    elm_store_sorted_set(Elm_Store *st, Eina_Bool sorted) EINA_ARG_NONNULL(1);
26204   EAPI Eina_Bool               elm_store_sorted_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
26205   EAPI void                    elm_store_item_data_set(Elm_Store_Item *sti, void *data) EINA_ARG_NONNULL(1);
26206   EAPI void                   *elm_store_item_data_get(Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
26207   EAPI const Elm_Store        *elm_store_item_store_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
26208   EAPI const Elm_Genlist_Item *elm_store_item_genlist_item_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
26209
26210    /**
26211     * @defgroup SegmentControl SegmentControl
26212     * @ingroup Elementary
26213     *
26214     * @image html img/widget/segment_control/preview-00.png
26215     * @image latex img/widget/segment_control/preview-00.eps width=\textwidth
26216     *
26217     * @image html img/segment_control.png
26218     * @image latex img/segment_control.eps width=\textwidth
26219     *
26220     * Segment control widget is a horizontal control made of multiple segment
26221     * items, each segment item functioning similar to discrete two state button.
26222     * A segment control groups the items together and provides compact
26223     * single button with multiple equal size segments.
26224     *
26225     * Segment item size is determined by base widget
26226     * size and the number of items added.
26227     * Only one segment item can be at selected state. A segment item can display
26228     * combination of Text and any Evas_Object like Images or other widget.
26229     *
26230     * Smart callbacks one can listen to:
26231     * - "changed" - When the user clicks on a segment item which is not
26232     *   previously selected and get selected. The event_info parameter is the
26233     *   segment item index.
26234     *
26235     * Available styles for it:
26236     * - @c "default"
26237     *
26238     * Here is an example on its usage:
26239     * @li @ref segment_control_example
26240     */
26241
26242    /**
26243     * @addtogroup SegmentControl
26244     * @{
26245     */
26246
26247    typedef struct _Elm_Segment_Item Elm_Segment_Item; /**< Item handle for a segment control widget. */
26248
26249    /**
26250     * Add a new segment control widget to the given parent Elementary
26251     * (container) object.
26252     *
26253     * @param parent The parent object.
26254     * @return a new segment control widget handle or @c NULL, on errors.
26255     *
26256     * This function inserts a new segment control widget on the canvas.
26257     *
26258     * @ingroup SegmentControl
26259     */
26260    EAPI Evas_Object      *elm_segment_control_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26261
26262    /**
26263     * Append a new item to the segment control object.
26264     *
26265     * @param obj The segment control object.
26266     * @param icon The icon object to use for the left side of the item. An
26267     * icon can be any Evas object, but usually it is an icon created
26268     * with elm_icon_add().
26269     * @param label The label of the item.
26270     *        Note that, NULL is different from empty string "".
26271     * @return The created item or @c NULL upon failure.
26272     *
26273     * A new item will be created and appended to the segment control, i.e., will
26274     * be set as @b last item.
26275     *
26276     * If it should be inserted at another position,
26277     * elm_segment_control_item_insert_at() should be used instead.
26278     *
26279     * Items created with this function can be deleted with function
26280     * elm_segment_control_item_del() or elm_segment_control_item_del_at().
26281     *
26282     * @note @p label set to @c NULL is different from empty string "".
26283     * If an item
26284     * only has icon, it will be displayed bigger and centered. If it has
26285     * icon and label, even that an empty string, icon will be smaller and
26286     * positioned at left.
26287     *
26288     * Simple example:
26289     * @code
26290     * sc = elm_segment_control_add(win);
26291     * ic = elm_icon_add(win);
26292     * elm_icon_file_set(ic, "path/to/image", NULL);
26293     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
26294     * elm_segment_control_item_add(sc, ic, "label");
26295     * evas_object_show(sc);
26296     * @endcode
26297     *
26298     * @see elm_segment_control_item_insert_at()
26299     * @see elm_segment_control_item_del()
26300     *
26301     * @ingroup SegmentControl
26302     */
26303    EAPI Elm_Segment_Item *elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon, const char *label) EINA_ARG_NONNULL(1);
26304
26305    /**
26306     * Insert a new item to the segment control object at specified position.
26307     *
26308     * @param obj The segment control object.
26309     * @param icon The icon object to use for the left side of the item. An
26310     * icon can be any Evas object, but usually it is an icon created
26311     * with elm_icon_add().
26312     * @param label The label of the item.
26313     * @param index Item position. Value should be between 0 and items count.
26314     * @return The created item or @c NULL upon failure.
26315
26316     * Index values must be between @c 0, when item will be prepended to
26317     * segment control, and items count, that can be get with
26318     * elm_segment_control_item_count_get(), case when item will be appended
26319     * to segment control, just like elm_segment_control_item_add().
26320     *
26321     * Items created with this function can be deleted with function
26322     * elm_segment_control_item_del() or elm_segment_control_item_del_at().
26323     *
26324     * @note @p label set to @c NULL is different from empty string "".
26325     * If an item
26326     * only has icon, it will be displayed bigger and centered. If it has
26327     * icon and label, even that an empty string, icon will be smaller and
26328     * positioned at left.
26329     *
26330     * @see elm_segment_control_item_add()
26331     * @see elm_segment_control_item_count_get()
26332     * @see elm_segment_control_item_del()
26333     *
26334     * @ingroup SegmentControl
26335     */
26336    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);
26337
26338    /**
26339     * Remove a segment control item from its parent, deleting it.
26340     *
26341     * @param it The item to be removed.
26342     *
26343     * Items can be added with elm_segment_control_item_add() or
26344     * elm_segment_control_item_insert_at().
26345     *
26346     * @ingroup SegmentControl
26347     */
26348    EAPI void              elm_segment_control_item_del(Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
26349
26350    /**
26351     * Remove a segment control item at given index from its parent,
26352     * deleting it.
26353     *
26354     * @param obj The segment control object.
26355     * @param index The position of the segment control item to be deleted.
26356     *
26357     * Items can be added with elm_segment_control_item_add() or
26358     * elm_segment_control_item_insert_at().
26359     *
26360     * @ingroup SegmentControl
26361     */
26362    EAPI void              elm_segment_control_item_del_at(Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
26363
26364    /**
26365     * Get the Segment items count from segment control.
26366     *
26367     * @param obj The segment control object.
26368     * @return Segment items count.
26369     *
26370     * It will just return the number of items added to segment control @p obj.
26371     *
26372     * @ingroup SegmentControl
26373     */
26374    EAPI int               elm_segment_control_item_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26375
26376    /**
26377     * Get the item placed at specified index.
26378     *
26379     * @param obj The segment control object.
26380     * @param index The index of the segment item.
26381     * @return The segment control item or @c NULL on failure.
26382     *
26383     * Index is the position of an item in segment control widget. Its
26384     * range is from @c 0 to <tt> count - 1 </tt>.
26385     * Count is the number of items, that can be get with
26386     * elm_segment_control_item_count_get().
26387     *
26388     * @ingroup SegmentControl
26389     */
26390    EAPI Elm_Segment_Item *elm_segment_control_item_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
26391
26392    /**
26393     * Get the label of item.
26394     *
26395     * @param obj The segment control object.
26396     * @param index The index of the segment item.
26397     * @return The label of the item at @p index.
26398     *
26399     * The return value is a pointer to the label associated to the item when
26400     * it was created, with function elm_segment_control_item_add(), or later
26401     * with function elm_segment_control_item_label_set. If no label
26402     * was passed as argument, it will return @c NULL.
26403     *
26404     * @see elm_segment_control_item_label_set() for more details.
26405     * @see elm_segment_control_item_add()
26406     *
26407     * @ingroup SegmentControl
26408     */
26409    EAPI const char       *elm_segment_control_item_label_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
26410
26411    /**
26412     * Set the label of item.
26413     *
26414     * @param it The item of segment control.
26415     * @param text The label of item.
26416     *
26417     * The label to be displayed by the item.
26418     * Label will be at right of the icon (if set).
26419     *
26420     * If a label was passed as argument on item creation, with function
26421     * elm_control_segment_item_add(), it will be already
26422     * displayed by the item.
26423     *
26424     * @see elm_segment_control_item_label_get()
26425     * @see elm_segment_control_item_add()
26426     *
26427     * @ingroup SegmentControl
26428     */
26429    EAPI void              elm_segment_control_item_label_set(Elm_Segment_Item* it, const char* label) EINA_ARG_NONNULL(1);
26430
26431    /**
26432     * Get the icon associated to the item.
26433     *
26434     * @param obj The segment control object.
26435     * @param index The index of the segment item.
26436     * @return The left side icon associated to the item at @p index.
26437     *
26438     * The return value is a pointer to the icon associated to the item when
26439     * it was created, with function elm_segment_control_item_add(), or later
26440     * with function elm_segment_control_item_icon_set(). If no icon
26441     * was passed as argument, it will return @c NULL.
26442     *
26443     * @see elm_segment_control_item_add()
26444     * @see elm_segment_control_item_icon_set()
26445     *
26446     * @ingroup SegmentControl
26447     */
26448    EAPI Evas_Object      *elm_segment_control_item_icon_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
26449
26450    /**
26451     * Set the icon associated to the item.
26452     *
26453     * @param it The segment control item.
26454     * @param icon The icon object to associate with @p it.
26455     *
26456     * The icon object to use at left side of the item. An
26457     * icon can be any Evas object, but usually it is an icon created
26458     * with elm_icon_add().
26459     *
26460     * Once the icon object is set, a previously set one will be deleted.
26461     * @warning Setting the same icon for two items will cause the icon to
26462     * dissapear from the first item.
26463     *
26464     * If an icon was passed as argument on item creation, with function
26465     * elm_segment_control_item_add(), it will be already
26466     * associated to the item.
26467     *
26468     * @see elm_segment_control_item_add()
26469     * @see elm_segment_control_item_icon_get()
26470     *
26471     * @ingroup SegmentControl
26472     */
26473    EAPI void              elm_segment_control_item_icon_set(Elm_Segment_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
26474
26475    /**
26476     * Get the index of an item.
26477     *
26478     * @param it The segment control item.
26479     * @return The position of item in segment control widget.
26480     *
26481     * Index is the position of an item in segment control widget. Its
26482     * range is from @c 0 to <tt> count - 1 </tt>.
26483     * Count is the number of items, that can be get with
26484     * elm_segment_control_item_count_get().
26485     *
26486     * @ingroup SegmentControl
26487     */
26488    EAPI int               elm_segment_control_item_index_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
26489
26490    /**
26491     * Get the base object of the item.
26492     *
26493     * @param it The segment control item.
26494     * @return The base object associated with @p it.
26495     *
26496     * Base object is the @c Evas_Object that represents that item.
26497     *
26498     * @ingroup SegmentControl
26499     */
26500    EAPI Evas_Object      *elm_segment_control_item_object_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
26501
26502    /**
26503     * Get the selected item.
26504     *
26505     * @param obj The segment control object.
26506     * @return The selected item or @c NULL if none of segment items is
26507     * selected.
26508     *
26509     * The selected item can be unselected with function
26510     * elm_segment_control_item_selected_set().
26511     *
26512     * The selected item always will be highlighted on segment control.
26513     *
26514     * @ingroup SegmentControl
26515     */
26516    EAPI Elm_Segment_Item *elm_segment_control_item_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26517
26518    /**
26519     * Set the selected state of an item.
26520     *
26521     * @param it The segment control item
26522     * @param select The selected state
26523     *
26524     * This sets the selected state of the given item @p it.
26525     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
26526     *
26527     * If a new item is selected the previosly selected will be unselected.
26528     * Previoulsy selected item can be get with function
26529     * elm_segment_control_item_selected_get().
26530     *
26531     * The selected item always will be highlighted on segment control.
26532     *
26533     * @see elm_segment_control_item_selected_get()
26534     *
26535     * @ingroup SegmentControl
26536     */
26537    EAPI void              elm_segment_control_item_selected_set(Elm_Segment_Item *it, Eina_Bool select) EINA_ARG_NONNULL(1);
26538
26539    /**
26540     * @}
26541     */
26542
26543    /**
26544     * @defgroup Grid Grid
26545     *
26546     * The grid is a grid layout widget that lays out a series of children as a
26547     * fixed "grid" of widgets using a given percentage of the grid width and
26548     * height each using the child object.
26549     *
26550     * The Grid uses a "Virtual resolution" that is stretched to fill the grid
26551     * widgets size itself. The default is 100 x 100, so that means the
26552     * position and sizes of children will effectively be percentages (0 to 100)
26553     * of the width or height of the grid widget
26554     *
26555     * @{
26556     */
26557
26558    /**
26559     * Add a new grid to the parent
26560     *
26561     * @param parent The parent object
26562     * @return The new object or NULL if it cannot be created
26563     *
26564     * @ingroup Grid
26565     */
26566    EAPI Evas_Object *elm_grid_add(Evas_Object *parent);
26567
26568    /**
26569     * Set the virtual size of the grid
26570     *
26571     * @param obj The grid object
26572     * @param w The virtual width of the grid
26573     * @param h The virtual height of the grid
26574     *
26575     * @ingroup Grid
26576     */
26577    EAPI void         elm_grid_size_set(Evas_Object *obj, int w, int h);
26578
26579    /**
26580     * Get the virtual size of the grid
26581     *
26582     * @param obj The grid object
26583     * @param w Pointer to integer to store the virtual width of the grid
26584     * @param h Pointer to integer to store the virtual height of the grid
26585     *
26586     * @ingroup Grid
26587     */
26588    EAPI void         elm_grid_size_get(Evas_Object *obj, int *w, int *h);
26589
26590    /**
26591     * Pack child at given position and size
26592     *
26593     * @param obj The grid object
26594     * @param subobj The child to pack
26595     * @param x The virtual x coord at which to pack it
26596     * @param y The virtual y coord at which to pack it
26597     * @param w The virtual width at which to pack it
26598     * @param h The virtual height at which to pack it
26599     *
26600     * @ingroup Grid
26601     */
26602    EAPI void         elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h);
26603
26604    /**
26605     * Unpack a child from a grid object
26606     *
26607     * @param obj The grid object
26608     * @param subobj The child to unpack
26609     *
26610     * @ingroup Grid
26611     */
26612    EAPI void         elm_grid_unpack(Evas_Object *obj, Evas_Object *subobj);
26613
26614    /**
26615     * Faster way to remove all child objects from a grid object.
26616     *
26617     * @param obj The grid object
26618     * @param clear If true, it will delete just removed children
26619     *
26620     * @ingroup Grid
26621     */
26622    EAPI void         elm_grid_clear(Evas_Object *obj, Eina_Bool clear);
26623
26624    /**
26625     * Set packing of an existing child at to position and size
26626     *
26627     * @param subobj The child to set packing of
26628     * @param x The virtual x coord at which to pack it
26629     * @param y The virtual y coord at which to pack it
26630     * @param w The virtual width at which to pack it
26631     * @param h The virtual height at which to pack it
26632     *
26633     * @ingroup Grid
26634     */
26635    EAPI void         elm_grid_pack_set(Evas_Object *subobj, int x, int y, int w, int h);
26636
26637    /**
26638     * get packing of a child
26639     *
26640     * @param subobj The child to query
26641     * @param x Pointer to integer to store the virtual x coord
26642     * @param y Pointer to integer to store the virtual y coord
26643     * @param w Pointer to integer to store the virtual width
26644     * @param h Pointer to integer to store the virtual height
26645     *
26646     * @ingroup Grid
26647     */
26648    EAPI void         elm_grid_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h);
26649
26650    /**
26651     * @}
26652     */
26653
26654    EAPI Evas_Object *elm_factory_add(Evas_Object *parent);
26655    EAPI void         elm_factory_content_set(Evas_Object *obj, Evas_Object *content);
26656    EAPI Evas_Object *elm_factory_content_get(const Evas_Object *obj);
26657    EAPI void         elm_factory_maxmin_mode_set(Evas_Object *obj, Eina_Bool enabled);
26658    EAPI Eina_Bool    elm_factory_maxmin_mode_get(const Evas_Object *obj);
26659    EAPI void         elm_factory_maxmin_reset_set(Evas_Object *obj);
26660
26661    /**
26662     * @defgroup Video Video
26663     *
26664     * This object display an player that let you control an Elm_Video
26665     * object. It take care of updating it's content according to what is
26666     * going on inside the Emotion object. It does activate the remember
26667     * function on the linked Elm_Video object.
26668     *
26669     * Signals that you can add callback for are :
26670     *
26671     * "forward,clicked" - the user clicked the forward button.
26672     * "info,clicked" - the user clicked the info button.
26673     * "next,clicked" - the user clicked the next button.
26674     * "pause,clicked" - the user clicked the pause button.
26675     * "play,clicked" - the user clicked the play button.
26676     * "prev,clicked" - the user clicked the prev button.
26677     * "rewind,clicked" - the user clicked the rewind button.
26678     * "stop,clicked" - the user clicked the stop button.
26679     */
26680    EAPI Evas_Object *elm_video_add(Evas_Object *parent);
26681    EAPI void elm_video_file_set(Evas_Object *video, const char *filename);
26682    EAPI void elm_video_uri_set(Evas_Object *video, const char *uri);
26683    EAPI Evas_Object *elm_video_emotion_get(Evas_Object *video);
26684    EAPI void elm_video_play(Evas_Object *video);
26685    EAPI void elm_video_pause(Evas_Object *video);
26686    EAPI void elm_video_stop(Evas_Object *video);
26687    EAPI Eina_Bool elm_video_is_playing(Evas_Object *video);
26688    EAPI Eina_Bool elm_video_is_seekable(Evas_Object *video);
26689    EAPI Eina_Bool elm_video_audio_mute_get(Evas_Object *video);
26690    EAPI void elm_video_audio_mute_set(Evas_Object *video, Eina_Bool mute);
26691    EAPI double elm_video_audio_level_get(Evas_Object *video);
26692    EAPI void elm_video_audio_level_set(Evas_Object *video, double volume);
26693    EAPI double elm_video_play_position_get(Evas_Object *video);
26694    EAPI void elm_video_play_position_set(Evas_Object *video, double position);
26695    EAPI double elm_video_play_length_get(Evas_Object *video);
26696    EAPI void elm_video_remember_position_set(Evas_Object *video, Eina_Bool remember);
26697    EAPI Eina_Bool elm_video_remember_position_get(Evas_Object *video);
26698    EAPI const char *elm_video_title_get(Evas_Object *video);
26699
26700    EAPI Evas_Object *elm_player_add(Evas_Object *parent);
26701    EAPI void elm_player_video_set(Evas_Object *player, Evas_Object *video);
26702
26703    /**
26704     * @defgroup Naviframe Naviframe
26705     *
26706     * @brief Naviframe is a kind of view manager for the applications.
26707     *
26708     * Naviframe provides functions to switch different pages with stack
26709     * mechanism. It means if one page(item) needs to be changed to the new one,
26710     * then naviframe would push the new page to it's internal stack. Of course,
26711     * it can be back to the previous page by popping the top page. Naviframe
26712     * provides some transition effect while the pages are switching (same as
26713     * pager).
26714     *
26715     * Since each item could keep the different styles, users could keep the
26716     * same look & feel for the pages or different styles for the items in it's
26717     * application.
26718     *
26719     * Signals that you can add callback for are:
26720     *
26721     * @li "transition,finished" - When the transition is finished in changing
26722     *     the item
26723     * @li "title,clicked" - User clicked title area
26724     *
26725     * Default contents parts for the naviframe items that you can use for are:
26726     *
26727     * @li "elm.swallow.content" - The main content of the page
26728     * @li "elm.swallow.prev_btn" - The button to go to the previous page
26729     * @li "elm.swallow.next_btn" - The button to go to the next page
26730     *
26731     * Default text parts of naviframe items that you can be used are:
26732     *
26733     * @li "elm.text.title" - The title label in the title area
26734     *
26735     * @ref tutorial_naviframe gives a good overview of the usage of the API.
26736     * @{
26737     */
26738    /**
26739     * @brief Add a new Naviframe object to the parent.
26740     *
26741     * @param parent Parent object
26742     * @return New object or @c NULL, if it cannot be created
26743     */
26744    EAPI Evas_Object        *elm_naviframe_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26745    /**
26746     * @brief Push a new item to the top of the naviframe stack (and show it).
26747     *
26748     * @param obj The naviframe object
26749     * @param title_label The label in the title area. The name of the title
26750     *        label part is "elm.text.title"
26751     * @param prev_btn The button to go to the previous item. If it is NULL,
26752     *        then naviframe will create a back button automatically. The name of
26753     *        the prev_btn part is "elm.swallow.prev_btn"
26754     * @param next_btn The button to go to the next item. Or It could be just an
26755     *        extra function button. The name of the next_btn part is
26756     *        "elm.swallow.next_btn"
26757     * @param content The main content object. The name of content part is
26758     *        "elm.swallow.content"
26759     * @param item_style The current item style name. @c NULL would be default.
26760     * @return The created item or @c NULL upon failure.
26761     *
26762     * The item pushed becomes one page of the naviframe, this item will be
26763     * deleted when it is popped.
26764     *
26765     * @see also elm_naviframe_item_style_set()
26766     *
26767     * The following styles are available for this item:
26768     * @li @c "default"
26769     */
26770    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);
26771    /**
26772     * @brief Pop an item that is on top of the stack
26773     *
26774     * @param obj The naviframe object
26775     * @return @c NULL or the content object(if the
26776     *         elm_naviframe_content_preserve_on_pop_get is true).
26777     *
26778     * This pops an item that is on the top(visible) of the naviframe, makes it
26779     * disappear, then deletes the item. The item that was underneath it on the
26780     * stack will become visible.
26781     *
26782     * @see also elm_naviframe_content_preserve_on_pop_get()
26783     */
26784    EAPI Evas_Object        *elm_naviframe_item_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
26785    /**
26786     * @brief Pop the items between the top and the above one on the given item.
26787     *
26788     * @param it The naviframe item
26789     */
26790    EAPI void                elm_naviframe_item_pop_to(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26791    /**
26792     * @brief preserve the content objects when items are popped.
26793     *
26794     * @param obj The naviframe object
26795     * @param preserve Enable the preserve mode if EINA_TRUE, disable otherwise
26796     *
26797     * @see also elm_naviframe_content_preserve_on_pop_get()
26798     */
26799    EAPI void                elm_naviframe_content_preserve_on_pop_set(Evas_Object *obj, Eina_Bool preserve) EINA_ARG_NONNULL(1);
26800    /**
26801     * @brief Get a value whether preserve mode is enabled or not.
26802     *
26803     * @param obj The naviframe object
26804     * @return If @c EINA_TRUE, preserve mode is enabled
26805     *
26806     * @see also elm_naviframe_content_preserve_on_pop_set()
26807     */
26808    EAPI Eina_Bool           elm_naviframe_content_preserve_on_pop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26809    /**
26810     * @brief Get a top item on the naviframe stack
26811     *
26812     * @param obj The naviframe object
26813     * @return The top item on the naviframe stack or @c NULL, if the stack is
26814     *         empty
26815     */
26816    EAPI Elm_Object_Item    *elm_naviframe_top_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26817    /**
26818     * @brief Get a bottom item on the naviframe stack
26819     *
26820     * @param obj The naviframe object
26821     * @return The bottom item on the naviframe stack or @c NULL, if the stack is
26822     *         empty
26823     */
26824    EAPI Elm_Object_Item    *elm_naviframe_bottom_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26825    /**
26826     * @brief Set an item style
26827     *
26828     * @param obj The naviframe item
26829     * @param item_style The current item style name. @c NULL would be default
26830     *
26831     * The following styles are available for this item:
26832     * @li @c "default"
26833     *
26834     * @see also elm_naviframe_item_style_get()
26835     */
26836    EAPI void                elm_naviframe_item_style_set(Elm_Object_Item *it, const char *item_style) EINA_ARG_NONNULL(1);
26837    /**
26838     * @brief Get an item style
26839     *
26840     * @param obj The naviframe item
26841     * @return The current item style name
26842     *
26843     * @see also elm_naviframe_item_style_set()
26844     */
26845    EAPI const char         *elm_naviframe_item_style_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26846    /**
26847     * @brief Show/Hide the title area
26848     *
26849     * @param it The naviframe item
26850     * @param visible If @c EINA_TRUE, title area will be visible, hidden
26851     *        otherwise
26852     *
26853     * When the title area is invisible, then the controls would be hidden so as     * to expand the content area to full-size.
26854     *
26855     * @see also elm_naviframe_item_title_visible_get()
26856     */
26857    EAPI void                elm_naviframe_item_title_visible_set(Elm_Object_Item *it, Eina_Bool visible) EINA_ARG_NONNULL(1);
26858    /**
26859     * @brief Get a value whether title area is visible or not.
26860     *
26861     * @param it The naviframe item
26862     * @return If @c EINA_TRUE, title area is visible
26863     *
26864     * @see also elm_naviframe_item_title_visible_set()
26865     */
26866    EAPI Eina_Bool           elm_naviframe_item_title_visible_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26867
26868    /**
26869     * @}
26870     */
26871
26872 #ifdef __cplusplus
26873 }
26874 #endif
26875
26876 #endif