c76b9345a04f8aff4ccd40bbbd371897e005a5cb
[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.8.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 which hold the widgets.
33
34 @section license License
35
36 LGPL v2 (see COPYING in the base of Elementary's source). This applies to
37 all files in the source tree.
38
39 @section ack Acknowledgements
40 There is a lot that goes into making a widget set, and they don't happen out of
41 nothing. It's like trying to make everyone everywhere happy, regardless of age,
42 gender, race or nationality - and that is really tough. So thanks to people and
43 organisations behind this, as listed in the @ref authors page.
44 */
45
46
47 /**
48  * @defgroup Start Getting Started
49  *
50  * To write an Elementary app, you can get started with the following:
51  *
52 @code
53 #include <Elementary.h>
54 EAPI_MAIN int
55 elm_main(int argc, char **argv)
56 {
57    // create window(s) here and do any application init
58    elm_run(); // run main loop
59    elm_shutdown(); // after mainloop finishes running, shutdown
60    return 0; // exit 0 for exit code
61 }
62 ELM_MAIN()
63 @endcode
64  *
65  * To use autotools (which helps in many ways in the long run, like being able
66  * to immediately create releases of your software directly from your tree
67  * and ensure everything needed to build it is there) you will need a
68  * configure.ac, Makefile.am and autogen.sh file.
69  *
70  * configure.ac:
71  *
72 @verbatim
73 AC_INIT(myapp, 0.0.0, myname@mydomain.com)
74 AC_PREREQ(2.52)
75 AC_CONFIG_SRCDIR(configure.ac)
76 AM_CONFIG_HEADER(config.h)
77 AC_PROG_CC
78 AM_INIT_AUTOMAKE(1.6 dist-bzip2)
79 PKG_CHECK_MODULES([ELEMENTARY], elementary)
80 AC_OUTPUT(Makefile)
81 @endverbatim
82  *
83  * Makefile.am:
84  *
85 @verbatim
86 AUTOMAKE_OPTIONS = 1.4 foreign
87 MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.h.in configure depcomp install-sh missing
88
89 INCLUDES = -I$(top_srcdir)
90
91 bin_PROGRAMS = myapp
92
93 myapp_SOURCES = main.c
94 myapp_LDADD = @ELEMENTARY_LIBS@
95 myapp_CFLAGS = @ELEMENTARY_CFLAGS@
96 @endverbatim
97  *
98  * autogen.sh:
99  *
100 @verbatim
101 #!/bin/sh
102 echo "Running aclocal..." ; aclocal $ACLOCAL_FLAGS || exit 1
103 echo "Running autoheader..." ; autoheader || exit 1
104 echo "Running autoconf..." ; autoconf || exit 1
105 echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
106 ./configure "$@"
107 @endverbatim
108  *
109  * To generate all the things needed to bootstrap just run:
110  *
111 @verbatim
112 ./autogen.sh
113 @endverbatim
114  *
115  * This will generate Makefile.in's, the confgure script and everything else.
116  * After this it works like all normal autotools projects:
117 @verbatim
118 ./configure
119 make
120 sudo make install
121 @endverbatim
122  *
123  * Note sudo was assumed to get root permissions, as this would install in
124  * /usr/local which is system-owned. Use any way you like to gain root, or
125  * specify a different prefix with configure:
126  *
127 @verbatim
128 ./confiugre --prefix=$HOME/mysoftware
129 @endverbatim
130  *
131  * Also remember that autotools buys you some useful commands like:
132 @verbatim
133 make uninstall
134 @endverbatim
135  *
136  * This uninstalls the software after it was installed with "make install".
137  * It is very useful to clear up what you built if you wish to clean the
138  * system.
139  *
140 @verbatim
141 make distcheck
142 @endverbatim
143  *
144  * This firstly checks if your build tree is "clean" and ready for
145  * distribution. It also builds a tarball (myapp-0.0.0.tar.gz) that is
146  * ready to upload and distribute to the world, that contains the generated
147  * Makefile.in's and configure script. The users do not need to run
148  * autogen.sh - just configure and on. They don't need autotools installed.
149  * This tarball also builds cleanly, has all the sources it needs to build
150  * included (that is sources for your application, not libraries it depends
151  * on like Elementary). It builds cleanly in a buildroot and does not
152  * contain any files that are temporarily generated like binaries and other
153  * build-generated files, so the tarball is clean, and no need to worry
154  * about cleaning up your tree before packaging.
155  *
156 @verbatim
157 make clean
158 @endverbatim
159  *
160  * This cleans up all build files (binaries, objects etc.) from the tree.
161  *
162 @verbatim
163 make distclean
164 @endverbatim
165  *
166  * This cleans out all files from the build and from configure's output too.
167  *
168 @verbatim
169 make maintainer-clean
170 @endverbatim
171  *
172  * This deletes all the files autogen.sh will produce so the tree is clean
173  * to be put into a revision-control system (like CVS, SVN or GIT for example).
174  *
175  * There is a more advanced way of making use of the quicklaunch infrastructure
176  * in Elementary (which will not be covered here due to its more advanced
177  * nature).
178  *
179  * Now let's actually create an interactive "Hello World" gui that you can
180  * click the ok button to exit. It's more code because this now does something
181  * much more significant, but it's still very simple:
182  *
183 @code
184 #include <Elementary.h>
185
186 static void
187 on_done(void *data, Evas_Object *obj, void *event_info)
188 {
189    // quit the mainloop (elm_run function will return)
190    elm_exit();
191 }
192
193 EAPI_MAIN int
194 elm_main(int argc, char **argv)
195 {
196    Evas_Object *win, *bg, *box, *lab, *btn;
197
198    // new window - do the usual and give it a name (hello) and title (Hello)
199    win = elm_win_util_standard_add("hello", "Hello");
200    // when the user clicks "close" on a window there is a request to delete
201    evas_object_smart_callback_add(win, "delete,request", on_done, NULL);
202
203    // add a box object - default is vertical. a box holds children in a row,
204    // either horizontally or vertically. nothing more.
205    box = elm_box_add(win);
206    // make the box hotizontal
207    elm_box_horizontal_set(box, EINA_TRUE);
208    // add object as a resize object for the window (controls window minimum
209    // size as well as gets resized if window is resized)
210    elm_win_resize_object_add(win, box);
211    evas_object_show(box);
212
213    // add a label widget, set the text and put it in the pad frame
214    lab = elm_label_add(win);
215    // set default text of the label
216    elm_object_text_set(lab, "Hello out there world!");
217    // pack the label at the end of the box
218    elm_box_pack_end(box, lab);
219    evas_object_show(lab);
220
221    // add an ok button
222    btn = elm_button_add(win);
223    // set default text of button to "OK"
224    elm_object_text_set(btn, "OK");
225    // pack the button at the end of the box
226    elm_box_pack_end(box, btn);
227    evas_object_show(btn);
228    // call on_done when button is clicked
229    evas_object_smart_callback_add(btn, "clicked", on_done, NULL);
230
231    // now we are done, show the window
232    evas_object_show(win);
233
234    // run the mainloop and process events and callbacks
235    elm_run();
236    return 0;
237 }
238 ELM_MAIN()
239 @endcode
240    *
241    */
242
243 /**
244 @page authors Authors
245 @author Carsten Haitzler <raster@@rasterman.com>
246 @author Gustavo Sverzut Barbieri <barbieri@@profusion.mobi>
247 @author Cedric Bail <cedric.bail@@free.fr>
248 @author Vincent Torri <vtorri@@univ-evry.fr>
249 @author Daniel Kolesa <quaker66@@gmail.com>
250 @author Jaime Thomas <avi.thomas@@gmail.com>
251 @author Swisscom - http://www.swisscom.ch/
252 @author Christopher Michael <devilhorns@@comcast.net>
253 @author Marco Trevisan (TreviƱo) <mail@@3v1n0.net>
254 @author Michael Bouchaud <michael.bouchaud@@gmail.com>
255 @author Jonathan Atton (Watchwolf) <jonathan.atton@@gmail.com>
256 @author Brian Wang <brian.wang.0721@@gmail.com>
257 @author Mike Blumenkrantz (zmike) <mike@@zentific.com>
258 @author Samsung Electronics <tbd>
259 @author Samsung SAIT <tbd>
260 @author Brett Nash <nash@@nash.id.au>
261 @author Bruno Dilly <bdilly@@profusion.mobi>
262 @author Rafael Fonseca <rfonseca@@profusion.mobi>
263 @author Chuneon Park <hermet@@hermet.pe.kr>
264 @author Woohyun Jung <wh0705.jung@@samsung.com>
265 @author Jaehwan Kim <jae.hwan.kim@@samsung.com>
266 @author Wonguk Jeong <wonguk.jeong@@samsung.com>
267 @author Leandro A. F. Pereira <leandro@@profusion.mobi>
268 @author Helen Fornazier <helen.fornazier@@profusion.mobi>
269 @author Gustavo Lima Chaves <glima@@profusion.mobi>
270 @author Fabiano FidĆŖncio <fidencio@@profusion.mobi>
271 @author Tiago FalcĆ£o <tiago@@profusion.mobi>
272 @author Otavio Pontes <otavio@@profusion.mobi>
273 @author Viktor Kojouharov <vkojouharov@@gmail.com>
274 @author Daniel Juyung Seo (SeoZ) <juyung.seo@@samsung.com> <seojuyung2@@gmail.com>
275 @author Sangho Park <sangho.g.park@@samsung.com> <gouache95@@gmail.com>
276 @author Rajeev Ranjan (Rajeev) <rajeev.r@@samsung.com> <rajeev.jnnce@@gmail.com>
277 @author Seunggyun Kim <sgyun.kim@@samsung.com> <tmdrbs@@gmail.com>
278 @author Sohyun Kim <anna1014.kim@@samsung.com> <sohyun.anna@@gmail.com>
279 @author Jihoon Kim <jihoon48.kim@@samsung.com>
280 @author Jeonghyun Yun (arosis) <jh0506.yun@@samsung.com>
281 @author Tom Hacohen <tom@@stosb.com>
282 @author Aharon Hillel <a.hillel@@partner.samsung.com>
283 @author Jonathan Atton (Watchwolf) <jonathan.atton@@gmail.com>
284 @author Shinwoo Kim <kimcinoo@@gmail.com>
285 @author Govindaraju SM <govi.sm@@samsung.com> <govism@@gmail.com>
286 @author Prince Kumar Dubey <prince.dubey@@samsung.com> <prince.dubey@@gmail.com>
287 @author Sung W. Park <sungwoo@gmail.com>
288 @author Thierry el Borgi <thierry@substantiel.fr>
289 @author Shilpa Singh <shilpa.singh@samsung.com> <shilpasingh.o@gmail.com>
290 @author Chanwook Jung <joey.jung@samsung.com>
291 @author Hyoyoung Chang <hyoyoung.chang@samsung.com>
292 @author Guillaume "Kuri" Friloux <guillaume.friloux@asp64.com>
293 @author Kim Yunhan <spbear@gmail.com>
294
295 Please contact <enlightenment-devel@lists.sourceforge.net> to get in
296 contact with the developers and maintainers.
297  */
298
299 #ifndef ELEMENTARY_H
300 #define ELEMENTARY_H
301
302 /**
303  * @file Elementary.h
304  * @brief Elementary's API
305  *
306  * Elementary API.
307  */
308
309 @ELM_UNIX_DEF@ ELM_UNIX
310 @ELM_WIN32_DEF@ ELM_WIN32
311 @ELM_WINCE_DEF@ ELM_WINCE
312 @ELM_EDBUS_DEF@ ELM_EDBUS
313 @ELM_EFREET_DEF@ ELM_EFREET
314 @ELM_ETHUMB_DEF@ ELM_ETHUMB
315 @ELM_WEB_DEF@ ELM_WEB
316 @ELM_EMAP_DEF@ ELM_EMAP
317 @ELM_DEBUG_DEF@ ELM_DEBUG
318 @ELM_ALLOCA_H_DEF@ ELM_ALLOCA_H
319 @ELM_LIBINTL_H_DEF@ ELM_LIBINTL_H
320
321 /* Standard headers for standard system calls etc. */
322 #include <stdio.h>
323 #include <stdlib.h>
324 #include <unistd.h>
325 #include <string.h>
326 #include <sys/types.h>
327 #include <sys/stat.h>
328 #include <sys/time.h>
329 #include <sys/param.h>
330 #include <dlfcn.h>
331 #include <math.h>
332 #include <fnmatch.h>
333 #include <limits.h>
334 #include <ctype.h>
335 #include <time.h>
336 #include <dirent.h>
337 #include <pwd.h>
338 #include <errno.h>
339
340 #ifdef ELM_UNIX
341 # include <locale.h>
342 # ifdef ELM_LIBINTL_H
343 #  include <libintl.h>
344 # endif
345 # include <signal.h>
346 # include <grp.h>
347 # include <glob.h>
348 #endif
349
350 #ifdef ELM_ALLOCA_H
351 # include <alloca.h>
352 #endif
353
354 #if defined (ELM_WIN32) || defined (ELM_WINCE)
355 # include <malloc.h>
356 # ifndef alloca
357 #  define alloca _alloca
358 # endif
359 #endif
360
361
362 /* EFL headers */
363 #include <Eina.h>
364 #include <Eet.h>
365 #include <Evas.h>
366 #include <Evas_GL.h>
367 #include <Ecore.h>
368 #include <Ecore_Evas.h>
369 #include <Ecore_File.h>
370 #include <Ecore_IMF.h>
371 #include <Ecore_Con.h>
372 #include <Edje.h>
373
374 #ifdef ELM_EDBUS
375 # include <E_DBus.h>
376 #endif
377
378 #ifdef ELM_EFREET
379 # include <Efreet.h>
380 # include <Efreet_Mime.h>
381 # include <Efreet_Trash.h>
382 #endif
383
384 #ifdef ELM_ETHUMB
385 # include <Ethumb_Client.h>
386 #endif
387
388 #ifdef ELM_EMAP
389 # include <EMap.h>
390 #endif
391
392 #ifdef EAPI
393 # undef EAPI
394 #endif
395
396 #ifdef _WIN32
397 # ifdef ELEMENTARY_BUILD
398 #  ifdef DLL_EXPORT
399 #   define EAPI __declspec(dllexport)
400 #  else
401 #   define EAPI
402 #  endif /* ! DLL_EXPORT */
403 # else
404 #  define EAPI __declspec(dllimport)
405 # endif /* ! EFL_EVAS_BUILD */
406 #else
407 # ifdef __GNUC__
408 #  if __GNUC__ >= 4
409 #   define EAPI __attribute__ ((visibility("default")))
410 #  else
411 #   define EAPI
412 #  endif
413 # else
414 #  define EAPI
415 # endif
416 #endif /* ! _WIN32 */
417
418 #ifdef _WIN32
419 # define EAPI_MAIN
420 #else
421 # define EAPI_MAIN EAPI
422 #endif
423
424 /* allow usage from c++ */
425 #ifdef __cplusplus
426 extern "C" {
427 #endif
428
429 #define ELM_VERSION_MAJOR @VMAJ@
430 #define ELM_VERSION_MINOR @VMIN@
431
432    typedef struct _Elm_Version
433      {
434         int major;
435         int minor;
436         int micro;
437         int revision;
438      } Elm_Version;
439
440    EAPI extern Elm_Version *elm_version;
441
442 /* handy macros */
443 #define ELM_RECTS_INTERSECT(x, y, w, h, xx, yy, ww, hh) (((x) < ((xx) + (ww))) && ((y) < ((yy) + (hh))) && (((x) + (w)) > (xx)) && (((y) + (h)) > (yy)))
444 #define ELM_PI 3.14159265358979323846
445
446    /**
447     * @defgroup General General
448     *
449     * @brief General Elementary API. Functions that don't relate to
450     * Elementary objects specifically.
451     *
452     * Here are documented functions which init/shutdown the library,
453     * that apply to generic Elementary objects, that deal with
454     * configuration, et cetera.
455     *
456     * @ref general_functions_example_page "This" example contemplates
457     * some of these functions.
458     */
459
460    /**
461     * @addtogroup General
462     * @{
463     */
464
465   /**
466    * Defines couple of standard Evas_Object layers to be used
467    * with evas_object_layer_set().
468    *
469    * @note whenever extending with new values, try to keep some padding
470    *       to siblings so there is room for further extensions.
471    */
472   typedef enum _Elm_Object_Layer
473     {
474        ELM_OBJECT_LAYER_BACKGROUND = EVAS_LAYER_MIN + 64, /**< where to place backgrounds */
475        ELM_OBJECT_LAYER_DEFAULT = 0, /**< Evas_Object default layer (and thus for Elementary) */
476        ELM_OBJECT_LAYER_FOCUS = EVAS_LAYER_MAX - 128, /**< where focus object visualization is */
477        ELM_OBJECT_LAYER_TOOLTIP = EVAS_LAYER_MAX - 64, /**< where to show tooltips */
478        ELM_OBJECT_LAYER_CURSOR = EVAS_LAYER_MAX - 32, /**< where to show cursors */
479        ELM_OBJECT_LAYER_LAST /**< last layer known by Elementary */
480     } Elm_Object_Layer;
481
482 /**************************************************************************/
483    EAPI extern int ELM_ECORE_EVENT_ETHUMB_CONNECT;
484
485    /**
486     * Emitted when any Elementary's policy value is changed.
487     */
488    EAPI extern int ELM_EVENT_POLICY_CHANGED;
489
490    /**
491     * @typedef Elm_Event_Policy_Changed
492     *
493     * Data on the event when an Elementary policy has changed
494     */
495     typedef struct _Elm_Event_Policy_Changed Elm_Event_Policy_Changed;
496
497    /**
498     * @struct _Elm_Event_Policy_Changed
499     *
500     * Data on the event when an Elementary policy has changed
501     */
502     struct _Elm_Event_Policy_Changed
503      {
504         unsigned int policy; /**< the policy identifier */
505         int          new_value; /**< value the policy had before the change */
506         int          old_value; /**< new value the policy got */
507     };
508
509    /**
510     * Policy identifiers.
511     */
512     typedef enum _Elm_Policy
513     {
514         ELM_POLICY_QUIT, /**< under which circumstances the application
515                           * should quit automatically. @see
516                           * Elm_Policy_Quit.
517                           */
518         ELM_POLICY_LAST
519     } Elm_Policy; /**< Elementary policy identifiers/groups enumeration.  @see elm_policy_set()
520  */
521
522    typedef enum _Elm_Policy_Quit
523      {
524         ELM_POLICY_QUIT_NONE = 0, /**< never quit the application
525                                    * automatically */
526         ELM_POLICY_QUIT_LAST_WINDOW_CLOSED /**< quit when the
527                                             * application's last
528                                             * window is closed */
529      } Elm_Policy_Quit; /**< Possible values for the #ELM_POLICY_QUIT policy */
530
531    typedef enum _Elm_Focus_Direction
532      {
533         ELM_FOCUS_PREVIOUS,
534         ELM_FOCUS_NEXT
535      } Elm_Focus_Direction;
536
537    typedef enum _Elm_Text_Format
538      {
539         ELM_TEXT_FORMAT_PLAIN_UTF8,
540         ELM_TEXT_FORMAT_MARKUP_UTF8
541      } Elm_Text_Format;
542
543    /**
544     * Line wrapping types.
545     */
546    typedef enum _Elm_Wrap_Type
547      {
548         ELM_WRAP_NONE = 0, /**< No wrap - value is zero */
549         ELM_WRAP_CHAR, /**< Char wrap - wrap between characters */
550         ELM_WRAP_WORD, /**< Word wrap - wrap in allowed wrapping points (as defined in the unicode standard) */
551         ELM_WRAP_MIXED, /**< Mixed wrap - Word wrap, and if that fails, char wrap. */
552         ELM_WRAP_LAST
553      } Elm_Wrap_Type;
554
555    typedef enum
556      {
557         ELM_INPUT_PANEL_LAYOUT_NORMAL,          /**< Default layout */
558         ELM_INPUT_PANEL_LAYOUT_NUMBER,          /**< Number layout */
559         ELM_INPUT_PANEL_LAYOUT_EMAIL,           /**< Email layout */
560         ELM_INPUT_PANEL_LAYOUT_URL,             /**< URL layout */
561         ELM_INPUT_PANEL_LAYOUT_PHONENUMBER,     /**< Phone Number layout */
562         ELM_INPUT_PANEL_LAYOUT_IP,              /**< IP layout */
563         ELM_INPUT_PANEL_LAYOUT_MONTH,           /**< Month layout */
564         ELM_INPUT_PANEL_LAYOUT_NUMBERONLY,      /**< Number Only layout */
565         ELM_INPUT_PANEL_LAYOUT_INVALID
566      } Elm_Input_Panel_Layout;
567
568    typedef enum
569      {
570         ELM_AUTOCAPITAL_TYPE_NONE,
571         ELM_AUTOCAPITAL_TYPE_WORD,
572         ELM_AUTOCAPITAL_TYPE_SENTENCE,
573         ELM_AUTOCAPITAL_TYPE_ALLCHARACTER,
574      } Elm_Autocapital_Type;
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     */
589    typedef Evas_Object *(*Elm_Tooltip_Content_Cb) (void *data, Evas_Object *obj);
590
591    /**
592     * Called back when a widget's item tooltip is activated and needs content.
593     * @param data user-data given to elm_object_tooltip_content_cb_set()
594     * @param obj owner widget.
595     * @param item context dependent item. As an example, if tooltip was
596     *        set on Elm_List_Item, then it is of this type.
597     */
598    typedef Evas_Object *(*Elm_Tooltip_Item_Content_Cb) (void *data, Evas_Object *obj, void *item);
599
600    typedef Eina_Bool (*Elm_Event_Cb) (void *data, Evas_Object *obj, Evas_Object *src, Evas_Callback_Type type, void *event_info);
601
602 #ifndef ELM_LIB_QUICKLAUNCH
603 #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 */
604 #else
605 #define ELM_MAIN() int main(int argc, char **argv) {return elm_quicklaunch_fallback(argc, argv);} /**< macro to be used after the elm_main() function */
606 #endif
607
608 /**************************************************************************/
609    /* General calls */
610
611    /**
612     * Initialize Elementary
613     *
614     * @param[in] argc System's argument count value
615     * @param[in] argv System's pointer to array of argument strings
616     * @return The init counter value.
617     *
618     * This function initializes Elementary and increments a counter of
619     * the number of calls to it. It returns the new counter's value.
620     *
621     * @warning This call is exported only for use by the @c ELM_MAIN()
622     * macro. There is no need to use this if you use this macro (which
623     * is highly advisable). An elm_main() should contain the entry
624     * point code for your application, having the same prototype as
625     * elm_init(), and @b not being static (putting the @c EAPI symbol
626     * in front of its type declaration is advisable). The @c
627     * ELM_MAIN() call should be placed just after it.
628     *
629     * Example:
630     * @dontinclude bg_example_01.c
631     * @skip static void
632     * @until ELM_MAIN
633     *
634     * See the full @ref bg_example_01_c "example".
635     *
636     * @see elm_shutdown().
637     * @ingroup General
638     */
639    EAPI int          elm_init(int argc, char **argv);
640
641    /**
642     * Shut down Elementary
643     *
644     * @return The init counter value.
645     *
646     * This should be called at the end of your application, just
647     * before it ceases to do any more processing. This will clean up
648     * any permanent resources your application may have allocated via
649     * Elementary that would otherwise persist.
650     *
651     * @see elm_init() for an example
652     *
653     * @ingroup General
654     */
655    EAPI int          elm_shutdown(void);
656
657    /**
658     * Run Elementary's main loop
659     *
660     * This call should be issued just after all initialization is
661     * completed. This function will not return until elm_exit() is
662     * called. It will keep looping, running the main
663     * (event/processing) loop for Elementary.
664     *
665     * @see elm_init() for an example
666     *
667     * @ingroup General
668     */
669    EAPI void         elm_run(void);
670
671    /**
672     * Exit Elementary's main loop
673     *
674     * If this call is issued, it will flag the main loop to cease
675     * processing and return back to its parent function (usually your
676     * elm_main() function).
677     *
678     * @see elm_init() for an example. There, just after a request to
679     * close the window comes, the main loop will be left.
680     *
681     * @note By using the appropriate #ELM_POLICY_QUIT on your Elementary
682     * applications, you'll be able to get this function called automatically for you.
683     *
684     * @ingroup General
685     */
686    EAPI void         elm_exit(void);
687
688    /**
689     * Provide information in order to make Elementary determine the @b
690     * run time location of the software in question, so other data files
691     * such as images, sound files, executable utilities, libraries,
692     * modules and locale files can be found.
693     *
694     * @param mainfunc This is your application's main function name,
695     *        whose binary's location is to be found. Providing @c NULL
696     *        will make Elementary not to use it
697     * @param dom This will be used as the application's "domain", in the
698     *        form of a prefix to any environment variables that may
699     *        override prefix detection and the directory name, inside the
700     *        standard share or data directories, where the software's
701     *        data files will be looked for.
702     * @param checkfile This is an (optional) magic file's path to check
703     *        for existence (and it must be located in the data directory,
704     *        under the share directory provided above). Its presence will
705     *        help determine the prefix found was correct. Pass @c NULL if
706     *        the check is not to be done.
707     *
708     * This function allows one to re-locate the application somewhere
709     * else after compilation, if the developer wishes for easier
710     * distribution of pre-compiled binaries.
711     *
712     * The prefix system is designed to locate where the given software is
713     * installed (under a common path prefix) at run time and then report
714     * specific locations of this prefix and common directories inside
715     * this prefix like the binary, library, data and locale directories,
716     * through the @c elm_app_*_get() family of functions.
717     *
718     * Call elm_app_info_set() early on before you change working
719     * directory or anything about @c argv[0], so it gets accurate
720     * information.
721     *
722     * It will then try and trace back which file @p mainfunc comes from,
723     * if provided, to determine the application's prefix directory.
724     *
725     * The @p dom parameter provides a string prefix to prepend before
726     * environment variables, allowing a fallback to @b specific
727     * environment variables to locate the software. You would most
728     * probably provide a lowercase string there, because it will also
729     * serve as directory domain, explained next. For environment
730     * variables purposes, this string is made uppercase. For example if
731     * @c "myapp" is provided as the prefix, then the program would expect
732     * @c "MYAPP_PREFIX" as a master environment variable to specify the
733     * exact install prefix for the software, or more specific environment
734     * variables like @c "MYAPP_BIN_DIR", @c "MYAPP_LIB_DIR", @c
735     * "MYAPP_DATA_DIR" and @c "MYAPP_LOCALE_DIR", which could be set by
736     * the user or scripts before launching. If not provided (@c NULL),
737     * environment variables will not be used to override compiled-in
738     * defaults or auto detections.
739     *
740     * The @p dom string also provides a subdirectory inside the system
741     * shared data directory for data files. For example, if the system
742     * directory is @c /usr/local/share, then this directory name is
743     * appended, creating @c /usr/local/share/myapp, if it @p was @c
744     * "myapp". It is expected that the application installs data files in
745     * this directory.
746     *
747     * The @p checkfile is a file name or path of something inside the
748     * share or data directory to be used to test that the prefix
749     * detection worked. For example, your app will install a wallpaper
750     * image as @c /usr/local/share/myapp/images/wallpaper.jpg and so to
751     * check that this worked, provide @c "images/wallpaper.jpg" as the @p
752     * checkfile string.
753     *
754     * @see elm_app_compile_bin_dir_set()
755     * @see elm_app_compile_lib_dir_set()
756     * @see elm_app_compile_data_dir_set()
757     * @see elm_app_compile_locale_set()
758     * @see elm_app_prefix_dir_get()
759     * @see elm_app_bin_dir_get()
760     * @see elm_app_lib_dir_get()
761     * @see elm_app_data_dir_get()
762     * @see elm_app_locale_dir_get()
763     */
764    EAPI void         elm_app_info_set(void *mainfunc, const char *dom, const char *checkfile);
765
766    /**
767     * Provide information on the @b fallback application's binaries
768     * directory, in scenarios where they get overriden by
769     * elm_app_info_set().
770     *
771     * @param dir The path to the default binaries directory (compile time
772     * one)
773     *
774     * @note Elementary will as well use this path to determine actual
775     * names of binaries' directory paths, maybe changing it to be @c
776     * something/local/bin instead of @c something/bin, only, for
777     * example.
778     *
779     * @warning You should call this function @b before
780     * elm_app_info_set().
781     */
782    EAPI void         elm_app_compile_bin_dir_set(const char *dir);
783
784    /**
785     * Provide information on the @b fallback application's libraries
786     * directory, on scenarios where they get overriden by
787     * elm_app_info_set().
788     *
789     * @param dir The path to the default libraries directory (compile
790     * time one)
791     *
792     * @note Elementary will as well use this path to determine actual
793     * names of libraries' directory paths, maybe changing it to be @c
794     * something/lib32 or @c something/lib64 instead of @c something/lib,
795     * only, for example.
796     *
797     * @warning You should call this function @b before
798     * elm_app_info_set().
799     */
800    EAPI void         elm_app_compile_lib_dir_set(const char *dir);
801
802    /**
803     * Provide information on the @b fallback application's data
804     * directory, on scenarios where they get overriden by
805     * elm_app_info_set().
806     *
807     * @param dir The path to the default data directory (compile time
808     * one)
809     *
810     * @note Elementary will as well use this path to determine actual
811     * names of data directory paths, maybe changing it to be @c
812     * something/local/share instead of @c something/share, only, for
813     * example.
814     *
815     * @warning You should call this function @b before
816     * elm_app_info_set().
817     */
818    EAPI void         elm_app_compile_data_dir_set(const char *dir);
819
820    /**
821     * Provide information on the @b fallback application's locale
822     * directory, on scenarios where they get overriden by
823     * elm_app_info_set().
824     *
825     * @param dir The path to the default locale directory (compile time
826     * one)
827     *
828     * @warning You should call this function @b before
829     * elm_app_info_set().
830     */
831    EAPI void         elm_app_compile_locale_set(const char *dir);
832
833    /**
834     * Retrieve the application's run time prefix directory, as set by
835     * elm_app_info_set() and the way (environment) the application was
836     * run from.
837     *
838     * @return The directory prefix the application is actually using.
839     */
840    EAPI const char  *elm_app_prefix_dir_get(void);
841
842    /**
843     * Retrieve the application's run time binaries prefix directory, as
844     * set by elm_app_info_set() and the way (environment) the application
845     * was run from.
846     *
847     * @return The binaries directory prefix the application is actually
848     * using.
849     */
850    EAPI const char  *elm_app_bin_dir_get(void);
851
852    /**
853     * Retrieve the application's run time libraries prefix directory, as
854     * set by elm_app_info_set() and the way (environment) the application
855     * was run from.
856     *
857     * @return The libraries directory prefix the application is actually
858     * using.
859     */
860    EAPI const char  *elm_app_lib_dir_get(void);
861
862    /**
863     * Retrieve the application's run time data prefix directory, as
864     * set by elm_app_info_set() and the way (environment) the application
865     * was run from.
866     *
867     * @return The data directory prefix the application is actually
868     * using.
869     */
870    EAPI const char  *elm_app_data_dir_get(void);
871
872    /**
873     * Retrieve the application's run time locale prefix directory, as
874     * set by elm_app_info_set() and the way (environment) the application
875     * was run from.
876     *
877     * @return The locale directory prefix the application is actually
878     * using.
879     */
880    EAPI const char  *elm_app_locale_dir_get(void);
881
882    EAPI void         elm_quicklaunch_mode_set(Eina_Bool ql_on);
883    EAPI Eina_Bool    elm_quicklaunch_mode_get(void);
884    EAPI int          elm_quicklaunch_init(int argc, char **argv);
885    EAPI int          elm_quicklaunch_sub_init(int argc, char **argv);
886    EAPI int          elm_quicklaunch_sub_shutdown(void);
887    EAPI int          elm_quicklaunch_shutdown(void);
888    EAPI void         elm_quicklaunch_seed(void);
889    EAPI Eina_Bool    elm_quicklaunch_prepare(int argc, char **argv);
890    EAPI Eina_Bool    elm_quicklaunch_fork(int argc, char **argv, char *cwd, void (postfork_func) (void *data), void *postfork_data);
891    EAPI void         elm_quicklaunch_cleanup(void);
892    EAPI int          elm_quicklaunch_fallback(int argc, char **argv);
893    EAPI char        *elm_quicklaunch_exe_path_get(const char *exe);
894
895    EAPI Eina_Bool    elm_need_efreet(void);
896    EAPI Eina_Bool    elm_need_e_dbus(void);
897
898    /**
899     * This must be called before any other function that deals with
900     * elm_thumb objects or ethumb_client instances.
901     *
902     * @ingroup Thumb
903     */
904    EAPI Eina_Bool    elm_need_ethumb(void);
905
906    /**
907     * This must be called before any other function that deals with
908     * elm_web objects or ewk_view instances.
909     *
910     * @ingroup Web
911     */
912    EAPI Eina_Bool    elm_need_web(void);
913
914    /**
915     * Set a new policy's value (for a given policy group/identifier).
916     *
917     * @param policy policy identifier, as in @ref Elm_Policy.
918     * @param value policy value, which depends on the identifier
919     *
920     * @return @c EINA_TRUE on success or @c EINA_FALSE, on error.
921     *
922     * Elementary policies define applications' behavior,
923     * somehow. These behaviors are divided in policy groups (see
924     * #Elm_Policy enumeration). This call will emit the Ecore event
925     * #ELM_EVENT_POLICY_CHANGED, which can be hooked at with
926     * handlers. An #Elm_Event_Policy_Changed struct will be passed,
927     * then.
928     *
929     * @note Currently, we have only one policy identifier/group
930     * (#ELM_POLICY_QUIT), which has two possible values.
931     *
932     * @ingroup General
933     */
934    EAPI Eina_Bool    elm_policy_set(unsigned int policy, int value);
935
936    /**
937     * Gets the policy value for given policy identifier.
938     *
939     * @param policy policy identifier, as in #Elm_Policy.
940     * @return The currently set policy value, for that
941     * identifier. Will be @c 0 if @p policy passed is invalid.
942     *
943     * @ingroup General
944     */
945    EAPI int          elm_policy_get(unsigned int policy);
946
947    /**
948     * Change the language of the current application
949     *
950     * The @p lang passed must be the full name of the locale to use, for
951     * example "en_US.utf8" or "es_ES@euro".
952     *
953     * Changing language with this function will make Elementary run through
954     * all its widgets, translating strings set with
955     * elm_object_domain_translatable_text_part_set(). This way, an entire
956     * UI can have its language changed without having to restart the program.
957     *
958     * For more complex cases, like having formatted strings that need
959     * translation, widgets will also emit a "language,changed" signal that
960     * the user can listen to to manually translate the text.
961     *
962     * @param lang Language to set, must be the full name of the locale
963     *
964     * @ingroup General
965     */
966    EAPI void         elm_language_set(const char *lang);
967
968    /**
969     * Set a label of an object
970     *
971     * @param obj The Elementary object
972     * @param part The text part name to set (NULL for the default label)
973     * @param label The new text of the label
974     *
975     * @note Elementary objects may have many labels (e.g. Action Slider)
976     * @deprecated Use elm_object_part_text_set() instead.
977     * @ingroup General
978     */
979    EINA_DEPRECATED EAPI void elm_object_text_part_set(Evas_Object *obj, const char *part, const char *label);
980
981    /**
982     * Set a label of an object
983     *
984     * @param obj The Elementary object
985     * @param part The text part name to set (NULL for the default label)
986     * @param label The new text of the label
987     *
988     * @note Elementary objects may have many labels (e.g. Action Slider)
989     *
990     * @ingroup General
991     */
992    EAPI void elm_object_part_text_set(Evas_Object *obj, const char *part, const char *label);
993
994 #define elm_object_text_set(obj, label) elm_object_part_text_set((obj), NULL, (label))
995
996    /**
997     * Get a label of an object
998     *
999     * @param obj The Elementary object
1000     * @param part The text part name to get (NULL for the default label)
1001     * @return text of the label or NULL for any error
1002     *
1003     * @note Elementary objects may have many labels (e.g. Action Slider)
1004     * @deprecated Use elm_object_part_text_get() instead.
1005     * @ingroup General
1006     */
1007    EINA_DEPRECATED EAPI const char  *elm_object_text_part_get(const Evas_Object *obj, const char *part);
1008
1009    /**
1010     * Get a label of an object
1011     *
1012     * @param obj The Elementary object
1013     * @param part The text part name to get (NULL for the default label)
1014     * @return text of the label or NULL for any error
1015     *
1016     * @note Elementary objects may have many labels (e.g. Action Slider)
1017     *
1018     * @ingroup General
1019     */
1020    EAPI const char  *elm_object_part_text_get(const Evas_Object *obj, const char *part);
1021
1022 #define elm_object_text_get(obj) elm_object_part_text_get((obj), NULL)
1023
1024    /**
1025     * Set the text for an objects' part, marking it as translatable.
1026     *
1027     * The string to set as @p text must be the original one. Do not pass the
1028     * return of @c gettext() here. Elementary will translate the string
1029     * internally and set it on the object using elm_object_part_text_set(),
1030     * also storing the original string so that it can be automatically
1031     * translated when the language is changed with elm_language_set().
1032     *
1033     * The @p domain will be stored along to find the translation in the
1034     * correct catalog. It can be NULL, in which case it will use whatever
1035     * domain was set by the application with @c textdomain(). This is useful
1036     * in case you are building a library on top of Elementary that will have
1037     * its own translatable strings, that should not be mixed with those of
1038     * programs using the library.
1039     *
1040     * @param obj The object containing the text part
1041     * @param part The name of the part to set
1042     * @param domain The translation domain to use
1043     * @param text The original, non-translated text to set
1044     *
1045     * @ingroup General
1046     */
1047    EAPI void         elm_object_domain_translatable_text_part_set(Evas_Object *obj, const char *part, const char *domain, const char *text);
1048
1049 #define elm_object_domain_translatable_text_set(obj, domain, text) elm_object_domain_translatable_text_part_set((obj), NULL, (domain), (text))
1050
1051 #define elm_object_translatable_text_set(obj, text) elm_object_domain_translatable_text_part_set((obj), NULL, NULL, (text))
1052
1053    /**
1054     * Gets the original string set as translatable for an object
1055     *
1056     * When setting translated strings, the function elm_object_part_text_get()
1057     * will return the translation returned by @c gettext(). To get the
1058     * original string use this function.
1059     *
1060     * @param obj The object
1061     * @param part The name of the part that was set
1062     *
1063     * @return The original, untranslated string
1064     *
1065     * @ingroup General
1066     */
1067    EAPI const char  *elm_object_translatable_text_part_get(const Evas_Object *obj, const char *part);
1068
1069 #define elm_object_translatable_text_get(obj) elm_object_translatable_text_part_get((obj), NULL)
1070
1071    /**
1072     * Set a content of an object
1073     *
1074     * @param obj The Elementary object
1075     * @param part The content part name to set (NULL for the default content)
1076     * @param content The new content of the object
1077     *
1078     * @note Elementary objects may have many contents
1079     *
1080     * @ingroup General
1081     */
1082    EAPI void elm_object_content_part_set(Evas_Object *obj, const char *part, Evas_Object *content);
1083
1084 #define elm_object_content_set(obj, content) elm_object_content_part_set((obj), NULL, (content))
1085
1086    /**
1087     * Get a content of an object
1088     *
1089     * @param obj The Elementary object
1090     * @param item The content part name to get (NULL for the default content)
1091     * @return content of the object or NULL for any error
1092     *
1093     * @note Elementary objects may have many contents
1094     *
1095     * @ingroup General
1096     */
1097    EAPI Evas_Object *elm_object_content_part_get(const Evas_Object *obj, const char *part);
1098
1099 #define elm_object_content_get(obj) elm_object_content_part_get((obj), NULL)
1100
1101    /**
1102     * Unset a content of an object
1103     *
1104     * @param obj The Elementary object
1105     * @param item The content part name to unset (NULL for the default content)
1106     *
1107     * @note Elementary objects may have many contents
1108     *
1109     * @ingroup General
1110     */
1111    EAPI Evas_Object *elm_object_content_part_unset(Evas_Object *obj, const char *part);
1112
1113 #define elm_object_content_unset(obj) elm_object_content_part_unset((obj), NULL)
1114
1115    /**
1116     * Get the widget object's handle which contains a given item
1117     *
1118     * @param item The Elementary object item
1119     * @return The widget object
1120     *
1121     * @note This returns the widget object itself that an item belongs to.
1122     *
1123     * @ingroup General
1124     */
1125    EAPI Evas_Object *elm_object_item_object_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
1126
1127    /**
1128     * Set a content of an object item
1129     *
1130     * @param it The Elementary object item
1131     * @param part The content part name to set (NULL for the default content)
1132     * @param content The new content of the object item
1133     *
1134     * @note Elementary object items may have many contents
1135     *
1136     * @ingroup General
1137     */
1138    EAPI void elm_object_item_content_part_set(Elm_Object_Item *it, const char *part, Evas_Object *content);
1139
1140 #define elm_object_item_content_set(it, content) elm_object_item_content_part_set((it), NULL, (content))
1141
1142    /**
1143     * Get a content of an object item
1144     *
1145     * @param it The Elementary object item
1146     * @param part The content part name to unset (NULL for the default content)
1147     * @return content of the object item or NULL for any error
1148     *
1149     * @note Elementary object items may have many contents
1150     *
1151     * @ingroup General
1152     */
1153    EAPI Evas_Object *elm_object_item_content_part_get(const Elm_Object_Item *it, const char *part);
1154
1155 #define elm_object_item_content_get(it) elm_object_item_content_part_get((it), NULL)
1156
1157    /**
1158     * Unset a content of an object item
1159     *
1160     * @param it The Elementary object item
1161     * @param part The content part name to unset (NULL for the default content)
1162     *
1163     * @note Elementary object items may have many contents
1164     *
1165     * @ingroup General
1166     */
1167    EAPI Evas_Object *elm_object_item_content_part_unset(Elm_Object_Item *it, const char *part);
1168
1169 #define elm_object_item_content_unset(it, content) elm_object_item_content_part_unset((it), (content))
1170
1171    /**
1172     * Set a label of an object item
1173     *
1174     * @param it The Elementary object item
1175     * @param part The text part name to set (NULL for the default label)
1176     * @param label The new text of the label
1177     *
1178     * @note Elementary object items may have many labels
1179     *
1180     * @ingroup General
1181     */
1182    EAPI void elm_object_item_text_part_set(Elm_Object_Item *it, const char *part, const char *label);
1183
1184 #define elm_object_item_text_set(it, label) elm_object_item_text_part_set((it), NULL, (label))
1185
1186    /**
1187     * Get a label of an object item
1188     *
1189     * @param it The Elementary object item
1190     * @param part The text part name to get (NULL for the default label)
1191     * @return text of the label or NULL for any error
1192     *
1193     * @note Elementary object items may have many labels
1194     *
1195     * @ingroup General
1196     */
1197    EAPI const char *elm_object_item_text_part_get(const Elm_Object_Item *it, const char *part);
1198
1199    /**
1200     * Set the text to read out when in accessibility mode
1201     *
1202     * @param obj The object which is to be described
1203     * @param txt The text that describes the widget to people with poor or no vision
1204     *
1205     * @ingroup General
1206     */
1207    EAPI void elm_object_access_info_set(Evas_Object *obj, const char *txt);
1208
1209    /**
1210     * Set the text to read out when in accessibility mode
1211     *
1212     * @param it The object item which is to be described
1213     * @param txt The text that describes the widget to people with poor or no vision
1214     *
1215     * @ingroup General
1216     */
1217    EAPI void elm_object_item_access_info_set(Elm_Object_Item *it, const char *txt);
1218
1219
1220 #define elm_object_item_text_get(it) elm_object_item_text_part_get((it), NULL)
1221
1222    /**
1223     * Set the text to read out when in accessibility mode
1224     *
1225     * @param obj The object which is to be described
1226     * @param txt The text that describes the widget to people with poor or no vision
1227     *
1228     * @ingroup General
1229     */
1230    EAPI void elm_object_access_info_set(Evas_Object *obj, const char *txt);
1231
1232    /**
1233     * Set the text to read out when in accessibility mode
1234     *
1235     * @param it The object item which is to be described
1236     * @param txt The text that describes the widget to people with poor or no vision
1237     *
1238     * @ingroup General
1239     */
1240    EAPI void elm_object_item_access_info_set(Elm_Object_Item *it, const char *txt);
1241
1242    /**
1243     * Get the data associated with an object item
1244     * @param it The Elementary object item
1245     * @return The data associated with @p it
1246     *
1247     * @ingroup General
1248     */
1249    EAPI void *elm_object_item_data_get(const Elm_Object_Item *it);
1250
1251    /**
1252     * Set the data associated with an object item
1253     * @param it The Elementary object item
1254     * @param data The data to be associated with @p it
1255     *
1256     * @ingroup General
1257     */
1258    EAPI void elm_object_item_data_set(Elm_Object_Item *it, void *data);
1259
1260    /**
1261     * Send a signal to the edje object of the widget item.
1262     *
1263     * This function sends a signal to the edje object of the obj item. An
1264     * edje program can respond to a signal by specifying matching
1265     * 'signal' and 'source' fields.
1266     *
1267     * @param it The Elementary object item
1268     * @param emission The signal's name.
1269     * @param source The signal's source.
1270     * @ingroup General
1271     */
1272    EAPI void             elm_object_item_signal_emit(Elm_Object_Item *it, const char *emission, const char *source) EINA_ARG_NONNULL(1);
1273
1274    /**
1275     * @}
1276     */
1277
1278    /**
1279     * @defgroup Caches Caches
1280     *
1281     * These are functions which let one fine-tune some cache values for
1282     * Elementary applications, thus allowing for performance adjustments.
1283     *
1284     * @{
1285     */
1286
1287    /**
1288     * @brief Flush all caches.
1289     *
1290     * Frees all data that was in cache and is not currently being used to reduce
1291     * memory usage. This frees Edje's, Evas' and Eet's cache. This is equivalent
1292     * to calling all of the following functions:
1293     * @li edje_file_cache_flush()
1294     * @li edje_collection_cache_flush()
1295     * @li eet_clearcache()
1296     * @li evas_image_cache_flush()
1297     * @li evas_font_cache_flush()
1298     * @li evas_render_dump()
1299     * @note Evas caches are flushed for every canvas associated with a window.
1300     *
1301     * @ingroup Caches
1302     */
1303    EAPI void         elm_all_flush(void);
1304
1305    /**
1306     * Get the configured cache flush interval time
1307     *
1308     * This gets the globally configured cache flush interval time, in
1309     * ticks
1310     *
1311     * @return The cache flush interval time
1312     * @ingroup Caches
1313     *
1314     * @see elm_all_flush()
1315     */
1316    EAPI int          elm_cache_flush_interval_get(void);
1317
1318    /**
1319     * Set the configured cache flush interval time
1320     *
1321     * This sets the globally configured cache flush interval time, in ticks
1322     *
1323     * @param size The cache flush interval time
1324     * @ingroup Caches
1325     *
1326     * @see elm_all_flush()
1327     */
1328    EAPI void         elm_cache_flush_interval_set(int size);
1329
1330    /**
1331     * Set the configured cache flush interval time for all applications on the
1332     * display
1333     *
1334     * This sets the globally configured cache flush interval time -- in ticks
1335     * -- for all applications on the display.
1336     *
1337     * @param size The cache flush interval time
1338     * @ingroup Caches
1339     */
1340    EAPI void         elm_cache_flush_interval_all_set(int size);
1341
1342    /**
1343     * Get the configured cache flush enabled state
1344     *
1345     * This gets the globally configured cache flush state - if it is enabled
1346     * or not. When cache flushing is enabled, elementary will regularly
1347     * (see elm_cache_flush_interval_get() ) flush caches and dump data out of
1348     * memory and allow usage to re-seed caches and data in memory where it
1349     * can do so. An idle application will thus minimise its memory usage as
1350     * data will be freed from memory and not be re-loaded as it is idle and
1351     * not rendering or doing anything graphically right now.
1352     *
1353     * @return The cache flush state
1354     * @ingroup Caches
1355     *
1356     * @see elm_all_flush()
1357     */
1358    EAPI Eina_Bool    elm_cache_flush_enabled_get(void);
1359
1360    /**
1361     * Set the configured cache flush enabled state
1362     *
1363     * This sets the globally configured cache flush enabled state.
1364     *
1365     * @param size The cache flush enabled state
1366     * @ingroup Caches
1367     *
1368     * @see elm_all_flush()
1369     */
1370    EAPI void         elm_cache_flush_enabled_set(Eina_Bool enabled);
1371
1372    /**
1373     * Set the configured cache flush enabled state for all applications on the
1374     * display
1375     *
1376     * This sets the globally configured cache flush enabled state for all
1377     * applications on the display.
1378     *
1379     * @param size The cache flush enabled state
1380     * @ingroup Caches
1381     */
1382    EAPI void         elm_cache_flush_enabled_all_set(Eina_Bool enabled);
1383
1384    /**
1385     * Get the configured font cache size
1386     *
1387     * This gets the globally configured font cache size, in bytes.
1388     *
1389     * @return The font cache size
1390     * @ingroup Caches
1391     */
1392    EAPI int          elm_font_cache_get(void);
1393
1394    /**
1395     * Set the configured font cache size
1396     *
1397     * This sets the globally configured font cache size, in bytes
1398     *
1399     * @param size The font cache size
1400     * @ingroup Caches
1401     */
1402    EAPI void         elm_font_cache_set(int size);
1403
1404    /**
1405     * Set the configured font cache size for all applications on the
1406     * display
1407     *
1408     * This sets the globally configured font cache size -- in bytes
1409     * -- for all applications on the display.
1410     *
1411     * @param size The font cache size
1412     * @ingroup Caches
1413     */
1414    EAPI void         elm_font_cache_all_set(int size);
1415
1416    /**
1417     * Get the configured image cache size
1418     *
1419     * This gets the globally configured image cache size, in bytes
1420     *
1421     * @return The image cache size
1422     * @ingroup Caches
1423     */
1424    EAPI int          elm_image_cache_get(void);
1425
1426    /**
1427     * Set the configured image cache size
1428     *
1429     * This sets the globally configured image cache size, in bytes
1430     *
1431     * @param size The image cache size
1432     * @ingroup Caches
1433     */
1434    EAPI void         elm_image_cache_set(int size);
1435
1436    /**
1437     * Set the configured image cache size for all applications on the
1438     * display
1439     *
1440     * This sets the globally configured image cache size -- in bytes
1441     * -- for all applications on the display.
1442     *
1443     * @param size The image cache size
1444     * @ingroup Caches
1445     */
1446    EAPI void         elm_image_cache_all_set(int size);
1447
1448    /**
1449     * Get the configured edje file cache size.
1450     *
1451     * This gets the globally configured edje file cache size, in number
1452     * of files.
1453     *
1454     * @return The edje file cache size
1455     * @ingroup Caches
1456     */
1457    EAPI int          elm_edje_file_cache_get(void);
1458
1459    /**
1460     * Set the configured edje file cache size
1461     *
1462     * This sets the globally configured edje file cache size, in number
1463     * of files.
1464     *
1465     * @param size The edje file cache size
1466     * @ingroup Caches
1467     */
1468    EAPI void         elm_edje_file_cache_set(int size);
1469
1470    /**
1471     * Set the configured edje file cache size for all applications on the
1472     * display
1473     *
1474     * This sets the globally configured edje file cache size -- in number
1475     * of files -- for all applications on the display.
1476     *
1477     * @param size The edje file cache size
1478     * @ingroup Caches
1479     */
1480    EAPI void         elm_edje_file_cache_all_set(int size);
1481
1482    /**
1483     * Get the configured edje collections (groups) cache size.
1484     *
1485     * This gets the globally configured edje collections cache size, in
1486     * number of collections.
1487     *
1488     * @return The edje collections cache size
1489     * @ingroup Caches
1490     */
1491    EAPI int          elm_edje_collection_cache_get(void);
1492
1493    /**
1494     * Set the configured edje collections (groups) cache size
1495     *
1496     * This sets the globally configured edje collections cache size, in
1497     * number of collections.
1498     *
1499     * @param size The edje collections cache size
1500     * @ingroup Caches
1501     */
1502    EAPI void         elm_edje_collection_cache_set(int size);
1503
1504    /**
1505     * Set the configured edje collections (groups) cache size for all
1506     * applications on the display
1507     *
1508     * This sets the globally configured edje collections cache size -- in
1509     * number of collections -- for all applications on the display.
1510     *
1511     * @param size The edje collections cache size
1512     * @ingroup Caches
1513     */
1514    EAPI void         elm_edje_collection_cache_all_set(int size);
1515
1516    /**
1517     * @}
1518     */
1519
1520    /**
1521     * @defgroup Scaling Widget Scaling
1522     *
1523     * Different widgets can be scaled independently. These functions
1524     * allow you to manipulate this scaling on a per-widget basis. The
1525     * object and all its children get their scaling factors multiplied
1526     * by the scale factor set. This is multiplicative, in that if a
1527     * child also has a scale size set it is in turn multiplied by its
1528     * parent's scale size. @c 1.0 means ā€œdon't scaleā€, @c 2.0 is
1529     * double size, @c 0.5 is half, etc.
1530     *
1531     * @ref general_functions_example_page "This" example contemplates
1532     * some of these functions.
1533     */
1534
1535    /**
1536     * Get the global scaling factor
1537     *
1538     * This gets the globally configured scaling factor that is applied to all
1539     * objects.
1540     *
1541     * @return The scaling factor
1542     * @ingroup Scaling
1543     */
1544    EAPI double       elm_scale_get(void);
1545
1546    /**
1547     * Set the global scaling factor
1548     *
1549     * This sets the globally configured scaling factor that is applied to all
1550     * objects.
1551     *
1552     * @param scale The scaling factor to set
1553     * @ingroup Scaling
1554     */
1555    EAPI void         elm_scale_set(double scale);
1556
1557    /**
1558     * Set the global scaling factor for all applications on the display
1559     *
1560     * This sets the globally configured scaling factor that is applied to all
1561     * objects for all applications.
1562     * @param scale The scaling factor to set
1563     * @ingroup Scaling
1564     */
1565    EAPI void         elm_scale_all_set(double scale);
1566
1567    /**
1568     * Set the scaling factor for a given Elementary object
1569     *
1570     * @param obj The Elementary to operate on
1571     * @param scale Scale factor (from @c 0.0 up, with @c 1.0 meaning
1572     * no scaling)
1573     *
1574     * @ingroup Scaling
1575     */
1576    EAPI void         elm_object_scale_set(Evas_Object *obj, double scale) EINA_ARG_NONNULL(1);
1577
1578    /**
1579     * Get the scaling factor for a given Elementary object
1580     *
1581     * @param obj The object
1582     * @return The scaling factor set by elm_object_scale_set()
1583     *
1584     * @ingroup Scaling
1585     */
1586    EAPI double       elm_object_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1587
1588    /**
1589     * @defgroup Password_last_show Password last input show
1590     *
1591     * Last show feature of password mode enables user to view
1592     * the last input entered for few seconds before masking it.
1593     * These functions allow to set this feature in password mode
1594     * of entry widget and also allow to manipulate the duration
1595     * for which the input has to be visible.
1596     *
1597     * @{
1598     */
1599
1600    /**
1601     * Get show last setting of password mode.
1602     *
1603     * This gets the show last input setting of password mode which might be
1604     * enabled or disabled.
1605     *
1606     * @return @c EINA_TRUE, if the last input show setting is enabled, @c EINA_FALSE
1607     *            if it's disabled.
1608     * @ingroup Password_last_show
1609     */
1610    EAPI Eina_Bool elm_password_show_last_get(void);
1611
1612    /**
1613     * Set show last setting in password mode.
1614     *
1615     * This enables or disables show last setting of password mode.
1616     *
1617     * @param password_show_last If EINA_TRUE enable's last input show in password mode.
1618     * @see elm_password_show_last_timeout_set()
1619     * @ingroup Password_last_show
1620     */
1621    EAPI void elm_password_show_last_set(Eina_Bool password_show_last);
1622
1623    /**
1624     * Get's the timeout value in last show password mode.
1625     *
1626     * This gets the time out value for which the last input entered in password
1627     * mode will be visible.
1628     *
1629     * @return The timeout value of last show password mode.
1630     * @ingroup Password_last_show
1631     */
1632    EAPI double elm_password_show_last_timeout_get(void);
1633
1634    /**
1635     * Set's the timeout value in last show password mode.
1636     *
1637     * This sets the time out value for which the last input entered in password
1638     * mode will be visible.
1639     *
1640     * @param password_show_last_timeout The timeout value.
1641     * @see elm_password_show_last_set()
1642     * @ingroup Password_last_show
1643     */
1644    EAPI void elm_password_show_last_timeout_set(double password_show_last_timeout);
1645
1646    /**
1647     * @}
1648     */
1649
1650    /**
1651     * @defgroup UI-Mirroring Selective Widget mirroring
1652     *
1653     * These functions allow you to set ui-mirroring on specific
1654     * widgets or the whole interface. Widgets can be in one of two
1655     * modes, automatic and manual.  Automatic means they'll be changed
1656     * according to the system mirroring mode and manual means only
1657     * explicit changes will matter. You are not supposed to change
1658     * mirroring state of a widget set to automatic, will mostly work,
1659     * but the behavior is not really defined.
1660     *
1661     * @{
1662     */
1663
1664    EAPI Eina_Bool    elm_mirrored_get(void);
1665    EAPI void         elm_mirrored_set(Eina_Bool mirrored);
1666
1667    /**
1668     * Get the system mirrored mode. This determines the default mirrored mode
1669     * of widgets.
1670     *
1671     * @return EINA_TRUE if mirrored is set, EINA_FALSE otherwise
1672     */
1673    EAPI Eina_Bool    elm_object_mirrored_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1674
1675    /**
1676     * Set the system mirrored mode. This determines the default mirrored mode
1677     * of widgets.
1678     *
1679     * @param mirrored EINA_TRUE to set mirrored mode, EINA_FALSE to unset it.
1680     */
1681    EAPI void         elm_object_mirrored_set(Evas_Object *obj, Eina_Bool mirrored) EINA_ARG_NONNULL(1);
1682
1683    /**
1684     * Returns the widget's mirrored mode setting.
1685     *
1686     * @param obj The widget.
1687     * @return mirrored mode setting of the object.
1688     *
1689     **/
1690    EAPI Eina_Bool    elm_object_mirrored_automatic_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1691
1692    /**
1693     * Sets the widget's mirrored mode setting.
1694     * When widget in automatic mode, it follows the system mirrored mode set by
1695     * elm_mirrored_set().
1696     * @param obj The widget.
1697     * @param automatic EINA_TRUE for auto mirrored mode. EINA_FALSE for manual.
1698     */
1699    EAPI void         elm_object_mirrored_automatic_set(Evas_Object *obj, Eina_Bool automatic) EINA_ARG_NONNULL(1);
1700
1701    /**
1702     * @}
1703     */
1704
1705    /**
1706     * Set the style to use by a widget
1707     *
1708     * Sets the style name that will define the appearance of a widget. Styles
1709     * vary from widget to widget and may also be defined by other themes
1710     * by means of extensions and overlays.
1711     *
1712     * @param obj The Elementary widget to style
1713     * @param style The style name to use
1714     *
1715     * @see elm_theme_extension_add()
1716     * @see elm_theme_extension_del()
1717     * @see elm_theme_overlay_add()
1718     * @see elm_theme_overlay_del()
1719     *
1720     * @ingroup Styles
1721     */
1722    EAPI void         elm_object_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
1723    /**
1724     * Get the style used by the widget
1725     *
1726     * This gets the style being used for that widget. Note that the string
1727     * pointer is only valid as longas the object is valid and the style doesn't
1728     * change.
1729     *
1730     * @param obj The Elementary widget to query for its style
1731     * @return The style name used
1732     *
1733     * @see elm_object_style_set()
1734     *
1735     * @ingroup Styles
1736     */
1737    EAPI const char  *elm_object_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1738
1739    /**
1740     * @defgroup Styles Styles
1741     *
1742     * Widgets can have different styles of look. These generic API's
1743     * set styles of widgets, if they support them (and if the theme(s)
1744     * do).
1745     *
1746     * @ref general_functions_example_page "This" example contemplates
1747     * some of these functions.
1748     */
1749
1750    /**
1751     * Set the disabled state of an Elementary object.
1752     *
1753     * @param obj The Elementary object to operate on
1754     * @param disabled The state to put in in: @c EINA_TRUE for
1755     *        disabled, @c EINA_FALSE for enabled
1756     *
1757     * Elementary objects can be @b disabled, in which state they won't
1758     * receive input and, in general, will be themed differently from
1759     * their normal state, usually greyed out. Useful for contexts
1760     * where you don't want your users to interact with some of the
1761     * parts of you interface.
1762     *
1763     * This sets the state for the widget, either disabling it or
1764     * enabling it back.
1765     *
1766     * @ingroup Styles
1767     */
1768    EAPI void         elm_object_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
1769
1770    /**
1771     * Get the disabled state of an Elementary object.
1772     *
1773     * @param obj The Elementary object to operate on
1774     * @return @c EINA_TRUE, if the widget is disabled, @c EINA_FALSE
1775     *            if it's enabled (or on errors)
1776     *
1777     * This gets the state of the widget, which might be enabled or disabled.
1778     *
1779     * @ingroup Styles
1780     */
1781    EAPI Eina_Bool    elm_object_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1782
1783    /**
1784     * @defgroup WidgetNavigation Widget Tree Navigation.
1785     *
1786     * How to check if an Evas Object is an Elementary widget? How to
1787     * get the first elementary widget that is parent of the given
1788     * object?  These are all covered in widget tree navigation.
1789     *
1790     * @ref general_functions_example_page "This" example contemplates
1791     * some of these functions.
1792     */
1793
1794    /**
1795     * Check if the given Evas Object is an Elementary widget.
1796     *
1797     * @param obj the object to query.
1798     * @return @c EINA_TRUE if it is an elementary widget variant,
1799     *         @c EINA_FALSE otherwise
1800     * @ingroup WidgetNavigation
1801     */
1802    EAPI Eina_Bool    elm_object_widget_check(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1803
1804    /**
1805     * Get the first parent of the given object that is an Elementary
1806     * widget.
1807     *
1808     * @param obj the Elementary object to query parent from.
1809     * @return the parent object that is an Elementary widget, or @c
1810     *         NULL, if it was not found.
1811     *
1812     * Use this to query for an object's parent widget.
1813     *
1814     * @note Most of Elementary users wouldn't be mixing non-Elementary
1815     * smart objects in the objects tree of an application, as this is
1816     * an advanced usage of Elementary with Evas. So, except for the
1817     * application's window, which is the root of that tree, all other
1818     * objects would have valid Elementary widget parents.
1819     *
1820     * @ingroup WidgetNavigation
1821     */
1822    EAPI Evas_Object *elm_object_parent_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1823
1824    /**
1825     * Get the top level parent of an Elementary widget.
1826     *
1827     * @param obj The object to query.
1828     * @return The top level Elementary widget, or @c NULL if parent cannot be
1829     * found.
1830     * @ingroup WidgetNavigation
1831     */
1832    EAPI Evas_Object *elm_object_top_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1833
1834    /**
1835     * Get the string that represents this Elementary widget.
1836     *
1837     * @note Elementary is weird and exposes itself as a single
1838     *       Evas_Object_Smart_Class of type "elm_widget", so
1839     *       evas_object_type_get() always return that, making debug and
1840     *       language bindings hard. This function tries to mitigate this
1841     *       problem, but the solution is to change Elementary to use
1842     *       proper inheritance.
1843     *
1844     * @param obj the object to query.
1845     * @return Elementary widget name, or @c NULL if not a valid widget.
1846     * @ingroup WidgetNavigation
1847     */
1848    EAPI const char  *elm_object_widget_type_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1849
1850    /**
1851     * @defgroup Config Elementary Config
1852     *
1853     * Elementary configuration is formed by a set options bounded to a
1854     * given @ref Profile profile, like @ref Theme theme, @ref Fingers
1855     * "finger size", etc. These are functions with which one syncronizes
1856     * changes made to those values to the configuration storing files, de
1857     * facto. You most probably don't want to use the functions in this
1858     * group unlees you're writing an elementary configuration manager.
1859     *
1860     * @{
1861     */
1862
1863    /**
1864     * Save back Elementary's configuration, so that it will persist on
1865     * future sessions.
1866     *
1867     * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
1868     * @ingroup Config
1869     *
1870     * This function will take effect -- thus, do I/O -- immediately. Use
1871     * it when you want to apply all configuration changes at once. The
1872     * current configuration set will get saved onto the current profile
1873     * configuration file.
1874     *
1875     */
1876    EAPI Eina_Bool    elm_config_save(void);
1877
1878    /**
1879     * Reload Elementary's configuration, bounded to current selected
1880     * profile.
1881     *
1882     * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
1883     * @ingroup Config
1884     *
1885     * Useful when you want to force reloading of configuration values for
1886     * a profile. If one removes user custom configuration directories,
1887     * for example, it will force a reload with system values instead.
1888     *
1889     */
1890    EAPI void         elm_config_reload(void);
1891
1892    /**
1893     * @}
1894     */
1895
1896    /**
1897     * @defgroup Profile Elementary Profile
1898     *
1899     * Profiles are pre-set options that affect the whole look-and-feel of
1900     * Elementary-based applications. There are, for example, profiles
1901     * aimed at desktop computer applications and others aimed at mobile,
1902     * touchscreen-based ones. You most probably don't want to use the
1903     * functions in this group unlees you're writing an elementary
1904     * configuration manager.
1905     *
1906     * @{
1907     */
1908
1909    /**
1910     * Get Elementary's profile in use.
1911     *
1912     * This gets the global profile that is applied to all Elementary
1913     * applications.
1914     *
1915     * @return The profile's name
1916     * @ingroup Profile
1917     */
1918    EAPI const char  *elm_profile_current_get(void);
1919
1920    /**
1921     * Get an Elementary's profile directory path in the filesystem. One
1922     * may want to fetch a system profile's dir or an user one (fetched
1923     * inside $HOME).
1924     *
1925     * @param profile The profile's name
1926     * @param is_user Whether to lookup for an user profile (@c EINA_TRUE)
1927     *                or a system one (@c EINA_FALSE)
1928     * @return The profile's directory path.
1929     * @ingroup Profile
1930     *
1931     * @note You must free it with elm_profile_dir_free().
1932     */
1933    EAPI const char  *elm_profile_dir_get(const char *profile, Eina_Bool is_user);
1934
1935    /**
1936     * Free an Elementary's profile directory path, as returned by
1937     * elm_profile_dir_get().
1938     *
1939     * @param p_dir The profile's path
1940     * @ingroup Profile
1941     *
1942     */
1943    EAPI void         elm_profile_dir_free(const char *p_dir);
1944
1945    /**
1946     * Get Elementary's list of available profiles.
1947     *
1948     * @return The profiles list. List node data are the profile name
1949     *         strings.
1950     * @ingroup Profile
1951     *
1952     * @note One must free this list, after usage, with the function
1953     *       elm_profile_list_free().
1954     */
1955    EAPI Eina_List   *elm_profile_list_get(void);
1956
1957    /**
1958     * Free Elementary's list of available profiles.
1959     *
1960     * @param l The profiles list, as returned by elm_profile_list_get().
1961     * @ingroup Profile
1962     *
1963     */
1964    EAPI void         elm_profile_list_free(Eina_List *l);
1965
1966    /**
1967     * Set Elementary's profile.
1968     *
1969     * This sets the global profile that is applied to Elementary
1970     * applications. Just the process the call comes from will be
1971     * affected.
1972     *
1973     * @param profile The profile's name
1974     * @ingroup Profile
1975     *
1976     */
1977    EAPI void         elm_profile_set(const char *profile);
1978
1979    /**
1980     * Set Elementary's profile.
1981     *
1982     * This sets the global profile that is applied to all Elementary
1983     * applications. All running Elementary windows will be affected.
1984     *
1985     * @param profile The profile's name
1986     * @ingroup Profile
1987     *
1988     */
1989    EAPI void         elm_profile_all_set(const char *profile);
1990
1991    /**
1992     * @}
1993     */
1994
1995    /**
1996     * @defgroup Engine Elementary Engine
1997     *
1998     * These are functions setting and querying which rendering engine
1999     * Elementary will use for drawing its windows' pixels.
2000     *
2001     * The following are the available engines:
2002     * @li "software_x11"
2003     * @li "fb"
2004     * @li "directfb"
2005     * @li "software_16_x11"
2006     * @li "software_8_x11"
2007     * @li "xrender_x11"
2008     * @li "opengl_x11"
2009     * @li "software_gdi"
2010     * @li "software_16_wince_gdi"
2011     * @li "sdl"
2012     * @li "software_16_sdl"
2013     * @li "opengl_sdl"
2014     * @li "buffer"
2015     * @li "ews"
2016     * @li "opengl_cocoa"
2017     * @li "psl1ght"
2018     *
2019     * @{
2020     */
2021
2022    /**
2023     * @brief Get Elementary's rendering engine in use.
2024     *
2025     * @return The rendering engine's name
2026     * @note there's no need to free the returned string, here.
2027     *
2028     * This gets the global rendering engine that is applied to all Elementary
2029     * applications.
2030     *
2031     * @see elm_engine_set()
2032     */
2033    EAPI const char  *elm_engine_current_get(void);
2034
2035    /**
2036     * @brief Set Elementary's rendering engine for use.
2037     *
2038     * @param engine The rendering engine's name
2039     *
2040     * This sets global rendering engine that is applied to all Elementary
2041     * applications. Note that it will take effect only to Elementary windows
2042     * created after this is called.
2043     *
2044     * @see elm_win_add()
2045     */
2046    EAPI void         elm_engine_set(const char *engine);
2047
2048    /**
2049     * @}
2050     */
2051
2052    /**
2053     * @defgroup Fonts Elementary Fonts
2054     *
2055     * These are functions dealing with font rendering, selection and the
2056     * like for Elementary applications. One might fetch which system
2057     * fonts are there to use and set custom fonts for individual classes
2058     * of UI items containing text (text classes).
2059     *
2060     * @{
2061     */
2062
2063   typedef struct _Elm_Text_Class
2064     {
2065        const char *name;
2066        const char *desc;
2067     } Elm_Text_Class;
2068
2069   typedef struct _Elm_Font_Overlay
2070     {
2071        const char     *text_class;
2072        const char     *font;
2073        Evas_Font_Size  size;
2074     } Elm_Font_Overlay;
2075
2076   typedef struct _Elm_Font_Properties
2077     {
2078        const char *name;
2079        Eina_List  *styles;
2080     } Elm_Font_Properties;
2081
2082    /**
2083     * Get Elementary's list of supported text classes.
2084     *
2085     * @return The text classes list, with @c Elm_Text_Class blobs as data.
2086     * @ingroup Fonts
2087     *
2088     * Release the list with elm_text_classes_list_free().
2089     */
2090    EAPI const Eina_List     *elm_text_classes_list_get(void);
2091
2092    /**
2093     * Free Elementary's list of supported text classes.
2094     *
2095     * @ingroup Fonts
2096     *
2097     * @see elm_text_classes_list_get().
2098     */
2099    EAPI void                 elm_text_classes_list_free(const Eina_List *list);
2100
2101    /**
2102     * Get Elementary's list of font overlays, set with
2103     * elm_font_overlay_set().
2104     *
2105     * @return The font overlays list, with @c Elm_Font_Overlay blobs as
2106     * data.
2107     *
2108     * @ingroup Fonts
2109     *
2110     * For each text class, one can set a <b>font overlay</b> for it,
2111     * overriding the default font properties for that class coming from
2112     * the theme in use. There is no need to free this list.
2113     *
2114     * @see elm_font_overlay_set() and elm_font_overlay_unset().
2115     */
2116    EAPI const Eina_List     *elm_font_overlay_list_get(void);
2117
2118    /**
2119     * Set a font overlay for a given Elementary text class.
2120     *
2121     * @param text_class Text class name
2122     * @param font Font name and style string
2123     * @param size Font size
2124     *
2125     * @ingroup Fonts
2126     *
2127     * @p font has to be in the format returned by
2128     * elm_font_fontconfig_name_get(). @see elm_font_overlay_list_get()
2129     * and elm_font_overlay_unset().
2130     */
2131    EAPI void                 elm_font_overlay_set(const char *text_class, const char *font, Evas_Font_Size size);
2132
2133    /**
2134     * Unset a font overlay for a given Elementary text class.
2135     *
2136     * @param text_class Text class name
2137     *
2138     * @ingroup Fonts
2139     *
2140     * This will bring back text elements belonging to text class
2141     * @p text_class back to their default font settings.
2142     */
2143    EAPI void                 elm_font_overlay_unset(const char *text_class);
2144
2145    /**
2146     * Apply the changes made with elm_font_overlay_set() and
2147     * elm_font_overlay_unset() on the current Elementary window.
2148     *
2149     * @ingroup Fonts
2150     *
2151     * This applies all font overlays set to all objects in the UI.
2152     */
2153    EAPI void                 elm_font_overlay_apply(void);
2154
2155    /**
2156     * Apply the changes made with elm_font_overlay_set() and
2157     * elm_font_overlay_unset() on all Elementary application windows.
2158     *
2159     * @ingroup Fonts
2160     *
2161     * This applies all font overlays set to all objects in the UI.
2162     */
2163    EAPI void                 elm_font_overlay_all_apply(void);
2164
2165    /**
2166     * Translate a font (family) name string in fontconfig's font names
2167     * syntax into an @c Elm_Font_Properties struct.
2168     *
2169     * @param font The font name and styles string
2170     * @return the font properties struct
2171     *
2172     * @ingroup Fonts
2173     *
2174     * @note The reverse translation can be achived with
2175     * elm_font_fontconfig_name_get(), for one style only (single font
2176     * instance, not family).
2177     */
2178    EAPI Elm_Font_Properties *elm_font_properties_get(const char *font) EINA_ARG_NONNULL(1);
2179
2180    /**
2181     * Free font properties return by elm_font_properties_get().
2182     *
2183     * @param efp the font properties struct
2184     *
2185     * @ingroup Fonts
2186     */
2187    EAPI void                 elm_font_properties_free(Elm_Font_Properties *efp) EINA_ARG_NONNULL(1);
2188
2189    /**
2190     * Translate a font name, bound to a style, into fontconfig's font names
2191     * syntax.
2192     *
2193     * @param name The font (family) name
2194     * @param style The given style (may be @c NULL)
2195     *
2196     * @return the font name and style string
2197     *
2198     * @ingroup Fonts
2199     *
2200     * @note The reverse translation can be achived with
2201     * elm_font_properties_get(), for one style only (single font
2202     * instance, not family).
2203     */
2204    EAPI const char          *elm_font_fontconfig_name_get(const char *name, const char *style) EINA_ARG_NONNULL(1);
2205
2206    /**
2207     * Free the font string return by elm_font_fontconfig_name_get().
2208     *
2209     * @param efp the font properties struct
2210     *
2211     * @ingroup Fonts
2212     */
2213    EAPI void                 elm_font_fontconfig_name_free(const char *name) EINA_ARG_NONNULL(1);
2214
2215    /**
2216     * Create a font hash table of available system fonts.
2217     *
2218     * One must call it with @p list being the return value of
2219     * evas_font_available_list(). The hash will be indexed by font
2220     * (family) names, being its values @c Elm_Font_Properties blobs.
2221     *
2222     * @param list The list of available system fonts, as returned by
2223     * evas_font_available_list().
2224     * @return the font hash.
2225     *
2226     * @ingroup Fonts
2227     *
2228     * @note The user is supposed to get it populated at least with 3
2229     * default font families (Sans, Serif, Monospace), which should be
2230     * present on most systems.
2231     */
2232    EAPI Eina_Hash           *elm_font_available_hash_add(Eina_List *list);
2233
2234    /**
2235     * Free the hash return by elm_font_available_hash_add().
2236     *
2237     * @param hash the hash to be freed.
2238     *
2239     * @ingroup Fonts
2240     */
2241    EAPI void                 elm_font_available_hash_del(Eina_Hash *hash);
2242
2243    /**
2244     * @}
2245     */
2246
2247    /**
2248     * @defgroup Fingers Fingers
2249     *
2250     * Elementary is designed to be finger-friendly for touchscreens,
2251     * and so in addition to scaling for display resolution, it can
2252     * also scale based on finger "resolution" (or size). You can then
2253     * customize the granularity of the areas meant to receive clicks
2254     * on touchscreens.
2255     *
2256     * Different profiles may have pre-set values for finger sizes.
2257     *
2258     * @ref general_functions_example_page "This" example contemplates
2259     * some of these functions.
2260     *
2261     * @{
2262     */
2263
2264    /**
2265     * Get the configured "finger size"
2266     *
2267     * @return The finger size
2268     *
2269     * This gets the globally configured finger size, <b>in pixels</b>
2270     *
2271     * @ingroup Fingers
2272     */
2273    EAPI Evas_Coord       elm_finger_size_get(void);
2274
2275    /**
2276     * Set the configured finger size
2277     *
2278     * This sets the globally configured finger size in pixels
2279     *
2280     * @param size The finger size
2281     * @ingroup Fingers
2282     */
2283    EAPI void             elm_finger_size_set(Evas_Coord size);
2284
2285    /**
2286     * Set the configured finger size for all applications on the display
2287     *
2288     * This sets the globally configured finger size in pixels for all
2289     * applications on the display
2290     *
2291     * @param size The finger size
2292     * @ingroup Fingers
2293     */
2294    EAPI void             elm_finger_size_all_set(Evas_Coord size);
2295
2296    /**
2297     * @}
2298     */
2299
2300    /**
2301     * @defgroup Focus Focus
2302     *
2303     * An Elementary application has, at all times, one (and only one)
2304     * @b focused object. This is what determines where the input
2305     * events go to within the application's window. Also, focused
2306     * objects can be decorated differently, in order to signal to the
2307     * user where the input is, at a given moment.
2308     *
2309     * Elementary applications also have the concept of <b>focus
2310     * chain</b>: one can cycle through all the windows' focusable
2311     * objects by input (tab key) or programmatically. The default
2312     * focus chain for an application is the one define by the order in
2313     * which the widgets where added in code. One will cycle through
2314     * top level widgets, and, for each one containg sub-objects, cycle
2315     * through them all, before returning to the level
2316     * above. Elementary also allows one to set @b custom focus chains
2317     * for their applications.
2318     *
2319     * Besides the focused decoration a widget may exhibit, when it
2320     * gets focus, Elementary has a @b global focus highlight object
2321     * that can be enabled for a window. If one chooses to do so, this
2322     * extra highlight effect will surround the current focused object,
2323     * too.
2324     *
2325     * @note Some Elementary widgets are @b unfocusable, after
2326     * creation, by their very nature: they are not meant to be
2327     * interacted with input events, but are there just for visual
2328     * purposes.
2329     *
2330     * @ref general_functions_example_page "This" example contemplates
2331     * some of these functions.
2332     */
2333
2334    /**
2335     * Get the enable status of the focus highlight
2336     *
2337     * This gets whether the highlight on focused objects is enabled or not
2338     * @ingroup Focus
2339     */
2340    EAPI Eina_Bool        elm_focus_highlight_enabled_get(void);
2341
2342    /**
2343     * Set the enable status of the focus highlight
2344     *
2345     * Set whether to show or not the highlight on focused objects
2346     * @param enable Enable highlight if EINA_TRUE, disable otherwise
2347     * @ingroup Focus
2348     */
2349    EAPI void             elm_focus_highlight_enabled_set(Eina_Bool enable);
2350
2351    /**
2352     * Get the enable status of the highlight animation
2353     *
2354     * Get whether the focus highlight, if enabled, will animate its switch from
2355     * one object to the next
2356     * @ingroup Focus
2357     */
2358    EAPI Eina_Bool        elm_focus_highlight_animate_get(void);
2359
2360    /**
2361     * Set the enable status of the highlight animation
2362     *
2363     * Set whether the focus highlight, if enabled, will animate its switch from
2364     * one object to the next
2365     * @param animate Enable animation if EINA_TRUE, disable otherwise
2366     * @ingroup Focus
2367     */
2368    EAPI void             elm_focus_highlight_animate_set(Eina_Bool animate);
2369
2370    /**
2371     * Get the whether an Elementary object has the focus or not.
2372     *
2373     * @param obj The Elementary object to get the information from
2374     * @return @c EINA_TRUE, if the object is focused, @c EINA_FALSE if
2375     *            not (and on errors).
2376     *
2377     * @see elm_object_focus_set()
2378     *
2379     * @ingroup Focus
2380     */
2381    EAPI Eina_Bool        elm_object_focus_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2382
2383    /**
2384     * Set/unset focus to a given Elementary object.
2385     *
2386     * @param obj The Elementary object to operate on.
2387     * @param enable @c EINA_TRUE Set focus to a given object,
2388     *               @c EINA_FALSE Unset focus to a given object.
2389     *
2390     * @note When you set focus to this object, if it can handle focus, will
2391     * take the focus away from the one who had it previously and will, for
2392     * now on, be the one receiving input events. Unsetting focus will remove
2393     * the focus from @p obj, passing it back to the previous element in the
2394     * focus chain list.
2395     *
2396     * @see elm_object_focus_get(), elm_object_focus_custom_chain_get()
2397     *
2398     * @ingroup Focus
2399     */
2400    EAPI void             elm_object_focus_set(Evas_Object *obj, Eina_Bool focus) EINA_ARG_NONNULL(1);
2401
2402    /**
2403     * Make a given Elementary object the focused one.
2404     *
2405     * @param obj The Elementary object to make focused.
2406     *
2407     * @note This object, if it can handle focus, will take the focus
2408     * away from the one who had it previously and will, for now on, be
2409     * the one receiving input events.
2410     *
2411     * @see elm_object_focus_get()
2412     *
2413     * @ingroup Focus
2414     */
2415    EAPI void             elm_object_focus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2416
2417    /**
2418     * Remove the focus from an Elementary object
2419     *
2420     * @param obj The Elementary to take focus from
2421     *
2422     * This removes the focus from @p obj, passing it back to the
2423     * previous element in the focus chain list.
2424     *
2425     * @see elm_object_focus() and elm_object_focus_custom_chain_get()
2426     *
2427     * @ingroup Focus
2428     */
2429    EAPI void             elm_object_unfocus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2430
2431    /**
2432     * Set the ability for an Element object to be focused
2433     *
2434     * @param obj The Elementary object to operate on
2435     * @param enable @c EINA_TRUE if the object can be focused, @c
2436     *        EINA_FALSE if not (and on errors)
2437     *
2438     * This sets whether the object @p obj is able to take focus or
2439     * not. Unfocusable objects do nothing when programmatically
2440     * focused, being the nearest focusable parent object the one
2441     * really getting focus. Also, when they receive mouse input, they
2442     * will get the event, but not take away the focus from where it
2443     * was previously.
2444     *
2445     * @ingroup Focus
2446     */
2447    EAPI void             elm_object_focus_allow_set(Evas_Object *obj, Eina_Bool enable) EINA_ARG_NONNULL(1);
2448
2449    /**
2450     * Get whether an Elementary object is focusable or not
2451     *
2452     * @param obj The Elementary object to operate on
2453     * @return @c EINA_TRUE if the object is allowed to be focused, @c
2454     *             EINA_FALSE if not (and on errors)
2455     *
2456     * @note Objects which are meant to be interacted with by input
2457     * events are created able to be focused, by default. All the
2458     * others are not.
2459     *
2460     * @ingroup Focus
2461     */
2462    EAPI Eina_Bool        elm_object_focus_allow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2463
2464    /**
2465     * Set custom focus chain.
2466     *
2467     * This function overwrites any previous custom focus chain within
2468     * the list of objects. The previous list will be deleted and this list
2469     * will be managed by elementary. After it is set, don't modify it.
2470     *
2471     * @note On focus cycle, only will be evaluated children of this container.
2472     *
2473     * @param obj The container object
2474     * @param objs Chain of objects to pass focus
2475     * @ingroup Focus
2476     */
2477    EAPI void             elm_object_focus_custom_chain_set(Evas_Object *obj, Eina_List *objs) EINA_ARG_NONNULL(1);
2478
2479    /**
2480     * Unset a custom focus chain on a given Elementary widget
2481     *
2482     * @param obj The container object to remove focus chain from
2483     *
2484     * Any focus chain previously set on @p obj (for its child objects)
2485     * is removed entirely after this call.
2486     *
2487     * @ingroup Focus
2488     */
2489    EAPI void             elm_object_focus_custom_chain_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
2490
2491    /**
2492     * Get custom focus chain
2493     *
2494     * @param obj The container object
2495     * @ingroup Focus
2496     */
2497    EAPI const Eina_List *elm_object_focus_custom_chain_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2498
2499    /**
2500     * Append object to custom focus chain.
2501     *
2502     * @note If relative_child equal to NULL or not in custom chain, the object
2503     * will be added in end.
2504     *
2505     * @note On focus cycle, only will be evaluated children of this container.
2506     *
2507     * @param obj The container object
2508     * @param child The child to be added in custom chain
2509     * @param relative_child The relative object to position the child
2510     * @ingroup Focus
2511     */
2512    EAPI void             elm_object_focus_custom_chain_append(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2513
2514    /**
2515     * Prepend object to custom focus chain.
2516     *
2517     * @note If relative_child equal to NULL or not in custom chain, the object
2518     * will be added in begin.
2519     *
2520     * @note On focus cycle, only will be evaluated children of this container.
2521     *
2522     * @param obj The container object
2523     * @param child The child to be added in custom chain
2524     * @param relative_child The relative object to position the child
2525     * @ingroup Focus
2526     */
2527    EAPI void             elm_object_focus_custom_chain_prepend(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2528
2529    /**
2530     * Give focus to next object in object tree.
2531     *
2532     * Give focus to next object in focus chain of one object sub-tree.
2533     * If the last object of chain already have focus, the focus will go to the
2534     * first object of chain.
2535     *
2536     * @param obj The object root of sub-tree
2537     * @param dir Direction to cycle the focus
2538     *
2539     * @ingroup Focus
2540     */
2541    EAPI void             elm_object_focus_cycle(Evas_Object *obj, Elm_Focus_Direction dir) EINA_ARG_NONNULL(1);
2542
2543    /**
2544     * Give focus to near object in one direction.
2545     *
2546     * Give focus to near object in direction of one object.
2547     * If none focusable object in given direction, the focus will not change.
2548     *
2549     * @param obj The reference object
2550     * @param x Horizontal component of direction to focus
2551     * @param y Vertical component of direction to focus
2552     *
2553     * @ingroup Focus
2554     */
2555    EAPI void             elm_object_focus_direction_go(Evas_Object *obj, int x, int y) EINA_ARG_NONNULL(1);
2556
2557    /**
2558     * Make the elementary object and its children to be unfocusable
2559     * (or focusable).
2560     *
2561     * @param obj The Elementary object to operate on
2562     * @param tree_unfocusable @c EINA_TRUE for unfocusable,
2563     *        @c EINA_FALSE for focusable.
2564     *
2565     * This sets whether the object @p obj and its children objects
2566     * are able to take focus or not. If the tree is set as unfocusable,
2567     * newest focused object which is not in this tree will get focus.
2568     * This API can be helpful for an object to be deleted.
2569     * When an object will be deleted soon, it and its children may not
2570     * want to get focus (by focus reverting or by other focus controls).
2571     * Then, just use this API before deleting.
2572     *
2573     * @see elm_object_tree_unfocusable_get()
2574     *
2575     * @ingroup Focus
2576     */
2577    EAPI void             elm_object_tree_unfocusable_set(Evas_Object *obj, Eina_Bool tree_unfocusable); EINA_ARG_NONNULL(1);
2578
2579    /**
2580     * Get whether an Elementary object and its children are unfocusable or not.
2581     *
2582     * @param obj The Elementary object to get the information from
2583     * @return @c EINA_TRUE, if the tree is unfocussable,
2584     *         @c EINA_FALSE if not (and on errors).
2585     *
2586     * @see elm_object_tree_unfocusable_set()
2587     *
2588     * @ingroup Focus
2589     */
2590    EAPI Eina_Bool        elm_object_tree_unfocusable_get(const Evas_Object *obj); EINA_ARG_NONNULL(1);
2591
2592    /**
2593     * @defgroup Scrolling Scrolling
2594     *
2595     * These are functions setting how scrollable views in Elementary
2596     * widgets should behave on user interaction.
2597     *
2598     * @{
2599     */
2600
2601    /**
2602     * Get whether scrollers should bounce when they reach their
2603     * viewport's edge during a scroll.
2604     *
2605     * @return the thumb scroll bouncing state
2606     *
2607     * This is the default behavior for touch screens, in general.
2608     * @ingroup Scrolling
2609     */
2610    EAPI Eina_Bool        elm_scroll_bounce_enabled_get(void);
2611
2612    /**
2613     * Set whether scrollers should bounce when they reach their
2614     * viewport's edge during a scroll.
2615     *
2616     * @param enabled the thumb scroll bouncing state
2617     *
2618     * @see elm_thumbscroll_bounce_enabled_get()
2619     * @ingroup Scrolling
2620     */
2621    EAPI void             elm_scroll_bounce_enabled_set(Eina_Bool enabled);
2622
2623    /**
2624     * Set whether scrollers should bounce when they reach their
2625     * viewport's edge during a scroll, for all Elementary application
2626     * windows.
2627     *
2628     * @param enabled the thumb scroll bouncing state
2629     *
2630     * @see elm_thumbscroll_bounce_enabled_get()
2631     * @ingroup Scrolling
2632     */
2633    EAPI void             elm_scroll_bounce_enabled_all_set(Eina_Bool enabled);
2634
2635    /**
2636     * Get the amount of inertia a scroller will impose at bounce
2637     * animations.
2638     *
2639     * @return the thumb scroll bounce friction
2640     *
2641     * @ingroup Scrolling
2642     */
2643    EAPI double           elm_scroll_bounce_friction_get(void);
2644
2645    /**
2646     * Set the amount of inertia a scroller will impose at bounce
2647     * animations.
2648     *
2649     * @param friction the thumb scroll bounce friction
2650     *
2651     * @see elm_thumbscroll_bounce_friction_get()
2652     * @ingroup Scrolling
2653     */
2654    EAPI void             elm_scroll_bounce_friction_set(double friction);
2655
2656    /**
2657     * Set the amount of inertia a scroller will impose at bounce
2658     * animations, for all Elementary application windows.
2659     *
2660     * @param friction the thumb scroll bounce friction
2661     *
2662     * @see elm_thumbscroll_bounce_friction_get()
2663     * @ingroup Scrolling
2664     */
2665    EAPI void             elm_scroll_bounce_friction_all_set(double friction);
2666
2667    /**
2668     * Get the amount of inertia a <b>paged</b> scroller will impose at
2669     * page fitting animations.
2670     *
2671     * @return the page scroll friction
2672     *
2673     * @ingroup Scrolling
2674     */
2675    EAPI double           elm_scroll_page_scroll_friction_get(void);
2676
2677    /**
2678     * Set the amount of inertia a <b>paged</b> scroller will impose at
2679     * page fitting animations.
2680     *
2681     * @param friction the page scroll friction
2682     *
2683     * @see elm_thumbscroll_page_scroll_friction_get()
2684     * @ingroup Scrolling
2685     */
2686    EAPI void             elm_scroll_page_scroll_friction_set(double friction);
2687
2688    /**
2689     * Set the amount of inertia a <b>paged</b> scroller will impose at
2690     * page fitting animations, for all Elementary application windows.
2691     *
2692     * @param friction the page scroll friction
2693     *
2694     * @see elm_thumbscroll_page_scroll_friction_get()
2695     * @ingroup Scrolling
2696     */
2697    EAPI void             elm_scroll_page_scroll_friction_all_set(double friction);
2698
2699    /**
2700     * Get the amount of inertia a scroller will impose at region bring
2701     * animations.
2702     *
2703     * @return the bring in scroll friction
2704     *
2705     * @ingroup Scrolling
2706     */
2707    EAPI double           elm_scroll_bring_in_scroll_friction_get(void);
2708
2709    /**
2710     * Set the amount of inertia a scroller will impose at region bring
2711     * animations.
2712     *
2713     * @param friction the bring in scroll friction
2714     *
2715     * @see elm_thumbscroll_bring_in_scroll_friction_get()
2716     * @ingroup Scrolling
2717     */
2718    EAPI void             elm_scroll_bring_in_scroll_friction_set(double friction);
2719
2720    /**
2721     * Set the amount of inertia a scroller will impose at region bring
2722     * animations, for all Elementary application windows.
2723     *
2724     * @param friction the bring in scroll friction
2725     *
2726     * @see elm_thumbscroll_bring_in_scroll_friction_get()
2727     * @ingroup Scrolling
2728     */
2729    EAPI void             elm_scroll_bring_in_scroll_friction_all_set(double friction);
2730
2731    /**
2732     * Get the amount of inertia scrollers will impose at animations
2733     * triggered by Elementary widgets' zooming API.
2734     *
2735     * @return the zoom friction
2736     *
2737     * @ingroup Scrolling
2738     */
2739    EAPI double           elm_scroll_zoom_friction_get(void);
2740
2741    /**
2742     * Set the amount of inertia scrollers will impose at animations
2743     * triggered by Elementary widgets' zooming API.
2744     *
2745     * @param friction the zoom friction
2746     *
2747     * @see elm_thumbscroll_zoom_friction_get()
2748     * @ingroup Scrolling
2749     */
2750    EAPI void             elm_scroll_zoom_friction_set(double friction);
2751
2752    /**
2753     * Set the amount of inertia scrollers will impose at animations
2754     * triggered by Elementary widgets' zooming API, for all Elementary
2755     * application windows.
2756     *
2757     * @param friction the zoom friction
2758     *
2759     * @see elm_thumbscroll_zoom_friction_get()
2760     * @ingroup Scrolling
2761     */
2762    EAPI void             elm_scroll_zoom_friction_all_set(double friction);
2763
2764    /**
2765     * Get whether scrollers should be draggable from any point in their
2766     * views.
2767     *
2768     * @return the thumb scroll state
2769     *
2770     * @note This is the default behavior for touch screens, in general.
2771     * @note All other functions namespaced with "thumbscroll" will only
2772     *       have effect if this mode is enabled.
2773     *
2774     * @ingroup Scrolling
2775     */
2776    EAPI Eina_Bool        elm_scroll_thumbscroll_enabled_get(void);
2777
2778    /**
2779     * Set whether scrollers should be draggable from any point in their
2780     * views.
2781     *
2782     * @param enabled the thumb scroll state
2783     *
2784     * @see elm_thumbscroll_enabled_get()
2785     * @ingroup Scrolling
2786     */
2787    EAPI void             elm_scroll_thumbscroll_enabled_set(Eina_Bool enabled);
2788
2789    /**
2790     * Set whether scrollers should be draggable from any point in their
2791     * views, for all Elementary application windows.
2792     *
2793     * @param enabled the thumb scroll state
2794     *
2795     * @see elm_thumbscroll_enabled_get()
2796     * @ingroup Scrolling
2797     */
2798    EAPI void             elm_scroll_thumbscroll_enabled_all_set(Eina_Bool enabled);
2799
2800    /**
2801     * Get the number of pixels one should travel while dragging a
2802     * scroller's view to actually trigger scrolling.
2803     *
2804     * @return the thumb scroll threshould
2805     *
2806     * One would use higher values for touch screens, in general, because
2807     * of their inherent imprecision.
2808     * @ingroup Scrolling
2809     */
2810    EAPI unsigned int     elm_scroll_thumbscroll_threshold_get(void);
2811
2812    /**
2813     * Set the number of pixels one should travel while dragging a
2814     * scroller's view to actually trigger scrolling.
2815     *
2816     * @param threshold the thumb scroll threshould
2817     *
2818     * @see elm_thumbscroll_threshould_get()
2819     * @ingroup Scrolling
2820     */
2821    EAPI void             elm_scroll_thumbscroll_threshold_set(unsigned int threshold);
2822
2823    /**
2824     * Set the number of pixels one should travel while dragging a
2825     * scroller's view to actually trigger scrolling, for all Elementary
2826     * application windows.
2827     *
2828     * @param threshold the thumb scroll threshould
2829     *
2830     * @see elm_thumbscroll_threshould_get()
2831     * @ingroup Scrolling
2832     */
2833    EAPI void             elm_scroll_thumbscroll_threshold_all_set(unsigned int threshold);
2834
2835    /**
2836     * Get the minimum speed of mouse cursor movement which will trigger
2837     * list self scrolling animation after a mouse up event
2838     * (pixels/second).
2839     *
2840     * @return the thumb scroll momentum threshould
2841     *
2842     * @ingroup Scrolling
2843     */
2844    EAPI double           elm_scroll_thumbscroll_momentum_threshold_get(void);
2845
2846    /**
2847     * Set the minimum speed of mouse cursor movement which will trigger
2848     * list self scrolling animation after a mouse up event
2849     * (pixels/second).
2850     *
2851     * @param threshold the thumb scroll momentum threshould
2852     *
2853     * @see elm_thumbscroll_momentum_threshould_get()
2854     * @ingroup Scrolling
2855     */
2856    EAPI void             elm_scroll_thumbscroll_momentum_threshold_set(double threshold);
2857
2858    /**
2859     * Set the minimum speed of mouse cursor movement which will trigger
2860     * list self scrolling animation after a mouse up event
2861     * (pixels/second), for all Elementary application windows.
2862     *
2863     * @param threshold the thumb scroll momentum threshould
2864     *
2865     * @see elm_thumbscroll_momentum_threshould_get()
2866     * @ingroup Scrolling
2867     */
2868    EAPI void             elm_scroll_thumbscroll_momentum_threshold_all_set(double threshold);
2869
2870    /**
2871     * Get the amount of inertia a scroller will impose at self scrolling
2872     * animations.
2873     *
2874     * @return the thumb scroll friction
2875     *
2876     * @ingroup Scrolling
2877     */
2878    EAPI double           elm_scroll_thumbscroll_friction_get(void);
2879
2880    /**
2881     * Set the amount of inertia a scroller will impose at self scrolling
2882     * animations.
2883     *
2884     * @param friction the thumb scroll friction
2885     *
2886     * @see elm_thumbscroll_friction_get()
2887     * @ingroup Scrolling
2888     */
2889    EAPI void             elm_scroll_thumbscroll_friction_set(double friction);
2890
2891    /**
2892     * Set the amount of inertia a scroller will impose at self scrolling
2893     * animations, for all Elementary application windows.
2894     *
2895     * @param friction the thumb scroll friction
2896     *
2897     * @see elm_thumbscroll_friction_get()
2898     * @ingroup Scrolling
2899     */
2900    EAPI void             elm_scroll_thumbscroll_friction_all_set(double friction);
2901
2902    /**
2903     * Get the amount of lag between your actual mouse cursor dragging
2904     * movement and a scroller's view movement itself, while pushing it
2905     * into bounce state manually.
2906     *
2907     * @return the thumb scroll border friction
2908     *
2909     * @ingroup Scrolling
2910     */
2911    EAPI double           elm_scroll_thumbscroll_border_friction_get(void);
2912
2913    /**
2914     * Set the amount of lag between your actual mouse cursor dragging
2915     * movement and a scroller's view movement itself, while pushing it
2916     * into bounce state manually.
2917     *
2918     * @param friction the thumb scroll border friction. @c 0.0 for
2919     *        perfect synchrony between two movements, @c 1.0 for maximum
2920     *        lag.
2921     *
2922     * @see elm_thumbscroll_border_friction_get()
2923     * @note parameter value will get bound to 0.0 - 1.0 interval, always
2924     *
2925     * @ingroup Scrolling
2926     */
2927    EAPI void             elm_scroll_thumbscroll_border_friction_set(double friction);
2928
2929    /**
2930     * Set the amount of lag between your actual mouse cursor dragging
2931     * movement and a scroller's view movement itself, while pushing it
2932     * into bounce state manually, for all Elementary application windows.
2933     *
2934     * @param friction the thumb scroll border friction. @c 0.0 for
2935     *        perfect synchrony between two movements, @c 1.0 for maximum
2936     *        lag.
2937     *
2938     * @see elm_thumbscroll_border_friction_get()
2939     * @note parameter value will get bound to 0.0 - 1.0 interval, always
2940     *
2941     * @ingroup Scrolling
2942     */
2943    EAPI void             elm_scroll_thumbscroll_border_friction_all_set(double friction);
2944
2945    /**
2946     * Get the sensitivity amount which is be multiplied by the length of
2947     * mouse dragging.
2948     *
2949     * @return the thumb scroll sensitivity friction
2950     *
2951     * @ingroup Scrolling
2952     */
2953    EAPI double           elm_scroll_thumbscroll_sensitivity_friction_get(void);
2954
2955    /**
2956     * Set the sensitivity amount which is be multiplied by the length of
2957     * mouse dragging.
2958     *
2959     * @param friction the thumb scroll sensitivity friction. @c 0.1 for
2960     *        minimun sensitivity, @c 1.0 for maximum sensitivity. 0.25
2961     *        is proper.
2962     *
2963     * @see elm_thumbscroll_sensitivity_friction_get()
2964     * @note parameter value will get bound to 0.1 - 1.0 interval, always
2965     *
2966     * @ingroup Scrolling
2967     */
2968    EAPI void             elm_scroll_thumbscroll_sensitivity_friction_set(double friction);
2969
2970    /**
2971     * Set the sensitivity amount which is be multiplied by the length of
2972     * mouse dragging, for all Elementary application windows.
2973     *
2974     * @param friction the thumb scroll sensitivity friction. @c 0.1 for
2975     *        minimun sensitivity, @c 1.0 for maximum sensitivity. 0.25
2976     *        is proper.
2977     *
2978     * @see elm_thumbscroll_sensitivity_friction_get()
2979     * @note parameter value will get bound to 0.1 - 1.0 interval, always
2980     *
2981     * @ingroup Scrolling
2982     */
2983    EAPI void             elm_scroll_thumbscroll_sensitivity_friction_all_set(double friction);
2984
2985    /**
2986     * @}
2987     */
2988
2989    /**
2990     * @defgroup Scrollhints Scrollhints
2991     *
2992     * Objects when inside a scroller can scroll, but this may not always be
2993     * desirable in certain situations. This allows an object to hint to itself
2994     * and parents to "not scroll" in one of 2 ways. If any child object of a
2995     * scroller has pushed a scroll freeze or hold then it affects all parent
2996     * scrollers until all children have released them.
2997     *
2998     * 1. To hold on scrolling. This means just flicking and dragging may no
2999     * longer scroll, but pressing/dragging near an edge of the scroller will
3000     * still scroll. This is automatically used by the entry object when
3001     * selecting text.
3002     *
3003     * 2. To totally freeze scrolling. This means it stops. until
3004     * popped/released.
3005     *
3006     * @{
3007     */
3008
3009    /**
3010     * Push the scroll hold by 1
3011     *
3012     * This increments the scroll hold count by one. If it is more than 0 it will
3013     * take effect on the parents of the indicated object.
3014     *
3015     * @param obj The object
3016     * @ingroup Scrollhints
3017     */
3018    EAPI void             elm_object_scroll_hold_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
3019
3020    /**
3021     * Pop the scroll hold by 1
3022     *
3023     * This decrements the scroll hold count by one. If it is more than 0 it will
3024     * take effect on the parents of the indicated object.
3025     *
3026     * @param obj The object
3027     * @ingroup Scrollhints
3028     */
3029    EAPI void             elm_object_scroll_hold_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
3030
3031    /**
3032     * Push the scroll freeze by 1
3033     *
3034     * This increments the scroll freeze count by one. If it is more
3035     * than 0 it will take effect on the parents of the indicated
3036     * object.
3037     *
3038     * @param obj The object
3039     * @ingroup Scrollhints
3040     */
3041    EAPI void             elm_object_scroll_freeze_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
3042
3043    /**
3044     * Pop the scroll freeze by 1
3045     *
3046     * This decrements the scroll freeze count by one. If it is more
3047     * than 0 it will take effect on the parents of the indicated
3048     * object.
3049     *
3050     * @param obj The object
3051     * @ingroup Scrollhints
3052     */
3053    EAPI void             elm_object_scroll_freeze_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
3054
3055    /**
3056     * Lock the scrolling of the given widget (and thus all parents)
3057     *
3058     * This locks the given object from scrolling in the X axis (and implicitly
3059     * also locks all parent scrollers too from doing the same).
3060     *
3061     * @param obj The object
3062     * @param lock The lock state (1 == locked, 0 == unlocked)
3063     * @ingroup Scrollhints
3064     */
3065    EAPI void             elm_object_scroll_lock_x_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
3066
3067    /**
3068     * Lock the scrolling of the given widget (and thus all parents)
3069     *
3070     * This locks the given object from scrolling in the Y axis (and implicitly
3071     * also locks all parent scrollers too from doing the same).
3072     *
3073     * @param obj The object
3074     * @param lock The lock state (1 == locked, 0 == unlocked)
3075     * @ingroup Scrollhints
3076     */
3077    EAPI void             elm_object_scroll_lock_y_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
3078
3079    /**
3080     * Get the scrolling lock of the given widget
3081     *
3082     * This gets the lock for X axis scrolling.
3083     *
3084     * @param obj The object
3085     * @ingroup Scrollhints
3086     */
3087    EAPI Eina_Bool        elm_object_scroll_lock_x_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3088
3089    /**
3090     * Get the scrolling lock of the given widget
3091     *
3092     * This gets the lock for X axis scrolling.
3093     *
3094     * @param obj The object
3095     * @ingroup Scrollhints
3096     */
3097    EAPI Eina_Bool        elm_object_scroll_lock_y_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3098
3099    /**
3100     * @}
3101     */
3102
3103    /**
3104     * Send a signal to the widget edje object.
3105     *
3106     * This function sends a signal to the edje object of the obj. An
3107     * edje program can respond to a signal by specifying matching
3108     * 'signal' and 'source' fields.
3109     *
3110     * @param obj The object
3111     * @param emission The signal's name.
3112     * @param source The signal's source.
3113     * @ingroup General
3114     */
3115    EAPI void             elm_object_signal_emit(Evas_Object *obj, const char *emission, const char *source) EINA_ARG_NONNULL(1);
3116
3117    /**
3118     * Add a callback for a signal emitted by widget edje object.
3119     *
3120     * This function connects a callback function to a signal emitted by the
3121     * edje object of the obj.
3122     * Globs can occur in either the emission or source name.
3123     *
3124     * @param obj The object
3125     * @param emission The signal's name.
3126     * @param source The signal's source.
3127     * @param func The callback function to be executed when the signal is
3128     * emitted.
3129     * @param data A pointer to data to pass in to the callback function.
3130     * @ingroup General
3131     */
3132    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);
3133
3134    /**
3135     * Remove a signal-triggered callback from a widget edje object.
3136     *
3137     * This function removes a callback, previoulsy attached to a
3138     * signal emitted by the edje object of the obj.  The parameters
3139     * emission, source and func must match exactly those passed to a
3140     * previous call to elm_object_signal_callback_add(). The data
3141     * pointer that was passed to this call will be returned.
3142     *
3143     * @param obj The object
3144     * @param emission The signal's name.
3145     * @param source The signal's source.
3146     * @param func The callback function to be executed when the signal is
3147     * emitted.
3148     * @return The data pointer
3149     * @ingroup General
3150     */
3151    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);
3152
3153    /**
3154     * Add a callback for input events (key up, key down, mouse wheel)
3155     * on a given Elementary widget
3156     *
3157     * @param obj The widget to add an event callback on
3158     * @param func The callback function to be executed when the event
3159     * happens
3160     * @param data Data to pass in to @p func
3161     *
3162     * Every widget in an Elementary interface set to receive focus,
3163     * with elm_object_focus_allow_set(), will propagate @b all of its
3164     * key up, key down and mouse wheel input events up to its parent
3165     * object, and so on. All of the focusable ones in this chain which
3166     * had an event callback set, with this call, will be able to treat
3167     * those events. There are two ways of making the propagation of
3168     * these event upwards in the tree of widgets to @b cease:
3169     * - Just return @c EINA_TRUE on @p func. @c EINA_FALSE will mean
3170     *   the event was @b not processed, so the propagation will go on.
3171     * - The @c event_info pointer passed to @p func will contain the
3172     *   event's structure and, if you OR its @c event_flags inner
3173     *   value to @c EVAS_EVENT_FLAG_ON_HOLD, you're telling Elementary
3174     *   one has already handled it, thus killing the event's
3175     *   propagation, too.
3176     *
3177     * @note Your event callback will be issued on those events taking
3178     * place only if no other child widget of @obj has consumed the
3179     * event already.
3180     *
3181     * @note Not to be confused with @c
3182     * evas_object_event_callback_add(), which will add event callbacks
3183     * per type on general Evas objects (no event propagation
3184     * infrastructure taken in account).
3185     *
3186     * @note Not to be confused with @c
3187     * elm_object_signal_callback_add(), which will add callbacks to @b
3188     * signals coming from a widget's theme, not input events.
3189     *
3190     * @note Not to be confused with @c
3191     * edje_object_signal_callback_add(), which does the same as
3192     * elm_object_signal_callback_add(), but directly on an Edje
3193     * object.
3194     *
3195     * @note Not to be confused with @c
3196     * evas_object_smart_callback_add(), which adds callbacks to smart
3197     * objects' <b>smart events</b>, and not input events.
3198     *
3199     * @see elm_object_event_callback_del()
3200     *
3201     * @ingroup General
3202     */
3203    EAPI void             elm_object_event_callback_add(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
3204
3205    /**
3206     * Remove an event callback from a widget.
3207     *
3208     * This function removes a callback, previoulsy attached to event emission
3209     * by the @p obj.
3210     * The parameters func and data must match exactly those passed to
3211     * a previous call to elm_object_event_callback_add(). The data pointer that
3212     * was passed to this call will be returned.
3213     *
3214     * @param obj The object
3215     * @param func The callback function to be executed when the event is
3216     * emitted.
3217     * @param data Data to pass in to the callback function.
3218     * @return The data pointer
3219     * @ingroup General
3220     */
3221    EAPI void            *elm_object_event_callback_del(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
3222
3223    /**
3224     * Adjust size of an element for finger usage.
3225     *
3226     * @param times_w How many fingers should fit horizontally
3227     * @param w Pointer to the width size to adjust
3228     * @param times_h How many fingers should fit vertically
3229     * @param h Pointer to the height size to adjust
3230     *
3231     * This takes width and height sizes (in pixels) as input and a
3232     * size multiple (which is how many fingers you want to place
3233     * within the area, being "finger" the size set by
3234     * elm_finger_size_set()), and adjusts the size to be large enough
3235     * to accommodate the resulting size -- if it doesn't already
3236     * accommodate it. On return the @p w and @p h sizes pointed to by
3237     * these parameters will be modified, on those conditions.
3238     *
3239     * @note This is kind of a low level Elementary call, most useful
3240     * on size evaluation times for widgets. An external user wouldn't
3241     * be calling, most of the time.
3242     *
3243     * @ingroup Fingers
3244     */
3245    EAPI void             elm_coords_finger_size_adjust(int times_w, Evas_Coord *w, int times_h, Evas_Coord *h);
3246
3247    /**
3248     * Get the duration for occuring long press event.
3249     *
3250     * @return Timeout for long press event
3251     * @ingroup Longpress
3252     */
3253    EAPI double           elm_longpress_timeout_get(void);
3254
3255    /**
3256     * Set the duration for occuring long press event.
3257     *
3258     * @param lonpress_timeout Timeout for long press event
3259     * @ingroup Longpress
3260     */
3261    EAPI void             elm_longpress_timeout_set(double longpress_timeout);
3262
3263    /**
3264     * @defgroup Debug Debug
3265     * don't use it unless you are sure
3266     *
3267     * @{
3268     */
3269
3270    /**
3271     * Print Tree object hierarchy in stdout
3272     *
3273     * @param obj The root object
3274     * @ingroup Debug
3275     */
3276    EAPI void             elm_object_tree_dump(const Evas_Object *top);
3277    EAPI void             elm_object_tree_dot_dump(const Evas_Object *top, const char *file);
3278
3279    EAPI void             elm_autocapitalization_allow_all_set(Eina_Bool autocap);
3280    EAPI void             elm_autoperiod_allow_all_set(Eina_Bool autoperiod);
3281    /**
3282     * Print Elm Objects tree hierarchy in file as dot(graphviz) syntax.
3283     *
3284     * @param obj The root object
3285     * @param file The path of output file
3286     * @ingroup Debug
3287     */
3288    EAPI void             elm_object_tree_dot_dump(const Evas_Object *top, const char *file);
3289
3290    /**
3291     * @}
3292     */
3293
3294    /**
3295     * @defgroup Theme Theme
3296     *
3297     * Elementary uses Edje to theme its widgets, naturally. But for the most
3298     * part this is hidden behind a simpler interface that lets the user set
3299     * extensions and choose the style of widgets in a much easier way.
3300     *
3301     * Instead of thinking in terms of paths to Edje files and their groups
3302     * each time you want to change the appearance of a widget, Elementary
3303     * works so you can add any theme file with extensions or replace the
3304     * main theme at one point in the application, and then just set the style
3305     * of widgets with elm_object_style_set() and related functions. Elementary
3306     * will then look in its list of themes for a matching group and apply it,
3307     * and when the theme changes midway through the application, all widgets
3308     * will be updated accordingly.
3309     *
3310     * There are three concepts you need to know to understand how Elementary
3311     * theming works: default theme, extensions and overlays.
3312     *
3313     * Default theme, obviously enough, is the one that provides the default
3314     * look of all widgets. End users can change the theme used by Elementary
3315     * by setting the @c ELM_THEME environment variable before running an
3316     * application, or globally for all programs using the @c elementary_config
3317     * utility. Applications can change the default theme using elm_theme_set(),
3318     * but this can go against the user wishes, so it's not an adviced practice.
3319     *
3320     * Ideally, applications should find everything they need in the already
3321     * provided theme, but there may be occasions when that's not enough and
3322     * custom styles are required to correctly express the idea. For this
3323     * cases, Elementary has extensions.
3324     *
3325     * Extensions allow the application developer to write styles of its own
3326     * to apply to some widgets. This requires knowledge of how each widget
3327     * is themed, as extensions will always replace the entire group used by
3328     * the widget, so important signals and parts need to be there for the
3329     * object to behave properly (see documentation of Edje for details).
3330     * Once the theme for the extension is done, the application needs to add
3331     * it to the list of themes Elementary will look into, using
3332     * elm_theme_extension_add(), and set the style of the desired widgets as
3333     * he would normally with elm_object_style_set().
3334     *
3335     * Overlays, on the other hand, can replace the look of all widgets by
3336     * overriding the default style. Like extensions, it's up to the application
3337     * developer to write the theme for the widgets it wants, the difference
3338     * being that when looking for the theme, Elementary will check first the
3339     * list of overlays, then the set theme and lastly the list of extensions,
3340     * so with overlays it's possible to replace the default view and every
3341     * widget will be affected. This is very much alike to setting the whole
3342     * theme for the application and will probably clash with the end user
3343     * options, not to mention the risk of ending up with not matching styles
3344     * across the program. Unless there's a very special reason to use them,
3345     * overlays should be avoided for the resons exposed before.
3346     *
3347     * All these theme lists are handled by ::Elm_Theme instances. Elementary
3348     * keeps one default internally and every function that receives one of
3349     * these can be called with NULL to refer to this default (except for
3350     * elm_theme_free()). It's possible to create a new instance of a
3351     * ::Elm_Theme to set other theme for a specific widget (and all of its
3352     * children), but this is as discouraged, if not even more so, than using
3353     * overlays. Don't use this unless you really know what you are doing.
3354     *
3355     * But to be less negative about things, you can look at the following
3356     * examples:
3357     * @li @ref theme_example_01 "Using extensions"
3358     * @li @ref theme_example_02 "Using overlays"
3359     *
3360     * @{
3361     */
3362    /**
3363     * @typedef Elm_Theme
3364     *
3365     * Opaque handler for the list of themes Elementary looks for when
3366     * rendering widgets.
3367     *
3368     * Stay out of this unless you really know what you are doing. For most
3369     * cases, sticking to the default is all a developer needs.
3370     */
3371    typedef struct _Elm_Theme Elm_Theme;
3372
3373    /**
3374     * Create a new specific theme
3375     *
3376     * This creates an empty specific theme that only uses the default theme. A
3377     * specific theme has its own private set of extensions and overlays too
3378     * (which are empty by default). Specific themes do not fall back to themes
3379     * of parent objects. They are not intended for this use. Use styles, overlays
3380     * and extensions when needed, but avoid specific themes unless there is no
3381     * other way (example: you want to have a preview of a new theme you are
3382     * selecting in a "theme selector" window. The preview is inside a scroller
3383     * and should display what the theme you selected will look like, but not
3384     * actually apply it yet. The child of the scroller will have a specific
3385     * theme set to show this preview before the user decides to apply it to all
3386     * applications).
3387     */
3388    EAPI Elm_Theme       *elm_theme_new(void);
3389    /**
3390     * Free a specific theme
3391     *
3392     * @param th The theme to free
3393     *
3394     * This frees a theme created with elm_theme_new().
3395     */
3396    EAPI void             elm_theme_free(Elm_Theme *th);
3397    /**
3398     * Copy the theme fom the source to the destination theme
3399     *
3400     * @param th The source theme to copy from
3401     * @param thdst The destination theme to copy data to
3402     *
3403     * This makes a one-time static copy of all the theme config, extensions
3404     * and overlays from @p th to @p thdst. If @p th references a theme, then
3405     * @p thdst is also set to reference it, with all the theme settings,
3406     * overlays and extensions that @p th had.
3407     */
3408    EAPI void             elm_theme_copy(Elm_Theme *th, Elm_Theme *thdst);
3409    /**
3410     * Tell the source theme to reference the ref theme
3411     *
3412     * @param th The theme that will do the referencing
3413     * @param thref The theme that is the reference source
3414     *
3415     * This clears @p th to be empty and then sets it to refer to @p thref
3416     * so @p th acts as an override to @p thref, but where its overrides
3417     * don't apply, it will fall through to @p thref for configuration.
3418     */
3419    EAPI void             elm_theme_ref_set(Elm_Theme *th, Elm_Theme *thref);
3420    /**
3421     * Return the theme referred to
3422     *
3423     * @param th The theme to get the reference from
3424     * @return The referenced theme handle
3425     *
3426     * This gets the theme set as the reference theme by elm_theme_ref_set().
3427     * If no theme is set as a reference, NULL is returned.
3428     */
3429    EAPI Elm_Theme       *elm_theme_ref_get(Elm_Theme *th);
3430    /**
3431     * Return the default theme
3432     *
3433     * @return The default theme handle
3434     *
3435     * This returns the internal default theme setup handle that all widgets
3436     * use implicitly unless a specific theme is set. This is also often use
3437     * as a shorthand of NULL.
3438     */
3439    EAPI Elm_Theme       *elm_theme_default_get(void);
3440    /**
3441     * Prepends a theme overlay to the list of overlays
3442     *
3443     * @param th The theme to add to, or if NULL, the default theme
3444     * @param item The Edje file path to be used
3445     *
3446     * Use this if your application needs to provide some custom overlay theme
3447     * (An Edje file that replaces some default styles of widgets) where adding
3448     * new styles, or changing system theme configuration is not possible. Do
3449     * NOT use this instead of a proper system theme configuration. Use proper
3450     * configuration files, profiles, environment variables etc. to set a theme
3451     * so that the theme can be altered by simple confiugration by a user. Using
3452     * this call to achieve that effect is abusing the API and will create lots
3453     * of trouble.
3454     *
3455     * @see elm_theme_extension_add()
3456     */
3457    EAPI void             elm_theme_overlay_add(Elm_Theme *th, const char *item);
3458    /**
3459     * Delete a theme overlay from the list of overlays
3460     *
3461     * @param th The theme to delete from, or if NULL, the default theme
3462     * @param item The name of the theme overlay
3463     *
3464     * @see elm_theme_overlay_add()
3465     */
3466    EAPI void             elm_theme_overlay_del(Elm_Theme *th, const char *item);
3467    /**
3468     * Appends a theme extension to the list of extensions.
3469     *
3470     * @param th The theme to add to, or if NULL, the default theme
3471     * @param item The Edje file path to be used
3472     *
3473     * This is intended when an application needs more styles of widgets or new
3474     * widget themes that the default does not provide (or may not provide). The
3475     * application has "extended" usage by coming up with new custom style names
3476     * for widgets for specific uses, but as these are not "standard", they are
3477     * not guaranteed to be provided by a default theme. This means the
3478     * application is required to provide these extra elements itself in specific
3479     * Edje files. This call adds one of those Edje files to the theme search
3480     * path to be search after the default theme. The use of this call is
3481     * encouraged when default styles do not meet the needs of the application.
3482     * Use this call instead of elm_theme_overlay_add() for almost all cases.
3483     *
3484     * @see elm_object_style_set()
3485     */
3486    EAPI void             elm_theme_extension_add(Elm_Theme *th, const char *item);
3487    /**
3488     * Deletes a theme extension from the list of extensions.
3489     *
3490     * @param th The theme to delete from, or if NULL, the default theme
3491     * @param item The name of the theme extension
3492     *
3493     * @see elm_theme_extension_add()
3494     */
3495    EAPI void             elm_theme_extension_del(Elm_Theme *th, const char *item);
3496    /**
3497     * Set the theme search order for the given theme
3498     *
3499     * @param th The theme to set the search order, or if NULL, the default theme
3500     * @param theme Theme search string
3501     *
3502     * This sets the search string for the theme in path-notation from first
3503     * theme to search, to last, delimited by the : character. Example:
3504     *
3505     * "shiny:/path/to/file.edj:default"
3506     *
3507     * See the ELM_THEME environment variable for more information.
3508     *
3509     * @see elm_theme_get()
3510     * @see elm_theme_list_get()
3511     */
3512    EAPI void             elm_theme_set(Elm_Theme *th, const char *theme);
3513    /**
3514     * Return the theme search order
3515     *
3516     * @param th The theme to get the search order, or if NULL, the default theme
3517     * @return The internal search order path
3518     *
3519     * This function returns a colon separated string of theme elements as
3520     * returned by elm_theme_list_get().
3521     *
3522     * @see elm_theme_set()
3523     * @see elm_theme_list_get()
3524     */
3525    EAPI const char      *elm_theme_get(Elm_Theme *th);
3526    /**
3527     * Return a list of theme elements to be used in a theme.
3528     *
3529     * @param th Theme to get the list of theme elements from.
3530     * @return The internal list of theme elements
3531     *
3532     * This returns the internal list of theme elements (will only be valid as
3533     * long as the theme is not modified by elm_theme_set() or theme is not
3534     * freed by elm_theme_free(). This is a list of strings which must not be
3535     * altered as they are also internal. If @p th is NULL, then the default
3536     * theme element list is returned.
3537     *
3538     * A theme element can consist of a full or relative path to a .edj file,
3539     * or a name, without extension, for a theme to be searched in the known
3540     * theme paths for Elemementary.
3541     *
3542     * @see elm_theme_set()
3543     * @see elm_theme_get()
3544     */
3545    EAPI const Eina_List *elm_theme_list_get(const Elm_Theme *th);
3546    /**
3547     * Return the full patrh for a theme element
3548     *
3549     * @param f The theme element name
3550     * @param in_search_path Pointer to a boolean to indicate if item is in the search path or not
3551     * @return The full path to the file found.
3552     *
3553     * This returns a string you should free with free() on success, NULL on
3554     * failure. This will search for the given theme element, and if it is a
3555     * full or relative path element or a simple searchable name. The returned
3556     * path is the full path to the file, if searched, and the file exists, or it
3557     * is simply the full path given in the element or a resolved path if
3558     * relative to home. The @p in_search_path boolean pointed to is set to
3559     * EINA_TRUE if the file was a searchable file andis in the search path,
3560     * and EINA_FALSE otherwise.
3561     */
3562    EAPI char            *elm_theme_list_item_path_get(const char *f, Eina_Bool *in_search_path);
3563    /**
3564     * Flush the current theme.
3565     *
3566     * @param th Theme to flush
3567     *
3568     * This flushes caches that let elementary know where to find theme elements
3569     * in the given theme. If @p th is NULL, then the default theme is flushed.
3570     * Call this function if source theme data has changed in such a way as to
3571     * make any caches Elementary kept invalid.
3572     */
3573    EAPI void             elm_theme_flush(Elm_Theme *th);
3574    /**
3575     * This flushes all themes (default and specific ones).
3576     *
3577     * This will flush all themes in the current application context, by calling
3578     * elm_theme_flush() on each of them.
3579     */
3580    EAPI void             elm_theme_full_flush(void);
3581    /**
3582     * Set the theme for all elementary using applications on the current display
3583     *
3584     * @param theme The name of the theme to use. Format same as the ELM_THEME
3585     * environment variable.
3586     */
3587    EAPI void             elm_theme_all_set(const char *theme);
3588    /**
3589     * Return a list of theme elements in the theme search path
3590     *
3591     * @return A list of strings that are the theme element names.
3592     *
3593     * This lists all available theme files in the standard Elementary search path
3594     * for theme elements, and returns them in alphabetical order as theme
3595     * element names in a list of strings. Free this with
3596     * elm_theme_name_available_list_free() when you are done with the list.
3597     */
3598    EAPI Eina_List       *elm_theme_name_available_list_new(void);
3599    /**
3600     * Free the list returned by elm_theme_name_available_list_new()
3601     *
3602     * This frees the list of themes returned by
3603     * elm_theme_name_available_list_new(). Once freed the list should no longer
3604     * be used. a new list mys be created.
3605     */
3606    EAPI void             elm_theme_name_available_list_free(Eina_List *list);
3607    /**
3608     * Set a specific theme to be used for this object and its children
3609     *
3610     * @param obj The object to set the theme on
3611     * @param th The theme to set
3612     *
3613     * This sets a specific theme that will be used for the given object and any
3614     * child objects it has. If @p th is NULL then the theme to be used is
3615     * cleared and the object will inherit its theme from its parent (which
3616     * ultimately will use the default theme if no specific themes are set).
3617     *
3618     * Use special themes with great care as this will annoy users and make
3619     * configuration difficult. Avoid any custom themes at all if it can be
3620     * helped.
3621     */
3622    EAPI void             elm_object_theme_set(Evas_Object *obj, Elm_Theme *th) EINA_ARG_NONNULL(1);
3623    /**
3624     * Get the specific theme to be used
3625     *
3626     * @param obj The object to get the specific theme from
3627     * @return The specifc theme set.
3628     *
3629     * This will return a specific theme set, or NULL if no specific theme is
3630     * set on that object. It will not return inherited themes from parents, only
3631     * the specific theme set for that specific object. See elm_object_theme_set()
3632     * for more information.
3633     */
3634    EAPI Elm_Theme       *elm_object_theme_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3635
3636    /**
3637     * Get a data item from a theme
3638     *
3639     * @param th The theme, or NULL for default theme
3640     * @param key The data key to search with
3641     * @return The data value, or NULL on failure
3642     *
3643     * This function is used to return data items from edc in @p th, an overlay, or an extension.
3644     * It works the same way as edje_file_data_get() except that the return is stringshared.
3645     */
3646    EAPI const char      *elm_theme_data_get(Elm_Theme *th, const char *key) EINA_ARG_NONNULL(2);
3647    /**
3648     * @}
3649     */
3650
3651    /* win */
3652    /** @defgroup Win Win
3653     *
3654     * @image html img/widget/win/preview-00.png
3655     * @image latex img/widget/win/preview-00.eps
3656     *
3657     * The window class of Elementary.  Contains functions to manipulate
3658     * windows. The Evas engine used to render the window contents is specified
3659     * in the system or user elementary config files (whichever is found last),
3660     * and can be overridden with the ELM_ENGINE environment variable for
3661     * testing.  Engines that may be supported (depending on Evas and Ecore-Evas
3662     * compilation setup and modules actually installed at runtime) are (listed
3663     * in order of best supported and most likely to be complete and work to
3664     * lowest quality).
3665     *
3666     * @li "x11", "x", "software-x11", "software_x11" (Software rendering in X11)
3667     * @li "gl", "opengl", "opengl-x11", "opengl_x11" (OpenGL or OpenGL-ES2
3668     * rendering in X11)
3669     * @li "shot:..." (Virtual screenshot renderer - renders to output file and
3670     * exits)
3671     * @li "fb", "software-fb", "software_fb" (Linux framebuffer direct software
3672     * rendering)
3673     * @li "sdl", "software-sdl", "software_sdl" (SDL software rendering to SDL
3674     * buffer)
3675     * @li "gl-sdl", "gl_sdl", "opengl-sdl", "opengl_sdl" (OpenGL or OpenGL-ES2
3676     * rendering using SDL as the buffer)
3677     * @li "gdi", "software-gdi", "software_gdi" (Windows WIN32 rendering via
3678     * GDI with software)
3679     * @li "dfb", "directfb" (Rendering to a DirectFB window)
3680     * @li "x11-8", "x8", "software-8-x11", "software_8_x11" (Rendering in
3681     * grayscale using dedicated 8bit software engine in X11)
3682     * @li "x11-16", "x16", "software-16-x11", "software_16_x11" (Rendering in
3683     * X11 using 16bit software engine)
3684     * @li "wince-gdi", "software-16-wince-gdi", "software_16_wince_gdi"
3685     * (Windows CE rendering via GDI with 16bit software renderer)
3686     * @li "sdl-16", "software-16-sdl", "software_16_sdl" (Rendering to SDL
3687     * buffer with 16bit software renderer)
3688     * @li "ews" (rendering to EWS - Ecore + Evas Single Process Windowing System)
3689     * @li "gl-cocoa", "gl_cocoa", "opengl-cocoa", "opengl_cocoa" (OpenGL rendering in Cocoa)
3690     * @li "psl1ght" (PS3 rendering using PSL1GHT)
3691     *
3692     * All engines use a simple string to select the engine to render, EXCEPT
3693     * the "shot" engine. This actually encodes the output of the virtual
3694     * screenshot and how long to delay in the engine string. The engine string
3695     * is encoded in the following way:
3696     *
3697     *   "shot:[delay=XX][:][repeat=DDD][:][file=XX]"
3698     *
3699     * Where options are separated by a ":" char if more than one option is
3700     * given, with delay, if provided being the first option and file the last
3701     * (order is important). The delay specifies how long to wait after the
3702     * window is shown before doing the virtual "in memory" rendering and then
3703     * save the output to the file specified by the file option (and then exit).
3704     * If no delay is given, the default is 0.5 seconds. If no file is given the
3705     * default output file is "out.png". Repeat option is for continous
3706     * capturing screenshots. Repeat range is from 1 to 999 and filename is
3707     * fixed to "out001.png" Some examples of using the shot engine:
3708     *
3709     *   ELM_ENGINE="shot:delay=1.0:repeat=5:file=elm_test.png" elementary_test
3710     *   ELM_ENGINE="shot:delay=1.0:file=elm_test.png" elementary_test
3711     *   ELM_ENGINE="shot:file=elm_test2.png" elementary_test
3712     *   ELM_ENGINE="shot:delay=2.0" elementary_test
3713     *   ELM_ENGINE="shot:" elementary_test
3714     *
3715     * Signals that you can add callbacks for are:
3716     *
3717     * @li "delete,request": the user requested to close the window. See
3718     * elm_win_autodel_set().
3719     * @li "focus,in": window got focus
3720     * @li "focus,out": window lost focus
3721     * @li "moved": window that holds the canvas was moved
3722     *
3723     * Examples:
3724     * @li @ref win_example_01
3725     *
3726     * @{
3727     */
3728    /**
3729     * Defines the types of window that can be created
3730     *
3731     * These are hints set on the window so that a running Window Manager knows
3732     * how the window should be handled and/or what kind of decorations it
3733     * should have.
3734     *
3735     * Currently, only the X11 backed engines use them.
3736     */
3737    typedef enum _Elm_Win_Type
3738      {
3739         ELM_WIN_BASIC, /**< A normal window. Indicates a normal, top-level
3740                          window. Almost every window will be created with this
3741                          type. */
3742         ELM_WIN_DIALOG_BASIC, /**< Used for simple dialog windows/ */
3743         ELM_WIN_DESKTOP, /**< For special desktop windows, like a background
3744                            window holding desktop icons. */
3745         ELM_WIN_DOCK, /**< The window is used as a dock or panel. Usually would
3746                         be kept on top of any other window by the Window
3747                         Manager. */
3748         ELM_WIN_TOOLBAR, /**< The window is used to hold a floating toolbar, or
3749                            similar. */
3750         ELM_WIN_MENU, /**< Similar to #ELM_WIN_TOOLBAR. */
3751         ELM_WIN_UTILITY, /**< A persistent utility window, like a toolbox or
3752                            pallete. */
3753         ELM_WIN_SPLASH, /**< Splash window for a starting up application. */
3754         ELM_WIN_DROPDOWN_MENU, /**< The window is a dropdown menu, as when an
3755                                  entry in a menubar is clicked. Typically used
3756                                  with elm_win_override_set(). This hint exists
3757                                  for completion only, as the EFL way of
3758                                  implementing a menu would not normally use a
3759                                  separate window for its contents. */
3760         ELM_WIN_POPUP_MENU, /**< Like #ELM_WIN_DROPDOWN_MENU, but for the menu
3761                               triggered by right-clicking an object. */
3762         ELM_WIN_TOOLTIP, /**< The window is a tooltip. A short piece of
3763                            explanatory text that typically appear after the
3764                            mouse cursor hovers over an object for a while.
3765                            Typically used with elm_win_override_set() and also
3766                            not very commonly used in the EFL. */
3767         ELM_WIN_NOTIFICATION, /**< A notification window, like a warning about
3768                                 battery life or a new E-Mail received. */
3769         ELM_WIN_COMBO, /**< A window holding the contents of a combo box. Not
3770                          usually used in the EFL. */
3771         ELM_WIN_DND, /**< Used to indicate the window is a representation of an
3772                        object being dragged across different windows, or even
3773                        applications. Typically used with
3774                        elm_win_override_set(). */
3775         ELM_WIN_INLINED_IMAGE, /**< The window is rendered onto an image
3776                                  buffer. No actual window is created for this
3777                                  type, instead the window and all of its
3778                                  contents will be rendered to an image buffer.
3779                                  This allows to have children window inside a
3780                                  parent one just like any other object would
3781                                  be, and do other things like applying @c
3782                                  Evas_Map effects to it. This is the only type
3783                                  of window that requires the @c parent
3784                                  parameter of elm_win_add() to be a valid @c
3785                                  Evas_Object. */
3786      } Elm_Win_Type;
3787
3788    /**
3789     * The differents layouts that can be requested for the virtual keyboard.
3790     *
3791     * When the application window is being managed by Illume, it may request
3792     * any of the following layouts for the virtual keyboard.
3793     */
3794    typedef enum _Elm_Win_Keyboard_Mode
3795      {
3796         ELM_WIN_KEYBOARD_UNKNOWN, /**< Unknown keyboard state */
3797         ELM_WIN_KEYBOARD_OFF, /**< Request to deactivate the keyboard */
3798         ELM_WIN_KEYBOARD_ON, /**< Enable keyboard with default layout */
3799         ELM_WIN_KEYBOARD_ALPHA, /**< Alpha (a-z) keyboard layout */
3800         ELM_WIN_KEYBOARD_NUMERIC, /**< Numeric keyboard layout */
3801         ELM_WIN_KEYBOARD_PIN, /**< PIN keyboard layout */
3802         ELM_WIN_KEYBOARD_PHONE_NUMBER, /**< Phone keyboard layout */
3803         ELM_WIN_KEYBOARD_HEX, /**< Hexadecimal numeric keyboard layout */
3804         ELM_WIN_KEYBOARD_TERMINAL, /**< Full (QUERTY) keyboard layout */
3805         ELM_WIN_KEYBOARD_PASSWORD, /**< Password keyboard layout */
3806         ELM_WIN_KEYBOARD_IP, /**< IP keyboard layout */
3807         ELM_WIN_KEYBOARD_HOST, /**< Host keyboard layout */
3808         ELM_WIN_KEYBOARD_FILE, /**< File keyboard layout */
3809         ELM_WIN_KEYBOARD_URL, /**< URL keyboard layout */
3810         ELM_WIN_KEYBOARD_KEYPAD, /**< Keypad layout */
3811         ELM_WIN_KEYBOARD_J2ME /**< J2ME keyboard layout */
3812      } Elm_Win_Keyboard_Mode;
3813
3814    /**
3815     * Available commands that can be sent to the Illume manager.
3816     *
3817     * When running under an Illume session, a window may send commands to the
3818     * Illume manager to perform different actions.
3819     */
3820    typedef enum _Elm_Illume_Command
3821      {
3822         ELM_ILLUME_COMMAND_FOCUS_BACK, /**< Reverts focus to the previous
3823                                          window */
3824         ELM_ILLUME_COMMAND_FOCUS_FORWARD, /**< Sends focus to the next window\
3825                                             in the list */
3826         ELM_ILLUME_COMMAND_FOCUS_HOME, /**< Hides all windows to show the Home
3827                                          screen */
3828         ELM_ILLUME_COMMAND_CLOSE /**< Closes the currently active window */
3829      } Elm_Illume_Command;
3830
3831    /**
3832     * Adds a window object. If this is the first window created, pass NULL as
3833     * @p parent.
3834     *
3835     * @param parent Parent object to add the window to, or NULL
3836     * @param name The name of the window
3837     * @param type The window type, one of #Elm_Win_Type.
3838     *
3839     * The @p parent paramter can be @c NULL for every window @p type except
3840     * #ELM_WIN_INLINED_IMAGE, which needs a parent to retrieve the canvas on
3841     * which the image object will be created.
3842     *
3843     * @return The created object, or NULL on failure
3844     */
3845    EAPI Evas_Object *elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type);
3846    /**
3847     * Adds a window object with standard setup
3848     *
3849     * @param name The name of the window
3850     * @param title The title for the window
3851     *
3852     * This creates a window like elm_win_add() but also puts in a standard
3853     * background with elm_bg_add(), as well as setting the window title to
3854     * @p title. The window type created is of type ELM_WIN_BASIC, with NULL
3855     * as the parent widget.
3856     * 
3857     * @return The created object, or NULL on failure
3858     *
3859     * @see elm_win_add()
3860     */
3861    EAPI Evas_Object *elm_win_util_standard_add(const char *name, const char *title);
3862    /**
3863     * Add @p subobj as a resize object of window @p obj.
3864     *
3865     *
3866     * Setting an object as a resize object of the window means that the
3867     * @p subobj child's size and position will be controlled by the window
3868     * directly. That is, the object will be resized to match the window size
3869     * and should never be moved or resized manually by the developer.
3870     *
3871     * In addition, resize objects of the window control what the minimum size
3872     * of it will be, as well as whether it can or not be resized by the user.
3873     *
3874     * For the end user to be able to resize a window by dragging the handles
3875     * or borders provided by the Window Manager, or using any other similar
3876     * mechanism, all of the resize objects in the window should have their
3877     * evas_object_size_hint_weight_set() set to EVAS_HINT_EXPAND.
3878     *
3879     * @param obj The window object
3880     * @param subobj The resize object to add
3881     */
3882    EAPI void         elm_win_resize_object_add(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
3883    /**
3884     * Delete @p subobj as a resize object of window @p obj.
3885     *
3886     * This function removes the object @p subobj from the resize objects of
3887     * the window @p obj. It will not delete the object itself, which will be
3888     * left unmanaged and should be deleted by the developer, manually handled
3889     * or set as child of some other container.
3890     *
3891     * @param obj The window object
3892     * @param subobj The resize object to add
3893     */
3894    EAPI void         elm_win_resize_object_del(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
3895    /**
3896     * Set the title of the window
3897     *
3898     * @param obj The window object
3899     * @param title The title to set
3900     */
3901    EAPI void         elm_win_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
3902    /**
3903     * Get the title of the window
3904     *
3905     * The returned string is an internal one and should not be freed or
3906     * modified. It will also be rendered invalid if a new title is set or if
3907     * the window is destroyed.
3908     *
3909     * @param obj The window object
3910     * @return The title
3911     */
3912    EAPI const char  *elm_win_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3913    /**
3914     * Set the window's autodel state.
3915     *
3916     * When closing the window in any way outside of the program control, like
3917     * pressing the X button in the titlebar or using a command from the
3918     * Window Manager, a "delete,request" signal is emitted to indicate that
3919     * this event occurred and the developer can take any action, which may
3920     * include, or not, destroying the window object.
3921     *
3922     * When the @p autodel parameter is set, the window will be automatically
3923     * destroyed when this event occurs, after the signal is emitted.
3924     * If @p autodel is @c EINA_FALSE, then the window will not be destroyed
3925     * and is up to the program to do so when it's required.
3926     *
3927     * @param obj The window object
3928     * @param autodel If true, the window will automatically delete itself when
3929     * closed
3930     */
3931    EAPI void         elm_win_autodel_set(Evas_Object *obj, Eina_Bool autodel) EINA_ARG_NONNULL(1);
3932    /**
3933     * Get the window's autodel state.
3934     *
3935     * @param obj The window object
3936     * @return If the window will automatically delete itself when closed
3937     *
3938     * @see elm_win_autodel_set()
3939     */
3940    EAPI Eina_Bool    elm_win_autodel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3941    /**
3942     * Activate a window object.
3943     *
3944     * This function sends a request to the Window Manager to activate the
3945     * window pointed by @p obj. If honored by the WM, the window will receive
3946     * the keyboard focus.
3947     *
3948     * @note This is just a request that a Window Manager may ignore, so calling
3949     * this function does not ensure in any way that the window will be the
3950     * active one after it.
3951     *
3952     * @param obj The window object
3953     */
3954    EAPI void         elm_win_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
3955    /**
3956     * Lower a window object.
3957     *
3958     * Places the window pointed by @p obj at the bottom of the stack, so that
3959     * no other window is covered by it.
3960     *
3961     * If elm_win_override_set() is not set, the Window Manager may ignore this
3962     * request.
3963     *
3964     * @param obj The window object
3965     */
3966    EAPI void         elm_win_lower(Evas_Object *obj) EINA_ARG_NONNULL(1);
3967    /**
3968     * Raise a window object.
3969     *
3970     * Places the window pointed by @p obj at the top of the stack, so that it's
3971     * not covered by any other window.
3972     *
3973     * If elm_win_override_set() is not set, the Window Manager may ignore this
3974     * request.
3975     *
3976     * @param obj The window object
3977     */
3978    EAPI void         elm_win_raise(Evas_Object *obj) EINA_ARG_NONNULL(1);
3979    /**
3980     * Set the borderless state of a window.
3981     *
3982     * This function requests the Window Manager to not draw any decoration
3983     * around the window.
3984     *
3985     * @param obj The window object
3986     * @param borderless If true, the window is borderless
3987     */
3988    EAPI void         elm_win_borderless_set(Evas_Object *obj, Eina_Bool borderless) EINA_ARG_NONNULL(1);
3989    /**
3990     * Get the borderless state of a window.
3991     *
3992     * @param obj The window object
3993     * @return If true, the window is borderless
3994     */
3995    EAPI Eina_Bool    elm_win_borderless_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3996    /**
3997     * Set the shaped state of a window.
3998     *
3999     * Shaped windows, when supported, will render the parts of the window that
4000     * has no content, transparent.
4001     *
4002     * If @p shaped is EINA_FALSE, then it is strongly adviced to have some
4003     * background object or cover the entire window in any other way, or the
4004     * parts of the canvas that have no data will show framebuffer artifacts.
4005     *
4006     * @param obj The window object
4007     * @param shaped If true, the window is shaped
4008     *
4009     * @see elm_win_alpha_set()
4010     */
4011    EAPI void         elm_win_shaped_set(Evas_Object *obj, Eina_Bool shaped) EINA_ARG_NONNULL(1);
4012    /**
4013     * Get the shaped state of a window.
4014     *
4015     * @param obj The window object
4016     * @return If true, the window is shaped
4017     *
4018     * @see elm_win_shaped_set()
4019     */
4020    EAPI Eina_Bool    elm_win_shaped_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4021    /**
4022     * Set the alpha channel state of a window.
4023     *
4024     * If @p alpha is EINA_TRUE, the alpha channel of the canvas will be enabled
4025     * possibly making parts of the window completely or partially transparent.
4026     * This is also subject to the underlying system supporting it, like for
4027     * example, running under a compositing manager. If no compositing is
4028     * available, enabling this option will instead fallback to using shaped
4029     * windows, with elm_win_shaped_set().
4030     *
4031     * @param obj The window object
4032     * @param alpha If true, the window has an alpha channel
4033     *
4034     * @see elm_win_alpha_set()
4035     */
4036    EAPI void         elm_win_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
4037    /**
4038     * Get the transparency state of a window.
4039     *
4040     * @param obj The window object
4041     * @return If true, the window is transparent
4042     *
4043     * @see elm_win_transparent_set()
4044     */
4045    EAPI Eina_Bool    elm_win_transparent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4046    /**
4047     * Set the transparency state of a window.
4048     *
4049     * Use elm_win_alpha_set() instead.
4050     *
4051     * @param obj The window object
4052     * @param transparent If true, the window is transparent
4053     *
4054     * @see elm_win_alpha_set()
4055     */
4056    EAPI void         elm_win_transparent_set(Evas_Object *obj, Eina_Bool transparent) EINA_ARG_NONNULL(1);
4057    /**
4058     * Get the alpha channel state of a window.
4059     *
4060     * @param obj The window object
4061     * @return If true, the window has an alpha channel
4062     */
4063    EAPI Eina_Bool    elm_win_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4064    /**
4065     * Set the override state of a window.
4066     *
4067     * A window with @p override set to EINA_TRUE will not be managed by the
4068     * Window Manager. This means that no decorations of any kind will be shown
4069     * for it, moving and resizing must be handled by the application, as well
4070     * as the window visibility.
4071     *
4072     * This should not be used for normal windows, and even for not so normal
4073     * ones, it should only be used when there's a good reason and with a lot
4074     * of care. Mishandling override windows may result situations that
4075     * disrupt the normal workflow of the end user.
4076     *
4077     * @param obj The window object
4078     * @param override If true, the window is overridden
4079     */
4080    EAPI void         elm_win_override_set(Evas_Object *obj, Eina_Bool override) EINA_ARG_NONNULL(1);
4081    /**
4082     * Get the override state of a window.
4083     *
4084     * @param obj The window object
4085     * @return If true, the window is overridden
4086     *
4087     * @see elm_win_override_set()
4088     */
4089    EAPI Eina_Bool    elm_win_override_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4090    /**
4091     * Set the fullscreen state of a window.
4092     *
4093     * @param obj The window object
4094     * @param fullscreen If true, the window is fullscreen
4095     */
4096    EAPI void         elm_win_fullscreen_set(Evas_Object *obj, Eina_Bool fullscreen) EINA_ARG_NONNULL(1);
4097    /**
4098     * Get the fullscreen state of a window.
4099     *
4100     * @param obj The window object
4101     * @return If true, the window is fullscreen
4102     */
4103    EAPI Eina_Bool    elm_win_fullscreen_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4104    /**
4105     * Set the maximized state of a window.
4106     *
4107     * @param obj The window object
4108     * @param maximized If true, the window is maximized
4109     */
4110    EAPI void         elm_win_maximized_set(Evas_Object *obj, Eina_Bool maximized) EINA_ARG_NONNULL(1);
4111    /**
4112     * Get the maximized state of a window.
4113     *
4114     * @param obj The window object
4115     * @return If true, the window is maximized
4116     */
4117    EAPI Eina_Bool    elm_win_maximized_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4118    /**
4119     * Set the iconified state of a window.
4120     *
4121     * @param obj The window object
4122     * @param iconified If true, the window is iconified
4123     */
4124    EAPI void         elm_win_iconified_set(Evas_Object *obj, Eina_Bool iconified) EINA_ARG_NONNULL(1);
4125    /**
4126     * Get the iconified state of a window.
4127     *
4128     * @param obj The window object
4129     * @return If true, the window is iconified
4130     */
4131    EAPI Eina_Bool    elm_win_iconified_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4132    /**
4133     * Set the layer of the window.
4134     *
4135     * What this means exactly will depend on the underlying engine used.
4136     *
4137     * In the case of X11 backed engines, the value in @p layer has the
4138     * following meanings:
4139     * @li < 3: The window will be placed below all others.
4140     * @li > 5: The window will be placed above all others.
4141     * @li other: The window will be placed in the default layer.
4142     *
4143     * @param obj The window object
4144     * @param layer The layer of the window
4145     */
4146    EAPI void         elm_win_layer_set(Evas_Object *obj, int layer) EINA_ARG_NONNULL(1);
4147    /**
4148     * Get the layer of the window.
4149     *
4150     * @param obj The window object
4151     * @return The layer of the window
4152     *
4153     * @see elm_win_layer_set()
4154     */
4155    EAPI int          elm_win_layer_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4156    /**
4157     * Set the rotation of the window.
4158     *
4159     * Most engines only work with multiples of 90.
4160     *
4161     * This function is used to set the orientation of the window @p obj to
4162     * match that of the screen. The window itself will be resized to adjust
4163     * to the new geometry of its contents. If you want to keep the window size,
4164     * see elm_win_rotation_with_resize_set().
4165     *
4166     * @param obj The window object
4167     * @param rotation The rotation of the window, in degrees (0-360),
4168     * counter-clockwise.
4169     */
4170    EAPI void         elm_win_rotation_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
4171    /**
4172     * Rotates the window and resizes it.
4173     *
4174     * Like elm_win_rotation_set(), but it also resizes the window's contents so
4175     * that they fit inside the current window geometry.
4176     *
4177     * @param obj The window object
4178     * @param layer The rotation of the window in degrees (0-360),
4179     * counter-clockwise.
4180     */
4181    EAPI void         elm_win_rotation_with_resize_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
4182    /**
4183     * Get the rotation of the window.
4184     *
4185     * @param obj The window object
4186     * @return The rotation of the window in degrees (0-360)
4187     *
4188     * @see elm_win_rotation_set()
4189     * @see elm_win_rotation_with_resize_set()
4190     */
4191    EAPI int          elm_win_rotation_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4192    /**
4193     * Set the sticky state of the window.
4194     *
4195     * Hints the Window Manager that the window in @p obj should be left fixed
4196     * at its position even when the virtual desktop it's on moves or changes.
4197     *
4198     * @param obj The window object
4199     * @param sticky If true, the window's sticky state is enabled
4200     */
4201    EAPI void         elm_win_sticky_set(Evas_Object *obj, Eina_Bool sticky) EINA_ARG_NONNULL(1);
4202    /**
4203     * Get the sticky state of the window.
4204     *
4205     * @param obj The window object
4206     * @return If true, the window's sticky state is enabled
4207     *
4208     * @see elm_win_sticky_set()
4209     */
4210    EAPI Eina_Bool    elm_win_sticky_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4211    /**
4212     * Set if this window is an illume conformant window
4213     *
4214     * @param obj The window object
4215     * @param conformant The conformant flag (1 = conformant, 0 = non-conformant)
4216     */
4217    EAPI void         elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant) EINA_ARG_NONNULL(1);
4218    /**
4219     * Get if this window is an illume conformant window
4220     *
4221     * @param obj The window object
4222     * @return A boolean if this window is illume conformant or not
4223     */
4224    EAPI Eina_Bool    elm_win_conformant_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4225    /**
4226     * Set a window to be an illume quickpanel window
4227     *
4228     * By default window objects are not quickpanel windows.
4229     *
4230     * @param obj The window object
4231     * @param quickpanel The quickpanel flag (1 = quickpanel, 0 = normal window)
4232     */
4233    EAPI void         elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel) EINA_ARG_NONNULL(1);
4234    /**
4235     * Get if this window is a quickpanel or not
4236     *
4237     * @param obj The window object
4238     * @return A boolean if this window is a quickpanel or not
4239     */
4240    EAPI Eina_Bool    elm_win_quickpanel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4241    /**
4242     * Set the major priority of a quickpanel window
4243     *
4244     * @param obj The window object
4245     * @param priority The major priority for this quickpanel
4246     */
4247    EAPI void         elm_win_quickpanel_priority_major_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
4248    /**
4249     * Get the major priority of a quickpanel window
4250     *
4251     * @param obj The window object
4252     * @return The major priority of this quickpanel
4253     */
4254    EAPI int          elm_win_quickpanel_priority_major_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4255    /**
4256     * Set the minor priority of a quickpanel window
4257     *
4258     * @param obj The window object
4259     * @param priority The minor priority for this quickpanel
4260     */
4261    EAPI void         elm_win_quickpanel_priority_minor_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
4262    /**
4263     * Get the minor priority of a quickpanel window
4264     *
4265     * @param obj The window object
4266     * @return The minor priority of this quickpanel
4267     */
4268    EAPI int          elm_win_quickpanel_priority_minor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4269    /**
4270     * Set which zone this quickpanel should appear in
4271     *
4272     * @param obj The window object
4273     * @param zone The requested zone for this quickpanel
4274     */
4275    EAPI void         elm_win_quickpanel_zone_set(Evas_Object *obj, int zone) EINA_ARG_NONNULL(1);
4276    /**
4277     * Get which zone this quickpanel should appear in
4278     *
4279     * @param obj The window object
4280     * @return The requested zone for this quickpanel
4281     */
4282    EAPI int          elm_win_quickpanel_zone_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4283    /**
4284     * Set the window to be skipped by keyboard focus
4285     *
4286     * This sets the window to be skipped by normal keyboard input. This means
4287     * a window manager will be asked to not focus this window as well as omit
4288     * it from things like the taskbar, pager, "alt-tab" list etc. etc.
4289     *
4290     * Call this and enable it on a window BEFORE you show it for the first time,
4291     * otherwise it may have no effect.
4292     *
4293     * Use this for windows that have only output information or might only be
4294     * interacted with by the mouse or fingers, and never for typing input.
4295     * Be careful that this may have side-effects like making the window
4296     * non-accessible in some cases unless the window is specially handled. Use
4297     * this with care.
4298     *
4299     * @param obj The window object
4300     * @param skip The skip flag state (EINA_TRUE if it is to be skipped)
4301     */
4302    EAPI void         elm_win_prop_focus_skip_set(Evas_Object *obj, Eina_Bool skip) EINA_ARG_NONNULL(1);
4303    /**
4304     * Send a command to the windowing environment
4305     *
4306     * This is intended to work in touchscreen or small screen device
4307     * environments where there is a more simplistic window management policy in
4308     * place. This uses the window object indicated to select which part of the
4309     * environment to control (the part that this window lives in), and provides
4310     * a command and an optional parameter structure (use NULL for this if not
4311     * needed).
4312     *
4313     * @param obj The window object that lives in the environment to control
4314     * @param command The command to send
4315     * @param params Optional parameters for the command
4316     */
4317    EAPI void         elm_win_illume_command_send(Evas_Object *obj, Elm_Illume_Command command, void *params) EINA_ARG_NONNULL(1);
4318    /**
4319     * Get the inlined image object handle
4320     *
4321     * When you create a window with elm_win_add() of type ELM_WIN_INLINED_IMAGE,
4322     * then the window is in fact an evas image object inlined in the parent
4323     * canvas. You can get this object (be careful to not manipulate it as it
4324     * is under control of elementary), and use it to do things like get pixel
4325     * data, save the image to a file, etc.
4326     *
4327     * @param obj The window object to get the inlined image from
4328     * @return The inlined image object, or NULL if none exists
4329     */
4330    EAPI Evas_Object *elm_win_inlined_image_object_get(Evas_Object *obj);
4331    /**
4332     * Set the enabled status for the focus highlight in a window
4333     *
4334     * This function will enable or disable the focus highlight only for the
4335     * given window, regardless of the global setting for it
4336     *
4337     * @param obj The window where to enable the highlight
4338     * @param enabled The enabled value for the highlight
4339     */
4340    EAPI void         elm_win_focus_highlight_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
4341    /**
4342     * Get the enabled value of the focus highlight for this window
4343     *
4344     * @param obj The window in which to check if the focus highlight is enabled
4345     *
4346     * @return EINA_TRUE if enabled, EINA_FALSE otherwise
4347     */
4348    EAPI Eina_Bool    elm_win_focus_highlight_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4349    /**
4350     * Set the style for the focus highlight on this window
4351     *
4352     * Sets the style to use for theming the highlight of focused objects on
4353     * the given window. If @p style is NULL, the default will be used.
4354     *
4355     * @param obj The window where to set the style
4356     * @param style The style to set
4357     */
4358    EAPI void         elm_win_focus_highlight_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
4359    /**
4360     * Get the style set for the focus highlight object
4361     *
4362     * Gets the style set for this windows highilght object, or NULL if none
4363     * is set.
4364     *
4365     * @param obj The window to retrieve the highlights style from
4366     *
4367     * @return The style set or NULL if none was. Default is used in that case.
4368     */
4369    EAPI const char  *elm_win_focus_highlight_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4370    EAPI void         elm_win_indicator_state_set(Evas_Object *obj, int show_state);
4371    EAPI int          elm_win_indicator_state_get(Evas_Object *obj);
4372    /*...
4373     * ecore_x_icccm_hints_set -> accepts_focus (add to ecore_evas)
4374     * ecore_x_icccm_hints_set -> window_group (add to ecore_evas)
4375     * ecore_x_icccm_size_pos_hints_set -> request_pos (add to ecore_evas)
4376     * ecore_x_icccm_client_leader_set -> l (add to ecore_evas)
4377     * ecore_x_icccm_window_role_set -> role (add to ecore_evas)
4378     * ecore_x_icccm_transient_for_set -> forwin (add to ecore_evas)
4379     * ecore_x_netwm_window_type_set -> type (add to ecore_evas)
4380     *
4381     * (add to ecore_x) set netwm argb icon! (add to ecore_evas)
4382     * (blank mouse, private mouse obj, defaultmouse)
4383     *
4384     */
4385    /**
4386     * Sets the keyboard mode of the window.
4387     *
4388     * @param obj The window object
4389     * @param mode The mode to set, one of #Elm_Win_Keyboard_Mode
4390     */
4391    EAPI void                  elm_win_keyboard_mode_set(Evas_Object *obj, Elm_Win_Keyboard_Mode mode) EINA_ARG_NONNULL(1);
4392    /**
4393     * Gets the keyboard mode of the window.
4394     *
4395     * @param obj The window object
4396     * @return The mode, one of #Elm_Win_Keyboard_Mode
4397     */
4398    EAPI Elm_Win_Keyboard_Mode elm_win_keyboard_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4399    /**
4400     * Sets whether the window is a keyboard.
4401     *
4402     * @param obj The window object
4403     * @param is_keyboard If true, the window is a virtual keyboard
4404     */
4405    EAPI void                  elm_win_keyboard_win_set(Evas_Object *obj, Eina_Bool is_keyboard) EINA_ARG_NONNULL(1);
4406    /**
4407     * Gets whether the window is a keyboard.
4408     *
4409     * @param obj The window object
4410     * @return If the window is a virtual keyboard
4411     */
4412    EAPI Eina_Bool             elm_win_keyboard_win_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4413
4414    /**
4415     * Get the screen position of a window.
4416     *
4417     * @param obj The window object
4418     * @param x The int to store the x coordinate to
4419     * @param y The int to store the y coordinate to
4420     */
4421    EAPI void                  elm_win_screen_position_get(const Evas_Object *obj, int *x, int *y) EINA_ARG_NONNULL(1);
4422    /**
4423     * @}
4424     */
4425
4426    /**
4427     * @defgroup Inwin Inwin
4428     *
4429     * @image html img/widget/inwin/preview-00.png
4430     * @image latex img/widget/inwin/preview-00.eps
4431     * @image html img/widget/inwin/preview-01.png
4432     * @image latex img/widget/inwin/preview-01.eps
4433     * @image html img/widget/inwin/preview-02.png
4434     * @image latex img/widget/inwin/preview-02.eps
4435     *
4436     * An inwin is a window inside a window that is useful for a quick popup.
4437     * It does not hover.
4438     *
4439     * It works by creating an object that will occupy the entire window, so it
4440     * must be created using an @ref Win "elm_win" as parent only. The inwin
4441     * object can be hidden or restacked below every other object if it's
4442     * needed to show what's behind it without destroying it. If this is done,
4443     * the elm_win_inwin_activate() function can be used to bring it back to
4444     * full visibility again.
4445     *
4446     * There are three styles available in the default theme. These are:
4447     * @li default: The inwin is sized to take over most of the window it's
4448     * placed in.
4449     * @li minimal: The size of the inwin will be the minimum necessary to show
4450     * its contents.
4451     * @li minimal_vertical: Horizontally, the inwin takes as much space as
4452     * possible, but it's sized vertically the most it needs to fit its\
4453     * contents.
4454     *
4455     * Some examples of Inwin can be found in the following:
4456     * @li @ref inwin_example_01
4457     *
4458     * @{
4459     */
4460    /**
4461     * Adds an inwin to the current window
4462     *
4463     * The @p obj used as parent @b MUST be an @ref Win "Elementary Window".
4464     * Never call this function with anything other than the top-most window
4465     * as its parameter, unless you are fond of undefined behavior.
4466     *
4467     * After creating the object, the widget will set itself as resize object
4468     * for the window with elm_win_resize_object_add(), so when shown it will
4469     * appear to cover almost the entire window (how much of it depends on its
4470     * content and the style used). It must not be added into other container
4471     * objects and it needs not be moved or resized manually.
4472     *
4473     * @param parent The parent object
4474     * @return The new object or NULL if it cannot be created
4475     */
4476    EAPI Evas_Object          *elm_win_inwin_add(Evas_Object *obj) EINA_ARG_NONNULL(1);
4477    /**
4478     * Activates an inwin object, ensuring its visibility
4479     *
4480     * This function will make sure that the inwin @p obj is completely visible
4481     * by calling evas_object_show() and evas_object_raise() on it, to bring it
4482     * to the front. It also sets the keyboard focus to it, which will be passed
4483     * onto its content.
4484     *
4485     * The object's theme will also receive the signal "elm,action,show" with
4486     * source "elm".
4487     *
4488     * @param obj The inwin to activate
4489     */
4490    EAPI void                  elm_win_inwin_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
4491    /**
4492     * Set the content of an inwin object.
4493     *
4494     * Once the content object is set, a previously set one will be deleted.
4495     * If you want to keep that old content object, use the
4496     * elm_win_inwin_content_unset() function.
4497     *
4498     * @param obj The inwin object
4499     * @param content The object to set as content
4500     */
4501    EAPI void                  elm_win_inwin_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
4502    /**
4503     * Get the content of an inwin object.
4504     *
4505     * Return the content object which is set for this widget.
4506     *
4507     * The returned object is valid as long as the inwin is still alive and no
4508     * other content is set on it. Deleting the object will notify the inwin
4509     * about it and this one will be left empty.
4510     *
4511     * If you need to remove an inwin's content to be reused somewhere else,
4512     * see elm_win_inwin_content_unset().
4513     *
4514     * @param obj The inwin object
4515     * @return The content that is being used
4516     */
4517    EAPI Evas_Object          *elm_win_inwin_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4518    /**
4519     * Unset the content of an inwin object.
4520     *
4521     * Unparent and return the content object which was set for this widget.
4522     *
4523     * @param obj The inwin object
4524     * @return The content that was being used
4525     */
4526    EAPI Evas_Object          *elm_win_inwin_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4527    /**
4528     * @}
4529     */
4530    /* X specific calls - won't work on non-x engines (return 0) */
4531
4532    /**
4533     * Get the Ecore_X_Window of an Evas_Object
4534     *
4535     * @param obj The object
4536     *
4537     * @return The Ecore_X_Window of @p obj
4538     *
4539     * @ingroup Win
4540     */
4541    EAPI Ecore_X_Window elm_win_xwindow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4542
4543    /* smart callbacks called:
4544     * "delete,request" - the user requested to delete the window
4545     * "focus,in" - window got focus
4546     * "focus,out" - window lost focus
4547     * "moved" - window that holds the canvas was moved
4548     */
4549
4550    /**
4551     * @defgroup Bg Bg
4552     *
4553     * @image html img/widget/bg/preview-00.png
4554     * @image latex img/widget/bg/preview-00.eps
4555     *
4556     * @brief Background object, used for setting a solid color, image or Edje
4557     * group as background to a window or any container object.
4558     *
4559     * The bg object is used for setting a solid background to a window or
4560     * packing into any container object. It works just like an image, but has
4561     * some properties useful to a background, like setting it to tiled,
4562     * centered, scaled or stretched.
4563     * 
4564     * Default contents parts of the bg widget that you can use for are:
4565     * @li "overlay" - overlay of the bg
4566     *
4567     * Here is some sample code using it:
4568     * @li @ref bg_01_example_page
4569     * @li @ref bg_02_example_page
4570     * @li @ref bg_03_example_page
4571     */
4572
4573    /* bg */
4574    typedef enum _Elm_Bg_Option
4575      {
4576         ELM_BG_OPTION_CENTER,  /**< center the background */
4577         ELM_BG_OPTION_SCALE,   /**< scale the background retaining aspect ratio */
4578         ELM_BG_OPTION_STRETCH, /**< stretch the background to fill */
4579         ELM_BG_OPTION_TILE     /**< tile background at its original size */
4580      } Elm_Bg_Option;
4581
4582    /**
4583     * Add a new background to the parent
4584     *
4585     * @param parent The parent object
4586     * @return The new object or NULL if it cannot be created
4587     *
4588     * @ingroup Bg
4589     */
4590    EAPI Evas_Object  *elm_bg_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4591
4592    /**
4593     * Set the file (image or edje) used for the background
4594     *
4595     * @param obj The bg object
4596     * @param file The file path
4597     * @param group Optional key (group in Edje) within the file
4598     *
4599     * This sets the image file used in the background object. The image (or edje)
4600     * will be stretched (retaining aspect if its an image file) to completely fill
4601     * the bg object. This may mean some parts are not visible.
4602     *
4603     * @note  Once the image of @p obj is set, a previously set one will be deleted,
4604     * even if @p file is NULL.
4605     *
4606     * @ingroup Bg
4607     */
4608    EAPI void          elm_bg_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
4609
4610    /**
4611     * Get the file (image or edje) used for the background
4612     *
4613     * @param obj The bg object
4614     * @param file The file path
4615     * @param group Optional key (group in Edje) within the file
4616     *
4617     * @ingroup Bg
4618     */
4619    EAPI void          elm_bg_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
4620
4621    /**
4622     * Set the option used for the background image
4623     *
4624     * @param obj The bg object
4625     * @param option The desired background option (TILE, SCALE)
4626     *
4627     * This sets the option used for manipulating the display of the background
4628     * image. The image can be tiled or scaled.
4629     *
4630     * @ingroup Bg
4631     */
4632    EAPI void          elm_bg_option_set(Evas_Object *obj, Elm_Bg_Option option) EINA_ARG_NONNULL(1);
4633
4634    /**
4635     * Get the option used for the background image
4636     *
4637     * @param obj The bg object
4638     * @return The desired background option (CENTER, SCALE, STRETCH or TILE)
4639     *
4640     * @ingroup Bg
4641     */
4642    EAPI Elm_Bg_Option elm_bg_option_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4643    /**
4644     * Set the option used for the background color
4645     *
4646     * @param obj The bg object
4647     * @param r
4648     * @param g
4649     * @param b
4650     *
4651     * This sets the color used for the background rectangle. Its range goes
4652     * from 0 to 255.
4653     *
4654     * @ingroup Bg
4655     */
4656    EAPI void          elm_bg_color_set(Evas_Object *obj, int r, int g, int b) EINA_ARG_NONNULL(1);
4657    /**
4658     * Get the option used for the background color
4659     *
4660     * @param obj The bg object
4661     * @param r
4662     * @param g
4663     * @param b
4664     *
4665     * @ingroup Bg
4666     */
4667    EAPI void          elm_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b) EINA_ARG_NONNULL(1);
4668
4669    /**
4670     * Set the overlay object used for the background object.
4671     *
4672     * @param obj The bg object
4673     * @param overlay The overlay object
4674     *
4675     * This provides a way for elm_bg to have an 'overlay' that will be on top
4676     * of the bg. Once the over object is set, a previously set one will be
4677     * deleted, even if you set the new one to NULL. If you want to keep that
4678     * old content object, use the elm_bg_overlay_unset() function.
4679     *
4680     * @deprecated use elm_object_content_part_set() instead
4681     *
4682     * @ingroup Bg
4683     */
4684
4685    EAPI void          elm_bg_overlay_set(Evas_Object *obj, Evas_Object *overlay) EINA_ARG_NONNULL(1);
4686
4687    /**
4688     * Get the overlay object used for the background object.
4689     *
4690     * @param obj The bg object
4691     * @return The content that is being used
4692     *
4693     * Return the content object which is set for this widget
4694     *
4695     * @deprecated use elm_object_part_content_get() instead
4696     *
4697     * @ingroup Bg
4698     */
4699    EINA_DEPRECATED EAPI Evas_Object  *elm_bg_overlay_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4700
4701    /**
4702     * Get the overlay object used for the background object.
4703     *
4704     * @param obj The bg object
4705     * @return The content that was being used
4706     *
4707     * Unparent and return the overlay object which was set for this widget
4708     *
4709     * @deprecated use elm_object_content_part_unset() instead
4710     *
4711     * @ingroup Bg
4712     */
4713    EAPI Evas_Object  *elm_bg_overlay_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4714
4715    /**
4716     * Set the size of the pixmap representation of the image.
4717     *
4718     * This option just makes sense if an image is going to be set in the bg.
4719     *
4720     * @param obj The bg object
4721     * @param w The new width of the image pixmap representation.
4722     * @param h The new height of the image pixmap representation.
4723     *
4724     * This function sets a new size for pixmap representation of the given bg
4725     * image. It allows the image to be loaded already in the specified size,
4726     * reducing the memory usage and load time when loading a big image with load
4727     * size set to a smaller size.
4728     *
4729     * NOTE: this is just a hint, the real size of the pixmap may differ
4730     * depending on the type of image being loaded, being bigger than requested.
4731     *
4732     * @ingroup Bg
4733     */
4734    EAPI void          elm_bg_load_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
4735    /* smart callbacks called:
4736     */
4737
4738    /**
4739     * @defgroup Icon Icon
4740     *
4741     * @image html img/widget/icon/preview-00.png
4742     * @image latex img/widget/icon/preview-00.eps
4743     *
4744     * An object that provides standard icon images (delete, edit, arrows, etc.)
4745     * or a custom file (PNG, JPG, EDJE, etc.) used for an icon.
4746     *
4747     * The icon image requested can be in the elementary theme, or in the
4748     * freedesktop.org paths. It's possible to set the order of preference from
4749     * where the image will be used.
4750     *
4751     * This API is very similar to @ref Image, but with ready to use images.
4752     *
4753     * Default images provided by the theme are described below.
4754     *
4755     * The first list contains icons that were first intended to be used in
4756     * toolbars, but can be used in many other places too:
4757     * @li home
4758     * @li close
4759     * @li apps
4760     * @li arrow_up
4761     * @li arrow_down
4762     * @li arrow_left
4763     * @li arrow_right
4764     * @li chat
4765     * @li clock
4766     * @li delete
4767     * @li edit
4768     * @li refresh
4769     * @li folder
4770     * @li file
4771     *
4772     * Now some icons that were designed to be used in menus (but again, you can
4773     * use them anywhere else):
4774     * @li menu/home
4775     * @li menu/close
4776     * @li menu/apps
4777     * @li menu/arrow_up
4778     * @li menu/arrow_down
4779     * @li menu/arrow_left
4780     * @li menu/arrow_right
4781     * @li menu/chat
4782     * @li menu/clock
4783     * @li menu/delete
4784     * @li menu/edit
4785     * @li menu/refresh
4786     * @li menu/folder
4787     * @li menu/file
4788     *
4789     * And here we have some media player specific icons:
4790     * @li media_player/forward
4791     * @li media_player/info
4792     * @li media_player/next
4793     * @li media_player/pause
4794     * @li media_player/play
4795     * @li media_player/prev
4796     * @li media_player/rewind
4797     * @li media_player/stop
4798     *
4799     * Signals that you can add callbacks for are:
4800     *
4801     * "clicked" - This is called when a user has clicked the icon
4802     *
4803     * An example of usage for this API follows:
4804     * @li @ref tutorial_icon
4805     */
4806
4807    /**
4808     * @addtogroup Icon
4809     * @{
4810     */
4811
4812    typedef enum _Elm_Icon_Type
4813      {
4814         ELM_ICON_NONE,
4815         ELM_ICON_FILE,
4816         ELM_ICON_STANDARD
4817      } Elm_Icon_Type;
4818    /**
4819     * @enum _Elm_Icon_Lookup_Order
4820     * @typedef Elm_Icon_Lookup_Order
4821     *
4822     * Lookup order used by elm_icon_standard_set(). Should look for icons in the
4823     * theme, FDO paths, or both?
4824     *
4825     * @ingroup Icon
4826     */
4827    typedef enum _Elm_Icon_Lookup_Order
4828      {
4829         ELM_ICON_LOOKUP_FDO_THEME, /**< icon look up order: freedesktop, theme */
4830         ELM_ICON_LOOKUP_THEME_FDO, /**< icon look up order: theme, freedesktop */
4831         ELM_ICON_LOOKUP_FDO,       /**< icon look up order: freedesktop */
4832         ELM_ICON_LOOKUP_THEME      /**< icon look up order: theme */
4833      } Elm_Icon_Lookup_Order;
4834
4835    /**
4836     * Add a new icon object to the parent.
4837     *
4838     * @param parent The parent object
4839     * @return The new object or NULL if it cannot be created
4840     *
4841     * @see elm_icon_file_set()
4842     *
4843     * @ingroup Icon
4844     */
4845    EAPI Evas_Object          *elm_icon_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4846    /**
4847     * Set the file that will be used as icon.
4848     *
4849     * @param obj The icon object
4850     * @param file The path to file that will be used as icon image
4851     * @param group The group that the icon belongs to an edje file
4852     *
4853     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4854     *
4855     * @note The icon image set by this function can be changed by
4856     * elm_icon_standard_set().
4857     *
4858     * @see elm_icon_file_get()
4859     *
4860     * @ingroup Icon
4861     */
4862    EAPI Eina_Bool             elm_icon_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
4863    /**
4864     * Set a location in memory to be used as an icon
4865     *
4866     * @param obj The icon object
4867     * @param img The binary data that will be used as an image
4868     * @param size The size of binary data @p img
4869     * @param format Optional format of @p img to pass to the image loader
4870     * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
4871     *
4872     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4873     *
4874     * @note The icon image set by this function can be changed by
4875     * elm_icon_standard_set().
4876     *
4877     * @ingroup Icon
4878     */
4879    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);
4880    /**
4881     * Get the file that will be used as icon.
4882     *
4883     * @param obj The icon object
4884     * @param file The path to file that will be used as the icon image
4885     * @param group The group that the icon belongs to, in edje file
4886     *
4887     * @see elm_icon_file_set()
4888     *
4889     * @ingroup Icon
4890     */
4891    EAPI void                  elm_icon_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
4892    EAPI void                  elm_icon_thumb_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
4893    /**
4894     * Set the icon by icon standards names.
4895     *
4896     * @param obj The icon object
4897     * @param name The icon name
4898     *
4899     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4900     *
4901     * For example, freedesktop.org defines standard icon names such as "home",
4902     * "network", etc. There can be different icon sets to match those icon
4903     * keys. The @p name given as parameter is one of these "keys", and will be
4904     * used to look in the freedesktop.org paths and elementary theme. One can
4905     * change the lookup order with elm_icon_order_lookup_set().
4906     *
4907     * If name is not found in any of the expected locations and it is the
4908     * absolute path of an image file, this image will be used.
4909     *
4910     * @note The icon image set by this function can be changed by
4911     * elm_icon_file_set().
4912     *
4913     * @see elm_icon_standard_get()
4914     * @see elm_icon_file_set()
4915     *
4916     * @ingroup Icon
4917     */
4918    EAPI Eina_Bool             elm_icon_standard_set(Evas_Object *obj, const char *name) EINA_ARG_NONNULL(1);
4919    /**
4920     * Get the icon name set by icon standard names.
4921     *
4922     * @param obj The icon object
4923     * @return The icon name
4924     *
4925     * If the icon image was set using elm_icon_file_set() instead of
4926     * elm_icon_standard_set(), then this function will return @c NULL.
4927     *
4928     * @see elm_icon_standard_set()
4929     *
4930     * @ingroup Icon
4931     */
4932    EAPI const char           *elm_icon_standard_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4933    /**
4934     * Set the smooth scaling for an icon object.
4935     *
4936     * @param obj The icon object
4937     * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
4938     * otherwise. Default is @c EINA_TRUE.
4939     *
4940     * Set the scaling algorithm to be used when scaling the icon image. Smooth
4941     * scaling provides a better resulting image, but is slower.
4942     *
4943     * The smooth scaling should be disabled when making animations that change
4944     * the icon size, since they will be faster. Animations that don't require
4945     * resizing of the icon can keep the smooth scaling enabled (even if the icon
4946     * is already scaled, since the scaled icon image will be cached).
4947     *
4948     * @see elm_icon_smooth_get()
4949     *
4950     * @ingroup Icon
4951     */
4952    EAPI void                  elm_icon_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
4953    /**
4954     * Get whether smooth scaling is enabled for an icon object.
4955     *
4956     * @param obj The icon object
4957     * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
4958     *
4959     * @see elm_icon_smooth_set()
4960     *
4961     * @ingroup Icon
4962     */
4963    EAPI Eina_Bool             elm_icon_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4964    /**
4965     * Disable scaling of this object.
4966     *
4967     * @param obj The icon object.
4968     * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
4969     * otherwise. Default is @c EINA_FALSE.
4970     *
4971     * This function disables scaling of the icon object through the function
4972     * elm_object_scale_set(). However, this does not affect the object
4973     * size/resize in any way. For that effect, take a look at
4974     * elm_icon_scale_set().
4975     *
4976     * @see elm_icon_no_scale_get()
4977     * @see elm_icon_scale_set()
4978     * @see elm_object_scale_set()
4979     *
4980     * @ingroup Icon
4981     */
4982    EAPI void                  elm_icon_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
4983    /**
4984     * Get whether scaling is disabled on the object.
4985     *
4986     * @param obj The icon object
4987     * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
4988     *
4989     * @see elm_icon_no_scale_set()
4990     *
4991     * @ingroup Icon
4992     */
4993    EAPI Eina_Bool             elm_icon_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4994    /**
4995     * Set if the object is (up/down) resizable.
4996     *
4997     * @param obj The icon object
4998     * @param scale_up A bool to set if the object is resizable up. Default is
4999     * @c EINA_TRUE.
5000     * @param scale_down A bool to set if the object is resizable down. Default
5001     * is @c EINA_TRUE.
5002     *
5003     * This function limits the icon object resize ability. If @p scale_up is set to
5004     * @c EINA_FALSE, the object can't have its height or width resized to a value
5005     * higher than the original icon size. Same is valid for @p scale_down.
5006     *
5007     * @see elm_icon_scale_get()
5008     *
5009     * @ingroup Icon
5010     */
5011    EAPI void                  elm_icon_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
5012    /**
5013     * Get if the object is (up/down) resizable.
5014     *
5015     * @param obj The icon object
5016     * @param scale_up A bool to set if the object is resizable up
5017     * @param scale_down A bool to set if the object is resizable down
5018     *
5019     * @see elm_icon_scale_set()
5020     *
5021     * @ingroup Icon
5022     */
5023    EAPI void                  elm_icon_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
5024    /**
5025     * Get the object's image size
5026     *
5027     * @param obj The icon object
5028     * @param w A pointer to store the width in
5029     * @param h A pointer to store the height in
5030     *
5031     * @ingroup Icon
5032     */
5033    EAPI void                  elm_icon_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
5034    /**
5035     * Set if the icon fill the entire object area.
5036     *
5037     * @param obj The icon object
5038     * @param fill_outside @c EINA_TRUE if the object is filled outside,
5039     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5040     *
5041     * When the icon object is resized to a different aspect ratio from the
5042     * original icon image, the icon image will still keep its aspect. This flag
5043     * tells how the image should fill the object's area. They are: keep the
5044     * entire icon inside the limits of height and width of the object (@p
5045     * fill_outside is @c EINA_FALSE) or let the extra width or height go outside
5046     * of the object, and the icon will fill the entire object (@p fill_outside
5047     * is @c EINA_TRUE).
5048     *
5049     * @note Unlike @ref Image, there's no option in icon to set the aspect ratio
5050     * retain property to false. Thus, the icon image will always keep its
5051     * original aspect ratio.
5052     *
5053     * @see elm_icon_fill_outside_get()
5054     * @see elm_image_fill_outside_set()
5055     *
5056     * @ingroup Icon
5057     */
5058    EAPI void                  elm_icon_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
5059    /**
5060     * Get if the object is filled outside.
5061     *
5062     * @param obj The icon object
5063     * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
5064     *
5065     * @see elm_icon_fill_outside_set()
5066     *
5067     * @ingroup Icon
5068     */
5069    EAPI Eina_Bool             elm_icon_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5070    /**
5071     * Set the prescale size for the icon.
5072     *
5073     * @param obj The icon object
5074     * @param size The prescale size. This value is used for both width and
5075     * height.
5076     *
5077     * This function sets a new size for pixmap representation of the given
5078     * icon. It allows the icon to be loaded already in the specified size,
5079     * reducing the memory usage and load time when loading a big icon with load
5080     * size set to a smaller size.
5081     *
5082     * It's equivalent to the elm_bg_load_size_set() function for bg.
5083     *
5084     * @note this is just a hint, the real size of the pixmap may differ
5085     * depending on the type of icon being loaded, being bigger than requested.
5086     *
5087     * @see elm_icon_prescale_get()
5088     * @see elm_bg_load_size_set()
5089     *
5090     * @ingroup Icon
5091     */
5092    EAPI void                  elm_icon_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
5093    /**
5094     * Get the prescale size for the icon.
5095     *
5096     * @param obj The icon object
5097     * @return The prescale size
5098     *
5099     * @see elm_icon_prescale_set()
5100     *
5101     * @ingroup Icon
5102     */
5103    EAPI int                   elm_icon_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5104    /**
5105     * Gets the image object of the icon. DO NOT MODIFY THIS.
5106     *
5107     * @param obj The icon object
5108     * @return The internal icon object
5109     *
5110     * @ingroup Icon
5111     */
5112    EAPI Evas_Object          *elm_icon_object_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
5113    /**
5114     * Sets the icon lookup order used by elm_icon_standard_set().
5115     *
5116     * @param obj The icon object
5117     * @param order The icon lookup order (can be one of
5118     * ELM_ICON_LOOKUP_FDO_THEME, ELM_ICON_LOOKUP_THEME_FDO, ELM_ICON_LOOKUP_FDO
5119     * or ELM_ICON_LOOKUP_THEME)
5120     *
5121     * @see elm_icon_order_lookup_get()
5122     * @see Elm_Icon_Lookup_Order
5123     *
5124     * @ingroup Icon
5125     */
5126    EAPI void                  elm_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
5127    /**
5128     * Gets the icon lookup order.
5129     *
5130     * @param obj The icon object
5131     * @return The icon lookup order
5132     *
5133     * @see elm_icon_order_lookup_set()
5134     * @see Elm_Icon_Lookup_Order
5135     *
5136     * @ingroup Icon
5137     */
5138    EAPI Elm_Icon_Lookup_Order elm_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5139    /**
5140     * Enable or disable preloading of the icon
5141     *
5142     * @param obj The icon object
5143     * @param disable If EINA_TRUE, preloading will be disabled
5144     * @ingroup Icon
5145     */
5146    EAPI void                  elm_icon_preload_set(Evas_Object *obj, Eina_Bool disable) EINA_ARG_NONNULL(1);
5147    /**
5148     * Get if the icon supports animation or not.
5149     *
5150     * @param obj The icon object
5151     * @return @c EINA_TRUE if the icon supports animation,
5152     *         @c EINA_FALSE otherwise.
5153     *
5154     * Return if this elm icon's image can be animated. Currently Evas only
5155     * supports gif animation. If the return value is EINA_FALSE, other
5156     * elm_icon_animated_XXX APIs won't work.
5157     * @ingroup Icon
5158     */
5159    EAPI Eina_Bool           elm_icon_animated_available_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5160    /**
5161     * Set animation mode of the icon.
5162     *
5163     * @param obj The icon object
5164     * @param anim @c EINA_TRUE if the object do animation job,
5165     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5166     *
5167     * Since the default animation mode is set to EINA_FALSE, 
5168     * the icon is shown without animation.
5169     * This might be desirable when the application developer wants to show
5170     * a snapshot of the animated icon.
5171     * Set it to EINA_TRUE when the icon needs to be animated.
5172     * @ingroup Icon
5173     */
5174    EAPI void                elm_icon_animated_set(Evas_Object *obj, Eina_Bool animated) EINA_ARG_NONNULL(1);
5175    /**
5176     * Get animation mode of the icon.
5177     *
5178     * @param obj The icon object
5179     * @return The animation mode of the icon object
5180     * @see elm_icon_animated_set
5181     * @ingroup Icon
5182     */
5183    EAPI Eina_Bool           elm_icon_animated_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5184    /**
5185     * Set animation play mode of the icon.
5186     *
5187     * @param obj The icon object
5188     * @param play @c EINA_TRUE the object play animation images,
5189     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5190     *
5191     * To play elm icon's animation, set play to EINA_TURE.
5192     * For example, you make gif player using this set/get API and click event.
5193     *
5194     * 1. Click event occurs
5195     * 2. Check play flag using elm_icon_animaged_play_get
5196     * 3. If elm icon was playing, set play to EINA_FALSE.
5197     *    Then animation will be stopped and vice versa
5198     * @ingroup Icon
5199     */
5200    EAPI void                elm_icon_animated_play_set(Evas_Object *obj, Eina_Bool play) EINA_ARG_NONNULL(1);
5201    /**
5202     * Get animation play mode of the icon.
5203     *
5204     * @param obj The icon object
5205     * @return The play mode of the icon object
5206     *
5207     * @see elm_icon_animated_play_get
5208     * @ingroup Icon
5209     */
5210    EAPI Eina_Bool           elm_icon_animated_play_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5211
5212    /* compatibility code to avoid API and ABI breaks */
5213    EINA_DEPRECATED EAPI extern inline void elm_icon_anim_set(Evas_Object *obj, Eina_Bool animated)
5214      {
5215         elm_icon_animated_set(obj, animated);
5216      }
5217
5218    EINA_DEPRECATED EAPI extern inline Eina_Bool elm_icon_anim_get(const Evas_Object *obj)
5219      {
5220         return elm_icon_animated_get(obj);
5221      }
5222
5223    EINA_DEPRECATED EAPI extern inline void elm_icon_anim_play_set(Evas_Object *obj, Eina_Bool play)
5224      {
5225         elm_icon_animated_play_set(obj, play);
5226      }
5227
5228    EINA_DEPRECATED EAPI extern inline Eina_Bool elm_icon_anim_play_get(const Evas_Object *obj)
5229      {
5230         return elm_icon_animated_play_get(obj);
5231      }
5232
5233    /**
5234     * @}
5235     */
5236
5237    /**
5238     * @defgroup Image Image
5239     *
5240     * @image html img/widget/image/preview-00.png
5241     * @image latex img/widget/image/preview-00.eps
5242
5243     *
5244     * An object that allows one to load an image file to it. It can be used
5245     * anywhere like any other elementary widget.
5246     *
5247     * This widget provides most of the functionality provided from @ref Bg or @ref
5248     * Icon, but with a slightly different API (use the one that fits better your
5249     * needs).
5250     *
5251     * The features not provided by those two other image widgets are:
5252     * @li allowing to get the basic @c Evas_Object with elm_image_object_get();
5253     * @li change the object orientation with elm_image_orient_set();
5254     * @li and turning the image editable with elm_image_editable_set().
5255     *
5256     * Signals that you can add callbacks for are:
5257     *
5258     * @li @c "clicked" - This is called when a user has clicked the image
5259     *
5260     * An example of usage for this API follows:
5261     * @li @ref tutorial_image
5262     */
5263
5264    /**
5265     * @addtogroup Image
5266     * @{
5267     */
5268
5269    /**
5270     * @enum _Elm_Image_Orient
5271     * @typedef Elm_Image_Orient
5272     *
5273     * Possible orientation options for elm_image_orient_set().
5274     *
5275     * @image html elm_image_orient_set.png
5276     * @image latex elm_image_orient_set.eps width=\textwidth
5277     *
5278     * @ingroup Image
5279     */
5280    typedef enum _Elm_Image_Orient
5281      {
5282         ELM_IMAGE_ORIENT_NONE, /**< no orientation change */
5283         ELM_IMAGE_ROTATE_90_CW, /**< rotate 90 degrees clockwise */
5284         ELM_IMAGE_ROTATE_180_CW, /**< rotate 180 degrees clockwise */
5285         ELM_IMAGE_ROTATE_90_CCW, /**< rotate 90 degrees counter-clockwise (i.e. 270 degrees clockwise) */
5286         ELM_IMAGE_FLIP_HORIZONTAL, /**< flip image horizontally */
5287         ELM_IMAGE_FLIP_VERTICAL, /**< flip image vertically */
5288         ELM_IMAGE_FLIP_TRANSPOSE, /**< flip the image along the y = (side - x) line*/
5289         ELM_IMAGE_FLIP_TRANSVERSE /**< flip the image along the y = x line */
5290      } Elm_Image_Orient;
5291
5292    /**
5293     * Add a new image to the parent.
5294     *
5295     * @param parent The parent object
5296     * @return The new object or NULL if it cannot be created
5297     *
5298     * @see elm_image_file_set()
5299     *
5300     * @ingroup Image
5301     */
5302    EAPI Evas_Object     *elm_image_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5303    /**
5304     * Set the file that will be used as image.
5305     *
5306     * @param obj The image object
5307     * @param file The path to file that will be used as image
5308     * @param group The group that the image belongs in edje file (if it's an
5309     * edje image)
5310     *
5311     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5312     *
5313     * @see elm_image_file_get()
5314     *
5315     * @ingroup Image
5316     */
5317    EAPI Eina_Bool        elm_image_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
5318    /**
5319     * Get the file that will be used as image.
5320     *
5321     * @param obj The image object
5322     * @param file The path to file
5323     * @param group The group that the image belongs in edje file
5324     *
5325     * @see elm_image_file_set()
5326     *
5327     * @ingroup Image
5328     */
5329    EAPI void             elm_image_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
5330    /**
5331     * Set the smooth effect for an image.
5332     *
5333     * @param obj The image object
5334     * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
5335     * otherwise. Default is @c EINA_TRUE.
5336     *
5337     * Set the scaling algorithm to be used when scaling the image. Smooth
5338     * scaling provides a better resulting image, but is slower.
5339     *
5340     * The smooth scaling should be disabled when making animations that change
5341     * the image size, since it will be faster. Animations that don't require
5342     * resizing of the image can keep the smooth scaling enabled (even if the
5343     * image is already scaled, since the scaled image will be cached).
5344     *
5345     * @see elm_image_smooth_get()
5346     *
5347     * @ingroup Image
5348     */
5349    EAPI void             elm_image_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
5350    /**
5351     * Get the smooth effect for an image.
5352     *
5353     * @param obj The image object
5354     * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
5355     *
5356     * @see elm_image_smooth_get()
5357     *
5358     * @ingroup Image
5359     */
5360    EAPI Eina_Bool        elm_image_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5361
5362    /**
5363     * Gets the current size of the image.
5364     *
5365     * @param obj The image object.
5366     * @param w Pointer to store width, or NULL.
5367     * @param h Pointer to store height, or NULL.
5368     *
5369     * This is the real size of the image, not the size of the object.
5370     *
5371     * On error, neither w or h will be written.
5372     *
5373     * @ingroup Image
5374     */
5375    EAPI void             elm_image_object_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
5376    /**
5377     * Disable scaling of this object.
5378     *
5379     * @param obj The image object.
5380     * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
5381     * otherwise. Default is @c EINA_FALSE.
5382     *
5383     * This function disables scaling of the elm_image widget through the
5384     * function elm_object_scale_set(). However, this does not affect the widget
5385     * size/resize in any way. For that effect, take a look at
5386     * elm_image_scale_set().
5387     *
5388     * @see elm_image_no_scale_get()
5389     * @see elm_image_scale_set()
5390     * @see elm_object_scale_set()
5391     *
5392     * @ingroup Image
5393     */
5394    EAPI void             elm_image_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
5395    /**
5396     * Get whether scaling is disabled on the object.
5397     *
5398     * @param obj The image object
5399     * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
5400     *
5401     * @see elm_image_no_scale_set()
5402     *
5403     * @ingroup Image
5404     */
5405    EAPI Eina_Bool        elm_image_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5406    /**
5407     * Set if the object is (up/down) resizable.
5408     *
5409     * @param obj The image object
5410     * @param scale_up A bool to set if the object is resizable up. Default is
5411     * @c EINA_TRUE.
5412     * @param scale_down A bool to set if the object is resizable down. Default
5413     * is @c EINA_TRUE.
5414     *
5415     * This function limits the image resize ability. If @p scale_up is set to
5416     * @c EINA_FALSE, the object can't have its height or width resized to a value
5417     * higher than the original image size. Same is valid for @p scale_down.
5418     *
5419     * @see elm_image_scale_get()
5420     *
5421     * @ingroup Image
5422     */
5423    EAPI void             elm_image_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
5424    /**
5425     * Get if the object is (up/down) resizable.
5426     *
5427     * @param obj The image object
5428     * @param scale_up A bool to set if the object is resizable up
5429     * @param scale_down A bool to set if the object is resizable down
5430     *
5431     * @see elm_image_scale_set()
5432     *
5433     * @ingroup Image
5434     */
5435    EAPI void             elm_image_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
5436    /**
5437     * Set if the image fills the entire object area, when keeping the aspect ratio.
5438     *
5439     * @param obj The image object
5440     * @param fill_outside @c EINA_TRUE if the object is filled outside,
5441     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5442     *
5443     * When the image should keep its aspect ratio even if resized to another
5444     * aspect ratio, there are two possibilities to resize it: keep the entire
5445     * image inside the limits of height and width of the object (@p fill_outside
5446     * is @c EINA_FALSE) or let the extra width or height go outside of the object,
5447     * and the image will fill the entire object (@p fill_outside is @c EINA_TRUE).
5448     *
5449     * @note This option will have no effect if
5450     * elm_image_aspect_ratio_retained_set() is set to @c EINA_FALSE.
5451     *
5452     * @see elm_image_fill_outside_get()
5453     * @see elm_image_aspect_ratio_retained_set()
5454     *
5455     * @ingroup Image
5456     */
5457    EAPI void             elm_image_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
5458    /**
5459     * Get if the object is filled outside
5460     *
5461     * @param obj The image object
5462     * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
5463     *
5464     * @see elm_image_fill_outside_set()
5465     *
5466     * @ingroup Image
5467     */
5468    EAPI Eina_Bool        elm_image_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5469    /**
5470     * Set the prescale size for the image
5471     *
5472     * @param obj The image object
5473     * @param size The prescale size. This value is used for both width and
5474     * height.
5475     *
5476     * This function sets a new size for pixmap representation of the given
5477     * image. It allows the image to be loaded already in the specified size,
5478     * reducing the memory usage and load time when loading a big image with load
5479     * size set to a smaller size.
5480     *
5481     * It's equivalent to the elm_bg_load_size_set() function for bg.
5482     *
5483     * @note this is just a hint, the real size of the pixmap may differ
5484     * depending on the type of image being loaded, being bigger than requested.
5485     *
5486     * @see elm_image_prescale_get()
5487     * @see elm_bg_load_size_set()
5488     *
5489     * @ingroup Image
5490     */
5491    EAPI void             elm_image_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
5492    /**
5493     * Get the prescale size for the image
5494     *
5495     * @param obj The image object
5496     * @return The prescale size
5497     *
5498     * @see elm_image_prescale_set()
5499     *
5500     * @ingroup Image
5501     */
5502    EAPI int              elm_image_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5503    /**
5504     * Set the image orientation.
5505     *
5506     * @param obj The image object
5507     * @param orient The image orientation @ref Elm_Image_Orient
5508     *  Default is #ELM_IMAGE_ORIENT_NONE.
5509     *
5510     * This function allows to rotate or flip the given image.
5511     *
5512     * @see elm_image_orient_get()
5513     * @see @ref Elm_Image_Orient
5514     *
5515     * @ingroup Image
5516     */
5517    EAPI void             elm_image_orient_set(Evas_Object *obj, Elm_Image_Orient orient) EINA_ARG_NONNULL(1);
5518    /**
5519     * Get the image orientation.
5520     *
5521     * @param obj The image object
5522     * @return The image orientation @ref Elm_Image_Orient
5523     *
5524     * @see elm_image_orient_set()
5525     * @see @ref Elm_Image_Orient
5526     *
5527     * @ingroup Image
5528     */
5529    EAPI Elm_Image_Orient elm_image_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5530    /**
5531     * Make the image 'editable'.
5532     *
5533     * @param obj Image object.
5534     * @param set Turn on or off editability. Default is @c EINA_FALSE.
5535     *
5536     * This means the image is a valid drag target for drag and drop, and can be
5537     * cut or pasted too.
5538     *
5539     * @ingroup Image
5540     */
5541    EAPI void             elm_image_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
5542    /**
5543     * Check if the image 'editable'.
5544     *
5545     * @param obj Image object.
5546     * @return Editability.
5547     *
5548     * A return value of EINA_TRUE means the image is a valid drag target
5549     * for drag and drop, and can be cut or pasted too.
5550     *
5551     * @ingroup Image
5552     */
5553    EAPI Eina_Bool        elm_image_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5554    /**
5555     * Get the basic Evas_Image object from this object (widget).
5556     *
5557     * @param obj The image object to get the inlined image from
5558     * @return The inlined image object, or NULL if none exists
5559     *
5560     * This function allows one to get the underlying @c Evas_Object of type
5561     * Image from this elementary widget. It can be useful to do things like get
5562     * the pixel data, save the image to a file, etc.
5563     *
5564     * @note Be careful to not manipulate it, as it is under control of
5565     * elementary.
5566     *
5567     * @ingroup Image
5568     */
5569    EAPI Evas_Object     *elm_image_object_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5570    /**
5571     * Set whether the original aspect ratio of the image should be kept on resize.
5572     *
5573     * @param obj The image object.
5574     * @param retained @c EINA_TRUE if the image should retain the aspect,
5575     * @c EINA_FALSE otherwise.
5576     *
5577     * The original aspect ratio (width / height) of the image is usually
5578     * distorted to match the object's size. Enabling this option will retain
5579     * this original aspect, and the way that the image is fit into the object's
5580     * area depends on the option set by elm_image_fill_outside_set().
5581     *
5582     * @see elm_image_aspect_ratio_retained_get()
5583     * @see elm_image_fill_outside_set()
5584     *
5585     * @ingroup Image
5586     */
5587    EAPI void             elm_image_aspect_ratio_retained_set(Evas_Object *obj, Eina_Bool retained) EINA_ARG_NONNULL(1);
5588    /**
5589     * Get if the object retains the original aspect ratio.
5590     *
5591     * @param obj The image object.
5592     * @return @c EINA_TRUE if the object keeps the original aspect, @c EINA_FALSE
5593     * otherwise.
5594     *
5595     * @ingroup Image
5596     */
5597    EAPI Eina_Bool        elm_image_aspect_ratio_retained_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5598
5599    /**
5600     * @}
5601     */
5602
5603    /* glview */
5604    typedef void (*Elm_GLView_Func_Cb)(Evas_Object *obj);
5605
5606    /* old API compatibility */
5607    typedef Elm_GLView_Func_Cb Elm_GLView_Func;
5608
5609    typedef enum _Elm_GLView_Mode
5610      {
5611         ELM_GLVIEW_ALPHA   = 1,
5612         ELM_GLVIEW_DEPTH   = 2,
5613         ELM_GLVIEW_STENCIL = 4
5614      } Elm_GLView_Mode;
5615
5616    /**
5617     * Defines a policy for the glview resizing.
5618     *
5619     * @note Default is ELM_GLVIEW_RESIZE_POLICY_RECREATE
5620     */
5621    typedef enum _Elm_GLView_Resize_Policy
5622      {
5623         ELM_GLVIEW_RESIZE_POLICY_RECREATE = 1,      /**< Resize the internal surface along with the image */
5624         ELM_GLVIEW_RESIZE_POLICY_SCALE    = 2       /**< Only reize the internal image and not the surface */
5625      } Elm_GLView_Resize_Policy;
5626
5627    typedef enum _Elm_GLView_Render_Policy
5628      {
5629         ELM_GLVIEW_RENDER_POLICY_ON_DEMAND = 1,     /**< Render only when there is a need for redrawing */
5630         ELM_GLVIEW_RENDER_POLICY_ALWAYS    = 2      /**< Render always even when it is not visible */
5631      } Elm_GLView_Render_Policy;
5632
5633    /**
5634     * @defgroup GLView
5635     *
5636     * A simple GLView widget that allows GL rendering.
5637     *
5638     * Signals that you can add callbacks for are:
5639     *
5640     * @{
5641     */
5642
5643    /**
5644     * Add a new glview to the parent
5645     *
5646     * @param parent The parent object
5647     * @return The new object or NULL if it cannot be created
5648     *
5649     * @ingroup GLView
5650     */
5651    EAPI Evas_Object     *elm_glview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5652
5653    /**
5654     * Sets the size of the glview
5655     *
5656     * @param obj The glview object
5657     * @param width width of the glview object
5658     * @param height height of the glview object
5659     *
5660     * @ingroup GLView
5661     */
5662    EAPI void             elm_glview_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
5663
5664    /**
5665     * Gets the size of the glview.
5666     *
5667     * @param obj The glview object
5668     * @param width width of the glview object
5669     * @param height height of the glview object
5670     *
5671     * Note that this function returns the actual image size of the
5672     * glview.  This means that when the scale policy is set to
5673     * ELM_GLVIEW_RESIZE_POLICY_SCALE, it'll return the non-scaled
5674     * size.
5675     *
5676     * @ingroup GLView
5677     */
5678    EAPI void             elm_glview_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
5679
5680    /**
5681     * Gets the gl api struct for gl rendering
5682     *
5683     * @param obj The glview object
5684     * @return The api object or NULL if it cannot be created
5685     *
5686     * @ingroup GLView
5687     */
5688    EAPI Evas_GL_API     *elm_glview_gl_api_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5689
5690    /**
5691     * Set the mode of the GLView. Supports Three simple modes.
5692     *
5693     * @param obj The glview object
5694     * @param mode The mode Options OR'ed enabling Alpha, Depth, Stencil.
5695     * @return True if set properly.
5696     *
5697     * @ingroup GLView
5698     */
5699    EAPI Eina_Bool        elm_glview_mode_set(Evas_Object *obj, Elm_GLView_Mode mode) EINA_ARG_NONNULL(1);
5700
5701    /**
5702     * Set the resize policy for the glview object.
5703     *
5704     * @param obj The glview object.
5705     * @param policy The scaling policy.
5706     *
5707     * By default, the resize policy is set to
5708     * ELM_GLVIEW_RESIZE_POLICY_RECREATE.  When resize is called it
5709     * destroys the previous surface and recreates the newly specified
5710     * size. If the policy is set to ELM_GLVIEW_RESIZE_POLICY_SCALE,
5711     * however, glview only scales the image object and not the underlying
5712     * GL Surface.
5713     *
5714     * @ingroup GLView
5715     */
5716    EAPI Eina_Bool        elm_glview_resize_policy_set(Evas_Object *obj, Elm_GLView_Resize_Policy policy) EINA_ARG_NONNULL(1);
5717
5718    /**
5719     * Set the render policy for the glview object.
5720     *
5721     * @param obj The glview object.
5722     * @param policy The render policy.
5723     *
5724     * By default, the render policy is set to
5725     * ELM_GLVIEW_RENDER_POLICY_ON_DEMAND.  This policy is set such
5726     * that during the render loop, glview is only redrawn if it needs
5727     * to be redrawn. (i.e. When it is visible) If the policy is set to
5728     * ELM_GLVIEWW_RENDER_POLICY_ALWAYS, it redraws regardless of
5729     * whether it is visible/need redrawing or not.
5730     *
5731     * @ingroup GLView
5732     */
5733    EAPI Eina_Bool        elm_glview_render_policy_set(Evas_Object *obj, Elm_GLView_Render_Policy policy) EINA_ARG_NONNULL(1);
5734
5735    /**
5736     * Set the init function that runs once in the main loop.
5737     *
5738     * @param obj The glview object.
5739     * @param func The init function to be registered.
5740     *
5741     * The registered init function gets called once during the render loop.
5742     *
5743     * @ingroup GLView
5744     */
5745    EAPI void             elm_glview_init_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5746
5747    /**
5748     * Set the render function that runs in the main loop.
5749     *
5750     * @param obj The glview object.
5751     * @param func The delete function to be registered.
5752     *
5753     * The registered del function gets called when GLView object is deleted.
5754     *
5755     * @ingroup GLView
5756     */
5757    EAPI void             elm_glview_del_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5758
5759    /**
5760     * Set the resize function that gets called when resize happens.
5761     *
5762     * @param obj The glview object.
5763     * @param func The resize function to be registered.
5764     *
5765     * @ingroup GLView
5766     */
5767    EAPI void             elm_glview_resize_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5768
5769    /**
5770     * Set the render function that runs in the main loop.
5771     *
5772     * @param obj The glview object.
5773     * @param func The render function to be registered.
5774     *
5775     * @ingroup GLView
5776     */
5777    EAPI void             elm_glview_render_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5778
5779    /**
5780     * Notifies that there has been changes in the GLView.
5781     *
5782     * @param obj The glview object.
5783     *
5784     * @ingroup GLView
5785     */
5786    EAPI void             elm_glview_changed_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
5787
5788    /**
5789     * @}
5790     */
5791
5792    /* box */
5793    /**
5794     * @defgroup Box Box
5795     *
5796     * @image html img/widget/box/preview-00.png
5797     * @image latex img/widget/box/preview-00.eps width=\textwidth
5798     *
5799     * @image html img/box.png
5800     * @image latex img/box.eps width=\textwidth
5801     *
5802     * A box arranges objects in a linear fashion, governed by a layout function
5803     * that defines the details of this arrangement.
5804     *
5805     * By default, the box will use an internal function to set the layout to
5806     * a single row, either vertical or horizontal. This layout is affected
5807     * by a number of parameters, such as the homogeneous flag set by
5808     * elm_box_homogeneous_set(), the values given by elm_box_padding_set() and
5809     * elm_box_align_set() and the hints set to each object in the box.
5810     *
5811     * For this default layout, it's possible to change the orientation with
5812     * elm_box_horizontal_set(). The box will start in the vertical orientation,
5813     * placing its elements ordered from top to bottom. When horizontal is set,
5814     * the order will go from left to right. If the box is set to be
5815     * homogeneous, every object in it will be assigned the same space, that
5816     * of the largest object. Padding can be used to set some spacing between
5817     * the cell given to each object. The alignment of the box, set with
5818     * elm_box_align_set(), determines how the bounding box of all the elements
5819     * will be placed within the space given to the box widget itself.
5820     *
5821     * The size hints of each object also affect how they are placed and sized
5822     * within the box. evas_object_size_hint_min_set() will give the minimum
5823     * size the object can have, and the box will use it as the basis for all
5824     * latter calculations. Elementary widgets set their own minimum size as
5825     * needed, so there's rarely any need to use it manually.
5826     *
5827     * evas_object_size_hint_weight_set(), when not in homogeneous mode, is
5828     * used to tell whether the object will be allocated the minimum size it
5829     * needs or if the space given to it should be expanded. It's important
5830     * to realize that expanding the size given to the object is not the same
5831     * thing as resizing the object. It could very well end being a small
5832     * widget floating in a much larger empty space. If not set, the weight
5833     * for objects will normally be 0.0 for both axis, meaning the widget will
5834     * not be expanded. To take as much space possible, set the weight to
5835     * EVAS_HINT_EXPAND (defined to 1.0) for the desired axis to expand.
5836     *
5837     * Besides how much space each object is allocated, it's possible to control
5838     * how the widget will be placed within that space using
5839     * evas_object_size_hint_align_set(). By default, this value will be 0.5
5840     * for both axis, meaning the object will be centered, but any value from
5841     * 0.0 (left or top, for the @c x and @c y axis, respectively) to 1.0
5842     * (right or bottom) can be used. The special value EVAS_HINT_FILL, which
5843     * is -1.0, means the object will be resized to fill the entire space it
5844     * was allocated.
5845     *
5846     * In addition, customized functions to define the layout can be set, which
5847     * allow the application developer to organize the objects within the box
5848     * in any number of ways.
5849     *
5850     * The special elm_box_layout_transition() function can be used
5851     * to switch from one layout to another, animating the motion of the
5852     * children of the box.
5853     *
5854     * @note Objects should not be added to box objects using _add() calls.
5855     *
5856     * Some examples on how to use boxes follow:
5857     * @li @ref box_example_01
5858     * @li @ref box_example_02
5859     *
5860     * @{
5861     */
5862    /**
5863     * @typedef Elm_Box_Transition
5864     *
5865     * Opaque handler containing the parameters to perform an animated
5866     * transition of the layout the box uses.
5867     *
5868     * @see elm_box_transition_new()
5869     * @see elm_box_layout_set()
5870     * @see elm_box_layout_transition()
5871     */
5872    typedef struct _Elm_Box_Transition Elm_Box_Transition;
5873
5874    /**
5875     * Add a new box to the parent
5876     *
5877     * By default, the box will be in vertical mode and non-homogeneous.
5878     *
5879     * @param parent The parent object
5880     * @return The new object or NULL if it cannot be created
5881     */
5882    EAPI Evas_Object        *elm_box_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5883    /**
5884     * Set the horizontal orientation
5885     *
5886     * By default, box object arranges their contents vertically from top to
5887     * bottom.
5888     * By calling this function with @p horizontal as EINA_TRUE, the box will
5889     * become horizontal, arranging contents from left to right.
5890     *
5891     * @note This flag is ignored if a custom layout function is set.
5892     *
5893     * @param obj The box object
5894     * @param horizontal The horizontal flag (EINA_TRUE = horizontal,
5895     * EINA_FALSE = vertical)
5896     */
5897    EAPI void                elm_box_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
5898    /**
5899     * Get the horizontal orientation
5900     *
5901     * @param obj The box object
5902     * @return EINA_TRUE if the box is set to horizontal mode, EINA_FALSE otherwise
5903     */
5904    EAPI Eina_Bool           elm_box_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5905    /**
5906     * Set the box to arrange its children homogeneously
5907     *
5908     * If enabled, homogeneous layout makes all items the same size, according
5909     * to the size of the largest of its children.
5910     *
5911     * @note This flag is ignored if a custom layout function is set.
5912     *
5913     * @param obj The box object
5914     * @param homogeneous The homogeneous flag
5915     */
5916    EAPI void                elm_box_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
5917    /**
5918     * Get whether the box is using homogeneous mode or not
5919     *
5920     * @param obj The box object
5921     * @return EINA_TRUE if it's homogeneous, EINA_FALSE otherwise
5922     */
5923    EAPI Eina_Bool           elm_box_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5924    EINA_DEPRECATED EAPI void elm_box_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
5925    EINA_DEPRECATED EAPI Eina_Bool elm_box_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5926    /**
5927     * Add an object to the beginning of the pack list
5928     *
5929     * Pack @p subobj into the box @p obj, placing it first in the list of
5930     * children objects. The actual position the object will get on screen
5931     * depends on the layout used. If no custom layout is set, it will be at
5932     * the top or left, depending if the box is vertical or horizontal,
5933     * respectively.
5934     *
5935     * @param obj The box object
5936     * @param subobj The object to add to the box
5937     *
5938     * @see elm_box_pack_end()
5939     * @see elm_box_pack_before()
5940     * @see elm_box_pack_after()
5941     * @see elm_box_unpack()
5942     * @see elm_box_unpack_all()
5943     * @see elm_box_clear()
5944     */
5945    EAPI void                elm_box_pack_start(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5946    /**
5947     * Add an object at the end of the pack list
5948     *
5949     * Pack @p subobj into the box @p obj, placing it last in the list of
5950     * children objects. The actual position the object will get on screen
5951     * depends on the layout used. If no custom layout is set, it will be at
5952     * the bottom or right, depending if the box is vertical or horizontal,
5953     * respectively.
5954     *
5955     * @param obj The box object
5956     * @param subobj The object to add to the box
5957     *
5958     * @see elm_box_pack_start()
5959     * @see elm_box_pack_before()
5960     * @see elm_box_pack_after()
5961     * @see elm_box_unpack()
5962     * @see elm_box_unpack_all()
5963     * @see elm_box_clear()
5964     */
5965    EAPI void                elm_box_pack_end(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5966    /**
5967     * Adds an object to the box before the indicated object
5968     *
5969     * This will add the @p subobj to the box indicated before the object
5970     * indicated with @p before. If @p before is not already in the box, results
5971     * are undefined. Before means either to the left of the indicated object or
5972     * above it depending on orientation.
5973     *
5974     * @param obj The box object
5975     * @param subobj The object to add to the box
5976     * @param before The object before which to add it
5977     *
5978     * @see elm_box_pack_start()
5979     * @see elm_box_pack_end()
5980     * @see elm_box_pack_after()
5981     * @see elm_box_unpack()
5982     * @see elm_box_unpack_all()
5983     * @see elm_box_clear()
5984     */
5985    EAPI void                elm_box_pack_before(Evas_Object *obj, Evas_Object *subobj, Evas_Object *before) EINA_ARG_NONNULL(1);
5986    /**
5987     * Adds an object to the box after the indicated object
5988     *
5989     * This will add the @p subobj to the box indicated after the object
5990     * indicated with @p after. If @p after is not already in the box, results
5991     * are undefined. After means either to the right of the indicated object or
5992     * below it depending on orientation.
5993     *
5994     * @param obj The box object
5995     * @param subobj The object to add to the box
5996     * @param after The object after which to add it
5997     *
5998     * @see elm_box_pack_start()
5999     * @see elm_box_pack_end()
6000     * @see elm_box_pack_before()
6001     * @see elm_box_unpack()
6002     * @see elm_box_unpack_all()
6003     * @see elm_box_clear()
6004     */
6005    EAPI void                elm_box_pack_after(Evas_Object *obj, Evas_Object *subobj, Evas_Object *after) EINA_ARG_NONNULL(1);
6006    /**
6007     * Clear the box of all children
6008     *
6009     * Remove all the elements contained by the box, deleting the respective
6010     * objects.
6011     *
6012     * @param obj The box object
6013     *
6014     * @see elm_box_unpack()
6015     * @see elm_box_unpack_all()
6016     */
6017    EAPI void                elm_box_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
6018    /**
6019     * Unpack a box item
6020     *
6021     * Remove the object given by @p subobj from the box @p obj without
6022     * deleting it.
6023     *
6024     * @param obj The box object
6025     *
6026     * @see elm_box_unpack_all()
6027     * @see elm_box_clear()
6028     */
6029    EAPI void                elm_box_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
6030    /**
6031     * Remove all items from the box, without deleting them
6032     *
6033     * Clear the box from all children, but don't delete the respective objects.
6034     * If no other references of the box children exist, the objects will never
6035     * be deleted, and thus the application will leak the memory. Make sure
6036     * when using this function that you hold a reference to all the objects
6037     * in the box @p obj.
6038     *
6039     * @param obj The box object
6040     *
6041     * @see elm_box_clear()
6042     * @see elm_box_unpack()
6043     */
6044    EAPI void                elm_box_unpack_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
6045    /**
6046     * Retrieve a list of the objects packed into the box
6047     *
6048     * Returns a new @c Eina_List with a pointer to @c Evas_Object in its nodes.
6049     * The order of the list corresponds to the packing order the box uses.
6050     *
6051     * You must free this list with eina_list_free() once you are done with it.
6052     *
6053     * @param obj The box object
6054     */
6055    EAPI const Eina_List    *elm_box_children_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6056    /**
6057     * Set the space (padding) between the box's elements.
6058     *
6059     * Extra space in pixels that will be added between a box child and its
6060     * neighbors after its containing cell has been calculated. This padding
6061     * is set for all elements in the box, besides any possible padding that
6062     * individual elements may have through their size hints.
6063     *
6064     * @param obj The box object
6065     * @param horizontal The horizontal space between elements
6066     * @param vertical The vertical space between elements
6067     */
6068    EAPI void                elm_box_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
6069    /**
6070     * Get the space (padding) between the box's elements.
6071     *
6072     * @param obj The box object
6073     * @param horizontal The horizontal space between elements
6074     * @param vertical The vertical space between elements
6075     *
6076     * @see elm_box_padding_set()
6077     */
6078    EAPI void                elm_box_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
6079    /**
6080     * Set the alignment of the whole bouding box of contents.
6081     *
6082     * Sets how the bounding box containing all the elements of the box, after
6083     * their sizes and position has been calculated, will be aligned within
6084     * the space given for the whole box widget.
6085     *
6086     * @param obj The box object
6087     * @param horizontal The horizontal alignment of elements
6088     * @param vertical The vertical alignment of elements
6089     */
6090    EAPI void                elm_box_align_set(Evas_Object *obj, double horizontal, double vertical) EINA_ARG_NONNULL(1);
6091    /**
6092     * Get the alignment of the whole bouding box of contents.
6093     *
6094     * @param obj The box object
6095     * @param horizontal The horizontal alignment of elements
6096     * @param vertical The vertical alignment of elements
6097     *
6098     * @see elm_box_align_set()
6099     */
6100    EAPI void                elm_box_align_get(const Evas_Object *obj, double *horizontal, double *vertical) EINA_ARG_NONNULL(1);
6101
6102    /**
6103     * Force the box to recalculate its children packing.
6104     *
6105     * If any children was added or removed, box will not calculate the
6106     * values immediately rather leaving it to the next main loop
6107     * iteration. While this is great as it would save lots of
6108     * recalculation, whenever you need to get the position of a just
6109     * added item you must force recalculate before doing so.
6110     *
6111     * @param obj The box object.
6112     */
6113    EAPI void                 elm_box_recalculate(Evas_Object *obj);
6114
6115    /**
6116     * Set the layout defining function to be used by the box
6117     *
6118     * Whenever anything changes that requires the box in @p obj to recalculate
6119     * the size and position of its elements, the function @p cb will be called
6120     * to determine what the layout of the children will be.
6121     *
6122     * Once a custom function is set, everything about the children layout
6123     * is defined by it. The flags set by elm_box_horizontal_set() and
6124     * elm_box_homogeneous_set() no longer have any meaning, and the values
6125     * given by elm_box_padding_set() and elm_box_align_set() are up to this
6126     * layout function to decide if they are used and how. These last two
6127     * will be found in the @c priv parameter, of type @c Evas_Object_Box_Data,
6128     * passed to @p cb. The @c Evas_Object the function receives is not the
6129     * Elementary widget, but the internal Evas Box it uses, so none of the
6130     * functions described here can be used on it.
6131     *
6132     * Any of the layout functions in @c Evas can be used here, as well as the
6133     * special elm_box_layout_transition().
6134     *
6135     * The final @p data argument received by @p cb is the same @p data passed
6136     * here, and the @p free_data function will be called to free it
6137     * whenever the box is destroyed or another layout function is set.
6138     *
6139     * Setting @p cb to NULL will revert back to the default layout function.
6140     *
6141     * @param obj The box object
6142     * @param cb The callback function used for layout
6143     * @param data Data that will be passed to layout function
6144     * @param free_data Function called to free @p data
6145     *
6146     * @see elm_box_layout_transition()
6147     */
6148    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);
6149    /**
6150     * Special layout function that animates the transition from one layout to another
6151     *
6152     * Normally, when switching the layout function for a box, this will be
6153     * reflected immediately on screen on the next render, but it's also
6154     * possible to do this through an animated transition.
6155     *
6156     * This is done by creating an ::Elm_Box_Transition and setting the box
6157     * layout to this function.
6158     *
6159     * For example:
6160     * @code
6161     * Elm_Box_Transition *t = elm_box_transition_new(1.0,
6162     *                            evas_object_box_layout_vertical, // start
6163     *                            NULL, // data for initial layout
6164     *                            NULL, // free function for initial data
6165     *                            evas_object_box_layout_horizontal, // end
6166     *                            NULL, // data for final layout
6167     *                            NULL, // free function for final data
6168     *                            anim_end, // will be called when animation ends
6169     *                            NULL); // data for anim_end function\
6170     * elm_box_layout_set(box, elm_box_layout_transition, t,
6171     *                    elm_box_transition_free);
6172     * @endcode
6173     *
6174     * @note This function can only be used with elm_box_layout_set(). Calling
6175     * it directly will not have the expected results.
6176     *
6177     * @see elm_box_transition_new
6178     * @see elm_box_transition_free
6179     * @see elm_box_layout_set
6180     */
6181    EAPI void                elm_box_layout_transition(Evas_Object *obj, Evas_Object_Box_Data *priv, void *data);
6182    /**
6183     * Create a new ::Elm_Box_Transition to animate the switch of layouts
6184     *
6185     * If you want to animate the change from one layout to another, you need
6186     * to set the layout function of the box to elm_box_layout_transition(),
6187     * passing as user data to it an instance of ::Elm_Box_Transition with the
6188     * necessary information to perform this animation. The free function to
6189     * set for the layout is elm_box_transition_free().
6190     *
6191     * The parameters to create an ::Elm_Box_Transition sum up to how long
6192     * will it be, in seconds, a layout function to describe the initial point,
6193     * another for the final position of the children and one function to be
6194     * called when the whole animation ends. This last function is useful to
6195     * set the definitive layout for the box, usually the same as the end
6196     * layout for the animation, but could be used to start another transition.
6197     *
6198     * @param start_layout The layout function that will be used to start the animation
6199     * @param start_layout_data The data to be passed the @p start_layout function
6200     * @param start_layout_free_data Function to free @p start_layout_data
6201     * @param end_layout The layout function that will be used to end the animation
6202     * @param end_layout_free_data The data to be passed the @p end_layout function
6203     * @param end_layout_free_data Function to free @p end_layout_data
6204     * @param transition_end_cb Callback function called when animation ends
6205     * @param transition_end_data Data to be passed to @p transition_end_cb
6206     * @return An instance of ::Elm_Box_Transition
6207     *
6208     * @see elm_box_transition_new
6209     * @see elm_box_layout_transition
6210     */
6211    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);
6212    /**
6213     * Free a Elm_Box_Transition instance created with elm_box_transition_new().
6214     *
6215     * This function is mostly useful as the @c free_data parameter in
6216     * elm_box_layout_set() when elm_box_layout_transition().
6217     *
6218     * @param data The Elm_Box_Transition instance to be freed.
6219     *
6220     * @see elm_box_transition_new
6221     * @see elm_box_layout_transition
6222     */
6223    EAPI void                elm_box_transition_free(void *data);
6224    /**
6225     * @}
6226     */
6227
6228    /* button */
6229    /**
6230     * @defgroup Button Button
6231     *
6232     * @image html img/widget/button/preview-00.png
6233     * @image latex img/widget/button/preview-00.eps
6234     * @image html img/widget/button/preview-01.png
6235     * @image latex img/widget/button/preview-01.eps
6236     * @image html img/widget/button/preview-02.png
6237     * @image latex img/widget/button/preview-02.eps
6238     *
6239     * This is a push-button. Press it and run some function. It can contain
6240     * a simple label and icon object and it also has an autorepeat feature.
6241     *
6242     * This widgets emits the following signals:
6243     * @li "clicked": the user clicked the button (press/release).
6244     * @li "repeated": the user pressed the button without releasing it.
6245     * @li "pressed": button was pressed.
6246     * @li "unpressed": button was released after being pressed.
6247     * In all three cases, the @c event parameter of the callback will be
6248     * @c NULL.
6249     *
6250     * Also, defined in the default theme, the button has the following styles
6251     * available:
6252     * @li default: a normal button.
6253     * @li anchor: Like default, but the button fades away when the mouse is not
6254     * over it, leaving only the text or icon.
6255     * @li hoversel_vertical: Internally used by @ref Hoversel to give a
6256     * continuous look across its options.
6257     * @li hoversel_vertical_entry: Another internal for @ref Hoversel.
6258     *
6259     * Default contents parts of the button widget that you can use for are:
6260     * @li "icon" - A icon of the button
6261     *
6262     * Default text parts of the button widget that you can use for are:
6263     * @li "default" - Label of the button
6264     *
6265     * Follow through a complete example @ref button_example_01 "here".
6266     * @{
6267     */
6268
6269    typedef enum
6270      {
6271         UIControlStateDefault,
6272         UIControlStateHighlighted,
6273         UIControlStateDisabled,
6274         UIControlStateFocused,
6275         UIControlStateReserved
6276      } UIControlState;
6277
6278    /**
6279     * Add a new button to the parent's canvas
6280     *
6281     * @param parent The parent object
6282     * @return The new object or NULL if it cannot be created
6283     */
6284    EAPI Evas_Object *elm_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6285    /**
6286     * Set the label used in the button
6287     *
6288     * The passed @p label can be NULL to clean any existing text in it and
6289     * leave the button as an icon only object.
6290     *
6291     * @param obj The button object
6292     * @param label The text will be written on the button
6293     * @deprecated use elm_object_text_set() instead.
6294     */
6295    EINA_DEPRECATED EAPI void         elm_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6296    /**
6297     * Get the label set for the button
6298     *
6299     * The string returned is an internal pointer and should not be freed or
6300     * altered. It will also become invalid when the button is destroyed.
6301     * The string returned, if not NULL, is a stringshare, so if you need to
6302     * keep it around even after the button is destroyed, you can use
6303     * eina_stringshare_ref().
6304     *
6305     * @param obj The button object
6306     * @return The text set to the label, or NULL if nothing is set
6307     * @deprecated use elm_object_text_set() instead.
6308     */
6309    EINA_DEPRECATED EAPI const char  *elm_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6310    /**
6311     * Set the label for each state of button
6312     *
6313     * The passed @p label can be NULL to clean any existing text in it and
6314     * leave the button as an icon only object for the state.
6315     *
6316     * @param obj The button object
6317     * @param label The text will be written on the button
6318     * @param state The state of button
6319     *
6320     * @ingroup Button
6321     */
6322    EINA_DEPRECATED EAPI void         elm_button_label_set_for_state(Evas_Object *obj, const char *label, UIControlState state) EINA_ARG_NONNULL(1);
6323    /**
6324     * Get the label of button for each state
6325     *
6326     * The string returned is an internal pointer and should not be freed or
6327     * altered. It will also become invalid when the button is destroyed.
6328     * The string returned, if not NULL, is a stringshare, so if you need to
6329     * keep it around even after the button is destroyed, you can use
6330     * eina_stringshare_ref().
6331     *
6332     * @param obj The button object
6333     * @param state The state of button
6334     * @return The title of button for state
6335     *
6336     * @ingroup Button
6337     */
6338    EINA_DEPRECATED EAPI const char  *elm_button_label_get_for_state(const Evas_Object *obj, UIControlState state) EINA_ARG_NONNULL(1);
6339    /**
6340     * Set the icon used for the button
6341     *
6342     * Setting a new icon will delete any other that was previously set, making
6343     * any reference to them invalid. If you need to maintain the previous
6344     * object alive, unset it first with elm_button_icon_unset().
6345     *
6346     * @param obj The button object
6347     * @param icon The icon object for the button
6348     * @deprecated use elm_object_content_part_set() instead.
6349     */
6350    EAPI void         elm_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6351    /**
6352     * Get the icon used for the button
6353     *
6354     * Return the icon object which is set for this widget. If the button is
6355     * destroyed or another icon is set, the returned object will be deleted
6356     * and any reference to it will be invalid.
6357     *
6358     * @param obj The button object
6359     * @return The icon object that is being used
6360     *
6361     * @deprecated use elm_object_content_part_get() instead
6362     */
6363    EAPI Evas_Object *elm_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6364    /**
6365     * Remove the icon set without deleting it and return the object
6366     *
6367     * This function drops the reference the button holds of the icon object
6368     * and returns this last object. It is used in case you want to remove any
6369     * icon, or set another one, without deleting the actual object. The button
6370     * will be left without an icon set.
6371     *
6372     * @param obj The button object
6373     * @return The icon object that was being used
6374     * @deprecated use elm_object_content_part_unset() instead.
6375     */
6376    EAPI Evas_Object *elm_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6377    /**
6378     * Turn on/off the autorepeat event generated when the button is kept pressed
6379     *
6380     * When off, no autorepeat is performed and buttons emit a normal @c clicked
6381     * signal when they are clicked.
6382     *
6383     * When on, keeping a button pressed will continuously emit a @c repeated
6384     * signal until the button is released. The time it takes until it starts
6385     * emitting the signal is given by
6386     * elm_button_autorepeat_initial_timeout_set(), and the time between each
6387     * new emission by elm_button_autorepeat_gap_timeout_set().
6388     *
6389     * @param obj The button object
6390     * @param on  A bool to turn on/off the event
6391     */
6392    EAPI void         elm_button_autorepeat_set(Evas_Object *obj, Eina_Bool on) EINA_ARG_NONNULL(1);
6393    /**
6394     * Get whether the autorepeat feature is enabled
6395     *
6396     * @param obj The button object
6397     * @return EINA_TRUE if autorepeat is on, EINA_FALSE otherwise
6398     *
6399     * @see elm_button_autorepeat_set()
6400     */
6401    EAPI Eina_Bool    elm_button_autorepeat_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6402    /**
6403     * Set the initial timeout before the autorepeat event is generated
6404     *
6405     * Sets the timeout, in seconds, since the button is pressed until the
6406     * first @c repeated signal is emitted. If @p t is 0.0 or less, there
6407     * won't be any delay and the even will be fired the moment the button is
6408     * pressed.
6409     *
6410     * @param obj The button object
6411     * @param t   Timeout in seconds
6412     *
6413     * @see elm_button_autorepeat_set()
6414     * @see elm_button_autorepeat_gap_timeout_set()
6415     */
6416    EAPI void         elm_button_autorepeat_initial_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
6417    /**
6418     * Get the initial timeout before the autorepeat event is generated
6419     *
6420     * @param obj The button object
6421     * @return Timeout in seconds
6422     *
6423     * @see elm_button_autorepeat_initial_timeout_set()
6424     */
6425    EAPI double       elm_button_autorepeat_initial_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6426    /**
6427     * Set the interval between each generated autorepeat event
6428     *
6429     * After the first @c repeated event is fired, all subsequent ones will
6430     * follow after a delay of @p t seconds for each.
6431     *
6432     * @param obj The button object
6433     * @param t   Interval in seconds
6434     *
6435     * @see elm_button_autorepeat_initial_timeout_set()
6436     */
6437    EAPI void         elm_button_autorepeat_gap_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
6438    /**
6439     * Get the interval between each generated autorepeat event
6440     *
6441     * @param obj The button object
6442     * @return Interval in seconds
6443     */
6444    EAPI double       elm_button_autorepeat_gap_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6445    /**
6446     * @}
6447     */
6448
6449    /**
6450     * @defgroup File_Selector_Button File Selector Button
6451     *
6452     * @image html img/widget/fileselector_button/preview-00.png
6453     * @image latex img/widget/fileselector_button/preview-00.eps
6454     * @image html img/widget/fileselector_button/preview-01.png
6455     * @image latex img/widget/fileselector_button/preview-01.eps
6456     * @image html img/widget/fileselector_button/preview-02.png
6457     * @image latex img/widget/fileselector_button/preview-02.eps
6458     *
6459     * This is a button that, when clicked, creates an Elementary
6460     * window (or inner window) <b> with a @ref Fileselector "file
6461     * selector widget" within</b>. When a file is chosen, the (inner)
6462     * window is closed and the button emits a signal having the
6463     * selected file as it's @c event_info.
6464     *
6465     * This widget encapsulates operations on its internal file
6466     * selector on its own API. There is less control over its file
6467     * selector than that one would have instatiating one directly.
6468     *
6469     * The following styles are available for this button:
6470     * @li @c "default"
6471     * @li @c "anchor"
6472     * @li @c "hoversel_vertical"
6473     * @li @c "hoversel_vertical_entry"
6474     *
6475     * Smart callbacks one can register to:
6476     * - @c "file,chosen" - the user has selected a path, whose string
6477     *   pointer comes as the @c event_info data (a stringshared
6478     *   string)
6479     *
6480     * Here is an example on its usage:
6481     * @li @ref fileselector_button_example
6482     *
6483     * @see @ref File_Selector_Entry for a similar widget.
6484     * @{
6485     */
6486
6487    /**
6488     * Add a new file selector button widget to the given parent
6489     * Elementary (container) object
6490     *
6491     * @param parent The parent object
6492     * @return a new file selector button widget handle or @c NULL, on
6493     * errors
6494     */
6495    EAPI Evas_Object *elm_fileselector_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6496
6497    /**
6498     * Set the label for a given file selector button widget
6499     *
6500     * @param obj The file selector button widget
6501     * @param label The text label to be displayed on @p obj
6502     *
6503     * @deprecated use elm_object_text_set() instead.
6504     */
6505    EINA_DEPRECATED EAPI void         elm_fileselector_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6506
6507    /**
6508     * Get the label set for a given file selector button widget
6509     *
6510     * @param obj The file selector button widget
6511     * @return The button label
6512     *
6513     * @deprecated use elm_object_text_set() instead.
6514     */
6515    EINA_DEPRECATED EAPI const char  *elm_fileselector_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6516
6517    /**
6518     * Set the icon on a given file selector button widget
6519     *
6520     * @param obj The file selector button widget
6521     * @param icon The icon object for the button
6522     *
6523     * Once the icon object is set, a previously set one will be
6524     * deleted. If you want to keep the latter, use the
6525     * elm_fileselector_button_icon_unset() function.
6526     *
6527     * @see elm_fileselector_button_icon_get()
6528     */
6529    EAPI void         elm_fileselector_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6530
6531    /**
6532     * Get the icon set for a given file selector button widget
6533     *
6534     * @param obj The file selector button widget
6535     * @return The icon object currently set on @p obj or @c NULL, if
6536     * none is
6537     *
6538     * @see elm_fileselector_button_icon_set()
6539     */
6540    EAPI Evas_Object *elm_fileselector_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6541
6542    /**
6543     * Unset the icon used in a given file selector button widget
6544     *
6545     * @param obj The file selector button widget
6546     * @return The icon object that was being used on @p obj or @c
6547     * NULL, on errors
6548     *
6549     * Unparent and return the icon object which was set for this
6550     * widget.
6551     *
6552     * @see elm_fileselector_button_icon_set()
6553     */
6554    EAPI Evas_Object *elm_fileselector_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6555
6556    /**
6557     * Set the title for a given file selector button widget's window
6558     *
6559     * @param obj The file selector button widget
6560     * @param title The title string
6561     *
6562     * This will change the window's title, when the file selector pops
6563     * out after a click on the button. Those windows have the default
6564     * (unlocalized) value of @c "Select a file" as titles.
6565     *
6566     * @note It will only take any effect if the file selector
6567     * button widget is @b not under "inwin mode".
6568     *
6569     * @see elm_fileselector_button_window_title_get()
6570     */
6571    EAPI void         elm_fileselector_button_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
6572
6573    /**
6574     * Get the title set for a given file selector button widget's
6575     * window
6576     *
6577     * @param obj The file selector button widget
6578     * @return Title of the file selector button's window
6579     *
6580     * @see elm_fileselector_button_window_title_get() for more details
6581     */
6582    EAPI const char  *elm_fileselector_button_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6583
6584    /**
6585     * Set the size of a given file selector button widget's window,
6586     * holding the file selector itself.
6587     *
6588     * @param obj The file selector button widget
6589     * @param width The window's width
6590     * @param height The window's height
6591     *
6592     * @note it will only take any effect if the file selector button
6593     * widget is @b not under "inwin mode". The default size for the
6594     * window (when applicable) is 400x400 pixels.
6595     *
6596     * @see elm_fileselector_button_window_size_get()
6597     */
6598    EAPI void         elm_fileselector_button_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6599
6600    /**
6601     * Get the size of a given file selector button widget's window,
6602     * holding the file selector itself.
6603     *
6604     * @param obj The file selector button widget
6605     * @param width Pointer into which to store the width value
6606     * @param height Pointer into which to store the height value
6607     *
6608     * @note Use @c NULL pointers on the size values you're not
6609     * interested in: they'll be ignored by the function.
6610     *
6611     * @see elm_fileselector_button_window_size_set(), for more details
6612     */
6613    EAPI void         elm_fileselector_button_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6614
6615    /**
6616     * Set the initial file system path for a given file selector
6617     * button widget
6618     *
6619     * @param obj The file selector button widget
6620     * @param path The path string
6621     *
6622     * It must be a <b>directory</b> path, which will have the contents
6623     * displayed initially in the file selector's view, when invoked
6624     * from @p obj. The default initial path is the @c "HOME"
6625     * environment variable's value.
6626     *
6627     * @see elm_fileselector_button_path_get()
6628     */
6629    EAPI void         elm_fileselector_button_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6630
6631    /**
6632     * Get the initial file system path set for a given file selector
6633     * button widget
6634     *
6635     * @param obj The file selector button widget
6636     * @return path The path string
6637     *
6638     * @see elm_fileselector_button_path_set() for more details
6639     */
6640    EAPI const char  *elm_fileselector_button_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6641
6642    /**
6643     * Enable/disable a tree view in the given file selector button
6644     * widget's internal file selector
6645     *
6646     * @param obj The file selector button widget
6647     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
6648     * disable
6649     *
6650     * This has the same effect as elm_fileselector_expandable_set(),
6651     * but now applied to a file selector button's internal file
6652     * selector.
6653     *
6654     * @note There's no way to put a file selector button's internal
6655     * file selector in "grid mode", as one may do with "pure" file
6656     * selectors.
6657     *
6658     * @see elm_fileselector_expandable_get()
6659     */
6660    EAPI void         elm_fileselector_button_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6661
6662    /**
6663     * Get whether tree view is enabled for the given file selector
6664     * button widget's internal file selector
6665     *
6666     * @param obj The file selector button widget
6667     * @return @c EINA_TRUE if @p obj widget's internal file selector
6668     * is in tree view, @c EINA_FALSE otherwise (and or errors)
6669     *
6670     * @see elm_fileselector_expandable_set() for more details
6671     */
6672    EAPI Eina_Bool    elm_fileselector_button_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6673
6674    /**
6675     * Set whether a given file selector button widget's internal file
6676     * selector is to display folders only or the directory contents,
6677     * as well.
6678     *
6679     * @param obj The file selector button widget
6680     * @param only @c EINA_TRUE to make @p obj widget's internal file
6681     * selector only display directories, @c EINA_FALSE to make files
6682     * to be displayed in it too
6683     *
6684     * This has the same effect as elm_fileselector_folder_only_set(),
6685     * but now applied to a file selector button's internal file
6686     * selector.
6687     *
6688     * @see elm_fileselector_folder_only_get()
6689     */
6690    EAPI void         elm_fileselector_button_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6691
6692    /**
6693     * Get whether a given file selector button widget's internal file
6694     * selector is displaying folders only or the directory contents,
6695     * as well.
6696     *
6697     * @param obj The file selector button widget
6698     * @return @c EINA_TRUE if @p obj widget's internal file
6699     * selector is only displaying directories, @c EINA_FALSE if files
6700     * are being displayed in it too (and on errors)
6701     *
6702     * @see elm_fileselector_button_folder_only_set() for more details
6703     */
6704    EAPI Eina_Bool    elm_fileselector_button_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6705
6706    /**
6707     * Enable/disable the file name entry box where the user can type
6708     * in a name for a file, in a given file selector button widget's
6709     * internal file selector.
6710     *
6711     * @param obj The file selector button widget
6712     * @param is_save @c EINA_TRUE to make @p obj widget's internal
6713     * file selector a "saving dialog", @c EINA_FALSE otherwise
6714     *
6715     * This has the same effect as elm_fileselector_is_save_set(),
6716     * but now applied to a file selector button's internal file
6717     * selector.
6718     *
6719     * @see elm_fileselector_is_save_get()
6720     */
6721    EAPI void         elm_fileselector_button_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6722
6723    /**
6724     * Get whether the given file selector button widget's internal
6725     * file selector is in "saving dialog" mode
6726     *
6727     * @param obj The file selector button widget
6728     * @return @c EINA_TRUE, if @p obj widget's internal file selector
6729     * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
6730     * errors)
6731     *
6732     * @see elm_fileselector_button_is_save_set() for more details
6733     */
6734    EAPI Eina_Bool    elm_fileselector_button_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6735
6736    /**
6737     * Set whether a given file selector button widget's internal file
6738     * selector will raise an Elementary "inner window", instead of a
6739     * dedicated Elementary window. By default, it won't.
6740     *
6741     * @param obj The file selector button widget
6742     * @param value @c EINA_TRUE to make it use an inner window, @c
6743     * EINA_TRUE to make it use a dedicated window
6744     *
6745     * @see elm_win_inwin_add() for more information on inner windows
6746     * @see elm_fileselector_button_inwin_mode_get()
6747     */
6748    EAPI void         elm_fileselector_button_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6749
6750    /**
6751     * Get whether a given file selector button widget's internal file
6752     * selector will raise an Elementary "inner window", instead of a
6753     * dedicated Elementary window.
6754     *
6755     * @param obj The file selector button widget
6756     * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
6757     * if it will use a dedicated window
6758     *
6759     * @see elm_fileselector_button_inwin_mode_set() for more details
6760     */
6761    EAPI Eina_Bool    elm_fileselector_button_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6762
6763    /**
6764     * @}
6765     */
6766
6767     /**
6768     * @defgroup File_Selector_Entry File Selector Entry
6769     *
6770     * @image html img/widget/fileselector_entry/preview-00.png
6771     * @image latex img/widget/fileselector_entry/preview-00.eps
6772     *
6773     * This is an entry made to be filled with or display a <b>file
6774     * system path string</b>. Besides the entry itself, the widget has
6775     * a @ref File_Selector_Button "file selector button" on its side,
6776     * which will raise an internal @ref Fileselector "file selector widget",
6777     * when clicked, for path selection aided by file system
6778     * navigation.
6779     *
6780     * This file selector may appear in an Elementary window or in an
6781     * inner window. When a file is chosen from it, the (inner) window
6782     * is closed and the selected file's path string is exposed both as
6783     * an smart event and as the new text on the entry.
6784     *
6785     * This widget encapsulates operations on its internal file
6786     * selector on its own API. There is less control over its file
6787     * selector than that one would have instatiating one directly.
6788     *
6789     * Smart callbacks one can register to:
6790     * - @c "changed" - The text within the entry was changed
6791     * - @c "activated" - The entry has had editing finished and
6792     *   changes are to be "committed"
6793     * - @c "press" - The entry has been clicked
6794     * - @c "longpressed" - The entry has been clicked (and held) for a
6795     *   couple seconds
6796     * - @c "clicked" - The entry has been clicked
6797     * - @c "clicked,double" - The entry has been double clicked
6798     * - @c "focused" - The entry has received focus
6799     * - @c "unfocused" - The entry has lost focus
6800     * - @c "selection,paste" - A paste action has occurred on the
6801     *   entry
6802     * - @c "selection,copy" - A copy action has occurred on the entry
6803     * - @c "selection,cut" - A cut action has occurred on the entry
6804     * - @c "unpressed" - The file selector entry's button was released
6805     *   after being pressed.
6806     * - @c "file,chosen" - The user has selected a path via the file
6807     *   selector entry's internal file selector, whose string pointer
6808     *   comes as the @c event_info data (a stringshared string)
6809     *
6810     * Here is an example on its usage:
6811     * @li @ref fileselector_entry_example
6812     *
6813     * @see @ref File_Selector_Button for a similar widget.
6814     * @{
6815     */
6816
6817    /**
6818     * Add a new file selector entry widget to the given parent
6819     * Elementary (container) object
6820     *
6821     * @param parent The parent object
6822     * @return a new file selector entry widget handle or @c NULL, on
6823     * errors
6824     */
6825    EAPI Evas_Object *elm_fileselector_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6826
6827    /**
6828     * Set the label for a given file selector entry widget's button
6829     *
6830     * @param obj The file selector entry widget
6831     * @param label The text label to be displayed on @p obj widget's
6832     * button
6833     *
6834     * @deprecated use elm_object_text_set() instead.
6835     */
6836    EINA_DEPRECATED EAPI void         elm_fileselector_entry_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6837
6838    /**
6839     * Get the label set for a given file selector entry widget's button
6840     *
6841     * @param obj The file selector entry widget
6842     * @return The widget button's label
6843     *
6844     * @deprecated use elm_object_text_set() instead.
6845     */
6846    EINA_DEPRECATED EAPI const char  *elm_fileselector_entry_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6847
6848    /**
6849     * Set the icon on a given file selector entry widget's button
6850     *
6851     * @param obj The file selector entry widget
6852     * @param icon The icon object for the entry's button
6853     *
6854     * Once the icon object is set, a previously set one will be
6855     * deleted. If you want to keep the latter, use the
6856     * elm_fileselector_entry_button_icon_unset() function.
6857     *
6858     * @see elm_fileselector_entry_button_icon_get()
6859     */
6860    EAPI void         elm_fileselector_entry_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6861
6862    /**
6863     * Get the icon set for a given file selector entry widget's button
6864     *
6865     * @param obj The file selector entry widget
6866     * @return The icon object currently set on @p obj widget's button
6867     * or @c NULL, if none is
6868     *
6869     * @see elm_fileselector_entry_button_icon_set()
6870     */
6871    EAPI Evas_Object *elm_fileselector_entry_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6872
6873    /**
6874     * Unset the icon used in a given file selector entry widget's
6875     * button
6876     *
6877     * @param obj The file selector entry widget
6878     * @return The icon object that was being used on @p obj widget's
6879     * button or @c NULL, on errors
6880     *
6881     * Unparent and return the icon object which was set for this
6882     * widget's button.
6883     *
6884     * @see elm_fileselector_entry_button_icon_set()
6885     */
6886    EAPI Evas_Object *elm_fileselector_entry_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6887
6888    /**
6889     * Set the title for a given file selector entry widget's window
6890     *
6891     * @param obj The file selector entry widget
6892     * @param title The title string
6893     *
6894     * This will change the window's title, when the file selector pops
6895     * out after a click on the entry's button. Those windows have the
6896     * default (unlocalized) value of @c "Select a file" as titles.
6897     *
6898     * @note It will only take any effect if the file selector
6899     * entry widget is @b not under "inwin mode".
6900     *
6901     * @see elm_fileselector_entry_window_title_get()
6902     */
6903    EAPI void         elm_fileselector_entry_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
6904
6905    /**
6906     * Get the title set for a given file selector entry widget's
6907     * window
6908     *
6909     * @param obj The file selector entry widget
6910     * @return Title of the file selector entry's window
6911     *
6912     * @see elm_fileselector_entry_window_title_get() for more details
6913     */
6914    EAPI const char  *elm_fileselector_entry_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6915
6916    /**
6917     * Set the size of a given file selector entry widget's window,
6918     * holding the file selector itself.
6919     *
6920     * @param obj The file selector entry widget
6921     * @param width The window's width
6922     * @param height The window's height
6923     *
6924     * @note it will only take any effect if the file selector entry
6925     * widget is @b not under "inwin mode". The default size for the
6926     * window (when applicable) is 400x400 pixels.
6927     *
6928     * @see elm_fileselector_entry_window_size_get()
6929     */
6930    EAPI void         elm_fileselector_entry_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6931
6932    /**
6933     * Get the size of a given file selector entry widget's window,
6934     * holding the file selector itself.
6935     *
6936     * @param obj The file selector entry widget
6937     * @param width Pointer into which to store the width value
6938     * @param height Pointer into which to store the height value
6939     *
6940     * @note Use @c NULL pointers on the size values you're not
6941     * interested in: they'll be ignored by the function.
6942     *
6943     * @see elm_fileselector_entry_window_size_set(), for more details
6944     */
6945    EAPI void         elm_fileselector_entry_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6946
6947    /**
6948     * Set the initial file system path and the entry's path string for
6949     * a given file selector entry widget
6950     *
6951     * @param obj The file selector entry widget
6952     * @param path The path string
6953     *
6954     * It must be a <b>directory</b> path, which will have the contents
6955     * displayed initially in the file selector's view, when invoked
6956     * from @p obj. The default initial path is the @c "HOME"
6957     * environment variable's value.
6958     *
6959     * @see elm_fileselector_entry_path_get()
6960     */
6961    EAPI void         elm_fileselector_entry_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6962
6963    /**
6964     * Get the entry's path string for a given file selector entry
6965     * widget
6966     *
6967     * @param obj The file selector entry widget
6968     * @return path The path string
6969     *
6970     * @see elm_fileselector_entry_path_set() for more details
6971     */
6972    EAPI const char  *elm_fileselector_entry_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6973
6974    /**
6975     * Enable/disable a tree view in the given file selector entry
6976     * widget's internal file selector
6977     *
6978     * @param obj The file selector entry widget
6979     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
6980     * disable
6981     *
6982     * This has the same effect as elm_fileselector_expandable_set(),
6983     * but now applied to a file selector entry's internal file
6984     * selector.
6985     *
6986     * @note There's no way to put a file selector entry's internal
6987     * file selector in "grid mode", as one may do with "pure" file
6988     * selectors.
6989     *
6990     * @see elm_fileselector_expandable_get()
6991     */
6992    EAPI void         elm_fileselector_entry_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6993
6994    /**
6995     * Get whether tree view is enabled for the given file selector
6996     * entry widget's internal file selector
6997     *
6998     * @param obj The file selector entry widget
6999     * @return @c EINA_TRUE if @p obj widget's internal file selector
7000     * is in tree view, @c EINA_FALSE otherwise (and or errors)
7001     *
7002     * @see elm_fileselector_expandable_set() for more details
7003     */
7004    EAPI Eina_Bool    elm_fileselector_entry_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7005
7006    /**
7007     * Set whether a given file selector entry widget's internal file
7008     * selector is to display folders only or the directory contents,
7009     * as well.
7010     *
7011     * @param obj The file selector entry widget
7012     * @param only @c EINA_TRUE to make @p obj widget's internal file
7013     * selector only display directories, @c EINA_FALSE to make files
7014     * to be displayed in it too
7015     *
7016     * This has the same effect as elm_fileselector_folder_only_set(),
7017     * but now applied to a file selector entry's internal file
7018     * selector.
7019     *
7020     * @see elm_fileselector_folder_only_get()
7021     */
7022    EAPI void         elm_fileselector_entry_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
7023
7024    /**
7025     * Get whether a given file selector entry widget's internal file
7026     * selector is displaying folders only or the directory contents,
7027     * as well.
7028     *
7029     * @param obj The file selector entry widget
7030     * @return @c EINA_TRUE if @p obj widget's internal file
7031     * selector is only displaying directories, @c EINA_FALSE if files
7032     * are being displayed in it too (and on errors)
7033     *
7034     * @see elm_fileselector_entry_folder_only_set() for more details
7035     */
7036    EAPI Eina_Bool    elm_fileselector_entry_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7037
7038    /**
7039     * Enable/disable the file name entry box where the user can type
7040     * in a name for a file, in a given file selector entry widget's
7041     * internal file selector.
7042     *
7043     * @param obj The file selector entry widget
7044     * @param is_save @c EINA_TRUE to make @p obj widget's internal
7045     * file selector a "saving dialog", @c EINA_FALSE otherwise
7046     *
7047     * This has the same effect as elm_fileselector_is_save_set(),
7048     * but now applied to a file selector entry's internal file
7049     * selector.
7050     *
7051     * @see elm_fileselector_is_save_get()
7052     */
7053    EAPI void         elm_fileselector_entry_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
7054
7055    /**
7056     * Get whether the given file selector entry widget's internal
7057     * file selector is in "saving dialog" mode
7058     *
7059     * @param obj The file selector entry widget
7060     * @return @c EINA_TRUE, if @p obj widget's internal file selector
7061     * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
7062     * errors)
7063     *
7064     * @see elm_fileselector_entry_is_save_set() for more details
7065     */
7066    EAPI Eina_Bool    elm_fileselector_entry_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7067
7068    /**
7069     * Set whether a given file selector entry widget's internal file
7070     * selector will raise an Elementary "inner window", instead of a
7071     * dedicated Elementary window. By default, it won't.
7072     *
7073     * @param obj The file selector entry widget
7074     * @param value @c EINA_TRUE to make it use an inner window, @c
7075     * EINA_TRUE to make it use a dedicated window
7076     *
7077     * @see elm_win_inwin_add() for more information on inner windows
7078     * @see elm_fileselector_entry_inwin_mode_get()
7079     */
7080    EAPI void         elm_fileselector_entry_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
7081
7082    /**
7083     * Get whether a given file selector entry widget's internal file
7084     * selector will raise an Elementary "inner window", instead of a
7085     * dedicated Elementary window.
7086     *
7087     * @param obj The file selector entry widget
7088     * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
7089     * if it will use a dedicated window
7090     *
7091     * @see elm_fileselector_entry_inwin_mode_set() for more details
7092     */
7093    EAPI Eina_Bool    elm_fileselector_entry_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7094
7095    /**
7096     * Set the initial file system path for a given file selector entry
7097     * widget
7098     *
7099     * @param obj The file selector entry widget
7100     * @param path The path string
7101     *
7102     * It must be a <b>directory</b> path, which will have the contents
7103     * displayed initially in the file selector's view, when invoked
7104     * from @p obj. The default initial path is the @c "HOME"
7105     * environment variable's value.
7106     *
7107     * @see elm_fileselector_entry_path_get()
7108     */
7109    EAPI void         elm_fileselector_entry_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
7110
7111    /**
7112     * Get the parent directory's path to the latest file selection on
7113     * a given filer selector entry widget
7114     *
7115     * @param obj The file selector object
7116     * @return The (full) path of the directory of the last selection
7117     * on @p obj widget, a @b stringshared string
7118     *
7119     * @see elm_fileselector_entry_path_set()
7120     */
7121    EAPI const char  *elm_fileselector_entry_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7122
7123    /**
7124     * @}
7125     */
7126
7127    /**
7128     * @defgroup Scroller Scroller
7129     *
7130     * A scroller holds a single object and "scrolls it around". This means that
7131     * it allows the user to use a scrollbar (or a finger) to drag the viewable
7132     * region around, allowing to move through a much larger object that is
7133     * contained in the scroller. The scroller will always have a small minimum
7134     * size by default as it won't be limited by the contents of the scroller.
7135     *
7136     * Signals that you can add callbacks for are:
7137     * @li "edge,left" - the left edge of the content has been reached
7138     * @li "edge,right" - the right edge of the content has been reached
7139     * @li "edge,top" - the top edge of the content has been reached
7140     * @li "edge,bottom" - the bottom edge of the content has been reached
7141     * @li "scroll" - the content has been scrolled (moved)
7142     * @li "scroll,anim,start" - scrolling animation has started
7143     * @li "scroll,anim,stop" - scrolling animation has stopped
7144     * @li "scroll,drag,start" - dragging the contents around has started
7145     * @li "scroll,drag,stop" - dragging the contents around has stopped
7146     * @note The "scroll,anim,*" and "scroll,drag,*" signals are only emitted by
7147     * user intervetion.
7148     *
7149     * @note When Elemementary is in embedded mode the scrollbars will not be
7150     * dragable, they appear merely as indicators of how much has been scrolled.
7151     * @note When Elementary is in desktop mode the thumbscroll(a.k.a.
7152     * fingerscroll) won't work.
7153     *
7154     * Default contents parts of the scroller widget that you can use for are:
7155     * @li "default" - A content of the scroller
7156     *
7157     * In @ref tutorial_scroller you'll find an example of how to use most of
7158     * this API.
7159     * @{
7160     */
7161    /**
7162     * @brief Type that controls when scrollbars should appear.
7163     *
7164     * @see elm_scroller_policy_set()
7165     */
7166    typedef enum _Elm_Scroller_Policy
7167      {
7168         ELM_SCROLLER_POLICY_AUTO = 0, /**< Show scrollbars as needed */
7169         ELM_SCROLLER_POLICY_ON, /**< Always show scrollbars */
7170         ELM_SCROLLER_POLICY_OFF, /**< Never show scrollbars */
7171         ELM_SCROLLER_POLICY_LAST
7172      } Elm_Scroller_Policy;
7173    /**
7174     * @brief Add a new scroller to the parent
7175     *
7176     * @param parent The parent object
7177     * @return The new object or NULL if it cannot be created
7178     */
7179    EAPI Evas_Object *elm_scroller_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7180    /**
7181     * @brief Set the content of the scroller widget (the object to be scrolled around).
7182     *
7183     * @param obj The scroller object
7184     * @param content The new content object
7185     *
7186     * Once the content object is set, a previously set one will be deleted.
7187     * If you want to keep that old content object, use the
7188     * elm_scroller_content_unset() function.
7189     * @deprecated use elm_object_content_set() instead
7190     */
7191    EAPI void         elm_scroller_content_set(Evas_Object *obj, Evas_Object *child) EINA_ARG_NONNULL(1);
7192    /**
7193     * @brief Get the content of the scroller widget
7194     *
7195     * @param obj The slider object
7196     * @return The content that is being used
7197     *
7198     * Return the content object which is set for this widget
7199     *
7200     * @see elm_scroller_content_set()
7201     * @deprecated use elm_object_content_get() instead.
7202     */
7203    EAPI Evas_Object *elm_scroller_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7204    /**
7205     * @brief Unset the content of the scroller widget
7206     *
7207     * @param obj The slider object
7208     * @return The content that was being used
7209     *
7210     * Unparent and return the content object which was set for this widget
7211     *
7212     * @see elm_scroller_content_set()
7213     * @deprecated use elm_object_content_unset() instead.
7214     */
7215    EAPI Evas_Object *elm_scroller_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7216    /**
7217     * @brief Set custom theme elements for the scroller
7218     *
7219     * @param obj The scroller object
7220     * @param widget The widget name to use (default is "scroller")
7221     * @param base The base name to use (default is "base")
7222     */
7223    EAPI void         elm_scroller_custom_widget_base_theme_set(Evas_Object *obj, const char *widget, const char *base) EINA_ARG_NONNULL(1, 2, 3);
7224    /**
7225     * @brief Make the scroller minimum size limited to the minimum size of the content
7226     *
7227     * @param obj The scroller object
7228     * @param w Enable limiting minimum size horizontally
7229     * @param h Enable limiting minimum size vertically
7230     *
7231     * By default the scroller will be as small as its design allows,
7232     * irrespective of its content. This will make the scroller minimum size the
7233     * right size horizontally and/or vertically to perfectly fit its content in
7234     * that direction.
7235     */
7236    EAPI void         elm_scroller_content_min_limit(Evas_Object *obj, Eina_Bool w, Eina_Bool h) EINA_ARG_NONNULL(1);
7237    /**
7238     * @brief Show a specific virtual region within the scroller content object
7239     *
7240     * @param obj The scroller object
7241     * @param x X coordinate of the region
7242     * @param y Y coordinate of the region
7243     * @param w Width of the region
7244     * @param h Height of the region
7245     *
7246     * This will ensure all (or part if it does not fit) of the designated
7247     * region in the virtual content object (0, 0 starting at the top-left of the
7248     * virtual content object) is shown within the scroller.
7249     */
7250    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);
7251    /**
7252     * @brief Set the scrollbar visibility policy
7253     *
7254     * @param obj The scroller object
7255     * @param policy_h Horizontal scrollbar policy
7256     * @param policy_v Vertical scrollbar policy
7257     *
7258     * This sets the scrollbar visibility policy for the given scroller.
7259     * ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is
7260     * needed, and otherwise kept hidden. ELM_SCROLLER_POLICY_ON turns it on all
7261     * the time, and ELM_SCROLLER_POLICY_OFF always keeps it off. This applies
7262     * respectively for the horizontal and vertical scrollbars.
7263     */
7264    EAPI void         elm_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
7265    /**
7266     * @brief Gets scrollbar visibility policy
7267     *
7268     * @param obj The scroller object
7269     * @param policy_h Horizontal scrollbar policy
7270     * @param policy_v Vertical scrollbar policy
7271     *
7272     * @see elm_scroller_policy_set()
7273     */
7274    EAPI void         elm_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v) EINA_ARG_NONNULL(1);
7275    /**
7276     * @brief Get the currently visible content region
7277     *
7278     * @param obj The scroller object
7279     * @param x X coordinate of the region
7280     * @param y Y coordinate of the region
7281     * @param w Width of the region
7282     * @param h Height of the region
7283     *
7284     * This gets the current region in the content object that is visible through
7285     * the scroller. The region co-ordinates are returned in the @p x, @p y, @p
7286     * w, @p h values pointed to.
7287     *
7288     * @note All coordinates are relative to the content.
7289     *
7290     * @see elm_scroller_region_show()
7291     */
7292    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);
7293    /**
7294     * @brief Get the size of the content object
7295     *
7296     * @param obj The scroller object
7297     * @param w Width of the content object.
7298     * @param h Height of the content object.
7299     *
7300     * This gets the size of the content object of the scroller.
7301     */
7302    EAPI void         elm_scroller_child_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
7303    /**
7304     * @brief Set bouncing behavior
7305     *
7306     * @param obj The scroller object
7307     * @param h_bounce Allow bounce horizontally
7308     * @param v_bounce Allow bounce vertically
7309     *
7310     * When scrolling, the scroller may "bounce" when reaching an edge of the
7311     * content object. This is a visual way to indicate the end has been reached.
7312     * This is enabled by default for both axis. This API will set if it is enabled
7313     * for the given axis with the boolean parameters for each axis.
7314     */
7315    EAPI void         elm_scroller_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
7316    /**
7317     * @brief Get the bounce behaviour
7318     *
7319     * @param obj The Scroller object
7320     * @param h_bounce Will the scroller bounce horizontally or not
7321     * @param v_bounce Will the scroller bounce vertically or not
7322     *
7323     * @see elm_scroller_bounce_set()
7324     */
7325    EAPI void         elm_scroller_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
7326    /**
7327     * @brief Set scroll page size relative to viewport size.
7328     *
7329     * @param obj The scroller object
7330     * @param h_pagerel The horizontal page relative size
7331     * @param v_pagerel The vertical page relative size
7332     *
7333     * The scroller is capable of limiting scrolling by the user to "pages". That
7334     * is to jump by and only show a "whole page" at a time as if the continuous
7335     * area of the scroller content is split into page sized pieces. This sets
7336     * the size of a page relative to the viewport of the scroller. 1.0 is "1
7337     * viewport" is size (horizontally or vertically). 0.0 turns it off in that
7338     * axis. This is mutually exclusive with page size
7339     * (see elm_scroller_page_size_set()  for more information). Likewise 0.5
7340     * is "half a viewport". Sane usable values are normally between 0.0 and 1.0
7341     * including 1.0. If you only want 1 axis to be page "limited", use 0.0 for
7342     * the other axis.
7343     */
7344    EAPI void         elm_scroller_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
7345    /**
7346     * @brief Set scroll page size.
7347     *
7348     * @param obj The scroller object
7349     * @param h_pagesize The horizontal page size
7350     * @param v_pagesize The vertical page size
7351     *
7352     * This sets the page size to an absolute fixed value, with 0 turning it off
7353     * for that axis.
7354     *
7355     * @see elm_scroller_page_relative_set()
7356     */
7357    EAPI void         elm_scroller_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
7358    /**
7359     * @brief Get scroll current page number.
7360     *
7361     * @param obj The scroller object
7362     * @param h_pagenumber The horizontal page number
7363     * @param v_pagenumber The vertical page number
7364     *
7365     * The page number starts from 0. 0 is the first page.
7366     * Current page means the page which meets the top-left of the viewport.
7367     * If there are two or more pages in the viewport, it returns the number of the page
7368     * which meets the top-left of the viewport.
7369     *
7370     * @see elm_scroller_last_page_get()
7371     * @see elm_scroller_page_show()
7372     * @see elm_scroller_page_brint_in()
7373     */
7374    EAPI void         elm_scroller_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
7375    /**
7376     * @brief Get scroll last page number.
7377     *
7378     * @param obj The scroller object
7379     * @param h_pagenumber The horizontal page number
7380     * @param v_pagenumber The vertical page number
7381     *
7382     * The page number starts from 0. 0 is the first page.
7383     * This returns the last page number among the pages.
7384     *
7385     * @see elm_scroller_current_page_get()
7386     * @see elm_scroller_page_show()
7387     * @see elm_scroller_page_brint_in()
7388     */
7389    EAPI void         elm_scroller_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
7390    /**
7391     * Show a specific virtual region within the scroller content object by page number.
7392     *
7393     * @param obj The scroller object
7394     * @param h_pagenumber The horizontal page number
7395     * @param v_pagenumber The vertical page number
7396     *
7397     * 0, 0 of the indicated page is located at the top-left of the viewport.
7398     * This will jump to the page directly without animation.
7399     *
7400     * Example of usage:
7401     *
7402     * @code
7403     * sc = elm_scroller_add(win);
7404     * elm_scroller_content_set(sc, content);
7405     * elm_scroller_page_relative_set(sc, 1, 0);
7406     * elm_scroller_current_page_get(sc, &h_page, &v_page);
7407     * elm_scroller_page_show(sc, h_page + 1, v_page);
7408     * @endcode
7409     *
7410     * @see elm_scroller_page_bring_in()
7411     */
7412    EAPI void         elm_scroller_page_show(Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
7413    /**
7414     * Show a specific virtual region within the scroller content object by page number.
7415     *
7416     * @param obj The scroller object
7417     * @param h_pagenumber The horizontal page number
7418     * @param v_pagenumber The vertical page number
7419     *
7420     * 0, 0 of the indicated page is located at the top-left of the viewport.
7421     * This will slide to the page with animation.
7422     *
7423     * Example of usage:
7424     *
7425     * @code
7426     * sc = elm_scroller_add(win);
7427     * elm_scroller_content_set(sc, content);
7428     * elm_scroller_page_relative_set(sc, 1, 0);
7429     * elm_scroller_last_page_get(sc, &h_page, &v_page);
7430     * elm_scroller_page_bring_in(sc, h_page, v_page);
7431     * @endcode
7432     *
7433     * @see elm_scroller_page_show()
7434     */
7435    EAPI void         elm_scroller_page_bring_in(Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
7436    /**
7437     * @brief Show a specific virtual region within the scroller content object.
7438     *
7439     * @param obj The scroller object
7440     * @param x X coordinate of the region
7441     * @param y Y coordinate of the region
7442     * @param w Width of the region
7443     * @param h Height of the region
7444     *
7445     * This will ensure all (or part if it does not fit) of the designated
7446     * region in the virtual content object (0, 0 starting at the top-left of the
7447     * virtual content object) is shown within the scroller. Unlike
7448     * elm_scroller_region_show(), this allow the scroller to "smoothly slide"
7449     * to this location (if configuration in general calls for transitions). It
7450     * may not jump immediately to the new location and make take a while and
7451     * show other content along the way.
7452     *
7453     * @see elm_scroller_region_show()
7454     */
7455    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);
7456    /**
7457     * @brief Set event propagation on a scroller
7458     *
7459     * @param obj The scroller object
7460     * @param propagation If propagation is enabled or not
7461     *
7462     * This enables or disabled event propagation from the scroller content to
7463     * the scroller and its parent. By default event propagation is disabled.
7464     */
7465    EAPI void         elm_scroller_propagate_events_set(Evas_Object *obj, Eina_Bool propagation) EINA_ARG_NONNULL(1);
7466    /**
7467     * @brief Get event propagation for a scroller
7468     *
7469     * @param obj The scroller object
7470     * @return The propagation state
7471     *
7472     * This gets the event propagation for a scroller.
7473     *
7474     * @see elm_scroller_propagate_events_set()
7475     */
7476    EAPI Eina_Bool    elm_scroller_propagate_events_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7477    /**
7478     * @brief Set scrolling gravity on a scroller
7479     *
7480     * @param obj The scroller object
7481     * @param x The scrolling horizontal gravity
7482     * @param y The scrolling vertical gravity
7483     *
7484     * The gravity, defines how the scroller will adjust its view
7485     * when the size of the scroller contents increase.
7486     *
7487     * The scroller will adjust the view to glue itself as follows.
7488     *
7489     *  x=0.0, for showing the left most region of the content.
7490     *  x=1.0, for showing the right most region of the content.
7491     *  y=0.0, for showing the bottom most region of the content.
7492     *  y=1.0, for showing the top most region of the content.
7493     *
7494     * Default values for x and y are 0.0
7495     */
7496    EAPI void         elm_scroller_gravity_set(Evas_Object *obj, double x, double y) EINA_ARG_NONNULL(1);
7497    /**
7498     * @brief Get scrolling gravity values for a scroller
7499     *
7500     * @param obj The scroller object
7501     * @param x The scrolling horizontal gravity
7502     * @param y The scrolling vertical gravity
7503     *
7504     * This gets gravity values for a scroller.
7505     *
7506     * @see elm_scroller_gravity_set()
7507     *
7508     */
7509    EAPI void         elm_scroller_gravity_get(const Evas_Object *obj, double *x, double *y) EINA_ARG_NONNULL(1);
7510    /**
7511     * @}
7512     */
7513
7514    /**
7515     * @defgroup Label Label
7516     *
7517     * @image html img/widget/label/preview-00.png
7518     * @image latex img/widget/label/preview-00.eps
7519     *
7520     * @brief Widget to display text, with simple html-like markup.
7521     *
7522     * The Label widget @b doesn't allow text to overflow its boundaries, if the
7523     * text doesn't fit the geometry of the label it will be ellipsized or be
7524     * cut. Elementary provides several themes for this widget:
7525     * @li default - No animation
7526     * @li marker - Centers the text in the label and make it bold by default
7527     * @li slide_long - The entire text appears from the right of the screen and
7528     * slides until it disappears in the left of the screen(reappering on the
7529     * right again).
7530     * @li slide_short - The text appears in the left of the label and slides to
7531     * the right to show the overflow. When all of the text has been shown the
7532     * position is reset.
7533     * @li slide_bounce - The text appears in the left of the label and slides to
7534     * the right to show the overflow. When all of the text has been shown the
7535     * animation reverses, moving the text to the left.
7536     *
7537     * Custom themes can of course invent new markup tags and style them any way
7538     * they like.
7539     *
7540     * The following signals may be emitted by the label widget:
7541     * @li "language,changed": The program's language changed.
7542     *
7543     * See @ref tutorial_label for a demonstration of how to use a label widget.
7544     * @{
7545     */
7546    /**
7547     * @brief Add a new label to the parent
7548     *
7549     * @param parent The parent object
7550     * @return The new object or NULL if it cannot be created
7551     */
7552    EAPI Evas_Object *elm_label_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7553    /**
7554     * @brief Set the label on the label object
7555     *
7556     * @param obj The label object
7557     * @param label The label will be used on the label object
7558     * @deprecated See elm_object_text_set()
7559     */
7560    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 */
7561    /**
7562     * @brief Get the label used on the label object
7563     *
7564     * @param obj The label object
7565     * @return The string inside the label
7566     * @deprecated See elm_object_text_get()
7567     */
7568    EINA_DEPRECATED EAPI const char *elm_label_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1); /* deprecated, use elm_object_text_get instead */
7569    /**
7570     * @brief Set the wrapping behavior of the label
7571     *
7572     * @param obj The label object
7573     * @param wrap To wrap text or not
7574     *
7575     * By default no wrapping is done. Possible values for @p wrap are:
7576     * @li ELM_WRAP_NONE - No wrapping
7577     * @li ELM_WRAP_CHAR - wrap between characters
7578     * @li ELM_WRAP_WORD - wrap between words
7579     * @li ELM_WRAP_MIXED - Word wrap, and if that fails, char wrap
7580     */
7581    EAPI void         elm_label_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
7582    /**
7583     * @brief Get the wrapping behavior of the label
7584     *
7585     * @param obj The label object
7586     * @return Wrap type
7587     *
7588     * @see elm_label_line_wrap_set()
7589     */
7590    EAPI Elm_Wrap_Type elm_label_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7591    /**
7592     * @brief Set wrap width of the label
7593     *
7594     * @param obj The label object
7595     * @param w The wrap width in pixels at a minimum where words need to wrap
7596     *
7597     * This function sets the maximum width size hint of the label.
7598     *
7599     * @warning This is only relevant if the label is inside a container.
7600     */
7601    EAPI void         elm_label_wrap_width_set(Evas_Object *obj, Evas_Coord w) EINA_ARG_NONNULL(1);
7602    /**
7603     * @brief Get wrap width of the label
7604     *
7605     * @param obj The label object
7606     * @return The wrap width in pixels at a minimum where words need to wrap
7607     *
7608     * @see elm_label_wrap_width_set()
7609     */
7610    EAPI Evas_Coord   elm_label_wrap_width_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7611    /**
7612     * @brief Set wrap height of the label
7613     *
7614     * @param obj The label object
7615     * @param h The wrap height in pixels at a minimum where words need to wrap
7616     *
7617     * This function sets the maximum height size hint of the label.
7618     *
7619     * @warning This is only relevant if the label is inside a container.
7620     */
7621    EAPI void         elm_label_wrap_height_set(Evas_Object *obj, Evas_Coord h) EINA_ARG_NONNULL(1);
7622    /**
7623     * @brief get wrap width of the label
7624     *
7625     * @param obj The label object
7626     * @return The wrap height in pixels at a minimum where words need to wrap
7627     */
7628    EAPI Evas_Coord   elm_label_wrap_height_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7629    /**
7630     * @brief Set the font size on the label object.
7631     *
7632     * @param obj The label object
7633     * @param size font size
7634     *
7635     * @warning NEVER use this. It is for hyper-special cases only. use styles
7636     * instead. e.g. "big", "medium", "small" - or better name them by use:
7637     * "title", "footnote", "quote" etc.
7638     */
7639    EAPI void         elm_label_fontsize_set(Evas_Object *obj, int fontsize) EINA_ARG_NONNULL(1);
7640    /**
7641     * @brief Set the text color on the label object
7642     *
7643     * @param obj The label object
7644     * @param r Red property background color of The label object
7645     * @param g Green property background color of The label object
7646     * @param b Blue property background color of The label object
7647     * @param a Alpha property background color of The label object
7648     *
7649     * @warning NEVER use this. It is for hyper-special cases only. use styles
7650     * instead. e.g. "big", "medium", "small" - or better name them by use:
7651     * "title", "footnote", "quote" etc.
7652     */
7653    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);
7654    /**
7655     * @brief Set the text align on the label object
7656     *
7657     * @param obj The label object
7658     * @param align align mode ("left", "center", "right")
7659     *
7660     * @warning NEVER use this. It is for hyper-special cases only. use styles
7661     * instead. e.g. "big", "medium", "small" - or better name them by use:
7662     * "title", "footnote", "quote" etc.
7663     */
7664    EAPI void         elm_label_text_align_set(Evas_Object *obj, const char *alignmode) EINA_ARG_NONNULL(1);
7665    /**
7666     * @brief Set background color of the label
7667     *
7668     * @param obj The label object
7669     * @param r Red property background color of The label object
7670     * @param g Green property background color of The label object
7671     * @param b Blue property background color of The label object
7672     * @param a Alpha property background alpha of The label object
7673     *
7674     * @warning NEVER use this. It is for hyper-special cases only. use styles
7675     * instead. e.g. "big", "medium", "small" - or better name them by use:
7676     * "title", "footnote", "quote" etc.
7677     */
7678    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);
7679    /**
7680     * @brief Set the ellipsis behavior of the label
7681     *
7682     * @param obj The label object
7683     * @param ellipsis To ellipsis text or not
7684     *
7685     * If set to true and the text doesn't fit in the label an ellipsis("...")
7686     * will be shown at the end of the widget.
7687     *
7688     * @warning This doesn't work with slide(elm_label_slide_set()) or if the
7689     * choosen wrap method was ELM_WRAP_WORD.
7690     */
7691    EAPI void         elm_label_ellipsis_set(Evas_Object *obj, Eina_Bool ellipsis) EINA_ARG_NONNULL(1);
7692    EINA_DEPRECATED EAPI void elm_label_wrap_mode_set(Evas_Object *obj, Eina_Bool wrapmode) EINA_ARG_NONNULL(1);
7693    /**
7694     * @brief Set the text slide of the label
7695     *
7696     * @param obj The label object
7697     * @param slide To start slide or stop
7698     *
7699     * If set to true, the text of the label will slide/scroll through the length of
7700     * label.
7701     *
7702     * @warning This only works with the themes "slide_short", "slide_long" and
7703     * "slide_bounce".
7704     */
7705    EAPI void         elm_label_slide_set(Evas_Object *obj, Eina_Bool slide) EINA_ARG_NONNULL(1);
7706    /**
7707     * @brief Get the text slide mode of the label
7708     *
7709     * @param obj The label object
7710     * @return slide slide mode value
7711     *
7712     * @see elm_label_slide_set()
7713     */
7714    EAPI Eina_Bool    elm_label_slide_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
7715    /**
7716     * @brief Set the slide duration(speed) of the label
7717     *
7718     * @param obj The label object
7719     * @return The duration in seconds in moving text from slide begin position
7720     * to slide end position
7721     */
7722    EAPI void         elm_label_slide_duration_set(Evas_Object *obj, double duration) EINA_ARG_NONNULL(1);
7723    /**
7724     * @brief Get the slide duration(speed) of the label
7725     *
7726     * @param obj The label object
7727     * @return The duration time in moving text from slide begin position to slide end position
7728     *
7729     * @see elm_label_slide_duration_set()
7730     */
7731    EAPI double       elm_label_slide_duration_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
7732    /**
7733     * @}
7734     */
7735
7736    /**
7737     * @defgroup Frame Frame
7738     *
7739     * @image html img/widget/frame/preview-00.png
7740     * @image latex img/widget/frame/preview-00.eps
7741     *
7742     * @brief Frame is a widget that holds some content and has a title.
7743     *
7744     * The default look is a frame with a title, but Frame supports multple
7745     * styles:
7746     * @li default
7747     * @li pad_small
7748     * @li pad_medium
7749     * @li pad_large
7750     * @li pad_huge
7751     * @li outdent_top
7752     * @li outdent_bottom
7753     *
7754     * Of all this styles only default shows the title. Frame emits no signals.
7755     *
7756     * Default contents parts of the frame widget that you can use for are:
7757     * @li "default" - A content of the frame
7758     *
7759     * Default text parts of the frame widget that you can use for are:
7760     * @li "elm.text" - Label of the frame
7761     *
7762     * For a detailed example see the @ref tutorial_frame.
7763     *
7764     * @{
7765     */
7766    /**
7767     * @brief Add a new frame to the parent
7768     *
7769     * @param parent The parent object
7770     * @return The new object or NULL if it cannot be created
7771     */
7772    EAPI Evas_Object *elm_frame_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7773    /**
7774     * @brief Set the frame label
7775     *
7776     * @param obj The frame object
7777     * @param label The label of this frame object
7778     *
7779     * @deprecated use elm_object_text_set() instead.
7780     */
7781    EINA_DEPRECATED EAPI void         elm_frame_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7782    /**
7783     * @brief Get the frame label
7784     *
7785     * @param obj The frame object
7786     *
7787     * @return The label of this frame objet or NULL if unable to get frame
7788     *
7789     * @deprecated use elm_object_text_get() instead.
7790     */
7791    EINA_DEPRECATED EAPI const char  *elm_frame_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7792    /**
7793     * @brief Set the content of the frame widget
7794     *
7795     * Once the content object is set, a previously set one will be deleted.
7796     * If you want to keep that old content object, use the
7797     * elm_frame_content_unset() function.
7798     *
7799     * @param obj The frame object
7800     * @param content The content will be filled in this frame object
7801     *
7802     * @deprecated use elm_object_content_set() instead.
7803     */
7804    EAPI void         elm_frame_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
7805    /**
7806     * @brief Get the content of the frame widget
7807     *
7808     * Return the content object which is set for this widget
7809     *
7810     * @param obj The frame object
7811     * @return The content that is being used
7812     *
7813     * @deprecated use elm_object_content_get() instead.
7814     */
7815    EAPI Evas_Object *elm_frame_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7816    /**
7817     * @brief Unset the content of the frame widget
7818     *
7819     * Unparent and return the content object which was set for this widget
7820     *
7821     * @param obj The frame object
7822     * @return The content that was being used
7823     *
7824     * @deprecated use elm_object_content_unset() instead.
7825     */
7826    EAPI Evas_Object *elm_frame_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7827    /**
7828     * @}
7829     */
7830
7831    /**
7832     * @defgroup Table Table
7833     *
7834     * A container widget to arrange other widgets in a table where items can
7835     * also span multiple columns or rows - even overlap (and then be raised or
7836     * lowered accordingly to adjust stacking if they do overlap).
7837     *
7838     * For a Table widget the row/column count is not fixed.
7839     * The table widget adjusts itself when subobjects are added to it dynamically.
7840     *
7841     * The followin are examples of how to use a table:
7842     * @li @ref tutorial_table_01
7843     * @li @ref tutorial_table_02
7844     *
7845     * @{
7846     */
7847    /**
7848     * @brief Add a new table to the parent
7849     *
7850     * @param parent The parent object
7851     * @return The new object or NULL if it cannot be created
7852     */
7853    EAPI Evas_Object *elm_table_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7854    /**
7855     * @brief Set the homogeneous layout in the table
7856     *
7857     * @param obj The layout object
7858     * @param homogeneous A boolean to set if the layout is homogeneous in the
7859     * table (EINA_TRUE = homogeneous,  EINA_FALSE = no homogeneous)
7860     */
7861    EAPI void         elm_table_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
7862    /**
7863     * @brief Get the current table homogeneous mode.
7864     *
7865     * @param obj The table object
7866     * @return A boolean to indicating if the layout is homogeneous in the table
7867     * (EINA_TRUE = homogeneous,  EINA_FALSE = no homogeneous)
7868     */
7869    EAPI Eina_Bool    elm_table_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7870    /**
7871     * @warning <b>Use elm_table_homogeneous_set() instead</b>
7872     */
7873    EINA_DEPRECATED EAPI void elm_table_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
7874    /**
7875     * @warning <b>Use elm_table_homogeneous_get() instead</b>
7876     */
7877    EINA_DEPRECATED EAPI Eina_Bool elm_table_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7878    /**
7879     * @brief Set padding between cells.
7880     *
7881     * @param obj The layout object.
7882     * @param horizontal set the horizontal padding.
7883     * @param vertical set the vertical padding.
7884     *
7885     * Default value is 0.
7886     */
7887    EAPI void         elm_table_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
7888    /**
7889     * @brief Get padding between cells.
7890     *
7891     * @param obj The layout object.
7892     * @param horizontal set the horizontal padding.
7893     * @param vertical set the vertical padding.
7894     */
7895    EAPI void         elm_table_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
7896    /**
7897     * @brief Add a subobject on the table with the coordinates passed
7898     *
7899     * @param obj The table object
7900     * @param subobj The subobject to be added to the table
7901     * @param x Row number
7902     * @param y Column number
7903     * @param w rowspan
7904     * @param h colspan
7905     *
7906     * @note All positioning inside the table is relative to rows and columns, so
7907     * a value of 0 for x and y, means the top left cell of the table, and a
7908     * value of 1 for w and h means @p subobj only takes that 1 cell.
7909     */
7910    EAPI void         elm_table_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
7911    /**
7912     * @brief Remove child from table.
7913     *
7914     * @param obj The table object
7915     * @param subobj The subobject
7916     */
7917    EAPI void         elm_table_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
7918    /**
7919     * @brief Faster way to remove all child objects from a table object.
7920     *
7921     * @param obj The table object
7922     * @param clear If true, will delete children, else just remove from table.
7923     */
7924    EAPI void         elm_table_clear(Evas_Object *obj, Eina_Bool clear) EINA_ARG_NONNULL(1);
7925    /**
7926     * @brief Set the packing location of an existing child of the table
7927     *
7928     * @param subobj The subobject to be modified in the table
7929     * @param x Row number
7930     * @param y Column number
7931     * @param w rowspan
7932     * @param h colspan
7933     *
7934     * Modifies the position of an object already in the table.
7935     *
7936     * @note All positioning inside the table is relative to rows and columns, so
7937     * a value of 0 for x and y, means the top left cell of the table, and a
7938     * value of 1 for w and h means @p subobj only takes that 1 cell.
7939     */
7940    EAPI void         elm_table_pack_set(Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
7941    /**
7942     * @brief Get the packing location of an existing child of the table
7943     *
7944     * @param subobj The subobject to be modified in the table
7945     * @param x Row number
7946     * @param y Column number
7947     * @param w rowspan
7948     * @param h colspan
7949     *
7950     * @see elm_table_pack_set()
7951     */
7952    EAPI void         elm_table_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
7953    /**
7954     * @}
7955     */
7956
7957    /**
7958     * @defgroup Gengrid Gengrid (Generic grid)
7959     *
7960     * This widget aims to position objects in a grid layout while
7961     * actually creating and rendering only the visible ones, using the
7962     * same idea as the @ref Genlist "genlist": the user defines a @b
7963     * class for each item, specifying functions that will be called at
7964     * object creation, deletion, etc. When those items are selected by
7965     * the user, a callback function is issued. Users may interact with
7966     * a gengrid via the mouse (by clicking on items to select them and
7967     * clicking on the grid's viewport and swiping to pan the whole
7968     * view) or via the keyboard, navigating through item with the
7969     * arrow keys.
7970     *
7971     * @section Gengrid_Layouts Gengrid layouts
7972     *
7973     * Gengrid may layout its items in one of two possible layouts:
7974     * - horizontal or
7975     * - vertical.
7976     *
7977     * When in "horizontal mode", items will be placed in @b columns,
7978     * from top to bottom and, when the space for a column is filled,
7979     * another one is started on the right, thus expanding the grid
7980     * horizontally, making for horizontal scrolling. When in "vertical
7981     * mode" , though, items will be placed in @b rows, from left to
7982     * right and, when the space for a row is filled, another one is
7983     * started below, thus expanding the grid vertically (and making
7984     * for vertical scrolling).
7985     *
7986     * @section Gengrid_Items Gengrid items
7987     *
7988     * An item in a gengrid can have 0 or more text labels (they can be
7989     * regular text or textblock Evas objects - that's up to the style
7990     * to determine), 0 or more icons (which are simply objects
7991     * swallowed into the gengrid item's theming Edje object) and 0 or
7992     * more <b>boolean states</b>, which have the behavior left to the
7993     * user to define. The Edje part names for each of these properties
7994     * will be looked up, in the theme file for the gengrid, under the
7995     * Edje (string) data items named @c "labels", @c "icons" and @c
7996     * "states", respectively. For each of those properties, if more
7997     * than one part is provided, they must have names listed separated
7998     * by spaces in the data fields. For the default gengrid item
7999     * theme, we have @b one label part (@c "elm.text"), @b two icon
8000     * parts (@c "elm.swalllow.icon" and @c "elm.swallow.end") and @b
8001     * no state parts.
8002     *
8003     * A gengrid item may be at one of several styles. Elementary
8004     * provides one by default - "default", but this can be extended by
8005     * system or application custom themes/overlays/extensions (see
8006     * @ref Theme "themes" for more details).
8007     *
8008     * @section Gengrid_Item_Class Gengrid item classes
8009     *
8010     * In order to have the ability to add and delete items on the fly,
8011     * gengrid implements a class (callback) system where the
8012     * application provides a structure with information about that
8013     * type of item (gengrid may contain multiple different items with
8014     * different classes, states and styles). Gengrid will call the
8015     * functions in this struct (methods) when an item is "realized"
8016     * (i.e., created dynamically, while the user is scrolling the
8017     * grid). All objects will simply be deleted when no longer needed
8018     * with evas_object_del(). The #Elm_GenGrid_Item_Class structure
8019     * contains the following members:
8020     * - @c item_style - This is a constant string and simply defines
8021     * the name of the item style. It @b must be specified and the
8022     * default should be @c "default".
8023     * - @c func.label_get - This function is called when an item
8024     * object is actually created. The @c data parameter will point to
8025     * the same data passed to elm_gengrid_item_append() and related
8026     * item creation functions. The @c obj parameter is the gengrid
8027     * object itself, while the @c part one is the name string of one
8028     * of the existing text parts in the Edje group implementing the
8029     * item's theme. This function @b must return a strdup'()ed string,
8030     * as the caller will free() it when done. See
8031     * #Elm_Gengrid_Item_Label_Get_Cb.
8032     * - @c func.content_get - This function is called when an item object
8033     * is actually created. The @c data parameter will point to the
8034     * same data passed to elm_gengrid_item_append() and related item
8035     * creation functions. The @c obj parameter is the gengrid object
8036     * itself, while the @c part one is the name string of one of the
8037     * existing (content) swallow parts in the Edje group implementing the
8038     * item's theme. It must return @c NULL, when no content is desired,
8039     * or a valid object handle, otherwise. The object will be deleted
8040     * by the gengrid on its deletion or when the item is "unrealized".
8041     * See #Elm_Gengrid_Item_Content_Get_Cb.
8042     * - @c func.state_get - This function is called when an item
8043     * object is actually created. The @c data parameter will point to
8044     * the same data passed to elm_gengrid_item_append() and related
8045     * item creation functions. The @c obj parameter is the gengrid
8046     * object itself, while the @c part one is the name string of one
8047     * of the state parts in the Edje group implementing the item's
8048     * theme. Return @c EINA_FALSE for false/off or @c EINA_TRUE for
8049     * true/on. Gengrids will emit a signal to its theming Edje object
8050     * with @c "elm,state,XXX,active" and @c "elm" as "emission" and
8051     * "source" arguments, respectively, when the state is true (the
8052     * default is false), where @c XXX is the name of the (state) part.
8053     * See #Elm_Gengrid_Item_State_Get_Cb.
8054     * - @c func.del - This is called when elm_gengrid_item_del() is
8055     * called on an item or elm_gengrid_clear() is called on the
8056     * gengrid. This is intended for use when gengrid items are
8057     * deleted, so any data attached to the item (e.g. its data
8058     * parameter on creation) can be deleted. See #Elm_Gengrid_Item_Del_Cb.
8059     *
8060     * @section Gengrid_Usage_Hints Usage hints
8061     *
8062     * If the user wants to have multiple items selected at the same
8063     * time, elm_gengrid_multi_select_set() will permit it. If the
8064     * gengrid is single-selection only (the default), then
8065     * elm_gengrid_select_item_get() will return the selected item or
8066     * @c NULL, if none is selected. If the gengrid is under
8067     * multi-selection, then elm_gengrid_selected_items_get() will
8068     * return a list (that is only valid as long as no items are
8069     * modified (added, deleted, selected or unselected) of child items
8070     * on a gengrid.
8071     *
8072     * If an item changes (internal (boolean) state, label or content 
8073     * changes), then use elm_gengrid_item_update() to have gengrid
8074     * update the item with the new state. A gengrid will re-"realize"
8075     * the item, thus calling the functions in the
8076     * #Elm_Gengrid_Item_Class set for that item.
8077     *
8078     * To programmatically (un)select an item, use
8079     * elm_gengrid_item_selected_set(). To get its selected state use
8080     * elm_gengrid_item_selected_get(). To make an item disabled
8081     * (unable to be selected and appear differently) use
8082     * elm_gengrid_item_disabled_set() to set this and
8083     * elm_gengrid_item_disabled_get() to get the disabled state.
8084     *
8085     * Grid cells will only have their selection smart callbacks called
8086     * when firstly getting selected. Any further clicks will do
8087     * nothing, unless you enable the "always select mode", with
8088     * elm_gengrid_always_select_mode_set(), thus making every click to
8089     * issue selection callbacks. elm_gengrid_no_select_mode_set() will
8090     * turn off the ability to select items entirely in the widget and
8091     * they will neither appear selected nor call the selection smart
8092     * callbacks.
8093     *
8094     * Remember that you can create new styles and add your own theme
8095     * augmentation per application with elm_theme_extension_add(). If
8096     * you absolutely must have a specific style that overrides any
8097     * theme the user or system sets up you can use
8098     * elm_theme_overlay_add() to add such a file.
8099     *
8100     * @section Gengrid_Smart_Events Gengrid smart events
8101     *
8102     * Smart events that you can add callbacks for are:
8103     * - @c "activated" - The user has double-clicked or pressed
8104     *   (enter|return|spacebar) on an item. The @c event_info parameter
8105     *   is the gengrid item that was activated.
8106     * - @c "clicked,double" - The user has double-clicked an item.
8107     *   The @c event_info parameter is the gengrid item that was double-clicked.
8108     * - @c "longpressed" - This is called when the item is pressed for a certain
8109     *   amount of time. By default it's 1 second.
8110     * - @c "selected" - The user has made an item selected. The
8111     *   @c event_info parameter is the gengrid item that was selected.
8112     * - @c "unselected" - The user has made an item unselected. The
8113     *   @c event_info parameter is the gengrid item that was unselected.
8114     * - @c "realized" - This is called when the item in the gengrid
8115     *   has its implementing Evas object instantiated, de facto. @c
8116     *   event_info is the gengrid item that was created. The object
8117     *   may be deleted at any time, so it is highly advised to the
8118     *   caller @b not to use the object pointer returned from
8119     *   elm_gengrid_item_object_get(), because it may point to freed
8120     *   objects.
8121     * - @c "unrealized" - This is called when the implementing Evas
8122     *   object for this item is deleted. @c event_info is the gengrid
8123     *   item that was deleted.
8124     * - @c "changed" - Called when an item is added, removed, resized
8125     *   or moved and when the gengrid is resized or gets "horizontal"
8126     *   property changes.
8127     * - @c "scroll,anim,start" - This is called when scrolling animation has
8128     *   started.
8129     * - @c "scroll,anim,stop" - This is called when scrolling animation has
8130     *   stopped.
8131     * - @c "drag,start,up" - Called when the item in the gengrid has
8132     *   been dragged (not scrolled) up.
8133     * - @c "drag,start,down" - Called when the item in the gengrid has
8134     *   been dragged (not scrolled) down.
8135     * - @c "drag,start,left" - Called when the item in the gengrid has
8136     *   been dragged (not scrolled) left.
8137     * - @c "drag,start,right" - Called when the item in the gengrid has
8138     *   been dragged (not scrolled) right.
8139     * - @c "drag,stop" - Called when the item in the gengrid has
8140     *   stopped being dragged.
8141     * - @c "drag" - Called when the item in the gengrid is being
8142     *   dragged.
8143     * - @c "scroll" - called when the content has been scrolled
8144     *   (moved).
8145     * - @c "scroll,drag,start" - called when dragging the content has
8146     *   started.
8147     * - @c "scroll,drag,stop" - called when dragging the content has
8148     *   stopped.
8149     * - @c "edge,top" - This is called when the gengrid is scrolled until
8150     *   the top edge.
8151     * - @c "edge,bottom" - This is called when the gengrid is scrolled
8152     *   until the bottom edge.
8153     * - @c "edge,left" - This is called when the gengrid is scrolled
8154     *   until the left edge.
8155     * - @c "edge,right" - This is called when the gengrid is scrolled
8156     *   until the right edge.
8157     *
8158     * List of gengrid examples:
8159     * @li @ref gengrid_example
8160     */
8161
8162    /**
8163     * @addtogroup Gengrid
8164     * @{
8165     */
8166
8167    typedef struct _Elm_Gengrid_Item_Class Elm_Gengrid_Item_Class; /**< Gengrid item class definition structs */
8168    typedef struct _Elm_Gengrid_Item Elm_Gengrid_Item; /**< Gengrid item handles */
8169    typedef struct _Elm_Gengrid_Item_Class_Func Elm_Gengrid_Item_Class_Func; /**< Class functions for gengrid item classes. */
8170    typedef char        *(*Elm_Gengrid_Item_Label_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< Label fetching class function for gengrid item classes. */
8171    typedef Evas_Object *(*Elm_Gengrid_Item_Content_Get_Cb)  (void *data, Evas_Object *obj, const char *part); /**< Content (swallowed object) fetching class function for gengrid item classes. */
8172    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. */
8173    typedef void         (*Elm_Gengrid_Item_Del_Cb)      (void *data, Evas_Object *obj); /**< Deletion class function for gengrid item classes. */
8174
8175    /* temporary compatibility code */
8176    typedef Elm_Gengrid_Item_Label_Get_Cb GridItemLabelGetFunc EINA_DEPRECATED;
8177    typedef Elm_Gengrid_Item_Content_Get_Cb GridItemIconGetFunc EINA_DEPRECATED;
8178    typedef Elm_Gengrid_Item_State_Get_Cb GridItemStateGetFunc EINA_DEPRECATED;
8179    typedef Elm_Gengrid_Item_Del_Cb GridItemDelFunc EINA_DEPRECATED;
8180
8181    /**
8182     * @struct _Elm_Gengrid_Item_Class
8183     *
8184     * Gengrid item class definition. See @ref Gengrid_Item_Class for
8185     * field details.
8186     */
8187    struct _Elm_Gengrid_Item_Class
8188      {
8189         const char             *item_style;
8190         struct _Elm_Gengrid_Item_Class_Func
8191           {
8192              Elm_Gengrid_Item_Label_Get_Cb label_get;
8193              union { /* temporary compatibility code */
8194                Elm_Gengrid_Item_Content_Get_Cb icon_get EINA_DEPRECATED;
8195                Elm_Gengrid_Item_Content_Get_Cb content_get;
8196              };
8197              Elm_Gengrid_Item_State_Get_Cb state_get;
8198              Elm_Gengrid_Item_Del_Cb       del;
8199           } func;
8200      }; /**< #Elm_Gengrid_Item_Class member definitions */
8201    /**
8202     * Add a new gengrid widget to the given parent Elementary
8203     * (container) object
8204     *
8205     * @param parent The parent object
8206     * @return a new gengrid widget handle or @c NULL, on errors
8207     *
8208     * This function inserts a new gengrid widget on the canvas.
8209     *
8210     * @see elm_gengrid_item_size_set()
8211     * @see elm_gengrid_group_item_size_set()
8212     * @see elm_gengrid_horizontal_set()
8213     * @see elm_gengrid_item_append()
8214     * @see elm_gengrid_item_del()
8215     * @see elm_gengrid_clear()
8216     *
8217     * @ingroup Gengrid
8218     */
8219    EAPI Evas_Object       *elm_gengrid_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
8220
8221    /**
8222     * Set the size for the items of a given gengrid widget
8223     *
8224     * @param obj The gengrid object.
8225     * @param w The items' width.
8226     * @param h The items' height;
8227     *
8228     * A gengrid, after creation, has still no information on the size
8229     * to give to each of its cells. So, you most probably will end up
8230     * with squares one @ref Fingers "finger" wide, the default
8231     * size. Use this function to force a custom size for you items,
8232     * making them as big as you wish.
8233     *
8234     * @see elm_gengrid_item_size_get()
8235     *
8236     * @ingroup Gengrid
8237     */
8238    EAPI void               elm_gengrid_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
8239
8240    /**
8241     * Get the size set for the items of a given gengrid widget
8242     *
8243     * @param obj The gengrid object.
8244     * @param w Pointer to a variable where to store the items' width.
8245     * @param h Pointer to a variable where to store the items' height.
8246     *
8247     * @note Use @c NULL pointers on the size values you're not
8248     * interested in: they'll be ignored by the function.
8249     *
8250     * @see elm_gengrid_item_size_get() for more details
8251     *
8252     * @ingroup Gengrid
8253     */
8254    EAPI void               elm_gengrid_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
8255
8256    /**
8257     * Set the items grid's alignment within a given gengrid widget
8258     *
8259     * @param obj The gengrid object.
8260     * @param align_x Alignment in the horizontal axis (0 <= align_x <= 1).
8261     * @param align_y Alignment in the vertical axis (0 <= align_y <= 1).
8262     *
8263     * This sets the alignment of the whole grid of items of a gengrid
8264     * within its given viewport. By default, those values are both
8265     * 0.5, meaning that the gengrid will have its items grid placed
8266     * exactly in the middle of its viewport.
8267     *
8268     * @note If given alignment values are out of the cited ranges,
8269     * they'll be changed to the nearest boundary values on the valid
8270     * ranges.
8271     *
8272     * @see elm_gengrid_align_get()
8273     *
8274     * @ingroup Gengrid
8275     */
8276    EAPI void               elm_gengrid_align_set(Evas_Object *obj, double align_x, double align_y) EINA_ARG_NONNULL(1);
8277
8278    /**
8279     * Get the items grid's alignment values within a given gengrid
8280     * widget
8281     *
8282     * @param obj The gengrid object.
8283     * @param align_x Pointer to a variable where to store the
8284     * horizontal alignment.
8285     * @param align_y Pointer to a variable where to store the vertical
8286     * alignment.
8287     *
8288     * @note Use @c NULL pointers on the alignment values you're not
8289     * interested in: they'll be ignored by the function.
8290     *
8291     * @see elm_gengrid_align_set() for more details
8292     *
8293     * @ingroup Gengrid
8294     */
8295    EAPI void               elm_gengrid_align_get(const Evas_Object *obj, double *align_x, double *align_y) EINA_ARG_NONNULL(1);
8296
8297    /**
8298     * Set whether a given gengrid widget is or not able have items
8299     * @b reordered
8300     *
8301     * @param obj The gengrid object
8302     * @param reorder_mode Use @c EINA_TRUE to turn reoderding on,
8303     * @c EINA_FALSE to turn it off
8304     *
8305     * If a gengrid is set to allow reordering, a click held for more
8306     * than 0.5 over a given item will highlight it specially,
8307     * signalling the gengrid has entered the reordering state. From
8308     * that time on, the user will be able to, while still holding the
8309     * mouse button down, move the item freely in the gengrid's
8310     * viewport, replacing to said item to the locations it goes to.
8311     * The replacements will be animated and, whenever the user
8312     * releases the mouse button, the item being replaced gets a new
8313     * definitive place in the grid.
8314     *
8315     * @see elm_gengrid_reorder_mode_get()
8316     *
8317     * @ingroup Gengrid
8318     */
8319    EAPI void               elm_gengrid_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
8320
8321    /**
8322     * Get whether a given gengrid widget is or not able have items
8323     * @b reordered
8324     *
8325     * @param obj The gengrid object
8326     * @return @c EINA_TRUE, if reoderding is on, @c EINA_FALSE if it's
8327     * off
8328     *
8329     * @see elm_gengrid_reorder_mode_set() for more details
8330     *
8331     * @ingroup Gengrid
8332     */
8333    EAPI Eina_Bool          elm_gengrid_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8334
8335    /**
8336     * Append a new item in a given gengrid widget.
8337     *
8338     * @param obj The gengrid object.
8339     * @param gic The item class for the item.
8340     * @param data The item data.
8341     * @param func Convenience function called when the item is
8342     * selected.
8343     * @param func_data Data to be passed to @p func.
8344     * @return A handle to the item added or @c NULL, on errors.
8345     *
8346     * This adds an item to the beginning of the gengrid.
8347     *
8348     * @see elm_gengrid_item_prepend()
8349     * @see elm_gengrid_item_insert_before()
8350     * @see elm_gengrid_item_insert_after()
8351     * @see elm_gengrid_item_del()
8352     *
8353     * @ingroup Gengrid
8354     */
8355    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);
8356
8357    /**
8358     * Prepend a new item in a given gengrid widget.
8359     *
8360     * @param obj The gengrid object.
8361     * @param gic The item class for the item.
8362     * @param data The item data.
8363     * @param func Convenience function called when the item is
8364     * selected.
8365     * @param func_data Data to be passed to @p func.
8366     * @return A handle to the item added or @c NULL, on errors.
8367     *
8368     * This adds an item to the end of the gengrid.
8369     *
8370     * @see elm_gengrid_item_append()
8371     * @see elm_gengrid_item_insert_before()
8372     * @see elm_gengrid_item_insert_after()
8373     * @see elm_gengrid_item_del()
8374     *
8375     * @ingroup Gengrid
8376     */
8377    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);
8378
8379    /**
8380     * Insert an item before another in a gengrid widget
8381     *
8382     * @param obj The gengrid object.
8383     * @param gic The item class for the item.
8384     * @param data The item data.
8385     * @param relative The item to place this new one before.
8386     * @param func Convenience function called when the item is
8387     * selected.
8388     * @param func_data Data to be passed to @p func.
8389     * @return A handle to the item added or @c NULL, on errors.
8390     *
8391     * This inserts an item before another in the gengrid.
8392     *
8393     * @see elm_gengrid_item_append()
8394     * @see elm_gengrid_item_prepend()
8395     * @see elm_gengrid_item_insert_after()
8396     * @see elm_gengrid_item_del()
8397     *
8398     * @ingroup Gengrid
8399     */
8400    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);
8401
8402    /**
8403     * Insert an item after another in a gengrid widget
8404     *
8405     * @param obj The gengrid object.
8406     * @param gic The item class for the item.
8407     * @param data The item data.
8408     * @param relative The item to place this new one after.
8409     * @param func Convenience function called when the item is
8410     * selected.
8411     * @param func_data Data to be passed to @p func.
8412     * @return A handle to the item added or @c NULL, on errors.
8413     *
8414     * This inserts an item after another in the gengrid.
8415     *
8416     * @see elm_gengrid_item_append()
8417     * @see elm_gengrid_item_prepend()
8418     * @see elm_gengrid_item_insert_after()
8419     * @see elm_gengrid_item_del()
8420     *
8421     * @ingroup Gengrid
8422     */
8423    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);
8424
8425    /**
8426     * Insert an item in a gengrid widget using a user-defined sort function.
8427     *
8428     * @param obj The gengrid object.
8429     * @param gic The item class for the item.
8430     * @param data The item data.
8431     * @param comp User defined comparison function that defines the sort order based on
8432     * Elm_Gen_Item and its data param.
8433     * @param func Convenience function called when the item is selected.
8434     * @param func_data Data to be passed to @p func.
8435     * @return A handle to the item added or @c NULL, on errors.
8436     *
8437     * This inserts an item in the gengrid based on user defined comparison function.
8438     *
8439     * @see elm_gengrid_item_append()
8440     * @see elm_gengrid_item_prepend()
8441     * @see elm_gengrid_item_insert_after()
8442     * @see elm_gengrid_item_del()
8443     * @see elm_gengrid_item_direct_sorted_insert()
8444     *
8445     * @ingroup Gengrid
8446     */
8447    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);
8448
8449    /**
8450     * Insert an item in a gengrid widget using a user-defined sort function.
8451     *
8452     * @param obj The gengrid object.
8453     * @param gic The item class for the item.
8454     * @param data The item data.
8455     * @param comp User defined comparison function that defines the sort order based on
8456     * Elm_Gen_Item.
8457     * @param func Convenience function called when the item is selected.
8458     * @param func_data Data to be passed to @p func.
8459     * @return A handle to the item added or @c NULL, on errors.
8460     *
8461     * This inserts an item in the gengrid based on user defined comparison function.
8462     *
8463     * @see elm_gengrid_item_append()
8464     * @see elm_gengrid_item_prepend()
8465     * @see elm_gengrid_item_insert_after()
8466     * @see elm_gengrid_item_del()
8467     * @see elm_gengrid_item_sorted_insert()
8468     *
8469     * @ingroup Gengrid
8470     */
8471    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);
8472
8473    /**
8474     * Set whether items on a given gengrid widget are to get their
8475     * selection callbacks issued for @b every subsequent selection
8476     * click on them or just for the first click.
8477     *
8478     * @param obj The gengrid object
8479     * @param always_select @c EINA_TRUE to make items "always
8480     * selected", @c EINA_FALSE, otherwise
8481     *
8482     * By default, grid items will only call their selection callback
8483     * function when firstly getting selected, any subsequent further
8484     * clicks will do nothing. With this call, you make those
8485     * subsequent clicks also to issue the selection callbacks.
8486     *
8487     * @note <b>Double clicks</b> will @b always be reported on items.
8488     *
8489     * @see elm_gengrid_always_select_mode_get()
8490     *
8491     * @ingroup Gengrid
8492     */
8493    EAPI void               elm_gengrid_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
8494
8495    /**
8496     * Get whether items on a given gengrid widget have their selection
8497     * callbacks issued for @b every subsequent selection click on them
8498     * or just for the first click.
8499     *
8500     * @param obj The gengrid object.
8501     * @return @c EINA_TRUE if the gengrid items are "always selected",
8502     * @c EINA_FALSE, otherwise
8503     *
8504     * @see elm_gengrid_always_select_mode_set() for more details
8505     *
8506     * @ingroup Gengrid
8507     */
8508    EAPI Eina_Bool          elm_gengrid_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8509
8510    /**
8511     * Set whether items on a given gengrid widget can be selected or not.
8512     *
8513     * @param obj The gengrid object
8514     * @param no_select @c EINA_TRUE to make items selectable,
8515     * @c EINA_FALSE otherwise
8516     *
8517     * This will make items in @p obj selectable or not. In the latter
8518     * case, any user interaction on the gengrid items will neither make
8519     * them appear selected nor them call their selection callback
8520     * functions.
8521     *
8522     * @see elm_gengrid_no_select_mode_get()
8523     *
8524     * @ingroup Gengrid
8525     */
8526    EAPI void               elm_gengrid_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
8527
8528    /**
8529     * Get whether items on a given gengrid widget can be selected or
8530     * not.
8531     *
8532     * @param obj The gengrid object
8533     * @return @c EINA_TRUE, if items are selectable, @c EINA_FALSE
8534     * otherwise
8535     *
8536     * @see elm_gengrid_no_select_mode_set() for more details
8537     *
8538     * @ingroup Gengrid
8539     */
8540    EAPI Eina_Bool          elm_gengrid_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8541
8542    /**
8543     * Enable or disable multi-selection in a given gengrid widget
8544     *
8545     * @param obj The gengrid object.
8546     * @param multi @c EINA_TRUE, to enable multi-selection,
8547     * @c EINA_FALSE to disable it.
8548     *
8549     * Multi-selection is the ability to have @b more than one
8550     * item selected, on a given gengrid, simultaneously. When it is
8551     * enabled, a sequence of clicks on different items will make them
8552     * all selected, progressively. A click on an already selected item
8553     * will unselect it. If interacting via the keyboard,
8554     * multi-selection is enabled while holding the "Shift" key.
8555     *
8556     * @note By default, multi-selection is @b disabled on gengrids
8557     *
8558     * @see elm_gengrid_multi_select_get()
8559     *
8560     * @ingroup Gengrid
8561     */
8562    EAPI void               elm_gengrid_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
8563
8564    /**
8565     * Get whether multi-selection is enabled or disabled for a given
8566     * gengrid widget
8567     *
8568     * @param obj The gengrid object.
8569     * @return @c EINA_TRUE, if multi-selection is enabled, @c
8570     * EINA_FALSE otherwise
8571     *
8572     * @see elm_gengrid_multi_select_set() for more details
8573     *
8574     * @ingroup Gengrid
8575     */
8576    EAPI Eina_Bool          elm_gengrid_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8577
8578    /**
8579     * Enable or disable bouncing effect for a given gengrid widget
8580     *
8581     * @param obj The gengrid object
8582     * @param h_bounce @c EINA_TRUE, to enable @b horizontal bouncing,
8583     * @c EINA_FALSE to disable it
8584     * @param v_bounce @c EINA_TRUE, to enable @b vertical bouncing,
8585     * @c EINA_FALSE to disable it
8586     *
8587     * The bouncing effect occurs whenever one reaches the gengrid's
8588     * edge's while panning it -- it will scroll past its limits a
8589     * little bit and return to the edge again, in a animated for,
8590     * automatically.
8591     *
8592     * @note By default, gengrids have bouncing enabled on both axis
8593     *
8594     * @see elm_gengrid_bounce_get()
8595     *
8596     * @ingroup Gengrid
8597     */
8598    EAPI void               elm_gengrid_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
8599
8600    /**
8601     * Get whether bouncing effects are enabled or disabled, for a
8602     * given gengrid widget, on each axis
8603     *
8604     * @param obj The gengrid object
8605     * @param h_bounce Pointer to a variable where to store the
8606     * horizontal bouncing flag.
8607     * @param v_bounce Pointer to a variable where to store the
8608     * vertical bouncing flag.
8609     *
8610     * @see elm_gengrid_bounce_set() for more details
8611     *
8612     * @ingroup Gengrid
8613     */
8614    EAPI void               elm_gengrid_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
8615
8616    /**
8617     * Set a given gengrid widget's scrolling page size, relative to
8618     * its viewport size.
8619     *
8620     * @param obj The gengrid object
8621     * @param h_pagerel The horizontal page (relative) size
8622     * @param v_pagerel The vertical page (relative) size
8623     *
8624     * The gengrid's scroller is capable of binding scrolling by the
8625     * user to "pages". It means that, while scrolling and, specially
8626     * after releasing the mouse button, the grid will @b snap to the
8627     * nearest displaying page's area. When page sizes are set, the
8628     * grid's continuous content area is split into (equal) page sized
8629     * pieces.
8630     *
8631     * This function sets the size of a page <b>relatively to the
8632     * viewport dimensions</b> of the gengrid, for each axis. A value
8633     * @c 1.0 means "the exact viewport's size", in that axis, while @c
8634     * 0.0 turns paging off in that axis. Likewise, @c 0.5 means "half
8635     * a viewport". Sane usable values are, than, between @c 0.0 and @c
8636     * 1.0. Values beyond those will make it behave behave
8637     * inconsistently. If you only want one axis to snap to pages, use
8638     * the value @c 0.0 for the other one.
8639     *
8640     * There is a function setting page size values in @b absolute
8641     * values, too -- elm_gengrid_page_size_set(). Naturally, its use
8642     * is mutually exclusive to this one.
8643     *
8644     * @see elm_gengrid_page_relative_get()
8645     *
8646     * @ingroup Gengrid
8647     */
8648    EAPI void               elm_gengrid_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
8649
8650    /**
8651     * Get a given gengrid widget's scrolling page size, relative to
8652     * its viewport size.
8653     *
8654     * @param obj The gengrid object
8655     * @param h_pagerel Pointer to a variable where to store the
8656     * horizontal page (relative) size
8657     * @param v_pagerel Pointer to a variable where to store the
8658     * vertical page (relative) size
8659     *
8660     * @see elm_gengrid_page_relative_set() for more details
8661     *
8662     * @ingroup Gengrid
8663     */
8664    EAPI void               elm_gengrid_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel) EINA_ARG_NONNULL(1);
8665
8666    /**
8667     * Set a given gengrid widget's scrolling page size
8668     *
8669     * @param obj The gengrid object
8670     * @param h_pagerel The horizontal page size, in pixels
8671     * @param v_pagerel The vertical page size, in pixels
8672     *
8673     * The gengrid's scroller is capable of binding scrolling by the
8674     * user to "pages". It means that, while scrolling and, specially
8675     * after releasing the mouse button, the grid will @b snap to the
8676     * nearest displaying page's area. When page sizes are set, the
8677     * grid's continuous content area is split into (equal) page sized
8678     * pieces.
8679     *
8680     * This function sets the size of a page of the gengrid, in pixels,
8681     * for each axis. Sane usable values are, between @c 0 and the
8682     * dimensions of @p obj, for each axis. Values beyond those will
8683     * make it behave behave inconsistently. If you only want one axis
8684     * to snap to pages, use the value @c 0 for the other one.
8685     *
8686     * There is a function setting page size values in @b relative
8687     * values, too -- elm_gengrid_page_relative_set(). Naturally, its
8688     * use is mutually exclusive to this one.
8689     *
8690     * @ingroup Gengrid
8691     */
8692    EAPI void               elm_gengrid_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
8693
8694    /**
8695     * Set the direction in which a given gengrid widget will expand while
8696     * placing its items.
8697     *
8698     * @param obj The gengrid object.
8699     * @param setting @c EINA_TRUE to make the gengrid expand
8700     * horizontally, @c EINA_FALSE to expand vertically.
8701     *
8702     * When in "horizontal mode" (@c EINA_TRUE), items will be placed
8703     * in @b columns, from top to bottom and, when the space for a
8704     * column is filled, another one is started on the right, thus
8705     * expanding the grid horizontally. When in "vertical mode"
8706     * (@c EINA_FALSE), though, items will be placed in @b rows, from left
8707     * to right and, when the space for a row is filled, another one is
8708     * started below, thus expanding the grid vertically.
8709     *
8710     * @see elm_gengrid_horizontal_get()
8711     *
8712     * @ingroup Gengrid
8713     */
8714    EAPI void               elm_gengrid_horizontal_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
8715
8716    /**
8717     * Get for what direction a given gengrid widget will expand while
8718     * placing its items.
8719     *
8720     * @param obj The gengrid object.
8721     * @return @c EINA_TRUE, if @p obj is set to expand horizontally,
8722     * @c EINA_FALSE if it's set to expand vertically.
8723     *
8724     * @see elm_gengrid_horizontal_set() for more detais
8725     *
8726     * @ingroup Gengrid
8727     */
8728    EAPI Eina_Bool          elm_gengrid_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8729
8730    /**
8731     * Get the first item in a given gengrid widget
8732     *
8733     * @param obj The gengrid object
8734     * @return The first item's handle or @c NULL, if there are no
8735     * items in @p obj (and on errors)
8736     *
8737     * This returns the first item in the @p obj's internal list of
8738     * items.
8739     *
8740     * @see elm_gengrid_last_item_get()
8741     *
8742     * @ingroup Gengrid
8743     */
8744    EAPI Elm_Gengrid_Item  *elm_gengrid_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8745
8746    /**
8747     * Get the last item in a given gengrid widget
8748     *
8749     * @param obj The gengrid object
8750     * @return The last item's handle or @c NULL, if there are no
8751     * items in @p obj (and on errors)
8752     *
8753     * This returns the last item in the @p obj's internal list of
8754     * items.
8755     *
8756     * @see elm_gengrid_first_item_get()
8757     *
8758     * @ingroup Gengrid
8759     */
8760    EAPI Elm_Gengrid_Item  *elm_gengrid_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8761
8762    /**
8763     * Get the @b next item in a gengrid widget's internal list of items,
8764     * given a handle to one of those items.
8765     *
8766     * @param item The gengrid item to fetch next from
8767     * @return The item after @p item, or @c NULL if there's none (and
8768     * on errors)
8769     *
8770     * This returns the item placed after the @p item, on the container
8771     * gengrid.
8772     *
8773     * @see elm_gengrid_item_prev_get()
8774     *
8775     * @ingroup Gengrid
8776     */
8777    EAPI Elm_Gengrid_Item  *elm_gengrid_item_next_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8778
8779    /**
8780     * Get the @b previous item in a gengrid widget's internal list of items,
8781     * given a handle to one of those items.
8782     *
8783     * @param item The gengrid item to fetch previous from
8784     * @return The item before @p item, or @c NULL if there's none (and
8785     * on errors)
8786     *
8787     * This returns the item placed before the @p item, on the container
8788     * gengrid.
8789     *
8790     * @see elm_gengrid_item_next_get()
8791     *
8792     * @ingroup Gengrid
8793     */
8794    EAPI Elm_Gengrid_Item  *elm_gengrid_item_prev_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8795
8796    /**
8797     * Get the gengrid object's handle which contains a given gengrid
8798     * item
8799     *
8800     * @param item The item to fetch the container from
8801     * @return The gengrid (parent) object
8802     *
8803     * This returns the gengrid object itself that an item belongs to.
8804     *
8805     * @ingroup Gengrid
8806     */
8807    EAPI Evas_Object       *elm_gengrid_item_gengrid_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8808
8809    /**
8810     * Remove a gengrid item from its parent, deleting it.
8811     *
8812     * @param item The item to be removed.
8813     * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
8814     *
8815     * @see elm_gengrid_clear(), to remove all items in a gengrid at
8816     * once.
8817     *
8818     * @ingroup Gengrid
8819     */
8820    EAPI void               elm_gengrid_item_del(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8821
8822    /**
8823     * Update the contents of a given gengrid item
8824     *
8825     * @param item The gengrid item
8826     *
8827     * This updates an item by calling all the item class functions
8828     * again to get the contents, labels and states. Use this when the
8829     * original item data has changed and you want the changes to be
8830     * reflected.
8831     *
8832     * @ingroup Gengrid
8833     */
8834    EAPI void               elm_gengrid_item_update(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8835
8836    /**
8837     * Get the Gengrid Item class for the given Gengrid Item.
8838     *
8839     * @param item The gengrid item
8840     *
8841     * This returns the Gengrid_Item_Class for the given item. It can be used to examine
8842     * the function pointers and item_style.
8843     *
8844     * @ingroup Gengrid
8845     */
8846    EAPI const Elm_Gengrid_Item_Class *elm_gengrid_item_item_class_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8847
8848    /**
8849     * Get the Gengrid Item class for the given Gengrid Item.
8850     *
8851     * This sets the Gengrid_Item_Class for the given item. It can be used to examine
8852     * the function pointers and item_style.
8853     *
8854     * @param item The gengrid item
8855     * @param gic The gengrid item class describing the function pointers and the item style.
8856     *
8857     * @ingroup Gengrid
8858     */
8859    EAPI void               elm_gengrid_item_item_class_set(Elm_Gengrid_Item *item, const Elm_Gengrid_Item_Class *gic) EINA_ARG_NONNULL(1, 2);
8860
8861    /**
8862     * Return the data associated to a given gengrid item
8863     *
8864     * @param item The gengrid item.
8865     * @return the data associated with this item.
8866     *
8867     * This returns the @c data value passed on the
8868     * elm_gengrid_item_append() and related item addition calls.
8869     *
8870     * @see elm_gengrid_item_append()
8871     * @see elm_gengrid_item_data_set()
8872     *
8873     * @ingroup Gengrid
8874     */
8875    EAPI void              *elm_gengrid_item_data_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8876
8877    /**
8878     * Set the data associated with a given gengrid item
8879     *
8880     * @param item The gengrid item
8881     * @param data The data pointer to set on it
8882     *
8883     * This @b overrides the @c data value passed on the
8884     * elm_gengrid_item_append() and related item addition calls. This
8885     * function @b won't call elm_gengrid_item_update() automatically,
8886     * so you'd issue it afterwards if you want to have the item
8887     * updated to reflect the new data.
8888     *
8889     * @see elm_gengrid_item_data_get()
8890     * @see elm_gengrid_item_update()
8891     *
8892     * @ingroup Gengrid
8893     */
8894    EAPI void               elm_gengrid_item_data_set(Elm_Gengrid_Item *item, const void *data) EINA_ARG_NONNULL(1);
8895
8896    /**
8897     * Get a given gengrid item's position, relative to the whole
8898     * gengrid's grid area.
8899     *
8900     * @param item The Gengrid item.
8901     * @param x Pointer to variable to store the item's <b>row number</b>.
8902     * @param y Pointer to variable to store the item's <b>column number</b>.
8903     *
8904     * This returns the "logical" position of the item within the
8905     * gengrid. For example, @c (0, 1) would stand for first row,
8906     * second column.
8907     *
8908     * @ingroup Gengrid
8909     */
8910    EAPI void               elm_gengrid_item_pos_get(const Elm_Gengrid_Item *item, unsigned int *x, unsigned int *y) EINA_ARG_NONNULL(1);
8911
8912    /**
8913     * Set whether a given gengrid item is selected or not
8914     *
8915     * @param item The gengrid item
8916     * @param selected Use @c EINA_TRUE, to make it selected, @c
8917     * EINA_FALSE to make it unselected
8918     *
8919     * This sets the selected state of an item. If multi-selection is
8920     * not enabled on the containing gengrid and @p selected is @c
8921     * EINA_TRUE, any other previously selected items will get
8922     * unselected in favor of this new one.
8923     *
8924     * @see elm_gengrid_item_selected_get()
8925     *
8926     * @ingroup Gengrid
8927     */
8928    EAPI void               elm_gengrid_item_selected_set(Elm_Gengrid_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
8929
8930    /**
8931     * Get whether a given gengrid item is selected or not
8932     *
8933     * @param item The gengrid item
8934     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
8935     *
8936     * This API returns EINA_TRUE for all the items selected in multi-select mode as well.
8937     *
8938     * @see elm_gengrid_item_selected_set() for more details
8939     *
8940     * @ingroup Gengrid
8941     */
8942    EAPI Eina_Bool          elm_gengrid_item_selected_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8943
8944    /**
8945     * Get the real Evas object created to implement the view of a
8946     * given gengrid item
8947     *
8948     * @param item The gengrid item.
8949     * @return the Evas object implementing this item's view.
8950     *
8951     * This returns the actual Evas object used to implement the
8952     * specified gengrid item's view. This may be @c NULL, as it may
8953     * not have been created or may have been deleted, at any time, by
8954     * the gengrid. <b>Do not modify this object</b> (move, resize,
8955     * show, hide, etc.), as the gengrid is controlling it. This
8956     * function is for querying, emitting custom signals or hooking
8957     * lower level callbacks for events on that object. Do not delete
8958     * this object under any circumstances.
8959     *
8960     * @see elm_gengrid_item_data_get()
8961     *
8962     * @ingroup Gengrid
8963     */
8964    EAPI const Evas_Object *elm_gengrid_item_object_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8965
8966    /**
8967     * Show the portion of a gengrid's internal grid containing a given
8968     * item, @b immediately.
8969     *
8970     * @param item The item to display
8971     *
8972     * This causes gengrid to @b redraw its viewport's contents to the
8973     * region contining the given @p item item, if it is not fully
8974     * visible.
8975     *
8976     * @see elm_gengrid_item_bring_in()
8977     *
8978     * @ingroup Gengrid
8979     */
8980    EAPI void               elm_gengrid_item_show(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8981
8982    /**
8983     * Animatedly bring in, to the visible area of a gengrid, a given
8984     * item on it.
8985     *
8986     * @param item The gengrid item to display
8987     *
8988     * This causes gengrid to jump to the given @p item and show
8989     * it (by scrolling), if it is not fully visible. This will use
8990     * animation to do so and take a period of time to complete.
8991     *
8992     * @see elm_gengrid_item_show()
8993     *
8994     * @ingroup Gengrid
8995     */
8996    EAPI void               elm_gengrid_item_bring_in(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8997
8998    /**
8999     * Set whether a given gengrid item is disabled or not.
9000     *
9001     * @param item The gengrid item
9002     * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
9003     * to enable it back.
9004     *
9005     * A disabled item cannot be selected or unselected. It will also
9006     * change its appearance, to signal the user it's disabled.
9007     *
9008     * @see elm_gengrid_item_disabled_get()
9009     *
9010     * @ingroup Gengrid
9011     */
9012    EAPI void               elm_gengrid_item_disabled_set(Elm_Gengrid_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
9013
9014    /**
9015     * Get whether a given gengrid item is disabled or not.
9016     *
9017     * @param item The gengrid item
9018     * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
9019     * (and on errors).
9020     *
9021     * @see elm_gengrid_item_disabled_set() for more details
9022     *
9023     * @ingroup Gengrid
9024     */
9025    EAPI Eina_Bool          elm_gengrid_item_disabled_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9026
9027    /**
9028     * Set the text to be shown in a given gengrid item's tooltips.
9029     *
9030     * @param item The gengrid item
9031     * @param text The text to set in the content
9032     *
9033     * This call will setup the text to be used as tooltip to that item
9034     * (analogous to elm_object_tooltip_text_set(), but being item
9035     * tooltips with higher precedence than object tooltips). It can
9036     * have only one tooltip at a time, so any previous tooltip data
9037     * will get removed.
9038     *
9039     * @ingroup Gengrid
9040     */
9041    EAPI void               elm_gengrid_item_tooltip_text_set(Elm_Gengrid_Item *item, const char *text) EINA_ARG_NONNULL(1);
9042
9043    /**
9044     * Set the content to be shown in a given gengrid item's tooltip
9045     *
9046     * @param item The gengrid item.
9047     * @param func The function returning the tooltip contents.
9048     * @param data What to provide to @a func as callback data/context.
9049     * @param del_cb Called when data is not needed anymore, either when
9050     *        another callback replaces @p func, the tooltip is unset with
9051     *        elm_gengrid_item_tooltip_unset() or the owner @p item
9052     *        dies. This callback receives as its first parameter the
9053     *        given @p data, being @c event_info the item handle.
9054     *
9055     * This call will setup the tooltip's contents to @p item
9056     * (analogous to elm_object_tooltip_content_cb_set(), but being
9057     * item tooltips with higher precedence than object tooltips). It
9058     * can have only one tooltip at a time, so any previous tooltip
9059     * content will get removed. @p func (with @p data) will be called
9060     * every time Elementary needs to show the tooltip and it should
9061     * return a valid Evas object, which will be fully managed by the
9062     * tooltip system, getting deleted when the tooltip is gone.
9063     *
9064     * @ingroup Gengrid
9065     */
9066    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);
9067
9068    /**
9069     * Unset a tooltip from a given gengrid item
9070     *
9071     * @param item gengrid item to remove a previously set tooltip from.
9072     *
9073     * This call removes any tooltip set on @p item. The callback
9074     * provided as @c del_cb to
9075     * elm_gengrid_item_tooltip_content_cb_set() will be called to
9076     * notify it is not used anymore (and have resources cleaned, if
9077     * need be).
9078     *
9079     * @see elm_gengrid_item_tooltip_content_cb_set()
9080     *
9081     * @ingroup Gengrid
9082     */
9083    EAPI void               elm_gengrid_item_tooltip_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9084
9085    /**
9086     * Set a different @b style for a given gengrid item's tooltip.
9087     *
9088     * @param item gengrid item with tooltip set
9089     * @param style the <b>theme style</b> to use on tooltips (e.g. @c
9090     * "default", @c "transparent", etc)
9091     *
9092     * Tooltips can have <b>alternate styles</b> to be displayed on,
9093     * which are defined by the theme set on Elementary. This function
9094     * works analogously as elm_object_tooltip_style_set(), but here
9095     * applied only to gengrid item objects. The default style for
9096     * tooltips is @c "default".
9097     *
9098     * @note before you set a style you should define a tooltip with
9099     *       elm_gengrid_item_tooltip_content_cb_set() or
9100     *       elm_gengrid_item_tooltip_text_set()
9101     *
9102     * @see elm_gengrid_item_tooltip_style_get()
9103     *
9104     * @ingroup Gengrid
9105     */
9106    EAPI void               elm_gengrid_item_tooltip_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
9107
9108    /**
9109     * Get the style set a given gengrid item's tooltip.
9110     *
9111     * @param item gengrid item with tooltip already set on.
9112     * @return style the theme style in use, which defaults to
9113     *         "default". If the object does not have a tooltip set,
9114     *         then @c NULL is returned.
9115     *
9116     * @see elm_gengrid_item_tooltip_style_set() for more details
9117     *
9118     * @ingroup Gengrid
9119     */
9120    EAPI const char        *elm_gengrid_item_tooltip_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9121    /**
9122     * Set the type of mouse pointer/cursor decoration to be shown,
9123     * when the mouse pointer is over the given gengrid widget item
9124     *
9125     * @param item gengrid item to customize cursor on
9126     * @param cursor the cursor type's name
9127     *
9128     * This function works analogously as elm_object_cursor_set(), but
9129     * here the cursor's changing area is restricted to the item's
9130     * area, and not the whole widget's. Note that that item cursors
9131     * have precedence over widget cursors, so that a mouse over @p
9132     * item will always show cursor @p type.
9133     *
9134     * If this function is called twice for an object, a previously set
9135     * cursor will be unset on the second call.
9136     *
9137     * @see elm_object_cursor_set()
9138     * @see elm_gengrid_item_cursor_get()
9139     * @see elm_gengrid_item_cursor_unset()
9140     *
9141     * @ingroup Gengrid
9142     */
9143    EAPI void               elm_gengrid_item_cursor_set(Elm_Gengrid_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
9144
9145    /**
9146     * Get the type of mouse pointer/cursor decoration set to be shown,
9147     * when the mouse pointer is over the given gengrid widget item
9148     *
9149     * @param item gengrid item with custom cursor set
9150     * @return the cursor type's name or @c NULL, if no custom cursors
9151     * were set to @p item (and on errors)
9152     *
9153     * @see elm_object_cursor_get()
9154     * @see elm_gengrid_item_cursor_set() for more details
9155     * @see elm_gengrid_item_cursor_unset()
9156     *
9157     * @ingroup Gengrid
9158     */
9159    EAPI const char        *elm_gengrid_item_cursor_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9160
9161    /**
9162     * Unset any custom mouse pointer/cursor decoration set to be
9163     * shown, when the mouse pointer is over the given gengrid widget
9164     * item, thus making it show the @b default cursor again.
9165     *
9166     * @param item a gengrid item
9167     *
9168     * Use this call to undo any custom settings on this item's cursor
9169     * decoration, bringing it back to defaults (no custom style set).
9170     *
9171     * @see elm_object_cursor_unset()
9172     * @see elm_gengrid_item_cursor_set() for more details
9173     *
9174     * @ingroup Gengrid
9175     */
9176    EAPI void               elm_gengrid_item_cursor_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9177
9178    /**
9179     * Set a different @b style for a given custom cursor set for a
9180     * gengrid item.
9181     *
9182     * @param item gengrid item with custom cursor set
9183     * @param style the <b>theme style</b> to use (e.g. @c "default",
9184     * @c "transparent", etc)
9185     *
9186     * This function only makes sense when one is using custom mouse
9187     * cursor decorations <b>defined in a theme file</b> , which can
9188     * have, given a cursor name/type, <b>alternate styles</b> on
9189     * it. It works analogously as elm_object_cursor_style_set(), but
9190     * here applied only to gengrid item objects.
9191     *
9192     * @warning Before you set a cursor style you should have defined a
9193     *       custom cursor previously on the item, with
9194     *       elm_gengrid_item_cursor_set()
9195     *
9196     * @see elm_gengrid_item_cursor_engine_only_set()
9197     * @see elm_gengrid_item_cursor_style_get()
9198     *
9199     * @ingroup Gengrid
9200     */
9201    EAPI void               elm_gengrid_item_cursor_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
9202
9203    /**
9204     * Get the current @b style set for a given gengrid item's custom
9205     * cursor
9206     *
9207     * @param item gengrid item with custom cursor set.
9208     * @return style the cursor style in use. If the object does not
9209     *         have a cursor set, then @c NULL is returned.
9210     *
9211     * @see elm_gengrid_item_cursor_style_set() for more details
9212     *
9213     * @ingroup Gengrid
9214     */
9215    EAPI const char        *elm_gengrid_item_cursor_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9216
9217    /**
9218     * Set if the (custom) cursor for a given gengrid item should be
9219     * searched in its theme, also, or should only rely on the
9220     * rendering engine.
9221     *
9222     * @param item item with custom (custom) cursor already set on
9223     * @param engine_only Use @c EINA_TRUE to have cursors looked for
9224     * only on those provided by the rendering engine, @c EINA_FALSE to
9225     * have them searched on the widget's theme, as well.
9226     *
9227     * @note This call is of use only if you've set a custom cursor
9228     * for gengrid items, with elm_gengrid_item_cursor_set().
9229     *
9230     * @note By default, cursors will only be looked for between those
9231     * provided by the rendering engine.
9232     *
9233     * @ingroup Gengrid
9234     */
9235    EAPI void               elm_gengrid_item_cursor_engine_only_set(Elm_Gengrid_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
9236
9237    /**
9238     * Get if the (custom) cursor for a given gengrid item is being
9239     * searched in its theme, also, or is only relying on the rendering
9240     * engine.
9241     *
9242     * @param item a gengrid item
9243     * @return @c EINA_TRUE, if cursors are being looked for only on
9244     * those provided by the rendering engine, @c EINA_FALSE if they
9245     * are being searched on the widget's theme, as well.
9246     *
9247     * @see elm_gengrid_item_cursor_engine_only_set(), for more details
9248     *
9249     * @ingroup Gengrid
9250     */
9251    EAPI Eina_Bool          elm_gengrid_item_cursor_engine_only_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9252
9253    /**
9254     * Remove all items from a given gengrid widget
9255     *
9256     * @param obj The gengrid object.
9257     *
9258     * This removes (and deletes) all items in @p obj, leaving it
9259     * empty.
9260     *
9261     * @see elm_gengrid_item_del(), to remove just one item.
9262     *
9263     * @ingroup Gengrid
9264     */
9265    EAPI void               elm_gengrid_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
9266
9267    /**
9268     * Get the selected item in a given gengrid widget
9269     *
9270     * @param obj The gengrid object.
9271     * @return The selected item's handleor @c NULL, if none is
9272     * selected at the moment (and on errors)
9273     *
9274     * This returns the selected item in @p obj. If multi selection is
9275     * enabled on @p obj (@see elm_gengrid_multi_select_set()), only
9276     * the first item in the list is selected, which might not be very
9277     * useful. For that case, see elm_gengrid_selected_items_get().
9278     *
9279     * @ingroup Gengrid
9280     */
9281    EAPI Elm_Gengrid_Item  *elm_gengrid_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9282
9283    /**
9284     * Get <b>a list</b> of selected items in a given gengrid
9285     *
9286     * @param obj The gengrid object.
9287     * @return The list of selected items or @c NULL, if none is
9288     * selected at the moment (and on errors)
9289     *
9290     * This returns a list of the selected items, in the order that
9291     * they appear in the grid. This list is only valid as long as no
9292     * more items are selected or unselected (or unselected implictly
9293     * by deletion). The list contains #Elm_Gengrid_Item pointers as
9294     * data, naturally.
9295     *
9296     * @see elm_gengrid_selected_item_get()
9297     *
9298     * @ingroup Gengrid
9299     */
9300    EAPI const Eina_List   *elm_gengrid_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9301
9302    /**
9303     * @}
9304     */
9305
9306    /**
9307     * @defgroup Clock Clock
9308     *
9309     * @image html img/widget/clock/preview-00.png
9310     * @image latex img/widget/clock/preview-00.eps
9311     *
9312     * This is a @b digital clock widget. In its default theme, it has a
9313     * vintage "flipping numbers clock" appearance, which will animate
9314     * sheets of individual algarisms individually as time goes by.
9315     *
9316     * A newly created clock will fetch system's time (already
9317     * considering local time adjustments) to start with, and will tick
9318     * accondingly. It may or may not show seconds.
9319     *
9320     * Clocks have an @b edition mode. When in it, the sheets will
9321     * display extra arrow indications on the top and bottom and the
9322     * user may click on them to raise or lower the time values. After
9323     * it's told to exit edition mode, it will keep ticking with that
9324     * new time set (it keeps the difference from local time).
9325     *
9326     * Also, when under edition mode, user clicks on the cited arrows
9327     * which are @b held for some time will make the clock to flip the
9328     * sheet, thus editing the time, continuosly and automatically for
9329     * the user. The interval between sheet flips will keep growing in
9330     * time, so that it helps the user to reach a time which is distant
9331     * from the one set.
9332     *
9333     * The time display is, by default, in military mode (24h), but an
9334     * am/pm indicator may be optionally shown, too, when it will
9335     * switch to 12h.
9336     *
9337     * Smart callbacks one can register to:
9338     * - "changed" - the clock's user changed the time
9339     *
9340     * Here is an example on its usage:
9341     * @li @ref clock_example
9342     */
9343
9344    /**
9345     * @addtogroup Clock
9346     * @{
9347     */
9348
9349    /**
9350     * Identifiers for which clock digits should be editable, when a
9351     * clock widget is in edition mode. Values may be ORed together to
9352     * make a mask, naturally.
9353     *
9354     * @see elm_clock_edit_set()
9355     * @see elm_clock_digit_edit_set()
9356     */
9357    typedef enum _Elm_Clock_Digedit
9358      {
9359         ELM_CLOCK_NONE         = 0, /**< Default value. Means that all digits are editable, when in edition mode. */
9360         ELM_CLOCK_HOUR_DECIMAL = 1 << 0, /**< Decimal algarism of hours value should be editable */
9361         ELM_CLOCK_HOUR_UNIT    = 1 << 1, /**< Unit algarism of hours value should be editable */
9362         ELM_CLOCK_MIN_DECIMAL  = 1 << 2, /**< Decimal algarism of minutes value should be editable */
9363         ELM_CLOCK_MIN_UNIT     = 1 << 3, /**< Unit algarism of minutes value should be editable */
9364         ELM_CLOCK_SEC_DECIMAL  = 1 << 4, /**< Decimal algarism of seconds value should be editable */
9365         ELM_CLOCK_SEC_UNIT     = 1 << 5, /**< Unit algarism of seconds value should be editable */
9366         ELM_CLOCK_ALL          = (1 << 6) - 1 /**< All digits should be editable */
9367      } Elm_Clock_Digedit;
9368
9369    /**
9370     * Add a new clock widget to the given parent Elementary
9371     * (container) object
9372     *
9373     * @param parent The parent object
9374     * @return a new clock widget handle or @c NULL, on errors
9375     *
9376     * This function inserts a new clock widget on the canvas.
9377     *
9378     * @ingroup Clock
9379     */
9380    EAPI Evas_Object      *elm_clock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9381
9382    /**
9383     * Set a clock widget's time, programmatically
9384     *
9385     * @param obj The clock widget object
9386     * @param hrs The hours to set
9387     * @param min The minutes to set
9388     * @param sec The secondes to set
9389     *
9390     * This function updates the time that is showed by the clock
9391     * widget.
9392     *
9393     *  Values @b must be set within the following ranges:
9394     * - 0 - 23, for hours
9395     * - 0 - 59, for minutes
9396     * - 0 - 59, for seconds,
9397     *
9398     * even if the clock is not in "military" mode.
9399     *
9400     * @warning The behavior for values set out of those ranges is @b
9401     * undefined.
9402     *
9403     * @ingroup Clock
9404     */
9405    EAPI void              elm_clock_time_set(Evas_Object *obj, int hrs, int min, int sec) EINA_ARG_NONNULL(1);
9406
9407    /**
9408     * Get a clock widget's time values
9409     *
9410     * @param obj The clock object
9411     * @param[out] hrs Pointer to the variable to get the hours value
9412     * @param[out] min Pointer to the variable to get the minutes value
9413     * @param[out] sec Pointer to the variable to get the seconds value
9414     *
9415     * This function gets the time set for @p obj, returning
9416     * it on the variables passed as the arguments to function
9417     *
9418     * @note Use @c NULL pointers on the time values you're not
9419     * interested in: they'll be ignored by the function.
9420     *
9421     * @ingroup Clock
9422     */
9423    EAPI void              elm_clock_time_get(const Evas_Object *obj, int *hrs, int *min, int *sec) EINA_ARG_NONNULL(1);
9424
9425    /**
9426     * Set whether a given clock widget is under <b>edition mode</b> or
9427     * under (default) displaying-only mode.
9428     *
9429     * @param obj The clock object
9430     * @param edit @c EINA_TRUE to put it in edition, @c EINA_FALSE to
9431     * put it back to "displaying only" mode
9432     *
9433     * This function makes a clock's time to be editable or not <b>by
9434     * user interaction</b>. When in edition mode, clocks @b stop
9435     * ticking, until one brings them back to canonical mode. The
9436     * elm_clock_digit_edit_set() function will influence which digits
9437     * of the clock will be editable. By default, all of them will be
9438     * (#ELM_CLOCK_NONE).
9439     *
9440     * @note am/pm sheets, if being shown, will @b always be editable
9441     * under edition mode.
9442     *
9443     * @see elm_clock_edit_get()
9444     *
9445     * @ingroup Clock
9446     */
9447    EAPI void              elm_clock_edit_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
9448
9449    /**
9450     * Retrieve whether a given clock widget is under <b>edition
9451     * mode</b> or under (default) displaying-only mode.
9452     *
9453     * @param obj The clock object
9454     * @param edit @c EINA_TRUE, if it's in edition mode, @c EINA_FALSE
9455     * otherwise
9456     *
9457     * This function retrieves whether the clock's time can be edited
9458     * or not by user interaction.
9459     *
9460     * @see elm_clock_edit_set() for more details
9461     *
9462     * @ingroup Clock
9463     */
9464    EAPI Eina_Bool         elm_clock_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9465
9466    /**
9467     * Set what digits of the given clock widget should be editable
9468     * when in edition mode.
9469     *
9470     * @param obj The clock object
9471     * @param digedit Bit mask indicating the digits to be editable
9472     * (values in #Elm_Clock_Digedit).
9473     *
9474     * If the @p digedit param is #ELM_CLOCK_NONE, editing will be
9475     * disabled on @p obj (same effect as elm_clock_edit_set(), with @c
9476     * EINA_FALSE).
9477     *
9478     * @see elm_clock_digit_edit_get()
9479     *
9480     * @ingroup Clock
9481     */
9482    EAPI void              elm_clock_digit_edit_set(Evas_Object *obj, Elm_Clock_Digedit digedit) EINA_ARG_NONNULL(1);
9483
9484    /**
9485     * Retrieve what digits of the given clock widget should be
9486     * editable when in edition mode.
9487     *
9488     * @param obj The clock object
9489     * @return Bit mask indicating the digits to be editable
9490     * (values in #Elm_Clock_Digedit).
9491     *
9492     * @see elm_clock_digit_edit_set() for more details
9493     *
9494     * @ingroup Clock
9495     */
9496    EAPI Elm_Clock_Digedit elm_clock_digit_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9497
9498    /**
9499     * Set if the given clock widget must show hours in military or
9500     * am/pm mode
9501     *
9502     * @param obj The clock object
9503     * @param am_pm @c EINA_TRUE to put it in am/pm mode, @c EINA_FALSE
9504     * to military mode
9505     *
9506     * This function sets if the clock must show hours in military or
9507     * am/pm mode. In some countries like Brazil the military mode
9508     * (00-24h-format) is used, in opposition to the USA, where the
9509     * am/pm mode is more commonly used.
9510     *
9511     * @see elm_clock_show_am_pm_get()
9512     *
9513     * @ingroup Clock
9514     */
9515    EAPI void              elm_clock_show_am_pm_set(Evas_Object *obj, Eina_Bool am_pm) EINA_ARG_NONNULL(1);
9516
9517    /**
9518     * Get if the given clock widget shows hours in military or am/pm
9519     * mode
9520     *
9521     * @param obj The clock object
9522     * @return @c EINA_TRUE, if in am/pm mode, @c EINA_FALSE if in
9523     * military
9524     *
9525     * This function gets if the clock shows hours in military or am/pm
9526     * mode.
9527     *
9528     * @see elm_clock_show_am_pm_set() for more details
9529     *
9530     * @ingroup Clock
9531     */
9532    EAPI Eina_Bool         elm_clock_show_am_pm_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9533
9534    /**
9535     * Set if the given clock widget must show time with seconds or not
9536     *
9537     * @param obj The clock object
9538     * @param seconds @c EINA_TRUE to show seconds, @c EINA_FALSE otherwise
9539     *
9540     * This function sets if the given clock must show or not elapsed
9541     * seconds. By default, they are @b not shown.
9542     *
9543     * @see elm_clock_show_seconds_get()
9544     *
9545     * @ingroup Clock
9546     */
9547    EAPI void              elm_clock_show_seconds_set(Evas_Object *obj, Eina_Bool seconds) EINA_ARG_NONNULL(1);
9548
9549    /**
9550     * Get whether the given clock widget is showing time with seconds
9551     * or not
9552     *
9553     * @param obj The clock object
9554     * @return @c EINA_TRUE if it's showing seconds, @c EINA_FALSE otherwise
9555     *
9556     * This function gets whether @p obj is showing or not the elapsed
9557     * seconds.
9558     *
9559     * @see elm_clock_show_seconds_set()
9560     *
9561     * @ingroup Clock
9562     */
9563    EAPI Eina_Bool         elm_clock_show_seconds_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9564
9565    /**
9566     * Set the interval on time updates for an user mouse button hold
9567     * on clock widgets' time edition.
9568     *
9569     * @param obj The clock object
9570     * @param interval The (first) interval value in seconds
9571     *
9572     * This interval value is @b decreased while the user holds the
9573     * mouse pointer either incrementing or decrementing a given the
9574     * clock digit's value.
9575     *
9576     * This helps the user to get to a given time distant from the
9577     * current one easier/faster, as it will start to flip quicker and
9578     * quicker on mouse button holds.
9579     *
9580     * The calculation for the next flip interval value, starting from
9581     * the one set with this call, is the previous interval divided by
9582     * 1.05, so it decreases a little bit.
9583     *
9584     * The default starting interval value for automatic flips is
9585     * @b 0.85 seconds.
9586     *
9587     * @see elm_clock_interval_get()
9588     *
9589     * @ingroup Clock
9590     */
9591    EAPI void              elm_clock_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
9592
9593    /**
9594     * Get the interval on time updates for an user mouse button hold
9595     * on clock widgets' time edition.
9596     *
9597     * @param obj The clock object
9598     * @return The (first) interval value, in seconds, set on it
9599     *
9600     * @see elm_clock_interval_set() for more details
9601     *
9602     * @ingroup Clock
9603     */
9604    EAPI double            elm_clock_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9605
9606    /**
9607     * @}
9608     */
9609
9610    /**
9611     * @defgroup Layout Layout
9612     *
9613     * @image html img/widget/layout/preview-00.png
9614     * @image latex img/widget/layout/preview-00.eps width=\textwidth
9615     *
9616     * @image html img/layout-predefined.png
9617     * @image latex img/layout-predefined.eps width=\textwidth
9618     *
9619     * This is a container widget that takes a standard Edje design file and
9620     * wraps it very thinly in a widget.
9621     *
9622     * An Edje design (theme) file has a very wide range of possibilities to
9623     * describe the behavior of elements added to the Layout. Check out the Edje
9624     * documentation and the EDC reference to get more information about what can
9625     * be done with Edje.
9626     *
9627     * Just like @ref List, @ref Box, and other container widgets, any
9628     * object added to the Layout will become its child, meaning that it will be
9629     * deleted if the Layout is deleted, move if the Layout is moved, and so on.
9630     *
9631     * The Layout widget can contain as many Contents, Boxes or Tables as
9632     * described in its theme file. For instance, objects can be added to
9633     * different Tables by specifying the respective Table part names. The same
9634     * is valid for Content and Box.
9635     *
9636     * The objects added as child of the Layout will behave as described in the
9637     * part description where they were added. There are 3 possible types of
9638     * parts where a child can be added:
9639     *
9640     * @section secContent Content (SWALLOW part)
9641     *
9642     * Only one object can be added to the @c SWALLOW part (but you still can
9643     * have many @c SWALLOW parts and one object on each of them). Use the @c
9644     * elm_object_content_set/get/unset functions to set, retrieve and unset 
9645     * objects as content of the @c SWALLOW. After being set to this part, the 
9646     * object size, position, visibility, clipping and other description 
9647     * properties will be totally controled by the description of the given part 
9648     * (inside the Edje theme file).
9649     *
9650     * One can use @c evas_object_size_hint_* functions on the child to have some
9651     * kind of control over its behavior, but the resulting behavior will still
9652     * depend heavily on the @c SWALLOW part description.
9653     *
9654     * The Edje theme also can change the part description, based on signals or
9655     * scripts running inside the theme. This change can also be animated. All of
9656     * this will affect the child object set as content accordingly. The object
9657     * size will be changed if the part size is changed, it will animate move if
9658     * the part is moving, and so on.
9659     *
9660     * The following picture demonstrates a Layout widget with a child object
9661     * added to its @c SWALLOW:
9662     *
9663     * @image html layout_swallow.png
9664     * @image latex layout_swallow.eps width=\textwidth
9665     *
9666     * @section secBox Box (BOX part)
9667     *
9668     * An Edje @c BOX part is very similar to the Elementary @ref Box widget. It
9669     * allows one to add objects to the box and have them distributed along its
9670     * area, accordingly to the specified @a layout property (now by @a layout we
9671     * mean the chosen layouting design of the Box, not the Layout widget
9672     * itself).
9673     *
9674     * A similar effect for having a box with its position, size and other things
9675     * controled by the Layout theme would be to create an Elementary @ref Box
9676     * widget and add it as a Content in the @c SWALLOW part.
9677     *
9678     * The main difference of using the Layout Box is that its behavior, the box
9679     * properties like layouting format, padding, align, etc. will be all
9680     * controled by the theme. This means, for example, that a signal could be
9681     * sent to the Layout theme (with elm_object_signal_emit()) and the theme
9682     * handled the signal by changing the box padding, or align, or both. Using
9683     * the Elementary @ref Box widget is not necessarily harder or easier, it
9684     * just depends on the circunstances and requirements.
9685     *
9686     * The Layout Box can be used through the @c elm_layout_box_* set of
9687     * functions.
9688     *
9689     * The following picture demonstrates a Layout widget with many child objects
9690     * added to its @c BOX part:
9691     *
9692     * @image html layout_box.png
9693     * @image latex layout_box.eps width=\textwidth
9694     *
9695     * @section secTable Table (TABLE part)
9696     *
9697     * Just like the @ref secBox, the Layout Table is very similar to the
9698     * Elementary @ref Table widget. It allows one to add objects to the Table
9699     * specifying the row and column where the object should be added, and any
9700     * column or row span if necessary.
9701     *
9702     * Again, we could have this design by adding a @ref Table widget to the @c
9703     * SWALLOW part using elm_object_part_content_set(). The same difference happens
9704     * here when choosing to use the Layout Table (a @c TABLE part) instead of
9705     * the @ref Table plus @c SWALLOW part. It's just a matter of convenience.
9706     *
9707     * The Layout Table can be used through the @c elm_layout_table_* set of
9708     * functions.
9709     *
9710     * The following picture demonstrates a Layout widget with many child objects
9711     * added to its @c TABLE part:
9712     *
9713     * @image html layout_table.png
9714     * @image latex layout_table.eps width=\textwidth
9715     *
9716     * @section secPredef Predefined Layouts
9717     *
9718     * Another interesting thing about the Layout widget is that it offers some
9719     * predefined themes that come with the default Elementary theme. These
9720     * themes can be set by the call elm_layout_theme_set(), and provide some
9721     * basic functionality depending on the theme used.
9722     *
9723     * Most of them already send some signals, some already provide a toolbar or
9724     * back and next buttons.
9725     *
9726     * These are available predefined theme layouts. All of them have class = @c
9727     * layout, group = @c application, and style = one of the following options:
9728     *
9729     * @li @c toolbar-content - application with toolbar and main content area
9730     * @li @c toolbar-content-back - application with toolbar and main content
9731     * area with a back button and title area
9732     * @li @c toolbar-content-back-next - application with toolbar and main
9733     * content area with a back and next buttons and title area
9734     * @li @c content-back - application with a main content area with a back
9735     * button and title area
9736     * @li @c content-back-next - application with a main content area with a
9737     * back and next buttons and title area
9738     * @li @c toolbar-vbox - application with toolbar and main content area as a
9739     * vertical box
9740     * @li @c toolbar-table - application with toolbar and main content area as a
9741     * table
9742     *
9743     * @section secExamples Examples
9744     *
9745     * Some examples of the Layout widget can be found here:
9746     * @li @ref layout_example_01
9747     * @li @ref layout_example_02
9748     * @li @ref layout_example_03
9749     * @li @ref layout_example_edc
9750     *
9751     */
9752
9753    /**
9754     * Add a new layout to the parent
9755     *
9756     * @param parent The parent object
9757     * @return The new object or NULL if it cannot be created
9758     *
9759     * @see elm_layout_file_set()
9760     * @see elm_layout_theme_set()
9761     *
9762     * @ingroup Layout
9763     */
9764    EAPI Evas_Object       *elm_layout_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9765    /**
9766     * Set the file that will be used as layout
9767     *
9768     * @param obj The layout object
9769     * @param file The path to file (edj) that will be used as layout
9770     * @param group The group that the layout belongs in edje file
9771     *
9772     * @return (1 = success, 0 = error)
9773     *
9774     * @ingroup Layout
9775     */
9776    EAPI Eina_Bool          elm_layout_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
9777    /**
9778     * Set the edje group from the elementary theme that will be used as layout
9779     *
9780     * @param obj The layout object
9781     * @param clas the clas of the group
9782     * @param group the group
9783     * @param style the style to used
9784     *
9785     * @return (1 = success, 0 = error)
9786     *
9787     * @ingroup Layout
9788     */
9789    EAPI Eina_Bool          elm_layout_theme_set(Evas_Object *obj, const char *clas, const char *group, const char *style) EINA_ARG_NONNULL(1);
9790    /**
9791     * Set the layout content.
9792     *
9793     * @param obj The layout object
9794     * @param swallow The swallow part name in the edje file
9795     * @param content The child that will be added in this layout object
9796     *
9797     * Once the content object is set, a previously set one will be deleted.
9798     * If you want to keep that old content object, use the
9799     * elm_object_part_content_unset() function.
9800     *
9801     * @note In an Edje theme, the part used as a content container is called @c
9802     * SWALLOW. This is why the parameter name is called @p swallow, but it is
9803     * expected to be a part name just like the second parameter of
9804     * elm_layout_box_append().
9805     *
9806     * @see elm_layout_box_append()
9807     * @see elm_object_content_part_get()
9808     * @see elm_object_content_part_unset()
9809     * @see @ref secBox
9810     *
9811     * @ingroup Layout
9812     */
9813    EAPI void               elm_layout_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
9814    /**
9815     * Get the child object in the given content part.
9816     *
9817     * @param obj The layout object
9818     * @param swallow The SWALLOW part to get its content
9819     *
9820     * @return The swallowed object or NULL if none or an error occurred
9821     *
9822     * @see elm_object_content_part_set()
9823     *
9824     * @ingroup Layout
9825     */
9826    EAPI Evas_Object       *elm_layout_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
9827    /**
9828     * Unset the layout content.
9829     *
9830     * @param obj The layout object
9831     * @param swallow The swallow part name in the edje file
9832     * @return The content that was being used
9833     *
9834     * Unparent and return the content object which was set for this part.
9835     *
9836     * @see elm_object_content_part_set()
9837     *
9838     * @ingroup Layout
9839     */
9840    EAPI Evas_Object       *elm_layout_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
9841    /**
9842     * Set the text of the given part
9843     *
9844     * @param obj The layout object
9845     * @param part The TEXT part where to set the text
9846     * @param text The text to set
9847     *
9848     * @ingroup Layout
9849     * @deprecated use elm_object_part_text_set() instead.
9850     */
9851    EINA_DEPRECATED EAPI void               elm_layout_text_set(Evas_Object *obj, const char *part, const char *text) EINA_ARG_NONNULL(1);
9852    /**
9853     * Get the text set in the given part
9854     *
9855     * @param obj The layout object
9856     * @param part The TEXT part to retrieve the text off
9857     *
9858     * @return The text set in @p part
9859     *
9860     * @ingroup Layout
9861     * @deprecated use elm_object_part_text_get() instead.
9862     */
9863    EINA_DEPRECATED EAPI const char        *elm_layout_text_get(const Evas_Object *obj, const char *part) EINA_ARG_NONNULL(1);
9864    /**
9865     * Append child to layout box part.
9866     *
9867     * @param obj the layout object
9868     * @param part the box part to which the object will be appended.
9869     * @param child the child object to append to box.
9870     *
9871     * Once the object is appended, it will become child of the layout. Its
9872     * lifetime will be bound to the layout, whenever the layout dies the child
9873     * will be deleted automatically. One should use elm_layout_box_remove() to
9874     * make this layout forget about the object.
9875     *
9876     * @see elm_layout_box_prepend()
9877     * @see elm_layout_box_insert_before()
9878     * @see elm_layout_box_insert_at()
9879     * @see elm_layout_box_remove()
9880     *
9881     * @ingroup Layout
9882     */
9883    EAPI void               elm_layout_box_append(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
9884    /**
9885     * Prepend child to layout box part.
9886     *
9887     * @param obj the layout object
9888     * @param part the box part to prepend.
9889     * @param child the child object to prepend to box.
9890     *
9891     * Once the object is prepended, it will become child of the layout. Its
9892     * lifetime will be bound to the layout, whenever the layout dies the child
9893     * will be deleted automatically. One should use elm_layout_box_remove() to
9894     * make this layout forget about the object.
9895     *
9896     * @see elm_layout_box_append()
9897     * @see elm_layout_box_insert_before()
9898     * @see elm_layout_box_insert_at()
9899     * @see elm_layout_box_remove()
9900     *
9901     * @ingroup Layout
9902     */
9903    EAPI void               elm_layout_box_prepend(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
9904    /**
9905     * Insert child to layout box part before a reference object.
9906     *
9907     * @param obj the layout object
9908     * @param part the box part to insert.
9909     * @param child the child object to insert into box.
9910     * @param reference another reference object to insert before in box.
9911     *
9912     * Once the object is inserted, it will become child of the layout. Its
9913     * lifetime will be bound to the layout, whenever the layout dies the child
9914     * will be deleted automatically. One should use elm_layout_box_remove() to
9915     * make this layout forget about the object.
9916     *
9917     * @see elm_layout_box_append()
9918     * @see elm_layout_box_prepend()
9919     * @see elm_layout_box_insert_before()
9920     * @see elm_layout_box_remove()
9921     *
9922     * @ingroup Layout
9923     */
9924    EAPI void               elm_layout_box_insert_before(Evas_Object *obj, const char *part, Evas_Object *child, const Evas_Object *reference) EINA_ARG_NONNULL(1);
9925    /**
9926     * Insert child to layout box part at a given position.
9927     *
9928     * @param obj the layout object
9929     * @param part the box part to insert.
9930     * @param child the child object to insert into box.
9931     * @param pos the numeric position >=0 to insert the child.
9932     *
9933     * Once the object is inserted, it will become child of the layout. Its
9934     * lifetime will be bound to the layout, whenever the layout dies the child
9935     * will be deleted automatically. One should use elm_layout_box_remove() to
9936     * make this layout forget about the object.
9937     *
9938     * @see elm_layout_box_append()
9939     * @see elm_layout_box_prepend()
9940     * @see elm_layout_box_insert_before()
9941     * @see elm_layout_box_remove()
9942     *
9943     * @ingroup Layout
9944     */
9945    EAPI void               elm_layout_box_insert_at(Evas_Object *obj, const char *part, Evas_Object *child, unsigned int pos) EINA_ARG_NONNULL(1);
9946    /**
9947     * Remove a child of the given part box.
9948     *
9949     * @param obj The layout object
9950     * @param part The box part name to remove child.
9951     * @param child The object to remove from box.
9952     * @return The object that was being used, or NULL if not found.
9953     *
9954     * The object will be removed from the box part and its lifetime will
9955     * not be handled by the layout anymore. This is equivalent to
9956     * elm_object_part_content_unset() for box.
9957     *
9958     * @see elm_layout_box_append()
9959     * @see elm_layout_box_remove_all()
9960     *
9961     * @ingroup Layout
9962     */
9963    EAPI Evas_Object       *elm_layout_box_remove(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1, 2, 3);
9964    /**
9965     * Remove all child of the given part box.
9966     *
9967     * @param obj The layout object
9968     * @param part The box part name to remove child.
9969     * @param clear If EINA_TRUE, then all objects will be deleted as
9970     *        well, otherwise they will just be removed and will be
9971     *        dangling on the canvas.
9972     *
9973     * The objects will be removed from the box part and their lifetime will
9974     * not be handled by the layout anymore. This is equivalent to
9975     * elm_layout_box_remove() for all box children.
9976     *
9977     * @see elm_layout_box_append()
9978     * @see elm_layout_box_remove()
9979     *
9980     * @ingroup Layout
9981     */
9982    EAPI void               elm_layout_box_remove_all(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
9983    /**
9984     * Insert child to layout table part.
9985     *
9986     * @param obj the layout object
9987     * @param part the box part to pack child.
9988     * @param child_obj the child object to pack into table.
9989     * @param col the column to which the child should be added. (>= 0)
9990     * @param row the row to which the child should be added. (>= 0)
9991     * @param colspan how many columns should be used to store this object. (>=
9992     *        1)
9993     * @param rowspan how many rows should be used to store this object. (>= 1)
9994     *
9995     * Once the object is inserted, it will become child of the table. Its
9996     * lifetime will be bound to the layout, and whenever the layout dies the
9997     * child will be deleted automatically. One should use
9998     * elm_layout_table_remove() to make this layout forget about the object.
9999     *
10000     * If @p colspan or @p rowspan are bigger than 1, that object will occupy
10001     * more space than a single cell. For instance, the following code:
10002     * @code
10003     * elm_layout_table_pack(layout, "table_part", child, 0, 1, 3, 1);
10004     * @endcode
10005     *
10006     * Would result in an object being added like the following picture:
10007     *
10008     * @image html layout_colspan.png
10009     * @image latex layout_colspan.eps width=\textwidth
10010     *
10011     * @see elm_layout_table_unpack()
10012     * @see elm_layout_table_clear()
10013     *
10014     * @ingroup Layout
10015     */
10016    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);
10017    /**
10018     * Unpack (remove) a child of the given part table.
10019     *
10020     * @param obj The layout object
10021     * @param part The table part name to remove child.
10022     * @param child_obj The object to remove from table.
10023     * @return The object that was being used, or NULL if not found.
10024     *
10025     * The object will be unpacked from the table part and its lifetime
10026     * will not be handled by the layout anymore. This is equivalent to
10027     * elm_object_part_content_unset() for table.
10028     *
10029     * @see elm_layout_table_pack()
10030     * @see elm_layout_table_clear()
10031     *
10032     * @ingroup Layout
10033     */
10034    EAPI Evas_Object       *elm_layout_table_unpack(Evas_Object *obj, const char *part, Evas_Object *child_obj) EINA_ARG_NONNULL(1, 2, 3);
10035    /**
10036     * Remove all child of the given part table.
10037     *
10038     * @param obj The layout object
10039     * @param part The table part name to remove child.
10040     * @param clear If EINA_TRUE, then all objects will be deleted as
10041     *        well, otherwise they will just be removed and will be
10042     *        dangling on the canvas.
10043     *
10044     * The objects will be removed from the table part and their lifetime will
10045     * not be handled by the layout anymore. This is equivalent to
10046     * elm_layout_table_unpack() for all table children.
10047     *
10048     * @see elm_layout_table_pack()
10049     * @see elm_layout_table_unpack()
10050     *
10051     * @ingroup Layout
10052     */
10053    EAPI void               elm_layout_table_clear(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
10054    /**
10055     * Get the edje layout
10056     *
10057     * @param obj The layout object
10058     *
10059     * @return A Evas_Object with the edje layout settings loaded
10060     * with function elm_layout_file_set
10061     *
10062     * This returns the edje object. It is not expected to be used to then
10063     * swallow objects via edje_object_part_swallow() for example. Use
10064     * elm_object_part_content_set() instead so child object handling and sizing is
10065     * done properly.
10066     *
10067     * @note This function should only be used if you really need to call some
10068     * low level Edje function on this edje object. All the common stuff (setting
10069     * text, emitting signals, hooking callbacks to signals, etc.) can be done
10070     * with proper elementary functions.
10071     *
10072     * @see elm_object_signal_callback_add()
10073     * @see elm_object_signal_emit()
10074     * @see elm_object_part_text_set()
10075     * @see elm_object_content_part_set()
10076     * @see elm_layout_box_append()
10077     * @see elm_layout_table_pack()
10078     * @see elm_layout_data_get()
10079     *
10080     * @ingroup Layout
10081     */
10082    EAPI Evas_Object       *elm_layout_edje_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10083    /**
10084     * Get the edje data from the given layout
10085     *
10086     * @param obj The layout object
10087     * @param key The data key
10088     *
10089     * @return The edje data string
10090     *
10091     * This function fetches data specified inside the edje theme of this layout.
10092     * This function return NULL if data is not found.
10093     *
10094     * In EDC this comes from a data block within the group block that @p
10095     * obj was loaded from. E.g.
10096     *
10097     * @code
10098     * collections {
10099     *   group {
10100     *     name: "a_group";
10101     *     data {
10102     *       item: "key1" "value1";
10103     *       item: "key2" "value2";
10104     *     }
10105     *   }
10106     * }
10107     * @endcode
10108     *
10109     * @ingroup Layout
10110     */
10111    EAPI const char        *elm_layout_data_get(const Evas_Object *obj, const char *key) EINA_ARG_NONNULL(1, 2);
10112    /**
10113     * Eval sizing
10114     *
10115     * @param obj The layout object
10116     *
10117     * Manually forces a sizing re-evaluation. This is useful when the minimum
10118     * size required by the edje theme of this layout has changed. The change on
10119     * the minimum size required by the edje theme is not immediately reported to
10120     * the elementary layout, so one needs to call this function in order to tell
10121     * the widget (layout) that it needs to reevaluate its own size.
10122     *
10123     * The minimum size of the theme is calculated based on minimum size of
10124     * parts, the size of elements inside containers like box and table, etc. All
10125     * of this can change due to state changes, and that's when this function
10126     * should be called.
10127     *
10128     * Also note that a standard signal of "size,eval" "elm" emitted from the
10129     * edje object will cause this to happen too.
10130     *
10131     * @ingroup Layout
10132     */
10133    EAPI void               elm_layout_sizing_eval(Evas_Object *obj) EINA_ARG_NONNULL(1);
10134
10135    /**
10136     * Sets a specific cursor for an edje part.
10137     *
10138     * @param obj The layout object.
10139     * @param part_name a part from loaded edje group.
10140     * @param cursor cursor name to use, see Elementary_Cursor.h
10141     *
10142     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
10143     *         part not exists or it has "mouse_events: 0".
10144     *
10145     * @ingroup Layout
10146     */
10147    EAPI Eina_Bool          elm_layout_part_cursor_set(Evas_Object *obj, const char *part_name, const char *cursor) EINA_ARG_NONNULL(1, 2);
10148
10149    /**
10150     * Get the cursor to be shown when mouse is over an edje part
10151     *
10152     * @param obj The layout object.
10153     * @param part_name a part from loaded edje group.
10154     * @return the cursor name.
10155     *
10156     * @ingroup Layout
10157     */
10158    EAPI const char        *elm_layout_part_cursor_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10159
10160    /**
10161     * Unsets a cursor previously set with elm_layout_part_cursor_set().
10162     *
10163     * @param obj The layout object.
10164     * @param part_name a part from loaded edje group, that had a cursor set
10165     *        with elm_layout_part_cursor_set().
10166     *
10167     * @ingroup Layout
10168     */
10169    EAPI void               elm_layout_part_cursor_unset(Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10170
10171    /**
10172     * Sets a specific cursor style for an edje part.
10173     *
10174     * @param obj The layout object.
10175     * @param part_name a part from loaded edje group.
10176     * @param style the theme style to use (default, transparent, ...)
10177     *
10178     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
10179     *         part not exists or it did not had a cursor set.
10180     *
10181     * @ingroup Layout
10182     */
10183    EAPI Eina_Bool          elm_layout_part_cursor_style_set(Evas_Object *obj, const char *part_name, const char *style) EINA_ARG_NONNULL(1, 2);
10184
10185    /**
10186     * Gets a specific cursor style for an edje part.
10187     *
10188     * @param obj The layout object.
10189     * @param part_name a part from loaded edje group.
10190     *
10191     * @return the theme style in use, defaults to "default". If the
10192     *         object does not have a cursor set, then NULL is returned.
10193     *
10194     * @ingroup Layout
10195     */
10196    EAPI const char        *elm_layout_part_cursor_style_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10197
10198    /**
10199     * Sets if the cursor set should be searched on the theme or should use
10200     * the provided by the engine, only.
10201     *
10202     * @note before you set if should look on theme you should define a
10203     * cursor with elm_layout_part_cursor_set(). By default it will only
10204     * look for cursors provided by the engine.
10205     *
10206     * @param obj The layout object.
10207     * @param part_name a part from loaded edje group.
10208     * @param engine_only if cursors should be just provided by the engine
10209     *        or should also search on widget's theme as well
10210     *
10211     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
10212     *         part not exists or it did not had a cursor set.
10213     *
10214     * @ingroup Layout
10215     */
10216    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);
10217
10218    /**
10219     * Gets a specific cursor engine_only for an edje part.
10220     *
10221     * @param obj The layout object.
10222     * @param part_name a part from loaded edje group.
10223     *
10224     * @return whenever the cursor is just provided by engine or also from theme.
10225     *
10226     * @ingroup Layout
10227     */
10228    EAPI Eina_Bool          elm_layout_part_cursor_engine_only_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10229
10230 /**
10231  * @def elm_layout_icon_set
10232  * Convienience macro to set the icon object in a layout that follows the
10233  * Elementary naming convention for its parts.
10234  *
10235  * @ingroup Layout
10236  */
10237 #define elm_layout_icon_set(_ly, _obj) \
10238   do { \
10239     const char *sig; \
10240     elm_object_content_part_set((_ly), "elm.swallow.icon", (_obj)); \
10241     if ((_obj)) sig = "elm,state,icon,visible"; \
10242     else sig = "elm,state,icon,hidden"; \
10243     elm_object_signal_emit((_ly), sig, "elm"); \
10244   } while (0)
10245
10246 /**
10247  * @def elm_layout_icon_get
10248  * Convienience macro to get the icon object from a layout that follows the
10249  * Elementary naming convention for its parts.
10250  *
10251  * @ingroup Layout
10252  */
10253 #define elm_layout_icon_get(_ly) \
10254   elm_object_content_part_get((_ly), "elm.swallow.icon")
10255
10256 /**
10257  * @def elm_layout_end_set
10258  * Convienience macro to set the end object in a layout that follows the
10259  * Elementary naming convention for its parts.
10260  *
10261  * @ingroup Layout
10262  */
10263 #define elm_layout_end_set(_ly, _obj) \
10264   do { \
10265     const char *sig; \
10266     elm_object_content_part_set((_ly), "elm.swallow.end", (_obj)); \
10267     if ((_obj)) sig = "elm,state,end,visible"; \
10268     else sig = "elm,state,end,hidden"; \
10269     elm_object_signal_emit((_ly), sig, "elm"); \
10270   } while (0)
10271
10272 /**
10273  * @def elm_layout_end_get
10274  * Convienience macro to get the end object in a layout that follows the
10275  * Elementary naming convention for its parts.
10276  *
10277  * @ingroup Layout
10278  */
10279 #define elm_layout_end_get(_ly) \
10280   elm_object_content_part_get((_ly), "elm.swallow.end")
10281
10282 /**
10283  * @def elm_layout_label_set
10284  * Convienience macro to set the label in a layout that follows the
10285  * Elementary naming convention for its parts.
10286  *
10287  * @ingroup Layout
10288  * @deprecated use elm_object_text_set() instead.
10289  */
10290 #define elm_layout_label_set(_ly, _txt) \
10291   elm_layout_text_set((_ly), "elm.text", (_txt))
10292
10293 /**
10294  * @def elm_layout_label_get
10295  * Convenience macro to get the label in a layout that follows the
10296  * Elementary naming convention for its parts.
10297  *
10298  * @ingroup Layout
10299  * @deprecated use elm_object_text_set() instead.
10300  */
10301 #define elm_layout_label_get(_ly) \
10302   elm_layout_text_get((_ly), "elm.text")
10303
10304    /* smart callbacks called:
10305     * "theme,changed" - when elm theme is changed.
10306     */
10307
10308    /**
10309     * @defgroup Notify Notify
10310     *
10311     * @image html img/widget/notify/preview-00.png
10312     * @image latex img/widget/notify/preview-00.eps
10313     *
10314     * Display a container in a particular region of the parent(top, bottom,
10315     * etc).  A timeout can be set to automatically hide the notify. This is so
10316     * that, after an evas_object_show() on a notify object, if a timeout was set
10317     * on it, it will @b automatically get hidden after that time.
10318     *
10319     * Signals that you can add callbacks for are:
10320     * @li "timeout" - when timeout happens on notify and it's hidden
10321     * @li "block,clicked" - when a click outside of the notify happens
10322     *
10323     * Default contents parts of the notify widget that you can use for are:
10324     * @li "default" - A content of the notify
10325     *
10326     * @ref tutorial_notify show usage of the API.
10327     *
10328     * @{
10329     */
10330    /**
10331     * @brief Possible orient values for notify.
10332     *
10333     * This values should be used in conjunction to elm_notify_orient_set() to
10334     * set the position in which the notify should appear(relative to its parent)
10335     * and in conjunction with elm_notify_orient_get() to know where the notify
10336     * is appearing.
10337     */
10338    typedef enum _Elm_Notify_Orient
10339      {
10340         ELM_NOTIFY_ORIENT_TOP, /**< Notify should appear in the top of parent, default */
10341         ELM_NOTIFY_ORIENT_CENTER, /**< Notify should appear in the center of parent */
10342         ELM_NOTIFY_ORIENT_BOTTOM, /**< Notify should appear in the bottom of parent */
10343         ELM_NOTIFY_ORIENT_LEFT, /**< Notify should appear in the left of parent */
10344         ELM_NOTIFY_ORIENT_RIGHT, /**< Notify should appear in the right of parent */
10345         ELM_NOTIFY_ORIENT_TOP_LEFT, /**< Notify should appear in the top left of parent */
10346         ELM_NOTIFY_ORIENT_TOP_RIGHT, /**< Notify should appear in the top right of parent */
10347         ELM_NOTIFY_ORIENT_BOTTOM_LEFT, /**< Notify should appear in the bottom left of parent */
10348         ELM_NOTIFY_ORIENT_BOTTOM_RIGHT, /**< Notify should appear in the bottom right of parent */
10349         ELM_NOTIFY_ORIENT_LAST /**< Sentinel value, @b don't use */
10350      } Elm_Notify_Orient;
10351    /**
10352     * @brief Add a new notify to the parent
10353     *
10354     * @param parent The parent object
10355     * @return The new object or NULL if it cannot be created
10356     */
10357    EAPI Evas_Object      *elm_notify_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10358    /**
10359     * @brief Set the content of the notify widget
10360     *
10361     * @param obj The notify object
10362     * @param content The content will be filled in this notify object
10363     *
10364     * Once the content object is set, a previously set one will be deleted. If
10365     * you want to keep that old content object, use the
10366     * elm_notify_content_unset() function.
10367     */
10368    EAPI void              elm_notify_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
10369    /**
10370     * @brief Unset the content of the notify widget
10371     *
10372     * @param obj The notify object
10373     * @return The content that was being used
10374     *
10375     * Unparent and return the content object which was set for this widget
10376     *
10377     * @see elm_notify_content_set()
10378     */
10379    EAPI Evas_Object      *elm_notify_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
10380    /**
10381     * @brief Return the content of the notify widget
10382     *
10383     * @param obj The notify object
10384     * @return The content that is being used
10385     *
10386     * @see elm_notify_content_set()
10387     */
10388    EAPI Evas_Object      *elm_notify_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10389    /**
10390     * @brief Set the notify parent
10391     *
10392     * @param obj The notify object
10393     * @param content The new parent
10394     *
10395     * Once the parent object is set, a previously set one will be disconnected
10396     * and replaced.
10397     */
10398    EAPI void              elm_notify_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
10399    /**
10400     * @brief Get the notify parent
10401     *
10402     * @param obj The notify object
10403     * @return The parent
10404     *
10405     * @see elm_notify_parent_set()
10406     */
10407    EAPI Evas_Object      *elm_notify_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10408    /**
10409     * @brief Set the orientation
10410     *
10411     * @param obj The notify object
10412     * @param orient The new orientation
10413     *
10414     * Sets the position in which the notify will appear in its parent.
10415     *
10416     * @see @ref Elm_Notify_Orient for possible values.
10417     */
10418    EAPI void              elm_notify_orient_set(Evas_Object *obj, Elm_Notify_Orient orient) EINA_ARG_NONNULL(1);
10419    /**
10420     * @brief Return the orientation
10421     * @param obj The notify object
10422     * @return The orientation of the notification
10423     *
10424     * @see elm_notify_orient_set()
10425     * @see Elm_Notify_Orient
10426     */
10427    EAPI Elm_Notify_Orient elm_notify_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10428    /**
10429     * @brief Set the time interval after which the notify window is going to be
10430     * hidden.
10431     *
10432     * @param obj The notify object
10433     * @param time The timeout in seconds
10434     *
10435     * This function sets a timeout and starts the timer controlling when the
10436     * notify is hidden. Since calling evas_object_show() on a notify restarts
10437     * the timer controlling when the notify is hidden, setting this before the
10438     * notify is shown will in effect mean starting the timer when the notify is
10439     * shown.
10440     *
10441     * @note Set a value <= 0.0 to disable a running timer.
10442     *
10443     * @note If the value > 0.0 and the notify is previously visible, the
10444     * timer will be started with this value, canceling any running timer.
10445     */
10446    EAPI void              elm_notify_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
10447    /**
10448     * @brief Return the timeout value (in seconds)
10449     * @param obj the notify object
10450     *
10451     * @see elm_notify_timeout_set()
10452     */
10453    EAPI double            elm_notify_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10454    /**
10455     * @brief Sets whether events should be passed to by a click outside
10456     * its area.
10457     *
10458     * @param obj The notify object
10459     * @param repeats EINA_TRUE Events are repeats, else no
10460     *
10461     * When true if the user clicks outside the window the events will be caught
10462     * by the others widgets, else the events are blocked.
10463     *
10464     * @note The default value is EINA_TRUE.
10465     */
10466    EAPI void              elm_notify_repeat_events_set(Evas_Object *obj, Eina_Bool repeat) EINA_ARG_NONNULL(1);
10467    /**
10468     * @brief Return true if events are repeat below the notify object
10469     * @param obj the notify object
10470     *
10471     * @see elm_notify_repeat_events_set()
10472     */
10473    EAPI Eina_Bool         elm_notify_repeat_events_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10474    /**
10475     * @}
10476     */
10477
10478    /**
10479     * @defgroup Hover Hover
10480     *
10481     * @image html img/widget/hover/preview-00.png
10482     * @image latex img/widget/hover/preview-00.eps
10483     *
10484     * A Hover object will hover over its @p parent object at the @p target
10485     * location. Anything in the background will be given a darker coloring to
10486     * indicate that the hover object is on top (at the default theme). When the
10487     * hover is clicked it is dismissed(hidden), if the contents of the hover are
10488     * clicked that @b doesn't cause the hover to be dismissed.
10489     *
10490     * A Hover object has two parents. One parent that owns it during creation
10491     * and the other parent being the one over which the hover object spans.
10492     *
10493     *
10494     * @note The hover object will take up the entire space of @p target
10495     * object.
10496     *
10497     * Elementary has the following styles for the hover widget:
10498     * @li default
10499     * @li popout
10500     * @li menu
10501     * @li hoversel_vertical
10502     *
10503     * The following are the available position for content:
10504     * @li left
10505     * @li top-left
10506     * @li top
10507     * @li top-right
10508     * @li right
10509     * @li bottom-right
10510     * @li bottom
10511     * @li bottom-left
10512     * @li middle
10513     * @li smart
10514     *
10515     * Signals that you can add callbacks for are:
10516     * @li "clicked" - the user clicked the empty space in the hover to dismiss
10517     * @li "smart,changed" - a content object placed under the "smart"
10518     *                   policy was replaced to a new slot direction.
10519     *
10520     * See @ref tutorial_hover for more information.
10521     *
10522     * @{
10523     */
10524    typedef enum _Elm_Hover_Axis
10525      {
10526         ELM_HOVER_AXIS_NONE, /**< ELM_HOVER_AXIS_NONE -- no prefered orientation */
10527         ELM_HOVER_AXIS_HORIZONTAL, /**< ELM_HOVER_AXIS_HORIZONTAL -- horizontal */
10528         ELM_HOVER_AXIS_VERTICAL, /**< ELM_HOVER_AXIS_VERTICAL -- vertical */
10529         ELM_HOVER_AXIS_BOTH /**< ELM_HOVER_AXIS_BOTH -- both */
10530      } Elm_Hover_Axis;
10531    /**
10532     * @brief Adds a hover object to @p parent
10533     *
10534     * @param parent The parent object
10535     * @return The hover object or NULL if one could not be created
10536     */
10537    EAPI Evas_Object *elm_hover_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10538    /**
10539     * @brief Sets the target object for the hover.
10540     *
10541     * @param obj The hover object
10542     * @param target The object to center the hover onto. The hover
10543     *
10544     * This function will cause the hover to be centered on the target object.
10545     */
10546    EAPI void         elm_hover_target_set(Evas_Object *obj, Evas_Object *target) EINA_ARG_NONNULL(1);
10547    /**
10548     * @brief Gets the target object for the hover.
10549     *
10550     * @param obj The hover object
10551     * @param parent The object to locate the hover over.
10552     *
10553     * @see elm_hover_target_set()
10554     */
10555    EAPI Evas_Object *elm_hover_target_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10556    /**
10557     * @brief Sets the parent object for the hover.
10558     *
10559     * @param obj The hover object
10560     * @param parent The object to locate the hover over.
10561     *
10562     * This function will cause the hover to take up the entire space that the
10563     * parent object fills.
10564     */
10565    EAPI void         elm_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
10566    /**
10567     * @brief Gets the parent object for the hover.
10568     *
10569     * @param obj The hover object
10570     * @return The parent object to locate the hover over.
10571     *
10572     * @see elm_hover_parent_set()
10573     */
10574    EAPI Evas_Object *elm_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10575    /**
10576     * @brief Sets the content of the hover object and the direction in which it
10577     * will pop out.
10578     *
10579     * @param obj The hover object
10580     * @param swallow The direction that the object will be displayed
10581     * at. Accepted values are "left", "top-left", "top", "top-right",
10582     * "right", "bottom-right", "bottom", "bottom-left", "middle" and
10583     * "smart".
10584     * @param content The content to place at @p swallow
10585     *
10586     * Once the content object is set for a given direction, a previously
10587     * set one (on the same direction) will be deleted. If you want to
10588     * keep that old content object, use the elm_hover_content_unset()
10589     * function.
10590     *
10591     * All directions may have contents at the same time, except for
10592     * "smart". This is a special placement hint and its use case
10593     * independs of the calculations coming from
10594     * elm_hover_best_content_location_get(). Its use is for cases when
10595     * one desires only one hover content, but with a dinamic special
10596     * placement within the hover area. The content's geometry, whenever
10597     * it changes, will be used to decide on a best location not
10598     * extrapolating the hover's parent object view to show it in (still
10599     * being the hover's target determinant of its medium part -- move and
10600     * resize it to simulate finger sizes, for example). If one of the
10601     * directions other than "smart" are used, a previously content set
10602     * using it will be deleted, and vice-versa.
10603     */
10604    EAPI void         elm_hover_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
10605    /**
10606     * @brief Get the content of the hover object, in a given direction.
10607     *
10608     * Return the content object which was set for this widget in the
10609     * @p swallow direction.
10610     *
10611     * @param obj The hover object
10612     * @param swallow The direction that the object was display at.
10613     * @return The content that was being used
10614     *
10615     * @see elm_hover_content_set()
10616     */
10617    EAPI Evas_Object *elm_hover_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10618    /**
10619     * @brief Unset the content of the hover object, in a given direction.
10620     *
10621     * Unparent and return the content object set at @p swallow direction.
10622     *
10623     * @param obj The hover object
10624     * @param swallow The direction that the object was display at.
10625     * @return The content that was being used.
10626     *
10627     * @see elm_hover_content_set()
10628     */
10629    EAPI Evas_Object *elm_hover_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10630    /**
10631     * @brief Returns the best swallow location for content in the hover.
10632     *
10633     * @param obj The hover object
10634     * @param pref_axis The preferred orientation axis for the hover object to use
10635     * @return The edje location to place content into the hover or @c
10636     *         NULL, on errors.
10637     *
10638     * Best is defined here as the location at which there is the most available
10639     * space.
10640     *
10641     * @p pref_axis may be one of
10642     * - @c ELM_HOVER_AXIS_NONE -- no prefered orientation
10643     * - @c ELM_HOVER_AXIS_HORIZONTAL -- horizontal
10644     * - @c ELM_HOVER_AXIS_VERTICAL -- vertical
10645     * - @c ELM_HOVER_AXIS_BOTH -- both
10646     *
10647     * If ELM_HOVER_AXIS_HORIZONTAL is choosen the returned position will
10648     * nescessarily be along the horizontal axis("left" or "right"). If
10649     * ELM_HOVER_AXIS_VERTICAL is choosen the returned position will nescessarily
10650     * be along the vertical axis("top" or "bottom"). Chossing
10651     * ELM_HOVER_AXIS_BOTH or ELM_HOVER_AXIS_NONE has the same effect and the
10652     * returned position may be in either axis.
10653     *
10654     * @see elm_hover_content_set()
10655     */
10656    EAPI const char  *elm_hover_best_content_location_get(const Evas_Object *obj, Elm_Hover_Axis pref_axis) EINA_ARG_NONNULL(1);
10657    /**
10658     * @}
10659     */
10660
10661    /* entry */
10662    /**
10663     * @defgroup Entry Entry
10664     *
10665     * @image html img/widget/entry/preview-00.png
10666     * @image latex img/widget/entry/preview-00.eps width=\textwidth
10667     * @image html img/widget/entry/preview-01.png
10668     * @image latex img/widget/entry/preview-01.eps width=\textwidth
10669     * @image html img/widget/entry/preview-02.png
10670     * @image latex img/widget/entry/preview-02.eps width=\textwidth
10671     * @image html img/widget/entry/preview-03.png
10672     * @image latex img/widget/entry/preview-03.eps width=\textwidth
10673     *
10674     * An entry is a convenience widget which shows a box that the user can
10675     * enter text into. Entries by default don't scroll, so they grow to
10676     * accomodate the entire text, resizing the parent window as needed. This
10677     * can be changed with the elm_entry_scrollable_set() function.
10678     *
10679     * They can also be single line or multi line (the default) and when set
10680     * to multi line mode they support text wrapping in any of the modes
10681     * indicated by #Elm_Wrap_Type.
10682     *
10683     * Other features include password mode, filtering of inserted text with
10684     * elm_entry_text_filter_append() and related functions, inline "items" and
10685     * formatted markup text.
10686     *
10687     * @section entry-markup Formatted text
10688     *
10689     * The markup tags supported by the Entry are defined by the theme, but
10690     * even when writing new themes or extensions it's a good idea to stick to
10691     * a sane default, to maintain coherency and avoid application breakages.
10692     * Currently defined by the default theme are the following tags:
10693     * @li \<br\>: Inserts a line break.
10694     * @li \<ps\>: Inserts a paragraph separator. This is preferred over line
10695     * breaks.
10696     * @li \<tab\>: Inserts a tab.
10697     * @li \<em\>...\</em\>: Emphasis. Sets the @em oblique style for the
10698     * enclosed text.
10699     * @li \<b\>...\</b\>: Sets the @b bold style for the enclosed text.
10700     * @li \<link\>...\</link\>: Underlines the enclosed text.
10701     * @li \<hilight\>...\</hilight\>: Hilights the enclosed text.
10702     *
10703     * @section entry-special Special markups
10704     *
10705     * Besides those used to format text, entries support two special markup
10706     * tags used to insert clickable portions of text or items inlined within
10707     * the text.
10708     *
10709     * @subsection entry-anchors Anchors
10710     *
10711     * Anchors are similar to HTML anchors. Text can be surrounded by \<a\> and
10712     * \</a\> tags and an event will be generated when this text is clicked,
10713     * like this:
10714     *
10715     * @code
10716     * This text is outside <a href=anc-01>but this one is an anchor</a>
10717     * @endcode
10718     *
10719     * The @c href attribute in the opening tag gives the name that will be
10720     * used to identify the anchor and it can be any valid utf8 string.
10721     *
10722     * When an anchor is clicked, an @c "anchor,clicked" signal is emitted with
10723     * an #Elm_Entry_Anchor_Info in the @c event_info parameter for the
10724     * callback function. The same applies for "anchor,in" (mouse in), "anchor,out"
10725     * (mouse out), "anchor,down" (mouse down), and "anchor,up" (mouse up) events on
10726     * an anchor.
10727     *
10728     * @subsection entry-items Items
10729     *
10730     * Inlined in the text, any other @c Evas_Object can be inserted by using
10731     * \<item\> tags this way:
10732     *
10733     * @code
10734     * <item size=16x16 vsize=full href=emoticon/haha></item>
10735     * @endcode
10736     *
10737     * Just like with anchors, the @c href identifies each item, but these need,
10738     * in addition, to indicate their size, which is done using any one of
10739     * @c size, @c absize or @c relsize attributes. These attributes take their
10740     * value in the WxH format, where W is the width and H the height of the
10741     * item.
10742     *
10743     * @li absize: Absolute pixel size for the item. Whatever value is set will
10744     * be the item's size regardless of any scale value the object may have
10745     * been set to. The final line height will be adjusted to fit larger items.
10746     * @li size: Similar to @c absize, but it's adjusted to the scale value set
10747     * for the object.
10748     * @li relsize: Size is adjusted for the item to fit within the current
10749     * line height.
10750     *
10751     * Besides their size, items are specificed a @c vsize value that affects
10752     * how their final size and position are calculated. The possible values
10753     * are:
10754     * @li ascent: Item will be placed within the line's baseline and its
10755     * ascent. That is, the height between the line where all characters are
10756     * positioned and the highest point in the line. For @c size and @c absize
10757     * items, the descent value will be added to the total line height to make
10758     * them fit. @c relsize items will be adjusted to fit within this space.
10759     * @li full: Items will be placed between the descent and ascent, or the
10760     * lowest point in the line and its highest.
10761     *
10762     * The next image shows different configurations of items and how they
10763     * are the previously mentioned options affect their sizes. In all cases,
10764     * the green line indicates the ascent, blue for the baseline and red for
10765     * the descent.
10766     *
10767     * @image html entry_item.png
10768     * @image latex entry_item.eps width=\textwidth
10769     *
10770     * And another one to show how size differs from absize. In the first one,
10771     * the scale value is set to 1.0, while the second one is using one of 2.0.
10772     *
10773     * @image html entry_item_scale.png
10774     * @image latex entry_item_scale.eps width=\textwidth
10775     *
10776     * After the size for an item is calculated, the entry will request an
10777     * object to place in its space. For this, the functions set with
10778     * elm_entry_item_provider_append() and related functions will be called
10779     * in order until one of them returns a @c non-NULL value. If no providers
10780     * are available, or all of them return @c NULL, then the entry falls back
10781     * to one of the internal defaults, provided the name matches with one of
10782     * them.
10783     *
10784     * All of the following are currently supported:
10785     *
10786     * - emoticon/angry
10787     * - emoticon/angry-shout
10788     * - emoticon/crazy-laugh
10789     * - emoticon/evil-laugh
10790     * - emoticon/evil
10791     * - emoticon/goggle-smile
10792     * - emoticon/grumpy
10793     * - emoticon/grumpy-smile
10794     * - emoticon/guilty
10795     * - emoticon/guilty-smile
10796     * - emoticon/haha
10797     * - emoticon/half-smile
10798     * - emoticon/happy-panting
10799     * - emoticon/happy
10800     * - emoticon/indifferent
10801     * - emoticon/kiss
10802     * - emoticon/knowing-grin
10803     * - emoticon/laugh
10804     * - emoticon/little-bit-sorry
10805     * - emoticon/love-lots
10806     * - emoticon/love
10807     * - emoticon/minimal-smile
10808     * - emoticon/not-happy
10809     * - emoticon/not-impressed
10810     * - emoticon/omg
10811     * - emoticon/opensmile
10812     * - emoticon/smile
10813     * - emoticon/sorry
10814     * - emoticon/squint-laugh
10815     * - emoticon/surprised
10816     * - emoticon/suspicious
10817     * - emoticon/tongue-dangling
10818     * - emoticon/tongue-poke
10819     * - emoticon/uh
10820     * - emoticon/unhappy
10821     * - emoticon/very-sorry
10822     * - emoticon/what
10823     * - emoticon/wink
10824     * - emoticon/worried
10825     * - emoticon/wtf
10826     *
10827     * Alternatively, an item may reference an image by its path, using
10828     * the URI form @c file:///path/to/an/image.png and the entry will then
10829     * use that image for the item.
10830     *
10831     * @section entry-files Loading and saving files
10832     *
10833     * Entries have convinience functions to load text from a file and save
10834     * changes back to it after a short delay. The automatic saving is enabled
10835     * by default, but can be disabled with elm_entry_autosave_set() and files
10836     * can be loaded directly as plain text or have any markup in them
10837     * recognized. See elm_entry_file_set() for more details.
10838     *
10839     * @section entry-signals Emitted signals
10840     *
10841     * This widget emits the following signals:
10842     *
10843     * @li "changed": The text within the entry was changed.
10844     * @li "changed,user": The text within the entry was changed because of user interaction.
10845     * @li "activated": The enter key was pressed on a single line entry.
10846     * @li "press": A mouse button has been pressed on the entry.
10847     * @li "longpressed": A mouse button has been pressed and held for a couple
10848     * seconds.
10849     * @li "clicked": The entry has been clicked (mouse press and release).
10850     * @li "clicked,double": The entry has been double clicked.
10851     * @li "clicked,triple": The entry has been triple clicked.
10852     * @li "focused": The entry has received focus.
10853     * @li "unfocused": The entry has lost focus.
10854     * @li "selection,paste": A paste of the clipboard contents was requested.
10855     * @li "selection,copy": A copy of the selected text into the clipboard was
10856     * requested.
10857     * @li "selection,cut": A cut of the selected text into the clipboard was
10858     * requested.
10859     * @li "selection,start": A selection has begun and no previous selection
10860     * existed.
10861     * @li "selection,changed": The current selection has changed.
10862     * @li "selection,cleared": The current selection has been cleared.
10863     * @li "cursor,changed": The cursor has changed position.
10864     * @li "anchor,clicked": An anchor has been clicked. The event_info
10865     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10866     * @li "anchor,in": Mouse cursor has moved into an anchor. The event_info
10867     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10868     * @li "anchor,out": Mouse cursor has moved out of an anchor. The event_info
10869     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10870     * @li "anchor,up": Mouse button has been unpressed on an anchor. The event_info
10871     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10872     * @li "anchor,down": Mouse button has been pressed on an anchor. The event_info
10873     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10874     * @li "preedit,changed": The preedit string has changed.
10875     * @li "language,changed": Program language changed.
10876     *
10877     * @section entry-examples
10878     *
10879     * An overview of the Entry API can be seen in @ref entry_example_01
10880     *
10881     * @{
10882     */
10883    /**
10884     * @typedef Elm_Entry_Anchor_Info
10885     *
10886     * The info sent in the callback for the "anchor,clicked" signals emitted
10887     * by entries.
10888     */
10889    typedef struct _Elm_Entry_Anchor_Info Elm_Entry_Anchor_Info;
10890    /**
10891     * @struct _Elm_Entry_Anchor_Info
10892     *
10893     * The info sent in the callback for the "anchor,clicked" signals emitted
10894     * by entries.
10895     */
10896    struct _Elm_Entry_Anchor_Info
10897      {
10898         const char *name; /**< The name of the anchor, as stated in its href */
10899         int         button; /**< The mouse button used to click on it */
10900         Evas_Coord  x, /**< Anchor geometry, relative to canvas */
10901                     y, /**< Anchor geometry, relative to canvas */
10902                     w, /**< Anchor geometry, relative to canvas */
10903                     h; /**< Anchor geometry, relative to canvas */
10904      };
10905    /**
10906     * @typedef Elm_Entry_Filter_Cb
10907     * This callback type is used by entry filters to modify text.
10908     * @param data The data specified as the last param when adding the filter
10909     * @param entry The entry object
10910     * @param text A pointer to the location of the text being filtered. This data can be modified,
10911     * but any additional allocations must be managed by the user.
10912     * @see elm_entry_text_filter_append
10913     * @see elm_entry_text_filter_prepend
10914     */
10915    typedef void (*Elm_Entry_Filter_Cb)(void *data, Evas_Object *entry, char **text);
10916
10917    /**
10918     * This adds an entry to @p parent object.
10919     *
10920     * By default, entries are:
10921     * @li not scrolled
10922     * @li multi-line
10923     * @li word wrapped
10924     * @li autosave is enabled
10925     *
10926     * @param parent The parent object
10927     * @return The new object or NULL if it cannot be created
10928     */
10929    EAPI Evas_Object *elm_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10930    /**
10931     * Sets the entry to single line mode.
10932     *
10933     * In single line mode, entries don't ever wrap when the text reaches the
10934     * edge, and instead they keep growing horizontally. Pressing the @c Enter
10935     * key will generate an @c "activate" event instead of adding a new line.
10936     *
10937     * When @p single_line is @c EINA_FALSE, line wrapping takes effect again
10938     * and pressing enter will break the text into a different line
10939     * without generating any events.
10940     *
10941     * @param obj The entry object
10942     * @param single_line If true, the text in the entry
10943     * will be on a single line.
10944     */
10945    EAPI void         elm_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
10946    /**
10947     * Gets whether the entry is set to be single line.
10948     *
10949     * @param obj The entry object
10950     * @return single_line If true, the text in the entry is set to display
10951     * on a single line.
10952     *
10953     * @see elm_entry_single_line_set()
10954     */
10955    EAPI Eina_Bool    elm_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10956    /**
10957     * Sets the entry to password mode.
10958     *
10959     * In password mode, entries are implicitly single line and the display of
10960     * any text in them is replaced with asterisks (*).
10961     *
10962     * @param obj The entry object
10963     * @param password If true, password mode is enabled.
10964     */
10965    EAPI void         elm_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
10966    /**
10967     * Gets whether the entry is set to password mode.
10968     *
10969     * @param obj The entry object
10970     * @return If true, the entry is set to display all characters
10971     * as asterisks (*).
10972     *
10973     * @see elm_entry_password_set()
10974     */
10975    EAPI Eina_Bool    elm_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10976    /**
10977     * This sets the text displayed within the entry to @p entry.
10978     *
10979     * @param obj The entry object
10980     * @param entry The text to be displayed
10981     *
10982     * @deprecated Use elm_object_text_set() instead.
10983     * @note Using this function bypasses text filters
10984     */
10985    EAPI void         elm_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
10986    /**
10987     * This returns the text currently shown in object @p entry.
10988     * See also elm_entry_entry_set().
10989     *
10990     * @param obj The entry object
10991     * @return The currently displayed text or NULL on failure
10992     *
10993     * @deprecated Use elm_object_text_get() instead.
10994     */
10995    EAPI const char  *elm_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10996    /**
10997     * Appends @p entry to the text of the entry.
10998     *
10999     * Adds the text in @p entry to the end of any text already present in the
11000     * widget.
11001     *
11002     * The appended text is subject to any filters set for the widget.
11003     *
11004     * @param obj The entry object
11005     * @param entry The text to be displayed
11006     *
11007     * @see elm_entry_text_filter_append()
11008     */
11009    EAPI void         elm_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
11010    /**
11011     * Gets whether the entry is empty.
11012     *
11013     * Empty means no text at all. If there are any markup tags, like an item
11014     * tag for which no provider finds anything, and no text is displayed, this
11015     * function still returns EINA_FALSE.
11016     *
11017     * @param obj The entry object
11018     * @return EINA_TRUE if the entry is empty, EINA_FALSE otherwise.
11019     */
11020    EAPI Eina_Bool    elm_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11021    /**
11022     * Gets any selected text within the entry.
11023     *
11024     * If there's any selected text in the entry, this function returns it as
11025     * a string in markup format. NULL is returned if no selection exists or
11026     * if an error occurred.
11027     *
11028     * The returned value points to an internal string and should not be freed
11029     * or modified in any way. If the @p entry object is deleted or its
11030     * contents are changed, the returned pointer should be considered invalid.
11031     *
11032     * @param obj The entry object
11033     * @return The selected text within the entry or NULL on failure
11034     */
11035    EAPI const char  *elm_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11036    /**
11037     * Inserts the given text into the entry at the current cursor position.
11038     *
11039     * This inserts text at the cursor position as if it was typed
11040     * by the user (note that this also allows markup which a user
11041     * can't just "type" as it would be converted to escaped text, so this
11042     * call can be used to insert things like emoticon items or bold push/pop
11043     * tags, other font and color change tags etc.)
11044     *
11045     * If any selection exists, it will be replaced by the inserted text.
11046     *
11047     * The inserted text is subject to any filters set for the widget.
11048     *
11049     * @param obj The entry object
11050     * @param entry The text to insert
11051     *
11052     * @see elm_entry_text_filter_append()
11053     */
11054    EAPI void         elm_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
11055    /**
11056     * Set the line wrap type to use on multi-line entries.
11057     *
11058     * Sets the wrap type used by the entry to any of the specified in
11059     * #Elm_Wrap_Type. This tells how the text will be implicitly cut into a new
11060     * line (without inserting a line break or paragraph separator) when it
11061     * reaches the far edge of the widget.
11062     *
11063     * Note that this only makes sense for multi-line entries. A widget set
11064     * to be single line will never wrap.
11065     *
11066     * @param obj The entry object
11067     * @param wrap The wrap mode to use. See #Elm_Wrap_Type for details on them
11068     */
11069    EAPI void         elm_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
11070    EINA_DEPRECATED EAPI void         elm_entry_line_char_wrap_set(Evas_Object *obj, Eina_Bool wrap) EINA_ARG_NONNULL(1);
11071    /**
11072     * Gets the wrap mode the entry was set to use.
11073     *
11074     * @param obj The entry object
11075     * @return Wrap type
11076     *
11077     * @see also elm_entry_line_wrap_set()
11078     */
11079    EAPI Elm_Wrap_Type elm_entry_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11080    /**
11081     * Sets if the entry is to be editable or not.
11082     *
11083     * By default, entries are editable and when focused, any text input by the
11084     * user will be inserted at the current cursor position. But calling this
11085     * function with @p editable as EINA_FALSE will prevent the user from
11086     * inputting text into the entry.
11087     *
11088     * The only way to change the text of a non-editable entry is to use
11089     * elm_object_text_set(), elm_entry_entry_insert() and other related
11090     * functions.
11091     *
11092     * @param obj The entry object
11093     * @param editable If EINA_TRUE, user input will be inserted in the entry,
11094     * if not, the entry is read-only and no user input is allowed.
11095     */
11096    EAPI void         elm_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
11097    /**
11098     * Gets whether the entry is editable or not.
11099     *
11100     * @param obj The entry object
11101     * @return If true, the entry is editable by the user.
11102     * If false, it is not editable by the user
11103     *
11104     * @see elm_entry_editable_set()
11105     */
11106    EAPI Eina_Bool    elm_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11107    /**
11108     * This drops any existing text selection within the entry.
11109     *
11110     * @param obj The entry object
11111     */
11112    EAPI void         elm_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
11113    /**
11114     * This selects all text within the entry.
11115     *
11116     * @param obj The entry object
11117     */
11118    EAPI void         elm_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
11119    /**
11120     * This moves the cursor one place to the right within the entry.
11121     *
11122     * @param obj The entry object
11123     * @return EINA_TRUE upon success, EINA_FALSE upon failure
11124     */
11125    EAPI Eina_Bool    elm_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
11126    /**
11127     * This moves the cursor one place to the left within the entry.
11128     *
11129     * @param obj The entry object
11130     * @return EINA_TRUE upon success, EINA_FALSE upon failure
11131     */
11132    EAPI Eina_Bool    elm_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
11133    /**
11134     * This moves the cursor one line up within the entry.
11135     *
11136     * @param obj The entry object
11137     * @return EINA_TRUE upon success, EINA_FALSE upon failure
11138     */
11139    EAPI Eina_Bool    elm_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
11140    /**
11141     * This moves the cursor one line down within the entry.
11142     *
11143     * @param obj The entry object
11144     * @return EINA_TRUE upon success, EINA_FALSE upon failure
11145     */
11146    EAPI Eina_Bool    elm_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
11147    /**
11148     * This moves the cursor to the beginning of the entry.
11149     *
11150     * @param obj The entry object
11151     */
11152    EAPI void         elm_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
11153    /**
11154     * This moves the cursor to the end of the entry.
11155     *
11156     * @param obj The entry object
11157     */
11158    EAPI void         elm_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
11159    /**
11160     * This moves the cursor to the beginning of the current line.
11161     *
11162     * @param obj The entry object
11163     */
11164    EAPI void         elm_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
11165    /**
11166     * This moves the cursor to the end of the current line.
11167     *
11168     * @param obj The entry object
11169     */
11170    EAPI void         elm_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
11171    /**
11172     * This begins a selection within the entry as though
11173     * the user were holding down the mouse button to make a selection.
11174     *
11175     * @param obj The entry object
11176     */
11177    EAPI void         elm_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
11178    /**
11179     * This ends a selection within the entry as though
11180     * the user had just released the mouse button while making a selection.
11181     *
11182     * @param obj The entry object
11183     */
11184    EAPI void         elm_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
11185    /**
11186     * Gets whether a format node exists at the current cursor position.
11187     *
11188     * A format node is anything that defines how the text is rendered. It can
11189     * be a visible format node, such as a line break or a paragraph separator,
11190     * or an invisible one, such as bold begin or end tag.
11191     * This function returns whether any format node exists at the current
11192     * cursor position.
11193     *
11194     * @param obj The entry object
11195     * @return EINA_TRUE if the current cursor position contains a format node,
11196     * EINA_FALSE otherwise.
11197     *
11198     * @see elm_entry_cursor_is_visible_format_get()
11199     */
11200    EAPI Eina_Bool    elm_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11201    /**
11202     * Gets if the current cursor position holds a visible format node.
11203     *
11204     * @param obj The entry object
11205     * @return EINA_TRUE if the current cursor is a visible format, EINA_FALSE
11206     * if it's an invisible one or no format exists.
11207     *
11208     * @see elm_entry_cursor_is_format_get()
11209     */
11210    EAPI Eina_Bool    elm_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11211    /**
11212     * Gets the character pointed by the cursor at its current position.
11213     *
11214     * This function returns a string with the utf8 character stored at the
11215     * current cursor position.
11216     * Only the text is returned, any format that may exist will not be part
11217     * of the return value.
11218     *
11219     * @param obj The entry object
11220     * @return The text pointed by the cursors.
11221     */
11222    EAPI const char  *elm_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11223    /**
11224     * This function returns the geometry of the cursor.
11225     *
11226     * It's useful if you want to draw something on the cursor (or where it is),
11227     * or for example in the case of scrolled entry where you want to show the
11228     * cursor.
11229     *
11230     * @param obj The entry object
11231     * @param x returned geometry
11232     * @param y returned geometry
11233     * @param w returned geometry
11234     * @param h returned geometry
11235     * @return EINA_TRUE upon success, EINA_FALSE upon failure
11236     */
11237    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);
11238    /**
11239     * Sets the cursor position in the entry to the given value
11240     *
11241     * The value in @p pos is the index of the character position within the
11242     * contents of the string as returned by elm_entry_cursor_pos_get().
11243     *
11244     * @param obj The entry object
11245     * @param pos The position of the cursor
11246     */
11247    EAPI void         elm_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
11248    /**
11249     * Retrieves the current position of the cursor in the entry
11250     *
11251     * @param obj The entry object
11252     * @return The cursor position
11253     */
11254    EAPI int          elm_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11255    /**
11256     * This executes a "cut" action on the selected text in the entry.
11257     *
11258     * @param obj The entry object
11259     */
11260    EAPI void         elm_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
11261    /**
11262     * This executes a "copy" action on the selected text in the entry.
11263     *
11264     * @param obj The entry object
11265     */
11266    EAPI void         elm_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
11267    /**
11268     * This executes a "paste" action in the entry.
11269     *
11270     * @param obj The entry object
11271     */
11272    EAPI void         elm_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
11273    /**
11274     * This clears and frees the items in a entry's contextual (longpress)
11275     * menu.
11276     *
11277     * @param obj The entry object
11278     *
11279     * @see elm_entry_context_menu_item_add()
11280     */
11281    EAPI void         elm_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
11282    /**
11283     * This adds an item to the entry's contextual menu.
11284     *
11285     * A longpress on an entry will make the contextual menu show up, if this
11286     * hasn't been disabled with elm_entry_context_menu_disabled_set().
11287     * By default, this menu provides a few options like enabling selection mode,
11288     * which is useful on embedded devices that need to be explicit about it,
11289     * and when a selection exists it also shows the copy and cut actions.
11290     *
11291     * With this function, developers can add other options to this menu to
11292     * perform any action they deem necessary.
11293     *
11294     * @param obj The entry object
11295     * @param label The item's text label
11296     * @param icon_file The item's icon file
11297     * @param icon_type The item's icon type
11298     * @param func The callback to execute when the item is clicked
11299     * @param data The data to associate with the item for related functions
11300     */
11301    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);
11302    /**
11303     * This disables the entry's contextual (longpress) menu.
11304     *
11305     * @param obj The entry object
11306     * @param disabled If true, the menu is disabled
11307     */
11308    EAPI void         elm_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
11309    /**
11310     * This returns whether the entry's contextual (longpress) menu is
11311     * disabled.
11312     *
11313     * @param obj The entry object
11314     * @return If true, the menu is disabled
11315     */
11316    EAPI Eina_Bool    elm_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11317    /**
11318     * This appends a custom item provider to the list for that entry
11319     *
11320     * This appends the given callback. The list is walked from beginning to end
11321     * with each function called given the item href string in the text. If the
11322     * function returns an object handle other than NULL (it should create an
11323     * object to do this), then this object is used to replace that item. If
11324     * not the next provider is called until one provides an item object, or the
11325     * default provider in entry does.
11326     *
11327     * @param obj The entry object
11328     * @param func The function called to provide the item object
11329     * @param data The data passed to @p func
11330     *
11331     * @see @ref entry-items
11332     */
11333    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);
11334    /**
11335     * This prepends a custom item provider to the list for that entry
11336     *
11337     * This prepends the given callback. See elm_entry_item_provider_append() for
11338     * more information
11339     *
11340     * @param obj The entry object
11341     * @param func The function called to provide the item object
11342     * @param data The data passed to @p func
11343     */
11344    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);
11345    /**
11346     * This removes a custom item provider to the list for that entry
11347     *
11348     * This removes the given callback. See elm_entry_item_provider_append() for
11349     * more information
11350     *
11351     * @param obj The entry object
11352     * @param func The function called to provide the item object
11353     * @param data The data passed to @p func
11354     */
11355    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);
11356    /**
11357     * Append a filter function for text inserted in the entry
11358     *
11359     * Append the given callback to the list. This functions will be called
11360     * whenever any text is inserted into the entry, with the text to be inserted
11361     * as a parameter. The callback function is free to alter the text in any way
11362     * it wants, but it must remember to free the given pointer and update it.
11363     * If the new text is to be discarded, the function can free it and set its
11364     * text parameter to NULL. This will also prevent any following filters from
11365     * being called.
11366     *
11367     * @param obj The entry object
11368     * @param func The function to use as text filter
11369     * @param data User data to pass to @p func
11370     */
11371    EAPI void         elm_entry_text_filter_append(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11372    /**
11373     * Prepend a filter function for text insdrted in the entry
11374     *
11375     * Prepend the given callback to the list. See elm_entry_text_filter_append()
11376     * for more information
11377     *
11378     * @param obj The entry object
11379     * @param func The function to use as text filter
11380     * @param data User data to pass to @p func
11381     */
11382    EAPI void         elm_entry_text_filter_prepend(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11383    /**
11384     * Remove a filter from the list
11385     *
11386     * Removes the given callback from the filter list. See
11387     * elm_entry_text_filter_append() for more information.
11388     *
11389     * @param obj The entry object
11390     * @param func The filter function to remove
11391     * @param data The user data passed when adding the function
11392     */
11393    EAPI void         elm_entry_text_filter_remove(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11394    /**
11395     * This converts a markup (HTML-like) string into UTF-8.
11396     *
11397     * The returned string is a malloc'ed buffer and it should be freed when
11398     * not needed anymore.
11399     *
11400     * @param s The string (in markup) to be converted
11401     * @return The converted string (in UTF-8). It should be freed.
11402     */
11403    EAPI char        *elm_entry_markup_to_utf8(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
11404    /**
11405     * This converts a UTF-8 string into markup (HTML-like).
11406     *
11407     * The returned string is a malloc'ed buffer and it should be freed when
11408     * not needed anymore.
11409     *
11410     * @param s The string (in UTF-8) to be converted
11411     * @return The converted string (in markup). It should be freed.
11412     */
11413    EAPI char        *elm_entry_utf8_to_markup(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
11414    /**
11415     * This sets the file (and implicitly loads it) for the text to display and
11416     * then edit. All changes are written back to the file after a short delay if
11417     * the entry object is set to autosave (which is the default).
11418     *
11419     * If the entry had any other file set previously, any changes made to it
11420     * will be saved if the autosave feature is enabled, otherwise, the file
11421     * will be silently discarded and any non-saved changes will be lost.
11422     *
11423     * @param obj The entry object
11424     * @param file The path to the file to load and save
11425     * @param format The file format
11426     */
11427    EAPI void         elm_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
11428    /**
11429     * Gets the file being edited by the entry.
11430     *
11431     * This function can be used to retrieve any file set on the entry for
11432     * edition, along with the format used to load and save it.
11433     *
11434     * @param obj The entry object
11435     * @param file The path to the file to load and save
11436     * @param format The file format
11437     */
11438    EAPI void         elm_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
11439    /**
11440     * This function writes any changes made to the file set with
11441     * elm_entry_file_set()
11442     *
11443     * @param obj The entry object
11444     */
11445    EAPI void         elm_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
11446    /**
11447     * This sets the entry object to 'autosave' the loaded text file or not.
11448     *
11449     * @param obj The entry object
11450     * @param autosave Autosave the loaded file or not
11451     *
11452     * @see elm_entry_file_set()
11453     */
11454    EAPI void         elm_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
11455    /**
11456     * This gets the entry object's 'autosave' status.
11457     *
11458     * @param obj The entry object
11459     * @return Autosave the loaded file or not
11460     *
11461     * @see elm_entry_file_set()
11462     */
11463    EAPI Eina_Bool    elm_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11464    /**
11465     * Control pasting of text and images for the widget.
11466     *
11467     * Normally the entry allows both text and images to be pasted.  By setting
11468     * textonly to be true, this prevents images from being pasted.
11469     *
11470     * Note this only changes the behaviour of text.
11471     *
11472     * @param obj The entry object
11473     * @param textonly paste mode - EINA_TRUE is text only, EINA_FALSE is
11474     * text+image+other.
11475     */
11476    EAPI void         elm_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
11477    /**
11478     * Getting elm_entry text paste/drop mode.
11479     *
11480     * In textonly mode, only text may be pasted or dropped into the widget.
11481     *
11482     * @param obj The entry object
11483     * @return If the widget only accepts text from pastes.
11484     */
11485    EAPI Eina_Bool    elm_entry_cnp_textonly_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11486    /**
11487     * Enable or disable scrolling in entry
11488     *
11489     * Normally the entry is not scrollable unless you enable it with this call.
11490     *
11491     * @param obj The entry object
11492     * @param scroll EINA_TRUE if it is to be scrollable, EINA_FALSE otherwise
11493     */
11494    EAPI void         elm_entry_scrollable_set(Evas_Object *obj, Eina_Bool scroll);
11495    /**
11496     * Get the scrollable state of the entry
11497     *
11498     * Normally the entry is not scrollable. This gets the scrollable state
11499     * of the entry. See elm_entry_scrollable_set() for more information.
11500     *
11501     * @param obj The entry object
11502     * @return The scrollable state
11503     */
11504    EAPI Eina_Bool    elm_entry_scrollable_get(const Evas_Object *obj);
11505    /**
11506     * This sets a widget to be displayed to the left of a scrolled entry.
11507     *
11508     * @param obj The scrolled entry object
11509     * @param icon The widget to display on the left side of the scrolled
11510     * entry.
11511     *
11512     * @note A previously set widget will be destroyed.
11513     * @note If the object being set does not have minimum size hints set,
11514     * it won't get properly displayed.
11515     *
11516     * @see elm_entry_end_set()
11517     */
11518    EAPI void         elm_entry_icon_set(Evas_Object *obj, Evas_Object *icon);
11519    /**
11520     * Gets the leftmost widget of the scrolled entry. This object is
11521     * owned by the scrolled entry and should not be modified.
11522     *
11523     * @param obj The scrolled entry object
11524     * @return the left widget inside the scroller
11525     */
11526    EAPI Evas_Object *elm_entry_icon_get(const Evas_Object *obj);
11527    /**
11528     * Unset the leftmost widget of the scrolled entry, unparenting and
11529     * returning it.
11530     *
11531     * @param obj The scrolled entry object
11532     * @return the previously set icon sub-object of this entry, on
11533     * success.
11534     *
11535     * @see elm_entry_icon_set()
11536     */
11537    EAPI Evas_Object *elm_entry_icon_unset(Evas_Object *obj);
11538    /**
11539     * Sets the visibility of the left-side widget of the scrolled entry,
11540     * set by elm_entry_icon_set().
11541     *
11542     * @param obj The scrolled entry object
11543     * @param setting EINA_TRUE if the object should be displayed,
11544     * EINA_FALSE if not.
11545     */
11546    EAPI void         elm_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting);
11547    /**
11548     * This sets a widget to be displayed to the end of a scrolled entry.
11549     *
11550     * @param obj The scrolled entry object
11551     * @param end The widget to display on the right side of the scrolled
11552     * entry.
11553     *
11554     * @note A previously set widget will be destroyed.
11555     * @note If the object being set does not have minimum size hints set,
11556     * it won't get properly displayed.
11557     *
11558     * @see elm_entry_icon_set
11559     */
11560    EAPI void         elm_entry_end_set(Evas_Object *obj, Evas_Object *end);
11561    /**
11562     * Gets the endmost widget of the scrolled entry. This object is owned
11563     * by the scrolled entry and should not be modified.
11564     *
11565     * @param obj The scrolled entry object
11566     * @return the right widget inside the scroller
11567     */
11568    EAPI Evas_Object *elm_entry_end_get(const Evas_Object *obj);
11569    /**
11570     * Unset the endmost widget of the scrolled entry, unparenting and
11571     * returning it.
11572     *
11573     * @param obj The scrolled entry object
11574     * @return the previously set icon sub-object of this entry, on
11575     * success.
11576     *
11577     * @see elm_entry_icon_set()
11578     */
11579    EAPI Evas_Object *elm_entry_end_unset(Evas_Object *obj);
11580    /**
11581     * Sets the visibility of the end widget of the scrolled entry, set by
11582     * elm_entry_end_set().
11583     *
11584     * @param obj The scrolled entry object
11585     * @param setting EINA_TRUE if the object should be displayed,
11586     * EINA_FALSE if not.
11587     */
11588    EAPI void         elm_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting);
11589    /**
11590     * This sets the scrolled entry's scrollbar policy (ie. enabling/disabling
11591     * them).
11592     *
11593     * Setting an entry to single-line mode with elm_entry_single_line_set()
11594     * will automatically disable the display of scrollbars when the entry
11595     * moves inside its scroller.
11596     *
11597     * @param obj The scrolled entry object
11598     * @param h The horizontal scrollbar policy to apply
11599     * @param v The vertical scrollbar policy to apply
11600     */
11601    EAPI void         elm_entry_scrollbar_policy_set(Evas_Object *obj, Elm_Scroller_Policy h, Elm_Scroller_Policy v);
11602    /**
11603     * This enables/disables bouncing within the entry.
11604     *
11605     * This function sets whether the entry will bounce when scrolling reaches
11606     * the end of the contained entry.
11607     *
11608     * @param obj The scrolled entry object
11609     * @param h The horizontal bounce state
11610     * @param v The vertical bounce state
11611     */
11612    EAPI void         elm_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
11613    /**
11614     * Get the bounce mode
11615     *
11616     * @param obj The Entry object
11617     * @param h_bounce Allow bounce horizontally
11618     * @param v_bounce Allow bounce vertically
11619     */
11620    EAPI void         elm_entry_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
11621
11622    /* pre-made filters for entries */
11623    /**
11624     * @typedef Elm_Entry_Filter_Limit_Size
11625     *
11626     * Data for the elm_entry_filter_limit_size() entry filter.
11627     */
11628    typedef struct _Elm_Entry_Filter_Limit_Size Elm_Entry_Filter_Limit_Size;
11629    /**
11630     * @struct _Elm_Entry_Filter_Limit_Size
11631     *
11632     * Data for the elm_entry_filter_limit_size() entry filter.
11633     */
11634    struct _Elm_Entry_Filter_Limit_Size
11635      {
11636         int max_char_count; /**< The maximum number of characters allowed. */
11637         int max_byte_count; /**< The maximum number of bytes allowed*/
11638      };
11639    /**
11640     * Filter inserted text based on user defined character and byte limits
11641     *
11642     * Add this filter to an entry to limit the characters that it will accept
11643     * based the the contents of the provided #Elm_Entry_Filter_Limit_Size.
11644     * The funtion works on the UTF-8 representation of the string, converting
11645     * it from the set markup, thus not accounting for any format in it.
11646     *
11647     * The user must create an #Elm_Entry_Filter_Limit_Size structure and pass
11648     * it as data when setting the filter. In it, it's possible to set limits
11649     * by character count or bytes (any of them is disabled if 0), and both can
11650     * be set at the same time. In that case, it first checks for characters,
11651     * then bytes.
11652     *
11653     * The function will cut the inserted text in order to allow only the first
11654     * number of characters that are still allowed. The cut is made in
11655     * characters, even when limiting by bytes, in order to always contain
11656     * valid ones and avoid half unicode characters making it in.
11657     *
11658     * This filter, like any others, does not apply when setting the entry text
11659     * directly with elm_object_text_set() (or the deprecated
11660     * elm_entry_entry_set()).
11661     */
11662    EAPI void         elm_entry_filter_limit_size(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 2, 3);
11663    /**
11664     * @typedef Elm_Entry_Filter_Accept_Set
11665     *
11666     * Data for the elm_entry_filter_accept_set() entry filter.
11667     */
11668    typedef struct _Elm_Entry_Filter_Accept_Set Elm_Entry_Filter_Accept_Set;
11669    /**
11670     * @struct _Elm_Entry_Filter_Accept_Set
11671     *
11672     * Data for the elm_entry_filter_accept_set() entry filter.
11673     */
11674    struct _Elm_Entry_Filter_Accept_Set
11675      {
11676         const char *accepted; /**< Set of characters accepted in the entry. */
11677         const char *rejected; /**< Set of characters rejected from the entry. */
11678      };
11679    /**
11680     * Filter inserted text based on accepted or rejected sets of characters
11681     *
11682     * Add this filter to an entry to restrict the set of accepted characters
11683     * based on the sets in the provided #Elm_Entry_Filter_Accept_Set.
11684     * This structure contains both accepted and rejected sets, but they are
11685     * mutually exclusive.
11686     *
11687     * The @c accepted set takes preference, so if it is set, the filter will
11688     * only work based on the accepted characters, ignoring anything in the
11689     * @c rejected value. If @c accepted is @c NULL, then @c rejected is used.
11690     *
11691     * In both cases, the function filters by matching utf8 characters to the
11692     * raw markup text, so it can be used to remove formatting tags.
11693     *
11694     * This filter, like any others, does not apply when setting the entry text
11695     * directly with elm_object_text_set() (or the deprecated
11696     * elm_entry_entry_set()).
11697     */
11698    EAPI void         elm_entry_filter_accept_set(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 3);
11699    /**
11700     * Set the input panel layout of the entry
11701     *
11702     * @param obj The entry object
11703     * @param layout layout type
11704     */
11705    EAPI void elm_entry_input_panel_layout_set(Evas_Object *obj, Elm_Input_Panel_Layout layout) EINA_ARG_NONNULL(1);
11706    /**
11707     * Get the input panel layout of the entry
11708     *
11709     * @param obj The entry object
11710     * @return layout type
11711     *
11712     * @see elm_entry_input_panel_layout_set
11713     */
11714    EAPI Elm_Input_Panel_Layout elm_entry_input_panel_layout_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
11715    /**
11716     * Set the autocapitalization type on the immodule.
11717     *
11718     * @param obj The entry object
11719     * @param autocapital_type The type of autocapitalization
11720     */
11721    EAPI void         elm_entry_autocapital_type_set(Evas_Object *obj, Elm_Autocapital_Type autocapital_type) EINA_ARG_NONNULL(1);
11722    /**
11723     * Retrieve the autocapitalization type on the immodule.
11724     *
11725     * @param obj The entry object
11726     * @return autocapitalization type
11727     */
11728    EAPI Elm_Autocapital_Type elm_entry_autocapital_type_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
11729    /**
11730     * Sets the attribute to show the input panel automatically.
11731     *
11732     * @param obj The entry object
11733     * @param enabled If true, the input panel is appeared when entry is clicked or has a focus
11734     */
11735    EAPI void elm_entry_input_panel_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
11736    /**
11737     * Retrieve the attribute to show the input panel automatically.
11738     *
11739     * @param obj The entry object
11740     * @return EINA_TRUE if input panel will be appeared when the entry is clicked or has a focus, EINA_FALSE otherwise
11741     */
11742    EAPI Eina_Bool elm_entry_input_panel_enabled_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
11743
11744    EAPI void         elm_entry_background_color_set(Evas_Object *obj, unsigned int r, unsigned int g, unsigned int b, unsigned int a);
11745    EAPI void         elm_entry_autocapitalization_set(Evas_Object *obj, Eina_Bool autocap);
11746    EAPI void         elm_entry_autoperiod_set(Evas_Object *obj, Eina_Bool autoperiod);
11747    EAPI void         elm_entry_autoenable_returnkey_set(Evas_Object *obj, Eina_Bool on);
11748    EAPI Ecore_IMF_Context *elm_entry_imf_context_get(Evas_Object *obj);
11749    EAPI void         elm_entry_matchlist_set(Evas_Object *obj, Eina_List *match_list, Eina_Bool case_sensitive);
11750    EAPI void         elm_entry_magnifier_type_set(Evas_Object *obj, int type) EINA_ARG_NONNULL(1);
11751
11752    EINA_DEPRECATED EAPI void         elm_entry_wrap_width_set(Evas_Object *obj, Evas_Coord w);
11753    EINA_DEPRECATED EAPI Evas_Coord   elm_entry_wrap_width_get(const Evas_Object *obj);
11754    EINA_DEPRECATED EAPI void         elm_entry_fontsize_set(Evas_Object *obj, int fontsize);
11755    EINA_DEPRECATED EAPI void         elm_entry_text_color_set(Evas_Object *obj, unsigned int r, unsigned int g, unsigned int b, unsigned int a);
11756    EINA_DEPRECATED EAPI void         elm_entry_text_align_set(Evas_Object *obj, const char *alignmode);
11757
11758    /**
11759     * @}
11760     */
11761
11762    /* composite widgets - these basically put together basic widgets above
11763     * in convenient packages that do more than basic stuff */
11764
11765    /* anchorview */
11766    /**
11767     * @defgroup Anchorview Anchorview
11768     *
11769     * @image html img/widget/anchorview/preview-00.png
11770     * @image latex img/widget/anchorview/preview-00.eps
11771     *
11772     * Anchorview is for displaying text that contains markup with anchors
11773     * like <c>\<a href=1234\>something\</\></c> in it.
11774     *
11775     * Besides being styled differently, the anchorview widget provides the
11776     * necessary functionality so that clicking on these anchors brings up a
11777     * popup with user defined content such as "call", "add to contacts" or
11778     * "open web page". This popup is provided using the @ref Hover widget.
11779     *
11780     * This widget is very similar to @ref Anchorblock, so refer to that
11781     * widget for an example. The only difference Anchorview has is that the
11782     * widget is already provided with scrolling functionality, so if the
11783     * text set to it is too large to fit in the given space, it will scroll,
11784     * whereas the @ref Anchorblock widget will keep growing to ensure all the
11785     * text can be displayed.
11786     *
11787     * This widget emits the following signals:
11788     * @li "anchor,clicked": will be called when an anchor is clicked. The
11789     * @p event_info parameter on the callback will be a pointer of type
11790     * ::Elm_Entry_Anchorview_Info.
11791     *
11792     * See @ref Anchorblock for an example on how to use both of them.
11793     *
11794     * @see Anchorblock
11795     * @see Entry
11796     * @see Hover
11797     *
11798     * @{
11799     */
11800    /**
11801     * @typedef Elm_Entry_Anchorview_Info
11802     *
11803     * The info sent in the callback for "anchor,clicked" signals emitted by
11804     * the Anchorview widget.
11805     */
11806    typedef struct _Elm_Entry_Anchorview_Info Elm_Entry_Anchorview_Info;
11807    /**
11808     * @struct _Elm_Entry_Anchorview_Info
11809     *
11810     * The info sent in the callback for "anchor,clicked" signals emitted by
11811     * the Anchorview widget.
11812     */
11813    struct _Elm_Entry_Anchorview_Info
11814      {
11815         const char     *name; /**< Name of the anchor, as indicated in its href
11816                                    attribute */
11817         int             button; /**< The mouse button used to click on it */
11818         Evas_Object    *hover; /**< The hover object to use for the popup */
11819         struct {
11820              Evas_Coord    x, y, w, h;
11821         } anchor, /**< Geometry selection of text used as anchor */
11822           hover_parent; /**< Geometry of the object used as parent by the
11823                              hover */
11824         Eina_Bool       hover_left : 1; /**< Hint indicating if there's space
11825                                              for content on the left side of
11826                                              the hover. Before calling the
11827                                              callback, the widget will make the
11828                                              necessary calculations to check
11829                                              which sides are fit to be set with
11830                                              content, based on the position the
11831                                              hover is activated and its distance
11832                                              to the edges of its parent object
11833                                              */
11834         Eina_Bool       hover_right : 1; /**< Hint indicating content fits on
11835                                               the right side of the hover.
11836                                               See @ref hover_left */
11837         Eina_Bool       hover_top : 1; /**< Hint indicating content fits on top
11838                                             of the hover. See @ref hover_left */
11839         Eina_Bool       hover_bottom : 1; /**< Hint indicating content fits
11840                                                below the hover. See @ref
11841                                                hover_left */
11842      };
11843    /**
11844     * Add a new Anchorview object
11845     *
11846     * @param parent The parent object
11847     * @return The new object or NULL if it cannot be created
11848     */
11849    EAPI Evas_Object *elm_anchorview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11850    /**
11851     * Set the text to show in the anchorview
11852     *
11853     * Sets the text of the anchorview to @p text. This text can include markup
11854     * format tags, including <c>\<a href=anchorname\></c> to begin a segment of
11855     * text that will be specially styled and react to click events, ended with
11856     * either of \</a\> or \</\>. When clicked, the anchor will emit an
11857     * "anchor,clicked" signal that you can attach a callback to with
11858     * evas_object_smart_callback_add(). The name of the anchor given in the
11859     * event info struct will be the one set in the href attribute, in this
11860     * case, anchorname.
11861     *
11862     * Other markup can be used to style the text in different ways, but it's
11863     * up to the style defined in the theme which tags do what.
11864     * @deprecated use elm_object_text_set() instead.
11865     */
11866    EINA_DEPRECATED EAPI void         elm_anchorview_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
11867    /**
11868     * Get the markup text set for the anchorview
11869     *
11870     * Retrieves the text set on the anchorview, with markup tags included.
11871     *
11872     * @param obj The anchorview object
11873     * @return The markup text set or @c NULL if nothing was set or an error
11874     * occurred
11875     * @deprecated use elm_object_text_set() instead.
11876     */
11877    EINA_DEPRECATED EAPI const char  *elm_anchorview_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11878    /**
11879     * Set the parent of the hover popup
11880     *
11881     * Sets the parent object to use by the hover created by the anchorview
11882     * when an anchor is clicked. See @ref Hover for more details on this.
11883     * If no parent is set, the same anchorview object will be used.
11884     *
11885     * @param obj The anchorview object
11886     * @param parent The object to use as parent for the hover
11887     */
11888    EAPI void         elm_anchorview_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
11889    /**
11890     * Get the parent of the hover popup
11891     *
11892     * Get the object used as parent for the hover created by the anchorview
11893     * widget. See @ref Hover for more details on this.
11894     *
11895     * @param obj The anchorview object
11896     * @return The object used as parent for the hover, NULL if none is set.
11897     */
11898    EAPI Evas_Object *elm_anchorview_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11899    /**
11900     * Set the style that the hover should use
11901     *
11902     * When creating the popup hover, anchorview will request that it's
11903     * themed according to @p style.
11904     *
11905     * @param obj The anchorview object
11906     * @param style The style to use for the underlying hover
11907     *
11908     * @see elm_object_style_set()
11909     */
11910    EAPI void         elm_anchorview_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
11911    /**
11912     * Get the style that the hover should use
11913     *
11914     * Get the style the hover created by anchorview will use.
11915     *
11916     * @param obj The anchorview object
11917     * @return The style to use by the hover. NULL means the default is used.
11918     *
11919     * @see elm_object_style_set()
11920     */
11921    EAPI const char  *elm_anchorview_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11922    /**
11923     * Ends the hover popup in the anchorview
11924     *
11925     * When an anchor is clicked, the anchorview widget will create a hover
11926     * object to use as a popup with user provided content. This function
11927     * terminates this popup, returning the anchorview to its normal state.
11928     *
11929     * @param obj The anchorview object
11930     */
11931    EAPI void         elm_anchorview_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
11932    /**
11933     * Set bouncing behaviour when the scrolled content reaches an edge
11934     *
11935     * Tell the internal scroller object whether it should bounce or not
11936     * when it reaches the respective edges for each axis.
11937     *
11938     * @param obj The anchorview object
11939     * @param h_bounce Whether to bounce or not in the horizontal axis
11940     * @param v_bounce Whether to bounce or not in the vertical axis
11941     *
11942     * @see elm_scroller_bounce_set()
11943     */
11944    EAPI void         elm_anchorview_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
11945    /**
11946     * Get the set bouncing behaviour of the internal scroller
11947     *
11948     * Get whether the internal scroller should bounce when the edge of each
11949     * axis is reached scrolling.
11950     *
11951     * @param obj The anchorview object
11952     * @param h_bounce Pointer where to store the bounce state of the horizontal
11953     *                 axis
11954     * @param v_bounce Pointer where to store the bounce state of the vertical
11955     *                 axis
11956     *
11957     * @see elm_scroller_bounce_get()
11958     */
11959    EAPI void         elm_anchorview_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
11960    /**
11961     * Appends a custom item provider to the given anchorview
11962     *
11963     * Appends the given function to the list of items providers. This list is
11964     * called, one function at a time, with the given @p data pointer, the
11965     * anchorview object and, in the @p item parameter, the item name as
11966     * referenced in its href string. Following functions in the list will be
11967     * called in order until one of them returns something different to NULL,
11968     * which should be an Evas_Object which will be used in place of the item
11969     * element.
11970     *
11971     * Items in the markup text take the form \<item relsize=16x16 vsize=full
11972     * href=item/name\>\</item\>
11973     *
11974     * @param obj The anchorview object
11975     * @param func The function to add to the list of providers
11976     * @param data User data that will be passed to the callback function
11977     *
11978     * @see elm_entry_item_provider_append()
11979     */
11980    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);
11981    /**
11982     * Prepend a custom item provider to the given anchorview
11983     *
11984     * Like elm_anchorview_item_provider_append(), but it adds the function
11985     * @p func to the beginning of the list, instead of the end.
11986     *
11987     * @param obj The anchorview object
11988     * @param func The function to add to the list of providers
11989     * @param data User data that will be passed to the callback function
11990     */
11991    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);
11992    /**
11993     * Remove a custom item provider from the list of the given anchorview
11994     *
11995     * Removes the function and data pairing that matches @p func and @p data.
11996     * That is, unless the same function and same user data are given, the
11997     * function will not be removed from the list. This allows us to add the
11998     * same callback several times, with different @p data pointers and be
11999     * able to remove them later without conflicts.
12000     *
12001     * @param obj The anchorview object
12002     * @param func The function to remove from the list
12003     * @param data The data matching the function to remove from the list
12004     */
12005    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);
12006    /**
12007     * @}
12008     */
12009
12010    /* anchorblock */
12011    /**
12012     * @defgroup Anchorblock Anchorblock
12013     *
12014     * @image html img/widget/anchorblock/preview-00.png
12015     * @image latex img/widget/anchorblock/preview-00.eps
12016     *
12017     * Anchorblock is for displaying text that contains markup with anchors
12018     * like <c>\<a href=1234\>something\</\></c> in it.
12019     *
12020     * Besides being styled differently, the anchorblock widget provides the
12021     * necessary functionality so that clicking on these anchors brings up a
12022     * popup with user defined content such as "call", "add to contacts" or
12023     * "open web page". This popup is provided using the @ref Hover widget.
12024     *
12025     * This widget emits the following signals:
12026     * @li "anchor,clicked": will be called when an anchor is clicked. The
12027     * @p event_info parameter on the callback will be a pointer of type
12028     * ::Elm_Entry_Anchorblock_Info.
12029     *
12030     * @see Anchorview
12031     * @see Entry
12032     * @see Hover
12033     *
12034     * Since examples are usually better than plain words, we might as well
12035     * try @ref tutorial_anchorblock_example "one".
12036     */
12037    /**
12038     * @addtogroup Anchorblock
12039     * @{
12040     */
12041    /**
12042     * @typedef Elm_Entry_Anchorblock_Info
12043     *
12044     * The info sent in the callback for "anchor,clicked" signals emitted by
12045     * the Anchorblock widget.
12046     */
12047    typedef struct _Elm_Entry_Anchorblock_Info Elm_Entry_Anchorblock_Info;
12048    /**
12049     * @struct _Elm_Entry_Anchorblock_Info
12050     *
12051     * The info sent in the callback for "anchor,clicked" signals emitted by
12052     * the Anchorblock widget.
12053     */
12054    struct _Elm_Entry_Anchorblock_Info
12055      {
12056         const char     *name; /**< Name of the anchor, as indicated in its href
12057                                    attribute */
12058         int             button; /**< The mouse button used to click on it */
12059         Evas_Object    *hover; /**< The hover object to use for the popup */
12060         struct {
12061              Evas_Coord    x, y, w, h;
12062         } anchor, /**< Geometry selection of text used as anchor */
12063           hover_parent; /**< Geometry of the object used as parent by the
12064                              hover */
12065         Eina_Bool       hover_left : 1; /**< Hint indicating if there's space
12066                                              for content on the left side of
12067                                              the hover. Before calling the
12068                                              callback, the widget will make the
12069                                              necessary calculations to check
12070                                              which sides are fit to be set with
12071                                              content, based on the position the
12072                                              hover is activated and its distance
12073                                              to the edges of its parent object
12074                                              */
12075         Eina_Bool       hover_right : 1; /**< Hint indicating content fits on
12076                                               the right side of the hover.
12077                                               See @ref hover_left */
12078         Eina_Bool       hover_top : 1; /**< Hint indicating content fits on top
12079                                             of the hover. See @ref hover_left */
12080         Eina_Bool       hover_bottom : 1; /**< Hint indicating content fits
12081                                                below the hover. See @ref
12082                                                hover_left */
12083      };
12084    /**
12085     * Add a new Anchorblock object
12086     *
12087     * @param parent The parent object
12088     * @return The new object or NULL if it cannot be created
12089     */
12090    EAPI Evas_Object *elm_anchorblock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12091    /**
12092     * Set the text to show in the anchorblock
12093     *
12094     * Sets the text of the anchorblock to @p text. This text can include markup
12095     * format tags, including <c>\<a href=anchorname\></a></c> to begin a segment
12096     * of text that will be specially styled and react to click events, ended
12097     * with either of \</a\> or \</\>. When clicked, the anchor will emit an
12098     * "anchor,clicked" signal that you can attach a callback to with
12099     * evas_object_smart_callback_add(). The name of the anchor given in the
12100     * event info struct will be the one set in the href attribute, in this
12101     * case, anchorname.
12102     *
12103     * Other markup can be used to style the text in different ways, but it's
12104     * up to the style defined in the theme which tags do what.
12105     * @deprecated use elm_object_text_set() instead.
12106     */
12107    EINA_DEPRECATED EAPI void         elm_anchorblock_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
12108    /**
12109     * Get the markup text set for the anchorblock
12110     *
12111     * Retrieves the text set on the anchorblock, with markup tags included.
12112     *
12113     * @param obj The anchorblock object
12114     * @return The markup text set or @c NULL if nothing was set or an error
12115     * occurred
12116     * @deprecated use elm_object_text_set() instead.
12117     */
12118    EINA_DEPRECATED EAPI const char  *elm_anchorblock_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12119    /**
12120     * Set the parent of the hover popup
12121     *
12122     * Sets the parent object to use by the hover created by the anchorblock
12123     * when an anchor is clicked. See @ref Hover for more details on this.
12124     *
12125     * @param obj The anchorblock object
12126     * @param parent The object to use as parent for the hover
12127     */
12128    EAPI void         elm_anchorblock_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
12129    /**
12130     * Get the parent of the hover popup
12131     *
12132     * Get the object used as parent for the hover created by the anchorblock
12133     * widget. See @ref Hover for more details on this.
12134     * If no parent is set, the same anchorblock object will be used.
12135     *
12136     * @param obj The anchorblock object
12137     * @return The object used as parent for the hover, NULL if none is set.
12138     */
12139    EAPI Evas_Object *elm_anchorblock_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12140    /**
12141     * Set the style that the hover should use
12142     *
12143     * When creating the popup hover, anchorblock will request that it's
12144     * themed according to @p style.
12145     *
12146     * @param obj The anchorblock object
12147     * @param style The style to use for the underlying hover
12148     *
12149     * @see elm_object_style_set()
12150     */
12151    EAPI void         elm_anchorblock_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
12152    /**
12153     * Get the style that the hover should use
12154     *
12155     * Get the style, the hover created by anchorblock will use.
12156     *
12157     * @param obj The anchorblock object
12158     * @return The style to use by the hover. NULL means the default is used.
12159     *
12160     * @see elm_object_style_set()
12161     */
12162    EAPI const char  *elm_anchorblock_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12163    /**
12164     * Ends the hover popup in the anchorblock
12165     *
12166     * When an anchor is clicked, the anchorblock widget will create a hover
12167     * object to use as a popup with user provided content. This function
12168     * terminates this popup, returning the anchorblock to its normal state.
12169     *
12170     * @param obj The anchorblock object
12171     */
12172    EAPI void         elm_anchorblock_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
12173    /**
12174     * Appends a custom item provider to the given anchorblock
12175     *
12176     * Appends the given function to the list of items providers. This list is
12177     * called, one function at a time, with the given @p data pointer, the
12178     * anchorblock object and, in the @p item parameter, the item name as
12179     * referenced in its href string. Following functions in the list will be
12180     * called in order until one of them returns something different to NULL,
12181     * which should be an Evas_Object which will be used in place of the item
12182     * element.
12183     *
12184     * Items in the markup text take the form \<item relsize=16x16 vsize=full
12185     * href=item/name\>\</item\>
12186     *
12187     * @param obj The anchorblock object
12188     * @param func The function to add to the list of providers
12189     * @param data User data that will be passed to the callback function
12190     *
12191     * @see elm_entry_item_provider_append()
12192     */
12193    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);
12194    /**
12195     * Prepend a custom item provider to the given anchorblock
12196     *
12197     * Like elm_anchorblock_item_provider_append(), but it adds the function
12198     * @p func to the beginning of the list, instead of the end.
12199     *
12200     * @param obj The anchorblock object
12201     * @param func The function to add to the list of providers
12202     * @param data User data that will be passed to the callback function
12203     */
12204    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);
12205    /**
12206     * Remove a custom item provider from the list of the given anchorblock
12207     *
12208     * Removes the function and data pairing that matches @p func and @p data.
12209     * That is, unless the same function and same user data are given, the
12210     * function will not be removed from the list. This allows us to add the
12211     * same callback several times, with different @p data pointers and be
12212     * able to remove them later without conflicts.
12213     *
12214     * @param obj The anchorblock object
12215     * @param func The function to remove from the list
12216     * @param data The data matching the function to remove from the list
12217     */
12218    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);
12219    /**
12220     * @}
12221     */
12222
12223    /**
12224     * @defgroup Bubble Bubble
12225     *
12226     * @image html img/widget/bubble/preview-00.png
12227     * @image latex img/widget/bubble/preview-00.eps
12228     * @image html img/widget/bubble/preview-01.png
12229     * @image latex img/widget/bubble/preview-01.eps
12230     * @image html img/widget/bubble/preview-02.png
12231     * @image latex img/widget/bubble/preview-02.eps
12232     *
12233     * @brief The Bubble is a widget to show text similar to how speech is
12234     * represented in comics.
12235     *
12236     * The bubble widget contains 5 important visual elements:
12237     * @li The frame is a rectangle with rounded edjes and an "arrow".
12238     * @li The @p icon is an image to which the frame's arrow points to.
12239     * @li The @p label is a text which appears to the right of the icon if the
12240     * corner is "top_left" or "bottom_left" and is right aligned to the frame
12241     * otherwise.
12242     * @li The @p info is a text which appears to the right of the label. Info's
12243     * font is of a ligther color than label.
12244     * @li The @p content is an evas object that is shown inside the frame.
12245     *
12246     * The position of the arrow, icon, label and info depends on which corner is
12247     * selected. The four available corners are:
12248     * @li "top_left" - Default
12249     * @li "top_right"
12250     * @li "bottom_left"
12251     * @li "bottom_right"
12252     *
12253     * Signals that you can add callbacks for are:
12254     * @li "clicked" - This is called when a user has clicked the bubble.
12255     *
12256     * Default contents parts of the bubble that you can use for are:
12257     * @li "default" - A content of the bubble
12258     * @li "icon" - An icon of the bubble
12259     *
12260     * Default text parts of the button widget that you can use for are:
12261     * @li NULL - Label of the bubble
12262     * 
12263          * For an example of using a buble see @ref bubble_01_example_page "this".
12264     *
12265     * @{
12266     */
12267
12268    /**
12269     * Add a new bubble to the parent
12270     *
12271     * @param parent The parent object
12272     * @return The new object or NULL if it cannot be created
12273     *
12274     * This function adds a text bubble to the given parent evas object.
12275     */
12276    EAPI Evas_Object *elm_bubble_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12277    /**
12278     * Set the label of the bubble
12279     *
12280     * @param obj The bubble object
12281     * @param label The string to set in the label
12282     *
12283     * This function sets the title of the bubble. Where this appears depends on
12284     * the selected corner.
12285     * @deprecated use elm_object_text_set() instead.
12286     */
12287    EINA_DEPRECATED EAPI void         elm_bubble_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
12288    /**
12289     * Get the label of the bubble
12290     *
12291     * @param obj The bubble object
12292     * @return The string of set in the label
12293     *
12294     * This function gets the title of the bubble.
12295     * @deprecated use elm_object_text_get() instead.
12296     */
12297    EINA_DEPRECATED EAPI const char  *elm_bubble_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12298    /**
12299     * Set the info of the bubble
12300     *
12301     * @param obj The bubble object
12302     * @param info The given info about the bubble
12303     *
12304     * This function sets the info of the bubble. Where this appears depends on
12305     * the selected corner.
12306     * @deprecated use elm_object_part_text_set() instead. (with "info" as the parameter).
12307     */
12308    EINA_DEPRECATED EAPI void         elm_bubble_info_set(Evas_Object *obj, const char *info) EINA_ARG_NONNULL(1);
12309    /**
12310     * Get the info of the bubble
12311     *
12312     * @param obj The bubble object
12313     *
12314     * @return The "info" string of the bubble
12315     *
12316     * This function gets the info text.
12317     * @deprecated use elm_object_part_text_get() instead. (with "info" as the parameter).
12318     */
12319    EINA_DEPRECATED EAPI const char  *elm_bubble_info_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12320    /**
12321     * Set the content to be shown in the bubble
12322     *
12323     * Once the content object is set, a previously set one will be deleted.
12324     * If you want to keep the old content object, use the
12325     * elm_bubble_content_unset() function.
12326     *
12327     * @param obj The bubble object
12328     * @param content The given content of the bubble
12329     *
12330     * This function sets the content shown on the middle of the bubble.
12331     */
12332    EAPI void         elm_bubble_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
12333    /**
12334     * Get the content shown in the bubble
12335     *
12336     * Return the content object which is set for this widget.
12337     *
12338     * @param obj The bubble object
12339     * @return The content that is being used
12340     */
12341    EAPI Evas_Object *elm_bubble_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12342    /**
12343     * Unset the content shown in the bubble
12344     *
12345     * Unparent and return the content object which was set for this widget.
12346     *
12347     * @param obj The bubble object
12348     * @return The content that was being used
12349     */
12350    EAPI Evas_Object *elm_bubble_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12351    /**
12352     * Set the icon of the bubble
12353     *
12354     * Once the icon object is set, a previously set one will be deleted.
12355     * If you want to keep the old content object, use the
12356     * elm_icon_content_unset() function.
12357     *
12358     * @param obj The bubble object
12359     * @param icon The given icon for the bubble
12360     *
12361     * @deprecated use elm_object_part_content_set() instead
12362     *
12363     */
12364    EINA_DEPRECATED EAPI void         elm_bubble_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
12365    /**
12366     * Get the icon of the bubble
12367     *
12368     * @param obj The bubble object
12369     * @return The icon for the bubble
12370     *
12371     * This function gets the icon shown on the top left of bubble.
12372     *
12373     * @deprecated use elm_object_part_content_get() instead
12374     *
12375     */
12376    EINA_DEPRECATED EAPI Evas_Object *elm_bubble_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12377    /**
12378     * Unset the icon of the bubble
12379     *
12380     * Unparent and return the icon object which was set for this widget.
12381     *
12382     * @param obj The bubble object
12383     * @return The icon that was being used
12384     *
12385     * @deprecated use elm_object_part_content_unset() instead
12386     *
12387     */
12388    EINA_DEPRECATED EAPI Evas_Object *elm_bubble_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12389    /**
12390     * Set the corner of the bubble
12391     *
12392     * @param obj The bubble object.
12393     * @param corner The given corner for the bubble.
12394     *
12395     * This function sets the corner of the bubble. The corner will be used to
12396     * determine where the arrow in the frame points to and where label, icon and
12397     * info are shown.
12398     *
12399     * Possible values for corner are:
12400     * @li "top_left" - Default
12401     * @li "top_right"
12402     * @li "bottom_left"
12403     * @li "bottom_right"
12404     */
12405    EAPI void         elm_bubble_corner_set(Evas_Object *obj, const char *corner) EINA_ARG_NONNULL(1, 2);
12406    /**
12407     * Get the corner of the bubble
12408     *
12409     * @param obj The bubble object.
12410     * @return The given corner for the bubble.
12411     *
12412     * This function gets the selected corner of the bubble.
12413     */
12414    EAPI const char  *elm_bubble_corner_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12415
12416    EINA_DEPRECATED EAPI void         elm_bubble_sweep_layout_set(Evas_Object *obj, Evas_Object *sweep) EINA_ARG_NONNULL(1);
12417    EINA_DEPRECATED EAPI Evas_Object *elm_bubble_sweep_layout_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12418
12419    /**
12420     * @}
12421     */
12422
12423    /**
12424     * @defgroup Photo Photo
12425     *
12426     * For displaying the photo of a person (contact). Simple, yet
12427     * with a very specific purpose.
12428     *
12429     * Signals that you can add callbacks for are:
12430     *
12431     * "clicked" - This is called when a user has clicked the photo
12432     * "drag,start" - Someone started dragging the image out of the object
12433     * "drag,end" - Dragged item was dropped (somewhere)
12434     *
12435     * @{
12436     */
12437
12438    /**
12439     * Add a new photo to the parent
12440     *
12441     * @param parent The parent object
12442     * @return The new object or NULL if it cannot be created
12443     *
12444     * @ingroup Photo
12445     */
12446    EAPI Evas_Object *elm_photo_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12447
12448    /**
12449     * Set the file that will be used as photo
12450     *
12451     * @param obj The photo object
12452     * @param file The path to file that will be used as photo
12453     *
12454     * @return (1 = success, 0 = error)
12455     *
12456     * @ingroup Photo
12457     */
12458    EAPI Eina_Bool    elm_photo_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
12459
12460     /**
12461     * Set the file that will be used as thumbnail in the photo.
12462     *
12463     * @param obj The photo object.
12464     * @param file The path to file that will be used as thumb.
12465     * @param group The key used in case of an EET file.
12466     *
12467     * @ingroup Photo
12468     */
12469    EAPI void         elm_photo_thumb_set(const Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
12470
12471    /**
12472     * Set the size that will be used on the photo
12473     *
12474     * @param obj The photo object
12475     * @param size The size that the photo will be
12476     *
12477     * @ingroup Photo
12478     */
12479    EAPI void         elm_photo_size_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
12480
12481    /**
12482     * Set if the photo should be completely visible or not.
12483     *
12484     * @param obj The photo object
12485     * @param fill if true the photo will be completely visible
12486     *
12487     * @ingroup Photo
12488     */
12489    EAPI void         elm_photo_fill_inside_set(Evas_Object *obj, Eina_Bool fill) EINA_ARG_NONNULL(1);
12490
12491    /**
12492     * Set editability of the photo.
12493     *
12494     * An editable photo can be dragged to or from, and can be cut or
12495     * pasted too.  Note that pasting an image or dropping an item on
12496     * the image will delete the existing content.
12497     *
12498     * @param obj The photo object.
12499     * @param set To set of clear editablity.
12500     */
12501    EAPI void         elm_photo_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
12502
12503    /**
12504     * @}
12505     */
12506
12507    /* gesture layer */
12508    /**
12509     * @defgroup Elm_Gesture_Layer Gesture Layer
12510     * Gesture Layer Usage:
12511     *
12512     * Use Gesture Layer to detect gestures.
12513     * The advantage is that you don't have to implement
12514     * gesture detection, just set callbacks of gesture state.
12515     * By using gesture layer we make standard interface.
12516     *
12517     * In order to use Gesture Layer you start with @ref elm_gesture_layer_add
12518     * with a parent object parameter.
12519     * Next 'activate' gesture layer with a @ref elm_gesture_layer_attach
12520     * call. Usually with same object as target (2nd parameter).
12521     *
12522     * Now you need to tell gesture layer what gestures you follow.
12523     * This is done with @ref elm_gesture_layer_cb_set call.
12524     * By setting the callback you actually saying to gesture layer:
12525     * I would like to know when the gesture @ref Elm_Gesture_Types
12526     * switches to state @ref Elm_Gesture_State.
12527     *
12528     * Next, you need to implement the actual action that follows the input
12529     * in your callback.
12530     *
12531     * Note that if you like to stop being reported about a gesture, just set
12532     * all callbacks referring this gesture to NULL.
12533     * (again with @ref elm_gesture_layer_cb_set)
12534     *
12535     * The information reported by gesture layer to your callback is depending
12536     * on @ref Elm_Gesture_Types:
12537     * @ref Elm_Gesture_Taps_Info is the info reported for tap gestures:
12538     * @ref ELM_GESTURE_N_TAPS, @ref ELM_GESTURE_N_LONG_TAPS,
12539     * @ref ELM_GESTURE_N_DOUBLE_TAPS, @ref ELM_GESTURE_N_TRIPLE_TAPS.
12540     *
12541     * @ref Elm_Gesture_Momentum_Info is info reported for momentum gestures:
12542     * @ref ELM_GESTURE_MOMENTUM.
12543     *
12544     * @ref Elm_Gesture_Line_Info is the info reported for line gestures:
12545     * (this also contains @ref Elm_Gesture_Momentum_Info internal structure)
12546     * @ref ELM_GESTURE_N_LINES, @ref ELM_GESTURE_N_FLICKS.
12547     * Note that we consider a flick as a line-gesture that should be completed
12548     * in flick-time-limit as defined in @ref Config.
12549     *
12550     * @ref Elm_Gesture_Zoom_Info is the info reported for @ref ELM_GESTURE_ZOOM gesture.
12551     *
12552     * @ref Elm_Gesture_Rotate_Info is the info reported for @ref ELM_GESTURE_ROTATE gesture.
12553     *
12554     *
12555     * Gesture Layer Tweaks:
12556     *
12557     * Note that line, flick, gestures can start without the need to remove fingers from surface.
12558     * When user fingers rests on same-spot gesture is ended and starts again when fingers moved.
12559     *
12560     * Setting glayer_continues_enable to false in @ref Config will change this behavior
12561     * so gesture starts when user touches (a *DOWN event) touch-surface
12562     * and ends when no fingers touches surface (a *UP event).
12563     */
12564
12565    /**
12566     * @enum _Elm_Gesture_Types
12567     * Enum of supported gesture types.
12568     * @ingroup Elm_Gesture_Layer
12569     */
12570    enum _Elm_Gesture_Types
12571      {
12572         ELM_GESTURE_FIRST = 0,
12573
12574         ELM_GESTURE_N_TAPS, /**< N fingers single taps */
12575         ELM_GESTURE_N_LONG_TAPS, /**< N fingers single long-taps */
12576         ELM_GESTURE_N_DOUBLE_TAPS, /**< N fingers double-single taps */
12577         ELM_GESTURE_N_TRIPLE_TAPS, /**< N fingers triple-single taps */
12578
12579         ELM_GESTURE_MOMENTUM, /**< Reports momentum in the dircetion of move */
12580
12581         ELM_GESTURE_N_LINES, /**< N fingers line gesture */
12582         ELM_GESTURE_N_FLICKS, /**< N fingers flick gesture */
12583
12584         ELM_GESTURE_ZOOM, /**< Zoom */
12585         ELM_GESTURE_ROTATE, /**< Rotate */
12586
12587         ELM_GESTURE_LAST
12588      };
12589
12590    /**
12591     * @typedef Elm_Gesture_Types
12592     * gesture types enum
12593     * @ingroup Elm_Gesture_Layer
12594     */
12595    typedef enum _Elm_Gesture_Types Elm_Gesture_Types;
12596
12597    /**
12598     * @enum _Elm_Gesture_State
12599     * Enum of gesture states.
12600     * @ingroup Elm_Gesture_Layer
12601     */
12602    enum _Elm_Gesture_State
12603      {
12604         ELM_GESTURE_STATE_UNDEFINED = -1, /**< Gesture not STARTed */
12605         ELM_GESTURE_STATE_START,          /**< Gesture STARTed     */
12606         ELM_GESTURE_STATE_MOVE,           /**< Gesture is ongoing  */
12607         ELM_GESTURE_STATE_END,            /**< Gesture completed   */
12608         ELM_GESTURE_STATE_ABORT    /**< Onging gesture was ABORTed */
12609      };
12610
12611    /**
12612     * @typedef Elm_Gesture_State
12613     * gesture states enum
12614     * @ingroup Elm_Gesture_Layer
12615     */
12616    typedef enum _Elm_Gesture_State Elm_Gesture_State;
12617
12618    /**
12619     * @struct _Elm_Gesture_Taps_Info
12620     * Struct holds taps info for user
12621     * @ingroup Elm_Gesture_Layer
12622     */
12623    struct _Elm_Gesture_Taps_Info
12624      {
12625         Evas_Coord x, y;         /**< Holds center point between fingers */
12626         unsigned int n;          /**< Number of fingers tapped           */
12627         unsigned int timestamp;  /**< event timestamp       */
12628      };
12629
12630    /**
12631     * @typedef Elm_Gesture_Taps_Info
12632     * holds taps info for user
12633     * @ingroup Elm_Gesture_Layer
12634     */
12635    typedef struct _Elm_Gesture_Taps_Info Elm_Gesture_Taps_Info;
12636
12637    /**
12638     * @struct _Elm_Gesture_Momentum_Info
12639     * Struct holds momentum info for user
12640     * x1 and y1 are not necessarily in sync
12641     * x1 holds x value of x direction starting point
12642     * and same holds for y1.
12643     * This is noticeable when doing V-shape movement
12644     * @ingroup Elm_Gesture_Layer
12645     */
12646    struct _Elm_Gesture_Momentum_Info
12647      {  /* Report line ends, timestamps, and momentum computed        */
12648         Evas_Coord x1; /**< Final-swipe direction starting point on X */
12649         Evas_Coord y1; /**< Final-swipe direction starting point on Y */
12650         Evas_Coord x2; /**< Final-swipe direction ending point on X   */
12651         Evas_Coord y2; /**< Final-swipe direction ending point on Y   */
12652
12653         unsigned int tx; /**< Timestamp of start of final x-swipe */
12654         unsigned int ty; /**< Timestamp of start of final y-swipe */
12655
12656         Evas_Coord mx; /**< Momentum on X */
12657         Evas_Coord my; /**< Momentum on Y */
12658
12659         unsigned int n;  /**< Number of fingers */
12660      };
12661
12662    /**
12663     * @typedef Elm_Gesture_Momentum_Info
12664     * holds momentum info for user
12665     * @ingroup Elm_Gesture_Layer
12666     */
12667     typedef struct _Elm_Gesture_Momentum_Info Elm_Gesture_Momentum_Info;
12668
12669    /**
12670     * @struct _Elm_Gesture_Line_Info
12671     * Struct holds line info for user
12672     * @ingroup Elm_Gesture_Layer
12673     */
12674    struct _Elm_Gesture_Line_Info
12675      {  /* Report line ends, timestamps, and momentum computed      */
12676         Elm_Gesture_Momentum_Info momentum; /**< Line momentum info */
12677         double angle;              /**< Angle (direction) of lines  */
12678      };
12679
12680    /**
12681     * @typedef Elm_Gesture_Line_Info
12682     * Holds line info for user
12683     * @ingroup Elm_Gesture_Layer
12684     */
12685     typedef struct  _Elm_Gesture_Line_Info Elm_Gesture_Line_Info;
12686
12687    /**
12688     * @struct _Elm_Gesture_Zoom_Info
12689     * Struct holds zoom info for user
12690     * @ingroup Elm_Gesture_Layer
12691     */
12692    struct _Elm_Gesture_Zoom_Info
12693      {
12694         Evas_Coord x, y;       /**< Holds zoom center point reported to user  */
12695         Evas_Coord radius; /**< Holds radius between fingers reported to user */
12696         double zoom;            /**< Zoom value: 1.0 means no zoom             */
12697         double momentum;        /**< Zoom momentum: zoom growth per second (NOT YET SUPPORTED) */
12698      };
12699
12700    /**
12701     * @typedef Elm_Gesture_Zoom_Info
12702     * Holds zoom info for user
12703     * @ingroup Elm_Gesture_Layer
12704     */
12705    typedef struct _Elm_Gesture_Zoom_Info Elm_Gesture_Zoom_Info;
12706
12707    /**
12708     * @struct _Elm_Gesture_Rotate_Info
12709     * Struct holds rotation info for user
12710     * @ingroup Elm_Gesture_Layer
12711     */
12712    struct _Elm_Gesture_Rotate_Info
12713      {
12714         Evas_Coord x, y;   /**< Holds zoom center point reported to user      */
12715         Evas_Coord radius; /**< Holds radius between fingers reported to user */
12716         double base_angle; /**< Holds start-angle */
12717         double angle;      /**< Rotation value: 0.0 means no rotation         */
12718         double momentum;   /**< Rotation momentum: rotation done per second (NOT YET SUPPORTED) */
12719      };
12720
12721    /**
12722     * @typedef Elm_Gesture_Rotate_Info
12723     * Holds rotation info for user
12724     * @ingroup Elm_Gesture_Layer
12725     */
12726    typedef struct _Elm_Gesture_Rotate_Info Elm_Gesture_Rotate_Info;
12727
12728    /**
12729     * @typedef Elm_Gesture_Event_Cb
12730     * User callback used to stream gesture info from gesture layer
12731     * @param data user data
12732     * @param event_info gesture report info
12733     * Returns a flag field to be applied on the causing event.
12734     * You should probably return EVAS_EVENT_FLAG_ON_HOLD if your widget acted
12735     * upon the event, in an irreversible way.
12736     *
12737     * @ingroup Elm_Gesture_Layer
12738     */
12739    typedef Evas_Event_Flags (*Elm_Gesture_Event_Cb) (void *data, void *event_info);
12740
12741    /**
12742     * Use function to set callbacks to be notified about
12743     * change of state of gesture.
12744     * When a user registers a callback with this function
12745     * this means this gesture has to be tested.
12746     *
12747     * When ALL callbacks for a gesture are set to NULL
12748     * it means user isn't interested in gesture-state
12749     * and it will not be tested.
12750     *
12751     * @param obj Pointer to gesture-layer.
12752     * @param idx The gesture you would like to track its state.
12753     * @param cb callback function pointer.
12754     * @param cb_type what event this callback tracks: START, MOVE, END, ABORT.
12755     * @param data user info to be sent to callback (usually, Smart Data)
12756     *
12757     * @ingroup Elm_Gesture_Layer
12758     */
12759    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);
12760
12761    /**
12762     * Call this function to get repeat-events settings.
12763     *
12764     * @param obj Pointer to gesture-layer.
12765     *
12766     * @return repeat events settings.
12767     * @see elm_gesture_layer_hold_events_set()
12768     * @ingroup Elm_Gesture_Layer
12769     */
12770    EAPI Eina_Bool elm_gesture_layer_hold_events_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
12771
12772    /**
12773     * This function called in order to make gesture-layer repeat events.
12774     * Set this of you like to get the raw events only if gestures were not detected.
12775     * Clear this if you like gesture layer to fwd events as testing gestures.
12776     *
12777     * @param obj Pointer to gesture-layer.
12778     * @param r Repeat: TRUE/FALSE
12779     *
12780     * @ingroup Elm_Gesture_Layer
12781     */
12782    EAPI void elm_gesture_layer_hold_events_set(Evas_Object *obj, Eina_Bool r) EINA_ARG_NONNULL(1);
12783
12784    /**
12785     * This function sets step-value for zoom action.
12786     * Set step to any positive value.
12787     * Cancel step setting by setting to 0.0
12788     *
12789     * @param obj Pointer to gesture-layer.
12790     * @param s new zoom step value.
12791     *
12792     * @ingroup Elm_Gesture_Layer
12793     */
12794    EAPI void elm_gesture_layer_zoom_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
12795
12796    /**
12797     * This function sets step-value for rotate action.
12798     * Set step to any positive value.
12799     * Cancel step setting by setting to 0.0
12800     *
12801     * @param obj Pointer to gesture-layer.
12802     * @param s new roatate step value.
12803     *
12804     * @ingroup Elm_Gesture_Layer
12805     */
12806    EAPI void elm_gesture_layer_rotate_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
12807
12808    /**
12809     * This function called to attach gesture-layer to an Evas_Object.
12810     * @param obj Pointer to gesture-layer.
12811     * @param t Pointer to underlying object (AKA Target)
12812     *
12813     * @return TRUE, FALSE on success, failure.
12814     *
12815     * @ingroup Elm_Gesture_Layer
12816     */
12817    EAPI Eina_Bool elm_gesture_layer_attach(Evas_Object *obj, Evas_Object *t) EINA_ARG_NONNULL(1, 2);
12818
12819    /**
12820     * Call this function to construct a new gesture-layer object.
12821     * This does not activate the gesture layer. You have to
12822     * call elm_gesture_layer_attach in order to 'activate' gesture-layer.
12823     *
12824     * @param parent the parent object.
12825     *
12826     * @return Pointer to new gesture-layer object.
12827     *
12828     * @ingroup Elm_Gesture_Layer
12829     */
12830    EAPI Evas_Object *elm_gesture_layer_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12831
12832    /**
12833     * @defgroup Thumb Thumb
12834     *
12835     * @image html img/widget/thumb/preview-00.png
12836     * @image latex img/widget/thumb/preview-00.eps
12837     *
12838     * A thumb object is used for displaying the thumbnail of an image or video.
12839     * You must have compiled Elementary with Ethumb_Client support and the DBus
12840     * service must be present and auto-activated in order to have thumbnails to
12841     * be generated.
12842     *
12843     * Once the thumbnail object becomes visible, it will check if there is a
12844     * previously generated thumbnail image for the file set on it. If not, it
12845     * will start generating this thumbnail.
12846     *
12847     * Different config settings will cause different thumbnails to be generated
12848     * even on the same file.
12849     *
12850     * Generated thumbnails are stored under @c $HOME/.thumbnails/. Check the
12851     * Ethumb documentation to change this path, and to see other configuration
12852     * options.
12853     *
12854     * Signals that you can add callbacks for are:
12855     *
12856     * - "clicked" - This is called when a user has clicked the thumb without dragging
12857     *             around.
12858     * - "clicked,double" - This is called when a user has double-clicked the thumb.
12859     * - "press" - This is called when a user has pressed down the thumb.
12860     * - "generate,start" - The thumbnail generation started.
12861     * - "generate,stop" - The generation process stopped.
12862     * - "generate,error" - The generation failed.
12863     * - "load,error" - The thumbnail image loading failed.
12864     *
12865     * available styles:
12866     * - default
12867     * - noframe
12868     *
12869     * An example of use of thumbnail:
12870     *
12871     * - @ref thumb_example_01
12872     */
12873
12874    /**
12875     * @addtogroup Thumb
12876     * @{
12877     */
12878
12879    /**
12880     * @enum _Elm_Thumb_Animation_Setting
12881     * @typedef Elm_Thumb_Animation_Setting
12882     *
12883     * Used to set if a video thumbnail is animating or not.
12884     *
12885     * @ingroup Thumb
12886     */
12887    typedef enum _Elm_Thumb_Animation_Setting
12888      {
12889         ELM_THUMB_ANIMATION_START = 0, /**< Play animation once */
12890         ELM_THUMB_ANIMATION_LOOP,      /**< Keep playing animation until stop is requested */
12891         ELM_THUMB_ANIMATION_STOP,      /**< Stop playing the animation */
12892         ELM_THUMB_ANIMATION_LAST
12893      } Elm_Thumb_Animation_Setting;
12894
12895    /**
12896     * Add a new thumb object to the parent.
12897     *
12898     * @param parent The parent object.
12899     * @return The new object or NULL if it cannot be created.
12900     *
12901     * @see elm_thumb_file_set()
12902     * @see elm_thumb_ethumb_client_get()
12903     *
12904     * @ingroup Thumb
12905     */
12906    EAPI Evas_Object                 *elm_thumb_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12907    /**
12908     * Reload thumbnail if it was generated before.
12909     *
12910     * @param obj The thumb object to reload
12911     *
12912     * This is useful if the ethumb client configuration changed, like its
12913     * size, aspect or any other property one set in the handle returned
12914     * by elm_thumb_ethumb_client_get().
12915     *
12916     * If the options didn't change, the thumbnail won't be generated again, but
12917     * the old one will still be used.
12918     *
12919     * @see elm_thumb_file_set()
12920     *
12921     * @ingroup Thumb
12922     */
12923    EAPI void                         elm_thumb_reload(Evas_Object *obj) EINA_ARG_NONNULL(1);
12924    /**
12925     * Set the file that will be used as thumbnail.
12926     *
12927     * @param obj The thumb object.
12928     * @param file The path to file that will be used as thumb.
12929     * @param key The key used in case of an EET file.
12930     *
12931     * The file can be an image or a video (in that case, acceptable extensions are:
12932     * avi, mp4, ogv, mov, mpg and wmv). To start the video animation, use the
12933     * function elm_thumb_animate().
12934     *
12935     * @see elm_thumb_file_get()
12936     * @see elm_thumb_reload()
12937     * @see elm_thumb_animate()
12938     *
12939     * @ingroup Thumb
12940     */
12941    EAPI void                         elm_thumb_file_set(Evas_Object *obj, const char *file, const char *key) EINA_ARG_NONNULL(1);
12942    /**
12943     * Get the image or video path and key used to generate the thumbnail.
12944     *
12945     * @param obj The thumb object.
12946     * @param file Pointer to filename.
12947     * @param key Pointer to key.
12948     *
12949     * @see elm_thumb_file_set()
12950     * @see elm_thumb_path_get()
12951     *
12952     * @ingroup Thumb
12953     */
12954    EAPI void                         elm_thumb_file_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
12955    /**
12956     * Get the path and key to the image or video generated by ethumb.
12957     *
12958     * One just need to make sure that the thumbnail was generated before getting
12959     * its path; otherwise, the path will be NULL. One way to do that is by asking
12960     * for the path when/after the "generate,stop" smart callback is called.
12961     *
12962     * @param obj The thumb object.
12963     * @param file Pointer to thumb path.
12964     * @param key Pointer to thumb key.
12965     *
12966     * @see elm_thumb_file_get()
12967     *
12968     * @ingroup Thumb
12969     */
12970    EAPI void                         elm_thumb_path_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
12971    /**
12972     * Set the animation state for the thumb object. If its content is an animated
12973     * video, you may start/stop the animation or tell it to play continuously and
12974     * looping.
12975     *
12976     * @param obj The thumb object.
12977     * @param setting The animation setting.
12978     *
12979     * @see elm_thumb_file_set()
12980     *
12981     * @ingroup Thumb
12982     */
12983    EAPI void                         elm_thumb_animate_set(Evas_Object *obj, Elm_Thumb_Animation_Setting s) EINA_ARG_NONNULL(1);
12984    /**
12985     * Get the animation state for the thumb object.
12986     *
12987     * @param obj The thumb object.
12988     * @return getting The animation setting or @c ELM_THUMB_ANIMATION_LAST,
12989     * on errors.
12990     *
12991     * @see elm_thumb_animate_set()
12992     *
12993     * @ingroup Thumb
12994     */
12995    EAPI Elm_Thumb_Animation_Setting  elm_thumb_animate_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12996    /**
12997     * Get the ethumb_client handle so custom configuration can be made.
12998     *
12999     * @return Ethumb_Client instance or NULL.
13000     *
13001     * This must be called before the objects are created to be sure no object is
13002     * visible and no generation started.
13003     *
13004     * Example of usage:
13005     *
13006     * @code
13007     * #include <Elementary.h>
13008     * #ifndef ELM_LIB_QUICKLAUNCH
13009     * EAPI_MAIN int
13010     * elm_main(int argc, char **argv)
13011     * {
13012     *    Ethumb_Client *client;
13013     *
13014     *    elm_need_ethumb();
13015     *
13016     *    // ... your code
13017     *
13018     *    client = elm_thumb_ethumb_client_get();
13019     *    if (!client)
13020     *      {
13021     *         ERR("could not get ethumb_client");
13022     *         return 1;
13023     *      }
13024     *    ethumb_client_size_set(client, 100, 100);
13025     *    ethumb_client_crop_align_set(client, 0.5, 0.5);
13026     *    // ... your code
13027     *
13028     *    // Create elm_thumb objects here
13029     *
13030     *    elm_run();
13031     *    elm_shutdown();
13032     *    return 0;
13033     * }
13034     * #endif
13035     * ELM_MAIN()
13036     * @endcode
13037     *
13038     * @note There's only one client handle for Ethumb, so once a configuration
13039     * change is done to it, any other request for thumbnails (for any thumbnail
13040     * object) will use that configuration. Thus, this configuration is global.
13041     *
13042     * @ingroup Thumb
13043     */
13044    EAPI void                        *elm_thumb_ethumb_client_get(void);
13045    /**
13046     * Get the ethumb_client connection state.
13047     *
13048     * @return EINA_TRUE if the client is connected to the server or EINA_FALSE
13049     * otherwise.
13050     */
13051    EAPI Eina_Bool                    elm_thumb_ethumb_client_connected(void);
13052    /**
13053     * Make the thumbnail 'editable'.
13054     *
13055     * @param obj Thumb object.
13056     * @param set Turn on or off editability. Default is @c EINA_FALSE.
13057     *
13058     * This means the thumbnail is a valid drag target for drag and drop, and can be
13059     * cut or pasted too.
13060     *
13061     * @see elm_thumb_editable_get()
13062     *
13063     * @ingroup Thumb
13064     */
13065    EAPI Eina_Bool                    elm_thumb_editable_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
13066    EAPI Eina_Bool                    elm_thumb_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13067    /**
13068     * Make the thumbnail 'editable'.
13069     *
13070     * @param obj Thumb object.
13071     * @return Editability.
13072     *
13073     * This means the thumbnail is a valid drag target for drag and drop, and can be
13074     * cut or pasted too.
13075     *
13076     * @see elm_thumb_editable_set()
13077     *
13078     * @ingroup Thumb
13079     */
13080    EAPI Eina_Bool                    elm_thumb_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13081
13082    /**
13083     * @}
13084     */
13085
13086    /**
13087     * @defgroup Web Web
13088     *
13089     * @image html img/widget/web/preview-00.png
13090     * @image latex img/widget/web/preview-00.eps
13091     *
13092     * A web object is used for displaying web pages (HTML/CSS/JS)
13093     * using WebKit-EFL. You must have compiled Elementary with
13094     * ewebkit support.
13095     *
13096     * Signals that you can add callbacks for are:
13097     * @li "download,request": A file download has been requested. Event info is
13098     * a pointer to a Elm_Web_Download
13099     * @li "editorclient,contents,changed": Editor client's contents changed
13100     * @li "editorclient,selection,changed": Editor client's selection changed
13101     * @li "frame,created": A new frame was created. Event info is an
13102     * Evas_Object which can be handled with WebKit's ewk_frame API
13103     * @li "icon,received": An icon was received by the main frame
13104     * @li "inputmethod,changed": Input method changed. Event info is an
13105     * Eina_Bool indicating whether it's enabled or not
13106     * @li "js,windowobject,clear": JS window object has been cleared
13107     * @li "link,hover,in": Mouse cursor is hovering over a link. Event info
13108     * is a char *link[2], where the first string contains the URL the link
13109     * points to, and the second one the title of the link
13110     * @li "link,hover,out": Mouse cursor left the link
13111     * @li "load,document,finished": Loading of a document finished. Event info
13112     * is the frame that finished loading
13113     * @li "load,error": Load failed. Event info is a pointer to
13114     * Elm_Web_Frame_Load_Error
13115     * @li "load,finished": Load finished. Event info is NULL on success, on
13116     * error it's a pointer to Elm_Web_Frame_Load_Error
13117     * @li "load,newwindow,show": A new window was created and is ready to be
13118     * shown
13119     * @li "load,progress": Overall load progress. Event info is a pointer to
13120     * a double containing a value between 0.0 and 1.0
13121     * @li "load,provisional": Started provisional load
13122     * @li "load,started": Loading of a document started
13123     * @li "menubar,visible,get": Queries if the menubar is visible. Event info
13124     * is a pointer to Eina_Bool where the callback should set EINA_TRUE if
13125     * the menubar is visible, or EINA_FALSE in case it's not
13126     * @li "menubar,visible,set": Informs menubar visibility. Event info is
13127     * an Eina_Bool indicating the visibility
13128     * @li "popup,created": A dropdown widget was activated, requesting its
13129     * popup menu to be created. Event info is a pointer to Elm_Web_Menu
13130     * @li "popup,willdelete": The web object is ready to destroy the popup
13131     * object created. Event info is a pointer to Elm_Web_Menu
13132     * @li "ready": Page is fully loaded
13133     * @li "scrollbars,visible,get": Queries visibility of scrollbars. Event
13134     * info is a pointer to Eina_Bool where the visibility state should be set
13135     * @li "scrollbars,visible,set": Informs scrollbars visibility. Event info
13136     * is an Eina_Bool with the visibility state set
13137     * @li "statusbar,text,set": Text of the statusbar changed. Even info is
13138     * a string with the new text
13139     * @li "statusbar,visible,get": Queries visibility of the status bar.
13140     * Event info is a pointer to Eina_Bool where the visibility state should be
13141     * set.
13142     * @li "statusbar,visible,set": Informs statusbar visibility. Event info is
13143     * an Eina_Bool with the visibility value
13144     * @li "title,changed": Title of the main frame changed. Event info is a
13145     * string with the new title
13146     * @li "toolbars,visible,get": Queries visibility of toolbars. Event info
13147     * is a pointer to Eina_Bool where the visibility state should be set
13148     * @li "toolbars,visible,set": Informs the visibility of toolbars. Event
13149     * info is an Eina_Bool with the visibility state
13150     * @li "tooltip,text,set": Show and set text of a tooltip. Event info is
13151     * a string with the text to show
13152     * @li "uri,changed": URI of the main frame changed. Event info is a string
13153     * with the new URI
13154     * @li "view,resized": The web object internal's view changed sized
13155     * @li "windows,close,request": A JavaScript request to close the current
13156     * window was requested
13157     * @li "zoom,animated,end": Animated zoom finished
13158     *
13159     * available styles:
13160     * - default
13161     *
13162     * An example of use of web:
13163     *
13164     * - @ref web_example_01 TBD
13165     */
13166
13167    /**
13168     * @addtogroup Web
13169     * @{
13170     */
13171
13172    /**
13173     * Structure used to report load errors.
13174     *
13175     * Load errors are reported as signal by elm_web. All the strings are
13176     * temporary references and should @b not be used after the signal
13177     * callback returns. If it's required, make copies with strdup() or
13178     * eina_stringshare_add() (they are not even guaranteed to be
13179     * stringshared, so must use eina_stringshare_add() and not
13180     * eina_stringshare_ref()).
13181     */
13182    typedef struct _Elm_Web_Frame_Load_Error Elm_Web_Frame_Load_Error;
13183    /**
13184     * Structure used to report load errors.
13185     *
13186     * Load errors are reported as signal by elm_web. All the strings are
13187     * temporary references and should @b not be used after the signal
13188     * callback returns. If it's required, make copies with strdup() or
13189     * eina_stringshare_add() (they are not even guaranteed to be
13190     * stringshared, so must use eina_stringshare_add() and not
13191     * eina_stringshare_ref()).
13192     */
13193    struct _Elm_Web_Frame_Load_Error
13194      {
13195         int code; /**< Numeric error code */
13196         Eina_Bool is_cancellation; /**< Error produced by cancelling a request */
13197         const char *domain; /**< Error domain name */
13198         const char *description; /**< Error description (already localized) */
13199         const char *failing_url; /**< The URL that failed to load */
13200         Evas_Object *frame; /**< Frame object that produced the error */
13201      };
13202
13203    /**
13204     * The possibles types that the items in a menu can be
13205     */
13206    typedef enum _Elm_Web_Menu_Item_Type
13207      {
13208         ELM_WEB_MENU_SEPARATOR,
13209         ELM_WEB_MENU_GROUP,
13210         ELM_WEB_MENU_OPTION
13211      } Elm_Web_Menu_Item_Type;
13212
13213    /**
13214     * Structure describing the items in a menu
13215     */
13216    typedef struct _Elm_Web_Menu_Item Elm_Web_Menu_Item;
13217    /**
13218     * Structure describing the items in a menu
13219     */
13220    struct _Elm_Web_Menu_Item
13221      {
13222         const char *text; /**< The text for the item */
13223         Elm_Web_Menu_Item_Type type; /**< The type of the item */
13224      };
13225
13226    /**
13227     * Structure describing the menu of a popup
13228     *
13229     * This structure will be passed as the @c event_info for the "popup,create"
13230     * signal, which is emitted when a dropdown menu is opened. Users wanting
13231     * to handle these popups by themselves should listen to this signal and
13232     * set the @c handled property of the struct to @c EINA_TRUE. Leaving this
13233     * property as @c EINA_FALSE means that the user will not handle the popup
13234     * and the default implementation will be used.
13235     *
13236     * When the popup is ready to be dismissed, a "popup,willdelete" signal
13237     * will be emitted to notify the user that it can destroy any objects and
13238     * free all data related to it.
13239     *
13240     * @see elm_web_popup_selected_set()
13241     * @see elm_web_popup_destroy()
13242     */
13243    typedef struct _Elm_Web_Menu Elm_Web_Menu;
13244    /**
13245     * Structure describing the menu of a popup
13246     *
13247     * This structure will be passed as the @c event_info for the "popup,create"
13248     * signal, which is emitted when a dropdown menu is opened. Users wanting
13249     * to handle these popups by themselves should listen to this signal and
13250     * set the @c handled property of the struct to @c EINA_TRUE. Leaving this
13251     * property as @c EINA_FALSE means that the user will not handle the popup
13252     * and the default implementation will be used.
13253     *
13254     * When the popup is ready to be dismissed, a "popup,willdelete" signal
13255     * will be emitted to notify the user that it can destroy any objects and
13256     * free all data related to it.
13257     *
13258     * @see elm_web_popup_selected_set()
13259     * @see elm_web_popup_destroy()
13260     */
13261    struct _Elm_Web_Menu
13262      {
13263         Eina_List *items; /**< List of #Elm_Web_Menu_Item */
13264         int x; /**< The X position of the popup, relative to the elm_web object */
13265         int y; /**< The Y position of the popup, relative to the elm_web object */
13266         int width; /**< Width of the popup menu */
13267         int height; /**< Height of the popup menu */
13268
13269         Eina_Bool handled : 1; /**< Set to @c EINA_TRUE by the user to indicate that the popup has been handled and the default implementation should be ignored. Leave as @c EINA_FALSE otherwise. */
13270      };
13271
13272    typedef struct _Elm_Web_Download Elm_Web_Download;
13273    struct _Elm_Web_Download
13274      {
13275         const char *url;
13276      };
13277
13278    /**
13279     * Types of zoom available.
13280     */
13281    typedef enum _Elm_Web_Zoom_Mode
13282      {
13283         ELM_WEB_ZOOM_MODE_MANUAL = 0, /**< Zoom controled normally by elm_web_zoom_set */
13284         ELM_WEB_ZOOM_MODE_AUTO_FIT, /**< Zoom until content fits in web object */
13285         ELM_WEB_ZOOM_MODE_AUTO_FILL, /**< Zoom until content fills web object */
13286         ELM_WEB_ZOOM_MODE_LAST
13287      } Elm_Web_Zoom_Mode;
13288    /**
13289     * Opaque handler containing the features (such as statusbar, menubar, etc)
13290     * that are to be set on a newly requested window.
13291     */
13292    typedef struct _Elm_Web_Window_Features Elm_Web_Window_Features;
13293    /**
13294     * Callback type for the create_window hook.
13295     *
13296     * The function parameters are:
13297     * @li @p data User data pointer set when setting the hook function
13298     * @li @p obj The elm_web object requesting the new window
13299     * @li @p js Set to @c EINA_TRUE if the request was originated from
13300     * JavaScript. @c EINA_FALSE otherwise.
13301     * @li @p window_features A pointer of #Elm_Web_Window_Features indicating
13302     * the features requested for the new window.
13303     *
13304     * The returned value of the function should be the @c elm_web widget where
13305     * the request will be loaded. That is, if a new window or tab is created,
13306     * the elm_web widget in it should be returned, and @b NOT the window
13307     * object.
13308     * Returning @c NULL should cancel the request.
13309     *
13310     * @see elm_web_window_create_hook_set()
13311     */
13312    typedef Evas_Object *(*Elm_Web_Window_Open)(void *data, Evas_Object *obj, Eina_Bool js, const Elm_Web_Window_Features *window_features);
13313    /**
13314     * Callback type for the JS alert hook.
13315     *
13316     * The function parameters are:
13317     * @li @p data User data pointer set when setting the hook function
13318     * @li @p obj The elm_web object requesting the new window
13319     * @li @p message The message to show in the alert dialog
13320     *
13321     * The function should return the object representing the alert dialog.
13322     * Elm_Web will run a second main loop to handle the dialog and normal
13323     * flow of the application will be restored when the object is deleted, so
13324     * the user should handle the popup properly in order to delete the object
13325     * when the action is finished.
13326     * If the function returns @c NULL the popup will be ignored.
13327     *
13328     * @see elm_web_dialog_alert_hook_set()
13329     */
13330    typedef Evas_Object *(*Elm_Web_Dialog_Alert)(void *data, Evas_Object *obj, const char *message);
13331    /**
13332     * Callback type for the JS confirm hook.
13333     *
13334     * The function parameters are:
13335     * @li @p data User data pointer set when setting the hook function
13336     * @li @p obj The elm_web object requesting the new window
13337     * @li @p message The message to show in the confirm dialog
13338     * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
13339     * the user selected @c Ok, @c EINA_FALSE otherwise.
13340     *
13341     * The function should return the object representing the confirm dialog.
13342     * Elm_Web will run a second main loop to handle the dialog and normal
13343     * flow of the application will be restored when the object is deleted, so
13344     * the user should handle the popup properly in order to delete the object
13345     * when the action is finished.
13346     * If the function returns @c NULL the popup will be ignored.
13347     *
13348     * @see elm_web_dialog_confirm_hook_set()
13349     */
13350    typedef Evas_Object *(*Elm_Web_Dialog_Confirm)(void *data, Evas_Object *obj, const char *message, Eina_Bool *ret);
13351    /**
13352     * Callback type for the JS prompt hook.
13353     *
13354     * The function parameters are:
13355     * @li @p data User data pointer set when setting the hook function
13356     * @li @p obj The elm_web object requesting the new window
13357     * @li @p message The message to show in the prompt dialog
13358     * @li @p def_value The default value to present the user in the entry
13359     * @li @p value Pointer where to store the value given by the user. Must
13360     * be a malloc'ed string or @c NULL if the user cancelled the popup.
13361     * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
13362     * the user selected @c Ok, @c EINA_FALSE otherwise.
13363     *
13364     * The function should return the object representing the prompt dialog.
13365     * Elm_Web will run a second main loop to handle the dialog and normal
13366     * flow of the application will be restored when the object is deleted, so
13367     * the user should handle the popup properly in order to delete the object
13368     * when the action is finished.
13369     * If the function returns @c NULL the popup will be ignored.
13370     *
13371     * @see elm_web_dialog_prompt_hook_set()
13372     */
13373    typedef Evas_Object *(*Elm_Web_Dialog_Prompt)(void *data, Evas_Object *obj, const char *message, const char *def_value, char **value, Eina_Bool *ret);
13374    /**
13375     * Callback type for the JS file selector hook.
13376     *
13377     * The function parameters are:
13378     * @li @p data User data pointer set when setting the hook function
13379     * @li @p obj The elm_web object requesting the new window
13380     * @li @p allows_multiple @c EINA_TRUE if multiple files can be selected.
13381     * @li @p accept_types Mime types accepted
13382     * @li @p selected Pointer where to store the list of malloc'ed strings
13383     * containing the path to each file selected. Must be @c NULL if the file
13384     * dialog is cancelled
13385     * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
13386     * the user selected @c Ok, @c EINA_FALSE otherwise.
13387     *
13388     * The function should return the object representing the file selector
13389     * dialog.
13390     * Elm_Web will run a second main loop to handle the dialog and normal
13391     * flow of the application will be restored when the object is deleted, so
13392     * the user should handle the popup properly in order to delete the object
13393     * when the action is finished.
13394     * If the function returns @c NULL the popup will be ignored.
13395     *
13396     * @see elm_web_dialog_file selector_hook_set()
13397     */
13398    typedef Evas_Object *(*Elm_Web_Dialog_File_Selector)(void *data, Evas_Object *obj, Eina_Bool allows_multiple, Eina_List *accept_types, Eina_List **selected, Eina_Bool *ret);
13399    /**
13400     * Callback type for the JS console message hook.
13401     *
13402     * When a console message is added from JavaScript, any set function to the
13403     * console message hook will be called for the user to handle. There is no
13404     * default implementation of this hook.
13405     *
13406     * The function parameters are:
13407     * @li @p data User data pointer set when setting the hook function
13408     * @li @p obj The elm_web object that originated the message
13409     * @li @p message The message sent
13410     * @li @p line_number The line number
13411     * @li @p source_id Source id
13412     *
13413     * @see elm_web_console_message_hook_set()
13414     */
13415    typedef void (*Elm_Web_Console_Message)(void *data, Evas_Object *obj, const char *message, unsigned int line_number, const char *source_id);
13416    /**
13417     * Add a new web object to the parent.
13418     *
13419     * @param parent The parent object.
13420     * @return The new object or NULL if it cannot be created.
13421     *
13422     * @see elm_web_uri_set()
13423     * @see elm_web_webkit_view_get()
13424     */
13425    EAPI Evas_Object                 *elm_web_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13426
13427    /**
13428     * Get internal ewk_view object from web object.
13429     *
13430     * Elementary may not provide some low level features of EWebKit,
13431     * instead of cluttering the API with proxy methods we opted to
13432     * return the internal reference. Be careful using it as it may
13433     * interfere with elm_web behavior.
13434     *
13435     * @param obj The web object.
13436     * @return The internal ewk_view object or NULL if it does not
13437     *         exist. (Failure to create or Elementary compiled without
13438     *         ewebkit)
13439     *
13440     * @see elm_web_add()
13441     */
13442    EAPI Evas_Object                 *elm_web_webkit_view_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13443
13444    /**
13445     * Sets the function to call when a new window is requested
13446     *
13447     * This hook will be called when a request to create a new window is
13448     * issued from the web page loaded.
13449     * There is no default implementation for this feature, so leaving this
13450     * unset or passing @c NULL in @p func will prevent new windows from
13451     * opening.
13452     *
13453     * @param obj The web object where to set the hook function
13454     * @param func The hook function to be called when a window is requested
13455     * @param data User data
13456     */
13457    EAPI void                         elm_web_window_create_hook_set(Evas_Object *obj, Elm_Web_Window_Open func, void *data);
13458    /**
13459     * Sets the function to call when an alert dialog
13460     *
13461     * This hook will be called when a JavaScript alert dialog is requested.
13462     * If no function is set or @c NULL is passed in @p func, the default
13463     * implementation will take place.
13464     *
13465     * @param obj The web object where to set the hook function
13466     * @param func The callback function to be used
13467     * @param data User data
13468     *
13469     * @see elm_web_inwin_mode_set()
13470     */
13471    EAPI void                         elm_web_dialog_alert_hook_set(Evas_Object *obj, Elm_Web_Dialog_Alert func, void *data);
13472    /**
13473     * Sets the function to call when an confirm dialog
13474     *
13475     * This hook will be called when a JavaScript confirm dialog is requested.
13476     * If no function is set or @c NULL is passed in @p func, the default
13477     * implementation will take place.
13478     *
13479     * @param obj The web object where to set the hook function
13480     * @param func The callback function to be used
13481     * @param data User data
13482     *
13483     * @see elm_web_inwin_mode_set()
13484     */
13485    EAPI void                         elm_web_dialog_confirm_hook_set(Evas_Object *obj, Elm_Web_Dialog_Confirm func, void *data);
13486    /**
13487     * Sets the function to call when an prompt dialog
13488     *
13489     * This hook will be called when a JavaScript prompt dialog is requested.
13490     * If no function is set or @c NULL is passed in @p func, the default
13491     * implementation will take place.
13492     *
13493     * @param obj The web object where to set the hook function
13494     * @param func The callback function to be used
13495     * @param data User data
13496     *
13497     * @see elm_web_inwin_mode_set()
13498     */
13499    EAPI void                         elm_web_dialog_prompt_hook_set(Evas_Object *obj, Elm_Web_Dialog_Prompt func, void *data);
13500    /**
13501     * Sets the function to call when an file selector dialog
13502     *
13503     * This hook will be called when a JavaScript file selector dialog is
13504     * requested.
13505     * If no function is set or @c NULL is passed in @p func, the default
13506     * implementation will take place.
13507     *
13508     * @param obj The web object where to set the hook function
13509     * @param func The callback function to be used
13510     * @param data User data
13511     *
13512     * @see elm_web_inwin_mode_set()
13513     */
13514    EAPI void                         elm_web_dialog_file_selector_hook_set(Evas_Object *obj, Elm_Web_Dialog_File_Selector func, void *data);
13515    /**
13516     * Sets the function to call when a console message is emitted from JS
13517     *
13518     * This hook will be called when a console message is emitted from
13519     * JavaScript. There is no default implementation for this feature.
13520     *
13521     * @param obj The web object where to set the hook function
13522     * @param func The callback function to be used
13523     * @param data User data
13524     */
13525    EAPI void                         elm_web_console_message_hook_set(Evas_Object *obj, Elm_Web_Console_Message func, void *data);
13526    /**
13527     * Gets the status of the tab propagation
13528     *
13529     * @param obj The web object to query
13530     * @return EINA_TRUE if tab propagation is enabled, EINA_FALSE otherwise
13531     *
13532     * @see elm_web_tab_propagate_set()
13533     */
13534    EAPI Eina_Bool                    elm_web_tab_propagate_get(const Evas_Object *obj);
13535    /**
13536     * Sets whether to use tab propagation
13537     *
13538     * If tab propagation is enabled, whenever the user presses the Tab key,
13539     * Elementary will handle it and switch focus to the next widget.
13540     * The default value is disabled, where WebKit will handle the Tab key to
13541     * cycle focus though its internal objects, jumping to the next widget
13542     * only when that cycle ends.
13543     *
13544     * @param obj The web object
13545     * @param propagate Whether to propagate Tab keys to Elementary or not
13546     */
13547    EAPI void                         elm_web_tab_propagate_set(Evas_Object *obj, Eina_Bool propagate);
13548    /**
13549     * Sets the URI for the web object
13550     *
13551     * It must be a full URI, with resource included, in the form
13552     * http://www.enlightenment.org or file:///tmp/something.html
13553     *
13554     * @param obj The web object
13555     * @param uri The URI to set
13556     * @return EINA_TRUE if the URI could be, EINA_FALSE if an error occurred
13557     */
13558    EAPI Eina_Bool                    elm_web_uri_set(Evas_Object *obj, const char *uri);
13559    /**
13560     * Gets the current URI for the object
13561     *
13562     * The returned string must not be freed and is guaranteed to be
13563     * stringshared.
13564     *
13565     * @param obj The web object
13566     * @return A stringshared internal string with the current URI, or NULL on
13567     * failure
13568     */
13569    EAPI const char                  *elm_web_uri_get(const Evas_Object *obj);
13570    /**
13571     * Gets the current title
13572     *
13573     * The returned string must not be freed and is guaranteed to be
13574     * stringshared.
13575     *
13576     * @param obj The web object
13577     * @return A stringshared internal string with the current title, or NULL on
13578     * failure
13579     */
13580    EAPI const char                  *elm_web_title_get(const Evas_Object *obj);
13581    /**
13582     * Sets the background color to be used by the web object
13583     *
13584     * This is the color that will be used by default when the loaded page
13585     * does not set it's own. Color values are pre-multiplied.
13586     *
13587     * @param obj The web object
13588     * @param r Red component
13589     * @param g Green component
13590     * @param b Blue component
13591     * @param a Alpha component
13592     */
13593    EAPI void                         elm_web_bg_color_set(Evas_Object *obj, int r, int g, int b, int a);
13594    /**
13595     * Gets the background color to be used by the web object
13596     *
13597     * This is the color that will be used by default when the loaded page
13598     * does not set it's own. Color values are pre-multiplied.
13599     *
13600     * @param obj The web object
13601     * @param r Red component
13602     * @param g Green component
13603     * @param b Blue component
13604     * @param a Alpha component
13605     */
13606    EAPI void                         elm_web_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b, int *a);
13607    /**
13608     * Gets a copy of the currently selected text
13609     *
13610     * The string returned must be freed by the user when it's done with it.
13611     *
13612     * @param obj The web object
13613     * @return A newly allocated string, or NULL if nothing is selected or an
13614     * error occurred
13615     */
13616    EAPI char                        *elm_view_selection_get(const Evas_Object *obj);
13617    /**
13618     * Tells the web object which index in the currently open popup was selected
13619     *
13620     * When the user handles the popup creation from the "popup,created" signal,
13621     * it needs to tell the web object which item was selected by calling this
13622     * function with the index corresponding to the item.
13623     *
13624     * @param obj The web object
13625     * @param index The index selected
13626     *
13627     * @see elm_web_popup_destroy()
13628     */
13629    EAPI void                         elm_web_popup_selected_set(Evas_Object *obj, int index);
13630    /**
13631     * Dismisses an open dropdown popup
13632     *
13633     * When the popup from a dropdown widget is to be dismissed, either after
13634     * selecting an option or to cancel it, this function must be called, which
13635     * will later emit an "popup,willdelete" signal to notify the user that
13636     * any memory and objects related to this popup can be freed.
13637     *
13638     * @param obj The web object
13639     * @return EINA_TRUE if the menu was successfully destroyed, or EINA_FALSE
13640     * if there was no menu to destroy
13641     */
13642    EAPI Eina_Bool                    elm_web_popup_destroy(Evas_Object *obj);
13643    /**
13644     * Searches the given string in a document.
13645     *
13646     * @param obj The web object where to search the text
13647     * @param string String to search
13648     * @param case_sensitive If search should be case sensitive or not
13649     * @param forward If search is from cursor and on or backwards
13650     * @param wrap If search should wrap at the end
13651     *
13652     * @return @c EINA_TRUE if the given string was found, @c EINA_FALSE if not
13653     * or failure
13654     */
13655    EAPI Eina_Bool                    elm_web_text_search(const Evas_Object *obj, const char *string, Eina_Bool case_sensitive, Eina_Bool forward, Eina_Bool wrap);
13656    /**
13657     * Marks matches of the given string in a document.
13658     *
13659     * @param obj The web object where to search text
13660     * @param string String to match
13661     * @param case_sensitive If match should be case sensitive or not
13662     * @param highlight If matches should be highlighted
13663     * @param limit Maximum amount of matches, or zero to unlimited
13664     *
13665     * @return number of matched @a string
13666     */
13667    EAPI unsigned int                 elm_web_text_matches_mark(Evas_Object *obj, const char *string, Eina_Bool case_sensitive, Eina_Bool highlight, unsigned int limit);
13668    /**
13669     * Clears all marked matches in the document
13670     *
13671     * @param obj The web object
13672     *
13673     * @return EINA_TRUE on success, EINA_FALSE otherwise
13674     */
13675    EAPI Eina_Bool                    elm_web_text_matches_unmark_all(Evas_Object *obj);
13676    /**
13677     * Sets whether to highlight the matched marks
13678     *
13679     * If enabled, marks set with elm_web_text_matches_mark() will be
13680     * highlighted.
13681     *
13682     * @param obj The web object
13683     * @param highlight Whether to highlight the marks or not
13684     *
13685     * @return EINA_TRUE on success, EINA_FALSE otherwise
13686     */
13687    EAPI Eina_Bool                    elm_web_text_matches_highlight_set(Evas_Object *obj, Eina_Bool highlight);
13688    /**
13689     * Gets whether highlighting marks is enabled
13690     *
13691     * @param The web object
13692     *
13693     * @return EINA_TRUE is marks are set to be highlighted, EINA_FALSE
13694     * otherwise
13695     */
13696    EAPI Eina_Bool                    elm_web_text_matches_highlight_get(const Evas_Object *obj);
13697    /**
13698     * Gets the overall loading progress of the page
13699     *
13700     * Returns the estimated loading progress of the page, with a value between
13701     * 0.0 and 1.0. This is an estimated progress accounting for all the frames
13702     * included in the page.
13703     *
13704     * @param The web object
13705     *
13706     * @return A value between 0.0 and 1.0 indicating the progress, or -1.0 on
13707     * failure
13708     */
13709    EAPI double                       elm_web_load_progress_get(const Evas_Object *obj);
13710    /**
13711     * Stops loading the current page
13712     *
13713     * Cancels the loading of the current page in the web object. This will
13714     * cause a "load,error" signal to be emitted, with the is_cancellation
13715     * flag set to EINA_TRUE.
13716     *
13717     * @param obj The web object
13718     *
13719     * @return EINA_TRUE if the cancel was successful, EINA_FALSE otherwise
13720     */
13721    EAPI Eina_Bool                    elm_web_stop(Evas_Object *obj);
13722    /**
13723     * Requests a reload of the current document in the object
13724     *
13725     * @param obj The web object
13726     *
13727     * @return EINA_TRUE on success, EINA_FALSE otherwise
13728     */
13729    EAPI Eina_Bool                    elm_web_reload(Evas_Object *obj);
13730    /**
13731     * Requests a reload of the current document, avoiding any existing caches
13732     *
13733     * @param obj The web object
13734     *
13735     * @return EINA_TRUE on success, EINA_FALSE otherwise
13736     */
13737    EAPI Eina_Bool                    elm_web_reload_full(Evas_Object *obj);
13738    /**
13739     * Goes back one step in the browsing history
13740     *
13741     * This is equivalent to calling elm_web_object_navigate(obj, -1);
13742     *
13743     * @param obj The web object
13744     *
13745     * @return EINA_TRUE on success, EINA_FALSE otherwise
13746     *
13747     * @see elm_web_history_enable_set()
13748     * @see elm_web_back_possible()
13749     * @see elm_web_forward()
13750     * @see elm_web_navigate()
13751     */
13752    EAPI Eina_Bool                    elm_web_back(Evas_Object *obj);
13753    /**
13754     * Goes forward one step in the browsing history
13755     *
13756     * This is equivalent to calling elm_web_object_navigate(obj, 1);
13757     *
13758     * @param obj The web object
13759     *
13760     * @return EINA_TRUE on success, EINA_FALSE otherwise
13761     *
13762     * @see elm_web_history_enable_set()
13763     * @see elm_web_forward_possible()
13764     * @see elm_web_back()
13765     * @see elm_web_navigate()
13766     */
13767    EAPI Eina_Bool                    elm_web_forward(Evas_Object *obj);
13768    /**
13769     * Jumps the given number of steps in the browsing history
13770     *
13771     * The @p steps value can be a negative integer to back in history, or a
13772     * positive to move forward.
13773     *
13774     * @param obj The web object
13775     * @param steps The number of steps to jump
13776     *
13777     * @return EINA_TRUE on success, EINA_FALSE on error or if not enough
13778     * history exists to jump the given number of steps
13779     *
13780     * @see elm_web_history_enable_set()
13781     * @see elm_web_navigate_possible()
13782     * @see elm_web_back()
13783     * @see elm_web_forward()
13784     */
13785    EAPI Eina_Bool                    elm_web_navigate(Evas_Object *obj, int steps);
13786    /**
13787     * Queries whether it's possible to go back in history
13788     *
13789     * @param obj The web object
13790     *
13791     * @return EINA_TRUE if it's possible to back in history, EINA_FALSE
13792     * otherwise
13793     */
13794    EAPI Eina_Bool                    elm_web_back_possible(Evas_Object *obj);
13795    /**
13796     * Queries whether it's possible to go forward in history
13797     *
13798     * @param obj The web object
13799     *
13800     * @return EINA_TRUE if it's possible to forward in history, EINA_FALSE
13801     * otherwise
13802     */
13803    EAPI Eina_Bool                    elm_web_forward_possible(Evas_Object *obj);
13804    /**
13805     * Queries whether it's possible to jump the given number of steps
13806     *
13807     * The @p steps value can be a negative integer to back in history, or a
13808     * positive to move forward.
13809     *
13810     * @param obj The web object
13811     * @param steps The number of steps to check for
13812     *
13813     * @return EINA_TRUE if enough history exists to perform the given jump,
13814     * EINA_FALSE otherwise
13815     */
13816    EAPI Eina_Bool                    elm_web_navigate_possible(Evas_Object *obj, int steps);
13817    /**
13818     * Gets whether browsing history is enabled for the given object
13819     *
13820     * @param obj The web object
13821     *
13822     * @return EINA_TRUE if history is enabled, EINA_FALSE otherwise
13823     */
13824    EAPI Eina_Bool                    elm_web_history_enable_get(const Evas_Object *obj);
13825    /**
13826     * Enables or disables the browsing history
13827     *
13828     * @param obj The web object
13829     * @param enable Whether to enable or disable the browsing history
13830     */
13831    EAPI void                         elm_web_history_enable_set(Evas_Object *obj, Eina_Bool enable);
13832    /**
13833     * Sets the zoom level of the web object
13834     *
13835     * Zoom level matches the Webkit API, so 1.0 means normal zoom, with higher
13836     * values meaning zoom in and lower meaning zoom out. This function will
13837     * only affect the zoom level if the mode set with elm_web_zoom_mode_set()
13838     * is ::ELM_WEB_ZOOM_MODE_MANUAL.
13839     *
13840     * @param obj The web object
13841     * @param zoom The zoom level to set
13842     */
13843    EAPI void                         elm_web_zoom_set(Evas_Object *obj, double zoom);
13844    /**
13845     * Gets the current zoom level set on the web object
13846     *
13847     * Note that this is the zoom level set on the web object and not that
13848     * of the underlying Webkit one. In the ::ELM_WEB_ZOOM_MODE_MANUAL mode,
13849     * the two zoom levels should match, but for the other two modes the
13850     * Webkit zoom is calculated internally to match the chosen mode without
13851     * changing the zoom level set for the web object.
13852     *
13853     * @param obj The web object
13854     *
13855     * @return The zoom level set on the object
13856     */
13857    EAPI double                       elm_web_zoom_get(const Evas_Object *obj);
13858    /**
13859     * Sets the zoom mode to use
13860     *
13861     * The modes can be any of those defined in ::Elm_Web_Zoom_Mode, except
13862     * ::ELM_WEB_ZOOM_MODE_LAST. The default is ::ELM_WEB_ZOOM_MODE_MANUAL.
13863     *
13864     * ::ELM_WEB_ZOOM_MODE_MANUAL means the zoom level will be controlled
13865     * with the elm_web_zoom_set() function.
13866     * ::ELM_WEB_ZOOM_MODE_AUTO_FIT will calculate the needed zoom level to
13867     * make sure the entirety of the web object's contents are shown.
13868     * ::ELM_WEB_ZOOM_MODE_AUTO_FILL will calculate the needed zoom level to
13869     * fit the contents in the web object's size, without leaving any space
13870     * unused.
13871     *
13872     * @param obj The web object
13873     * @param mode The mode to set
13874     */
13875    EAPI void                         elm_web_zoom_mode_set(Evas_Object *obj, Elm_Web_Zoom_Mode mode);
13876    /**
13877     * Gets the currently set zoom mode
13878     *
13879     * @param obj The web object
13880     *
13881     * @return The current zoom mode set for the object, or
13882     * ::ELM_WEB_ZOOM_MODE_LAST on error
13883     */
13884    EAPI Elm_Web_Zoom_Mode            elm_web_zoom_mode_get(const Evas_Object *obj);
13885    /**
13886     * Shows the given region in the web object
13887     *
13888     * @param obj The web object
13889     * @param x The x coordinate of the region to show
13890     * @param y The y coordinate of the region to show
13891     * @param w The width of the region to show
13892     * @param h The height of the region to show
13893     */
13894    EAPI void                         elm_web_region_show(Evas_Object *obj, int x, int y, int w, int h);
13895    /**
13896     * Brings in the region to the visible area
13897     *
13898     * Like elm_web_region_show(), but it animates the scrolling of the object
13899     * to show the area
13900     *
13901     * @param obj The web object
13902     * @param x The x coordinate of the region to show
13903     * @param y The y coordinate of the region to show
13904     * @param w The width of the region to show
13905     * @param h The height of the region to show
13906     */
13907    EAPI void                         elm_web_region_bring_in(Evas_Object *obj, int x, int y, int w, int h);
13908    /**
13909     * Sets the default dialogs to use an Inwin instead of a normal window
13910     *
13911     * If set, then the default implementation for the JavaScript dialogs and
13912     * file selector will be opened in an Inwin. Otherwise they will use a
13913     * normal separated window.
13914     *
13915     * @param obj The web object
13916     * @param value EINA_TRUE to use Inwin, EINA_FALSE to use a normal window
13917     */
13918    EAPI void                         elm_web_inwin_mode_set(Evas_Object *obj, Eina_Bool value);
13919    /**
13920     * Gets whether Inwin mode is set for the current object
13921     *
13922     * @param obj The web object
13923     *
13924     * @return EINA_TRUE if Inwin mode is set, EINA_FALSE otherwise
13925     */
13926    EAPI Eina_Bool                    elm_web_inwin_mode_get(const Evas_Object *obj);
13927
13928    EAPI void                         elm_web_window_features_ref(Elm_Web_Window_Features *wf);
13929    EAPI void                         elm_web_window_features_unref(Elm_Web_Window_Features *wf);
13930    EAPI void                         elm_web_window_features_bool_property_get(const Elm_Web_Window_Features *wf, Eina_Bool *toolbar_visible, Eina_Bool *statusbar_visible, Eina_Bool *scrollbars_visible, Eina_Bool *menubar_visible, Eina_Bool *locationbar_visble, Eina_Bool *fullscreen);
13931    EAPI void                         elm_web_window_features_int_property_get(const Elm_Web_Window_Features *wf, int *x, int *y, int *w, int *h);
13932
13933    /**
13934     * @}
13935     */
13936
13937    /**
13938     * @defgroup Hoversel Hoversel
13939     *
13940     * @image html img/widget/hoversel/preview-00.png
13941     * @image latex img/widget/hoversel/preview-00.eps
13942     *
13943     * A hoversel is a button that pops up a list of items (automatically
13944     * choosing the direction to display) that have a label and, optionally, an
13945     * icon to select from. It is a convenience widget to avoid the need to do
13946     * all the piecing together yourself. It is intended for a small number of
13947     * items in the hoversel menu (no more than 8), though is capable of many
13948     * more.
13949     *
13950     * Signals that you can add callbacks for are:
13951     * "clicked" - the user clicked the hoversel button and popped up the sel
13952     * "selected" - an item in the hoversel list is selected. event_info is the item
13953     * "dismissed" - the hover is dismissed
13954     *
13955     * See @ref tutorial_hoversel for an example.
13956     * @{
13957     */
13958    typedef struct _Elm_Hoversel_Item Elm_Hoversel_Item; /**< Item of Elm_Hoversel. Sub-type of Elm_Widget_Item */
13959    /**
13960     * @brief Add a new Hoversel object
13961     *
13962     * @param parent The parent object
13963     * @return The new object or NULL if it cannot be created
13964     */
13965    EAPI Evas_Object       *elm_hoversel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13966    /**
13967     * @brief This sets the hoversel to expand horizontally.
13968     *
13969     * @param obj The hoversel object
13970     * @param horizontal If true, the hover will expand horizontally to the
13971     * right.
13972     *
13973     * @note The initial button will display horizontally regardless of this
13974     * setting.
13975     */
13976    EAPI void               elm_hoversel_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
13977    /**
13978     * @brief This returns whether the hoversel is set to expand horizontally.
13979     *
13980     * @param obj The hoversel object
13981     * @return If true, the hover will expand horizontally to the right.
13982     *
13983     * @see elm_hoversel_horizontal_set()
13984     */
13985    EAPI Eina_Bool          elm_hoversel_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13986    /**
13987     * @brief Set the Hover parent
13988     *
13989     * @param obj The hoversel object
13990     * @param parent The parent to use
13991     *
13992     * Sets the hover parent object, the area that will be darkened when the
13993     * hoversel is clicked. Should probably be the window that the hoversel is
13994     * in. See @ref Hover objects for more information.
13995     */
13996    EAPI void               elm_hoversel_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
13997    /**
13998     * @brief Get the Hover parent
13999     *
14000     * @param obj The hoversel object
14001     * @return The used parent
14002     *
14003     * Gets the hover parent object.
14004     *
14005     * @see elm_hoversel_hover_parent_set()
14006     */
14007    EAPI Evas_Object       *elm_hoversel_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14008    /**
14009     * @brief Set the hoversel button label
14010     *
14011     * @param obj The hoversel object
14012     * @param label The label text.
14013     *
14014     * This sets the label of the button that is always visible (before it is
14015     * clicked and expanded).
14016     *
14017     * @deprecated elm_object_text_set()
14018     */
14019    EINA_DEPRECATED EAPI void               elm_hoversel_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
14020    /**
14021     * @brief Get the hoversel button label
14022     *
14023     * @param obj The hoversel object
14024     * @return The label text.
14025     *
14026     * @deprecated elm_object_text_get()
14027     */
14028    EINA_DEPRECATED EAPI const char        *elm_hoversel_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14029    /**
14030     * @brief Set the icon of the hoversel button
14031     *
14032     * @param obj The hoversel object
14033     * @param icon The icon object
14034     *
14035     * Sets the icon of the button that is always visible (before it is clicked
14036     * and expanded).  Once the icon object is set, a previously set one will be
14037     * deleted, if you want to keep that old content object, use the
14038     * elm_hoversel_icon_unset() function.
14039     *
14040     * @see elm_object_content_set() for the button widget
14041     */
14042    EAPI void               elm_hoversel_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
14043    /**
14044     * @brief Get the icon of the hoversel button
14045     *
14046     * @param obj The hoversel object
14047     * @return The icon object
14048     *
14049     * Get the icon of the button that is always visible (before it is clicked
14050     * and expanded). Also see elm_object_content_get() for the button widget.
14051     *
14052     * @see elm_hoversel_icon_set()
14053     */
14054    EAPI Evas_Object       *elm_hoversel_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14055    /**
14056     * @brief Get and unparent the icon of the hoversel button
14057     *
14058     * @param obj The hoversel object
14059     * @return The icon object that was being used
14060     *
14061     * Unparent and return the icon of the button that is always visible
14062     * (before it is clicked and expanded).
14063     *
14064     * @see elm_hoversel_icon_set()
14065     * @see elm_object_content_unset() for the button widget
14066     */
14067    EAPI Evas_Object       *elm_hoversel_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
14068    /**
14069     * @brief This triggers the hoversel popup from code, the same as if the user
14070     * had clicked the button.
14071     *
14072     * @param obj The hoversel object
14073     */
14074    EAPI void               elm_hoversel_hover_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
14075    /**
14076     * @brief This dismisses the hoversel popup as if the user had clicked
14077     * outside the hover.
14078     *
14079     * @param obj The hoversel object
14080     */
14081    EAPI void               elm_hoversel_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
14082    /**
14083     * @brief Returns whether the hoversel is expanded.
14084     *
14085     * @param obj The hoversel object
14086     * @return  This will return EINA_TRUE if the hoversel is expanded or
14087     * EINA_FALSE if it is not expanded.
14088     */
14089    EAPI Eina_Bool          elm_hoversel_expanded_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14090    /**
14091     * @brief This will remove all the children items from the hoversel.
14092     *
14093     * @param obj The hoversel object
14094     *
14095     * @warning Should @b not be called while the hoversel is active; use
14096     * elm_hoversel_expanded_get() to check first.
14097     *
14098     * @see elm_hoversel_item_del_cb_set()
14099     * @see elm_hoversel_item_del()
14100     */
14101    EAPI void               elm_hoversel_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
14102    /**
14103     * @brief Get the list of items within the given hoversel.
14104     *
14105     * @param obj The hoversel object
14106     * @return Returns a list of Elm_Hoversel_Item*
14107     *
14108     * @see elm_hoversel_item_add()
14109     */
14110    EAPI const Eina_List   *elm_hoversel_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14111    /**
14112     * @brief Add an item to the hoversel button
14113     *
14114     * @param obj The hoversel object
14115     * @param label The text label to use for the item (NULL if not desired)
14116     * @param icon_file An image file path on disk to use for the icon or standard
14117     * icon name (NULL if not desired)
14118     * @param icon_type The icon type if relevant
14119     * @param func Convenience function to call when this item is selected
14120     * @param data Data to pass to item-related functions
14121     * @return A handle to the item added.
14122     *
14123     * This adds an item to the hoversel to show when it is clicked. Note: if you
14124     * need to use an icon from an edje file then use
14125     * elm_hoversel_item_icon_set() right after the this function, and set
14126     * icon_file to NULL here.
14127     *
14128     * For more information on what @p icon_file and @p icon_type are see the
14129     * @ref Icon "icon documentation".
14130     */
14131    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);
14132    /**
14133     * @brief Delete an item from the hoversel
14134     *
14135     * @param item The item to delete
14136     *
14137     * This deletes the item from the hoversel (should not be called while the
14138     * hoversel is active; use elm_hoversel_expanded_get() to check first).
14139     *
14140     * @see elm_hoversel_item_add()
14141     * @see elm_hoversel_item_del_cb_set()
14142     */
14143    EAPI void               elm_hoversel_item_del(Elm_Hoversel_Item *item) EINA_ARG_NONNULL(1);
14144    /**
14145     * @brief Set the function to be called when an item from the hoversel is
14146     * freed.
14147     *
14148     * @param item The item to set the callback on
14149     * @param func The function called
14150     *
14151     * That function will receive these parameters:
14152     * @li void *item_data
14153     * @li Evas_Object *the_item_object
14154     * @li Elm_Hoversel_Item *the_object_struct
14155     *
14156     * @see elm_hoversel_item_add()
14157     */
14158    EAPI void               elm_hoversel_item_del_cb_set(Elm_Hoversel_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
14159    /**
14160     * @brief This returns the data pointer supplied with elm_hoversel_item_add()
14161     * that will be passed to associated function callbacks.
14162     *
14163     * @param item The item to get the data from
14164     * @return The data pointer set with elm_hoversel_item_add()
14165     *
14166     * @see elm_hoversel_item_add()
14167     */
14168    EAPI void              *elm_hoversel_item_data_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
14169    /**
14170     * @brief This returns the label text of the given hoversel item.
14171     *
14172     * @param item The item to get the label
14173     * @return The label text of the hoversel item
14174     *
14175     * @see elm_hoversel_item_add()
14176     */
14177    EAPI const char        *elm_hoversel_item_label_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
14178    /**
14179     * @brief This sets the icon for the given hoversel item.
14180     *
14181     * @param item The item to set the icon
14182     * @param icon_file An image file path on disk to use for the icon or standard
14183     * icon name
14184     * @param icon_group The edje group to use if @p icon_file is an edje file. Set this
14185     * to NULL if the icon is not an edje file
14186     * @param icon_type The icon type
14187     *
14188     * The icon can be loaded from the standard set, from an image file, or from
14189     * an edje file.
14190     *
14191     * @see elm_hoversel_item_add()
14192     */
14193    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);
14194    /**
14195     * @brief Get the icon object of the hoversel item
14196     *
14197     * @param item The item to get the icon from
14198     * @param icon_file The image file path on disk used for the icon or standard
14199     * icon name
14200     * @param icon_group The edje group used if @p icon_file is an edje file. NULL
14201     * if the icon is not an edje file
14202     * @param icon_type The icon type
14203     *
14204     * @see elm_hoversel_item_icon_set()
14205     * @see elm_hoversel_item_add()
14206     */
14207    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);
14208    /**
14209     * @}
14210     */
14211
14212    /**
14213     * @defgroup Toolbar Toolbar
14214     * @ingroup Elementary
14215     *
14216     * @image html img/widget/toolbar/preview-00.png
14217     * @image latex img/widget/toolbar/preview-00.eps width=\textwidth
14218     *
14219     * @image html img/toolbar.png
14220     * @image latex img/toolbar.eps width=\textwidth
14221     *
14222     * A toolbar is a widget that displays a list of items inside
14223     * a box. It can be scrollable, show a menu with items that don't fit
14224     * to toolbar size or even crop them.
14225     *
14226     * Only one item can be selected at a time.
14227     *
14228     * Items can have multiple states, or show menus when selected by the user.
14229     *
14230     * Smart callbacks one can listen to:
14231     * - "clicked" - when the user clicks on a toolbar item and becomes selected.
14232     * - "language,changed" - when the program language changes
14233     *
14234     * Available styles for it:
14235     * - @c "default"
14236     * - @c "transparent" - no background or shadow, just show the content
14237     *
14238     * List of examples:
14239     * @li @ref toolbar_example_01
14240     * @li @ref toolbar_example_02
14241     * @li @ref toolbar_example_03
14242     */
14243
14244    /**
14245     * @addtogroup Toolbar
14246     * @{
14247     */
14248
14249    /**
14250     * @enum _Elm_Toolbar_Shrink_Mode
14251     * @typedef Elm_Toolbar_Shrink_Mode
14252     *
14253     * Set toolbar's items display behavior, it can be scrollabel,
14254     * show a menu with exceeding items, or simply hide them.
14255     *
14256     * @note Default value is #ELM_TOOLBAR_SHRINK_MENU. It reads value
14257     * from elm config.
14258     *
14259     * Values <b> don't </b> work as bitmask, only one can be choosen.
14260     *
14261     * @see elm_toolbar_mode_shrink_set()
14262     * @see elm_toolbar_mode_shrink_get()
14263     *
14264     * @ingroup Toolbar
14265     */
14266    typedef enum _Elm_Toolbar_Shrink_Mode
14267      {
14268         ELM_TOOLBAR_SHRINK_NONE,   /**< Set toolbar minimun size to fit all the items. */
14269         ELM_TOOLBAR_SHRINK_HIDE,   /**< Hide exceeding items. */
14270         ELM_TOOLBAR_SHRINK_SCROLL, /**< Allow accessing exceeding items through a scroller. */
14271         ELM_TOOLBAR_SHRINK_MENU,   /**< Inserts a button to pop up a menu with exceeding items. */
14272         ELM_TOOLBAR_SHRINK_LAST    /**< Indicates error if returned by elm_toolbar_shrink_mode_get() */
14273      } Elm_Toolbar_Shrink_Mode;
14274
14275    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(). */
14276
14277    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(). */
14278
14279    /**
14280     * Add a new toolbar widget to the given parent Elementary
14281     * (container) object.
14282     *
14283     * @param parent The parent object.
14284     * @return a new toolbar widget handle or @c NULL, on errors.
14285     *
14286     * This function inserts a new toolbar widget on the canvas.
14287     *
14288     * @ingroup Toolbar
14289     */
14290    EAPI Evas_Object            *elm_toolbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14291
14292    /**
14293     * Set the icon size, in pixels, to be used by toolbar items.
14294     *
14295     * @param obj The toolbar object
14296     * @param icon_size The icon size in pixels
14297     *
14298     * @note Default value is @c 32. It reads value from elm config.
14299     *
14300     * @see elm_toolbar_icon_size_get()
14301     *
14302     * @ingroup Toolbar
14303     */
14304    EAPI void                    elm_toolbar_icon_size_set(Evas_Object *obj, int icon_size) EINA_ARG_NONNULL(1);
14305
14306    /**
14307     * Get the icon size, in pixels, to be used by toolbar items.
14308     *
14309     * @param obj The toolbar object.
14310     * @return The icon size in pixels.
14311     *
14312     * @see elm_toolbar_icon_size_set() for details.
14313     *
14314     * @ingroup Toolbar
14315     */
14316    EAPI int                     elm_toolbar_icon_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14317
14318    /**
14319     * Sets icon lookup order, for toolbar items' icons.
14320     *
14321     * @param obj The toolbar object.
14322     * @param order The icon lookup order.
14323     *
14324     * Icons added before calling this function will not be affected.
14325     * The default lookup order is #ELM_ICON_LOOKUP_THEME_FDO.
14326     *
14327     * @see elm_toolbar_icon_order_lookup_get()
14328     *
14329     * @ingroup Toolbar
14330     */
14331    EAPI void                    elm_toolbar_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
14332
14333    /**
14334     * Gets the icon lookup order.
14335     *
14336     * @param obj The toolbar object.
14337     * @return The icon lookup order.
14338     *
14339     * @see elm_toolbar_icon_order_lookup_set() for details.
14340     *
14341     * @ingroup Toolbar
14342     */
14343    EAPI Elm_Icon_Lookup_Order   elm_toolbar_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14344
14345    /**
14346     * Set whether the toolbar should always have an item selected.
14347     *
14348     * @param obj The toolbar object.
14349     * @param wrap @c EINA_TRUE to enable always-select mode or @c EINA_FALSE to
14350     * disable it.
14351     *
14352     * This will cause the toolbar to always have an item selected, and clicking
14353     * the selected item will not cause a selected event to be emitted. Enabling this mode
14354     * will immediately select the first toolbar item.
14355     *
14356     * Always-selected is disabled by default.
14357     *
14358     * @see elm_toolbar_always_select_mode_get().
14359     *
14360     * @ingroup Toolbar
14361     */
14362    EAPI void                    elm_toolbar_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
14363
14364    /**
14365     * Get whether the toolbar should always have an item selected.
14366     *
14367     * @param obj The toolbar object.
14368     * @return @c EINA_TRUE means an item will always be selected, @c EINA_FALSE indicates
14369     * that it is possible to have no items selected. If @p obj is @c NULL, @c EINA_FALSE is returned.
14370     *
14371     * @see elm_toolbar_always_select_mode_set() for details.
14372     *
14373     * @ingroup Toolbar
14374     */
14375    EAPI Eina_Bool               elm_toolbar_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14376
14377    /**
14378     * Set whether the toolbar items' should be selected by the user or not.
14379     *
14380     * @param obj The toolbar object.
14381     * @param wrap @c EINA_TRUE to disable selection or @c EINA_FALSE to
14382     * enable it.
14383     *
14384     * This will turn off the ability to select items entirely and they will
14385     * neither appear selected nor emit selected signals. The clicked
14386     * callback function will still be called.
14387     *
14388     * Selection is enabled by default.
14389     *
14390     * @see elm_toolbar_no_select_mode_get().
14391     *
14392     * @ingroup Toolbar
14393     */
14394    EAPI void                    elm_toolbar_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
14395
14396    /**
14397     * Set whether the toolbar items' should be selected by the user or not.
14398     *
14399     * @param obj The toolbar object.
14400     * @return @c EINA_TRUE means items can be selected. @c EINA_FALSE indicates
14401     * they can't. If @p obj is @c NULL, @c EINA_FALSE is returned.
14402     *
14403     * @see elm_toolbar_no_select_mode_set() for details.
14404     *
14405     * @ingroup Toolbar
14406     */
14407    EAPI Eina_Bool               elm_toolbar_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14408
14409    /**
14410     * Append item to the toolbar.
14411     *
14412     * @param obj The toolbar object.
14413     * @param icon A string with icon name or the absolute path of an image file.
14414     * @param label The label of the item.
14415     * @param func The function to call when the item is clicked.
14416     * @param data The data to associate with the item for related callbacks.
14417     * @return The created item or @c NULL upon failure.
14418     *
14419     * A new item will be created and appended to the toolbar, i.e., will
14420     * be set as @b last item.
14421     *
14422     * Items created with this method can be deleted with
14423     * elm_toolbar_item_del().
14424     *
14425     * Associated @p data can be properly freed when item is deleted if a
14426     * callback function is set with elm_toolbar_item_del_cb_set().
14427     *
14428     * If a function is passed as argument, it will be called everytime this item
14429     * is selected, i.e., the user clicks over an unselected item.
14430     * If such function isn't needed, just passing
14431     * @c NULL as @p func is enough. The same should be done for @p data.
14432     *
14433     * Toolbar will load icon image from fdo or current theme.
14434     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14435     * If an absolute path is provided it will load it direct from a file.
14436     *
14437     * @see elm_toolbar_item_icon_set()
14438     * @see elm_toolbar_item_del()
14439     * @see elm_toolbar_item_del_cb_set()
14440     *
14441     * @ingroup Toolbar
14442     */
14443    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);
14444
14445    /**
14446     * Prepend item to the toolbar.
14447     *
14448     * @param obj The toolbar object.
14449     * @param icon A string with icon name or the absolute path of an image file.
14450     * @param label The label of the item.
14451     * @param func The function to call when the item is clicked.
14452     * @param data The data to associate with the item for related callbacks.
14453     * @return The created item or @c NULL upon failure.
14454     *
14455     * A new item will be created and prepended to the toolbar, i.e., will
14456     * be set as @b first item.
14457     *
14458     * Items created with this method can be deleted with
14459     * elm_toolbar_item_del().
14460     *
14461     * Associated @p data can be properly freed when item is deleted if a
14462     * callback function is set with elm_toolbar_item_del_cb_set().
14463     *
14464     * If a function is passed as argument, it will be called everytime this item
14465     * is selected, i.e., the user clicks over an unselected item.
14466     * If such function isn't needed, just passing
14467     * @c NULL as @p func is enough. The same should be done for @p data.
14468     *
14469     * Toolbar will load icon image from fdo or current theme.
14470     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14471     * If an absolute path is provided it will load it direct from a file.
14472     *
14473     * @see elm_toolbar_item_icon_set()
14474     * @see elm_toolbar_item_del()
14475     * @see elm_toolbar_item_del_cb_set()
14476     *
14477     * @ingroup Toolbar
14478     */
14479    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);
14480
14481    /**
14482     * Insert a new item into the toolbar object before item @p before.
14483     *
14484     * @param obj The toolbar object.
14485     * @param before The toolbar item to insert before.
14486     * @param icon A string with icon name or the absolute path of an image file.
14487     * @param label The label of the item.
14488     * @param func The function to call when the item is clicked.
14489     * @param data The data to associate with the item for related callbacks.
14490     * @return The created item or @c NULL upon failure.
14491     *
14492     * A new item will be created and added to the toolbar. Its position in
14493     * this toolbar will be just before item @p before.
14494     *
14495     * Items created with this method can be deleted with
14496     * elm_toolbar_item_del().
14497     *
14498     * Associated @p data can be properly freed when item is deleted if a
14499     * callback function is set with elm_toolbar_item_del_cb_set().
14500     *
14501     * If a function is passed as argument, it will be called everytime this item
14502     * is selected, i.e., the user clicks over an unselected item.
14503     * If such function isn't needed, just passing
14504     * @c NULL as @p func is enough. The same should be done for @p data.
14505     *
14506     * Toolbar will load icon image from fdo or current theme.
14507     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14508     * If an absolute path is provided it will load it direct from a file.
14509     *
14510     * @see elm_toolbar_item_icon_set()
14511     * @see elm_toolbar_item_del()
14512     * @see elm_toolbar_item_del_cb_set()
14513     *
14514     * @ingroup Toolbar
14515     */
14516    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);
14517
14518    /**
14519     * Insert a new item into the toolbar object after item @p after.
14520     *
14521     * @param obj The toolbar object.
14522     * @param after The toolbar item to insert after.
14523     * @param icon A string with icon name or the absolute path of an image file.
14524     * @param label The label of the item.
14525     * @param func The function to call when the item is clicked.
14526     * @param data The data to associate with the item for related callbacks.
14527     * @return The created item or @c NULL upon failure.
14528     *
14529     * A new item will be created and added to the toolbar. Its position in
14530     * this toolbar will be just after item @p after.
14531     *
14532     * Items created with this method can be deleted with
14533     * elm_toolbar_item_del().
14534     *
14535     * Associated @p data can be properly freed when item is deleted if a
14536     * callback function is set with elm_toolbar_item_del_cb_set().
14537     *
14538     * If a function is passed as argument, it will be called everytime this item
14539     * is selected, i.e., the user clicks over an unselected item.
14540     * If such function isn't needed, just passing
14541     * @c NULL as @p func is enough. The same should be done for @p data.
14542     *
14543     * Toolbar will load icon image from fdo or current theme.
14544     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14545     * If an absolute path is provided it will load it direct from a file.
14546     *
14547     * @see elm_toolbar_item_icon_set()
14548     * @see elm_toolbar_item_del()
14549     * @see elm_toolbar_item_del_cb_set()
14550     *
14551     * @ingroup Toolbar
14552     */
14553    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);
14554
14555    /**
14556     * Get the first item in the given toolbar widget's list of
14557     * items.
14558     *
14559     * @param obj The toolbar object
14560     * @return The first item or @c NULL, if it has no items (and on
14561     * errors)
14562     *
14563     * @see elm_toolbar_item_append()
14564     * @see elm_toolbar_last_item_get()
14565     *
14566     * @ingroup Toolbar
14567     */
14568    EAPI Elm_Toolbar_Item       *elm_toolbar_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14569
14570    /**
14571     * Get the last item in the given toolbar widget's list of
14572     * items.
14573     *
14574     * @param obj The toolbar object
14575     * @return The last item or @c NULL, if it has no items (and on
14576     * errors)
14577     *
14578     * @see elm_toolbar_item_prepend()
14579     * @see elm_toolbar_first_item_get()
14580     *
14581     * @ingroup Toolbar
14582     */
14583    EAPI Elm_Toolbar_Item       *elm_toolbar_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14584
14585    /**
14586     * Get the item after @p item in toolbar.
14587     *
14588     * @param item The toolbar item.
14589     * @return The item after @p item, or @c NULL if none or on failure.
14590     *
14591     * @note If it is the last item, @c NULL will be returned.
14592     *
14593     * @see elm_toolbar_item_append()
14594     *
14595     * @ingroup Toolbar
14596     */
14597    EAPI Elm_Toolbar_Item       *elm_toolbar_item_next_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14598
14599    /**
14600     * Get the item before @p item in toolbar.
14601     *
14602     * @param item The toolbar item.
14603     * @return The item before @p item, or @c NULL if none or on failure.
14604     *
14605     * @note If it is the first item, @c NULL will be returned.
14606     *
14607     * @see elm_toolbar_item_prepend()
14608     *
14609     * @ingroup Toolbar
14610     */
14611    EAPI Elm_Toolbar_Item       *elm_toolbar_item_prev_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14612
14613    /**
14614     * Get the toolbar object from an item.
14615     *
14616     * @param item The item.
14617     * @return The toolbar object.
14618     *
14619     * This returns the toolbar object itself that an item belongs to.
14620     *
14621     * @ingroup Toolbar
14622     */
14623    EAPI Evas_Object            *elm_toolbar_item_toolbar_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14624
14625    /**
14626     * Set the priority of a toolbar item.
14627     *
14628     * @param item The toolbar item.
14629     * @param priority The item priority. The default is zero.
14630     *
14631     * This is used only when the toolbar shrink mode is set to
14632     * #ELM_TOOLBAR_SHRINK_MENU or #ELM_TOOLBAR_SHRINK_HIDE.
14633     * When space is less than required, items with low priority
14634     * will be removed from the toolbar and added to a dynamically-created menu,
14635     * while items with higher priority will remain on the toolbar,
14636     * with the same order they were added.
14637     *
14638     * @see elm_toolbar_item_priority_get()
14639     *
14640     * @ingroup Toolbar
14641     */
14642    EAPI void                    elm_toolbar_item_priority_set(Elm_Toolbar_Item *item, int priority) EINA_ARG_NONNULL(1);
14643
14644    /**
14645     * Get the priority of a toolbar item.
14646     *
14647     * @param item The toolbar item.
14648     * @return The @p item priority, or @c 0 on failure.
14649     *
14650     * @see elm_toolbar_item_priority_set() for details.
14651     *
14652     * @ingroup Toolbar
14653     */
14654    EAPI int                     elm_toolbar_item_priority_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14655
14656    /**
14657     * Get the label of item.
14658     *
14659     * @param item The item of toolbar.
14660     * @return The label of item.
14661     *
14662     * The return value is a pointer to the label associated to @p item when
14663     * it was created, with function elm_toolbar_item_append() or similar,
14664     * or later,
14665     * with function elm_toolbar_item_label_set. If no label
14666     * was passed as argument, it will return @c NULL.
14667     *
14668     * @see elm_toolbar_item_label_set() for more details.
14669     * @see elm_toolbar_item_append()
14670     *
14671     * @ingroup Toolbar
14672     */
14673    EAPI const char             *elm_toolbar_item_label_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14674
14675    /**
14676     * Set the label of item.
14677     *
14678     * @param item The item of toolbar.
14679     * @param text The label of item.
14680     *
14681     * The label to be displayed by the item.
14682     * Label will be placed at icons bottom (if set).
14683     *
14684     * If a label was passed as argument on item creation, with function
14685     * elm_toolbar_item_append() or similar, it will be already
14686     * displayed by the item.
14687     *
14688     * @see elm_toolbar_item_label_get()
14689     * @see elm_toolbar_item_append()
14690     *
14691     * @ingroup Toolbar
14692     */
14693    EAPI void                    elm_toolbar_item_label_set(Elm_Toolbar_Item *item, const char *label) EINA_ARG_NONNULL(1);
14694
14695    /**
14696     * Return the data associated with a given toolbar widget item.
14697     *
14698     * @param item The toolbar widget item handle.
14699     * @return The data associated with @p item.
14700     *
14701     * @see elm_toolbar_item_data_set()
14702     *
14703     * @ingroup Toolbar
14704     */
14705    EAPI void                   *elm_toolbar_item_data_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14706
14707    /**
14708     * Set the data associated with a given toolbar widget item.
14709     *
14710     * @param item The toolbar widget item handle.
14711     * @param data The new data pointer to set to @p item.
14712     *
14713     * This sets new item data on @p item.
14714     *
14715     * @warning The old data pointer won't be touched by this function, so
14716     * the user had better to free that old data himself/herself.
14717     *
14718     * @ingroup Toolbar
14719     */
14720    EAPI void                    elm_toolbar_item_data_set(Elm_Toolbar_Item *item, const void *data) EINA_ARG_NONNULL(1);
14721
14722    /**
14723     * Returns a pointer to a toolbar item by its label.
14724     *
14725     * @param obj The toolbar object.
14726     * @param label The label of the item to find.
14727     *
14728     * @return The pointer to the toolbar item matching @p label or @c NULL
14729     * on failure.
14730     *
14731     * @ingroup Toolbar
14732     */
14733    EAPI Elm_Toolbar_Item       *elm_toolbar_item_find_by_label(const Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
14734
14735    /*
14736     * Get whether the @p item is selected or not.
14737     *
14738     * @param item The toolbar item.
14739     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
14740     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
14741     *
14742     * @see elm_toolbar_selected_item_set() for details.
14743     * @see elm_toolbar_item_selected_get()
14744     *
14745     * @ingroup Toolbar
14746     */
14747    EAPI Eina_Bool               elm_toolbar_item_selected_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14748
14749    /**
14750     * Set the selected state of an item.
14751     *
14752     * @param item The toolbar item
14753     * @param selected The selected state
14754     *
14755     * This sets the selected state of the given item @p it.
14756     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
14757     *
14758     * If a new item is selected the previosly selected will be unselected.
14759     * Previoulsy selected item can be get with function
14760     * elm_toolbar_selected_item_get().
14761     *
14762     * Selected items will be highlighted.
14763     *
14764     * @see elm_toolbar_item_selected_get()
14765     * @see elm_toolbar_selected_item_get()
14766     *
14767     * @ingroup Toolbar
14768     */
14769    EAPI void                    elm_toolbar_item_selected_set(Elm_Toolbar_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
14770
14771    /**
14772     * Get the selected item.
14773     *
14774     * @param obj The toolbar object.
14775     * @return The selected toolbar item.
14776     *
14777     * The selected item can be unselected with function
14778     * elm_toolbar_item_selected_set().
14779     *
14780     * The selected item always will be highlighted on toolbar.
14781     *
14782     * @see elm_toolbar_selected_items_get()
14783     *
14784     * @ingroup Toolbar
14785     */
14786    EAPI Elm_Toolbar_Item       *elm_toolbar_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14787
14788    /**
14789     * Set the icon associated with @p item.
14790     *
14791     * @param obj The parent of this item.
14792     * @param item The toolbar item.
14793     * @param icon A string with icon name or the absolute path of an image file.
14794     *
14795     * Toolbar will load icon image from fdo or current theme.
14796     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14797     * If an absolute path is provided it will load it direct from a file.
14798     *
14799     * @see elm_toolbar_icon_order_lookup_set()
14800     * @see elm_toolbar_icon_order_lookup_get()
14801     *
14802     * @ingroup Toolbar
14803     */
14804    EAPI void                    elm_toolbar_item_icon_set(Elm_Toolbar_Item *item, const char *icon) EINA_ARG_NONNULL(1);
14805
14806    /**
14807     * Get the string used to set the icon of @p item.
14808     *
14809     * @param item The toolbar item.
14810     * @return The string associated with the icon object.
14811     *
14812     * @see elm_toolbar_item_icon_set() for details.
14813     *
14814     * @ingroup Toolbar
14815     */
14816    EAPI const char             *elm_toolbar_item_icon_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14817
14818    /**
14819     * Get the object of @p item.
14820     *
14821     * @param item The toolbar item.
14822     * @return The object
14823     *
14824     * @ingroup Toolbar
14825     */
14826    EAPI Evas_Object            *elm_toolbar_item_object_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14827
14828    /**
14829     * Get the icon object of @p item.
14830     *
14831     * @param item The toolbar item.
14832     * @return The icon object
14833     *
14834     * @see elm_toolbar_item_icon_set() or elm_toolbar_item_icon_memfile_set() for details.
14835     *
14836     * @ingroup Toolbar
14837     */
14838    EAPI Evas_Object            *elm_toolbar_item_icon_object_get(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14839
14840    /**
14841     * Set the icon associated with @p item to an image in a binary buffer.
14842     *
14843     * @param item The toolbar item.
14844     * @param img The binary data that will be used as an image
14845     * @param size The size of binary data @p img
14846     * @param format Optional format of @p img to pass to the image loader
14847     * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
14848     *
14849     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
14850     *
14851     * @note The icon image set by this function can be changed by
14852     * elm_toolbar_item_icon_set().
14853     * 
14854     * @ingroup Toolbar
14855     */
14856    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);
14857
14858    /**
14859     * Delete them item from the toolbar.
14860     *
14861     * @param item The item of toolbar to be deleted.
14862     *
14863     * @see elm_toolbar_item_append()
14864     * @see elm_toolbar_item_del_cb_set()
14865     *
14866     * @ingroup Toolbar
14867     */
14868    EAPI void                    elm_toolbar_item_del(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14869
14870    /**
14871     * Set the function called when a toolbar item is freed.
14872     *
14873     * @param item The item to set the callback on.
14874     * @param func The function called.
14875     *
14876     * If there is a @p func, then it will be called prior item's memory release.
14877     * That will be called with the following arguments:
14878     * @li item's data;
14879     * @li item's Evas object;
14880     * @li item itself;
14881     *
14882     * This way, a data associated to a toolbar item could be properly freed.
14883     *
14884     * @ingroup Toolbar
14885     */
14886    EAPI void                    elm_toolbar_item_del_cb_set(Elm_Toolbar_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
14887
14888    /**
14889     * Get a value whether toolbar item is disabled or not.
14890     *
14891     * @param item The item.
14892     * @return The disabled state.
14893     *
14894     * @see elm_toolbar_item_disabled_set() for more details.
14895     *
14896     * @ingroup Toolbar
14897     */
14898    EAPI Eina_Bool               elm_toolbar_item_disabled_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14899
14900    /**
14901     * Sets the disabled/enabled state of a toolbar item.
14902     *
14903     * @param item The item.
14904     * @param disabled The disabled state.
14905     *
14906     * A disabled item cannot be selected or unselected. It will also
14907     * change its appearance (generally greyed out). This sets the
14908     * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
14909     * enabled).
14910     *
14911     * @ingroup Toolbar
14912     */
14913    EAPI void                    elm_toolbar_item_disabled_set(Elm_Toolbar_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
14914
14915    /**
14916     * Set or unset item as a separator.
14917     *
14918     * @param item The toolbar item.
14919     * @param setting @c EINA_TRUE to set item @p item as separator or
14920     * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
14921     *
14922     * Items aren't set as separator by default.
14923     *
14924     * If set as separator it will display separator theme, so won't display
14925     * icons or label.
14926     *
14927     * @see elm_toolbar_item_separator_get()
14928     *
14929     * @ingroup Toolbar
14930     */
14931    EAPI void                    elm_toolbar_item_separator_set(Elm_Toolbar_Item *item, Eina_Bool separator) EINA_ARG_NONNULL(1);
14932
14933    /**
14934     * Get a value whether item is a separator or not.
14935     *
14936     * @param item The toolbar item.
14937     * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
14938     * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
14939     *
14940     * @see elm_toolbar_item_separator_set() for details.
14941     *
14942     * @ingroup Toolbar
14943     */
14944    EAPI Eina_Bool               elm_toolbar_item_separator_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14945
14946    /**
14947     * Set the shrink state of toolbar @p obj.
14948     *
14949     * @param obj The toolbar object.
14950     * @param shrink_mode Toolbar's items display behavior.
14951     *
14952     * The toolbar won't scroll if #ELM_TOOLBAR_SHRINK_NONE,
14953     * but will enforce a minimun size so all the items will fit, won't scroll
14954     * and won't show the items that don't fit if #ELM_TOOLBAR_SHRINK_HIDE,
14955     * will scroll if #ELM_TOOLBAR_SHRINK_SCROLL, and will create a button to
14956     * pop up excess elements with #ELM_TOOLBAR_SHRINK_MENU.
14957     *
14958     * @ingroup Toolbar
14959     */
14960    EAPI void                    elm_toolbar_mode_shrink_set(Evas_Object *obj, Elm_Toolbar_Shrink_Mode shrink_mode) EINA_ARG_NONNULL(1);
14961
14962    /**
14963     * Get the shrink mode of toolbar @p obj.
14964     *
14965     * @param obj The toolbar object.
14966     * @return Toolbar's items display behavior.
14967     *
14968     * @see elm_toolbar_mode_shrink_set() for details.
14969     *
14970     * @ingroup Toolbar
14971     */
14972    EAPI Elm_Toolbar_Shrink_Mode elm_toolbar_mode_shrink_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14973
14974    /**
14975     * Enable/disable homogenous mode.
14976     *
14977     * @param obj The toolbar object
14978     * @param homogeneous Assume the items within the toolbar are of the
14979     * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
14980     *
14981     * This will enable the homogeneous mode where items are of the same size.
14982     * @see elm_toolbar_homogeneous_get()
14983     *
14984     * @ingroup Toolbar
14985     */
14986    EAPI void                    elm_toolbar_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
14987
14988    /**
14989     * Get whether the homogenous mode is enabled.
14990     *
14991     * @param obj The toolbar object.
14992     * @return Assume the items within the toolbar are of the same height
14993     * and width (EINA_TRUE = on, EINA_FALSE = off).
14994     *
14995     * @see elm_toolbar_homogeneous_set()
14996     *
14997     * @ingroup Toolbar
14998     */
14999    EAPI Eina_Bool               elm_toolbar_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15000
15001    /**
15002     * Enable/disable homogenous mode.
15003     *
15004     * @param obj The toolbar object
15005     * @param homogeneous Assume the items within the toolbar are of the
15006     * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
15007     *
15008     * This will enable the homogeneous mode where items are of the same size.
15009     * @see elm_toolbar_homogeneous_get()
15010     *
15011     * @deprecated use elm_toolbar_homogeneous_set() instead.
15012     *
15013     * @ingroup Toolbar
15014     */
15015    EINA_DEPRECATED EAPI void    elm_toolbar_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
15016
15017    /**
15018     * Get whether the homogenous mode is enabled.
15019     *
15020     * @param obj The toolbar object.
15021     * @return Assume the items within the toolbar are of the same height
15022     * and width (EINA_TRUE = on, EINA_FALSE = off).
15023     *
15024     * @see elm_toolbar_homogeneous_set()
15025     * @deprecated use elm_toolbar_homogeneous_get() instead.
15026     *
15027     * @ingroup Toolbar
15028     */
15029    EINA_DEPRECATED EAPI Eina_Bool elm_toolbar_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15030
15031    /**
15032     * Set the parent object of the toolbar items' menus.
15033     *
15034     * @param obj The toolbar object.
15035     * @param parent The parent of the menu objects.
15036     *
15037     * Each item can be set as item menu, with elm_toolbar_item_menu_set().
15038     *
15039     * For more details about setting the parent for toolbar menus, see
15040     * elm_menu_parent_set().
15041     *
15042     * @see elm_menu_parent_set() for details.
15043     * @see elm_toolbar_item_menu_set() for details.
15044     *
15045     * @ingroup Toolbar
15046     */
15047    EAPI void                    elm_toolbar_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
15048
15049    /**
15050     * Get the parent object of the toolbar items' menus.
15051     *
15052     * @param obj The toolbar object.
15053     * @return The parent of the menu objects.
15054     *
15055     * @see elm_toolbar_menu_parent_set() for details.
15056     *
15057     * @ingroup Toolbar
15058     */
15059    EAPI Evas_Object            *elm_toolbar_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15060
15061    /**
15062     * Set the alignment of the items.
15063     *
15064     * @param obj The toolbar object.
15065     * @param align The new alignment, a float between <tt> 0.0 </tt>
15066     * and <tt> 1.0 </tt>.
15067     *
15068     * Alignment of toolbar items, from <tt> 0.0 </tt> to indicates to align
15069     * left, to <tt> 1.0 </tt>, to align to right. <tt> 0.5 </tt> centralize
15070     * items.
15071     *
15072     * Centered items by default.
15073     *
15074     * @see elm_toolbar_align_get()
15075     *
15076     * @ingroup Toolbar
15077     */
15078    EAPI void                    elm_toolbar_align_set(Evas_Object *obj, double align) EINA_ARG_NONNULL(1);
15079
15080    /**
15081     * Get the alignment of the items.
15082     *
15083     * @param obj The toolbar object.
15084     * @return toolbar items alignment, a float between <tt> 0.0 </tt> and
15085     * <tt> 1.0 </tt>.
15086     *
15087     * @see elm_toolbar_align_set() for details.
15088     *
15089     * @ingroup Toolbar
15090     */
15091    EAPI double                  elm_toolbar_align_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15092
15093    /**
15094     * Set whether the toolbar item opens a menu.
15095     *
15096     * @param item The toolbar item.
15097     * @param menu If @c EINA_TRUE, @p item will opens a menu when selected.
15098     *
15099     * A toolbar item can be set to be a menu, using this function.
15100     *
15101     * Once it is set to be a menu, it can be manipulated through the
15102     * menu-like function elm_toolbar_menu_parent_set() and the other
15103     * elm_menu functions, using the Evas_Object @c menu returned by
15104     * elm_toolbar_item_menu_get().
15105     *
15106     * So, items to be displayed in this item's menu should be added with
15107     * elm_menu_item_add().
15108     *
15109     * The following code exemplifies the most basic usage:
15110     * @code
15111     * tb = elm_toolbar_add(win)
15112     * item = elm_toolbar_item_append(tb, "refresh", "Menu", NULL, NULL);
15113     * elm_toolbar_item_menu_set(item, EINA_TRUE);
15114     * elm_toolbar_menu_parent_set(tb, win);
15115     * menu = elm_toolbar_item_menu_get(item);
15116     * elm_menu_item_add(menu, NULL, "edit-cut", "Cut", NULL, NULL);
15117     * menu_item = elm_menu_item_add(menu, NULL, "edit-copy", "Copy", NULL,
15118     * NULL);
15119     * @endcode
15120     *
15121     * @see elm_toolbar_item_menu_get()
15122     *
15123     * @ingroup Toolbar
15124     */
15125    EAPI void                    elm_toolbar_item_menu_set(Elm_Toolbar_Item *item, Eina_Bool menu) EINA_ARG_NONNULL(1);
15126
15127    /**
15128     * Get toolbar item's menu.
15129     *
15130     * @param item The toolbar item.
15131     * @return Item's menu object or @c NULL on failure.
15132     *
15133     * If @p item wasn't set as menu item with elm_toolbar_item_menu_set(),
15134     * this function will set it.
15135     *
15136     * @see elm_toolbar_item_menu_set() for details.
15137     *
15138     * @ingroup Toolbar
15139     */
15140    EAPI Evas_Object            *elm_toolbar_item_menu_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15141
15142    /**
15143     * Add a new state to @p item.
15144     *
15145     * @param item The item.
15146     * @param icon A string with icon name or the absolute path of an image file.
15147     * @param label The label of the new state.
15148     * @param func The function to call when the item is clicked when this
15149     * state is selected.
15150     * @param data The data to associate with the state.
15151     * @return The toolbar item state, or @c NULL upon failure.
15152     *
15153     * Toolbar will load icon image from fdo or current theme.
15154     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
15155     * If an absolute path is provided it will load it direct from a file.
15156     *
15157     * States created with this function can be removed with
15158     * elm_toolbar_item_state_del().
15159     *
15160     * @see elm_toolbar_item_state_del()
15161     * @see elm_toolbar_item_state_sel()
15162     * @see elm_toolbar_item_state_get()
15163     *
15164     * @ingroup Toolbar
15165     */
15166    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);
15167
15168    /**
15169     * Delete a previoulsy added state to @p item.
15170     *
15171     * @param item The toolbar item.
15172     * @param state The state to be deleted.
15173     * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
15174     *
15175     * @see elm_toolbar_item_state_add()
15176     */
15177    EAPI Eina_Bool               elm_toolbar_item_state_del(Elm_Toolbar_Item *item, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
15178
15179    /**
15180     * Set @p state as the current state of @p it.
15181     *
15182     * @param it The item.
15183     * @param state The state to use.
15184     * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
15185     *
15186     * If @p state is @c NULL, it won't select any state and the default item's
15187     * icon and label will be used. It's the same behaviour than
15188     * elm_toolbar_item_state_unser().
15189     *
15190     * @see elm_toolbar_item_state_unset()
15191     *
15192     * @ingroup Toolbar
15193     */
15194    EAPI Eina_Bool               elm_toolbar_item_state_set(Elm_Toolbar_Item *it, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
15195
15196    /**
15197     * Unset the state of @p it.
15198     *
15199     * @param it The item.
15200     *
15201     * The default icon and label from this item will be displayed.
15202     *
15203     * @see elm_toolbar_item_state_set() for more details.
15204     *
15205     * @ingroup Toolbar
15206     */
15207    EAPI void                    elm_toolbar_item_state_unset(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
15208
15209    /**
15210     * Get the current state of @p it.
15211     *
15212     * @param item The item.
15213     * @return The selected state or @c NULL if none is selected or on failure.
15214     *
15215     * @see elm_toolbar_item_state_set() for details.
15216     * @see elm_toolbar_item_state_unset()
15217     * @see elm_toolbar_item_state_add()
15218     *
15219     * @ingroup Toolbar
15220     */
15221    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_get(const Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
15222
15223    /**
15224     * Get the state after selected state in toolbar's @p item.
15225     *
15226     * @param it The toolbar item to change state.
15227     * @return The state after current state, or @c NULL on failure.
15228     *
15229     * If last state is selected, this function will return first state.
15230     *
15231     * @see elm_toolbar_item_state_set()
15232     * @see elm_toolbar_item_state_add()
15233     *
15234     * @ingroup Toolbar
15235     */
15236    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_next(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
15237
15238    /**
15239     * Get the state before selected state in toolbar's @p item.
15240     *
15241     * @param it The toolbar item to change state.
15242     * @return The state before current state, or @c NULL on failure.
15243     *
15244     * If first state is selected, this function will return last state.
15245     *
15246     * @see elm_toolbar_item_state_set()
15247     * @see elm_toolbar_item_state_add()
15248     *
15249     * @ingroup Toolbar
15250     */
15251    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_prev(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
15252
15253    /**
15254     * Set the text to be shown in a given toolbar item's tooltips.
15255     *
15256     * @param item Target item.
15257     * @param text The text to set in the content.
15258     *
15259     * Setup the text as tooltip to object. The item can have only one tooltip,
15260     * so any previous tooltip data - set with this function or
15261     * elm_toolbar_item_tooltip_content_cb_set() - is removed.
15262     *
15263     * @see elm_object_tooltip_text_set() for more details.
15264     *
15265     * @ingroup Toolbar
15266     */
15267    EAPI void             elm_toolbar_item_tooltip_text_set(Elm_Toolbar_Item *item, const char *text) EINA_ARG_NONNULL(1);
15268
15269    /**
15270     * Set the content to be shown in the tooltip item.
15271     *
15272     * Setup the tooltip to item. The item can have only one tooltip,
15273     * so any previous tooltip data is removed. @p func(with @p data) will
15274     * be called every time that need show the tooltip and it should
15275     * return a valid Evas_Object. This object is then managed fully by
15276     * tooltip system and is deleted when the tooltip is gone.
15277     *
15278     * @param item the toolbar item being attached a tooltip.
15279     * @param func the function used to create the tooltip contents.
15280     * @param data what to provide to @a func as callback data/context.
15281     * @param del_cb called when data is not needed anymore, either when
15282     *        another callback replaces @a func, the tooltip is unset with
15283     *        elm_toolbar_item_tooltip_unset() or the owner @a item
15284     *        dies. This callback receives as the first parameter the
15285     *        given @a data, and @c event_info is the item.
15286     *
15287     * @see elm_object_tooltip_content_cb_set() for more details.
15288     *
15289     * @ingroup Toolbar
15290     */
15291    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);
15292
15293    /**
15294     * Unset tooltip from item.
15295     *
15296     * @param item toolbar item to remove previously set tooltip.
15297     *
15298     * Remove tooltip from item. The callback provided as del_cb to
15299     * elm_toolbar_item_tooltip_content_cb_set() will be called to notify
15300     * it is not used anymore.
15301     *
15302     * @see elm_object_tooltip_unset() for more details.
15303     * @see elm_toolbar_item_tooltip_content_cb_set()
15304     *
15305     * @ingroup Toolbar
15306     */
15307    EAPI void             elm_toolbar_item_tooltip_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15308
15309    /**
15310     * Sets a different style for this item tooltip.
15311     *
15312     * @note before you set a style you should define a tooltip with
15313     *       elm_toolbar_item_tooltip_content_cb_set() or
15314     *       elm_toolbar_item_tooltip_text_set()
15315     *
15316     * @param item toolbar item with tooltip already set.
15317     * @param style the theme style to use (default, transparent, ...)
15318     *
15319     * @see elm_object_tooltip_style_set() for more details.
15320     *
15321     * @ingroup Toolbar
15322     */
15323    EAPI void             elm_toolbar_item_tooltip_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
15324
15325    /**
15326     * Get the style for this item tooltip.
15327     *
15328     * @param item toolbar item with tooltip already set.
15329     * @return style the theme style in use, defaults to "default". If the
15330     *         object does not have a tooltip set, then NULL is returned.
15331     *
15332     * @see elm_object_tooltip_style_get() for more details.
15333     * @see elm_toolbar_item_tooltip_style_set()
15334     *
15335     * @ingroup Toolbar
15336     */
15337    EAPI const char      *elm_toolbar_item_tooltip_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15338
15339    /**
15340     * Set the type of mouse pointer/cursor decoration to be shown,
15341     * when the mouse pointer is over the given toolbar widget item
15342     *
15343     * @param item toolbar item to customize cursor on
15344     * @param cursor the cursor type's name
15345     *
15346     * This function works analogously as elm_object_cursor_set(), but
15347     * here the cursor's changing area is restricted to the item's
15348     * area, and not the whole widget's. Note that that item cursors
15349     * have precedence over widget cursors, so that a mouse over an
15350     * item with custom cursor set will always show @b that cursor.
15351     *
15352     * If this function is called twice for an object, a previously set
15353     * cursor will be unset on the second call.
15354     *
15355     * @see elm_object_cursor_set()
15356     * @see elm_toolbar_item_cursor_get()
15357     * @see elm_toolbar_item_cursor_unset()
15358     *
15359     * @ingroup Toolbar
15360     */
15361    EAPI void             elm_toolbar_item_cursor_set(Elm_Toolbar_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
15362
15363    /*
15364     * Get the type of mouse pointer/cursor decoration set to be shown,
15365     * when the mouse pointer is over the given toolbar widget item
15366     *
15367     * @param item toolbar item with custom cursor set
15368     * @return the cursor type's name or @c NULL, if no custom cursors
15369     * were set to @p item (and on errors)
15370     *
15371     * @see elm_object_cursor_get()
15372     * @see elm_toolbar_item_cursor_set()
15373     * @see elm_toolbar_item_cursor_unset()
15374     *
15375     * @ingroup Toolbar
15376     */
15377    EAPI const char      *elm_toolbar_item_cursor_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15378
15379    /**
15380     * Unset any custom mouse pointer/cursor decoration set to be
15381     * shown, when the mouse pointer is over the given toolbar widget
15382     * item, thus making it show the @b default cursor again.
15383     *
15384     * @param item a toolbar item
15385     *
15386     * Use this call to undo any custom settings on this item's cursor
15387     * decoration, bringing it back to defaults (no custom style set).
15388     *
15389     * @see elm_object_cursor_unset()
15390     * @see elm_toolbar_item_cursor_set()
15391     *
15392     * @ingroup Toolbar
15393     */
15394    EAPI void             elm_toolbar_item_cursor_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15395
15396    /**
15397     * Set a different @b style for a given custom cursor set for a
15398     * toolbar item.
15399     *
15400     * @param item toolbar item with custom cursor set
15401     * @param style the <b>theme style</b> to use (e.g. @c "default",
15402     * @c "transparent", etc)
15403     *
15404     * This function only makes sense when one is using custom mouse
15405     * cursor decorations <b>defined in a theme file</b>, which can have,
15406     * given a cursor name/type, <b>alternate styles</b> on it. It
15407     * works analogously as elm_object_cursor_style_set(), but here
15408     * applyed only to toolbar item objects.
15409     *
15410     * @warning Before you set a cursor style you should have definen a
15411     *       custom cursor previously on the item, with
15412     *       elm_toolbar_item_cursor_set()
15413     *
15414     * @see elm_toolbar_item_cursor_engine_only_set()
15415     * @see elm_toolbar_item_cursor_style_get()
15416     *
15417     * @ingroup Toolbar
15418     */
15419    EAPI void             elm_toolbar_item_cursor_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
15420
15421    /**
15422     * Get the current @b style set for a given toolbar item's custom
15423     * cursor
15424     *
15425     * @param item toolbar item with custom cursor set.
15426     * @return style the cursor style in use. If the object does not
15427     *         have a cursor set, then @c NULL is returned.
15428     *
15429     * @see elm_toolbar_item_cursor_style_set() for more details
15430     *
15431     * @ingroup Toolbar
15432     */
15433    EAPI const char      *elm_toolbar_item_cursor_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15434
15435    /**
15436     * Set if the (custom)cursor for a given toolbar item should be
15437     * searched in its theme, also, or should only rely on the
15438     * rendering engine.
15439     *
15440     * @param item item with custom (custom) cursor already set on
15441     * @param engine_only Use @c EINA_TRUE to have cursors looked for
15442     * only on those provided by the rendering engine, @c EINA_FALSE to
15443     * have them searched on the widget's theme, as well.
15444     *
15445     * @note This call is of use only if you've set a custom cursor
15446     * for toolbar items, with elm_toolbar_item_cursor_set().
15447     *
15448     * @note By default, cursors will only be looked for between those
15449     * provided by the rendering engine.
15450     *
15451     * @ingroup Toolbar
15452     */
15453    EAPI void             elm_toolbar_item_cursor_engine_only_set(Elm_Toolbar_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
15454
15455    /**
15456     * Get if the (custom) cursor for a given toolbar item is being
15457     * searched in its theme, also, or is only relying on the rendering
15458     * engine.
15459     *
15460     * @param item a toolbar item
15461     * @return @c EINA_TRUE, if cursors are being looked for only on
15462     * those provided by the rendering engine, @c EINA_FALSE if they
15463     * are being searched on the widget's theme, as well.
15464     *
15465     * @see elm_toolbar_item_cursor_engine_only_set(), for more details
15466     *
15467     * @ingroup Toolbar
15468     */
15469    EAPI Eina_Bool        elm_toolbar_item_cursor_engine_only_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15470
15471    /**
15472     * Change a toolbar's orientation
15473     * @param obj The toolbar object
15474     * @param vertical If @c EINA_TRUE, the toolbar is vertical
15475     * By default, a toolbar will be horizontal. Use this function to create a vertical toolbar.
15476     * @ingroup Toolbar
15477     * @deprecated use elm_toolbar_horizontal_set() instead.
15478     */
15479    EINA_DEPRECATED EAPI void             elm_toolbar_orientation_set(Evas_Object *obj, Eina_Bool vertical) EINA_ARG_NONNULL(1);
15480
15481    /**
15482     * Change a toolbar's orientation
15483     * @param obj The toolbar object
15484     * @param horizontal If @c EINA_TRUE, the toolbar is horizontal
15485     * By default, a toolbar will be horizontal. Use this function to create a vertical toolbar.
15486     * @ingroup Toolbar
15487     */
15488    EAPI void             elm_toolbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
15489
15490    /**
15491     * Get a toolbar's orientation
15492     * @param obj The toolbar object
15493     * @return If @c EINA_TRUE, the toolbar is vertical
15494     * By default, a toolbar will be horizontal. Use this function to determine whether a toolbar is vertical.
15495     * @ingroup Toolbar
15496     * @deprecated use elm_toolbar_horizontal_get() instead.
15497     */
15498    EINA_DEPRECATED EAPI Eina_Bool        elm_toolbar_orientation_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15499
15500    /**
15501     * Get a toolbar's orientation
15502     * @param obj The toolbar object
15503     * @return If @c EINA_TRUE, the toolbar is horizontal
15504     * By default, a toolbar will be horizontal. Use this function to determine whether a toolbar is vertical.
15505     * @ingroup Toolbar
15506     */
15507    EAPI Eina_Bool elm_toolbar_horizontal_get(const Evas_Object *obj);
15508    /**
15509     * @}
15510     */
15511
15512    /**
15513     * @defgroup Tooltips Tooltips
15514     *
15515     * The Tooltip is an (internal, for now) smart object used to show a
15516     * content in a frame on mouse hover of objects(or widgets), with
15517     * tips/information about them.
15518     *
15519     * @{
15520     */
15521
15522    EAPI double       elm_tooltip_delay_get(void);
15523    EAPI Eina_Bool    elm_tooltip_delay_set(double delay);
15524    EAPI void         elm_object_tooltip_show(Evas_Object *obj) EINA_ARG_NONNULL(1);
15525    EAPI void         elm_object_tooltip_hide(Evas_Object *obj) EINA_ARG_NONNULL(1);
15526    EAPI void         elm_object_tooltip_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1, 2);
15527    EAPI void         elm_object_tooltip_domain_translatable_text_set(Evas_Object *obj, const char *domain, const char *text) EINA_ARG_NONNULL(1, 3);
15528 #define elm_object_tooltip_translatable_text_set(obj, text) elm_object_tooltip_domain_translatable_text_set((obj), NULL, (text))
15529    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);
15530    EAPI void         elm_object_tooltip_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
15531    EAPI void         elm_object_tooltip_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
15532    EAPI const char  *elm_object_tooltip_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15533
15534    /**
15535     * @defgroup Cursors Cursors
15536     *
15537     * The Elementary cursor is an internal smart object used to
15538     * customize the mouse cursor displayed over objects (or
15539     * widgets). In the most common scenario, the cursor decoration
15540     * comes from the graphical @b engine Elementary is running
15541     * on. Those engines may provide different decorations for cursors,
15542     * and Elementary provides functions to choose them (think of X11
15543     * cursors, as an example).
15544     *
15545     * There's also the possibility of, besides using engine provided
15546     * cursors, also use ones coming from Edje theming files. Both
15547     * globally and per widget, Elementary makes it possible for one to
15548     * make the cursors lookup to be held on engines only or on
15549     * Elementary's theme file, too. To set cursor's hot spot,
15550     * two data items should be added to cursor's theme: "hot_x" and
15551     * "hot_y", that are the offset from upper-left corner of the cursor
15552     * (coordinates 0,0).
15553     *
15554     * @{
15555     */
15556
15557    /**
15558     * Set the cursor to be shown when mouse is over the object
15559     *
15560     * Set the cursor that will be displayed when mouse is over the
15561     * object. The object can have only one cursor set to it, so if
15562     * this function is called twice for an object, the previous set
15563     * will be unset.
15564     * If using X cursors, a definition of all the valid cursor names
15565     * is listed on Elementary_Cursors.h. If an invalid name is set
15566     * the default cursor will be used.
15567     *
15568     * @param obj the object being set a cursor.
15569     * @param cursor the cursor name to be used.
15570     *
15571     * @ingroup Cursors
15572     */
15573    EAPI void         elm_object_cursor_set(Evas_Object *obj, const char *cursor) EINA_ARG_NONNULL(1);
15574
15575    /**
15576     * Get the cursor to be shown when mouse is over the object
15577     *
15578     * @param obj an object with cursor already set.
15579     * @return the cursor name.
15580     *
15581     * @ingroup Cursors
15582     */
15583    EAPI const char  *elm_object_cursor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15584
15585    /**
15586     * Unset cursor for object
15587     *
15588     * Unset cursor for object, and set the cursor to default if the mouse
15589     * was over this object.
15590     *
15591     * @param obj Target object
15592     * @see elm_object_cursor_set()
15593     *
15594     * @ingroup Cursors
15595     */
15596    EAPI void         elm_object_cursor_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
15597
15598    /**
15599     * Sets a different style for this object cursor.
15600     *
15601     * @note before you set a style you should define a cursor with
15602     *       elm_object_cursor_set()
15603     *
15604     * @param obj an object with cursor already set.
15605     * @param style the theme style to use (default, transparent, ...)
15606     *
15607     * @ingroup Cursors
15608     */
15609    EAPI void         elm_object_cursor_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
15610
15611    /**
15612     * Get the style for this object cursor.
15613     *
15614     * @param obj an object with cursor already set.
15615     * @return style the theme style in use, defaults to "default". If the
15616     *         object does not have a cursor set, then NULL is returned.
15617     *
15618     * @ingroup Cursors
15619     */
15620    EAPI const char  *elm_object_cursor_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15621
15622    /**
15623     * Set if the cursor set should be searched on the theme or should use
15624     * the provided by the engine, only.
15625     *
15626     * @note before you set if should look on theme you should define a cursor
15627     * with elm_object_cursor_set(). By default it will only look for cursors
15628     * provided by the engine.
15629     *
15630     * @param obj an object with cursor already set.
15631     * @param engine_only boolean to define it cursors should be looked only
15632     * between the provided by the engine or searched on widget's theme as well.
15633     *
15634     * @ingroup Cursors
15635     */
15636    EAPI void         elm_object_cursor_engine_only_set(Evas_Object *obj, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
15637
15638    /**
15639     * Get the cursor engine only usage for this object cursor.
15640     *
15641     * @param obj an object with cursor already set.
15642     * @return engine_only boolean to define it cursors should be
15643     * looked only between the provided by the engine or searched on
15644     * widget's theme as well. If the object does not have a cursor
15645     * set, then EINA_FALSE is returned.
15646     *
15647     * @ingroup Cursors
15648     */
15649    EAPI Eina_Bool    elm_object_cursor_engine_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15650
15651    /**
15652     * Get the configured cursor engine only usage
15653     *
15654     * This gets the globally configured exclusive usage of engine cursors.
15655     *
15656     * @return 1 if only engine cursors should be used
15657     * @ingroup Cursors
15658     */
15659    EAPI int          elm_cursor_engine_only_get(void);
15660
15661    /**
15662     * Set the configured cursor engine only usage
15663     *
15664     * This sets the globally configured exclusive usage of engine cursors.
15665     * It won't affect cursors set before changing this value.
15666     *
15667     * @param engine_only If 1 only engine cursors will be enabled, if 0 will
15668     * look for them on theme before.
15669     * @return EINA_TRUE if value is valid and setted (0 or 1)
15670     * @ingroup Cursors
15671     */
15672    EAPI Eina_Bool    elm_cursor_engine_only_set(int engine_only);
15673
15674    /**
15675     * @}
15676     */
15677
15678    /**
15679     * @defgroup Menu Menu
15680     *
15681     * @image html img/widget/menu/preview-00.png
15682     * @image latex img/widget/menu/preview-00.eps
15683     *
15684     * A menu is a list of items displayed above its parent. When the menu is
15685     * showing its parent is darkened. Each item can have a sub-menu. The menu
15686     * object can be used to display a menu on a right click event, in a toolbar,
15687     * anywhere.
15688     *
15689     * Signals that you can add callbacks for are:
15690     * @li "clicked" - the user clicked the empty space in the menu to dismiss.
15691     *             event_info is NULL.
15692     *
15693     * @see @ref tutorial_menu
15694     * @{
15695     */
15696    typedef struct _Elm_Menu_Item Elm_Menu_Item; /**< Item of Elm_Menu. Sub-type of Elm_Widget_Item */
15697    /**
15698     * @brief Add a new menu to the parent
15699     *
15700     * @param parent The parent object.
15701     * @return The new object or NULL if it cannot be created.
15702     */
15703    EAPI Evas_Object       *elm_menu_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
15704    /**
15705     * @brief Set the parent for the given menu widget
15706     *
15707     * @param obj The menu object.
15708     * @param parent The new parent.
15709     */
15710    EAPI void               elm_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
15711    /**
15712     * @brief Get the parent for the given menu widget
15713     *
15714     * @param obj The menu object.
15715     * @return The parent.
15716     *
15717     * @see elm_menu_parent_set()
15718     */
15719    EAPI Evas_Object       *elm_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15720    /**
15721     * @brief Move the menu to a new position
15722     *
15723     * @param obj The menu object.
15724     * @param x The new position.
15725     * @param y The new position.
15726     *
15727     * Sets the top-left position of the menu to (@p x,@p y).
15728     *
15729     * @note @p x and @p y coordinates are relative to parent.
15730     */
15731    EAPI void               elm_menu_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
15732    /**
15733     * @brief Close a opened menu
15734     *
15735     * @param obj the menu object
15736     * @return void
15737     *
15738     * Hides the menu and all it's sub-menus.
15739     */
15740    EAPI void               elm_menu_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
15741    /**
15742     * @brief Returns a list of @p item's items.
15743     *
15744     * @param obj The menu object
15745     * @return An Eina_List* of @p item's items
15746     */
15747    EAPI const Eina_List   *elm_menu_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15748    /**
15749     * @brief Get the Evas_Object of an Elm_Menu_Item
15750     *
15751     * @param item The menu item object.
15752     * @return The edje object containing the swallowed content
15753     *
15754     * @warning Don't manipulate this object!
15755     */
15756    EAPI Evas_Object       *elm_menu_item_object_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
15757    /**
15758     * @brief Add an item at the end of the given menu widget
15759     *
15760     * @param obj The menu object.
15761     * @param parent The parent menu item (optional)
15762     * @param icon A icon display on the item. The icon will be destryed by the menu.
15763     * @param label The label of the item.
15764     * @param func Function called when the user select the item.
15765     * @param data Data sent by the callback.
15766     * @return Returns the new item.
15767     */
15768    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);
15769    /**
15770     * @brief Add an object swallowed in an item at the end of the given menu
15771     * widget
15772     *
15773     * @param obj The menu object.
15774     * @param parent The parent menu item (optional)
15775     * @param subobj The object to swallow
15776     * @param func Function called when the user select the item.
15777     * @param data Data sent by the callback.
15778     * @return Returns the new item.
15779     *
15780     * Add an evas object as an item to the menu.
15781     */
15782    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);
15783    /**
15784     * @brief Set the label of a menu item
15785     *
15786     * @param item The menu item object.
15787     * @param label The label to set for @p item
15788     *
15789     * @warning Don't use this funcion on items created with
15790     * elm_menu_item_add_object() or elm_menu_item_separator_add().
15791     */
15792    EAPI void               elm_menu_item_label_set(Elm_Menu_Item *item, const char *label) EINA_ARG_NONNULL(1);
15793    /**
15794     * @brief Get the label of a menu item
15795     *
15796     * @param item The menu item object.
15797     * @return The label of @p item
15798     */
15799    EAPI const char        *elm_menu_item_label_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
15800    /**
15801     * @brief Set the icon of a menu item to the standard icon with name @p icon
15802     *
15803     * @param item The menu item object.
15804     * @param icon The icon object to set for the content of @p item
15805     *
15806     * Once this icon is set, any previously set icon will be deleted.
15807     */
15808    EAPI void               elm_menu_item_object_icon_name_set(Elm_Menu_Item *item, const char *icon) EINA_ARG_NONNULL(1, 2);
15809    /**
15810     * @brief Get the string representation from the icon of a menu item
15811     *
15812     * @param item The menu item object.
15813     * @return The string representation of @p item's icon or NULL
15814     *
15815     * @see elm_menu_item_object_icon_name_set()
15816     */
15817    EAPI const char        *elm_menu_item_object_icon_name_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
15818    /**
15819     * @brief Set the content object of a menu item
15820     *
15821     * @param item The menu item object
15822     * @param The content object or NULL
15823     * @return EINA_TRUE on success, else EINA_FALSE
15824     *
15825     * Use this function to change the object swallowed by a menu item, deleting
15826     * any previously swallowed object.
15827     */
15828    EAPI Eina_Bool          elm_menu_item_object_content_set(Elm_Menu_Item *item, Evas_Object *obj) EINA_ARG_NONNULL(1);
15829    /**
15830     * @brief Get the content object of a menu item
15831     *
15832     * @param item The menu item object
15833     * @return The content object or NULL
15834     * @note If @p item was added with elm_menu_item_add_object, this
15835     * function will return the object passed, else it will return the
15836     * icon object.
15837     *
15838     * @see elm_menu_item_object_content_set()
15839     */
15840    EAPI Evas_Object *elm_menu_item_object_content_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
15841
15842    EINA_DEPRECATED extern inline void elm_menu_item_icon_set(Elm_Menu_Item *item, const char *icon) EINA_ARG_NONNULL(1, 2)
15843      {
15844         elm_menu_item_object_icon_name_set(item, icon);
15845      }
15846
15847    EINA_DEPRECATED extern inline Evas_Object *elm_menu_item_object_icon_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1)
15848      {
15849         return elm_menu_item_object_content_get(item);
15850      }
15851
15852    EINA_DEPRECATED extern inline const char *elm_menu_item_icon_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1)
15853      {
15854         return elm_menu_item_object_icon_name_get(item);
15855      }
15856
15857    /**
15858     * @brief Set the selected state of @p item.
15859     *
15860     * @param item The menu item object.
15861     * @param selected The selected/unselected state of the item
15862     */
15863    EAPI void               elm_menu_item_selected_set(Elm_Menu_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
15864    /**
15865     * @brief Get the selected state of @p item.
15866     *
15867     * @param item The menu item object.
15868     * @return The selected/unselected state of the item
15869     *
15870     * @see elm_menu_item_selected_set()
15871     */
15872    EAPI Eina_Bool          elm_menu_item_selected_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
15873    /**
15874     * @brief Set the disabled state of @p item.
15875     *
15876     * @param item The menu item object.
15877     * @param disabled The enabled/disabled state of the item
15878     */
15879    EAPI void               elm_menu_item_disabled_set(Elm_Menu_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
15880    /**
15881     * @brief Get the disabled state of @p item.
15882     *
15883     * @param item The menu item object.
15884     * @return The enabled/disabled state of the item
15885     *
15886     * @see elm_menu_item_disabled_set()
15887     */
15888    EAPI Eina_Bool          elm_menu_item_disabled_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
15889    /**
15890     * @brief Add a separator item to menu @p obj under @p parent.
15891     *
15892     * @param obj The menu object
15893     * @param parent The item to add the separator under
15894     * @return The created item or NULL on failure
15895     *
15896     * This is item is a @ref Separator.
15897     */
15898    EAPI Elm_Menu_Item     *elm_menu_item_separator_add(Evas_Object *obj, Elm_Menu_Item *parent) EINA_ARG_NONNULL(1);
15899    /**
15900     * @brief Returns whether @p item is a separator.
15901     *
15902     * @param item The item to check
15903     * @return If true, @p item is a separator
15904     *
15905     * @see elm_menu_item_separator_add()
15906     */
15907    EAPI Eina_Bool          elm_menu_item_is_separator(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
15908    /**
15909     * @brief Deletes an item from the menu.
15910     *
15911     * @param item The item to delete.
15912     *
15913     * @see elm_menu_item_add()
15914     */
15915    EAPI void               elm_menu_item_del(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
15916    /**
15917     * @brief Set the function called when a menu item is deleted.
15918     *
15919     * @param item The item to set the callback on
15920     * @param func The function called
15921     *
15922     * @see elm_menu_item_add()
15923     * @see elm_menu_item_del()
15924     */
15925    EAPI void               elm_menu_item_del_cb_set(Elm_Menu_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
15926    /**
15927     * @brief Returns the data associated with menu item @p item.
15928     *
15929     * @param item The item
15930     * @return The data associated with @p item or NULL if none was set.
15931     *
15932     * This is the data set with elm_menu_add() or elm_menu_item_data_set().
15933     */
15934    EAPI void              *elm_menu_item_data_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
15935    /**
15936     * @brief Sets the data to be associated with menu item @p item.
15937     *
15938     * @param item The item
15939     * @param data The data to be associated with @p item
15940     */
15941    EAPI void               elm_menu_item_data_set(Elm_Menu_Item *item, const void *data) EINA_ARG_NONNULL(1);
15942    /**
15943     * @brief Returns a list of @p item's subitems.
15944     *
15945     * @param item The item
15946     * @return An Eina_List* of @p item's subitems
15947     *
15948     * @see elm_menu_add()
15949     */
15950    EAPI const Eina_List   *elm_menu_item_subitems_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
15951    /**
15952     * @brief Get the position of a menu item
15953     *
15954     * @param item The menu item
15955     * @return The item's index
15956     *
15957     * This function returns the index position of a menu item in a menu.
15958     * For a sub-menu, this number is relative to the first item in the sub-menu.
15959     *
15960     * @note Index values begin with 0
15961     */
15962    EAPI unsigned int       elm_menu_item_index_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_PURE;
15963    /**
15964     * @brief @brief Return a menu item's owner menu
15965     *
15966     * @param item The menu item
15967     * @return The menu object owning @p item, or NULL on failure
15968     *
15969     * Use this function to get the menu object owning an item.
15970     */
15971    EAPI Evas_Object       *elm_menu_item_menu_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_PURE;
15972    /**
15973     * @brief Get the selected item in the menu
15974     *
15975     * @param obj The menu object
15976     * @return The selected item, or NULL if none
15977     *
15978     * @see elm_menu_item_selected_get()
15979     * @see elm_menu_item_selected_set()
15980     */
15981    EAPI Elm_Menu_Item *elm_menu_selected_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
15982    /**
15983     * @brief Get the last item in the menu
15984     *
15985     * @param obj The menu object
15986     * @return The last item, or NULL if none
15987     */
15988    EAPI Elm_Menu_Item *elm_menu_last_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
15989    /**
15990     * @brief Get the first item in the menu
15991     *
15992     * @param obj The menu object
15993     * @return The first item, or NULL if none
15994     */
15995    EAPI Elm_Menu_Item *elm_menu_first_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
15996    /**
15997     * @brief Get the next item in the menu.
15998     *
15999     * @param item The menu item object.
16000     * @return The item after it, or NULL if none
16001     */
16002    EAPI Elm_Menu_Item *elm_menu_item_next_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
16003    /**
16004     * @brief Get the previous item in the menu.
16005     *
16006     * @param item The menu item object.
16007     * @return The item before it, or NULL if none
16008     */
16009    EAPI Elm_Menu_Item *elm_menu_item_prev_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
16010    /**
16011     * @}
16012     */
16013
16014    /**
16015     * @defgroup List List
16016     * @ingroup Elementary
16017     *
16018     * @image html img/widget/list/preview-00.png
16019     * @image latex img/widget/list/preview-00.eps width=\textwidth
16020     *
16021     * @image html img/list.png
16022     * @image latex img/list.eps width=\textwidth
16023     *
16024     * A list widget is a container whose children are displayed vertically or
16025     * horizontally, in order, and can be selected.
16026     * The list can accept only one or multiple items selection. Also has many
16027     * modes of items displaying.
16028     *
16029     * A list is a very simple type of list widget.  For more robust
16030     * lists, @ref Genlist should probably be used.
16031     *
16032     * Smart callbacks one can listen to:
16033     * - @c "activated" - The user has double-clicked or pressed
16034     *   (enter|return|spacebar) on an item. The @c event_info parameter
16035     *   is the item that was activated.
16036     * - @c "clicked,double" - The user has double-clicked an item.
16037     *   The @c event_info parameter is the item that was double-clicked.
16038     * - "selected" - when the user selected an item
16039     * - "unselected" - when the user unselected an item
16040     * - "longpressed" - an item in the list is long-pressed
16041     * - "edge,top" - the list is scrolled until the top edge
16042     * - "edge,bottom" - the list is scrolled until the bottom edge
16043     * - "edge,left" - the list is scrolled until the left edge
16044     * - "edge,right" - the list is scrolled until the right edge
16045     * - "language,changed" - the program's language changed
16046     *
16047     * Available styles for it:
16048     * - @c "default"
16049     *
16050     * List of examples:
16051     * @li @ref list_example_01
16052     * @li @ref list_example_02
16053     * @li @ref list_example_03
16054     */
16055
16056    /**
16057     * @addtogroup List
16058     * @{
16059     */
16060
16061    /**
16062     * @enum _Elm_List_Mode
16063     * @typedef Elm_List_Mode
16064     *
16065     * Set list's resize behavior, transverse axis scroll and
16066     * items cropping. See each mode's description for more details.
16067     *
16068     * @note Default value is #ELM_LIST_SCROLL.
16069     *
16070     * Values <b> don't </b> work as bitmask, only one can be choosen.
16071     *
16072     * @see elm_list_mode_set()
16073     * @see elm_list_mode_get()
16074     *
16075     * @ingroup List
16076     */
16077    typedef enum _Elm_List_Mode
16078      {
16079         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. */
16080         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). */
16081         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. */
16082         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. */
16083         ELM_LIST_LAST /**< Indicates error if returned by elm_list_mode_get() */
16084      } Elm_List_Mode;
16085
16086    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().  */
16087
16088    /**
16089     * Add a new list widget to the given parent Elementary
16090     * (container) object.
16091     *
16092     * @param parent The parent object.
16093     * @return a new list widget handle or @c NULL, on errors.
16094     *
16095     * This function inserts a new list widget on the canvas.
16096     *
16097     * @ingroup List
16098     */
16099    EAPI Evas_Object     *elm_list_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16100
16101    /**
16102     * Starts the list.
16103     *
16104     * @param obj The list object
16105     *
16106     * @note Call before running show() on the list object.
16107     * @warning If not called, it won't display the list properly.
16108     *
16109     * @code
16110     * li = elm_list_add(win);
16111     * elm_list_item_append(li, "First", NULL, NULL, NULL, NULL);
16112     * elm_list_item_append(li, "Second", NULL, NULL, NULL, NULL);
16113     * elm_list_go(li);
16114     * evas_object_show(li);
16115     * @endcode
16116     *
16117     * @ingroup List
16118     */
16119    EAPI void             elm_list_go(Evas_Object *obj) EINA_ARG_NONNULL(1);
16120
16121    /**
16122     * Enable or disable multiple items selection on the list object.
16123     *
16124     * @param obj The list object
16125     * @param multi @c EINA_TRUE to enable multi selection or @c EINA_FALSE to
16126     * disable it.
16127     *
16128     * Disabled by default. If disabled, the user can select a single item of
16129     * the list each time. Selected items are highlighted on list.
16130     * If enabled, many items can be selected.
16131     *
16132     * If a selected item is selected again, it will be unselected.
16133     *
16134     * @see elm_list_multi_select_get()
16135     *
16136     * @ingroup List
16137     */
16138    EAPI void             elm_list_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
16139
16140    /**
16141     * Get a value whether multiple items selection is enabled or not.
16142     *
16143     * @see elm_list_multi_select_set() for details.
16144     *
16145     * @param obj The list object.
16146     * @return @c EINA_TRUE means multiple items selection is enabled.
16147     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
16148     * @c EINA_FALSE is returned.
16149     *
16150     * @ingroup List
16151     */
16152    EAPI Eina_Bool        elm_list_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16153
16154    /**
16155     * Set which mode to use for the list object.
16156     *
16157     * @param obj The list object
16158     * @param mode One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
16159     * #ELM_LIST_LIMIT or #ELM_LIST_EXPAND.
16160     *
16161     * Set list's resize behavior, transverse axis scroll and
16162     * items cropping. See each mode's description for more details.
16163     *
16164     * @note Default value is #ELM_LIST_SCROLL.
16165     *
16166     * Only one can be set, if a previous one was set, it will be changed
16167     * by the new mode set. Bitmask won't work as well.
16168     *
16169     * @see elm_list_mode_get()
16170     *
16171     * @ingroup List
16172     */
16173    EAPI void             elm_list_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
16174
16175    /**
16176     * Get the mode the list is at.
16177     *
16178     * @param obj The list object
16179     * @return One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
16180     * #ELM_LIST_LIMIT, #ELM_LIST_EXPAND or #ELM_LIST_LAST on errors.
16181     *
16182     * @note see elm_list_mode_set() for more information.
16183     *
16184     * @ingroup List
16185     */
16186    EAPI Elm_List_Mode    elm_list_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16187
16188    /**
16189     * Enable or disable horizontal mode on the list object.
16190     *
16191     * @param obj The list object.
16192     * @param horizontal @c EINA_TRUE to enable horizontal or @c EINA_FALSE to
16193     * disable it, i.e., to enable vertical mode.
16194     *
16195     * @note Vertical mode is set by default.
16196     *
16197     * On horizontal mode items are displayed on list from left to right,
16198     * instead of from top to bottom. Also, the list will scroll horizontally.
16199     * Each item will presents left icon on top and right icon, or end, at
16200     * the bottom.
16201     *
16202     * @see elm_list_horizontal_get()
16203     *
16204     * @ingroup List
16205     */
16206    EAPI void             elm_list_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
16207
16208    /**
16209     * Get a value whether horizontal mode is enabled or not.
16210     *
16211     * @param obj The list object.
16212     * @return @c EINA_TRUE means horizontal mode selection is enabled.
16213     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
16214     * @c EINA_FALSE is returned.
16215     *
16216     * @see elm_list_horizontal_set() for details.
16217     *
16218     * @ingroup List
16219     */
16220    EAPI Eina_Bool        elm_list_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16221
16222    /**
16223     * Enable or disable always select mode on the list object.
16224     *
16225     * @param obj The list object
16226     * @param always_select @c EINA_TRUE to enable always select mode or
16227     * @c EINA_FALSE to disable it.
16228     *
16229     * @note Always select mode is disabled by default.
16230     *
16231     * Default behavior of list items is to only call its callback function
16232     * the first time it's pressed, i.e., when it is selected. If a selected
16233     * item is pressed again, and multi-select is disabled, it won't call
16234     * this function (if multi-select is enabled it will unselect the item).
16235     *
16236     * If always select is enabled, it will call the callback function
16237     * everytime a item is pressed, so it will call when the item is selected,
16238     * and again when a selected item is pressed.
16239     *
16240     * @see elm_list_always_select_mode_get()
16241     * @see elm_list_multi_select_set()
16242     *
16243     * @ingroup List
16244     */
16245    EAPI void             elm_list_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
16246
16247    /**
16248     * Get a value whether always select mode is enabled or not, meaning that
16249     * an item will always call its callback function, even if already selected.
16250     *
16251     * @param obj The list object
16252     * @return @c EINA_TRUE means horizontal mode selection is enabled.
16253     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
16254     * @c EINA_FALSE is returned.
16255     *
16256     * @see elm_list_always_select_mode_set() for details.
16257     *
16258     * @ingroup List
16259     */
16260    EAPI Eina_Bool        elm_list_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16261
16262    /**
16263     * Set bouncing behaviour when the scrolled content reaches an edge.
16264     *
16265     * Tell the internal scroller object whether it should bounce or not
16266     * when it reaches the respective edges for each axis.
16267     *
16268     * @param obj The list object
16269     * @param h_bounce Whether to bounce or not in the horizontal axis.
16270     * @param v_bounce Whether to bounce or not in the vertical axis.
16271     *
16272     * @see elm_scroller_bounce_set()
16273     *
16274     * @ingroup List
16275     */
16276    EAPI void             elm_list_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
16277
16278    /**
16279     * Get the bouncing behaviour of the internal scroller.
16280     *
16281     * Get whether the internal scroller should bounce when the edge of each
16282     * axis is reached scrolling.
16283     *
16284     * @param obj The list object.
16285     * @param h_bounce Pointer where to store the bounce state of the horizontal
16286     * axis.
16287     * @param v_bounce Pointer where to store the bounce state of the vertical
16288     * axis.
16289     *
16290     * @see elm_scroller_bounce_get()
16291     * @see elm_list_bounce_set()
16292     *
16293     * @ingroup List
16294     */
16295    EAPI void             elm_list_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
16296
16297    /**
16298     * Set the scrollbar policy.
16299     *
16300     * @param obj The list object
16301     * @param policy_h Horizontal scrollbar policy.
16302     * @param policy_v Vertical scrollbar policy.
16303     *
16304     * This sets the scrollbar visibility policy for the given scroller.
16305     * #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it
16306     * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
16307     * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
16308     * This applies respectively for the horizontal and vertical scrollbars.
16309     *
16310     * The both are disabled by default, i.e., are set to
16311     * #ELM_SCROLLER_POLICY_OFF.
16312     *
16313     * @ingroup List
16314     */
16315    EAPI void             elm_list_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
16316
16317    /**
16318     * Get the scrollbar policy.
16319     *
16320     * @see elm_list_scroller_policy_get() for details.
16321     *
16322     * @param obj The list object.
16323     * @param policy_h Pointer where to store horizontal scrollbar policy.
16324     * @param policy_v Pointer where to store vertical scrollbar policy.
16325     *
16326     * @ingroup List
16327     */
16328    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);
16329
16330    /**
16331     * Append a new item to the list object.
16332     *
16333     * @param obj The list object.
16334     * @param label The label of the list item.
16335     * @param icon The icon object to use for the left side of the item. An
16336     * icon can be any Evas object, but usually it is an icon created
16337     * with elm_icon_add().
16338     * @param end The icon object to use for the right side of the item. An
16339     * icon can be any Evas object.
16340     * @param func The function to call when the item is clicked.
16341     * @param data The data to associate with the item for related callbacks.
16342     *
16343     * @return The created item or @c NULL upon failure.
16344     *
16345     * A new item will be created and appended to the list, i.e., will
16346     * be set as @b last item.
16347     *
16348     * Items created with this method can be deleted with
16349     * elm_list_item_del().
16350     *
16351     * Associated @p data can be properly freed when item is deleted if a
16352     * callback function is set with elm_list_item_del_cb_set().
16353     *
16354     * If a function is passed as argument, it will be called everytime this item
16355     * is selected, i.e., the user clicks over an unselected item.
16356     * If always select is enabled it will call this function every time
16357     * user clicks over an item (already selected or not).
16358     * If such function isn't needed, just passing
16359     * @c NULL as @p func is enough. The same should be done for @p data.
16360     *
16361     * Simple example (with no function callback or data associated):
16362     * @code
16363     * li = elm_list_add(win);
16364     * ic = elm_icon_add(win);
16365     * elm_icon_file_set(ic, "path/to/image", NULL);
16366     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
16367     * elm_list_item_append(li, "label", ic, NULL, NULL, NULL);
16368     * elm_list_go(li);
16369     * evas_object_show(li);
16370     * @endcode
16371     *
16372     * @see elm_list_always_select_mode_set()
16373     * @see elm_list_item_del()
16374     * @see elm_list_item_del_cb_set()
16375     * @see elm_list_clear()
16376     * @see elm_icon_add()
16377     *
16378     * @ingroup List
16379     */
16380    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);
16381
16382    /**
16383     * Prepend a new item to the list object.
16384     *
16385     * @param obj The list object.
16386     * @param label The label of the list item.
16387     * @param icon The icon object to use for the left side of the item. An
16388     * icon can be any Evas object, but usually it is an icon created
16389     * with elm_icon_add().
16390     * @param end The icon object to use for the right side of the item. An
16391     * icon can be any Evas object.
16392     * @param func The function to call when the item is clicked.
16393     * @param data The data to associate with the item for related callbacks.
16394     *
16395     * @return The created item or @c NULL upon failure.
16396     *
16397     * A new item will be created and prepended to the list, i.e., will
16398     * be set as @b first item.
16399     *
16400     * Items created with this method can be deleted with
16401     * elm_list_item_del().
16402     *
16403     * Associated @p data can be properly freed when item is deleted if a
16404     * callback function is set with elm_list_item_del_cb_set().
16405     *
16406     * If a function is passed as argument, it will be called everytime this item
16407     * is selected, i.e., the user clicks over an unselected item.
16408     * If always select is enabled it will call this function every time
16409     * user clicks over an item (already selected or not).
16410     * If such function isn't needed, just passing
16411     * @c NULL as @p func is enough. The same should be done for @p data.
16412     *
16413     * @see elm_list_item_append() for a simple code example.
16414     * @see elm_list_always_select_mode_set()
16415     * @see elm_list_item_del()
16416     * @see elm_list_item_del_cb_set()
16417     * @see elm_list_clear()
16418     * @see elm_icon_add()
16419     *
16420     * @ingroup List
16421     */
16422    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);
16423
16424    /**
16425     * Insert a new item into the list object before item @p before.
16426     *
16427     * @param obj The list object.
16428     * @param before The list item to insert before.
16429     * @param label The label of the list item.
16430     * @param icon The icon object to use for the left side of the item. An
16431     * icon can be any Evas object, but usually it is an icon created
16432     * with elm_icon_add().
16433     * @param end The icon object to use for the right side of the item. An
16434     * icon can be any Evas object.
16435     * @param func The function to call when the item is clicked.
16436     * @param data The data to associate with the item for related callbacks.
16437     *
16438     * @return The created item or @c NULL upon failure.
16439     *
16440     * A new item will be created and added to the list. Its position in
16441     * this list will be just before item @p before.
16442     *
16443     * Items created with this method can be deleted with
16444     * elm_list_item_del().
16445     *
16446     * Associated @p data can be properly freed when item is deleted if a
16447     * callback function is set with elm_list_item_del_cb_set().
16448     *
16449     * If a function is passed as argument, it will be called everytime this item
16450     * is selected, i.e., the user clicks over an unselected item.
16451     * If always select is enabled it will call this function every time
16452     * user clicks over an item (already selected or not).
16453     * If such function isn't needed, just passing
16454     * @c NULL as @p func is enough. The same should be done for @p data.
16455     *
16456     * @see elm_list_item_append() for a simple code example.
16457     * @see elm_list_always_select_mode_set()
16458     * @see elm_list_item_del()
16459     * @see elm_list_item_del_cb_set()
16460     * @see elm_list_clear()
16461     * @see elm_icon_add()
16462     *
16463     * @ingroup List
16464     */
16465    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);
16466
16467    /**
16468     * Insert a new item into the list object after item @p after.
16469     *
16470     * @param obj The list object.
16471     * @param after The list item to insert after.
16472     * @param label The label of the list item.
16473     * @param icon The icon object to use for the left side of the item. An
16474     * icon can be any Evas object, but usually it is an icon created
16475     * with elm_icon_add().
16476     * @param end The icon object to use for the right side of the item. An
16477     * icon can be any Evas object.
16478     * @param func The function to call when the item is clicked.
16479     * @param data The data to associate with the item for related callbacks.
16480     *
16481     * @return The created item or @c NULL upon failure.
16482     *
16483     * A new item will be created and added to the list. Its position in
16484     * this list will be just after item @p after.
16485     *
16486     * Items created with this method can be deleted with
16487     * elm_list_item_del().
16488     *
16489     * Associated @p data can be properly freed when item is deleted if a
16490     * callback function is set with elm_list_item_del_cb_set().
16491     *
16492     * If a function is passed as argument, it will be called everytime this item
16493     * is selected, i.e., the user clicks over an unselected item.
16494     * If always select is enabled it will call this function every time
16495     * user clicks over an item (already selected or not).
16496     * If such function isn't needed, just passing
16497     * @c NULL as @p func is enough. The same should be done for @p data.
16498     *
16499     * @see elm_list_item_append() for a simple code example.
16500     * @see elm_list_always_select_mode_set()
16501     * @see elm_list_item_del()
16502     * @see elm_list_item_del_cb_set()
16503     * @see elm_list_clear()
16504     * @see elm_icon_add()
16505     *
16506     * @ingroup List
16507     */
16508    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);
16509
16510    /**
16511     * Insert a new item into the sorted list object.
16512     *
16513     * @param obj The list object.
16514     * @param label The label of the list item.
16515     * @param icon The icon object to use for the left side of the item. An
16516     * icon can be any Evas object, but usually it is an icon created
16517     * with elm_icon_add().
16518     * @param end The icon object to use for the right side of the item. An
16519     * icon can be any Evas object.
16520     * @param func The function to call when the item is clicked.
16521     * @param data The data to associate with the item for related callbacks.
16522     * @param cmp_func The comparing function to be used to sort list
16523     * items <b>by #Elm_List_Item item handles</b>. This function will
16524     * receive two items and compare them, returning a non-negative integer
16525     * if the second item should be place after the first, or negative value
16526     * if should be placed before.
16527     *
16528     * @return The created item or @c NULL upon failure.
16529     *
16530     * @note This function inserts values into a list object assuming it was
16531     * sorted and the result will be sorted.
16532     *
16533     * A new item will be created and added to the list. Its position in
16534     * this list will be found comparing the new item with previously inserted
16535     * items using function @p cmp_func.
16536     *
16537     * Items created with this method can be deleted with
16538     * elm_list_item_del().
16539     *
16540     * Associated @p data can be properly freed when item is deleted if a
16541     * callback function is set with elm_list_item_del_cb_set().
16542     *
16543     * If a function is passed as argument, it will be called everytime this item
16544     * is selected, i.e., the user clicks over an unselected item.
16545     * If always select is enabled it will call this function every time
16546     * user clicks over an item (already selected or not).
16547     * If such function isn't needed, just passing
16548     * @c NULL as @p func is enough. The same should be done for @p data.
16549     *
16550     * @see elm_list_item_append() for a simple code example.
16551     * @see elm_list_always_select_mode_set()
16552     * @see elm_list_item_del()
16553     * @see elm_list_item_del_cb_set()
16554     * @see elm_list_clear()
16555     * @see elm_icon_add()
16556     *
16557     * @ingroup List
16558     */
16559    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);
16560
16561    /**
16562     * Remove all list's items.
16563     *
16564     * @param obj The list object
16565     *
16566     * @see elm_list_item_del()
16567     * @see elm_list_item_append()
16568     *
16569     * @ingroup List
16570     */
16571    EAPI void             elm_list_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
16572
16573    /**
16574     * Get a list of all the list items.
16575     *
16576     * @param obj The list object
16577     * @return An @c Eina_List of list items, #Elm_List_Item,
16578     * or @c NULL on failure.
16579     *
16580     * @see elm_list_item_append()
16581     * @see elm_list_item_del()
16582     * @see elm_list_clear()
16583     *
16584     * @ingroup List
16585     */
16586    EAPI const Eina_List *elm_list_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16587
16588    /**
16589     * Get the selected item.
16590     *
16591     * @param obj The list object.
16592     * @return The selected list item.
16593     *
16594     * The selected item can be unselected with function
16595     * elm_list_item_selected_set().
16596     *
16597     * The selected item always will be highlighted on list.
16598     *
16599     * @see elm_list_selected_items_get()
16600     *
16601     * @ingroup List
16602     */
16603    EAPI Elm_List_Item   *elm_list_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16604
16605    /**
16606     * Return a list of the currently selected list items.
16607     *
16608     * @param obj The list object.
16609     * @return An @c Eina_List of list items, #Elm_List_Item,
16610     * or @c NULL on failure.
16611     *
16612     * Multiple items can be selected if multi select is enabled. It can be
16613     * done with elm_list_multi_select_set().
16614     *
16615     * @see elm_list_selected_item_get()
16616     * @see elm_list_multi_select_set()
16617     *
16618     * @ingroup List
16619     */
16620    EAPI const Eina_List *elm_list_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16621
16622    /**
16623     * Set the selected state of an item.
16624     *
16625     * @param item The list item
16626     * @param selected The selected state
16627     *
16628     * This sets the selected state of the given item @p it.
16629     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
16630     *
16631     * If a new item is selected the previosly selected will be unselected,
16632     * unless multiple selection is enabled with elm_list_multi_select_set().
16633     * Previoulsy selected item can be get with function
16634     * elm_list_selected_item_get().
16635     *
16636     * Selected items will be highlighted.
16637     *
16638     * @see elm_list_item_selected_get()
16639     * @see elm_list_selected_item_get()
16640     * @see elm_list_multi_select_set()
16641     *
16642     * @ingroup List
16643     */
16644    EAPI void             elm_list_item_selected_set(Elm_List_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
16645
16646    /*
16647     * Get whether the @p item is selected or not.
16648     *
16649     * @param item The list item.
16650     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
16651     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
16652     *
16653     * @see elm_list_selected_item_set() for details.
16654     * @see elm_list_item_selected_get()
16655     *
16656     * @ingroup List
16657     */
16658    EAPI Eina_Bool        elm_list_item_selected_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
16659
16660    /**
16661     * Set or unset item as a separator.
16662     *
16663     * @param it The list item.
16664     * @param setting @c EINA_TRUE to set item @p it as separator or
16665     * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
16666     *
16667     * Items aren't set as separator by default.
16668     *
16669     * If set as separator it will display separator theme, so won't display
16670     * icons or label.
16671     *
16672     * @see elm_list_item_separator_get()
16673     *
16674     * @ingroup List
16675     */
16676    EAPI void             elm_list_item_separator_set(Elm_List_Item *it, Eina_Bool setting) EINA_ARG_NONNULL(1);
16677
16678    /**
16679     * Get a value whether item is a separator or not.
16680     *
16681     * @see elm_list_item_separator_set() for details.
16682     *
16683     * @param it The list item.
16684     * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
16685     * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
16686     *
16687     * @ingroup List
16688     */
16689    EAPI Eina_Bool        elm_list_item_separator_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
16690
16691    /**
16692     * Show @p item in the list view.
16693     *
16694     * @param item The list item to be shown.
16695     *
16696     * It won't animate list until item is visible. If such behavior is wanted,
16697     * use elm_list_bring_in() intead.
16698     *
16699     * @ingroup List
16700     */
16701    EAPI void             elm_list_item_show(Elm_List_Item *item) EINA_ARG_NONNULL(1);
16702
16703    /**
16704     * Bring in the given item to list view.
16705     *
16706     * @param item The item.
16707     *
16708     * This causes list to jump to the given item @p item and show it
16709     * (by scrolling), if it is not fully visible.
16710     *
16711     * This may use animation to do so and take a period of time.
16712     *
16713     * If animation isn't wanted, elm_list_item_show() can be used.
16714     *
16715     * @ingroup List
16716     */
16717    EAPI void             elm_list_item_bring_in(Elm_List_Item *item) EINA_ARG_NONNULL(1);
16718
16719    /**
16720     * Delete them item from the list.
16721     *
16722     * @param item The item of list to be deleted.
16723     *
16724     * If deleting all list items is required, elm_list_clear()
16725     * should be used instead of getting items list and deleting each one.
16726     *
16727     * @see elm_list_clear()
16728     * @see elm_list_item_append()
16729     * @see elm_list_item_del_cb_set()
16730     *
16731     * @ingroup List
16732     */
16733    EAPI void             elm_list_item_del(Elm_List_Item *item) EINA_ARG_NONNULL(1);
16734
16735    /**
16736     * Set the function called when a list item is freed.
16737     *
16738     * @param item The item to set the callback on
16739     * @param func The function called
16740     *
16741     * If there is a @p func, then it will be called prior item's memory release.
16742     * That will be called with the following arguments:
16743     * @li item's data;
16744     * @li item's Evas object;
16745     * @li item itself;
16746     *
16747     * This way, a data associated to a list item could be properly freed.
16748     *
16749     * @ingroup List
16750     */
16751    EAPI void             elm_list_item_del_cb_set(Elm_List_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
16752
16753    /**
16754     * Get the data associated to the item.
16755     *
16756     * @param item The list item
16757     * @return The data associated to @p item
16758     *
16759     * The return value is a pointer to data associated to @p item when it was
16760     * created, with function elm_list_item_append() or similar. If no data
16761     * was passed as argument, it will return @c NULL.
16762     *
16763     * @see elm_list_item_append()
16764     *
16765     * @ingroup List
16766     */
16767    EAPI void            *elm_list_item_data_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
16768
16769    /**
16770     * Get the left side icon associated to the item.
16771     *
16772     * @param item The list item
16773     * @return The left side icon associated to @p item
16774     *
16775     * The return value is a pointer to the icon associated to @p item when
16776     * it was
16777     * created, with function elm_list_item_append() or similar, or later
16778     * with function elm_list_item_icon_set(). If no icon
16779     * was passed as argument, it will return @c NULL.
16780     *
16781     * @see elm_list_item_append()
16782     * @see elm_list_item_icon_set()
16783     *
16784     * @ingroup List
16785     */
16786    EAPI Evas_Object     *elm_list_item_icon_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
16787
16788    /**
16789     * Set the left side icon associated to the item.
16790     *
16791     * @param item The list item
16792     * @param icon The left side icon object to associate with @p item
16793     *
16794     * The icon object to use at left side of the item. An
16795     * icon can be any Evas object, but usually it is an icon created
16796     * with elm_icon_add().
16797     *
16798     * Once the icon object is set, a previously set one will be deleted.
16799     * @warning Setting the same icon for two items will cause the icon to
16800     * dissapear from the first item.
16801     *
16802     * If an icon was passed as argument on item creation, with function
16803     * elm_list_item_append() or similar, it will be already
16804     * associated to the item.
16805     *
16806     * @see elm_list_item_append()
16807     * @see elm_list_item_icon_get()
16808     *
16809     * @ingroup List
16810     */
16811    EAPI void             elm_list_item_icon_set(Elm_List_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
16812
16813    /**
16814     * Get the right side icon associated to the item.
16815     *
16816     * @param item The list item
16817     * @return The right side icon associated to @p item
16818     *
16819     * The return value is a pointer to the icon associated to @p item when
16820     * it was
16821     * created, with function elm_list_item_append() or similar, or later
16822     * with function elm_list_item_icon_set(). If no icon
16823     * was passed as argument, it will return @c NULL.
16824     *
16825     * @see elm_list_item_append()
16826     * @see elm_list_item_icon_set()
16827     *
16828     * @ingroup List
16829     */
16830    EAPI Evas_Object     *elm_list_item_end_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
16831
16832    /**
16833     * Set the right side icon associated to the item.
16834     *
16835     * @param item The list item
16836     * @param end The right side icon object to associate with @p item
16837     *
16838     * The icon object to use at right side of the item. An
16839     * icon can be any Evas object, but usually it is an icon created
16840     * with elm_icon_add().
16841     *
16842     * Once the icon object is set, a previously set one will be deleted.
16843     * @warning Setting the same icon for two items will cause the icon to
16844     * dissapear from the first item.
16845     *
16846     * If an icon was passed as argument on item creation, with function
16847     * elm_list_item_append() or similar, it will be already
16848     * associated to the item.
16849     *
16850     * @see elm_list_item_append()
16851     * @see elm_list_item_end_get()
16852     *
16853     * @ingroup List
16854     */
16855    EAPI void             elm_list_item_end_set(Elm_List_Item *item, Evas_Object *end) EINA_ARG_NONNULL(1);
16856    EAPI Evas_Object     *elm_list_item_base_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
16857
16858    /**
16859     * Gets the base object of the item.
16860     *
16861     * @param item The list item
16862     * @return The base object associated with @p item
16863     *
16864     * Base object is the @c Evas_Object that represents that item.
16865     *
16866     * @ingroup List
16867     */
16868    EAPI Evas_Object     *elm_list_item_object_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
16869
16870    /**
16871     * Get the label of item.
16872     *
16873     * @param item The item of list.
16874     * @return The label of item.
16875     *
16876     * The return value is a pointer to the label associated to @p item when
16877     * it was created, with function elm_list_item_append(), or later
16878     * with function elm_list_item_label_set. If no label
16879     * was passed as argument, it will return @c NULL.
16880     *
16881     * @see elm_list_item_label_set() for more details.
16882     * @see elm_list_item_append()
16883     *
16884     * @ingroup List
16885     */
16886    EAPI const char      *elm_list_item_label_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
16887
16888    /**
16889     * Set the label of item.
16890     *
16891     * @param item The item of list.
16892     * @param text The label of item.
16893     *
16894     * The label to be displayed by the item.
16895     * Label will be placed between left and right side icons (if set).
16896     *
16897     * If a label was passed as argument on item creation, with function
16898     * elm_list_item_append() or similar, it will be already
16899     * displayed by the item.
16900     *
16901     * @see elm_list_item_label_get()
16902     * @see elm_list_item_append()
16903     *
16904     * @ingroup List
16905     */
16906    EAPI void             elm_list_item_label_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
16907
16908
16909    /**
16910     * Get the item before @p it in list.
16911     *
16912     * @param it The list item.
16913     * @return The item before @p it, or @c NULL if none or on failure.
16914     *
16915     * @note If it is the first item, @c NULL will be returned.
16916     *
16917     * @see elm_list_item_append()
16918     * @see elm_list_items_get()
16919     *
16920     * @ingroup List
16921     */
16922    EAPI Elm_List_Item   *elm_list_item_prev(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
16923
16924    /**
16925     * Get the item after @p it in list.
16926     *
16927     * @param it The list item.
16928     * @return The item after @p it, or @c NULL if none or on failure.
16929     *
16930     * @note If it is the last item, @c NULL will be returned.
16931     *
16932     * @see elm_list_item_append()
16933     * @see elm_list_items_get()
16934     *
16935     * @ingroup List
16936     */
16937    EAPI Elm_List_Item   *elm_list_item_next(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
16938
16939    /**
16940     * Sets the disabled/enabled state of a list item.
16941     *
16942     * @param it The item.
16943     * @param disabled The disabled state.
16944     *
16945     * A disabled item cannot be selected or unselected. It will also
16946     * change its appearance (generally greyed out). This sets the
16947     * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
16948     * enabled).
16949     *
16950     * @ingroup List
16951     */
16952    EAPI void             elm_list_item_disabled_set(Elm_List_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
16953
16954    /**
16955     * Get a value whether list item is disabled or not.
16956     *
16957     * @param it The item.
16958     * @return The disabled state.
16959     *
16960     * @see elm_list_item_disabled_set() for more details.
16961     *
16962     * @ingroup List
16963     */
16964    EAPI Eina_Bool        elm_list_item_disabled_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
16965
16966    /**
16967     * Set the text to be shown in a given list item's tooltips.
16968     *
16969     * @param item Target item.
16970     * @param text The text to set in the content.
16971     *
16972     * Setup the text as tooltip to object. The item can have only one tooltip,
16973     * so any previous tooltip data - set with this function or
16974     * elm_list_item_tooltip_content_cb_set() - is removed.
16975     *
16976     * @see elm_object_tooltip_text_set() for more details.
16977     *
16978     * @ingroup List
16979     */
16980    EAPI void             elm_list_item_tooltip_text_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
16981
16982
16983    /**
16984     * @brief Disable size restrictions on an object's tooltip
16985     * @param item The tooltip's anchor object
16986     * @param disable If EINA_TRUE, size restrictions are disabled
16987     * @return EINA_FALSE on failure, EINA_TRUE on success
16988     *
16989     * This function allows a tooltip to expand beyond its parant window's canvas.
16990     * It will instead be limited only by the size of the display.
16991     */
16992    EAPI Eina_Bool        elm_list_item_tooltip_size_restrict_disable(Elm_List_Item *item, Eina_Bool disable) EINA_ARG_NONNULL(1);
16993    /**
16994     * @brief Retrieve size restriction state of an object's tooltip
16995     * @param obj The tooltip's anchor object
16996     * @return If EINA_TRUE, size restrictions are disabled
16997     *
16998     * This function returns whether a tooltip is allowed to expand beyond
16999     * its parant window's canvas.
17000     * It will instead be limited only by the size of the display.
17001     */
17002    EAPI Eina_Bool        elm_list_item_tooltip_size_restrict_disabled_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17003
17004    /**
17005     * Set the content to be shown in the tooltip item.
17006     *
17007     * Setup the tooltip to item. The item can have only one tooltip,
17008     * so any previous tooltip data is removed. @p func(with @p data) will
17009     * be called every time that need show the tooltip and it should
17010     * return a valid Evas_Object. This object is then managed fully by
17011     * tooltip system and is deleted when the tooltip is gone.
17012     *
17013     * @param item the list item being attached a tooltip.
17014     * @param func the function used to create the tooltip contents.
17015     * @param data what to provide to @a func as callback data/context.
17016     * @param del_cb called when data is not needed anymore, either when
17017     *        another callback replaces @a func, the tooltip is unset with
17018     *        elm_list_item_tooltip_unset() or the owner @a item
17019     *        dies. This callback receives as the first parameter the
17020     *        given @a data, and @c event_info is the item.
17021     *
17022     * @see elm_object_tooltip_content_cb_set() for more details.
17023     *
17024     * @ingroup List
17025     */
17026    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);
17027
17028    /**
17029     * Unset tooltip from item.
17030     *
17031     * @param item list item to remove previously set tooltip.
17032     *
17033     * Remove tooltip from item. The callback provided as del_cb to
17034     * elm_list_item_tooltip_content_cb_set() will be called to notify
17035     * it is not used anymore.
17036     *
17037     * @see elm_object_tooltip_unset() for more details.
17038     * @see elm_list_item_tooltip_content_cb_set()
17039     *
17040     * @ingroup List
17041     */
17042    EAPI void             elm_list_item_tooltip_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
17043
17044    /**
17045     * Sets a different style for this item tooltip.
17046     *
17047     * @note before you set a style you should define a tooltip with
17048     *       elm_list_item_tooltip_content_cb_set() or
17049     *       elm_list_item_tooltip_text_set()
17050     *
17051     * @param item list item with tooltip already set.
17052     * @param style the theme style to use (default, transparent, ...)
17053     *
17054     * @see elm_object_tooltip_style_set() for more details.
17055     *
17056     * @ingroup List
17057     */
17058    EAPI void             elm_list_item_tooltip_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
17059
17060    /**
17061     * Get the style for this item tooltip.
17062     *
17063     * @param item list item with tooltip already set.
17064     * @return style the theme style in use, defaults to "default". If the
17065     *         object does not have a tooltip set, then NULL is returned.
17066     *
17067     * @see elm_object_tooltip_style_get() for more details.
17068     * @see elm_list_item_tooltip_style_set()
17069     *
17070     * @ingroup List
17071     */
17072    EAPI const char      *elm_list_item_tooltip_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17073
17074    /**
17075     * Set the type of mouse pointer/cursor decoration to be shown,
17076     * when the mouse pointer is over the given list widget item
17077     *
17078     * @param item list item to customize cursor on
17079     * @param cursor the cursor type's name
17080     *
17081     * This function works analogously as elm_object_cursor_set(), but
17082     * here the cursor's changing area is restricted to the item's
17083     * area, and not the whole widget's. Note that that item cursors
17084     * have precedence over widget cursors, so that a mouse over an
17085     * item with custom cursor set will always show @b that cursor.
17086     *
17087     * If this function is called twice for an object, a previously set
17088     * cursor will be unset on the second call.
17089     *
17090     * @see elm_object_cursor_set()
17091     * @see elm_list_item_cursor_get()
17092     * @see elm_list_item_cursor_unset()
17093     *
17094     * @ingroup List
17095     */
17096    EAPI void             elm_list_item_cursor_set(Elm_List_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
17097
17098    /*
17099     * Get the type of mouse pointer/cursor decoration set to be shown,
17100     * when the mouse pointer is over the given list widget item
17101     *
17102     * @param item list item with custom cursor set
17103     * @return the cursor type's name or @c NULL, if no custom cursors
17104     * were set to @p item (and on errors)
17105     *
17106     * @see elm_object_cursor_get()
17107     * @see elm_list_item_cursor_set()
17108     * @see elm_list_item_cursor_unset()
17109     *
17110     * @ingroup List
17111     */
17112    EAPI const char      *elm_list_item_cursor_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17113
17114    /**
17115     * Unset any custom mouse pointer/cursor decoration set to be
17116     * shown, when the mouse pointer is over the given list widget
17117     * item, thus making it show the @b default cursor again.
17118     *
17119     * @param item a list item
17120     *
17121     * Use this call to undo any custom settings on this item's cursor
17122     * decoration, bringing it back to defaults (no custom style set).
17123     *
17124     * @see elm_object_cursor_unset()
17125     * @see elm_list_item_cursor_set()
17126     *
17127     * @ingroup List
17128     */
17129    EAPI void             elm_list_item_cursor_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
17130
17131    /**
17132     * Set a different @b style for a given custom cursor set for a
17133     * list item.
17134     *
17135     * @param item list item with custom cursor set
17136     * @param style the <b>theme style</b> to use (e.g. @c "default",
17137     * @c "transparent", etc)
17138     *
17139     * This function only makes sense when one is using custom mouse
17140     * cursor decorations <b>defined in a theme file</b>, which can have,
17141     * given a cursor name/type, <b>alternate styles</b> on it. It
17142     * works analogously as elm_object_cursor_style_set(), but here
17143     * applyed only to list item objects.
17144     *
17145     * @warning Before you set a cursor style you should have definen a
17146     *       custom cursor previously on the item, with
17147     *       elm_list_item_cursor_set()
17148     *
17149     * @see elm_list_item_cursor_engine_only_set()
17150     * @see elm_list_item_cursor_style_get()
17151     *
17152     * @ingroup List
17153     */
17154    EAPI void             elm_list_item_cursor_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
17155
17156    /**
17157     * Get the current @b style set for a given list item's custom
17158     * cursor
17159     *
17160     * @param item list item with custom cursor set.
17161     * @return style the cursor style in use. If the object does not
17162     *         have a cursor set, then @c NULL is returned.
17163     *
17164     * @see elm_list_item_cursor_style_set() for more details
17165     *
17166     * @ingroup List
17167     */
17168    EAPI const char      *elm_list_item_cursor_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17169
17170    /**
17171     * Set if the (custom)cursor for a given list item should be
17172     * searched in its theme, also, or should only rely on the
17173     * rendering engine.
17174     *
17175     * @param item item with custom (custom) cursor already set on
17176     * @param engine_only Use @c EINA_TRUE to have cursors looked for
17177     * only on those provided by the rendering engine, @c EINA_FALSE to
17178     * have them searched on the widget's theme, as well.
17179     *
17180     * @note This call is of use only if you've set a custom cursor
17181     * for list items, with elm_list_item_cursor_set().
17182     *
17183     * @note By default, cursors will only be looked for between those
17184     * provided by the rendering engine.
17185     *
17186     * @ingroup List
17187     */
17188    EAPI void             elm_list_item_cursor_engine_only_set(Elm_List_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
17189
17190    /**
17191     * Get if the (custom) cursor for a given list item is being
17192     * searched in its theme, also, or is only relying on the rendering
17193     * engine.
17194     *
17195     * @param item a list item
17196     * @return @c EINA_TRUE, if cursors are being looked for only on
17197     * those provided by the rendering engine, @c EINA_FALSE if they
17198     * are being searched on the widget's theme, as well.
17199     *
17200     * @see elm_list_item_cursor_engine_only_set(), for more details
17201     *
17202     * @ingroup List
17203     */
17204    EAPI Eina_Bool        elm_list_item_cursor_engine_only_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17205
17206    /**
17207     * @}
17208     */
17209
17210    /**
17211     * @defgroup Slider Slider
17212     * @ingroup Elementary
17213     *
17214     * @image html img/widget/slider/preview-00.png
17215     * @image latex img/widget/slider/preview-00.eps width=\textwidth
17216     *
17217     * The slider adds a dragable ā€œsliderā€ widget for selecting the value of
17218     * something within a range.
17219     *
17220     * A slider can be horizontal or vertical. It can contain an Icon and has a
17221     * primary label as well as a units label (that is formatted with floating
17222     * point values and thus accepts a printf-style format string, like
17223     * ā€œ%1.2f unitsā€. There is also an indicator string that may be somewhere
17224     * else (like on the slider itself) that also accepts a format string like
17225     * units. Label, Icon Unit and Indicator strings/objects are optional.
17226     *
17227     * A slider may be inverted which means values invert, with high vales being
17228     * on the left or top and low values on the right or bottom (as opposed to
17229     * normally being low on the left or top and high on the bottom and right).
17230     *
17231     * The slider should have its minimum and maximum values set by the
17232     * application with  elm_slider_min_max_set() and value should also be set by
17233     * the application before use with  elm_slider_value_set(). The span of the
17234     * slider is its length (horizontally or vertically). This will be scaled by
17235     * the object or applications scaling factor. At any point code can query the
17236     * slider for its value with elm_slider_value_get().
17237     *
17238     * Smart callbacks one can listen to:
17239     * - "changed" - Whenever the slider value is changed by the user.
17240     * - "slider,drag,start" - dragging the slider indicator around has started.
17241     * - "slider,drag,stop" - dragging the slider indicator around has stopped.
17242     * - "delay,changed" - A short time after the value is changed by the user.
17243     * This will be called only when the user stops dragging for
17244     * a very short period or when they release their
17245     * finger/mouse, so it avoids possibly expensive reactions to
17246     * the value change.
17247     *
17248     * Available styles for it:
17249     * - @c "default"
17250     *
17251     * Default contents parts of the slider widget that you can use for are:
17252     * @li "icon" - A icon of the slider
17253     * @li "end" - A end part content of the slider
17254     * 
17255     * Default text parts of the silder widget that you can use for are:
17256     * @li "default" - Label of the silder
17257     * Here is an example on its usage:
17258     * @li @ref slider_example
17259     */
17260
17261    /**
17262     * @addtogroup Slider
17263     * @{
17264     */
17265
17266    /**
17267     * Add a new slider widget to the given parent Elementary
17268     * (container) object.
17269     *
17270     * @param parent The parent object.
17271     * @return a new slider widget handle or @c NULL, on errors.
17272     *
17273     * This function inserts a new slider widget on the canvas.
17274     *
17275     * @ingroup Slider
17276     */
17277    EAPI Evas_Object       *elm_slider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
17278
17279    /**
17280     * Set the label of a given slider widget
17281     *
17282     * @param obj The progress bar object
17283     * @param label The text label string, in UTF-8
17284     *
17285     * @ingroup Slider
17286     * @deprecated use elm_object_text_set() instead.
17287     */
17288    EINA_DEPRECATED EAPI void               elm_slider_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
17289
17290    /**
17291     * Get the label of a given slider widget
17292     *
17293     * @param obj The progressbar object
17294     * @return The text label string, in UTF-8
17295     *
17296     * @ingroup Slider
17297     * @deprecated use elm_object_text_get() instead.
17298     */
17299    EAPI const char        *elm_slider_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17300
17301    /**
17302     * Set the icon object of the slider object.
17303     *
17304     * @param obj The slider object.
17305     * @param icon The icon object.
17306     *
17307     * On horizontal mode, icon is placed at left, and on vertical mode,
17308     * placed at top.
17309     *
17310     * @note Once the icon object is set, a previously set one will be deleted.
17311     * If you want to keep that old content object, use the
17312     * elm_slider_icon_unset() function.
17313     *
17314     * @warning If the object being set does not have minimum size hints set,
17315     * it won't get properly displayed.
17316     *
17317     * @ingroup Slider
17318     * @deprecated use elm_object_content_part_set() instead.
17319     */
17320    EAPI void               elm_slider_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
17321
17322    /**
17323     * Unset an icon set on a given slider widget.
17324     *
17325     * @param obj The slider object.
17326     * @return The icon object that was being used, if any was set, or
17327     * @c NULL, otherwise (and on errors).
17328     *
17329     * On horizontal mode, icon is placed at left, and on vertical mode,
17330     * placed at top.
17331     *
17332     * This call will unparent and return the icon object which was set
17333     * for this widget, previously, on success.
17334     *
17335     * @see elm_slider_icon_set() for more details
17336     * @see elm_slider_icon_get()
17337     * @deprecated use elm_object_content_part_unset() instead.
17338     *
17339     * @ingroup Slider
17340     */
17341    EAPI Evas_Object       *elm_slider_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
17342
17343    /**
17344     * Retrieve the icon object set for a given slider widget.
17345     *
17346     * @param obj The slider object.
17347     * @return The icon object's handle, if @p obj had one set, or @c NULL,
17348     * otherwise (and on errors).
17349     *
17350     * On horizontal mode, icon is placed at left, and on vertical mode,
17351     * placed at top.
17352     *
17353     * @see elm_slider_icon_set() for more details
17354     * @see elm_slider_icon_unset()
17355     *
17356     * @deprecated use elm_object_content_part_get() instead.
17357     *
17358     * @ingroup Slider
17359     */
17360    EAPI Evas_Object       *elm_slider_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17361
17362    /**
17363     * Set the end object of the slider object.
17364     *
17365     * @param obj The slider object.
17366     * @param end The end object.
17367     *
17368     * On horizontal mode, end is placed at left, and on vertical mode,
17369     * placed at bottom.
17370     *
17371     * @note Once the icon object is set, a previously set one will be deleted.
17372     * If you want to keep that old content object, use the
17373     * elm_slider_end_unset() function.
17374     *
17375     * @warning If the object being set does not have minimum size hints set,
17376     * it won't get properly displayed.
17377     *
17378     * @deprecated use elm_object_content_part_set() instead.
17379     *
17380     * @ingroup Slider
17381     */
17382    EAPI void               elm_slider_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1);
17383
17384    /**
17385     * Unset an end object set on a given slider widget.
17386     *
17387     * @param obj The slider object.
17388     * @return The end object that was being used, if any was set, or
17389     * @c NULL, otherwise (and on errors).
17390     *
17391     * On horizontal mode, end is placed at left, and on vertical mode,
17392     * placed at bottom.
17393     *
17394     * This call will unparent and return the icon object which was set
17395     * for this widget, previously, on success.
17396     *
17397     * @see elm_slider_end_set() for more details.
17398     * @see elm_slider_end_get()
17399     *
17400     * @deprecated use elm_object_content_part_unset() instead
17401     * instead.
17402     *
17403     * @ingroup Slider
17404     */
17405    EAPI Evas_Object       *elm_slider_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
17406
17407    /**
17408     * Retrieve the end object set for a given slider widget.
17409     *
17410     * @param obj The slider object.
17411     * @return The end object's handle, if @p obj had one set, or @c NULL,
17412     * otherwise (and on errors).
17413     *
17414     * On horizontal mode, icon is placed at right, and on vertical mode,
17415     * placed at bottom.
17416     *
17417     * @see elm_slider_end_set() for more details.
17418     * @see elm_slider_end_unset()
17419     *
17420     *
17421     * @deprecated use elm_object_content_part_get() instead 
17422     * instead.
17423     *
17424     * @ingroup Slider
17425     */
17426    EAPI Evas_Object       *elm_slider_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17427
17428    /**
17429     * Set the (exact) length of the bar region of a given slider widget.
17430     *
17431     * @param obj The slider object.
17432     * @param size The length of the slider's bar region.
17433     *
17434     * This sets the minimum width (when in horizontal mode) or height
17435     * (when in vertical mode) of the actual bar area of the slider
17436     * @p obj. This in turn affects the object's minimum size. Use
17437     * this when you're not setting other size hints expanding on the
17438     * given direction (like weight and alignment hints) and you would
17439     * like it to have a specific size.
17440     *
17441     * @note Icon, end, label, indicator and unit text around @p obj
17442     * will require their
17443     * own space, which will make @p obj to require more the @p size,
17444     * actually.
17445     *
17446     * @see elm_slider_span_size_get()
17447     *
17448     * @ingroup Slider
17449     */
17450    EAPI void               elm_slider_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
17451
17452    /**
17453     * Get the length set for the bar region of a given slider widget
17454     *
17455     * @param obj The slider object.
17456     * @return The length of the slider's bar region.
17457     *
17458     * If that size was not set previously, with
17459     * elm_slider_span_size_set(), this call will return @c 0.
17460     *
17461     * @ingroup Slider
17462     */
17463    EAPI Evas_Coord         elm_slider_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17464
17465    /**
17466     * Set the format string for the unit label.
17467     *
17468     * @param obj The slider object.
17469     * @param format The format string for the unit display.
17470     *
17471     * Unit label is displayed all the time, if set, after slider's bar.
17472     * In horizontal mode, at right and in vertical mode, at bottom.
17473     *
17474     * If @c NULL, unit label won't be visible. If not it sets the format
17475     * string for the label text. To the label text is provided a floating point
17476     * value, so the label text can display up to 1 floating point value.
17477     * Note that this is optional.
17478     *
17479     * Use a format string such as "%1.2f meters" for example, and it will
17480     * display values like: "3.14 meters" for a value equal to 3.14159.
17481     *
17482     * Default is unit label disabled.
17483     *
17484     * @see elm_slider_indicator_format_get()
17485     *
17486     * @ingroup Slider
17487     */
17488    EAPI void               elm_slider_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
17489
17490    /**
17491     * Get the unit label format of the slider.
17492     *
17493     * @param obj The slider object.
17494     * @return The unit label format string in UTF-8.
17495     *
17496     * Unit label is displayed all the time, if set, after slider's bar.
17497     * In horizontal mode, at right and in vertical mode, at bottom.
17498     *
17499     * @see elm_slider_unit_format_set() for more
17500     * information on how this works.
17501     *
17502     * @ingroup Slider
17503     */
17504    EAPI const char        *elm_slider_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17505
17506    /**
17507     * Set the format string for the indicator label.
17508     *
17509     * @param obj The slider object.
17510     * @param indicator The format string for the indicator display.
17511     *
17512     * The slider may display its value somewhere else then unit label,
17513     * for example, above the slider knob that is dragged around. This function
17514     * sets the format string used for this.
17515     *
17516     * If @c NULL, indicator label won't be visible. If not it sets the format
17517     * string for the label text. To the label text is provided a floating point
17518     * value, so the label text can display up to 1 floating point value.
17519     * Note that this is optional.
17520     *
17521     * Use a format string such as "%1.2f meters" for example, and it will
17522     * display values like: "3.14 meters" for a value equal to 3.14159.
17523     *
17524     * Default is indicator label disabled.
17525     *
17526     * @see elm_slider_indicator_format_get()
17527     *
17528     * @ingroup Slider
17529     */
17530    EAPI void               elm_slider_indicator_format_set(Evas_Object *obj, const char *indicator) EINA_ARG_NONNULL(1);
17531
17532    /**
17533     * Get the indicator label format of the slider.
17534     *
17535     * @param obj The slider object.
17536     * @return The indicator label format string in UTF-8.
17537     *
17538     * The slider may display its value somewhere else then unit label,
17539     * for example, above the slider knob that is dragged around. This function
17540     * gets the format string used for this.
17541     *
17542     * @see elm_slider_indicator_format_set() for more
17543     * information on how this works.
17544     *
17545     * @ingroup Slider
17546     */
17547    EAPI const char        *elm_slider_indicator_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17548
17549    /**
17550     * Set the format function pointer for the indicator label
17551     *
17552     * @param obj The slider object.
17553     * @param func The indicator format function.
17554     * @param free_func The freeing function for the format string.
17555     *
17556     * Set the callback function to format the indicator string.
17557     *
17558     * @see elm_slider_indicator_format_set() for more info on how this works.
17559     *
17560     * @ingroup Slider
17561     */
17562   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);
17563
17564   /**
17565    * Set the format function pointer for the units label
17566    *
17567    * @param obj The slider object.
17568    * @param func The units format function.
17569    * @param free_func The freeing function for the format string.
17570    *
17571    * Set the callback function to format the indicator string.
17572    *
17573    * @see elm_slider_units_format_set() for more info on how this works.
17574    *
17575    * @ingroup Slider
17576    */
17577   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);
17578
17579   /**
17580    * Set the orientation of a given slider widget.
17581    *
17582    * @param obj The slider object.
17583    * @param horizontal Use @c EINA_TRUE to make @p obj to be
17584    * @b horizontal, @c EINA_FALSE to make it @b vertical.
17585    *
17586    * Use this function to change how your slider is to be
17587    * disposed: vertically or horizontally.
17588    *
17589    * By default it's displayed horizontally.
17590    *
17591    * @see elm_slider_horizontal_get()
17592    *
17593    * @ingroup Slider
17594    */
17595    EAPI void               elm_slider_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
17596
17597    /**
17598     * Retrieve the orientation of a given slider widget
17599     *
17600     * @param obj The slider object.
17601     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
17602     * @c EINA_FALSE if it's @b vertical (and on errors).
17603     *
17604     * @see elm_slider_horizontal_set() for more details.
17605     *
17606     * @ingroup Slider
17607     */
17608    EAPI Eina_Bool          elm_slider_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17609
17610    /**
17611     * Set the minimum and maximum values for the slider.
17612     *
17613     * @param obj The slider object.
17614     * @param min The minimum value.
17615     * @param max The maximum value.
17616     *
17617     * Define the allowed range of values to be selected by the user.
17618     *
17619     * If actual value is less than @p min, it will be updated to @p min. If it
17620     * is bigger then @p max, will be updated to @p max. Actual value can be
17621     * get with elm_slider_value_get().
17622     *
17623     * By default, min is equal to 0.0, and max is equal to 1.0.
17624     *
17625     * @warning Maximum must be greater than minimum, otherwise behavior
17626     * is undefined.
17627     *
17628     * @see elm_slider_min_max_get()
17629     *
17630     * @ingroup Slider
17631     */
17632    EAPI void               elm_slider_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
17633
17634    /**
17635     * Get the minimum and maximum values of the slider.
17636     *
17637     * @param obj The slider object.
17638     * @param min Pointer where to store the minimum value.
17639     * @param max Pointer where to store the maximum value.
17640     *
17641     * @note If only one value is needed, the other pointer can be passed
17642     * as @c NULL.
17643     *
17644     * @see elm_slider_min_max_set() for details.
17645     *
17646     * @ingroup Slider
17647     */
17648    EAPI void               elm_slider_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
17649
17650    /**
17651     * Set the value the slider displays.
17652     *
17653     * @param obj The slider object.
17654     * @param val The value to be displayed.
17655     *
17656     * Value will be presented on the unit label following format specified with
17657     * elm_slider_unit_format_set() and on indicator with
17658     * elm_slider_indicator_format_set().
17659     *
17660     * @warning The value must to be between min and max values. This values
17661     * are set by elm_slider_min_max_set().
17662     *
17663     * @see elm_slider_value_get()
17664     * @see elm_slider_unit_format_set()
17665     * @see elm_slider_indicator_format_set()
17666     * @see elm_slider_min_max_set()
17667     *
17668     * @ingroup Slider
17669     */
17670    EAPI void               elm_slider_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
17671
17672    /**
17673     * Get the value displayed by the spinner.
17674     *
17675     * @param obj The spinner object.
17676     * @return The value displayed.
17677     *
17678     * @see elm_spinner_value_set() for details.
17679     *
17680     * @ingroup Slider
17681     */
17682    EAPI double             elm_slider_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17683
17684    /**
17685     * Invert a given slider widget's displaying values order
17686     *
17687     * @param obj The slider object.
17688     * @param inverted Use @c EINA_TRUE to make @p obj inverted,
17689     * @c EINA_FALSE to bring it back to default, non-inverted values.
17690     *
17691     * A slider may be @b inverted, in which state it gets its
17692     * values inverted, with high vales being on the left or top and
17693     * low values on the right or bottom, as opposed to normally have
17694     * the low values on the former and high values on the latter,
17695     * respectively, for horizontal and vertical modes.
17696     *
17697     * @see elm_slider_inverted_get()
17698     *
17699     * @ingroup Slider
17700     */
17701    EAPI void               elm_slider_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
17702
17703    /**
17704     * Get whether a given slider widget's displaying values are
17705     * inverted or not.
17706     *
17707     * @param obj The slider object.
17708     * @return @c EINA_TRUE, if @p obj has inverted values,
17709     * @c EINA_FALSE otherwise (and on errors).
17710     *
17711     * @see elm_slider_inverted_set() for more details.
17712     *
17713     * @ingroup Slider
17714     */
17715    EAPI Eina_Bool          elm_slider_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17716
17717    /**
17718     * Set whether to enlarge slider indicator (augmented knob) or not.
17719     *
17720     * @param obj The slider object.
17721     * @param show @c EINA_TRUE will make it enlarge, @c EINA_FALSE will
17722     * let the knob always at default size.
17723     *
17724     * By default, indicator will be bigger while dragged by the user.
17725     *
17726     * @warning It won't display values set with
17727     * elm_slider_indicator_format_set() if you disable indicator.
17728     *
17729     * @ingroup Slider
17730     */
17731    EAPI void               elm_slider_indicator_show_set(Evas_Object *obj, Eina_Bool show) EINA_ARG_NONNULL(1);
17732
17733    /**
17734     * Get whether a given slider widget's enlarging indicator or not.
17735     *
17736     * @param obj The slider object.
17737     * @return @c EINA_TRUE, if @p obj is enlarging indicator, or
17738     * @c EINA_FALSE otherwise (and on errors).
17739     *
17740     * @see elm_slider_indicator_show_set() for details.
17741     *
17742     * @ingroup Slider
17743     */
17744    EAPI Eina_Bool          elm_slider_indicator_show_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17745
17746    /**
17747     * @}
17748     */
17749
17750    /**
17751     * @addtogroup Actionslider Actionslider
17752     *
17753     * @image html img/widget/actionslider/preview-00.png
17754     * @image latex img/widget/actionslider/preview-00.eps
17755     *
17756     * An actionslider is a switcher for 2 or 3 labels with customizable magnet
17757     * properties. The user drags and releases the indicator, to choose a label.
17758     *
17759     * Labels occupy the following positions.
17760     * a. Left
17761     * b. Right
17762     * c. Center
17763     *
17764     * Positions can be enabled or disabled.
17765     *
17766     * Magnets can be set on the above positions.
17767     *
17768     * When the indicator is released, it will move to its nearest "enabled and magnetized" position.
17769     *
17770     * @note By default all positions are set as enabled.
17771     *
17772     * Signals that you can add callbacks for are:
17773     *
17774     * "selected" - when user selects an enabled position (the label is passed
17775     *              as event info)".
17776     * @n
17777     * "pos_changed" - when the indicator reaches any of the positions("left",
17778     *                 "right" or "center").
17779     *
17780     * See an example of actionslider usage @ref actionslider_example_page "here"
17781     * @{
17782     */
17783
17784    typedef enum _Elm_Actionslider_Indicator_Pos
17785      {
17786         ELM_ACTIONSLIDER_INDICATOR_NONE,
17787         ELM_ACTIONSLIDER_INDICATOR_LEFT,
17788         ELM_ACTIONSLIDER_INDICATOR_RIGHT,
17789         ELM_ACTIONSLIDER_INDICATOR_CENTER
17790      } Elm_Actionslider_Indicator_Pos;
17791
17792    typedef enum _Elm_Actionslider_Magnet_Pos
17793      {
17794         ELM_ACTIONSLIDER_MAGNET_NONE = 0,
17795         ELM_ACTIONSLIDER_MAGNET_LEFT = 1 << 0,
17796         ELM_ACTIONSLIDER_MAGNET_CENTER = 1 << 1,
17797         ELM_ACTIONSLIDER_MAGNET_RIGHT= 1 << 2,
17798         ELM_ACTIONSLIDER_MAGNET_ALL = (1 << 3) -1,
17799         ELM_ACTIONSLIDER_MAGNET_BOTH = (1 << 3)
17800      } Elm_Actionslider_Magnet_Pos;
17801
17802    typedef enum _Elm_Actionslider_Label_Pos
17803      {
17804         ELM_ACTIONSLIDER_LABEL_LEFT,
17805         ELM_ACTIONSLIDER_LABEL_RIGHT,
17806         ELM_ACTIONSLIDER_LABEL_CENTER,
17807         ELM_ACTIONSLIDER_LABEL_BUTTON
17808      } Elm_Actionslider_Label_Pos;
17809
17810    /* smart callbacks called:
17811     * "indicator,position" - when a button reaches to the special position like "left", "right" and "center".
17812     */
17813
17814    /**
17815     * Add a new actionslider to the parent.
17816     *
17817     * @param parent The parent object
17818     * @return The new actionslider object or NULL if it cannot be created
17819     */
17820    EAPI Evas_Object          *elm_actionslider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
17821
17822    /**
17823    * Set actionslider label.
17824    *
17825    * @param[in] obj The actionslider object
17826    * @param[in] pos The position of the label.
17827    * (ELM_ACTIONSLIDER_LABEL_LEFT, ELM_ACTIONSLIDER_LABEL_RIGHT)
17828    * @param label The label which is going to be set.
17829    */
17830    EAPI void               elm_actionslider_label_set(Evas_Object *obj, Elm_Actionslider_Label_Pos pos, const char *label) EINA_ARG_NONNULL(1);
17831    /**
17832     * Get actionslider labels.
17833     *
17834     * @param obj The actionslider object
17835     * @param left_label A char** to place the left_label of @p obj into.
17836     * @param center_label A char** to place the center_label of @p obj into.
17837     * @param right_label A char** to place the right_label of @p obj into.
17838     */
17839    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);
17840    /**
17841     * Get actionslider selected label.
17842     *
17843     * @param obj The actionslider object
17844     * @return The selected label
17845     */
17846    EAPI const char           *elm_actionslider_selected_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17847    /**
17848     * Set actionslider indicator position.
17849     *
17850     * @param obj The actionslider object.
17851     * @param pos The position of the indicator.
17852     */
17853    EAPI void                elm_actionslider_indicator_pos_set(Evas_Object *obj, Elm_Actionslider_Indicator_Pos pos) EINA_ARG_NONNULL(1);
17854    /**
17855     * Get actionslider indicator position.
17856     *
17857     * @param obj The actionslider object.
17858     * @return The position of the indicator.
17859     */
17860    EAPI Elm_Actionslider_Indicator_Pos  elm_actionslider_indicator_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17861    /**
17862     * Set actionslider magnet position. To make multiple positions magnets @c or
17863     * them together(e.g.: ELM_ACTIONSLIDER_MAGNET_LEFT | ELM_ACTIONSLIDER_MAGNET_RIGHT)
17864     *
17865     * @param obj The actionslider object.
17866     * @param pos Bit mask indicating the magnet positions.
17867     */
17868    EAPI void                elm_actionslider_magnet_pos_set(Evas_Object *obj, Elm_Actionslider_Magnet_Pos pos) EINA_ARG_NONNULL(1);
17869    /**
17870     * Get actionslider magnet position.
17871     *
17872     * @param obj The actionslider object.
17873     * @return The positions with magnet property.
17874     */
17875    EAPI Elm_Actionslider_Magnet_Pos  elm_actionslider_magnet_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17876    /**
17877     * Set actionslider enabled position. To set multiple positions as enabled @c or
17878     * them together(e.g.: ELM_ACTIONSLIDER_MAGNET_LEFT | ELM_ACTIONSLIDER_MAGNET_RIGHT).
17879     *
17880     * @note All the positions are enabled by default.
17881     *
17882     * @param obj The actionslider object.
17883     * @param pos Bit mask indicating the enabled positions.
17884     */
17885    EAPI void                  elm_actionslider_enabled_pos_set(Evas_Object *obj, Elm_Actionslider_Magnet_Pos pos) EINA_ARG_NONNULL(1);
17886    /**
17887     * Get actionslider enabled position.
17888     *
17889     * @param obj The actionslider object.
17890     * @return The enabled positions.
17891     */
17892    EAPI Elm_Actionslider_Magnet_Pos  elm_actionslider_enabled_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17893    /**
17894     * Set the label used on the indicator.
17895     *
17896     * @param obj The actionslider object
17897     * @param label The label to be set on the indicator.
17898     * @deprecated use elm_object_text_set() instead.
17899     */
17900    EINA_DEPRECATED EAPI void                  elm_actionslider_indicator_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
17901    /**
17902     * Get the label used on the indicator object.
17903     *
17904     * @param obj The actionslider object
17905     * @return The indicator label
17906     * @deprecated use elm_object_text_get() instead.
17907     */
17908    EINA_DEPRECATED EAPI const char           *elm_actionslider_indicator_label_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
17909    /**
17910     * @}
17911     */
17912
17913    /**
17914     * @defgroup Genlist Genlist
17915     *
17916     * @image html img/widget/genlist/preview-00.png
17917     * @image latex img/widget/genlist/preview-00.eps
17918     * @image html img/genlist.png
17919     * @image latex img/genlist.eps
17920     *
17921     * This widget aims to have more expansive list than the simple list in
17922     * Elementary that could have more flexible items and allow many more entries
17923     * while still being fast and low on memory usage. At the same time it was
17924     * also made to be able to do tree structures. But the price to pay is more
17925     * complexity when it comes to usage. If all you want is a simple list with
17926     * icons and a single label, use the normal @ref List object.
17927     *
17928     * Genlist has a fairly large API, mostly because it's relatively complex,
17929     * trying to be both expansive, powerful and efficient. First we will begin
17930     * an overview on the theory behind genlist.
17931     *
17932     * @section Genlist_Item_Class Genlist item classes - creating items
17933     *
17934     * In order to have the ability to add and delete items on the fly, genlist
17935     * implements a class (callback) system where the application provides a
17936     * structure with information about that type of item (genlist may contain
17937     * multiple different items with different classes, states and styles).
17938     * Genlist will call the functions in this struct (methods) when an item is
17939     * "realized" (i.e., created dynamically, while the user is scrolling the
17940     * grid). All objects will simply be deleted when no longer needed with
17941     * evas_object_del(). The #Elm_Genlist_Item_Class structure contains the
17942     * following members:
17943     * - @c item_style - This is a constant string and simply defines the name
17944     *   of the item style. It @b must be specified and the default should be @c
17945     *   "default".
17946     *
17947     * - @c func - A struct with pointers to functions that will be called when
17948     *   an item is going to be actually created. All of them receive a @c data
17949     *   parameter that will point to the same data passed to
17950     *   elm_genlist_item_append() and related item creation functions, and a @c
17951     *   obj parameter that points to the genlist object itself.
17952     *
17953     * The function pointers inside @c func are @c label_get, @c icon_get, @c
17954     * state_get and @c del. The 3 first functions also receive a @c part
17955     * parameter described below. A brief description of these functions follows:
17956     *
17957     * - @c label_get - The @c part parameter is the name string of one of the
17958     *   existing text parts in the Edje group implementing the item's theme.
17959     *   This function @b must return a strdup'()ed string, as the caller will
17960     *   free() it when done. See #Elm_Genlist_Item_Label_Get_Cb.
17961     * - @c content_get - The @c part parameter is the name string of one of the
17962     *   existing (content) swallow parts in the Edje group implementing the item's
17963     *   theme. It must return @c NULL, when no content is desired, or a valid
17964     *   object handle, otherwise.  The object will be deleted by the genlist on
17965     *   its deletion or when the item is "unrealized".  See
17966     *   #Elm_Genlist_Item_Icon_Get_Cb.
17967     * - @c func.state_get - The @c part parameter is the name string of one of
17968     *   the state parts in the Edje group implementing the item's theme. Return
17969     *   @c EINA_FALSE for false/off or @c EINA_TRUE for true/on. Genlists will
17970     *   emit a signal to its theming Edje object with @c "elm,state,XXX,active"
17971     *   and @c "elm" as "emission" and "source" arguments, respectively, when
17972     *   the state is true (the default is false), where @c XXX is the name of
17973     *   the (state) part.  See #Elm_Genlist_Item_State_Get_Cb.
17974     * - @c func.del - This is intended for use when genlist items are deleted,
17975     *   so any data attached to the item (e.g. its data parameter on creation)
17976     *   can be deleted. See #Elm_Genlist_Item_Del_Cb.
17977     *
17978     * available item styles:
17979     * - default
17980     * - default_style - The text part is a textblock
17981     *
17982     * @image html img/widget/genlist/preview-04.png
17983     * @image latex img/widget/genlist/preview-04.eps
17984     *
17985     * - double_label
17986     *
17987     * @image html img/widget/genlist/preview-01.png
17988     * @image latex img/widget/genlist/preview-01.eps
17989     *
17990     * - icon_top_text_bottom
17991     *
17992     * @image html img/widget/genlist/preview-02.png
17993     * @image latex img/widget/genlist/preview-02.eps
17994     *
17995     * - group_index
17996     *
17997     * @image html img/widget/genlist/preview-03.png
17998     * @image latex img/widget/genlist/preview-03.eps
17999     *
18000     * @section Genlist_Items Structure of items
18001     *
18002     * An item in a genlist can have 0 or more text labels (they can be regular
18003     * text or textblock Evas objects - that's up to the style to determine), 0
18004     * or more contents (which are simply objects swallowed into the genlist item's
18005     * theming Edje object) and 0 or more <b>boolean states</b>, which have the
18006     * behavior left to the user to define. The Edje part names for each of
18007     * these properties will be looked up, in the theme file for the genlist,
18008     * under the Edje (string) data items named @c "labels", @c "contents" and @c
18009     * "states", respectively. For each of those properties, if more than one
18010     * part is provided, they must have names listed separated by spaces in the
18011     * data fields. For the default genlist item theme, we have @b one label
18012     * part (@c "elm.text"), @b two content parts (@c "elm.swalllow.icon" and @c
18013     * "elm.swallow.end") and @b no state parts.
18014     *
18015     * A genlist item may be at one of several styles. Elementary provides one
18016     * by default - "default", but this can be extended by system or application
18017     * custom themes/overlays/extensions (see @ref Theme "themes" for more
18018     * details).
18019     *
18020     * @section Genlist_Manipulation Editing and Navigating
18021     *
18022     * Items can be added by several calls. All of them return a @ref
18023     * Elm_Genlist_Item handle that is an internal member inside the genlist.
18024     * They all take a data parameter that is meant to be used for a handle to
18025     * the applications internal data (eg the struct with the original item
18026     * data). The parent parameter is the parent genlist item this belongs to if
18027     * it is a tree or an indexed group, and NULL if there is no parent. The
18028     * flags can be a bitmask of #ELM_GENLIST_ITEM_NONE,
18029     * #ELM_GENLIST_ITEM_SUBITEMS and #ELM_GENLIST_ITEM_GROUP. If
18030     * #ELM_GENLIST_ITEM_SUBITEMS is set then this item is displayed as an item
18031     * that is able to expand and have child items.  If ELM_GENLIST_ITEM_GROUP
18032     * is set then this item is group index item that is displayed at the top
18033     * until the next group comes. The func parameter is a convenience callback
18034     * that is called when the item is selected and the data parameter will be
18035     * the func_data parameter, obj be the genlist object and event_info will be
18036     * the genlist item.
18037     *
18038     * elm_genlist_item_append() adds an item to the end of the list, or if
18039     * there is a parent, to the end of all the child items of the parent.
18040     * elm_genlist_item_prepend() is the same but adds to the beginning of
18041     * the list or children list. elm_genlist_item_insert_before() inserts at
18042     * item before another item and elm_genlist_item_insert_after() inserts after
18043     * the indicated item.
18044     *
18045     * The application can clear the list with elm_gen_clear() which deletes
18046     * all the items in the list and elm_genlist_item_del() will delete a specific
18047     * item. elm_genlist_item_subitems_clear() will clear all items that are
18048     * children of the indicated parent item.
18049     *
18050     * To help inspect list items you can jump to the item at the top of the list
18051     * with elm_genlist_first_item_get() which will return the item pointer, and
18052     * similarly elm_genlist_last_item_get() gets the item at the end of the list.
18053     * elm_genlist_item_next_get() and elm_genlist_item_prev_get() get the next
18054     * and previous items respectively relative to the indicated item. Using
18055     * these calls you can walk the entire item list/tree. Note that as a tree
18056     * the items are flattened in the list, so elm_genlist_item_parent_get() will
18057     * let you know which item is the parent (and thus know how to skip them if
18058     * wanted).
18059     *
18060     * @section Genlist_Muti_Selection Multi-selection
18061     *
18062     * If the application wants multiple items to be able to be selected,
18063     * elm_genlist_multi_select_set() can enable this. If the list is
18064     * single-selection only (the default), then elm_genlist_selected_item_get()
18065     * will return the selected item, if any, or NULL I none is selected. If the
18066     * list is multi-select then elm_genlist_selected_items_get() will return a
18067     * list (that is only valid as long as no items are modified (added, deleted,
18068     * selected or unselected)).
18069     *
18070     * @section Genlist_Usage_Hints Usage hints
18071     *
18072     * There are also convenience functions. elm_gen_item_genlist_get() will
18073     * return the genlist object the item belongs to. elm_genlist_item_show()
18074     * will make the scroller scroll to show that specific item so its visible.
18075     * elm_genlist_item_data_get() returns the data pointer set by the item
18076     * creation functions.
18077     *
18078     * If an item changes (state of boolean changes, label or contents change),
18079     * then use elm_genlist_item_update() to have genlist update the item with
18080     * the new state. Genlist will re-realize the item thus call the functions
18081     * in the _Elm_Genlist_Item_Class for that item.
18082     *
18083     * To programmatically (un)select an item use elm_genlist_item_selected_set().
18084     * To get its selected state use elm_genlist_item_selected_get(). Similarly
18085     * to expand/contract an item and get its expanded state, use
18086     * elm_genlist_item_expanded_set() and elm_genlist_item_expanded_get(). And
18087     * again to make an item disabled (unable to be selected and appear
18088     * differently) use elm_genlist_item_disabled_set() to set this and
18089     * elm_genlist_item_disabled_get() to get the disabled state.
18090     *
18091     * In general to indicate how the genlist should expand items horizontally to
18092     * fill the list area, use elm_genlist_horizontal_set(). Valid modes are
18093     * ELM_LIST_LIMIT and ELM_LIST_SCROLL. The default is ELM_LIST_SCROLL. This
18094     * mode means that if items are too wide to fit, the scroller will scroll
18095     * horizontally. Otherwise items are expanded to fill the width of the
18096     * viewport of the scroller. If it is ELM_LIST_LIMIT, items will be expanded
18097     * to the viewport width and limited to that size. This can be combined with
18098     * a different style that uses edjes' ellipsis feature (cutting text off like
18099     * this: "tex...").
18100     *
18101     * Items will only call their selection func and callback when first becoming
18102     * selected. Any further clicks will do nothing, unless you enable always
18103     * select with elm_gen_always_select_mode_set(). This means even if
18104     * selected, every click will make the selected callbacks be called.
18105     * elm_genlist_no_select_mode_set() will turn off the ability to select
18106     * items entirely and they will neither appear selected nor call selected
18107     * callback functions.
18108     *
18109     * Remember that you can create new styles and add your own theme augmentation
18110     * per application with elm_theme_extension_add(). If you absolutely must
18111     * have a specific style that overrides any theme the user or system sets up
18112     * you can use elm_theme_overlay_add() to add such a file.
18113     *
18114     * @section Genlist_Implementation Implementation
18115     *
18116     * Evas tracks every object you create. Every time it processes an event
18117     * (mouse move, down, up etc.) it needs to walk through objects and find out
18118     * what event that affects. Even worse every time it renders display updates,
18119     * in order to just calculate what to re-draw, it needs to walk through many
18120     * many many objects. Thus, the more objects you keep active, the more
18121     * overhead Evas has in just doing its work. It is advisable to keep your
18122     * active objects to the minimum working set you need. Also remember that
18123     * object creation and deletion carries an overhead, so there is a
18124     * middle-ground, which is not easily determined. But don't keep massive lists
18125     * of objects you can't see or use. Genlist does this with list objects. It
18126     * creates and destroys them dynamically as you scroll around. It groups them
18127     * into blocks so it can determine the visibility etc. of a whole block at
18128     * once as opposed to having to walk the whole list. This 2-level list allows
18129     * for very large numbers of items to be in the list (tests have used up to
18130     * 2,000,000 items). Also genlist employs a queue for adding items. As items
18131     * may be different sizes, every item added needs to be calculated as to its
18132     * size and thus this presents a lot of overhead on populating the list, this
18133     * genlist employs a queue. Any item added is queued and spooled off over
18134     * time, actually appearing some time later, so if your list has many members
18135     * you may find it takes a while for them to all appear, with your process
18136     * consuming a lot of CPU while it is busy spooling.
18137     *
18138     * Genlist also implements a tree structure, but it does so with callbacks to
18139     * the application, with the application filling in tree structures when
18140     * requested (allowing for efficient building of a very deep tree that could
18141     * even be used for file-management). See the above smart signal callbacks for
18142     * details.
18143     *
18144     * @section Genlist_Smart_Events Genlist smart events
18145     *
18146     * Signals that you can add callbacks for are:
18147     * - @c "activated" - The user has double-clicked or pressed
18148     *   (enter|return|spacebar) on an item. The @c event_info parameter is the
18149     *   item that was activated.
18150     * - @c "clicked,double" - The user has double-clicked an item.  The @c
18151     *   event_info parameter is the item that was double-clicked.
18152     * - @c "selected" - This is called when a user has made an item selected.
18153     *   The event_info parameter is the genlist item that was selected.
18154     * - @c "unselected" - This is called when a user has made an item
18155     *   unselected. The event_info parameter is the genlist item that was
18156     *   unselected.
18157     * - @c "expanded" - This is called when elm_genlist_item_expanded_set() is
18158     *   called and the item is now meant to be expanded. The event_info
18159     *   parameter is the genlist item that was indicated to expand.  It is the
18160     *   job of this callback to then fill in the child items.
18161     * - @c "contracted" - This is called when elm_genlist_item_expanded_set() is
18162     *   called and the item is now meant to be contracted. The event_info
18163     *   parameter is the genlist item that was indicated to contract. It is the
18164     *   job of this callback to then delete the child items.
18165     * - @c "expand,request" - This is called when a user has indicated they want
18166     *   to expand a tree branch item. The callback should decide if the item can
18167     *   expand (has any children) and then call elm_genlist_item_expanded_set()
18168     *   appropriately to set the state. The event_info parameter is the genlist
18169     *   item that was indicated to expand.
18170     * - @c "contract,request" - This is called when a user has indicated they
18171     *   want to contract a tree branch item. The callback should decide if the
18172     *   item can contract (has any children) and then call
18173     *   elm_genlist_item_expanded_set() appropriately to set the state. The
18174     *   event_info parameter is the genlist item that was indicated to contract.
18175     * - @c "realized" - This is called when the item in the list is created as a
18176     *   real evas object. event_info parameter is the genlist item that was
18177     *   created. The object may be deleted at any time, so it is up to the
18178     *   caller to not use the object pointer from elm_genlist_item_object_get()
18179     *   in a way where it may point to freed objects.
18180     * - @c "unrealized" - This is called just before an item is unrealized.
18181     *   After this call content objects provided will be deleted and the item
18182     *   object itself delete or be put into a floating cache.
18183     * - @c "drag,start,up" - This is called when the item in the list has been
18184     *   dragged (not scrolled) up.
18185     * - @c "drag,start,down" - This is called when the item in the list has been
18186     *   dragged (not scrolled) down.
18187     * - @c "drag,start,left" - This is called when the item in the list has been
18188     *   dragged (not scrolled) left.
18189     * - @c "drag,start,right" - This is called when the item in the list has
18190     *   been dragged (not scrolled) right.
18191     * - @c "drag,stop" - This is called when the item in the list has stopped
18192     *   being dragged.
18193     * - @c "drag" - This is called when the item in the list is being dragged.
18194     * - @c "longpressed" - This is called when the item is pressed for a certain
18195     *   amount of time. By default it's 1 second.
18196     * - @c "scroll,anim,start" - This is called when scrolling animation has
18197     *   started.
18198     * - @c "scroll,anim,stop" - This is called when scrolling animation has
18199     *   stopped.
18200     * - @c "scroll,drag,start" - This is called when dragging the content has
18201     *   started.
18202     * - @c "scroll,drag,stop" - This is called when dragging the content has
18203     *   stopped.
18204     * - @c "edge,top" - This is called when the genlist is scrolled until
18205     *   the top edge.
18206     * - @c "edge,bottom" - This is called when the genlist is scrolled
18207     *   until the bottom edge.
18208     * - @c "edge,left" - This is called when the genlist is scrolled
18209     *   until the left edge.
18210     * - @c "edge,right" - This is called when the genlist is scrolled
18211     *   until the right edge.
18212     * - @c "multi,swipe,left" - This is called when the genlist is multi-touch
18213     *   swiped left.
18214     * - @c "multi,swipe,right" - This is called when the genlist is multi-touch
18215     *   swiped right.
18216     * - @c "multi,swipe,up" - This is called when the genlist is multi-touch
18217     *   swiped up.
18218     * - @c "multi,swipe,down" - This is called when the genlist is multi-touch
18219     *   swiped down.
18220     * - @c "multi,pinch,out" - This is called when the genlist is multi-touch
18221     *   pinched out.  "- @c multi,pinch,in" - This is called when the genlist is
18222     *   multi-touch pinched in.
18223     * - @c "swipe" - This is called when the genlist is swiped.
18224     * - @c "moved" - This is called when a genlist item is moved.
18225     * - @c "language,changed" - This is called when the program's language is
18226     *   changed.
18227     *
18228     * @section Genlist_Examples Examples
18229     *
18230     * Here is a list of examples that use the genlist, trying to show some of
18231     * its capabilities:
18232     * - @ref genlist_example_01
18233     * - @ref genlist_example_02
18234     * - @ref genlist_example_03
18235     * - @ref genlist_example_04
18236     * - @ref genlist_example_05
18237     */
18238
18239    /**
18240     * @addtogroup Genlist
18241     * @{
18242     */
18243
18244    /**
18245     * @enum _Elm_Genlist_Item_Flags
18246     * @typedef Elm_Genlist_Item_Flags
18247     *
18248     * Defines if the item is of any special type (has subitems or it's the
18249     * index of a group), or is just a simple item.
18250     *
18251     * @ingroup Genlist
18252     */
18253    typedef enum _Elm_Genlist_Item_Flags
18254      {
18255         ELM_GENLIST_ITEM_NONE = 0, /**< simple item */
18256         ELM_GENLIST_ITEM_SUBITEMS = (1 << 0), /**< may expand and have child items */
18257         ELM_GENLIST_ITEM_GROUP = (1 << 1) /**< index of a group of items */
18258      } Elm_Genlist_Item_Flags;
18259    typedef enum _Elm_Genlist_Item_Field_Flags
18260      {
18261         ELM_GENLIST_ITEM_FIELD_ALL = 0,
18262         ELM_GENLIST_ITEM_FIELD_LABEL = (1 << 0),
18263         ELM_GENLIST_ITEM_FIELD_ICON = (1 << 1),
18264         ELM_GENLIST_ITEM_FIELD_STATE = (1 << 2)
18265      } Elm_Genlist_Item_Field_Flags;
18266    typedef struct _Elm_Genlist_Item_Class Elm_Genlist_Item_Class;  /**< Genlist item class definition structs */
18267    typedef struct _Elm_Genlist_Item       Elm_Genlist_Item; /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
18268    typedef struct _Elm_Genlist_Item_Class_Func Elm_Genlist_Item_Class_Func;
18269    typedef char        *(*GenlistItemLabelGetFunc) (void *data, Evas_Object *obj, const char *part);
18270    typedef Evas_Object *(*GenlistItemIconGetFunc)  (void *data, Evas_Object *obj, const char *part);
18271    typedef Eina_Bool    (*GenlistItemStateGetFunc) (void *data, Evas_Object *obj, const char *part);
18272    typedef void         (*GenlistItemDelFunc)      (void *data, Evas_Object *obj);
18273    typedef void         (*GenlistItemMovedFunc)    ( Evas_Object *genlist, Elm_Genlist_Item *item, Elm_Genlist_Item *rel_item, Eina_Bool move_after);
18274
18275    /**
18276     * @struct _Elm_Genlist_Item_Class
18277     *
18278     * Genlist item class definition structs.
18279     *
18280     * This struct contains the style and fetching functions that will define the
18281     * contents of each item.
18282     *
18283     * @see @ref Genlist_Item_Class
18284     */
18285    struct _Elm_Genlist_Item_Class
18286      {
18287         const char                *item_style;
18288         struct {
18289           GenlistItemLabelGetFunc  label_get;
18290           GenlistItemIconGetFunc   icon_get;
18291           GenlistItemStateGetFunc  state_get;
18292           GenlistItemDelFunc       del;
18293           GenlistItemMovedFunc     moved;
18294         } func;
18295         const char *edit_item_style;
18296         const char                *mode_item_style;
18297      };
18298    #define Elm_Genlist_Item_Class_Func Elm_Gen_Item_Class_Func
18299    /**
18300     * Add a new genlist widget to the given parent Elementary
18301     * (container) object
18302     *
18303     * @param parent The parent object
18304     * @return a new genlist widget handle or @c NULL, on errors
18305     *
18306     * This function inserts a new genlist widget on the canvas.
18307     *
18308     * @see elm_genlist_item_append()
18309     * @see elm_genlist_item_del()
18310     * @see elm_gen_clear()
18311     *
18312     * @ingroup Genlist
18313     */
18314    EAPI Evas_Object      *elm_genlist_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18315    /**
18316     * Remove all items from a given genlist widget.
18317     *
18318     * @param obj The genlist object
18319     *
18320     * This removes (and deletes) all items in @p obj, leaving it empty.
18321     *
18322     * @see elm_genlist_item_del(), to remove just one item.
18323     *
18324     * @ingroup Genlist
18325     */
18326    EAPI void elm_genlist_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
18327    /**
18328     * Enable or disable multi-selection in the genlist
18329     *
18330     * @param obj The genlist object
18331     * @param multi Multi-select enable/disable. Default is disabled.
18332     *
18333     * This enables (@c EINA_TRUE) or disables (@c EINA_FALSE) multi-selection in
18334     * the list. This allows more than 1 item to be selected. To retrieve the list
18335     * of selected items, use elm_genlist_selected_items_get().
18336     *
18337     * @see elm_genlist_selected_items_get()
18338     * @see elm_genlist_multi_select_get()
18339     *
18340     * @ingroup Genlist
18341     */
18342    EAPI void              elm_genlist_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
18343    /**
18344     * Gets if multi-selection in genlist is enabled or disabled.
18345     *
18346     * @param obj The genlist object
18347     * @return Multi-select enabled/disabled
18348     * (@c EINA_TRUE = enabled/@c EINA_FALSE = disabled). Default is @c EINA_FALSE.
18349     *
18350     * @see elm_genlist_multi_select_set()
18351     *
18352     * @ingroup Genlist
18353     */
18354    EAPI Eina_Bool         elm_genlist_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18355    /**
18356     * This sets the horizontal stretching mode.
18357     *
18358     * @param obj The genlist object
18359     * @param mode The mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).
18360     *
18361     * This sets the mode used for sizing items horizontally. Valid modes
18362     * are #ELM_LIST_LIMIT and #ELM_LIST_SCROLL. The default is
18363     * ELM_LIST_SCROLL. This mode means that if items are too wide to fit,
18364     * the scroller will scroll horizontally. Otherwise items are expanded
18365     * to fill the width of the viewport of the scroller. If it is
18366     * ELM_LIST_LIMIT, items will be expanded to the viewport width and
18367     * limited to that size.
18368     *
18369     * @see elm_genlist_horizontal_get()
18370     *
18371     * @ingroup Genlist
18372     */
18373    EAPI void              elm_genlist_horizontal_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
18374    /**
18375     * Gets the horizontal stretching mode.
18376     *
18377     * @param obj The genlist object
18378     * @return The mode to use
18379     * (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL)
18380     *
18381     * @see elm_genlist_horizontal_set()
18382     *
18383     * @ingroup Genlist
18384     */
18385    EAPI Elm_List_Mode     elm_genlist_horizontal_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18386    /**
18387     * Set the always select mode.
18388     *
18389     * @param obj The genlist object
18390     * @param always_select The always select mode (@c EINA_TRUE = on, @c
18391     * EINA_FALSE = off). Default is @c EINA_FALSE.
18392     *
18393     * Items will only call their selection func and callback when first
18394     * becoming selected. Any further clicks will do nothing, unless you
18395     * enable always select with elm_genlist_always_select_mode_set().
18396     * This means that, even if selected, every click will make the selected
18397     * callbacks be called.
18398     *
18399     * @see elm_genlist_always_select_mode_get()
18400     *
18401     * @ingroup Genlist
18402     */
18403    EAPI void              elm_genlist_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
18404    /**
18405     * Get the always select mode.
18406     *
18407     * @param obj The genlist object
18408     * @return The always select mode
18409     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
18410     *
18411     * @see elm_genlist_always_select_mode_set()
18412     *
18413     * @ingroup Genlist
18414     */
18415    EAPI Eina_Bool         elm_genlist_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18416    /**
18417     * Enable/disable the no select mode.
18418     *
18419     * @param obj The genlist object
18420     * @param no_select The no select mode
18421     * (EINA_TRUE = on, EINA_FALSE = off)
18422     *
18423     * This will turn off the ability to select items entirely and they
18424     * will neither appear selected nor call selected callback functions.
18425     *
18426     * @see elm_genlist_no_select_mode_get()
18427     *
18428     * @ingroup Genlist
18429     */
18430    EAPI void              elm_genlist_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
18431    /**
18432     * Gets whether the no select mode is enabled.
18433     *
18434     * @param obj The genlist object
18435     * @return The no select mode
18436     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
18437     *
18438     * @see elm_genlist_no_select_mode_set()
18439     *
18440     * @ingroup Genlist
18441     */
18442    EAPI Eina_Bool         elm_genlist_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18443    /**
18444     * Enable/disable compress mode.
18445     *
18446     * @param obj The genlist object
18447     * @param compress The compress mode
18448     * (@c EINA_TRUE = on, @c EINA_FALSE = off). Default is @c EINA_FALSE.
18449     *
18450     * This will enable the compress mode where items are "compressed"
18451     * horizontally to fit the genlist scrollable viewport width. This is
18452     * special for genlist.  Do not rely on
18453     * elm_genlist_horizontal_set() being set to @c ELM_LIST_COMPRESS to
18454     * work as genlist needs to handle it specially.
18455     *
18456     * @see elm_genlist_compress_mode_get()
18457     *
18458     * @ingroup Genlist
18459     */
18460    EAPI void              elm_genlist_compress_mode_set(Evas_Object *obj, Eina_Bool compress) EINA_ARG_NONNULL(1);
18461    /**
18462     * Get whether the compress mode is enabled.
18463     *
18464     * @param obj The genlist object
18465     * @return The compress mode
18466     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
18467     *
18468     * @see elm_genlist_compress_mode_set()
18469     *
18470     * @ingroup Genlist
18471     */
18472    EAPI Eina_Bool         elm_genlist_compress_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18473    /**
18474     * Enable/disable height-for-width mode.
18475     *
18476     * @param obj The genlist object
18477     * @param setting The height-for-width mode (@c EINA_TRUE = on,
18478     * @c EINA_FALSE = off). Default is @c EINA_FALSE.
18479     *
18480     * With height-for-width mode the item width will be fixed (restricted
18481     * to a minimum of) to the list width when calculating its size in
18482     * order to allow the height to be calculated based on it. This allows,
18483     * for instance, text block to wrap lines if the Edje part is
18484     * configured with "text.min: 0 1".
18485     *
18486     * @note This mode will make list resize slower as it will have to
18487     *       recalculate every item height again whenever the list width
18488     *       changes!
18489     *
18490     * @note When height-for-width mode is enabled, it also enables
18491     *       compress mode (see elm_genlist_compress_mode_set()) and
18492     *       disables homogeneous (see elm_genlist_homogeneous_set()).
18493     *
18494     * @ingroup Genlist
18495     */
18496    EAPI void              elm_genlist_height_for_width_mode_set(Evas_Object *obj, Eina_Bool height_for_width) EINA_ARG_NONNULL(1);
18497    /**
18498     * Get whether the height-for-width mode is enabled.
18499     *
18500     * @param obj The genlist object
18501     * @return The height-for-width mode (@c EINA_TRUE = on, @c EINA_FALSE =
18502     * off)
18503     *
18504     * @ingroup Genlist
18505     */
18506    EAPI Eina_Bool         elm_genlist_height_for_width_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18507    /**
18508     * Enable/disable horizontal and vertical bouncing effect.
18509     *
18510     * @param obj The genlist object
18511     * @param h_bounce Allow bounce horizontally (@c EINA_TRUE = on, @c
18512     * EINA_FALSE = off). Default is @c EINA_FALSE.
18513     * @param v_bounce Allow bounce vertically (@c EINA_TRUE = on, @c
18514     * EINA_FALSE = off). Default is @c EINA_TRUE.
18515     *
18516     * This will enable or disable the scroller bouncing effect for the
18517     * genlist. See elm_scroller_bounce_set() for details.
18518     *
18519     * @see elm_scroller_bounce_set()
18520     * @see elm_genlist_bounce_get()
18521     *
18522     * @ingroup Genlist
18523     */
18524    EAPI void              elm_genlist_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
18525    /**
18526     * Get whether the horizontal and vertical bouncing effect is enabled.
18527     *
18528     * @param obj The genlist object
18529     * @param h_bounce Pointer to a bool to receive if the bounce horizontally
18530     * option is set.
18531     * @param v_bounce Pointer to a bool to receive if the bounce vertically
18532     * option is set.
18533     *
18534     * @see elm_genlist_bounce_set()
18535     *
18536     * @ingroup Genlist
18537     */
18538    EAPI void              elm_genlist_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
18539    /**
18540     * Enable/disable homogenous mode.
18541     *
18542     * @param obj The genlist object
18543     * @param homogeneous Assume the items within the genlist are of the
18544     * same height and width (EINA_TRUE = on, EINA_FALSE = off). Default is @c
18545     * EINA_FALSE.
18546     *
18547     * This will enable the homogeneous mode where items are of the same
18548     * height and width so that genlist may do the lazy-loading at its
18549     * maximum (which increases the performance for scrolling the list). This
18550     * implies 'compressed' mode.
18551     *
18552     * @see elm_genlist_compress_mode_set()
18553     * @see elm_genlist_homogeneous_get()
18554     *
18555     * @ingroup Genlist
18556     */
18557    EAPI void              elm_genlist_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
18558    /**
18559     * Get whether the homogenous mode is enabled.
18560     *
18561     * @param obj The genlist object
18562     * @return Assume the items within the genlist are of the same height
18563     * and width (EINA_TRUE = on, EINA_FALSE = off)
18564     *
18565     * @see elm_genlist_homogeneous_set()
18566     *
18567     * @ingroup Genlist
18568     */
18569    EAPI Eina_Bool         elm_genlist_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18570    /**
18571     * Set the maximum number of items within an item block
18572     *
18573     * @param obj The genlist object
18574     * @param n   Maximum number of items within an item block. Default is 32.
18575     *
18576     * This will configure the block count to tune to the target with
18577     * particular performance matrix.
18578     *
18579     * A block of objects will be used to reduce the number of operations due to
18580     * many objects in the screen. It can determine the visibility, or if the
18581     * object has changed, it theme needs to be updated, etc. doing this kind of
18582     * calculation to the entire block, instead of per object.
18583     *
18584     * The default value for the block count is enough for most lists, so unless
18585     * you know you will have a lot of objects visible in the screen at the same
18586     * time, don't try to change this.
18587     *
18588     * @see elm_genlist_block_count_get()
18589     * @see @ref Genlist_Implementation
18590     *
18591     * @ingroup Genlist
18592     */
18593    EAPI void              elm_genlist_block_count_set(Evas_Object *obj, int n) EINA_ARG_NONNULL(1);
18594    /**
18595     * Get the maximum number of items within an item block
18596     *
18597     * @param obj The genlist object
18598     * @return Maximum number of items within an item block
18599     *
18600     * @see elm_genlist_block_count_set()
18601     *
18602     * @ingroup Genlist
18603     */
18604    EAPI int               elm_genlist_block_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18605    /**
18606     * Set the timeout in seconds for the longpress event.
18607     *
18608     * @param obj The genlist object
18609     * @param timeout timeout in seconds. Default is 1.
18610     *
18611     * This option will change how long it takes to send an event "longpressed"
18612     * after the mouse down signal is sent to the list. If this event occurs, no
18613     * "clicked" event will be sent.
18614     *
18615     * @see elm_genlist_longpress_timeout_set()
18616     *
18617     * @ingroup Genlist
18618     */
18619    EAPI void              elm_genlist_longpress_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
18620    /**
18621     * Get the timeout in seconds for the longpress event.
18622     *
18623     * @param obj The genlist object
18624     * @return timeout in seconds
18625     *
18626     * @see elm_genlist_longpress_timeout_get()
18627     *
18628     * @ingroup Genlist
18629     */
18630    EAPI double            elm_genlist_longpress_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18631    /**
18632     * Append a new item in a given genlist widget.
18633     *
18634     * @param obj The genlist object
18635     * @param itc The item class for the item
18636     * @param data The item data
18637     * @param parent The parent item, or NULL if none
18638     * @param flags Item flags
18639     * @param func Convenience function called when the item is selected
18640     * @param func_data Data passed to @p func above.
18641     * @return A handle to the item added or @c NULL if not possible
18642     *
18643     * This adds the given item to the end of the list or the end of
18644     * the children list if the @p parent is given.
18645     *
18646     * @see elm_genlist_item_prepend()
18647     * @see elm_genlist_item_insert_before()
18648     * @see elm_genlist_item_insert_after()
18649     * @see elm_genlist_item_del()
18650     *
18651     * @ingroup Genlist
18652     */
18653    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);
18654    /**
18655     * Prepend a new item in a given genlist widget.
18656     *
18657     * @param obj The genlist object
18658     * @param itc The item class for the item
18659     * @param data The item data
18660     * @param parent The parent item, or NULL if none
18661     * @param flags Item flags
18662     * @param func Convenience function called when the item is selected
18663     * @param func_data Data passed to @p func above.
18664     * @return A handle to the item added or NULL if not possible
18665     *
18666     * This adds an item to the beginning of the list or beginning of the
18667     * children of the parent if given.
18668     *
18669     * @see elm_genlist_item_append()
18670     * @see elm_genlist_item_insert_before()
18671     * @see elm_genlist_item_insert_after()
18672     * @see elm_genlist_item_del()
18673     *
18674     * @ingroup Genlist
18675     */
18676    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);
18677    /**
18678     * Insert an item before another in a genlist widget
18679     *
18680     * @param obj The genlist object
18681     * @param itc The item class for the item
18682     * @param data The item data
18683     * @param before The item to place this new one before.
18684     * @param flags Item flags
18685     * @param func Convenience function called when the item is selected
18686     * @param func_data Data passed to @p func above.
18687     * @return A handle to the item added or @c NULL if not possible
18688     *
18689     * This inserts an item before another in the list. It will be in the
18690     * same tree level or group as the item it is inserted before.
18691     *
18692     * @see elm_genlist_item_append()
18693     * @see elm_genlist_item_prepend()
18694     * @see elm_genlist_item_insert_after()
18695     * @see elm_genlist_item_del()
18696     *
18697     * @ingroup Genlist
18698     */
18699    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);
18700    /**
18701     * Insert an item after another in a genlist widget
18702     *
18703     * @param obj The genlist object
18704     * @param itc The item class for the item
18705     * @param data The item data
18706     * @param after The item to place this new one after.
18707     * @param flags Item flags
18708     * @param func Convenience function called when the item is selected
18709     * @param func_data Data passed to @p func above.
18710     * @return A handle to the item added or @c NULL if not possible
18711     *
18712     * This inserts an item after another in the list. It will be in the
18713     * same tree level or group as the item it is inserted after.
18714     *
18715     * @see elm_genlist_item_append()
18716     * @see elm_genlist_item_prepend()
18717     * @see elm_genlist_item_insert_before()
18718     * @see elm_genlist_item_del()
18719     *
18720     * @ingroup Genlist
18721     */
18722    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);
18723    /**
18724     * Insert a new item into the sorted genlist object
18725     *
18726     * @param obj The genlist object
18727     * @param itc The item class for the item
18728     * @param data The item data
18729     * @param parent The parent item, or NULL if none
18730     * @param flags Item flags
18731     * @param comp The function called for the sort
18732     * @param func Convenience function called when item selected
18733     * @param func_data Data passed to @p func above.
18734     * @return A handle to the item added or NULL if not possible
18735     *
18736     * @ingroup Genlist
18737     */
18738    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);
18739    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);
18740    /* operations to retrieve existing items */
18741    /**
18742     * Get the selectd item in the genlist.
18743     *
18744     * @param obj The genlist object
18745     * @return The selected item, or NULL if none is selected.
18746     *
18747     * This gets the selected item in the list (if multi-selection is enabled, only
18748     * the item that was first selected in the list is returned - which is not very
18749     * useful, so see elm_genlist_selected_items_get() for when multi-selection is
18750     * used).
18751     *
18752     * If no item is selected, NULL is returned.
18753     *
18754     * @see elm_genlist_selected_items_get()
18755     *
18756     * @ingroup Genlist
18757     */
18758    EAPI Elm_Genlist_Item *elm_genlist_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18759    /**
18760     * Get a list of selected items in the genlist.
18761     *
18762     * @param obj The genlist object
18763     * @return The list of selected items, or NULL if none are selected.
18764     *
18765     * It returns a list of the selected items. This list pointer is only valid so
18766     * long as the selection doesn't change (no items are selected or unselected, or
18767     * unselected implicitly by deletion). The list contains Elm_Genlist_Item
18768     * pointers. The order of the items in this list is the order which they were
18769     * selected, i.e. the first item in this list is the first item that was
18770     * selected, and so on.
18771     *
18772     * @note If not in multi-select mode, consider using function
18773     * elm_genlist_selected_item_get() instead.
18774     *
18775     * @see elm_genlist_multi_select_set()
18776     * @see elm_genlist_selected_item_get()
18777     *
18778     * @ingroup Genlist
18779     */
18780    EAPI const Eina_List  *elm_genlist_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18781    /**
18782     * Get the mode item style of items in the genlist
18783     * @param obj The genlist object
18784     * @return The mode item style string, or NULL if none is specified
18785     * 
18786     * This is a constant string and simply defines the name of the
18787     * style that will be used for mode animations. It can be
18788     * @c NULL if you don't plan to use Genlist mode. See
18789     * elm_genlist_item_mode_set() for more info.
18790     * 
18791     * @ingroup Genlist
18792     */
18793    EAPI const char       *elm_genlist_mode_item_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18794    /**
18795     * Set the mode item style of items in the genlist
18796     * @param obj The genlist object
18797     * @param style The mode item style string, or NULL if none is desired
18798     * 
18799     * This is a constant string and simply defines the name of the
18800     * style that will be used for mode animations. It can be
18801     * @c NULL if you don't plan to use Genlist mode. See
18802     * elm_genlist_item_mode_set() for more info.
18803     * 
18804     * @ingroup Genlist
18805     */
18806    EAPI void              elm_genlist_mode_item_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
18807    /**
18808     * Get a list of realized items in genlist
18809     *
18810     * @param obj The genlist object
18811     * @return The list of realized items, nor NULL if none are realized.
18812     *
18813     * This returns a list of the realized items in the genlist. The list
18814     * contains Elm_Genlist_Item pointers. The list must be freed by the
18815     * caller when done with eina_list_free(). The item pointers in the
18816     * list are only valid so long as those items are not deleted or the
18817     * genlist is not deleted.
18818     *
18819     * @see elm_genlist_realized_items_update()
18820     *
18821     * @ingroup Genlist
18822     */
18823    EAPI Eina_List        *elm_genlist_realized_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18824    /**
18825     * Get the item that is at the x, y canvas coords.
18826     *
18827     * @param obj The gelinst object.
18828     * @param x The input x coordinate
18829     * @param y The input y coordinate
18830     * @param posret The position relative to the item returned here
18831     * @return The item at the coordinates or NULL if none
18832     *
18833     * This returns the item at the given coordinates (which are canvas
18834     * relative, not object-relative). If an item is at that coordinate,
18835     * that item handle is returned, and if @p posret is not NULL, the
18836     * integer pointed to is set to a value of -1, 0 or 1, depending if
18837     * the coordinate is on the upper portion of that item (-1), on the
18838     * middle section (0) or on the lower part (1). If NULL is returned as
18839     * an item (no item found there), then posret may indicate -1 or 1
18840     * based if the coordinate is above or below all items respectively in
18841     * the genlist.
18842     *
18843     * @ingroup Genlist
18844     */
18845    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);
18846    /**
18847     * Get the first item in the genlist
18848     *
18849     * This returns the first item in the list.
18850     *
18851     * @param obj The genlist object
18852     * @return The first item, or NULL if none
18853     *
18854     * @ingroup Genlist
18855     */
18856    EAPI Elm_Genlist_Item *elm_genlist_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18857    /**
18858     * Get the last item in the genlist
18859     *
18860     * This returns the last item in the list.
18861     *
18862     * @return The last item, or NULL if none
18863     *
18864     * @ingroup Genlist
18865     */
18866    EAPI Elm_Genlist_Item *elm_genlist_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18867    /**
18868     * Set the scrollbar policy
18869     *
18870     * @param obj The genlist object
18871     * @param policy_h Horizontal scrollbar policy.
18872     * @param policy_v Vertical scrollbar policy.
18873     *
18874     * This sets the scrollbar visibility policy for the given genlist
18875     * scroller. #ELM_SMART_SCROLLER_POLICY_AUTO means the scrollbar is
18876     * made visible if it is needed, and otherwise kept hidden.
18877     * #ELM_SMART_SCROLLER_POLICY_ON turns it on all the time, and
18878     * #ELM_SMART_SCROLLER_POLICY_OFF always keeps it off. This applies
18879     * respectively for the horizontal and vertical scrollbars. Default is
18880     * #ELM_SMART_SCROLLER_POLICY_AUTO
18881     *
18882     * @see elm_genlist_scroller_policy_get()
18883     *
18884     * @ingroup Genlist
18885     */
18886    EAPI void              elm_genlist_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
18887    /**
18888     * Get the scrollbar policy
18889     *
18890     * @param obj The genlist object
18891     * @param policy_h Pointer to store the horizontal scrollbar policy.
18892     * @param policy_v Pointer to store the vertical scrollbar policy.
18893     *
18894     * @see elm_genlist_scroller_policy_set()
18895     *
18896     * @ingroup Genlist
18897     */
18898    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);
18899    /**
18900     * Get the @b next item in a genlist widget's internal list of items,
18901     * given a handle to one of those items.
18902     *
18903     * @param item The genlist item to fetch next from
18904     * @return The item after @p item, or @c NULL if there's none (and
18905     * on errors)
18906     *
18907     * This returns the item placed after the @p item, on the container
18908     * genlist.
18909     *
18910     * @see elm_genlist_item_prev_get()
18911     *
18912     * @ingroup Genlist
18913     */
18914    EAPI Elm_Genlist_Item  *elm_genlist_item_next_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18915    /**
18916     * Get the @b previous item in a genlist widget's internal list of items,
18917     * given a handle to one of those items.
18918     *
18919     * @param item The genlist item to fetch previous from
18920     * @return The item before @p item, or @c NULL if there's none (and
18921     * on errors)
18922     *
18923     * This returns the item placed before the @p item, on the container
18924     * genlist.
18925     *
18926     * @see elm_genlist_item_next_get()
18927     *
18928     * @ingroup Genlist
18929     */
18930    EAPI Elm_Genlist_Item  *elm_genlist_item_prev_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18931    /**
18932     * Get the genlist object's handle which contains a given genlist
18933     * item
18934     *
18935     * @param item The item to fetch the container from
18936     * @return The genlist (parent) object
18937     *
18938     * This returns the genlist object itself that an item belongs to.
18939     *
18940     * @ingroup Genlist
18941     */
18942    EAPI Evas_Object       *elm_genlist_item_genlist_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18943    /**
18944     * Get the parent item of the given item
18945     *
18946     * @param it The item
18947     * @return The parent of the item or @c NULL if it has no parent.
18948     *
18949     * This returns the item that was specified as parent of the item @p it on
18950     * elm_genlist_item_append() and insertion related functions.
18951     *
18952     * @ingroup Genlist
18953     */
18954    EAPI Elm_Genlist_Item  *elm_genlist_item_parent_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
18955    /**
18956     * Remove all sub-items (children) of the given item
18957     *
18958     * @param it The item
18959     *
18960     * This removes all items that are children (and their descendants) of the
18961     * given item @p it.
18962     *
18963     * @see elm_genlist_clear()
18964     * @see elm_genlist_item_del()
18965     *
18966     * @ingroup Genlist
18967     */
18968    EAPI void               elm_genlist_item_subitems_clear(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18969    /**
18970     * Set whether a given genlist item is selected or not
18971     *
18972     * @param it The item
18973     * @param selected Use @c EINA_TRUE, to make it selected, @c
18974     * EINA_FALSE to make it unselected
18975     *
18976     * This sets the selected state of an item. If multi selection is
18977     * not enabled on the containing genlist and @p selected is @c
18978     * EINA_TRUE, any other previously selected items will get
18979     * unselected in favor of this new one.
18980     *
18981     * @see elm_genlist_item_selected_get()
18982     *
18983     * @ingroup Genlist
18984     */
18985    EAPI void elm_genlist_item_selected_set(Elm_Genlist_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
18986    /**
18987     * Get whether a given genlist item is selected or not
18988     *
18989     * @param it The item
18990     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
18991     *
18992     * @see elm_genlist_item_selected_set() for more details
18993     *
18994     * @ingroup Genlist
18995     */
18996    EAPI Eina_Bool elm_genlist_item_selected_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18997    /**
18998     * Sets the expanded state of an item.
18999     *
19000     * @param it The item
19001     * @param expanded The expanded state (@c EINA_TRUE expanded, @c EINA_FALSE not expanded).
19002     *
19003     * This function flags the item of type #ELM_GENLIST_ITEM_SUBITEMS as
19004     * expanded or not.
19005     *
19006     * The theme will respond to this change visually, and a signal "expanded" or
19007     * "contracted" will be sent from the genlist with a pointer to the item that
19008     * has been expanded/contracted.
19009     *
19010     * Calling this function won't show or hide any child of this item (if it is
19011     * a parent). You must manually delete and create them on the callbacks fo
19012     * the "expanded" or "contracted" signals.
19013     *
19014     * @see elm_genlist_item_expanded_get()
19015     *
19016     * @ingroup Genlist
19017     */
19018    EAPI void               elm_genlist_item_expanded_set(Elm_Genlist_Item *item, Eina_Bool expanded) EINA_ARG_NONNULL(1);
19019    /**
19020     * Get the expanded state of an item
19021     *
19022     * @param it The item
19023     * @return The expanded state
19024     *
19025     * This gets the expanded state of an item.
19026     *
19027     * @see elm_genlist_item_expanded_set()
19028     *
19029     * @ingroup Genlist
19030     */
19031    EAPI Eina_Bool          elm_genlist_item_expanded_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19032    /**
19033     * Get the depth of expanded item
19034     *
19035     * @param it The genlist item object
19036     * @return The depth of expanded item
19037     *
19038     * @ingroup Genlist
19039     */
19040    EAPI int                elm_genlist_item_expanded_depth_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19041    /**
19042     * Set whether a given genlist item is disabled or not.
19043     *
19044     * @param it The item
19045     * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
19046     * to enable it back.
19047     *
19048     * A disabled item cannot be selected or unselected. It will also
19049     * change its appearance, to signal the user it's disabled.
19050     *
19051     * @see elm_genlist_item_disabled_get()
19052     *
19053     * @ingroup Genlist
19054     */
19055    EAPI void               elm_genlist_item_disabled_set(Elm_Genlist_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
19056    /**
19057     * Get whether a given genlist item is disabled or not.
19058     *
19059     * @param it The item
19060     * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
19061     * (and on errors).
19062     *
19063     * @see elm_genlist_item_disabled_set() for more details
19064     *
19065     * @ingroup Genlist
19066     */
19067    EAPI Eina_Bool          elm_genlist_item_disabled_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19068    /**
19069     * Sets the display only state of an item.
19070     *
19071     * @param it The item
19072     * @param display_only @c EINA_TRUE if the item is display only, @c
19073     * EINA_FALSE otherwise.
19074     *
19075     * A display only item cannot be selected or unselected. It is for
19076     * display only and not selecting or otherwise clicking, dragging
19077     * etc. by the user, thus finger size rules will not be applied to
19078     * this item.
19079     *
19080     * It's good to set group index items to display only state.
19081     *
19082     * @see elm_genlist_item_display_only_get()
19083     *
19084     * @ingroup Genlist
19085     */
19086    EAPI void               elm_genlist_item_display_only_set(Elm_Genlist_Item *it, Eina_Bool display_only) EINA_ARG_NONNULL(1);
19087    /**
19088     * Get the display only state of an item
19089     *
19090     * @param it The item
19091     * @return @c EINA_TRUE if the item is display only, @c
19092     * EINA_FALSE otherwise.
19093     *
19094     * @see elm_genlist_item_display_only_set()
19095     *
19096     * @ingroup Genlist
19097     */
19098    EAPI Eina_Bool          elm_genlist_item_display_only_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19099    /**
19100     * Show the portion of a genlist's internal list containing a given
19101     * item, immediately.
19102     *
19103     * @param it The item to display
19104     *
19105     * This causes genlist to jump to the given item @p it and show it (by
19106     * immediately scrolling to that position), if it is not fully visible.
19107     *
19108     * @see elm_genlist_item_bring_in()
19109     * @see elm_genlist_item_top_show()
19110     * @see elm_genlist_item_middle_show()
19111     *
19112     * @ingroup Genlist
19113     */
19114    EAPI void               elm_genlist_item_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19115    /**
19116     * Animatedly bring in, to the visible are of a genlist, a given
19117     * item on it.
19118     *
19119     * @param it The item to display
19120     *
19121     * This causes genlist to jump to the given item @p it and show it (by
19122     * animatedly scrolling), if it is not fully visible. This may use animation
19123     * to do so and take a period of time
19124     *
19125     * @see elm_genlist_item_show()
19126     * @see elm_genlist_item_top_bring_in()
19127     * @see elm_genlist_item_middle_bring_in()
19128     *
19129     * @ingroup Genlist
19130     */
19131    EAPI void               elm_genlist_item_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19132    /**
19133     * Show the portion of a genlist's internal list containing a given
19134     * item, immediately.
19135     *
19136     * @param it The item to display
19137     *
19138     * This causes genlist to jump to the given item @p it and show it (by
19139     * immediately scrolling to that position), if it is not fully visible.
19140     *
19141     * The item will be positioned at the top of the genlist viewport.
19142     *
19143     * @see elm_genlist_item_show()
19144     * @see elm_genlist_item_top_bring_in()
19145     *
19146     * @ingroup Genlist
19147     */
19148    EAPI void               elm_genlist_item_top_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19149    /**
19150     * Animatedly bring in, to the visible are of a genlist, a given
19151     * item on it.
19152     *
19153     * @param it The item
19154     *
19155     * This causes genlist to jump to the given item @p it and show it (by
19156     * animatedly scrolling), if it is not fully visible. This may use animation
19157     * to do so and take a period of time
19158     *
19159     * The item will be positioned at the top of the genlist viewport.
19160     *
19161     * @see elm_genlist_item_bring_in()
19162     * @see elm_genlist_item_top_show()
19163     *
19164     * @ingroup Genlist
19165     */
19166    EAPI void               elm_genlist_item_top_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19167    /**
19168     * Show the portion of a genlist's internal list containing a given
19169     * item, immediately.
19170     *
19171     * @param it The item to display
19172     *
19173     * This causes genlist to jump to the given item @p it and show it (by
19174     * immediately scrolling to that position), if it is not fully visible.
19175     *
19176     * The item will be positioned at the middle of the genlist viewport.
19177     *
19178     * @see elm_genlist_item_show()
19179     * @see elm_genlist_item_middle_bring_in()
19180     *
19181     * @ingroup Genlist
19182     */
19183    EAPI void               elm_genlist_item_middle_show(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19184    /**
19185     * Animatedly bring in, to the visible are of a genlist, a given
19186     * item on it.
19187     *
19188     * @param it The item
19189     *
19190     * This causes genlist to jump to the given item @p it and show it (by
19191     * animatedly scrolling), if it is not fully visible. This may use animation
19192     * to do so and take a period of time
19193     *
19194     * The item will be positioned at the middle of the genlist viewport.
19195     *
19196     * @see elm_genlist_item_bring_in()
19197     * @see elm_genlist_item_middle_show()
19198     *
19199     * @ingroup Genlist
19200     */
19201    EAPI void               elm_genlist_item_middle_bring_in(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19202    /**
19203     * Remove a genlist item from the its parent, deleting it.
19204     *
19205     * @param item The item to be removed.
19206     * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
19207     *
19208     * @see elm_genlist_clear(), to remove all items in a genlist at
19209     * once.
19210     *
19211     * @ingroup Genlist
19212     */
19213    EAPI void               elm_genlist_item_del(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19214    /**
19215     * Return the data associated to a given genlist item
19216     *
19217     * @param item The genlist item.
19218     * @return the data associated to this item.
19219     *
19220     * This returns the @c data value passed on the
19221     * elm_genlist_item_append() and related item addition calls.
19222     *
19223     * @see elm_genlist_item_append()
19224     * @see elm_genlist_item_data_set()
19225     *
19226     * @ingroup Genlist
19227     */
19228    EAPI void              *elm_genlist_item_data_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19229    /**
19230     * Set the data associated to a given genlist item
19231     *
19232     * @param item The genlist item
19233     * @param data The new data pointer to set on it
19234     *
19235     * This @b overrides the @c data value passed on the
19236     * elm_genlist_item_append() and related item addition calls. This
19237     * function @b won't call elm_genlist_item_update() automatically,
19238     * so you'd issue it afterwards if you want to hove the item
19239     * updated to reflect the that new data.
19240     *
19241     * @see elm_genlist_item_data_get()
19242     *
19243     * @ingroup Genlist
19244     */
19245    EAPI void               elm_genlist_item_data_set(Elm_Genlist_Item *it, const void *data) EINA_ARG_NONNULL(1);
19246    /**
19247     * Tells genlist to "orphan" icons fetchs by the item class
19248     *
19249     * @param it The item
19250     *
19251     * This instructs genlist to release references to icons in the item,
19252     * meaning that they will no longer be managed by genlist and are
19253     * floating "orphans" that can be re-used elsewhere if the user wants
19254     * to.
19255     *
19256     * @ingroup Genlist
19257     */
19258    EAPI void               elm_genlist_item_contents_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19259    EAPI void               elm_genlist_item_icons_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19260    /**
19261     * Get the real Evas object created to implement the view of a
19262     * given genlist item
19263     *
19264     * @param item The genlist item.
19265     * @return the Evas object implementing this item's view.
19266     *
19267     * This returns the actual Evas object used to implement the
19268     * specified genlist item's view. This may be @c NULL, as it may
19269     * not have been created or may have been deleted, at any time, by
19270     * the genlist. <b>Do not modify this object</b> (move, resize,
19271     * show, hide, etc.), as the genlist is controlling it. This
19272     * function is for querying, emitting custom signals or hooking
19273     * lower level callbacks for events on that object. Do not delete
19274     * this object under any circumstances.
19275     *
19276     * @see elm_genlist_item_data_get()
19277     *
19278     * @ingroup Genlist
19279     */
19280    EAPI const Evas_Object *elm_genlist_item_object_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19281    /**
19282     * Update the contents of an item
19283     *
19284     * @param it The item
19285     *
19286     * This updates an item by calling all the item class functions again
19287     * to get the icons, labels and states. Use this when the original
19288     * item data has changed and the changes are desired to be reflected.
19289     *
19290     * Use elm_genlist_realized_items_update() to update all already realized
19291     * items.
19292     *
19293     * @see elm_genlist_realized_items_update()
19294     *
19295     * @ingroup Genlist
19296     */
19297    EAPI void               elm_genlist_item_update(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19298    EAPI void               elm_genlist_item_fields_update(Elm_Genlist_Item *it, const char *parts, Elm_Genlist_Item_Field_Flags itf) EINA_ARG_NONNULL(1);
19299    /**
19300     * Update the item class of an item
19301     *
19302     * @param it The item
19303     * @param itc The item class for the item
19304     *
19305     * This sets another class fo the item, changing the way that it is
19306     * displayed. After changing the item class, elm_genlist_item_update() is
19307     * called on the item @p it.
19308     *
19309     * @ingroup Genlist
19310     */
19311    EAPI void               elm_genlist_item_item_class_update(Elm_Genlist_Item *it, const Elm_Genlist_Item_Class *itc) EINA_ARG_NONNULL(1, 2);
19312    EAPI const Elm_Genlist_Item_Class *elm_genlist_item_item_class_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19313    /**
19314     * Set the text to be shown in a given genlist item's tooltips.
19315     *
19316     * @param item The genlist item
19317     * @param text The text to set in the content
19318     *
19319     * This call will setup the text to be used as tooltip to that item
19320     * (analogous to elm_object_tooltip_text_set(), but being item
19321     * tooltips with higher precedence than object tooltips). It can
19322     * have only one tooltip at a time, so any previous tooltip data
19323     * will get removed.
19324     *
19325     * In order to set an icon or something else as a tooltip, look at
19326     * elm_genlist_item_tooltip_content_cb_set().
19327     *
19328     * @ingroup Genlist
19329     */
19330    EAPI void               elm_genlist_item_tooltip_text_set(Elm_Genlist_Item *item, const char *text) EINA_ARG_NONNULL(1);
19331    /**
19332     * Set the content to be shown in a given genlist item's tooltips
19333     *
19334     * @param item The genlist item.
19335     * @param func The function returning the tooltip contents.
19336     * @param data What to provide to @a func as callback data/context.
19337     * @param del_cb Called when data is not needed anymore, either when
19338     *        another callback replaces @p func, the tooltip is unset with
19339     *        elm_genlist_item_tooltip_unset() or the owner @p item
19340     *        dies. This callback receives as its first parameter the
19341     *        given @p data, being @c event_info the item handle.
19342     *
19343     * This call will setup the tooltip's contents to @p item
19344     * (analogous to elm_object_tooltip_content_cb_set(), but being
19345     * item tooltips with higher precedence than object tooltips). It
19346     * can have only one tooltip at a time, so any previous tooltip
19347     * content will get removed. @p func (with @p data) will be called
19348     * every time Elementary needs to show the tooltip and it should
19349     * return a valid Evas object, which will be fully managed by the
19350     * tooltip system, getting deleted when the tooltip is gone.
19351     *
19352     * In order to set just a text as a tooltip, look at
19353     * elm_genlist_item_tooltip_text_set().
19354     *
19355     * @ingroup Genlist
19356     */
19357    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);
19358    /**
19359     * Unset a tooltip from a given genlist item
19360     *
19361     * @param item genlist item to remove a previously set tooltip from.
19362     *
19363     * This call removes any tooltip set on @p item. The callback
19364     * provided as @c del_cb to
19365     * elm_genlist_item_tooltip_content_cb_set() will be called to
19366     * notify it is not used anymore (and have resources cleaned, if
19367     * need be).
19368     *
19369     * @see elm_genlist_item_tooltip_content_cb_set()
19370     *
19371     * @ingroup Genlist
19372     */
19373    EAPI void               elm_genlist_item_tooltip_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19374    /**
19375     * Set a different @b style for a given genlist item's tooltip.
19376     *
19377     * @param item genlist item with tooltip set
19378     * @param style the <b>theme style</b> to use on tooltips (e.g. @c
19379     * "default", @c "transparent", etc)
19380     *
19381     * Tooltips can have <b>alternate styles</b> to be displayed on,
19382     * which are defined by the theme set on Elementary. This function
19383     * works analogously as elm_object_tooltip_style_set(), but here
19384     * applied only to genlist item objects. The default style for
19385     * tooltips is @c "default".
19386     *
19387     * @note before you set a style you should define a tooltip with
19388     *       elm_genlist_item_tooltip_content_cb_set() or
19389     *       elm_genlist_item_tooltip_text_set()
19390     *
19391     * @see elm_genlist_item_tooltip_style_get()
19392     *
19393     * @ingroup Genlist
19394     */
19395    EAPI void               elm_genlist_item_tooltip_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
19396    /**
19397     * Get the style set a given genlist item's tooltip.
19398     *
19399     * @param item genlist item with tooltip already set on.
19400     * @return style the theme style in use, which defaults to
19401     *         "default". If the object does not have a tooltip set,
19402     *         then @c NULL is returned.
19403     *
19404     * @see elm_genlist_item_tooltip_style_set() for more details
19405     *
19406     * @ingroup Genlist
19407     */
19408    EAPI const char        *elm_genlist_item_tooltip_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19409    /**
19410     * Set the type of mouse pointer/cursor decoration to be shown,
19411     * when the mouse pointer is over the given genlist widget item
19412     *
19413     * @param item genlist item to customize cursor on
19414     * @param cursor the cursor type's name
19415     *
19416     * This function works analogously as elm_object_cursor_set(), but
19417     * here the cursor's changing area is restricted to the item's
19418     * area, and not the whole widget's. Note that that item cursors
19419     * have precedence over widget cursors, so that a mouse over @p
19420     * item will always show cursor @p type.
19421     *
19422     * If this function is called twice for an object, a previously set
19423     * cursor will be unset on the second call.
19424     *
19425     * @see elm_object_cursor_set()
19426     * @see elm_genlist_item_cursor_get()
19427     * @see elm_genlist_item_cursor_unset()
19428     *
19429     * @ingroup Genlist
19430     */
19431    EAPI void               elm_genlist_item_cursor_set(Elm_Genlist_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
19432    /**
19433     * Get the type of mouse pointer/cursor decoration set to be shown,
19434     * when the mouse pointer is over the given genlist widget item
19435     *
19436     * @param item genlist item with custom cursor set
19437     * @return the cursor type's name or @c NULL, if no custom cursors
19438     * were set to @p item (and on errors)
19439     *
19440     * @see elm_object_cursor_get()
19441     * @see elm_genlist_item_cursor_set() for more details
19442     * @see elm_genlist_item_cursor_unset()
19443     *
19444     * @ingroup Genlist
19445     */
19446    EAPI const char        *elm_genlist_item_cursor_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19447    /**
19448     * Unset any custom mouse pointer/cursor decoration set to be
19449     * shown, when the mouse pointer is over the given genlist widget
19450     * item, thus making it show the @b default cursor again.
19451     *
19452     * @param item a genlist item
19453     *
19454     * Use this call to undo any custom settings on this item's cursor
19455     * decoration, bringing it back to defaults (no custom style set).
19456     *
19457     * @see elm_object_cursor_unset()
19458     * @see elm_genlist_item_cursor_set() for more details
19459     *
19460     * @ingroup Genlist
19461     */
19462    EAPI void               elm_genlist_item_cursor_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19463    /**
19464     * Set a different @b style for a given custom cursor set for a
19465     * genlist item.
19466     *
19467     * @param item genlist item with custom cursor set
19468     * @param style the <b>theme style</b> to use (e.g. @c "default",
19469     * @c "transparent", etc)
19470     *
19471     * This function only makes sense when one is using custom mouse
19472     * cursor decorations <b>defined in a theme file</b> , which can
19473     * have, given a cursor name/type, <b>alternate styles</b> on
19474     * it. It works analogously as elm_object_cursor_style_set(), but
19475     * here applied only to genlist item objects.
19476     *
19477     * @warning Before you set a cursor style you should have defined a
19478     *       custom cursor previously on the item, with
19479     *       elm_genlist_item_cursor_set()
19480     *
19481     * @see elm_genlist_item_cursor_engine_only_set()
19482     * @see elm_genlist_item_cursor_style_get()
19483     *
19484     * @ingroup Genlist
19485     */
19486    EAPI void               elm_genlist_item_cursor_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
19487    /**
19488     * Get the current @b style set for a given genlist item's custom
19489     * cursor
19490     *
19491     * @param item genlist item with custom cursor set.
19492     * @return style the cursor style in use. If the object does not
19493     *         have a cursor set, then @c NULL is returned.
19494     *
19495     * @see elm_genlist_item_cursor_style_set() for more details
19496     *
19497     * @ingroup Genlist
19498     */
19499    EAPI const char        *elm_genlist_item_cursor_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19500    /**
19501     * Set if the (custom) cursor for a given genlist item should be
19502     * searched in its theme, also, or should only rely on the
19503     * rendering engine.
19504     *
19505     * @param item item with custom (custom) cursor already set on
19506     * @param engine_only Use @c EINA_TRUE to have cursors looked for
19507     * only on those provided by the rendering engine, @c EINA_FALSE to
19508     * have them searched on the widget's theme, as well.
19509     *
19510     * @note This call is of use only if you've set a custom cursor
19511     * for genlist items, with elm_genlist_item_cursor_set().
19512     *
19513     * @note By default, cursors will only be looked for between those
19514     * provided by the rendering engine.
19515     *
19516     * @ingroup Genlist
19517     */
19518    EAPI void               elm_genlist_item_cursor_engine_only_set(Elm_Genlist_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
19519    /**
19520     * Get if the (custom) cursor for a given genlist item is being
19521     * searched in its theme, also, or is only relying on the rendering
19522     * engine.
19523     *
19524     * @param item a genlist item
19525     * @return @c EINA_TRUE, if cursors are being looked for only on
19526     * those provided by the rendering engine, @c EINA_FALSE if they
19527     * are being searched on the widget's theme, as well.
19528     *
19529     * @see elm_genlist_item_cursor_engine_only_set(), for more details
19530     *
19531     * @ingroup Genlist
19532     */
19533    EAPI Eina_Bool          elm_genlist_item_cursor_engine_only_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19534    /**
19535     * Update the contents of all realized items.
19536     *
19537     * @param obj The genlist object.
19538     *
19539     * This updates all realized items by calling all the item class functions again
19540     * to get the icons, labels and states. Use this when the original
19541     * item data has changed and the changes are desired to be reflected.
19542     *
19543     * To update just one item, use elm_genlist_item_update().
19544     *
19545     * @see elm_genlist_realized_items_get()
19546     * @see elm_genlist_item_update()
19547     *
19548     * @ingroup Genlist
19549     */
19550    EAPI void               elm_genlist_realized_items_update(Evas_Object *obj) EINA_ARG_NONNULL(1);
19551    /**
19552     * Activate a genlist mode on an item
19553     *
19554     * @param item The genlist item
19555     * @param mode Mode name
19556     * @param mode_set Boolean to define set or unset mode.
19557     *
19558     * A genlist mode is a different way of selecting an item. Once a mode is
19559     * activated on an item, any other selected item is immediately unselected.
19560     * This feature provides an easy way of implementing a new kind of animation
19561     * for selecting an item, without having to entirely rewrite the item style
19562     * theme. However, the elm_genlist_selected_* API can't be used to get what
19563     * item is activate for a mode.
19564     *
19565     * The current item style will still be used, but applying a genlist mode to
19566     * an item will select it using a different kind of animation.
19567     *
19568     * The current active item for a mode can be found by
19569     * elm_genlist_mode_item_get().
19570     *
19571     * The characteristics of genlist mode are:
19572     * - Only one mode can be active at any time, and for only one item.
19573     * - Genlist handles deactivating other items when one item is activated.
19574     * - A mode is defined in the genlist theme (edc), and more modes can easily
19575     *   be added.
19576     * - A mode style and the genlist item style are different things. They
19577     *   can be combined to provide a default style to the item, with some kind
19578     *   of animation for that item when the mode is activated.
19579     *
19580     * When a mode is activated on an item, a new view for that item is created.
19581     * The theme of this mode defines the animation that will be used to transit
19582     * the item from the old view to the new view. This second (new) view will be
19583     * active for that item while the mode is active on the item, and will be
19584     * destroyed after the mode is totally deactivated from that item.
19585     *
19586     * @see elm_genlist_mode_get()
19587     * @see elm_genlist_mode_item_get()
19588     *
19589     * @ingroup Genlist
19590     */
19591    EAPI void               elm_genlist_item_mode_set(Elm_Genlist_Item *it, const char *mode_type, Eina_Bool mode_set) EINA_ARG_NONNULL(1, 2);
19592    /**
19593     * Get the last (or current) genlist mode used.
19594     *
19595     * @param obj The genlist object
19596     *
19597     * This function just returns the name of the last used genlist mode. It will
19598     * be the current mode if it's still active.
19599     *
19600     * @see elm_genlist_item_mode_set()
19601     * @see elm_genlist_mode_item_get()
19602     *
19603     * @ingroup Genlist
19604     */
19605    EAPI const char        *elm_genlist_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19606    /**
19607     * Get active genlist mode item
19608     *
19609     * @param obj The genlist object
19610     * @return The active item for that current mode. Or @c NULL if no item is
19611     * activated with any mode.
19612     *
19613     * This function returns the item that was activated with a mode, by the
19614     * function elm_genlist_item_mode_set().
19615     *
19616     * @see elm_genlist_item_mode_set()
19617     * @see elm_genlist_mode_get()
19618     *
19619     * @ingroup Genlist
19620     */
19621    EAPI const Elm_Genlist_Item *elm_genlist_mode_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19622
19623    /**
19624     * Set reorder mode
19625     *
19626     * @param obj The genlist object
19627     * @param reorder_mode The reorder mode
19628     * (EINA_TRUE = on, EINA_FALSE = off)
19629     *
19630     * @ingroup Genlist
19631     */
19632    EAPI void               elm_genlist_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
19633
19634    /**
19635     * Get the reorder mode
19636     *
19637     * @param obj The genlist object
19638     * @return The reorder mode
19639     * (EINA_TRUE = on, EINA_FALSE = off)
19640     *
19641     * @ingroup Genlist
19642     */
19643    EAPI Eina_Bool          elm_genlist_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19644
19645    EAPI void               elm_genlist_edit_mode_set(Evas_Object *obj, Eina_Bool edit_mode) EINA_ARG_NONNULL(1);
19646    EAPI Eina_Bool          elm_genlist_edit_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19647    EAPI void               elm_genlist_item_rename_mode_set(Elm_Genlist_Item *it, Eina_Bool renamed) EINA_ARG_NONNULL(1);
19648    EAPI Eina_Bool          elm_genlist_item_rename_mode_get(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19649    EAPI void               elm_genlist_item_move_after(Elm_Genlist_Item *it, Elm_Genlist_Item *after ) EINA_ARG_NONNULL(1, 2);
19650    EAPI void               elm_genlist_item_move_before(Elm_Genlist_Item *it, Elm_Genlist_Item *before) EINA_ARG_NONNULL(1, 2);
19651    EAPI void               elm_genlist_effect_set(const Evas_Object *obj, Eina_Bool emode) EINA_ARG_NONNULL(1);
19652    EAPI void               elm_genlist_pinch_zoom_set(Evas_Object *obj, Eina_Bool emode) EINA_ARG_NONNULL(1);
19653    EAPI void               elm_genlist_pinch_zoom_mode_set(Evas_Object *obj, Eina_Bool emode) EINA_ARG_NONNULL(1);
19654    EAPI Eina_Bool          elm_genlist_pinch_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19655
19656    /**
19657     * @}
19658     */
19659
19660    /**
19661     * @defgroup Check Check
19662     *
19663     * @image html img/widget/check/preview-00.png
19664     * @image latex img/widget/check/preview-00.eps
19665     * @image html img/widget/check/preview-01.png
19666     * @image latex img/widget/check/preview-01.eps
19667     * @image html img/widget/check/preview-02.png
19668     * @image latex img/widget/check/preview-02.eps
19669     *
19670     * @brief The check widget allows for toggling a value between true and
19671     * false.
19672     *
19673     * Check objects are a lot like radio objects in layout and functionality
19674     * except they do not work as a group, but independently and only toggle the
19675     * value of a boolean from false to true (0 or 1). elm_check_state_set() sets
19676     * the boolean state (1 for true, 0 for false), and elm_check_state_get()
19677     * returns the current state. For convenience, like the radio objects, you
19678     * can set a pointer to a boolean directly with elm_check_state_pointer_set()
19679     * for it to modify.
19680     *
19681     * Signals that you can add callbacks for are:
19682     * "changed" - This is called whenever the user changes the state of one of
19683     *             the check object(event_info is NULL).
19684     *
19685     * Default contents parts of the check widget that you can use for are:
19686     * @li "icon" - A icon of the check
19687     *
19688     * Default text parts of the check widget that you can use for are:
19689     * @li "elm.text" - Label of the check
19690     *
19691     * @ref tutorial_check should give you a firm grasp of how to use this widget
19692     * .
19693     * @{
19694     */
19695    /**
19696     * @brief Add a new Check object
19697     *
19698     * @param parent The parent object
19699     * @return The new object or NULL if it cannot be created
19700     */
19701    EAPI Evas_Object *elm_check_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19702    /**
19703     * @brief Set the text label of the check object
19704     *
19705     * @param obj The check object
19706     * @param label The text label string in UTF-8
19707     *
19708     * @deprecated use elm_object_text_set() instead.
19709     */
19710    EINA_DEPRECATED EAPI void         elm_check_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
19711    /**
19712     * @brief Get the text label of the check object
19713     *
19714     * @param obj The check object
19715     * @return The text label string in UTF-8
19716     *
19717     * @deprecated use elm_object_text_get() instead.
19718     */
19719    EINA_DEPRECATED EAPI const char  *elm_check_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19720    /**
19721     * @brief Set the icon object of the check object
19722     *
19723     * @param obj The check object
19724     * @param icon The icon object
19725     *
19726     * Once the icon object is set, a previously set one will be deleted.
19727     * If you want to keep that old content object, use the
19728     * elm_object_content_unset() function.
19729     *
19730     * @deprecated use elm_object_content_part_set() instead.
19731     *
19732     */
19733    EINA_DEPRECATED EAPI void         elm_check_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
19734    /**
19735     * @brief Get the icon object of the check object
19736     *
19737     * @param obj The check object
19738     * @return The icon object
19739     *
19740     * @deprecated use elm_object_content_part_get() instead.
19741     *  
19742     */
19743    EINA_DEPRECATED EAPI Evas_Object *elm_check_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19744    /**
19745     * @brief Unset the icon used for the check object
19746     *
19747     * @param obj The check object
19748     * @return The icon object that was being used
19749     *
19750     * Unparent and return the icon object which was set for this widget.
19751     *
19752     * @deprecated use elm_object_content_part_unset() instead.
19753     *
19754     */
19755    EINA_DEPRECATED EAPI Evas_Object *elm_check_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
19756    /**
19757     * @brief Set the on/off state of the check object
19758     *
19759     * @param obj The check object
19760     * @param state The state to use (1 == on, 0 == off)
19761     *
19762     * This sets the state of the check. If set
19763     * with elm_check_state_pointer_set() the state of that variable is also
19764     * changed. Calling this @b doesn't cause the "changed" signal to be emited.
19765     */
19766    EAPI void         elm_check_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
19767    /**
19768     * @brief Get the state of the check object
19769     *
19770     * @param obj The check object
19771     * @return The boolean state
19772     */
19773    EAPI Eina_Bool    elm_check_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19774    /**
19775     * @brief Set a convenience pointer to a boolean to change
19776     *
19777     * @param obj The check object
19778     * @param statep Pointer to the boolean to modify
19779     *
19780     * This sets a pointer to a boolean, that, in addition to the check objects
19781     * state will also be modified directly. To stop setting the object pointed
19782     * to simply use NULL as the @p statep parameter. If @p statep is not NULL,
19783     * then when this is called, the check objects state will also be modified to
19784     * reflect the value of the boolean @p statep points to, just like calling
19785     * elm_check_state_set().
19786     */
19787    EAPI void         elm_check_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
19788    /**
19789     * @}
19790     */
19791
19792    /* compatibility code for toggle controls */
19793
19794    EINA_DEPRECATED EAPI extern inline Evas_Object *elm_toggle_add(Evas_Object *parent) EINA_ARG_NONNULL(1)
19795      {
19796         Evas_Object *obj;
19797
19798         obj = elm_check_add(parent);
19799         elm_object_style_set(obj, "toggle");
19800         elm_object_part_text_set(obj, "on", "ON");
19801         elm_object_part_text_set(obj, "off", "OFF");
19802         return obj;
19803      }
19804
19805    EINA_DEPRECATED EAPI extern inline void elm_toggle_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1)
19806      {
19807         elm_object_text_set(obj, label);
19808      }
19809
19810    EINA_DEPRECATED EAPI extern inline const char  *elm_toggle_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1)
19811      {
19812         return elm_object_text_get(obj);
19813      }
19814
19815    EINA_DEPRECATED EAPI extern inline void elm_toggle_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1)
19816      {
19817         elm_object_content_set(obj, icon);
19818      }
19819
19820    EINA_DEPRECATED EAPI extern inline Evas_Object *elm_toggle_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1)
19821      {
19822         return elm_object_content_get(obj);
19823      }
19824
19825    EINA_DEPRECATED EAPI extern inline Evas_Object *elm_toggle_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1)
19826      {
19827         return elm_object_content_unset(obj);
19828      }
19829
19830    EINA_DEPRECATED EAPI extern inline void elm_toggle_states_labels_set(Evas_Object *obj, const char *onlabel, const char *offlabel) EINA_ARG_NONNULL(1)
19831      {
19832         elm_object_part_text_set(obj, "on", onlabel);
19833         elm_object_part_text_set(obj, "off", offlabel);
19834      }
19835
19836    EINA_DEPRECATED EAPI extern inline void elm_toggle_states_labels_get(const Evas_Object *obj, const char **onlabel, const char **offlabel) EINA_ARG_NONNULL(1)
19837      {
19838         if (onlabel) *onlabel = elm_object_part_text_get(obj, "on");
19839         if (offlabel) *offlabel = elm_object_part_text_get(obj, "off");
19840      }
19841
19842    EINA_DEPRECATED EAPI extern inline void elm_toggle_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1)
19843      {
19844         elm_check_state_set(obj, state);
19845      }
19846
19847    EINA_DEPRECATED EAPI extern inline Eina_Bool elm_toggle_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1)
19848      {
19849         return elm_check_state_get(obj);
19850      }
19851
19852    EINA_DEPRECATED EAPI extern inline void elm_toggle_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1)
19853      {
19854         elm_check_state_pointer_set(obj, statep);
19855      }
19856
19857    /**
19858     * @defgroup Radio Radio
19859     *
19860     * @image html img/widget/radio/preview-00.png
19861     * @image latex img/widget/radio/preview-00.eps
19862     *
19863     * @brief Radio is a widget that allows for 1 or more options to be displayed
19864     * and have the user choose only 1 of them.
19865     *
19866     * A radio object contains an indicator, an optional Label and an optional
19867     * icon object. While it's possible to have a group of only one radio they,
19868     * are normally used in groups of 2 or more. To add a radio to a group use
19869     * elm_radio_group_add(). The radio object(s) will select from one of a set
19870     * of integer values, so any value they are configuring needs to be mapped to
19871     * a set of integers. To configure what value that radio object represents,
19872     * use  elm_radio_state_value_set() to set the integer it represents. To set
19873     * the value the whole group(which one is currently selected) is to indicate
19874     * use elm_radio_value_set() on any group member, and to get the groups value
19875     * use elm_radio_value_get(). For convenience the radio objects are also able
19876     * to directly set an integer(int) to the value that is selected. To specify
19877     * the pointer to this integer to modify, use elm_radio_value_pointer_set().
19878     * The radio objects will modify this directly. That implies the pointer must
19879     * point to valid memory for as long as the radio objects exist.
19880     *
19881     * Signals that you can add callbacks for are:
19882     * @li changed - This is called whenever the user changes the state of one of
19883     * the radio objects within the group of radio objects that work together.
19884     *
19885     * Default contents parts of the radio widget that you can use for are:
19886     * @li "icon" - A icon of the radio
19887     *
19888     * @ref tutorial_radio show most of this API in action.
19889     * @{
19890     */
19891    /**
19892     * @brief Add a new radio to the parent
19893     *
19894     * @param parent The parent object
19895     * @return The new object or NULL if it cannot be created
19896     */
19897    EAPI Evas_Object *elm_radio_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19898    /**
19899     * @brief Set the text label of the radio object
19900     *
19901     * @param obj The radio object
19902     * @param label The text label string in UTF-8
19903     *
19904     * @deprecated use elm_object_text_set() instead.
19905     */
19906    EINA_DEPRECATED EAPI void         elm_radio_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
19907    /**
19908     * @brief Get the text label of the radio object
19909     *
19910     * @param obj The radio object
19911     * @return The text label string in UTF-8
19912     *
19913     * @deprecated use elm_object_text_set() instead.
19914     */
19915    EINA_DEPRECATED EAPI const char  *elm_radio_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19916    /**
19917     * @brief Set the icon object of the radio object
19918     *
19919     * @param obj The radio object
19920     * @param icon The icon object
19921     *
19922     * Once the icon object is set, a previously set one will be deleted. If you
19923     * want to keep that old content object, use the elm_radio_icon_unset()
19924     * function.
19925     *
19926     * @deprecated use elm_object_content_part_set() instead.
19927     *
19928     */
19929    EAPI void         elm_radio_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
19930    /**
19931     * @brief Get the icon object of the radio object
19932     *
19933     * @param obj The radio object
19934     * @return The icon object
19935     *
19936     * @see elm_radio_icon_set()
19937     *
19938     * @deprecated use elm_object_content_part_get() instead.
19939     *
19940     */
19941    EAPI Evas_Object *elm_radio_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19942    /**
19943     * @brief Unset the icon used for the radio object
19944     *
19945     * @param obj The radio object
19946     * @return The icon object that was being used
19947     *
19948     * Unparent and return the icon object which was set for this widget.
19949     *
19950     * @see elm_radio_icon_set()
19951     * @deprecated use elm_object_content_part_unset() instead.
19952     *
19953     */
19954    EAPI Evas_Object *elm_radio_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
19955    /**
19956     * @brief Add this radio to a group of other radio objects
19957     *
19958     * @param obj The radio object
19959     * @param group Any object whose group the @p obj is to join.
19960     *
19961     * Radio objects work in groups. Each member should have a different integer
19962     * value assigned. In order to have them work as a group, they need to know
19963     * about each other. This adds the given radio object to the group of which
19964     * the group object indicated is a member.
19965     */
19966    EAPI void         elm_radio_group_add(Evas_Object *obj, Evas_Object *group) EINA_ARG_NONNULL(1);
19967    /**
19968     * @brief Set the integer value that this radio object represents
19969     *
19970     * @param obj The radio object
19971     * @param value The value to use if this radio object is selected
19972     *
19973     * This sets the value of the radio.
19974     */
19975    EAPI void         elm_radio_state_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
19976    /**
19977     * @brief Get the integer value that this radio object represents
19978     *
19979     * @param obj The radio object
19980     * @return The value used if this radio object is selected
19981     *
19982     * This gets the value of the radio.
19983     *
19984     * @see elm_radio_value_set()
19985     */
19986    EAPI int          elm_radio_state_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19987    /**
19988     * @brief Set the value of the radio.
19989     *
19990     * @param obj The radio object
19991     * @param value The value to use for the group
19992     *
19993     * This sets the value of the radio group and will also set the value if
19994     * pointed to, to the value supplied, but will not call any callbacks.
19995     */
19996    EAPI void         elm_radio_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
19997    /**
19998     * @brief Get the state of the radio object
19999     *
20000     * @param obj The radio object
20001     * @return The integer state
20002     */
20003    EAPI int          elm_radio_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20004    /**
20005     * @brief Set a convenience pointer to a integer to change
20006     *
20007     * @param obj The radio object
20008     * @param valuep Pointer to the integer to modify
20009     *
20010     * This sets a pointer to a integer, that, in addition to the radio objects
20011     * state will also be modified directly. To stop setting the object pointed
20012     * to simply use NULL as the @p valuep argument. If valuep is not NULL, then
20013     * when this is called, the radio objects state will also be modified to
20014     * reflect the value of the integer valuep points to, just like calling
20015     * elm_radio_value_set().
20016     */
20017    EAPI void         elm_radio_value_pointer_set(Evas_Object *obj, int *valuep) EINA_ARG_NONNULL(1);
20018    /**
20019     * @}
20020     */
20021
20022    /**
20023     * @defgroup Pager Pager
20024     *
20025     * @image html img/widget/pager/preview-00.png
20026     * @image latex img/widget/pager/preview-00.eps
20027     *
20028     * @brief Widget that allows flipping between 1 or more ā€œpagesā€ of objects.
20029     *
20030     * The flipping between ā€œpagesā€ of objects is animated. All content in pager
20031     * is kept in a stack, the last content to be added will be on the top of the
20032     * stack(be visible).
20033     *
20034     * Objects can be pushed or popped from the stack or deleted as normal.
20035     * Pushes and pops will animate (and a pop will delete the object once the
20036     * animation is finished). Any object already in the pager can be promoted to
20037     * the top(from its current stacking position) through the use of
20038     * elm_pager_content_promote(). Objects are pushed to the top with
20039     * elm_pager_content_push() and when the top item is no longer wanted, simply
20040     * pop it with elm_pager_content_pop() and it will also be deleted. If an
20041     * object is no longer needed and is not the top item, just delete it as
20042     * normal. You can query which objects are the top and bottom with
20043     * elm_pager_content_bottom_get() and elm_pager_content_top_get().
20044     *
20045     * Signals that you can add callbacks for are:
20046     * "hide,finished" - when the previous page is hided
20047     *
20048     * This widget has the following styles available:
20049     * @li default
20050     * @li fade
20051     * @li fade_translucide
20052     * @li fade_invisible
20053     * @note This styles affect only the flipping animations, the appearance when
20054     * not animating is unaffected by styles.
20055     *
20056     * @ref tutorial_pager gives a good overview of the usage of the API.
20057     * @{
20058     */
20059    /**
20060     * Add a new pager to the parent
20061     *
20062     * @param parent The parent object
20063     * @return The new object or NULL if it cannot be created
20064     *
20065     * @ingroup Pager
20066     */
20067    EAPI Evas_Object *elm_pager_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20068    /**
20069     * @brief Push an object to the top of the pager stack (and show it).
20070     *
20071     * @param obj The pager object
20072     * @param content The object to push
20073     *
20074     * The object pushed becomes a child of the pager, it will be controlled and
20075     * deleted when the pager is deleted.
20076     *
20077     * @note If the content is already in the stack use
20078     * elm_pager_content_promote().
20079     * @warning Using this function on @p content already in the stack results in
20080     * undefined behavior.
20081     */
20082    EAPI void         elm_pager_content_push(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
20083    /**
20084     * @brief Pop the object that is on top of the stack
20085     *
20086     * @param obj The pager object
20087     *
20088     * This pops the object that is on the top(visible) of the pager, makes it
20089     * disappear, then deletes the object. The object that was underneath it on
20090     * the stack will become visible.
20091     */
20092    EAPI void         elm_pager_content_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
20093    /**
20094     * @brief Moves an object already in the pager stack to the top of the stack.
20095     *
20096     * @param obj The pager object
20097     * @param content The object to promote
20098     *
20099     * This will take the @p content and move it to the top of the stack as
20100     * if it had been pushed there.
20101     *
20102     * @note If the content isn't already in the stack use
20103     * elm_pager_content_push().
20104     * @warning Using this function on @p content not already in the stack
20105     * results in undefined behavior.
20106     */
20107    EAPI void         elm_pager_content_promote(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
20108    /**
20109     * @brief Return the object at the bottom of the pager stack
20110     *
20111     * @param obj The pager object
20112     * @return The bottom object or NULL if none
20113     */
20114    EAPI Evas_Object *elm_pager_content_bottom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20115    /**
20116     * @brief  Return the object at the top of the pager stack
20117     *
20118     * @param obj The pager object
20119     * @return The top object or NULL if none
20120     */
20121    EAPI Evas_Object *elm_pager_content_top_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20122
20123    EAPI void         elm_pager_to_content_pop(Evas_Object *obj, Evas_Object *content); EINA_ARG_NONNULL(1);
20124    EINA_DEPRECATED    EAPI void         elm_pager_animation_disabled_set(Evas_Object *obj, Eina_Bool disable); EINA_ARG_NONNULL(1);
20125
20126    /**
20127     * @}
20128     */
20129
20130    /**
20131     * @defgroup Slideshow Slideshow
20132     *
20133     * @image html img/widget/slideshow/preview-00.png
20134     * @image latex img/widget/slideshow/preview-00.eps
20135     *
20136     * This widget, as the name indicates, is a pre-made image
20137     * slideshow panel, with API functions acting on (child) image
20138     * items presentation. Between those actions, are:
20139     * - advance to next/previous image
20140     * - select the style of image transition animation
20141     * - set the exhibition time for each image
20142     * - start/stop the slideshow
20143     *
20144     * The transition animations are defined in the widget's theme,
20145     * consequently new animations can be added without having to
20146     * update the widget's code.
20147     *
20148     * @section Slideshow_Items Slideshow items
20149     *
20150     * For slideshow items, just like for @ref Genlist "genlist" ones,
20151     * the user defines a @b classes, specifying functions that will be
20152     * called on the item's creation and deletion times.
20153     *
20154     * The #Elm_Slideshow_Item_Class structure contains the following
20155     * members:
20156     *
20157     * - @c func.get - When an item is displayed, this function is
20158     *   called, and it's where one should create the item object, de
20159     *   facto. For example, the object can be a pure Evas image object
20160     *   or an Elementary @ref Photocam "photocam" widget. See
20161     *   #SlideshowItemGetFunc.
20162     * - @c func.del - When an item is no more displayed, this function
20163     *   is called, where the user must delete any data associated to
20164     *   the item. See #SlideshowItemDelFunc.
20165     *
20166     * @section Slideshow_Caching Slideshow caching
20167     *
20168     * The slideshow provides facilities to have items adjacent to the
20169     * one being displayed <b>already "realized"</b> (i.e. loaded) for
20170     * you, so that the system does not have to decode image data
20171     * anymore at the time it has to actually switch images on its
20172     * viewport. The user is able to set the numbers of items to be
20173     * cached @b before and @b after the current item, in the widget's
20174     * item list.
20175     *
20176     * Smart events one can add callbacks for are:
20177     *
20178     * - @c "changed" - when the slideshow switches its view to a new
20179     *   item
20180     *
20181     * List of examples for the slideshow widget:
20182     * @li @ref slideshow_example
20183     */
20184
20185    /**
20186     * @addtogroup Slideshow
20187     * @{
20188     */
20189
20190    typedef struct _Elm_Slideshow_Item_Class Elm_Slideshow_Item_Class; /**< Slideshow item class definition struct */
20191    typedef struct _Elm_Slideshow_Item_Class_Func Elm_Slideshow_Item_Class_Func; /**< Class functions for slideshow item classes. */
20192    typedef struct _Elm_Slideshow_Item       Elm_Slideshow_Item; /**< Slideshow item handle */
20193    typedef Evas_Object *(*SlideshowItemGetFunc) (void *data, Evas_Object *obj); /**< Image fetching class function for slideshow item classes. */
20194    typedef void         (*SlideshowItemDelFunc) (void *data, Evas_Object *obj); /**< Deletion class function for slideshow item classes. */
20195
20196    /**
20197     * @struct _Elm_Slideshow_Item_Class
20198     *
20199     * Slideshow item class definition. See @ref Slideshow_Items for
20200     * field details.
20201     */
20202    struct _Elm_Slideshow_Item_Class
20203      {
20204         struct _Elm_Slideshow_Item_Class_Func
20205           {
20206              SlideshowItemGetFunc get;
20207              SlideshowItemDelFunc del;
20208           } func;
20209      }; /**< #Elm_Slideshow_Item_Class member definitions */
20210
20211    /**
20212     * Add a new slideshow widget to the given parent Elementary
20213     * (container) object
20214     *
20215     * @param parent The parent object
20216     * @return A new slideshow widget handle or @c NULL, on errors
20217     *
20218     * This function inserts a new slideshow widget on the canvas.
20219     *
20220     * @ingroup Slideshow
20221     */
20222    EAPI Evas_Object        *elm_slideshow_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20223
20224    /**
20225     * Add (append) a new item in a given slideshow widget.
20226     *
20227     * @param obj The slideshow object
20228     * @param itc The item class for the item
20229     * @param data The item's data
20230     * @return A handle to the item added or @c NULL, on errors
20231     *
20232     * Add a new item to @p obj's internal list of items, appending it.
20233     * The item's class must contain the function really fetching the
20234     * image object to show for this item, which could be an Evas image
20235     * object or an Elementary photo, for example. The @p data
20236     * parameter is going to be passed to both class functions of the
20237     * item.
20238     *
20239     * @see #Elm_Slideshow_Item_Class
20240     * @see elm_slideshow_item_sorted_insert()
20241     *
20242     * @ingroup Slideshow
20243     */
20244    EAPI Elm_Slideshow_Item *elm_slideshow_item_add(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data) EINA_ARG_NONNULL(1);
20245
20246    /**
20247     * Insert a new item into the given slideshow widget, using the @p func
20248     * function to sort items (by item handles).
20249     *
20250     * @param obj The slideshow object
20251     * @param itc The item class for the item
20252     * @param data The item's data
20253     * @param func The comparing function to be used to sort slideshow
20254     * items <b>by #Elm_Slideshow_Item item handles</b>
20255     * @return Returns The slideshow item handle, on success, or
20256     * @c NULL, on errors
20257     *
20258     * Add a new item to @p obj's internal list of items, in a position
20259     * determined by the @p func comparing function. The item's class
20260     * must contain the function really fetching the image object to
20261     * show for this item, which could be an Evas image object or an
20262     * Elementary photo, for example. The @p data parameter is going to
20263     * be passed to both class functions of the item.
20264     *
20265     * @see #Elm_Slideshow_Item_Class
20266     * @see elm_slideshow_item_add()
20267     *
20268     * @ingroup Slideshow
20269     */
20270    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);
20271
20272    /**
20273     * Display a given slideshow widget's item, programmatically.
20274     *
20275     * @param obj The slideshow object
20276     * @param item The item to display on @p obj's viewport
20277     *
20278     * The change between the current item and @p item will use the
20279     * transition @p obj is set to use (@see
20280     * elm_slideshow_transition_set()).
20281     *
20282     * @ingroup Slideshow
20283     */
20284    EAPI void                elm_slideshow_show(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
20285
20286    /**
20287     * Slide to the @b next item, in a given slideshow widget
20288     *
20289     * @param obj The slideshow object
20290     *
20291     * The sliding animation @p obj is set to use will be the
20292     * transition effect used, after this call is issued.
20293     *
20294     * @note If the end of the slideshow's internal list of items is
20295     * reached, it'll wrap around to the list's beginning, again.
20296     *
20297     * @ingroup Slideshow
20298     */
20299    EAPI void                elm_slideshow_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
20300
20301    /**
20302     * Slide to the @b previous item, in a given slideshow widget
20303     *
20304     * @param obj The slideshow object
20305     *
20306     * The sliding animation @p obj is set to use will be the
20307     * transition effect used, after this call is issued.
20308     *
20309     * @note If the beginning of the slideshow's internal list of items
20310     * is reached, it'll wrap around to the list's end, again.
20311     *
20312     * @ingroup Slideshow
20313     */
20314    EAPI void                elm_slideshow_previous(Evas_Object *obj) EINA_ARG_NONNULL(1);
20315
20316    /**
20317     * Returns the list of sliding transition/effect names available, for a
20318     * given slideshow widget.
20319     *
20320     * @param obj The slideshow object
20321     * @return The list of transitions (list of @b stringshared strings
20322     * as data)
20323     *
20324     * The transitions, which come from @p obj's theme, must be an EDC
20325     * data item named @c "transitions" on the theme file, with (prefix)
20326     * names of EDC programs actually implementing them.
20327     *
20328     * The available transitions for slideshows on the default theme are:
20329     * - @c "fade" - the current item fades out, while the new one
20330     *   fades in to the slideshow's viewport.
20331     * - @c "black_fade" - the current item fades to black, and just
20332     *   then, the new item will fade in.
20333     * - @c "horizontal" - the current item slides horizontally, until
20334     *   it gets out of the slideshow's viewport, while the new item
20335     *   comes from the left to take its place.
20336     * - @c "vertical" - the current item slides vertically, until it
20337     *   gets out of the slideshow's viewport, while the new item comes
20338     *   from the bottom to take its place.
20339     * - @c "square" - the new item starts to appear from the middle of
20340     *   the current one, but with a tiny size, growing until its
20341     *   target (full) size and covering the old one.
20342     *
20343     * @warning The stringshared strings get no new references
20344     * exclusive to the user grabbing the list, here, so if you'd like
20345     * to use them out of this call's context, you'd better @c
20346     * eina_stringshare_ref() them.
20347     *
20348     * @see elm_slideshow_transition_set()
20349     *
20350     * @ingroup Slideshow
20351     */
20352    EAPI const Eina_List    *elm_slideshow_transitions_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20353
20354    /**
20355     * Set the current slide transition/effect in use for a given
20356     * slideshow widget
20357     *
20358     * @param obj The slideshow object
20359     * @param transition The new transition's name string
20360     *
20361     * If @p transition is implemented in @p obj's theme (i.e., is
20362     * contained in the list returned by
20363     * elm_slideshow_transitions_get()), this new sliding effect will
20364     * be used on the widget.
20365     *
20366     * @see elm_slideshow_transitions_get() for more details
20367     *
20368     * @ingroup Slideshow
20369     */
20370    EAPI void                elm_slideshow_transition_set(Evas_Object *obj, const char *transition) EINA_ARG_NONNULL(1);
20371
20372    /**
20373     * Get the current slide transition/effect in use for a given
20374     * slideshow widget
20375     *
20376     * @param obj The slideshow object
20377     * @return The current transition's name
20378     *
20379     * @see elm_slideshow_transition_set() for more details
20380     *
20381     * @ingroup Slideshow
20382     */
20383    EAPI const char         *elm_slideshow_transition_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20384
20385    /**
20386     * Set the interval between each image transition on a given
20387     * slideshow widget, <b>and start the slideshow, itself</b>
20388     *
20389     * @param obj The slideshow object
20390     * @param timeout The new displaying timeout for images
20391     *
20392     * After this call, the slideshow widget will start cycling its
20393     * view, sequentially and automatically, with the images of the
20394     * items it has. The time between each new image displayed is going
20395     * to be @p timeout, in @b seconds. If a different timeout was set
20396     * previously and an slideshow was in progress, it will continue
20397     * with the new time between transitions, after this call.
20398     *
20399     * @note A value less than or equal to 0 on @p timeout will disable
20400     * the widget's internal timer, thus halting any slideshow which
20401     * could be happening on @p obj.
20402     *
20403     * @see elm_slideshow_timeout_get()
20404     *
20405     * @ingroup Slideshow
20406     */
20407    EAPI void                elm_slideshow_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
20408
20409    /**
20410     * Get the interval set for image transitions on a given slideshow
20411     * widget.
20412     *
20413     * @param obj The slideshow object
20414     * @return Returns the timeout set on it
20415     *
20416     * @see elm_slideshow_timeout_set() for more details
20417     *
20418     * @ingroup Slideshow
20419     */
20420    EAPI double              elm_slideshow_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20421
20422    /**
20423     * Set if, after a slideshow is started, for a given slideshow
20424     * widget, its items should be displayed cyclically or not.
20425     *
20426     * @param obj The slideshow object
20427     * @param loop Use @c EINA_TRUE to make it cycle through items or
20428     * @c EINA_FALSE for it to stop at the end of @p obj's internal
20429     * list of items
20430     *
20431     * @note elm_slideshow_next() and elm_slideshow_previous() will @b
20432     * ignore what is set by this functions, i.e., they'll @b always
20433     * cycle through items. This affects only the "automatic"
20434     * slideshow, as set by elm_slideshow_timeout_set().
20435     *
20436     * @see elm_slideshow_loop_get()
20437     *
20438     * @ingroup Slideshow
20439     */
20440    EAPI void                elm_slideshow_loop_set(Evas_Object *obj, Eina_Bool loop) EINA_ARG_NONNULL(1);
20441
20442    /**
20443     * Get if, after a slideshow is started, for a given slideshow
20444     * widget, its items are to be displayed cyclically or not.
20445     *
20446     * @param obj The slideshow object
20447     * @return @c EINA_TRUE, if the items in @p obj will be cycled
20448     * through or @c EINA_FALSE, otherwise
20449     *
20450     * @see elm_slideshow_loop_set() for more details
20451     *
20452     * @ingroup Slideshow
20453     */
20454    EAPI Eina_Bool           elm_slideshow_loop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20455
20456    /**
20457     * Remove all items from a given slideshow widget
20458     *
20459     * @param obj The slideshow object
20460     *
20461     * This removes (and deletes) all items in @p obj, leaving it
20462     * empty.
20463     *
20464     * @see elm_slideshow_item_del(), to remove just one item.
20465     *
20466     * @ingroup Slideshow
20467     */
20468    EAPI void                elm_slideshow_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
20469
20470    /**
20471     * Get the internal list of items in a given slideshow widget.
20472     *
20473     * @param obj The slideshow object
20474     * @return The list of items (#Elm_Slideshow_Item as data) or
20475     * @c NULL on errors.
20476     *
20477     * This list is @b not to be modified in any way and must not be
20478     * freed. Use the list members with functions like
20479     * elm_slideshow_item_del(), elm_slideshow_item_data_get().
20480     *
20481     * @warning This list is only valid until @p obj object's internal
20482     * items list is changed. It should be fetched again with another
20483     * call to this function when changes happen.
20484     *
20485     * @ingroup Slideshow
20486     */
20487    EAPI const Eina_List    *elm_slideshow_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20488
20489    /**
20490     * Delete a given item from a slideshow widget.
20491     *
20492     * @param item The slideshow item
20493     *
20494     * @ingroup Slideshow
20495     */
20496    EAPI void                elm_slideshow_item_del(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
20497
20498    /**
20499     * Return the data associated with a given slideshow item
20500     *
20501     * @param item The slideshow item
20502     * @return Returns the data associated to this item
20503     *
20504     * @ingroup Slideshow
20505     */
20506    EAPI void               *elm_slideshow_item_data_get(const Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
20507
20508    /**
20509     * Returns the currently displayed item, in a given slideshow widget
20510     *
20511     * @param obj The slideshow object
20512     * @return A handle to the item being displayed in @p obj or
20513     * @c NULL, if none is (and on errors)
20514     *
20515     * @ingroup Slideshow
20516     */
20517    EAPI Elm_Slideshow_Item *elm_slideshow_item_current_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20518
20519    /**
20520     * Get the real Evas object created to implement the view of a
20521     * given slideshow item
20522     *
20523     * @param item The slideshow item.
20524     * @return the Evas object implementing this item's view.
20525     *
20526     * This returns the actual Evas object used to implement the
20527     * specified slideshow item's view. This may be @c NULL, as it may
20528     * not have been created or may have been deleted, at any time, by
20529     * the slideshow. <b>Do not modify this object</b> (move, resize,
20530     * show, hide, etc.), as the slideshow is controlling it. This
20531     * function is for querying, emitting custom signals or hooking
20532     * lower level callbacks for events on that object. Do not delete
20533     * this object under any circumstances.
20534     *
20535     * @see elm_slideshow_item_data_get()
20536     *
20537     * @ingroup Slideshow
20538     */
20539    EAPI Evas_Object*        elm_slideshow_item_object_get(const Elm_Slideshow_Item* item) EINA_ARG_NONNULL(1);
20540
20541    /**
20542     * Get the the item, in a given slideshow widget, placed at
20543     * position @p nth, in its internal items list
20544     *
20545     * @param obj The slideshow object
20546     * @param nth The number of the item to grab a handle to (0 being
20547     * the first)
20548     * @return The item stored in @p obj at position @p nth or @c NULL,
20549     * if there's no item with that index (and on errors)
20550     *
20551     * @ingroup Slideshow
20552     */
20553    EAPI Elm_Slideshow_Item *elm_slideshow_item_nth_get(const Evas_Object *obj, unsigned int nth) EINA_ARG_NONNULL(1);
20554
20555    /**
20556     * Set the current slide layout in use for a given slideshow widget
20557     *
20558     * @param obj The slideshow object
20559     * @param layout The new layout's name string
20560     *
20561     * If @p layout is implemented in @p obj's theme (i.e., is contained
20562     * in the list returned by elm_slideshow_layouts_get()), this new
20563     * images layout will be used on the widget.
20564     *
20565     * @see elm_slideshow_layouts_get() for more details
20566     *
20567     * @ingroup Slideshow
20568     */
20569    EAPI void                elm_slideshow_layout_set(Evas_Object *obj, const char *layout) EINA_ARG_NONNULL(1);
20570
20571    /**
20572     * Get the current slide layout in use for a given slideshow widget
20573     *
20574     * @param obj The slideshow object
20575     * @return The current layout's name
20576     *
20577     * @see elm_slideshow_layout_set() for more details
20578     *
20579     * @ingroup Slideshow
20580     */
20581    EAPI const char         *elm_slideshow_layout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20582
20583    /**
20584     * Returns the list of @b layout names available, for a given
20585     * slideshow widget.
20586     *
20587     * @param obj The slideshow object
20588     * @return The list of layouts (list of @b stringshared strings
20589     * as data)
20590     *
20591     * Slideshow layouts will change how the widget is to dispose each
20592     * image item in its viewport, with regard to cropping, scaling,
20593     * etc.
20594     *
20595     * The layouts, which come from @p obj's theme, must be an EDC
20596     * data item name @c "layouts" on the theme file, with (prefix)
20597     * names of EDC programs actually implementing them.
20598     *
20599     * The available layouts for slideshows on the default theme are:
20600     * - @c "fullscreen" - item images with original aspect, scaled to
20601     *   touch top and down slideshow borders or, if the image's heigh
20602     *   is not enough, left and right slideshow borders.
20603     * - @c "not_fullscreen" - the same behavior as the @c "fullscreen"
20604     *   one, but always leaving 10% of the slideshow's dimensions of
20605     *   distance between the item image's borders and the slideshow
20606     *   borders, for each axis.
20607     *
20608     * @warning The stringshared strings get no new references
20609     * exclusive to the user grabbing the list, here, so if you'd like
20610     * to use them out of this call's context, you'd better @c
20611     * eina_stringshare_ref() them.
20612     *
20613     * @see elm_slideshow_layout_set()
20614     *
20615     * @ingroup Slideshow
20616     */
20617    EAPI const Eina_List    *elm_slideshow_layouts_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20618
20619    /**
20620     * Set the number of items to cache, on a given slideshow widget,
20621     * <b>before the current item</b>
20622     *
20623     * @param obj The slideshow object
20624     * @param count Number of items to cache before the current one
20625     *
20626     * The default value for this property is @c 2. See
20627     * @ref Slideshow_Caching "slideshow caching" for more details.
20628     *
20629     * @see elm_slideshow_cache_before_get()
20630     *
20631     * @ingroup Slideshow
20632     */
20633    EAPI void                elm_slideshow_cache_before_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
20634
20635    /**
20636     * Retrieve the number of items to cache, on a given slideshow widget,
20637     * <b>before the current item</b>
20638     *
20639     * @param obj The slideshow object
20640     * @return The number of items set to be cached before the current one
20641     *
20642     * @see elm_slideshow_cache_before_set() for more details
20643     *
20644     * @ingroup Slideshow
20645     */
20646    EAPI int                 elm_slideshow_cache_before_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20647
20648    /**
20649     * Set the number of items to cache, on a given slideshow widget,
20650     * <b>after the current item</b>
20651     *
20652     * @param obj The slideshow object
20653     * @param count Number of items to cache after the current one
20654     *
20655     * The default value for this property is @c 2. See
20656     * @ref Slideshow_Caching "slideshow caching" for more details.
20657     *
20658     * @see elm_slideshow_cache_after_get()
20659     *
20660     * @ingroup Slideshow
20661     */
20662    EAPI void                elm_slideshow_cache_after_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
20663
20664    /**
20665     * Retrieve the number of items to cache, on a given slideshow widget,
20666     * <b>after the current item</b>
20667     *
20668     * @param obj The slideshow object
20669     * @return The number of items set to be cached after the current one
20670     *
20671     * @see elm_slideshow_cache_after_set() for more details
20672     *
20673     * @ingroup Slideshow
20674     */
20675    EAPI int                 elm_slideshow_cache_after_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20676
20677    /**
20678     * Get the number of items stored in a given slideshow widget
20679     *
20680     * @param obj The slideshow object
20681     * @return The number of items on @p obj, at the moment of this call
20682     *
20683     * @ingroup Slideshow
20684     */
20685    EAPI unsigned int        elm_slideshow_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20686
20687    /**
20688     * @}
20689     */
20690
20691    /**
20692     * @defgroup Fileselector File Selector
20693     *
20694     * @image html img/widget/fileselector/preview-00.png
20695     * @image latex img/widget/fileselector/preview-00.eps
20696     *
20697     * A file selector is a widget that allows a user to navigate
20698     * through a file system, reporting file selections back via its
20699     * API.
20700     *
20701     * It contains shortcut buttons for home directory (@c ~) and to
20702     * jump one directory upwards (..), as well as cancel/ok buttons to
20703     * confirm/cancel a given selection. After either one of those two
20704     * former actions, the file selector will issue its @c "done" smart
20705     * callback.
20706     *
20707     * There's a text entry on it, too, showing the name of the current
20708     * selection. There's the possibility of making it editable, so it
20709     * is useful on file saving dialogs on applications, where one
20710     * gives a file name to save contents to, in a given directory in
20711     * the system. This custom file name will be reported on the @c
20712     * "done" smart callback (explained in sequence).
20713     *
20714     * Finally, it has a view to display file system items into in two
20715     * possible forms:
20716     * - list
20717     * - grid
20718     *
20719     * If Elementary is built with support of the Ethumb thumbnailing
20720     * library, the second form of view will display preview thumbnails
20721     * of files which it supports.
20722     *
20723     * Smart callbacks one can register to:
20724     *
20725     * - @c "selected" - the user has clicked on a file (when not in
20726     *      folders-only mode) or directory (when in folders-only mode)
20727     * - @c "directory,open" - the list has been populated with new
20728     *      content (@c event_info is a pointer to the directory's
20729     *      path, a @b stringshared string)
20730     * - @c "done" - the user has clicked on the "ok" or "cancel"
20731     *      buttons (@c event_info is a pointer to the selection's
20732     *      path, a @b stringshared string)
20733     *
20734     * Here is an example on its usage:
20735     * @li @ref fileselector_example
20736     */
20737
20738    /**
20739     * @addtogroup Fileselector
20740     * @{
20741     */
20742
20743    /**
20744     * Defines how a file selector widget is to layout its contents
20745     * (file system entries).
20746     */
20747    typedef enum _Elm_Fileselector_Mode
20748      {
20749         ELM_FILESELECTOR_LIST = 0, /**< layout as a list */
20750         ELM_FILESELECTOR_GRID, /**< layout as a grid */
20751         ELM_FILESELECTOR_LAST /**< sentinel (helper) value, not used */
20752      } Elm_Fileselector_Mode;
20753
20754    /**
20755     * Add a new file selector widget to the given parent Elementary
20756     * (container) object
20757     *
20758     * @param parent The parent object
20759     * @return a new file selector widget handle or @c NULL, on errors
20760     *
20761     * This function inserts a new file selector widget on the canvas.
20762     *
20763     * @ingroup Fileselector
20764     */
20765    EAPI Evas_Object          *elm_fileselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20766
20767    /**
20768     * Enable/disable the file name entry box where the user can type
20769     * in a name for a file, in a given file selector widget
20770     *
20771     * @param obj The file selector object
20772     * @param is_save @c EINA_TRUE to make the file selector a "saving
20773     * dialog", @c EINA_FALSE otherwise
20774     *
20775     * Having the entry editable is useful on file saving dialogs on
20776     * applications, where one gives a file name to save contents to,
20777     * in a given directory in the system. This custom file name will
20778     * be reported on the @c "done" smart callback.
20779     *
20780     * @see elm_fileselector_is_save_get()
20781     *
20782     * @ingroup Fileselector
20783     */
20784    EAPI void                  elm_fileselector_is_save_set(Evas_Object *obj, Eina_Bool is_save) EINA_ARG_NONNULL(1);
20785
20786    /**
20787     * Get whether the given file selector is in "saving dialog" mode
20788     *
20789     * @param obj The file selector object
20790     * @return @c EINA_TRUE, if the file selector is in "saving dialog"
20791     * mode, @c EINA_FALSE otherwise (and on errors)
20792     *
20793     * @see elm_fileselector_is_save_set() for more details
20794     *
20795     * @ingroup Fileselector
20796     */
20797    EAPI Eina_Bool             elm_fileselector_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20798
20799    /**
20800     * Enable/disable folder-only view for a given file selector widget
20801     *
20802     * @param obj The file selector object
20803     * @param only @c EINA_TRUE to make @p obj only display
20804     * directories, @c EINA_FALSE to make files to be displayed in it
20805     * too
20806     *
20807     * If enabled, the widget's view will only display folder items,
20808     * naturally.
20809     *
20810     * @see elm_fileselector_folder_only_get()
20811     *
20812     * @ingroup Fileselector
20813     */
20814    EAPI void                  elm_fileselector_folder_only_set(Evas_Object *obj, Eina_Bool only) EINA_ARG_NONNULL(1);
20815
20816    /**
20817     * Get whether folder-only view is set for a given file selector
20818     * widget
20819     *
20820     * @param obj The file selector object
20821     * @return only @c EINA_TRUE if @p obj is only displaying
20822     * directories, @c EINA_FALSE if files are being displayed in it
20823     * too (and on errors)
20824     *
20825     * @see elm_fileselector_folder_only_get()
20826     *
20827     * @ingroup Fileselector
20828     */
20829    EAPI Eina_Bool             elm_fileselector_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20830
20831    /**
20832     * Enable/disable the "ok" and "cancel" buttons on a given file
20833     * selector widget
20834     *
20835     * @param obj The file selector object
20836     * @param only @c EINA_TRUE to show them, @c EINA_FALSE to hide.
20837     *
20838     * @note A file selector without those buttons will never emit the
20839     * @c "done" smart event, and is only usable if one is just hooking
20840     * to the other two events.
20841     *
20842     * @see elm_fileselector_buttons_ok_cancel_get()
20843     *
20844     * @ingroup Fileselector
20845     */
20846    EAPI void                  elm_fileselector_buttons_ok_cancel_set(Evas_Object *obj, Eina_Bool buttons) EINA_ARG_NONNULL(1);
20847
20848    /**
20849     * Get whether the "ok" and "cancel" buttons on a given file
20850     * selector widget are being shown.
20851     *
20852     * @param obj The file selector object
20853     * @return @c EINA_TRUE if they are being shown, @c EINA_FALSE
20854     * otherwise (and on errors)
20855     *
20856     * @see elm_fileselector_buttons_ok_cancel_set() for more details
20857     *
20858     * @ingroup Fileselector
20859     */
20860    EAPI Eina_Bool             elm_fileselector_buttons_ok_cancel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20861
20862    /**
20863     * Enable/disable a tree view in the given file selector widget,
20864     * <b>if it's in @c #ELM_FILESELECTOR_LIST mode</b>
20865     *
20866     * @param obj The file selector object
20867     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
20868     * disable
20869     *
20870     * In a tree view, arrows are created on the sides of directories,
20871     * allowing them to expand in place.
20872     *
20873     * @note If it's in other mode, the changes made by this function
20874     * will only be visible when one switches back to "list" mode.
20875     *
20876     * @see elm_fileselector_expandable_get()
20877     *
20878     * @ingroup Fileselector
20879     */
20880    EAPI void                  elm_fileselector_expandable_set(Evas_Object *obj, Eina_Bool expand) EINA_ARG_NONNULL(1);
20881
20882    /**
20883     * Get whether tree view is enabled for the given file selector
20884     * widget
20885     *
20886     * @param obj The file selector object
20887     * @return @c EINA_TRUE if @p obj is in tree view, @c EINA_FALSE
20888     * otherwise (and or errors)
20889     *
20890     * @see elm_fileselector_expandable_set() for more details
20891     *
20892     * @ingroup Fileselector
20893     */
20894    EAPI Eina_Bool             elm_fileselector_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20895
20896    /**
20897     * Set, programmatically, the @b directory that a given file
20898     * selector widget will display contents from
20899     *
20900     * @param obj The file selector object
20901     * @param path The path to display in @p obj
20902     *
20903     * This will change the @b directory that @p obj is displaying. It
20904     * will also clear the text entry area on the @p obj object, which
20905     * displays select files' names.
20906     *
20907     * @see elm_fileselector_path_get()
20908     *
20909     * @ingroup Fileselector
20910     */
20911    EAPI void                  elm_fileselector_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
20912
20913    /**
20914     * Get the parent directory's path that a given file selector
20915     * widget is displaying
20916     *
20917     * @param obj The file selector object
20918     * @return The (full) path of the directory the file selector is
20919     * displaying, a @b stringshared string
20920     *
20921     * @see elm_fileselector_path_set()
20922     *
20923     * @ingroup Fileselector
20924     */
20925    EAPI const char           *elm_fileselector_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20926
20927    /**
20928     * Set, programmatically, the currently selected file/directory in
20929     * the given file selector widget
20930     *
20931     * @param obj The file selector object
20932     * @param path The (full) path to a file or directory
20933     * @return @c EINA_TRUE on success, @c EINA_FALSE on failure. The
20934     * latter case occurs if the directory or file pointed to do not
20935     * exist.
20936     *
20937     * @see elm_fileselector_selected_get()
20938     *
20939     * @ingroup Fileselector
20940     */
20941    EAPI Eina_Bool             elm_fileselector_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
20942
20943    /**
20944     * Get the currently selected item's (full) path, in the given file
20945     * selector widget
20946     *
20947     * @param obj The file selector object
20948     * @return The absolute path of the selected item, a @b
20949     * stringshared string
20950     *
20951     * @note Custom editions on @p obj object's text entry, if made,
20952     * will appear on the return string of this function, naturally.
20953     *
20954     * @see elm_fileselector_selected_set() for more details
20955     *
20956     * @ingroup Fileselector
20957     */
20958    EAPI const char           *elm_fileselector_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20959
20960    /**
20961     * Set the mode in which a given file selector widget will display
20962     * (layout) file system entries in its view
20963     *
20964     * @param obj The file selector object
20965     * @param mode The mode of the fileselector, being it one of
20966     * #ELM_FILESELECTOR_LIST (default) or #ELM_FILESELECTOR_GRID. The
20967     * first one, naturally, will display the files in a list. The
20968     * latter will make the widget to display its entries in a grid
20969     * form.
20970     *
20971     * @note By using elm_fileselector_expandable_set(), the user may
20972     * trigger a tree view for that list.
20973     *
20974     * @note If Elementary is built with support of the Ethumb
20975     * thumbnailing library, the second form of view will display
20976     * preview thumbnails of files which it supports. You must have
20977     * elm_need_ethumb() called in your Elementary for thumbnailing to
20978     * work, though.
20979     *
20980     * @see elm_fileselector_expandable_set().
20981     * @see elm_fileselector_mode_get().
20982     *
20983     * @ingroup Fileselector
20984     */
20985    EAPI void                  elm_fileselector_mode_set(Evas_Object *obj, Elm_Fileselector_Mode mode) EINA_ARG_NONNULL(1);
20986
20987    /**
20988     * Get the mode in which a given file selector widget is displaying
20989     * (layouting) file system entries in its view
20990     *
20991     * @param obj The fileselector object
20992     * @return The mode in which the fileselector is at
20993     *
20994     * @see elm_fileselector_mode_set() for more details
20995     *
20996     * @ingroup Fileselector
20997     */
20998    EAPI Elm_Fileselector_Mode elm_fileselector_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20999
21000    /**
21001     * @}
21002     */
21003
21004    /**
21005     * @defgroup Progressbar Progress bar
21006     *
21007     * The progress bar is a widget for visually representing the
21008     * progress status of a given job/task.
21009     *
21010     * A progress bar may be horizontal or vertical. It may display an
21011     * icon besides it, as well as primary and @b units labels. The
21012     * former is meant to label the widget as a whole, while the
21013     * latter, which is formatted with floating point values (and thus
21014     * accepts a <c>printf</c>-style format string, like <c>"%1.2f
21015     * units"</c>), is meant to label the widget's <b>progress
21016     * value</b>. Label, icon and unit strings/objects are @b optional
21017     * for progress bars.
21018     *
21019     * A progress bar may be @b inverted, in which state it gets its
21020     * values inverted, with high values being on the left or top and
21021     * low values on the right or bottom, as opposed to normally have
21022     * the low values on the former and high values on the latter,
21023     * respectively, for horizontal and vertical modes.
21024     *
21025     * The @b span of the progress, as set by
21026     * elm_progressbar_span_size_set(), is its length (horizontally or
21027     * vertically), unless one puts size hints on the widget to expand
21028     * on desired directions, by any container. That length will be
21029     * scaled by the object or applications scaling factor. At any
21030     * point code can query the progress bar for its value with
21031     * elm_progressbar_value_get().
21032     *
21033     * Available widget styles for progress bars:
21034     * - @c "default"
21035     * - @c "wheel" (simple style, no text, no progression, only
21036     *      "pulse" effect is available)
21037     *
21038     * Default contents parts of the progressbar widget that you can use for are:
21039     * @li "icon" - A icon of the progressbar
21040     * 
21041     * Here is an example on its usage:
21042     * @li @ref progressbar_example
21043     */
21044
21045    /**
21046     * Add a new progress bar widget to the given parent Elementary
21047     * (container) object
21048     *
21049     * @param parent The parent object
21050     * @return a new progress bar widget handle or @c NULL, on errors
21051     *
21052     * This function inserts a new progress bar widget on the canvas.
21053     *
21054     * @ingroup Progressbar
21055     */
21056    EAPI Evas_Object *elm_progressbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21057
21058    /**
21059     * Set whether a given progress bar widget is at "pulsing mode" or
21060     * not.
21061     *
21062     * @param obj The progress bar object
21063     * @param pulse @c EINA_TRUE to put @p obj in pulsing mode,
21064     * @c EINA_FALSE to put it back to its default one
21065     *
21066     * By default, progress bars will display values from the low to
21067     * high value boundaries. There are, though, contexts in which the
21068     * state of progression of a given task is @b unknown.  For those,
21069     * one can set a progress bar widget to a "pulsing state", to give
21070     * the user an idea that some computation is being held, but
21071     * without exact progress values. In the default theme it will
21072     * animate its bar with the contents filling in constantly and back
21073     * to non-filled, in a loop. To start and stop this pulsing
21074     * animation, one has to explicitly call elm_progressbar_pulse().
21075     *
21076     * @see elm_progressbar_pulse_get()
21077     * @see elm_progressbar_pulse()
21078     *
21079     * @ingroup Progressbar
21080     */
21081    EAPI void         elm_progressbar_pulse_set(Evas_Object *obj, Eina_Bool pulse) EINA_ARG_NONNULL(1);
21082
21083    /**
21084     * Get whether a given progress bar widget is at "pulsing mode" or
21085     * not.
21086     *
21087     * @param obj The progress bar object
21088     * @return @c EINA_TRUE, if @p obj is in pulsing mode, @c EINA_FALSE
21089     * if it's in the default one (and on errors)
21090     *
21091     * @ingroup Progressbar
21092     */
21093    EAPI Eina_Bool    elm_progressbar_pulse_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21094
21095    /**
21096     * Start/stop a given progress bar "pulsing" animation, if its
21097     * under that mode
21098     *
21099     * @param obj The progress bar object
21100     * @param state @c EINA_TRUE, to @b start the pulsing animation,
21101     * @c EINA_FALSE to @b stop it
21102     *
21103     * @note This call won't do anything if @p obj is not under "pulsing mode".
21104     *
21105     * @see elm_progressbar_pulse_set() for more details.
21106     *
21107     * @ingroup Progressbar
21108     */
21109    EAPI void         elm_progressbar_pulse(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
21110
21111    /**
21112     * Set the progress value (in percentage) on a given progress bar
21113     * widget
21114     *
21115     * @param obj The progress bar object
21116     * @param val The progress value (@b must be between @c 0.0 and @c
21117     * 1.0)
21118     *
21119     * Use this call to set progress bar levels.
21120     *
21121     * @note If you passes a value out of the specified range for @p
21122     * val, it will be interpreted as the @b closest of the @b boundary
21123     * values in the range.
21124     *
21125     * @ingroup Progressbar
21126     */
21127    EAPI void         elm_progressbar_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
21128
21129    /**
21130     * Get the progress value (in percentage) on a given progress bar
21131     * widget
21132     *
21133     * @param obj The progress bar object
21134     * @return The value of the progressbar
21135     *
21136     * @see elm_progressbar_value_set() for more details
21137     *
21138     * @ingroup Progressbar
21139     */
21140    EAPI double       elm_progressbar_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21141
21142    /**
21143     * Set the label of a given progress bar widget
21144     *
21145     * @param obj The progress bar object
21146     * @param label The text label string, in UTF-8
21147     *
21148     * @ingroup Progressbar
21149     * @deprecated use elm_object_text_set() instead.
21150     */
21151    EINA_DEPRECATED EAPI void         elm_progressbar_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
21152
21153    /**
21154     * Get the label of a given progress bar widget
21155     *
21156     * @param obj The progressbar object
21157     * @return The text label string, in UTF-8
21158     *
21159     * @ingroup Progressbar
21160     * @deprecated use elm_object_text_set() instead.
21161     */
21162    EINA_DEPRECATED EAPI const char  *elm_progressbar_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21163
21164    /**
21165     * Set the icon object of a given progress bar widget
21166     *
21167     * @param obj The progress bar object
21168     * @param icon The icon object
21169     *
21170     * Use this call to decorate @p obj with an icon next to it.
21171     *
21172     * @note Once the icon object is set, a previously set one will be
21173     * deleted. If you want to keep that old content object, use the
21174     * elm_progressbar_icon_unset() function.
21175     *
21176     * @see elm_progressbar_icon_get()
21177     * @deprecated use elm_object_content_part_set() instead.
21178     *
21179     * @ingroup Progressbar
21180     */
21181    EAPI void         elm_progressbar_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
21182
21183    /**
21184     * Retrieve the icon object set for a given progress bar widget
21185     *
21186     * @param obj The progress bar object
21187     * @return The icon object's handle, if @p obj had one set, or @c NULL,
21188     * otherwise (and on errors)
21189     *
21190     * @see elm_progressbar_icon_set() for more details
21191     * @deprecated use elm_object_content_part_get() instead.
21192     *
21193     * @ingroup Progressbar
21194     */
21195    EAPI Evas_Object *elm_progressbar_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21196
21197    /**
21198     * Unset an icon set on a given progress bar widget
21199     *
21200     * @param obj The progress bar object
21201     * @return The icon object that was being used, if any was set, or
21202     * @c NULL, otherwise (and on errors)
21203     *
21204     * This call will unparent and return the icon object which was set
21205     * for this widget, previously, on success.
21206     *
21207     * @see elm_progressbar_icon_set() for more details
21208     * @deprecated use elm_object_content_part_unset() instead.
21209     *
21210     * @ingroup Progressbar
21211     */
21212    EAPI Evas_Object *elm_progressbar_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
21213
21214    /**
21215     * Set the (exact) length of the bar region of a given progress bar
21216     * widget
21217     *
21218     * @param obj The progress bar object
21219     * @param size The length of the progress bar's bar region
21220     *
21221     * This sets the minimum width (when in horizontal mode) or height
21222     * (when in vertical mode) of the actual bar area of the progress
21223     * bar @p obj. This in turn affects the object's minimum size. Use
21224     * this when you're not setting other size hints expanding on the
21225     * given direction (like weight and alignment hints) and you would
21226     * like it to have a specific size.
21227     *
21228     * @note Icon, label and unit text around @p obj will require their
21229     * own space, which will make @p obj to require more the @p size,
21230     * actually.
21231     *
21232     * @see elm_progressbar_span_size_get()
21233     *
21234     * @ingroup Progressbar
21235     */
21236    EAPI void         elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
21237
21238    /**
21239     * Get the length set for the bar region of a given progress bar
21240     * widget
21241     *
21242     * @param obj The progress bar object
21243     * @return The length of the progress bar's bar region
21244     *
21245     * If that size was not set previously, with
21246     * elm_progressbar_span_size_set(), this call will return @c 0.
21247     *
21248     * @ingroup Progressbar
21249     */
21250    EAPI Evas_Coord   elm_progressbar_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21251
21252    /**
21253     * Set the format string for a given progress bar widget's units
21254     * label
21255     *
21256     * @param obj The progress bar object
21257     * @param format The format string for @p obj's units label
21258     *
21259     * If @c NULL is passed on @p format, it will make @p obj's units
21260     * area to be hidden completely. If not, it'll set the <b>format
21261     * string</b> for the units label's @b text. The units label is
21262     * provided a floating point value, so the units text is up display
21263     * at most one floating point falue. Note that the units label is
21264     * optional. Use a format string such as "%1.2f meters" for
21265     * example.
21266     *
21267     * @note The default format string for a progress bar is an integer
21268     * percentage, as in @c "%.0f %%".
21269     *
21270     * @see elm_progressbar_unit_format_get()
21271     *
21272     * @ingroup Progressbar
21273     */
21274    EAPI void         elm_progressbar_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
21275
21276    /**
21277     * Retrieve the format string set for a given progress bar widget's
21278     * units label
21279     *
21280     * @param obj The progress bar object
21281     * @return The format set string for @p obj's units label or
21282     * @c NULL, if none was set (and on errors)
21283     *
21284     * @see elm_progressbar_unit_format_set() for more details
21285     *
21286     * @ingroup Progressbar
21287     */
21288    EAPI const char  *elm_progressbar_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21289
21290    /**
21291     * Set the orientation of a given progress bar widget
21292     *
21293     * @param obj The progress bar object
21294     * @param horizontal Use @c EINA_TRUE to make @p obj to be
21295     * @b horizontal, @c EINA_FALSE to make it @b vertical
21296     *
21297     * Use this function to change how your progress bar is to be
21298     * disposed: vertically or horizontally.
21299     *
21300     * @see elm_progressbar_horizontal_get()
21301     *
21302     * @ingroup Progressbar
21303     */
21304    EAPI void         elm_progressbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
21305
21306    /**
21307     * Retrieve the orientation of a given progress bar widget
21308     *
21309     * @param obj The progress bar object
21310     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
21311     * @c EINA_FALSE if it's @b vertical (and on errors)
21312     *
21313     * @see elm_progressbar_horizontal_set() for more details
21314     *
21315     * @ingroup Progressbar
21316     */
21317    EAPI Eina_Bool    elm_progressbar_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21318
21319    /**
21320     * Invert a given progress bar widget's displaying values order
21321     *
21322     * @param obj The progress bar object
21323     * @param inverted Use @c EINA_TRUE to make @p obj inverted,
21324     * @c EINA_FALSE to bring it back to default, non-inverted values.
21325     *
21326     * A progress bar may be @b inverted, in which state it gets its
21327     * values inverted, with high values being on the left or top and
21328     * low values on the right or bottom, as opposed to normally have
21329     * the low values on the former and high values on the latter,
21330     * respectively, for horizontal and vertical modes.
21331     *
21332     * @see elm_progressbar_inverted_get()
21333     *
21334     * @ingroup Progressbar
21335     */
21336    EAPI void         elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
21337
21338    /**
21339     * Get whether a given progress bar widget's displaying values are
21340     * inverted or not
21341     *
21342     * @param obj The progress bar object
21343     * @return @c EINA_TRUE, if @p obj has inverted values,
21344     * @c EINA_FALSE otherwise (and on errors)
21345     *
21346     * @see elm_progressbar_inverted_set() for more details
21347     *
21348     * @ingroup Progressbar
21349     */
21350    EAPI Eina_Bool    elm_progressbar_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21351
21352    /**
21353     * @defgroup Separator Separator
21354     *
21355     * @brief Separator is a very thin object used to separate other objects.
21356     *
21357     * A separator can be vertical or horizontal.
21358     *
21359     * @ref tutorial_separator is a good example of how to use a separator.
21360     * @{
21361     */
21362    /**
21363     * @brief Add a separator object to @p parent
21364     *
21365     * @param parent The parent object
21366     *
21367     * @return The separator object, or NULL upon failure
21368     */
21369    EAPI Evas_Object *elm_separator_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21370    /**
21371     * @brief Set the horizontal mode of a separator object
21372     *
21373     * @param obj The separator object
21374     * @param horizontal If true, the separator is horizontal
21375     */
21376    EAPI void         elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
21377    /**
21378     * @brief Get the horizontal mode of a separator object
21379     *
21380     * @param obj The separator object
21381     * @return If true, the separator is horizontal
21382     *
21383     * @see elm_separator_horizontal_set()
21384     */
21385    EAPI Eina_Bool    elm_separator_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21386    /**
21387     * @}
21388     */
21389
21390    /**
21391     * @defgroup Spinner Spinner
21392     * @ingroup Elementary
21393     *
21394     * @image html img/widget/spinner/preview-00.png
21395     * @image latex img/widget/spinner/preview-00.eps
21396     *
21397     * A spinner is a widget which allows the user to increase or decrease
21398     * numeric values using arrow buttons, or edit values directly, clicking
21399     * over it and typing the new value.
21400     *
21401     * By default the spinner will not wrap and has a label
21402     * of "%.0f" (just showing the integer value of the double).
21403     *
21404     * A spinner has a label that is formatted with floating
21405     * point values and thus accepts a printf-style format string, like
21406     * ā€œ%1.2f unitsā€.
21407     *
21408     * It also allows specific values to be replaced by pre-defined labels.
21409     *
21410     * Smart callbacks one can register to:
21411     *
21412     * - "changed" - Whenever the spinner value is changed.
21413     * - "delay,changed" - A short time after the value is changed by the user.
21414     *    This will be called only when the user stops dragging for a very short
21415     *    period or when they release their finger/mouse, so it avoids possibly
21416     *    expensive reactions to the value change.
21417     *
21418     * Available styles for it:
21419     * - @c "default";
21420     * - @c "vertical": up/down buttons at the right side and text left aligned.
21421     *
21422     * Here is an example on its usage:
21423     * @ref spinner_example
21424     */
21425
21426    /**
21427     * @addtogroup Spinner
21428     * @{
21429     */
21430
21431    /**
21432     * Add a new spinner widget to the given parent Elementary
21433     * (container) object.
21434     *
21435     * @param parent The parent object.
21436     * @return a new spinner widget handle or @c NULL, on errors.
21437     *
21438     * This function inserts a new spinner widget on the canvas.
21439     *
21440     * @ingroup Spinner
21441     *
21442     */
21443    EAPI Evas_Object *elm_spinner_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21444
21445    /**
21446     * Set the format string of the displayed label.
21447     *
21448     * @param obj The spinner object.
21449     * @param fmt The format string for the label display.
21450     *
21451     * If @c NULL, this sets the format to "%.0f". If not it sets the format
21452     * string for the label text. The label text is provided a floating point
21453     * value, so the label text can display up to 1 floating point value.
21454     * Note that this is optional.
21455     *
21456     * Use a format string such as "%1.2f meters" for example, and it will
21457     * display values like: "3.14 meters" for a value equal to 3.14159.
21458     *
21459     * Default is "%0.f".
21460     *
21461     * @see elm_spinner_label_format_get()
21462     *
21463     * @ingroup Spinner
21464     */
21465    EAPI void         elm_spinner_label_format_set(Evas_Object *obj, const char *fmt) EINA_ARG_NONNULL(1);
21466
21467    /**
21468     * Get the label format of the spinner.
21469     *
21470     * @param obj The spinner object.
21471     * @return The text label format string in UTF-8.
21472     *
21473     * @see elm_spinner_label_format_set() for details.
21474     *
21475     * @ingroup Spinner
21476     */
21477    EAPI const char  *elm_spinner_label_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21478
21479    /**
21480     * Set the minimum and maximum values for the spinner.
21481     *
21482     * @param obj The spinner object.
21483     * @param min The minimum value.
21484     * @param max The maximum value.
21485     *
21486     * Define the allowed range of values to be selected by the user.
21487     *
21488     * If actual value is less than @p min, it will be updated to @p min. If it
21489     * is bigger then @p max, will be updated to @p max. Actual value can be
21490     * get with elm_spinner_value_get().
21491     *
21492     * By default, min is equal to 0, and max is equal to 100.
21493     *
21494     * @warning Maximum must be greater than minimum.
21495     *
21496     * @see elm_spinner_min_max_get()
21497     *
21498     * @ingroup Spinner
21499     */
21500    EAPI void         elm_spinner_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
21501
21502    /**
21503     * Get the minimum and maximum values of the spinner.
21504     *
21505     * @param obj The spinner object.
21506     * @param min Pointer where to store the minimum value.
21507     * @param max Pointer where to store the maximum value.
21508     *
21509     * @note If only one value is needed, the other pointer can be passed
21510     * as @c NULL.
21511     *
21512     * @see elm_spinner_min_max_set() for details.
21513     *
21514     * @ingroup Spinner
21515     */
21516    EAPI void         elm_spinner_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
21517
21518    /**
21519     * Set the step used to increment or decrement the spinner value.
21520     *
21521     * @param obj The spinner object.
21522     * @param step The step value.
21523     *
21524     * This value will be incremented or decremented to the displayed value.
21525     * It will be incremented while the user keep right or top arrow pressed,
21526     * and will be decremented while the user keep left or bottom arrow pressed.
21527     *
21528     * The interval to increment / decrement can be set with
21529     * elm_spinner_interval_set().
21530     *
21531     * By default step value is equal to 1.
21532     *
21533     * @see elm_spinner_step_get()
21534     *
21535     * @ingroup Spinner
21536     */
21537    EAPI void         elm_spinner_step_set(Evas_Object *obj, double step) EINA_ARG_NONNULL(1);
21538
21539    /**
21540     * Get the step used to increment or decrement the spinner value.
21541     *
21542     * @param obj The spinner object.
21543     * @return The step value.
21544     *
21545     * @see elm_spinner_step_get() for more details.
21546     *
21547     * @ingroup Spinner
21548     */
21549    EAPI double       elm_spinner_step_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21550
21551    /**
21552     * Set the value the spinner displays.
21553     *
21554     * @param obj The spinner object.
21555     * @param val The value to be displayed.
21556     *
21557     * Value will be presented on the label following format specified with
21558     * elm_spinner_format_set().
21559     *
21560     * @warning The value must to be between min and max values. This values
21561     * are set by elm_spinner_min_max_set().
21562     *
21563     * @see elm_spinner_value_get().
21564     * @see elm_spinner_format_set().
21565     * @see elm_spinner_min_max_set().
21566     *
21567     * @ingroup Spinner
21568     */
21569    EAPI void         elm_spinner_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
21570
21571    /**
21572     * Get the value displayed by the spinner.
21573     *
21574     * @param obj The spinner object.
21575     * @return The value displayed.
21576     *
21577     * @see elm_spinner_value_set() for details.
21578     *
21579     * @ingroup Spinner
21580     */
21581    EAPI double       elm_spinner_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21582
21583    /**
21584     * Set whether the spinner should wrap when it reaches its
21585     * minimum or maximum value.
21586     *
21587     * @param obj The spinner object.
21588     * @param wrap @c EINA_TRUE to enable wrap or @c EINA_FALSE to
21589     * disable it.
21590     *
21591     * Disabled by default. If disabled, when the user tries to increment the
21592     * value,
21593     * but displayed value plus step value is bigger than maximum value,
21594     * the spinner
21595     * won't allow it. The same happens when the user tries to decrement it,
21596     * but the value less step is less than minimum value.
21597     *
21598     * When wrap is enabled, in such situations it will allow these changes,
21599     * but will get the value that would be less than minimum and subtracts
21600     * from maximum. Or add the value that would be more than maximum to
21601     * the minimum.
21602     *
21603     * E.g.:
21604     * @li min value = 10
21605     * @li max value = 50
21606     * @li step value = 20
21607     * @li displayed value = 20
21608     *
21609     * When the user decrement value (using left or bottom arrow), it will
21610     * displays @c 40, because max - (min - (displayed - step)) is
21611     * @c 50 - (@c 10 - (@c 20 - @c 20)) = @c 40.
21612     *
21613     * @see elm_spinner_wrap_get().
21614     *
21615     * @ingroup Spinner
21616     */
21617    EAPI void         elm_spinner_wrap_set(Evas_Object *obj, Eina_Bool wrap) EINA_ARG_NONNULL(1);
21618
21619    /**
21620     * Get whether the spinner should wrap when it reaches its
21621     * minimum or maximum value.
21622     *
21623     * @param obj The spinner object
21624     * @return @c EINA_TRUE means wrap is enabled. @c EINA_FALSE indicates
21625     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
21626     *
21627     * @see elm_spinner_wrap_set() for details.
21628     *
21629     * @ingroup Spinner
21630     */
21631    EAPI Eina_Bool    elm_spinner_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21632
21633    /**
21634     * Set whether the spinner can be directly edited by the user or not.
21635     *
21636     * @param obj The spinner object.
21637     * @param editable @c EINA_TRUE to allow users to edit it or @c EINA_FALSE to
21638     * don't allow users to edit it directly.
21639     *
21640     * Spinner objects can have edition @b disabled, in which state they will
21641     * be changed only by arrows.
21642     * Useful for contexts
21643     * where you don't want your users to interact with it writting the value.
21644     * Specially
21645     * when using special values, the user can see real value instead
21646     * of special label on edition.
21647     *
21648     * It's enabled by default.
21649     *
21650     * @see elm_spinner_editable_get()
21651     *
21652     * @ingroup Spinner
21653     */
21654    EAPI void         elm_spinner_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
21655
21656    /**
21657     * Get whether the spinner can be directly edited by the user or not.
21658     *
21659     * @param obj The spinner object.
21660     * @return @c EINA_TRUE means edition is enabled. @c EINA_FALSE indicates
21661     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
21662     *
21663     * @see elm_spinner_editable_set() for details.
21664     *
21665     * @ingroup Spinner
21666     */
21667    EAPI Eina_Bool    elm_spinner_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21668
21669    /**
21670     * Set a special string to display in the place of the numerical value.
21671     *
21672     * @param obj The spinner object.
21673     * @param value The value to be replaced.
21674     * @param label The label to be used.
21675     *
21676     * It's useful for cases when a user should select an item that is
21677     * better indicated by a label than a value. For example, weekdays or months.
21678     *
21679     * E.g.:
21680     * @code
21681     * sp = elm_spinner_add(win);
21682     * elm_spinner_min_max_set(sp, 1, 3);
21683     * elm_spinner_special_value_add(sp, 1, "January");
21684     * elm_spinner_special_value_add(sp, 2, "February");
21685     * elm_spinner_special_value_add(sp, 3, "March");
21686     * evas_object_show(sp);
21687     * @endcode
21688     *
21689     * @ingroup Spinner
21690     */
21691    EAPI void         elm_spinner_special_value_add(Evas_Object *obj, double value, const char *label) EINA_ARG_NONNULL(1);
21692
21693    /**
21694     * Set the interval on time updates for an user mouse button hold
21695     * on spinner widgets' arrows.
21696     *
21697     * @param obj The spinner object.
21698     * @param interval The (first) interval value in seconds.
21699     *
21700     * This interval value is @b decreased while the user holds the
21701     * mouse pointer either incrementing or decrementing spinner's value.
21702     *
21703     * This helps the user to get to a given value distant from the
21704     * current one easier/faster, as it will start to change quicker and
21705     * quicker on mouse button holds.
21706     *
21707     * The calculation for the next change interval value, starting from
21708     * the one set with this call, is the previous interval divided by
21709     * @c 1.05, so it decreases a little bit.
21710     *
21711     * The default starting interval value for automatic changes is
21712     * @c 0.85 seconds.
21713     *
21714     * @see elm_spinner_interval_get()
21715     *
21716     * @ingroup Spinner
21717     */
21718    EAPI void         elm_spinner_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
21719
21720    /**
21721     * Get the interval on time updates for an user mouse button hold
21722     * on spinner widgets' arrows.
21723     *
21724     * @param obj The spinner object.
21725     * @return The (first) interval value, in seconds, set on it.
21726     *
21727     * @see elm_spinner_interval_set() for more details.
21728     *
21729     * @ingroup Spinner
21730     */
21731    EAPI double       elm_spinner_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21732
21733    /**
21734     * @}
21735     */
21736
21737    /**
21738     * @defgroup Index Index
21739     *
21740     * @image html img/widget/index/preview-00.png
21741     * @image latex img/widget/index/preview-00.eps
21742     *
21743     * An index widget gives you an index for fast access to whichever
21744     * group of other UI items one might have. It's a list of text
21745     * items (usually letters, for alphabetically ordered access).
21746     *
21747     * Index widgets are by default hidden and just appear when the
21748     * user clicks over it's reserved area in the canvas. In its
21749     * default theme, it's an area one @ref Fingers "finger" wide on
21750     * the right side of the index widget's container.
21751     *
21752     * When items on the index are selected, smart callbacks get
21753     * called, so that its user can make other container objects to
21754     * show a given area or child object depending on the index item
21755     * selected. You'd probably be using an index together with @ref
21756     * List "lists", @ref Genlist "generic lists" or @ref Gengrid
21757     * "general grids".
21758     *
21759     * Smart events one  can add callbacks for are:
21760     * - @c "changed" - When the selected index item changes. @c
21761     *      event_info is the selected item's data pointer.
21762     * - @c "delay,changed" - When the selected index item changes, but
21763     *      after a small idling period. @c event_info is the selected
21764     *      item's data pointer.
21765     * - @c "selected" - When the user releases a mouse button and
21766     *      selects an item. @c event_info is the selected item's data
21767     *      pointer.
21768     * - @c "level,up" - when the user moves a finger from the first
21769     *      level to the second level
21770     * - @c "level,down" - when the user moves a finger from the second
21771     *      level to the first level
21772     *
21773     * The @c "delay,changed" event is so that it'll wait a small time
21774     * before actually reporting those events and, moreover, just the
21775     * last event happening on those time frames will actually be
21776     * reported.
21777     *
21778     * Here are some examples on its usage:
21779     * @li @ref index_example_01
21780     * @li @ref index_example_02
21781     */
21782
21783    /**
21784     * @addtogroup Index
21785     * @{
21786     */
21787
21788    typedef struct _Elm_Index_Item Elm_Index_Item; /**< Opaque handle for items of Elementary index widgets */
21789
21790    /**
21791     * Add a new index widget to the given parent Elementary
21792     * (container) object
21793     *
21794     * @param parent The parent object
21795     * @return a new index widget handle or @c NULL, on errors
21796     *
21797     * This function inserts a new index widget on the canvas.
21798     *
21799     * @ingroup Index
21800     */
21801    EAPI Evas_Object    *elm_index_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21802
21803    /**
21804     * Set whether a given index widget is or not visible,
21805     * programatically.
21806     *
21807     * @param obj The index object
21808     * @param active @c EINA_TRUE to show it, @c EINA_FALSE to hide it
21809     *
21810     * Not to be confused with visible as in @c evas_object_show() --
21811     * visible with regard to the widget's auto hiding feature.
21812     *
21813     * @see elm_index_active_get()
21814     *
21815     * @ingroup Index
21816     */
21817    EAPI void            elm_index_active_set(Evas_Object *obj, Eina_Bool active) EINA_ARG_NONNULL(1);
21818
21819    /**
21820     * Get whether a given index widget is currently visible or not.
21821     *
21822     * @param obj The index object
21823     * @return @c EINA_TRUE, if it's shown, @c EINA_FALSE otherwise
21824     *
21825     * @see elm_index_active_set() for more details
21826     *
21827     * @ingroup Index
21828     */
21829    EAPI Eina_Bool       elm_index_active_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21830
21831    /**
21832     * Set the items level for a given index widget.
21833     *
21834     * @param obj The index object.
21835     * @param level @c 0 or @c 1, the currently implemented levels.
21836     *
21837     * @see elm_index_item_level_get()
21838     *
21839     * @ingroup Index
21840     */
21841    EAPI void            elm_index_item_level_set(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
21842
21843    /**
21844     * Get the items level set for a given index widget.
21845     *
21846     * @param obj The index object.
21847     * @return @c 0 or @c 1, which are the levels @p obj might be at.
21848     *
21849     * @see elm_index_item_level_set() for more information
21850     *
21851     * @ingroup Index
21852     */
21853    EAPI int             elm_index_item_level_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21854
21855    /**
21856     * Returns the last selected item's data, for a given index widget.
21857     *
21858     * @param obj The index object.
21859     * @return The item @b data associated to the last selected item on
21860     * @p obj (or @c NULL, on errors).
21861     *
21862     * @warning The returned value is @b not an #Elm_Index_Item item
21863     * handle, but the data associated to it (see the @c item parameter
21864     * in elm_index_item_append(), as an example).
21865     *
21866     * @ingroup Index
21867     */
21868    EAPI void           *elm_index_item_selected_get(const Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
21869
21870    /**
21871     * Append a new item on a given index widget.
21872     *
21873     * @param obj The index object.
21874     * @param letter Letter under which the item should be indexed
21875     * @param item The item data to set for the index's item
21876     *
21877     * Despite the most common usage of the @p letter argument is for
21878     * single char strings, one could use arbitrary strings as index
21879     * entries.
21880     *
21881     * @c item will be the pointer returned back on @c "changed", @c
21882     * "delay,changed" and @c "selected" smart events.
21883     *
21884     * @ingroup Index
21885     */
21886    EAPI void            elm_index_item_append(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
21887
21888    /**
21889     * Prepend a new item on a given index widget.
21890     *
21891     * @param obj The index object.
21892     * @param letter Letter under which the item should be indexed
21893     * @param item The item data to set for the index's item
21894     *
21895     * Despite the most common usage of the @p letter argument is for
21896     * single char strings, one could use arbitrary strings as index
21897     * entries.
21898     *
21899     * @c item will be the pointer returned back on @c "changed", @c
21900     * "delay,changed" and @c "selected" smart events.
21901     *
21902     * @ingroup Index
21903     */
21904    EAPI void            elm_index_item_prepend(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
21905
21906    /**
21907     * Append a new item, on a given index widget, <b>after the item
21908     * having @p relative as data</b>.
21909     *
21910     * @param obj The index object.
21911     * @param letter Letter under which the item should be indexed
21912     * @param item The item data to set for the index's item
21913     * @param relative The item data of the index item to be the
21914     * predecessor of this new one
21915     *
21916     * Despite the most common usage of the @p letter argument is for
21917     * single char strings, one could use arbitrary strings as index
21918     * entries.
21919     *
21920     * @c item will be the pointer returned back on @c "changed", @c
21921     * "delay,changed" and @c "selected" smart events.
21922     *
21923     * @note If @p relative is @c NULL or if it's not found to be data
21924     * set on any previous item on @p obj, this function will behave as
21925     * elm_index_item_append().
21926     *
21927     * @ingroup Index
21928     */
21929    EAPI void            elm_index_item_append_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
21930
21931    /**
21932     * Prepend a new item, on a given index widget, <b>after the item
21933     * having @p relative as data</b>.
21934     *
21935     * @param obj The index object.
21936     * @param letter Letter under which the item should be indexed
21937     * @param item The item data to set for the index's item
21938     * @param relative The item data of the index item to be the
21939     * successor of this new one
21940     *
21941     * Despite the most common usage of the @p letter argument is for
21942     * single char strings, one could use arbitrary strings as index
21943     * entries.
21944     *
21945     * @c item will be the pointer returned back on @c "changed", @c
21946     * "delay,changed" and @c "selected" smart events.
21947     *
21948     * @note If @p relative is @c NULL or if it's not found to be data
21949     * set on any previous item on @p obj, this function will behave as
21950     * elm_index_item_prepend().
21951     *
21952     * @ingroup Index
21953     */
21954    EAPI void            elm_index_item_prepend_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
21955
21956    /**
21957     * Insert a new item into the given index widget, using @p cmp_func
21958     * function to sort items (by item handles).
21959     *
21960     * @param obj The index object.
21961     * @param letter Letter under which the item should be indexed
21962     * @param item The item data to set for the index's item
21963     * @param cmp_func The comparing function to be used to sort index
21964     * items <b>by #Elm_Index_Item item handles</b>
21965     * @param cmp_data_func A @b fallback function to be called for the
21966     * sorting of index items <b>by item data</b>). It will be used
21967     * when @p cmp_func returns @c 0 (equality), which means an index
21968     * item with provided item data already exists. To decide which
21969     * data item should be pointed to by the index item in question, @p
21970     * cmp_data_func will be used. If @p cmp_data_func returns a
21971     * non-negative value, the previous index item data will be
21972     * replaced by the given @p item pointer. If the previous data need
21973     * to be freed, it should be done by the @p cmp_data_func function,
21974     * because all references to it will be lost. If this function is
21975     * not provided (@c NULL is given), index items will be @b
21976     * duplicated, if @p cmp_func returns @c 0.
21977     *
21978     * Despite the most common usage of the @p letter argument is for
21979     * single char strings, one could use arbitrary strings as index
21980     * entries.
21981     *
21982     * @c item will be the pointer returned back on @c "changed", @c
21983     * "delay,changed" and @c "selected" smart events.
21984     *
21985     * @ingroup Index
21986     */
21987    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);
21988
21989    /**
21990     * Remove an item from a given index widget, <b>to be referenced by
21991     * it's data value</b>.
21992     *
21993     * @param obj The index object
21994     * @param item The item's data pointer for the item to be removed
21995     * from @p obj
21996     *
21997     * If a deletion callback is set, via elm_index_item_del_cb_set(),
21998     * that callback function will be called by this one.
21999     *
22000     * @warning The item to be removed from @p obj will be found via
22001     * its item data pointer, and not by an #Elm_Index_Item handle.
22002     *
22003     * @ingroup Index
22004     */
22005    EAPI void            elm_index_item_del(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
22006
22007    /**
22008     * Find a given index widget's item, <b>using item data</b>.
22009     *
22010     * @param obj The index object
22011     * @param item The item data pointed to by the desired index item
22012     * @return The index item handle, if found, or @c NULL otherwise
22013     *
22014     * @ingroup Index
22015     */
22016    EAPI Elm_Index_Item *elm_index_item_find(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
22017
22018    /**
22019     * Removes @b all items from a given index widget.
22020     *
22021     * @param obj The index object.
22022     *
22023     * If deletion callbacks are set, via elm_index_item_del_cb_set(),
22024     * that callback function will be called for each item in @p obj.
22025     *
22026     * @ingroup Index
22027     */
22028    EAPI void            elm_index_item_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
22029
22030    /**
22031     * Go to a given items level on a index widget
22032     *
22033     * @param obj The index object
22034     * @param level The index level (one of @c 0 or @c 1)
22035     *
22036     * @ingroup Index
22037     */
22038    EAPI void            elm_index_item_go(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
22039
22040    /**
22041     * Return the data associated with a given index widget item
22042     *
22043     * @param it The index widget item handle
22044     * @return The data associated with @p it
22045     *
22046     * @see elm_index_item_data_set()
22047     *
22048     * @ingroup Index
22049     */
22050    EAPI void           *elm_index_item_data_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
22051
22052    /**
22053     * Set the data associated with a given index widget item
22054     *
22055     * @param it The index widget item handle
22056     * @param data The new data pointer to set to @p it
22057     *
22058     * This sets new item data on @p it.
22059     *
22060     * @warning The old data pointer won't be touched by this function, so
22061     * the user had better to free that old data himself/herself.
22062     *
22063     * @ingroup Index
22064     */
22065    EAPI void            elm_index_item_data_set(Elm_Index_Item *it, const void *data) EINA_ARG_NONNULL(1);
22066
22067    /**
22068     * Set the function to be called when a given index widget item is freed.
22069     *
22070     * @param it The item to set the callback on
22071     * @param func The function to call on the item's deletion
22072     *
22073     * When called, @p func will have both @c data and @c event_info
22074     * arguments with the @p it item's data value and, naturally, the
22075     * @c obj argument with a handle to the parent index widget.
22076     *
22077     * @ingroup Index
22078     */
22079    EAPI void            elm_index_item_del_cb_set(Elm_Index_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
22080
22081    /**
22082     * Get the letter (string) set on a given index widget item.
22083     *
22084     * @param it The index item handle
22085     * @return The letter string set on @p it
22086     *
22087     * @ingroup Index
22088     */
22089    EAPI const char     *elm_index_item_letter_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
22090
22091    /**
22092     */
22093    EAPI void            elm_index_button_image_invisible_set(Evas_Object *obj, Eina_Bool invisible) EINA_ARG_NONNULL(1);
22094
22095    /**
22096     * @}
22097     */
22098
22099    /**
22100     * @defgroup Photocam Photocam
22101     *
22102     * @image html img/widget/photocam/preview-00.png
22103     * @image latex img/widget/photocam/preview-00.eps
22104     *
22105     * This is a widget specifically for displaying high-resolution digital
22106     * camera photos giving speedy feedback (fast load), low memory footprint
22107     * and zooming and panning as well as fitting logic. It is entirely focused
22108     * on jpeg images, and takes advantage of properties of the jpeg format (via
22109     * evas loader features in the jpeg loader).
22110     *
22111     * Signals that you can add callbacks for are:
22112     * @li "clicked" - This is called when a user has clicked the photo without
22113     *                 dragging around.
22114     * @li "press" - This is called when a user has pressed down on the photo.
22115     * @li "longpressed" - This is called when a user has pressed down on the
22116     *                     photo for a long time without dragging around.
22117     * @li "clicked,double" - This is called when a user has double-clicked the
22118     *                        photo.
22119     * @li "load" - Photo load begins.
22120     * @li "loaded" - This is called when the image file load is complete for the
22121     *                first view (low resolution blurry version).
22122     * @li "load,detail" - Photo detailed data load begins.
22123     * @li "loaded,detail" - This is called when the image file load is complete
22124     *                      for the detailed image data (full resolution needed).
22125     * @li "zoom,start" - Zoom animation started.
22126     * @li "zoom,stop" - Zoom animation stopped.
22127     * @li "zoom,change" - Zoom changed when using an auto zoom mode.
22128     * @li "scroll" - the content has been scrolled (moved)
22129     * @li "scroll,anim,start" - scrolling animation has started
22130     * @li "scroll,anim,stop" - scrolling animation has stopped
22131     * @li "scroll,drag,start" - dragging the contents around has started
22132     * @li "scroll,drag,stop" - dragging the contents around has stopped
22133     *
22134     * @ref tutorial_photocam shows the API in action.
22135     * @{
22136     */
22137    /**
22138     * @brief Types of zoom available.
22139     */
22140    typedef enum _Elm_Photocam_Zoom_Mode
22141      {
22142         ELM_PHOTOCAM_ZOOM_MODE_MANUAL = 0, /**< Zoom controled normally by elm_photocam_zoom_set */
22143         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT, /**< Zoom until photo fits in photocam */
22144         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL, /**< Zoom until photo fills photocam */
22145         ELM_PHOTOCAM_ZOOM_MODE_LAST
22146      } Elm_Photocam_Zoom_Mode;
22147    /**
22148     * @brief Add a new Photocam object
22149     *
22150     * @param parent The parent object
22151     * @return The new object or NULL if it cannot be created
22152     */
22153    EAPI Evas_Object           *elm_photocam_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22154    /**
22155     * @brief Set the photo file to be shown
22156     *
22157     * @param obj The photocam object
22158     * @param file The photo file
22159     * @return The return error (see EVAS_LOAD_ERROR_NONE, EVAS_LOAD_ERROR_GENERIC etc.)
22160     *
22161     * This sets (and shows) the specified file (with a relative or absolute
22162     * path) and will return a load error (same error that
22163     * evas_object_image_load_error_get() will return). The image will change and
22164     * adjust its size at this point and begin a background load process for this
22165     * photo that at some time in the future will be displayed at the full
22166     * quality needed.
22167     */
22168    EAPI Evas_Load_Error        elm_photocam_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
22169    /**
22170     * @brief Returns the path of the current image file
22171     *
22172     * @param obj The photocam object
22173     * @return Returns the path
22174     *
22175     * @see elm_photocam_file_set()
22176     */
22177    EAPI const char            *elm_photocam_file_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22178    /**
22179     * @brief Set the zoom level of the photo
22180     *
22181     * @param obj The photocam object
22182     * @param zoom The zoom level to set
22183     *
22184     * This sets the zoom level. 1 will be 1:1 pixel for pixel. 2 will be 2:1
22185     * (that is 2x2 photo pixels will display as 1 on-screen pixel). 4:1 will be
22186     * 4x4 photo pixels as 1 screen pixel, and so on. The @p zoom parameter must
22187     * be greater than 0. It is usggested to stick to powers of 2. (1, 2, 4, 8,
22188     * 16, 32, etc.).
22189     */
22190    EAPI void                   elm_photocam_zoom_set(Evas_Object *obj, double zoom) EINA_ARG_NONNULL(1);
22191    /**
22192     * @brief Get the zoom level of the photo
22193     *
22194     * @param obj The photocam object
22195     * @return The current zoom level
22196     *
22197     * This returns the current zoom level of the photocam object. Note that if
22198     * you set the fill mode to other than ELM_PHOTOCAM_ZOOM_MODE_MANUAL
22199     * (which is the default), the zoom level may be changed at any time by the
22200     * photocam object itself to account for photo size and photocam viewpoer
22201     * size.
22202     *
22203     * @see elm_photocam_zoom_set()
22204     * @see elm_photocam_zoom_mode_set()
22205     */
22206    EAPI double                 elm_photocam_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22207    /**
22208     * @brief Set the zoom mode
22209     *
22210     * @param obj The photocam object
22211     * @param mode The desired mode
22212     *
22213     * This sets the zoom mode to manual or one of several automatic levels.
22214     * Manual (ELM_PHOTOCAM_ZOOM_MODE_MANUAL) means that zoom is set manually by
22215     * elm_photocam_zoom_set() and will stay at that level until changed by code
22216     * or until zoom mode is changed. This is the default mode. The Automatic
22217     * modes will allow the photocam object to automatically adjust zoom mode
22218     * based on properties. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT) will adjust zoom so
22219     * the photo fits EXACTLY inside the scroll frame with no pixels outside this
22220     * area. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL will be similar but ensure no
22221     * pixels within the frame are left unfilled.
22222     */
22223    EAPI void                   elm_photocam_zoom_mode_set(Evas_Object *obj, Elm_Photocam_Zoom_Mode mode) EINA_ARG_NONNULL(1);
22224    /**
22225     * @brief Get the zoom mode
22226     *
22227     * @param obj The photocam object
22228     * @return The current zoom mode
22229     *
22230     * This gets the current zoom mode of the photocam object.
22231     *
22232     * @see elm_photocam_zoom_mode_set()
22233     */
22234    EAPI Elm_Photocam_Zoom_Mode elm_photocam_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22235    /**
22236     * @brief Get the current image pixel width and height
22237     *
22238     * @param obj The photocam object
22239     * @param w A pointer to the width return
22240     * @param h A pointer to the height return
22241     *
22242     * This gets the current photo pixel width and height (for the original).
22243     * The size will be returned in the integers @p w and @p h that are pointed
22244     * to.
22245     */
22246    EAPI void                   elm_photocam_image_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
22247    /**
22248     * @brief Get the area of the image that is currently shown
22249     *
22250     * @param obj
22251     * @param x A pointer to the X-coordinate of region
22252     * @param y A pointer to the Y-coordinate of region
22253     * @param w A pointer to the width
22254     * @param h A pointer to the height
22255     *
22256     * @see elm_photocam_image_region_show()
22257     * @see elm_photocam_image_region_bring_in()
22258     */
22259    EAPI void                   elm_photocam_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
22260    /**
22261     * @brief Set the viewed portion of the image
22262     *
22263     * @param obj The photocam object
22264     * @param x X-coordinate of region in image original pixels
22265     * @param y Y-coordinate of region in image original pixels
22266     * @param w Width of region in image original pixels
22267     * @param h Height of region in image original pixels
22268     *
22269     * This shows the region of the image without using animation.
22270     */
22271    EAPI void                   elm_photocam_image_region_show(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
22272    /**
22273     * @brief Bring in the viewed portion of the image
22274     *
22275     * @param obj The photocam object
22276     * @param x X-coordinate of region in image original pixels
22277     * @param y Y-coordinate of region in image original pixels
22278     * @param w Width of region in image original pixels
22279     * @param h Height of region in image original pixels
22280     *
22281     * This shows the region of the image using animation.
22282     */
22283    EAPI void                   elm_photocam_image_region_bring_in(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
22284    /**
22285     * @brief Set the paused state for photocam
22286     *
22287     * @param obj The photocam object
22288     * @param paused The pause state to set
22289     *
22290     * This sets the paused state to on(EINA_TRUE) or off (EINA_FALSE) for
22291     * photocam. The default is off. This will stop zooming using animation on
22292     * zoom levels changes and change instantly. This will stop any existing
22293     * animations that are running.
22294     */
22295    EAPI void                   elm_photocam_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
22296    /**
22297     * @brief Get the paused state for photocam
22298     *
22299     * @param obj The photocam object
22300     * @return The current paused state
22301     *
22302     * This gets the current paused state for the photocam object.
22303     *
22304     * @see elm_photocam_paused_set()
22305     */
22306    EAPI Eina_Bool              elm_photocam_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22307    /**
22308     * @brief Get the internal low-res image used for photocam
22309     *
22310     * @param obj The photocam object
22311     * @return The internal image object handle, or NULL if none exists
22312     *
22313     * This gets the internal image object inside photocam. Do not modify it. It
22314     * is for inspection only, and hooking callbacks to. Nothing else. It may be
22315     * deleted at any time as well.
22316     */
22317    EAPI Evas_Object           *elm_photocam_internal_image_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22318    /**
22319     * @brief Set the photocam scrolling bouncing.
22320     *
22321     * @param obj The photocam object
22322     * @param h_bounce bouncing for horizontal
22323     * @param v_bounce bouncing for vertical
22324     */
22325    EAPI void                   elm_photocam_bounce_set(Evas_Object *obj,  Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
22326    /**
22327     * @brief Get the photocam scrolling bouncing.
22328     *
22329     * @param obj The photocam object
22330     * @param h_bounce bouncing for horizontal
22331     * @param v_bounce bouncing for vertical
22332     *
22333     * @see elm_photocam_bounce_set()
22334     */
22335    EAPI void                   elm_photocam_bounce_get(const Evas_Object *obj,  Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
22336    /**
22337     * @}
22338     */
22339
22340    /**
22341     * @defgroup Map Map
22342     * @ingroup Elementary
22343     *
22344     * @image html img/widget/map/preview-00.png
22345     * @image latex img/widget/map/preview-00.eps
22346     *
22347     * This is a widget specifically for displaying a map. It uses basically
22348     * OpenStreetMap provider http://www.openstreetmap.org/,
22349     * but custom providers can be added.
22350     *
22351     * It supports some basic but yet nice features:
22352     * @li zoom and scroll
22353     * @li markers with content to be displayed when user clicks over it
22354     * @li group of markers
22355     * @li routes
22356     *
22357     * Smart callbacks one can listen to:
22358     *
22359     * - "clicked" - This is called when a user has clicked the map without
22360     *   dragging around.
22361     * - "press" - This is called when a user has pressed down on the map.
22362     * - "longpressed" - This is called when a user has pressed down on the map
22363     *   for a long time without dragging around.
22364     * - "clicked,double" - This is called when a user has double-clicked
22365     *   the map.
22366     * - "load,detail" - Map detailed data load begins.
22367     * - "loaded,detail" - This is called when all currently visible parts of
22368     *   the map are loaded.
22369     * - "zoom,start" - Zoom animation started.
22370     * - "zoom,stop" - Zoom animation stopped.
22371     * - "zoom,change" - Zoom changed when using an auto zoom mode.
22372     * - "scroll" - the content has been scrolled (moved).
22373     * - "scroll,anim,start" - scrolling animation has started.
22374     * - "scroll,anim,stop" - scrolling animation has stopped.
22375     * - "scroll,drag,start" - dragging the contents around has started.
22376     * - "scroll,drag,stop" - dragging the contents around has stopped.
22377     * - "downloaded" - This is called when all currently required map images
22378     *   are downloaded.
22379     * - "route,load" - This is called when route request begins.
22380     * - "route,loaded" - This is called when route request ends.
22381     * - "name,load" - This is called when name request begins.
22382     * - "name,loaded- This is called when name request ends.
22383     *
22384     * Available style for map widget:
22385     * - @c "default"
22386     *
22387     * Available style for markers:
22388     * - @c "radio"
22389     * - @c "radio2"
22390     * - @c "empty"
22391     *
22392     * Available style for marker bubble:
22393     * - @c "default"
22394     *
22395     * List of examples:
22396     * @li @ref map_example_01
22397     * @li @ref map_example_02
22398     * @li @ref map_example_03
22399     */
22400
22401    /**
22402     * @addtogroup Map
22403     * @{
22404     */
22405
22406    /**
22407     * @enum _Elm_Map_Zoom_Mode
22408     * @typedef Elm_Map_Zoom_Mode
22409     *
22410     * Set map's zoom behavior. It can be set to manual or automatic.
22411     *
22412     * Default value is #ELM_MAP_ZOOM_MODE_MANUAL.
22413     *
22414     * Values <b> don't </b> work as bitmask, only one can be choosen.
22415     *
22416     * @note Valid sizes are 2^zoom, consequently the map may be smaller
22417     * than the scroller view.
22418     *
22419     * @see elm_map_zoom_mode_set()
22420     * @see elm_map_zoom_mode_get()
22421     *
22422     * @ingroup Map
22423     */
22424    typedef enum _Elm_Map_Zoom_Mode
22425      {
22426         ELM_MAP_ZOOM_MODE_MANUAL, /**< Zoom controled manually by elm_map_zoom_set(). It's set by default. */
22427         ELM_MAP_ZOOM_MODE_AUTO_FIT, /**< Zoom until map fits inside the scroll frame with no pixels outside this area. */
22428         ELM_MAP_ZOOM_MODE_AUTO_FILL, /**< Zoom until map fills scroll, ensuring no pixels are left unfilled. */
22429         ELM_MAP_ZOOM_MODE_LAST
22430      } Elm_Map_Zoom_Mode;
22431
22432    /**
22433     * @enum _Elm_Map_Route_Sources
22434     * @typedef Elm_Map_Route_Sources
22435     *
22436     * Set route service to be used. By default used source is
22437     * #ELM_MAP_ROUTE_SOURCE_YOURS.
22438     *
22439     * @see elm_map_route_source_set()
22440     * @see elm_map_route_source_get()
22441     *
22442     * @ingroup Map
22443     */
22444    typedef enum _Elm_Map_Route_Sources
22445      {
22446         ELM_MAP_ROUTE_SOURCE_YOURS, /**< Routing service http://www.yournavigation.org/ . Set by default.*/
22447         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. */
22448         ELM_MAP_ROUTE_SOURCE_ORS, /**< Open Route Service: http://www.openrouteservice.org/ . It's not working with Map yet. */
22449         ELM_MAP_ROUTE_SOURCE_LAST
22450      } Elm_Map_Route_Sources;
22451
22452    typedef enum _Elm_Map_Name_Sources
22453      {
22454         ELM_MAP_NAME_SOURCE_NOMINATIM,
22455         ELM_MAP_NAME_SOURCE_LAST
22456      } Elm_Map_Name_Sources;
22457
22458    /**
22459     * @enum _Elm_Map_Route_Type
22460     * @typedef Elm_Map_Route_Type
22461     *
22462     * Set type of transport used on route.
22463     *
22464     * @see elm_map_route_add()
22465     *
22466     * @ingroup Map
22467     */
22468    typedef enum _Elm_Map_Route_Type
22469      {
22470         ELM_MAP_ROUTE_TYPE_MOTOCAR, /**< Route should consider an automobile will be used. */
22471         ELM_MAP_ROUTE_TYPE_BICYCLE, /**< Route should consider a bicycle will be used by the user. */
22472         ELM_MAP_ROUTE_TYPE_FOOT, /**< Route should consider user will be walking. */
22473         ELM_MAP_ROUTE_TYPE_LAST
22474      } Elm_Map_Route_Type;
22475
22476    /**
22477     * @enum _Elm_Map_Route_Method
22478     * @typedef Elm_Map_Route_Method
22479     *
22480     * Set the routing method, what should be priorized, time or distance.
22481     *
22482     * @see elm_map_route_add()
22483     *
22484     * @ingroup Map
22485     */
22486    typedef enum _Elm_Map_Route_Method
22487      {
22488         ELM_MAP_ROUTE_METHOD_FASTEST, /**< Route should priorize time. */
22489         ELM_MAP_ROUTE_METHOD_SHORTEST, /**< Route should priorize distance. */
22490         ELM_MAP_ROUTE_METHOD_LAST
22491      } Elm_Map_Route_Method;
22492
22493    typedef enum _Elm_Map_Name_Method
22494      {
22495         ELM_MAP_NAME_METHOD_SEARCH,
22496         ELM_MAP_NAME_METHOD_REVERSE,
22497         ELM_MAP_NAME_METHOD_LAST
22498      } Elm_Map_Name_Method;
22499
22500    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(). */
22501    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(). */
22502    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(). */
22503    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(). */
22504    typedef struct _Elm_Map_Name            Elm_Map_Name; /**< A handle for specific coordinates. */
22505    typedef struct _Elm_Map_Track           Elm_Map_Track;
22506
22507    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. */
22508    typedef void         (*ElmMapMarkerDelFunc)      (Evas_Object *obj, Elm_Map_Marker *marker, void *data, Evas_Object *o); /**< Function to delete bubble content for marker classes. */
22509    typedef Evas_Object *(*ElmMapMarkerIconGetFunc)  (Evas_Object *obj, Elm_Map_Marker *marker, void *data); /**< Icon fetching class function for marker classes. */
22510    typedef Evas_Object *(*ElmMapGroupIconGetFunc)   (Evas_Object *obj, void *data); /**< Icon fetching class function for markers group classes. */
22511
22512    typedef char        *(*ElmMapModuleSourceFunc) (void);
22513    typedef int          (*ElmMapModuleZoomMinFunc) (void);
22514    typedef int          (*ElmMapModuleZoomMaxFunc) (void);
22515    typedef char        *(*ElmMapModuleUrlFunc) (Evas_Object *obj, int x, int y, int zoom);
22516    typedef int          (*ElmMapModuleRouteSourceFunc) (void);
22517    typedef char        *(*ElmMapModuleRouteUrlFunc) (Evas_Object *obj, char *type_name, int method, double flon, double flat, double tlon, double tlat);
22518    typedef char        *(*ElmMapModuleNameUrlFunc) (Evas_Object *obj, int method, char *name, double lon, double lat);
22519    typedef Eina_Bool    (*ElmMapModuleGeoIntoCoordFunc) (const Evas_Object *obj, int zoom, double lon, double lat, int size, int *x, int *y);
22520    typedef Eina_Bool    (*ElmMapModuleCoordIntoGeoFunc) (const Evas_Object *obj, int zoom, int x, int y, int size, double *lon, double *lat);
22521
22522    /**
22523     * Add a new map widget to the given parent Elementary (container) object.
22524     *
22525     * @param parent The parent object.
22526     * @return a new map widget handle or @c NULL, on errors.
22527     *
22528     * This function inserts a new map widget on the canvas.
22529     *
22530     * @ingroup Map
22531     */
22532    EAPI Evas_Object          *elm_map_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22533
22534    /**
22535     * Set the zoom level of the map.
22536     *
22537     * @param obj The map object.
22538     * @param zoom The zoom level to set.
22539     *
22540     * This sets the zoom level.
22541     *
22542     * It will respect limits defined by elm_map_source_zoom_min_set() and
22543     * elm_map_source_zoom_max_set().
22544     *
22545     * By default these values are 0 (world map) and 18 (maximum zoom).
22546     *
22547     * This function should be used when zoom mode is set to
22548     * #ELM_MAP_ZOOM_MODE_MANUAL. This is the default mode, and can be set
22549     * with elm_map_zoom_mode_set().
22550     *
22551     * @see elm_map_zoom_mode_set().
22552     * @see elm_map_zoom_get().
22553     *
22554     * @ingroup Map
22555     */
22556    EAPI void                  elm_map_zoom_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
22557
22558    /**
22559     * Get the zoom level of the map.
22560     *
22561     * @param obj The map object.
22562     * @return The current zoom level.
22563     *
22564     * This returns the current zoom level of the map object.
22565     *
22566     * Note that if you set the fill mode to other than #ELM_MAP_ZOOM_MODE_MANUAL
22567     * (which is the default), the zoom level may be changed at any time by the
22568     * map object itself to account for map size and map viewport size.
22569     *
22570     * @see elm_map_zoom_set() for details.
22571     *
22572     * @ingroup Map
22573     */
22574    EAPI int                   elm_map_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22575
22576    /**
22577     * Set the zoom mode used by the map object.
22578     *
22579     * @param obj The map object.
22580     * @param mode The zoom mode of the map, being it one of
22581     * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
22582     * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
22583     *
22584     * This sets the zoom mode to manual or one of the automatic levels.
22585     * Manual (#ELM_MAP_ZOOM_MODE_MANUAL) means that zoom is set manually by
22586     * elm_map_zoom_set() and will stay at that level until changed by code
22587     * or until zoom mode is changed. This is the default mode.
22588     *
22589     * The Automatic modes will allow the map object to automatically
22590     * adjust zoom mode based on properties. #ELM_MAP_ZOOM_MODE_AUTO_FIT will
22591     * adjust zoom so the map fits inside the scroll frame with no pixels
22592     * outside this area. #ELM_MAP_ZOOM_MODE_AUTO_FILL will be similar but
22593     * ensure no pixels within the frame are left unfilled. Do not forget that
22594     * the valid sizes are 2^zoom, consequently the map may be smaller than
22595     * the scroller view.
22596     *
22597     * @see elm_map_zoom_set()
22598     *
22599     * @ingroup Map
22600     */
22601    EAPI void                  elm_map_zoom_mode_set(Evas_Object *obj, Elm_Map_Zoom_Mode mode) EINA_ARG_NONNULL(1);
22602
22603    /**
22604     * Get the zoom mode used by the map object.
22605     *
22606     * @param obj The map object.
22607     * @return The zoom mode of the map, being it one of
22608     * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
22609     * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
22610     *
22611     * This function returns the current zoom mode used by the map object.
22612     *
22613     * @see elm_map_zoom_mode_set() for more details.
22614     *
22615     * @ingroup Map
22616     */
22617    EAPI Elm_Map_Zoom_Mode     elm_map_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22618
22619    /**
22620     * Get the current coordinates of the map.
22621     *
22622     * @param obj The map object.
22623     * @param lon Pointer where to store longitude.
22624     * @param lat Pointer where to store latitude.
22625     *
22626     * This gets the current center coordinates of the map object. It can be
22627     * set by elm_map_geo_region_bring_in() and elm_map_geo_region_show().
22628     *
22629     * @see elm_map_geo_region_bring_in()
22630     * @see elm_map_geo_region_show()
22631     *
22632     * @ingroup Map
22633     */
22634    EAPI void                  elm_map_geo_region_get(const Evas_Object *obj, double *lon, double *lat) EINA_ARG_NONNULL(1);
22635
22636    /**
22637     * Animatedly bring in given coordinates to the center of the map.
22638     *
22639     * @param obj The map object.
22640     * @param lon Longitude to center at.
22641     * @param lat Latitude to center at.
22642     *
22643     * This causes map to jump to the given @p lat and @p lon coordinates
22644     * and show it (by scrolling) in the center of the viewport, if it is not
22645     * already centered. This will use animation to do so and take a period
22646     * of time to complete.
22647     *
22648     * @see elm_map_geo_region_show() for a function to avoid animation.
22649     * @see elm_map_geo_region_get()
22650     *
22651     * @ingroup Map
22652     */
22653    EAPI void                  elm_map_geo_region_bring_in(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
22654
22655    /**
22656     * Show the given coordinates at the center of the map, @b immediately.
22657     *
22658     * @param obj The map object.
22659     * @param lon Longitude to center at.
22660     * @param lat Latitude to center at.
22661     *
22662     * This causes map to @b redraw its viewport's contents to the
22663     * region contining the given @p lat and @p lon, that will be moved to the
22664     * center of the map.
22665     *
22666     * @see elm_map_geo_region_bring_in() for a function to move with animation.
22667     * @see elm_map_geo_region_get()
22668     *
22669     * @ingroup Map
22670     */
22671    EAPI void                  elm_map_geo_region_show(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
22672
22673    /**
22674     * Pause or unpause the map.
22675     *
22676     * @param obj The map object.
22677     * @param paused Use @c EINA_TRUE to pause the map @p obj or @c EINA_FALSE
22678     * to unpause it.
22679     *
22680     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
22681     * for map.
22682     *
22683     * The default is off.
22684     *
22685     * This will stop zooming using animation, changing zoom levels will
22686     * change instantly. This will stop any existing animations that are running.
22687     *
22688     * @see elm_map_paused_get()
22689     *
22690     * @ingroup Map
22691     */
22692    EAPI void                  elm_map_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
22693
22694    /**
22695     * Get a value whether map is paused or not.
22696     *
22697     * @param obj The map object.
22698     * @return @c EINA_TRUE means map is pause. @c EINA_FALSE indicates
22699     * it is not. If @p obj is @c NULL, @c EINA_FALSE is returned.
22700     *
22701     * This gets the current paused state for the map object.
22702     *
22703     * @see elm_map_paused_set() for details.
22704     *
22705     * @ingroup Map
22706     */
22707    EAPI Eina_Bool             elm_map_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22708
22709    /**
22710     * Set to show markers during zoom level changes or not.
22711     *
22712     * @param obj The map object.
22713     * @param paused Use @c EINA_TRUE to @b not show markers or @c EINA_FALSE
22714     * to show them.
22715     *
22716     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
22717     * for map.
22718     *
22719     * The default is off.
22720     *
22721     * This will stop zooming using animation, changing zoom levels will
22722     * change instantly. This will stop any existing animations that are running.
22723     *
22724     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
22725     * for the markers.
22726     *
22727     * The default  is off.
22728     *
22729     * Enabling it will force the map to stop displaying the markers during
22730     * zoom level changes. Set to on if you have a large number of markers.
22731     *
22732     * @see elm_map_paused_markers_get()
22733     *
22734     * @ingroup Map
22735     */
22736    EAPI void                  elm_map_paused_markers_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
22737
22738    /**
22739     * Get a value whether markers will be displayed on zoom level changes or not
22740     *
22741     * @param obj The map object.
22742     * @return @c EINA_TRUE means map @b won't display markers or @c EINA_FALSE
22743     * indicates it will. If @p obj is @c NULL, @c EINA_FALSE is returned.
22744     *
22745     * This gets the current markers paused state for the map object.
22746     *
22747     * @see elm_map_paused_markers_set() for details.
22748     *
22749     * @ingroup Map
22750     */
22751    EAPI Eina_Bool             elm_map_paused_markers_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22752
22753    /**
22754     * Get the information of downloading status.
22755     *
22756     * @param obj The map object.
22757     * @param try_num Pointer where to store number of tiles being downloaded.
22758     * @param finish_num Pointer where to store number of tiles successfully
22759     * downloaded.
22760     *
22761     * This gets the current downloading status for the map object, the number
22762     * of tiles being downloaded and the number of tiles already downloaded.
22763     *
22764     * @ingroup Map
22765     */
22766    EAPI void                  elm_map_utils_downloading_status_get(const Evas_Object *obj, int *try_num, int *finish_num) EINA_ARG_NONNULL(1, 2, 3);
22767
22768    /**
22769     * Convert a pixel coordinate (x,y) into a geographic coordinate
22770     * (longitude, latitude).
22771     *
22772     * @param obj The map object.
22773     * @param x the coordinate.
22774     * @param y the coordinate.
22775     * @param size the size in pixels of the map.
22776     * The map is a square and generally his size is : pow(2.0, zoom)*256.
22777     * @param lon Pointer where to store the longitude that correspond to x.
22778     * @param lat Pointer where to store the latitude that correspond to y.
22779     *
22780     * @note Origin pixel point is the top left corner of the viewport.
22781     * Map zoom and size are taken on account.
22782     *
22783     * @see elm_map_utils_convert_geo_into_coord() if you need the inverse.
22784     *
22785     * @ingroup Map
22786     */
22787    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);
22788
22789    /**
22790     * Convert a geographic coordinate (longitude, latitude) into a pixel
22791     * coordinate (x, y).
22792     *
22793     * @param obj The map object.
22794     * @param lon the longitude.
22795     * @param lat the latitude.
22796     * @param size the size in pixels of the map. The map is a square
22797     * and generally his size is : pow(2.0, zoom)*256.
22798     * @param x Pointer where to store the horizontal pixel coordinate that
22799     * correspond to the longitude.
22800     * @param y Pointer where to store the vertical pixel coordinate that
22801     * correspond to the latitude.
22802     *
22803     * @note Origin pixel point is the top left corner of the viewport.
22804     * Map zoom and size are taken on account.
22805     *
22806     * @see elm_map_utils_convert_coord_into_geo() if you need the inverse.
22807     *
22808     * @ingroup Map
22809     */
22810    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);
22811
22812    /**
22813     * Convert a geographic coordinate (longitude, latitude) into a name
22814     * (address).
22815     *
22816     * @param obj The map object.
22817     * @param lon the longitude.
22818     * @param lat the latitude.
22819     * @return name A #Elm_Map_Name handle for this coordinate.
22820     *
22821     * To get the string for this address, elm_map_name_address_get()
22822     * should be used.
22823     *
22824     * @see elm_map_utils_convert_name_into_coord() if you need the inverse.
22825     *
22826     * @ingroup Map
22827     */
22828    EAPI Elm_Map_Name         *elm_map_utils_convert_coord_into_name(const Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
22829
22830    /**
22831     * Convert a name (address) into a geographic coordinate
22832     * (longitude, latitude).
22833     *
22834     * @param obj The map object.
22835     * @param name The address.
22836     * @return name A #Elm_Map_Name handle for this address.
22837     *
22838     * To get the longitude and latitude, elm_map_name_region_get()
22839     * should be used.
22840     *
22841     * @see elm_map_utils_convert_coord_into_name() if you need the inverse.
22842     *
22843     * @ingroup Map
22844     */
22845    EAPI Elm_Map_Name         *elm_map_utils_convert_name_into_coord(const Evas_Object *obj, char *address) EINA_ARG_NONNULL(1, 2);
22846
22847    /**
22848     * Convert a pixel coordinate into a rotated pixel coordinate.
22849     *
22850     * @param obj The map object.
22851     * @param x horizontal coordinate of the point to rotate.
22852     * @param y vertical coordinate of the point to rotate.
22853     * @param cx rotation's center horizontal position.
22854     * @param cy rotation's center vertical position.
22855     * @param degree amount of degrees from 0.0 to 360.0 to rotate arount Z axis.
22856     * @param xx Pointer where to store rotated x.
22857     * @param yy Pointer where to store rotated y.
22858     *
22859     * @ingroup Map
22860     */
22861    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);
22862
22863    /**
22864     * Add a new marker to the map object.
22865     *
22866     * @param obj The map object.
22867     * @param lon The longitude of the marker.
22868     * @param lat The latitude of the marker.
22869     * @param clas The class, to use when marker @b isn't grouped to others.
22870     * @param clas_group The class group, to use when marker is grouped to others
22871     * @param data The data passed to the callbacks.
22872     *
22873     * @return The created marker or @c NULL upon failure.
22874     *
22875     * A marker will be created and shown in a specific point of the map, defined
22876     * by @p lon and @p lat.
22877     *
22878     * It will be displayed using style defined by @p class when this marker
22879     * is displayed alone (not grouped). A new class can be created with
22880     * elm_map_marker_class_new().
22881     *
22882     * If the marker is grouped to other markers, it will be displayed with
22883     * style defined by @p class_group. Markers with the same group are grouped
22884     * if they are close. A new group class can be created with
22885     * elm_map_marker_group_class_new().
22886     *
22887     * Markers created with this method can be deleted with
22888     * elm_map_marker_remove().
22889     *
22890     * A marker can have associated content to be displayed by a bubble,
22891     * when a user click over it, as well as an icon. These objects will
22892     * be fetch using class' callback functions.
22893     *
22894     * @see elm_map_marker_class_new()
22895     * @see elm_map_marker_group_class_new()
22896     * @see elm_map_marker_remove()
22897     *
22898     * @ingroup Map
22899     */
22900    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);
22901
22902    /**
22903     * Set the maximum numbers of markers' content to be displayed in a group.
22904     *
22905     * @param obj The map object.
22906     * @param max The maximum numbers of items displayed in a bubble.
22907     *
22908     * A bubble will be displayed when the user clicks over the group,
22909     * and will place the content of markers that belong to this group
22910     * inside it.
22911     *
22912     * A group can have a long list of markers, consequently the creation
22913     * of the content of the bubble can be very slow.
22914     *
22915     * In order to avoid this, a maximum number of items is displayed
22916     * in a bubble.
22917     *
22918     * By default this number is 30.
22919     *
22920     * Marker with the same group class are grouped if they are close.
22921     *
22922     * @see elm_map_marker_add()
22923     *
22924     * @ingroup Map
22925     */
22926    EAPI void                  elm_map_max_marker_per_group_set(Evas_Object *obj, int max) EINA_ARG_NONNULL(1);
22927
22928    /**
22929     * Remove a marker from the map.
22930     *
22931     * @param marker The marker to remove.
22932     *
22933     * @see elm_map_marker_add()
22934     *
22935     * @ingroup Map
22936     */
22937    EAPI void                  elm_map_marker_remove(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
22938
22939    /**
22940     * Get the current coordinates of the marker.
22941     *
22942     * @param marker marker.
22943     * @param lat Pointer where to store the marker's latitude.
22944     * @param lon Pointer where to store the marker's longitude.
22945     *
22946     * These values are set when adding markers, with function
22947     * elm_map_marker_add().
22948     *
22949     * @see elm_map_marker_add()
22950     *
22951     * @ingroup Map
22952     */
22953    EAPI void                  elm_map_marker_region_get(const Elm_Map_Marker *marker, double *lon, double *lat) EINA_ARG_NONNULL(1);
22954
22955    /**
22956     * Animatedly bring in given marker to the center of the map.
22957     *
22958     * @param marker The marker to center at.
22959     *
22960     * This causes map to jump to the given @p marker's coordinates
22961     * and show it (by scrolling) in the center of the viewport, if it is not
22962     * already centered. This will use animation to do so and take a period
22963     * of time to complete.
22964     *
22965     * @see elm_map_marker_show() for a function to avoid animation.
22966     * @see elm_map_marker_region_get()
22967     *
22968     * @ingroup Map
22969     */
22970    EAPI void                  elm_map_marker_bring_in(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
22971
22972    /**
22973     * Show the given marker at the center of the map, @b immediately.
22974     *
22975     * @param marker The marker to center at.
22976     *
22977     * This causes map to @b redraw its viewport's contents to the
22978     * region contining the given @p marker's coordinates, that will be
22979     * moved to the center of the map.
22980     *
22981     * @see elm_map_marker_bring_in() for a function to move with animation.
22982     * @see elm_map_markers_list_show() if more than one marker need to be
22983     * displayed.
22984     * @see elm_map_marker_region_get()
22985     *
22986     * @ingroup Map
22987     */
22988    EAPI void                  elm_map_marker_show(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
22989
22990    /**
22991     * Move and zoom the map to display a list of markers.
22992     *
22993     * @param markers A list of #Elm_Map_Marker handles.
22994     *
22995     * The map will be centered on the center point of the markers in the list.
22996     * Then the map will be zoomed in order to fit the markers using the maximum
22997     * zoom which allows display of all the markers.
22998     *
22999     * @warning All the markers should belong to the same map object.
23000     *
23001     * @see elm_map_marker_show() to show a single marker.
23002     * @see elm_map_marker_bring_in()
23003     *
23004     * @ingroup Map
23005     */
23006    EAPI void                  elm_map_markers_list_show(Eina_List *markers) EINA_ARG_NONNULL(1);
23007
23008    /**
23009     * Get the Evas object returned by the ElmMapMarkerGetFunc callback
23010     *
23011     * @param marker The marker wich content should be returned.
23012     * @return Return the evas object if it exists, else @c NULL.
23013     *
23014     * To set callback function #ElmMapMarkerGetFunc for the marker class,
23015     * elm_map_marker_class_get_cb_set() should be used.
23016     *
23017     * This content is what will be inside the bubble that will be displayed
23018     * when an user clicks over the marker.
23019     *
23020     * This returns the actual Evas object used to be placed inside
23021     * the bubble. This may be @c NULL, as it may
23022     * not have been created or may have been deleted, at any time, by
23023     * the map. <b>Do not modify this object</b> (move, resize,
23024     * show, hide, etc.), as the map is controlling it. This
23025     * function is for querying, emitting custom signals or hooking
23026     * lower level callbacks for events on that object. Do not delete
23027     * this object under any circumstances.
23028     *
23029     * @ingroup Map
23030     */
23031    EAPI Evas_Object          *elm_map_marker_object_get(const Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
23032
23033    /**
23034     * Update the marker
23035     *
23036     * @param marker The marker to be updated.
23037     *
23038     * If a content is set to this marker, it will call function to delete it,
23039     * #ElmMapMarkerDelFunc, and then will fetch the content again with
23040     * #ElmMapMarkerGetFunc.
23041     *
23042     * These functions are set for the marker class with
23043     * elm_map_marker_class_get_cb_set() and elm_map_marker_class_del_cb_set().
23044     *
23045     * @ingroup Map
23046     */
23047    EAPI void                  elm_map_marker_update(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
23048
23049    /**
23050     * Close all the bubbles opened by the user.
23051     *
23052     * @param obj The map object.
23053     *
23054     * A bubble is displayed with a content fetched with #ElmMapMarkerGetFunc
23055     * when the user clicks on a marker.
23056     *
23057     * This functions is set for the marker class with
23058     * elm_map_marker_class_get_cb_set().
23059     *
23060     * @ingroup Map
23061     */
23062    EAPI void                  elm_map_bubbles_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
23063
23064    /**
23065     * Create a new group class.
23066     *
23067     * @param obj The map object.
23068     * @return Returns the new group class.
23069     *
23070     * Each marker must be associated to a group class. Markers in the same
23071     * group are grouped if they are close.
23072     *
23073     * The group class defines the style of the marker when a marker is grouped
23074     * to others markers. When it is alone, another class will be used.
23075     *
23076     * A group class will need to be provided when creating a marker with
23077     * elm_map_marker_add().
23078     *
23079     * Some properties and functions can be set by class, as:
23080     * - style, with elm_map_group_class_style_set()
23081     * - data - to be associated to the group class. It can be set using
23082     *   elm_map_group_class_data_set().
23083     * - min zoom to display markers, set with
23084     *   elm_map_group_class_zoom_displayed_set().
23085     * - max zoom to group markers, set using
23086     *   elm_map_group_class_zoom_grouped_set().
23087     * - visibility - set if markers will be visible or not, set with
23088     *   elm_map_group_class_hide_set().
23089     * - #ElmMapGroupIconGetFunc - used to fetch icon for markers group classes.
23090     *   It can be set using elm_map_group_class_icon_cb_set().
23091     *
23092     * @see elm_map_marker_add()
23093     * @see elm_map_group_class_style_set()
23094     * @see elm_map_group_class_data_set()
23095     * @see elm_map_group_class_zoom_displayed_set()
23096     * @see elm_map_group_class_zoom_grouped_set()
23097     * @see elm_map_group_class_hide_set()
23098     * @see elm_map_group_class_icon_cb_set()
23099     *
23100     * @ingroup Map
23101     */
23102    EAPI Elm_Map_Group_Class  *elm_map_group_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
23103
23104    /**
23105     * Set the marker's style of a group class.
23106     *
23107     * @param clas The group class.
23108     * @param style The style to be used by markers.
23109     *
23110     * Each marker must be associated to a group class, and will use the style
23111     * defined by such class when grouped to other markers.
23112     *
23113     * The following styles are provided by default theme:
23114     * @li @c radio - blue circle
23115     * @li @c radio2 - green circle
23116     * @li @c empty
23117     *
23118     * @see elm_map_group_class_new() for more details.
23119     * @see elm_map_marker_add()
23120     *
23121     * @ingroup Map
23122     */
23123    EAPI void                  elm_map_group_class_style_set(Elm_Map_Group_Class *clas, const char *style) EINA_ARG_NONNULL(1);
23124
23125    /**
23126     * Set the icon callback function of a group class.
23127     *
23128     * @param clas The group class.
23129     * @param icon_get The callback function that will return the icon.
23130     *
23131     * Each marker must be associated to a group class, and it can display a
23132     * custom icon. The function @p icon_get must return this icon.
23133     *
23134     * @see elm_map_group_class_new() for more details.
23135     * @see elm_map_marker_add()
23136     *
23137     * @ingroup Map
23138     */
23139    EAPI void                  elm_map_group_class_icon_cb_set(Elm_Map_Group_Class *clas, ElmMapGroupIconGetFunc icon_get) EINA_ARG_NONNULL(1);
23140
23141    /**
23142     * Set the data associated to the group class.
23143     *
23144     * @param clas The group class.
23145     * @param data The new user data.
23146     *
23147     * This data will be passed for callback functions, like icon get callback,
23148     * that can be set with elm_map_group_class_icon_cb_set().
23149     *
23150     * If a data was previously set, the object will lose the pointer for it,
23151     * so if needs to be freed, you must do it yourself.
23152     *
23153     * @see elm_map_group_class_new() for more details.
23154     * @see elm_map_group_class_icon_cb_set()
23155     * @see elm_map_marker_add()
23156     *
23157     * @ingroup Map
23158     */
23159    EAPI void                  elm_map_group_class_data_set(Elm_Map_Group_Class *clas, void *data) EINA_ARG_NONNULL(1);
23160
23161    /**
23162     * Set the minimum zoom from where the markers are displayed.
23163     *
23164     * @param clas The group class.
23165     * @param zoom The minimum zoom.
23166     *
23167     * Markers only will be displayed when the map is displayed at @p zoom
23168     * or bigger.
23169     *
23170     * @see elm_map_group_class_new() for more details.
23171     * @see elm_map_marker_add()
23172     *
23173     * @ingroup Map
23174     */
23175    EAPI void                  elm_map_group_class_zoom_displayed_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
23176
23177    /**
23178     * Set the zoom from where the markers are no more grouped.
23179     *
23180     * @param clas The group class.
23181     * @param zoom The maximum zoom.
23182     *
23183     * Markers only will be grouped when the map is displayed at
23184     * less than @p zoom.
23185     *
23186     * @see elm_map_group_class_new() for more details.
23187     * @see elm_map_marker_add()
23188     *
23189     * @ingroup Map
23190     */
23191    EAPI void                  elm_map_group_class_zoom_grouped_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
23192
23193    /**
23194     * Set if the markers associated to the group class @clas are hidden or not.
23195     *
23196     * @param clas The group class.
23197     * @param hide Use @c EINA_TRUE to hide markers or @c EINA_FALSE
23198     * to show them.
23199     *
23200     * If @p hide is @c EINA_TRUE the markers will be hidden, but default
23201     * is to show them.
23202     *
23203     * @ingroup Map
23204     */
23205    EAPI void                  elm_map_group_class_hide_set(Evas_Object *obj, Elm_Map_Group_Class *clas, Eina_Bool hide) EINA_ARG_NONNULL(1, 2);
23206
23207    /**
23208     * Create a new marker class.
23209     *
23210     * @param obj The map object.
23211     * @return Returns the new group class.
23212     *
23213     * Each marker must be associated to a class.
23214     *
23215     * The marker class defines the style of the marker when a marker is
23216     * displayed alone, i.e., not grouped to to others markers. When grouped
23217     * it will use group class style.
23218     *
23219     * A marker class will need to be provided when creating a marker with
23220     * elm_map_marker_add().
23221     *
23222     * Some properties and functions can be set by class, as:
23223     * - style, with elm_map_marker_class_style_set()
23224     * - #ElmMapMarkerIconGetFunc - used to fetch icon for markers classes.
23225     *   It can be set using elm_map_marker_class_icon_cb_set().
23226     * - #ElmMapMarkerGetFunc - used to fetch bubble content for marker classes.
23227     *   Set using elm_map_marker_class_get_cb_set().
23228     * - #ElmMapMarkerDelFunc - used to delete bubble content for marker classes.
23229     *   Set using elm_map_marker_class_del_cb_set().
23230     *
23231     * @see elm_map_marker_add()
23232     * @see elm_map_marker_class_style_set()
23233     * @see elm_map_marker_class_icon_cb_set()
23234     * @see elm_map_marker_class_get_cb_set()
23235     * @see elm_map_marker_class_del_cb_set()
23236     *
23237     * @ingroup Map
23238     */
23239    EAPI Elm_Map_Marker_Class *elm_map_marker_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
23240
23241    /**
23242     * Set the marker's style of a marker class.
23243     *
23244     * @param clas The marker class.
23245     * @param style The style to be used by markers.
23246     *
23247     * Each marker must be associated to a marker class, and will use the style
23248     * defined by such class when alone, i.e., @b not grouped to other markers.
23249     *
23250     * The following styles are provided by default theme:
23251     * @li @c radio
23252     * @li @c radio2
23253     * @li @c empty
23254     *
23255     * @see elm_map_marker_class_new() for more details.
23256     * @see elm_map_marker_add()
23257     *
23258     * @ingroup Map
23259     */
23260    EAPI void                  elm_map_marker_class_style_set(Elm_Map_Marker_Class *clas, const char *style) EINA_ARG_NONNULL(1);
23261
23262    /**
23263     * Set the icon callback function of a marker class.
23264     *
23265     * @param clas The marker class.
23266     * @param icon_get The callback function that will return the icon.
23267     *
23268     * Each marker must be associated to a marker class, and it can display a
23269     * custom icon. The function @p icon_get must return this icon.
23270     *
23271     * @see elm_map_marker_class_new() for more details.
23272     * @see elm_map_marker_add()
23273     *
23274     * @ingroup Map
23275     */
23276    EAPI void                  elm_map_marker_class_icon_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerIconGetFunc icon_get) EINA_ARG_NONNULL(1);
23277
23278    /**
23279     * Set the bubble content callback function of a marker class.
23280     *
23281     * @param clas The marker class.
23282     * @param get The callback function that will return the content.
23283     *
23284     * Each marker must be associated to a marker class, and it can display a
23285     * a content on a bubble that opens when the user click over the marker.
23286     * The function @p get must return this content object.
23287     *
23288     * If this content will need to be deleted, elm_map_marker_class_del_cb_set()
23289     * can be used.
23290     *
23291     * @see elm_map_marker_class_new() for more details.
23292     * @see elm_map_marker_class_del_cb_set()
23293     * @see elm_map_marker_add()
23294     *
23295     * @ingroup Map
23296     */
23297    EAPI void                  elm_map_marker_class_get_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerGetFunc get) EINA_ARG_NONNULL(1);
23298
23299    /**
23300     * Set the callback function used to delete bubble content of a marker class.
23301     *
23302     * @param clas The marker class.
23303     * @param del The callback function that will delete the content.
23304     *
23305     * Each marker must be associated to a marker class, and it can display a
23306     * a content on a bubble that opens when the user click over the marker.
23307     * The function to return such content can be set with
23308     * elm_map_marker_class_get_cb_set().
23309     *
23310     * If this content must be freed, a callback function need to be
23311     * set for that task with this function.
23312     *
23313     * If this callback is defined it will have to delete (or not) the
23314     * object inside, but if the callback is not defined the object will be
23315     * destroyed with evas_object_del().
23316     *
23317     * @see elm_map_marker_class_new() for more details.
23318     * @see elm_map_marker_class_get_cb_set()
23319     * @see elm_map_marker_add()
23320     *
23321     * @ingroup Map
23322     */
23323    EAPI void                  elm_map_marker_class_del_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerDelFunc del) EINA_ARG_NONNULL(1);
23324
23325    /**
23326     * Get the list of available sources.
23327     *
23328     * @param obj The map object.
23329     * @return The source names list.
23330     *
23331     * It will provide a list with all available sources, that can be set as
23332     * current source with elm_map_source_name_set(), or get with
23333     * elm_map_source_name_get().
23334     *
23335     * Available sources:
23336     * @li "Mapnik"
23337     * @li "Osmarender"
23338     * @li "CycleMap"
23339     * @li "Maplint"
23340     *
23341     * @see elm_map_source_name_set() for more details.
23342     * @see elm_map_source_name_get()
23343     *
23344     * @ingroup Map
23345     */
23346    EAPI const char          **elm_map_source_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23347
23348    /**
23349     * Set the source of the map.
23350     *
23351     * @param obj The map object.
23352     * @param source The source to be used.
23353     *
23354     * Map widget retrieves images that composes the map from a web service.
23355     * This web service can be set with this method.
23356     *
23357     * A different service can return a different maps with different
23358     * information and it can use different zoom values.
23359     *
23360     * The @p source_name need to match one of the names provided by
23361     * elm_map_source_names_get().
23362     *
23363     * The current source can be get using elm_map_source_name_get().
23364     *
23365     * @see elm_map_source_names_get()
23366     * @see elm_map_source_name_get()
23367     *
23368     *
23369     * @ingroup Map
23370     */
23371    EAPI void                  elm_map_source_name_set(Evas_Object *obj, const char *source_name) EINA_ARG_NONNULL(1);
23372
23373    /**
23374     * Get the name of currently used source.
23375     *
23376     * @param obj The map object.
23377     * @return Returns the name of the source in use.
23378     *
23379     * @see elm_map_source_name_set() for more details.
23380     *
23381     * @ingroup Map
23382     */
23383    EAPI const char           *elm_map_source_name_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23384
23385    /**
23386     * Set the source of the route service to be used by the map.
23387     *
23388     * @param obj The map object.
23389     * @param source The route service to be used, being it one of
23390     * #ELM_MAP_ROUTE_SOURCE_YOURS (default), #ELM_MAP_ROUTE_SOURCE_MONAV,
23391     * and #ELM_MAP_ROUTE_SOURCE_ORS.
23392     *
23393     * Each one has its own algorithm, so the route retrieved may
23394     * differ depending on the source route. Now, only the default is working.
23395     *
23396     * #ELM_MAP_ROUTE_SOURCE_YOURS is the routing service provided at
23397     * http://www.yournavigation.org/.
23398     *
23399     * #ELM_MAP_ROUTE_SOURCE_MONAV, offers exact routing without heuristic
23400     * assumptions. Its routing core is based on Contraction Hierarchies.
23401     *
23402     * #ELM_MAP_ROUTE_SOURCE_ORS, is provided at http://www.openrouteservice.org/
23403     *
23404     * @see elm_map_route_source_get().
23405     *
23406     * @ingroup Map
23407     */
23408    EAPI void                  elm_map_route_source_set(Evas_Object *obj, Elm_Map_Route_Sources source) EINA_ARG_NONNULL(1);
23409
23410    /**
23411     * Get the current route source.
23412     *
23413     * @param obj The map object.
23414     * @return The source of the route service used by the map.
23415     *
23416     * @see elm_map_route_source_set() for details.
23417     *
23418     * @ingroup Map
23419     */
23420    EAPI Elm_Map_Route_Sources elm_map_route_source_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23421
23422    /**
23423     * Set the minimum zoom of the source.
23424     *
23425     * @param obj The map object.
23426     * @param zoom New minimum zoom value to be used.
23427     *
23428     * By default, it's 0.
23429     *
23430     * @ingroup Map
23431     */
23432    EAPI void                  elm_map_source_zoom_min_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
23433
23434    /**
23435     * Get the minimum zoom of the source.
23436     *
23437     * @param obj The map object.
23438     * @return Returns the minimum zoom of the source.
23439     *
23440     * @see elm_map_source_zoom_min_set() for details.
23441     *
23442     * @ingroup Map
23443     */
23444    EAPI int                   elm_map_source_zoom_min_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23445
23446    /**
23447     * Set the maximum zoom of the source.
23448     *
23449     * @param obj The map object.
23450     * @param zoom New maximum zoom value to be used.
23451     *
23452     * By default, it's 18.
23453     *
23454     * @ingroup Map
23455     */
23456    EAPI void                  elm_map_source_zoom_max_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
23457
23458    /**
23459     * Get the maximum zoom of the source.
23460     *
23461     * @param obj The map object.
23462     * @return Returns the maximum zoom of the source.
23463     *
23464     * @see elm_map_source_zoom_min_set() for details.
23465     *
23466     * @ingroup Map
23467     */
23468    EAPI int                   elm_map_source_zoom_max_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23469
23470    /**
23471     * Set the user agent used by the map object to access routing services.
23472     *
23473     * @param obj The map object.
23474     * @param user_agent The user agent to be used by the map.
23475     *
23476     * User agent is a client application implementing a network protocol used
23477     * in communications within a clientā€“server distributed computing system
23478     *
23479     * The @p user_agent identification string will transmitted in a header
23480     * field @c User-Agent.
23481     *
23482     * @see elm_map_user_agent_get()
23483     *
23484     * @ingroup Map
23485     */
23486    EAPI void                  elm_map_user_agent_set(Evas_Object *obj, const char *user_agent) EINA_ARG_NONNULL(1, 2);
23487
23488    /**
23489     * Get the user agent used by the map object.
23490     *
23491     * @param obj The map object.
23492     * @return The user agent identification string used by the map.
23493     *
23494     * @see elm_map_user_agent_set() for details.
23495     *
23496     * @ingroup Map
23497     */
23498    EAPI const char           *elm_map_user_agent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23499
23500    /**
23501     * Add a new route to the map object.
23502     *
23503     * @param obj The map object.
23504     * @param type The type of transport to be considered when tracing a route.
23505     * @param method The routing method, what should be priorized.
23506     * @param flon The start longitude.
23507     * @param flat The start latitude.
23508     * @param tlon The destination longitude.
23509     * @param tlat The destination latitude.
23510     *
23511     * @return The created route or @c NULL upon failure.
23512     *
23513     * A route will be traced by point on coordinates (@p flat, @p flon)
23514     * to point on coordinates (@p tlat, @p tlon), using the route service
23515     * set with elm_map_route_source_set().
23516     *
23517     * It will take @p type on consideration to define the route,
23518     * depending if the user will be walking or driving, the route may vary.
23519     * One of #ELM_MAP_ROUTE_TYPE_MOTOCAR, #ELM_MAP_ROUTE_TYPE_BICYCLE, or
23520     * #ELM_MAP_ROUTE_TYPE_FOOT need to be used.
23521     *
23522     * Another parameter is what the route should priorize, the minor distance
23523     * or the less time to be spend on the route. So @p method should be one
23524     * of #ELM_MAP_ROUTE_METHOD_SHORTEST or #ELM_MAP_ROUTE_METHOD_FASTEST.
23525     *
23526     * Routes created with this method can be deleted with
23527     * elm_map_route_remove(), colored with elm_map_route_color_set(),
23528     * and distance can be get with elm_map_route_distance_get().
23529     *
23530     * @see elm_map_route_remove()
23531     * @see elm_map_route_color_set()
23532     * @see elm_map_route_distance_get()
23533     * @see elm_map_route_source_set()
23534     *
23535     * @ingroup Map
23536     */
23537    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);
23538
23539    /**
23540     * Remove a route from the map.
23541     *
23542     * @param route The route to remove.
23543     *
23544     * @see elm_map_route_add()
23545     *
23546     * @ingroup Map
23547     */
23548    EAPI void                  elm_map_route_remove(Elm_Map_Route *route) EINA_ARG_NONNULL(1);
23549
23550    /**
23551     * Set the route color.
23552     *
23553     * @param route The route object.
23554     * @param r Red channel value, from 0 to 255.
23555     * @param g Green channel value, from 0 to 255.
23556     * @param b Blue channel value, from 0 to 255.
23557     * @param a Alpha channel value, from 0 to 255.
23558     *
23559     * It uses an additive color model, so each color channel represents
23560     * how much of each primary colors must to be used. 0 represents
23561     * ausence of this color, so if all of the three are set to 0,
23562     * the color will be black.
23563     *
23564     * These component values should be integers in the range 0 to 255,
23565     * (single 8-bit byte).
23566     *
23567     * This sets the color used for the route. By default, it is set to
23568     * solid red (r = 255, g = 0, b = 0, a = 255).
23569     *
23570     * For alpha channel, 0 represents completely transparent, and 255, opaque.
23571     *
23572     * @see elm_map_route_color_get()
23573     *
23574     * @ingroup Map
23575     */
23576    EAPI void                  elm_map_route_color_set(Elm_Map_Route *route, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
23577
23578    /**
23579     * Get the route color.
23580     *
23581     * @param route The route object.
23582     * @param r Pointer where to store the red channel value.
23583     * @param g Pointer where to store the green channel value.
23584     * @param b Pointer where to store the blue channel value.
23585     * @param a Pointer where to store the alpha channel value.
23586     *
23587     * @see elm_map_route_color_set() for details.
23588     *
23589     * @ingroup Map
23590     */
23591    EAPI void                  elm_map_route_color_get(const Elm_Map_Route *route, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
23592
23593    /**
23594     * Get the route distance in kilometers.
23595     *
23596     * @param route The route object.
23597     * @return The distance of route (unit : km).
23598     *
23599     * @ingroup Map
23600     */
23601    EAPI double                elm_map_route_distance_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
23602
23603    /**
23604     * Get the information of route nodes.
23605     *
23606     * @param route The route object.
23607     * @return Returns a string with the nodes of route.
23608     *
23609     * @ingroup Map
23610     */
23611    EAPI const char           *elm_map_route_node_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
23612
23613    /**
23614     * Get the information of route waypoint.
23615     *
23616     * @param route the route object.
23617     * @return Returns a string with information about waypoint of route.
23618     *
23619     * @ingroup Map
23620     */
23621    EAPI const char           *elm_map_route_waypoint_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
23622
23623    /**
23624     * Get the address of the name.
23625     *
23626     * @param name The name handle.
23627     * @return Returns the address string of @p name.
23628     *
23629     * This gets the coordinates of the @p name, created with one of the
23630     * conversion functions.
23631     *
23632     * @see elm_map_utils_convert_name_into_coord()
23633     * @see elm_map_utils_convert_coord_into_name()
23634     *
23635     * @ingroup Map
23636     */
23637    EAPI const char           *elm_map_name_address_get(const Elm_Map_Name *name) EINA_ARG_NONNULL(1);
23638
23639    /**
23640     * Get the current coordinates of the name.
23641     *
23642     * @param name The name handle.
23643     * @param lat Pointer where to store the latitude.
23644     * @param lon Pointer where to store The longitude.
23645     *
23646     * This gets the coordinates of the @p name, created with one of the
23647     * conversion functions.
23648     *
23649     * @see elm_map_utils_convert_name_into_coord()
23650     * @see elm_map_utils_convert_coord_into_name()
23651     *
23652     * @ingroup Map
23653     */
23654    EAPI void                  elm_map_name_region_get(const Elm_Map_Name *name, double *lon, double *lat) EINA_ARG_NONNULL(1);
23655
23656    /**
23657     * Remove a name from the map.
23658     *
23659     * @param name The name to remove.
23660     *
23661     * Basically the struct handled by @p name will be freed, so convertions
23662     * between address and coordinates will be lost.
23663     *
23664     * @see elm_map_utils_convert_name_into_coord()
23665     * @see elm_map_utils_convert_coord_into_name()
23666     *
23667     * @ingroup Map
23668     */
23669    EAPI void                  elm_map_name_remove(Elm_Map_Name *name) EINA_ARG_NONNULL(1);
23670
23671    /**
23672     * Rotate the map.
23673     *
23674     * @param obj The map object.
23675     * @param degree Angle from 0.0 to 360.0 to rotate arount Z axis.
23676     * @param cx Rotation's center horizontal position.
23677     * @param cy Rotation's center vertical position.
23678     *
23679     * @see elm_map_rotate_get()
23680     *
23681     * @ingroup Map
23682     */
23683    EAPI void                  elm_map_rotate_set(Evas_Object *obj, double degree, Evas_Coord cx, Evas_Coord cy) EINA_ARG_NONNULL(1);
23684
23685    /**
23686     * Get the rotate degree of the map
23687     *
23688     * @param obj The map object
23689     * @param degree Pointer where to store degrees from 0.0 to 360.0
23690     * to rotate arount Z axis.
23691     * @param cx Pointer where to store rotation's center horizontal position.
23692     * @param cy Pointer where to store rotation's center vertical position.
23693     *
23694     * @see elm_map_rotate_set() to set map rotation.
23695     *
23696     * @ingroup Map
23697     */
23698    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);
23699
23700    /**
23701     * Enable or disable mouse wheel to be used to zoom in / out the map.
23702     *
23703     * @param obj The map object.
23704     * @param disabled Use @c EINA_TRUE to disable mouse wheel or @c EINA_FALSE
23705     * to enable it.
23706     *
23707     * Mouse wheel can be used for the user to zoom in or zoom out the map.
23708     *
23709     * It's disabled by default.
23710     *
23711     * @see elm_map_wheel_disabled_get()
23712     *
23713     * @ingroup Map
23714     */
23715    EAPI void                  elm_map_wheel_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
23716
23717    /**
23718     * Get a value whether mouse wheel is enabled or not.
23719     *
23720     * @param obj The map object.
23721     * @return @c EINA_TRUE means map is disabled. @c EINA_FALSE indicates
23722     * it is enabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
23723     *
23724     * Mouse wheel can be used for the user to zoom in or zoom out the map.
23725     *
23726     * @see elm_map_wheel_disabled_set() for details.
23727     *
23728     * @ingroup Map
23729     */
23730    EAPI Eina_Bool             elm_map_wheel_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23731
23732 #ifdef ELM_EMAP
23733    /**
23734     * Add a track on the map
23735     *
23736     * @param obj The map object.
23737     * @param emap The emap route object.
23738     * @return The route object. This is an elm object of type Route.
23739     *
23740     * @see elm_route_add() for details.
23741     *
23742     * @ingroup Map
23743     */
23744    EAPI Evas_Object          *elm_map_track_add(Evas_Object *obj, EMap_Route *emap) EINA_ARG_NONNULL(1);
23745 #endif
23746
23747    /**
23748     * Remove a track from the map
23749     *
23750     * @param obj The map object.
23751     * @param route The track to remove.
23752     *
23753     * @ingroup Map
23754     */
23755    EAPI void                  elm_map_track_remove(Evas_Object *obj, Evas_Object *route) EINA_ARG_NONNULL(1);
23756
23757    /**
23758     * @}
23759     */
23760
23761    /* Route */
23762    EAPI Evas_Object *elm_route_add(Evas_Object *parent);
23763 #ifdef ELM_EMAP
23764    EAPI void elm_route_emap_set(Evas_Object *obj, EMap_Route *emap);
23765 #endif
23766    EAPI double elm_route_lon_min_get(Evas_Object *obj);
23767    EAPI double elm_route_lat_min_get(Evas_Object *obj);
23768    EAPI double elm_route_lon_max_get(Evas_Object *obj);
23769    EAPI double elm_route_lat_max_get(Evas_Object *obj);
23770
23771
23772    /**
23773     * @defgroup Panel Panel
23774     *
23775     * @image html img/widget/panel/preview-00.png
23776     * @image latex img/widget/panel/preview-00.eps
23777     *
23778     * @brief A panel is a type of animated container that contains subobjects.
23779     * It can be expanded or contracted by clicking the button on it's edge.
23780     *
23781     * Orientations are as follows:
23782     * @li ELM_PANEL_ORIENT_TOP
23783     * @li ELM_PANEL_ORIENT_LEFT
23784     * @li ELM_PANEL_ORIENT_RIGHT
23785     *
23786     * Default contents parts of the panel widget that you can use for are:
23787     * @li "default" - A content of the panel
23788     *
23789     * @ref tutorial_panel shows one way to use this widget.
23790     * @{
23791     */
23792    typedef enum _Elm_Panel_Orient
23793      {
23794         ELM_PANEL_ORIENT_TOP, /**< Panel (dis)appears from the top */
23795         ELM_PANEL_ORIENT_BOTTOM, /**< Not implemented */
23796         ELM_PANEL_ORIENT_LEFT, /**< Panel (dis)appears from the left */
23797         ELM_PANEL_ORIENT_RIGHT, /**< Panel (dis)appears from the right */
23798      } Elm_Panel_Orient;
23799    /**
23800     * @brief Adds a panel object
23801     *
23802     * @param parent The parent object
23803     *
23804     * @return The panel object, or NULL on failure
23805     */
23806    EAPI Evas_Object          *elm_panel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23807    /**
23808     * @brief Sets the orientation of the panel
23809     *
23810     * @param parent The parent object
23811     * @param orient The panel orientation. Can be one of the following:
23812     * @li ELM_PANEL_ORIENT_TOP
23813     * @li ELM_PANEL_ORIENT_LEFT
23814     * @li ELM_PANEL_ORIENT_RIGHT
23815     *
23816     * Sets from where the panel will (dis)appear.
23817     */
23818    EAPI void                  elm_panel_orient_set(Evas_Object *obj, Elm_Panel_Orient orient) EINA_ARG_NONNULL(1);
23819    /**
23820     * @brief Get the orientation of the panel.
23821     *
23822     * @param obj The panel object
23823     * @return The Elm_Panel_Orient, or ELM_PANEL_ORIENT_LEFT on failure.
23824     */
23825    EAPI Elm_Panel_Orient      elm_panel_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23826    /**
23827     * @brief Set the content of the panel.
23828     *
23829     * @param obj The panel object
23830     * @param content The panel content
23831     *
23832     * Once the content object is set, a previously set one will be deleted.
23833     * If you want to keep that old content object, use the
23834     * elm_panel_content_unset() function.
23835     */
23836    EAPI void                  elm_panel_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
23837    /**
23838     * @brief Get the content of the panel.
23839     *
23840     * @param obj The panel object
23841     * @return The content that is being used
23842     *
23843     * Return the content object which is set for this widget.
23844     *
23845     * @see elm_panel_content_set()
23846     */
23847    EAPI Evas_Object          *elm_panel_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23848    /**
23849     * @brief Unset the content of the panel.
23850     *
23851     * @param obj The panel object
23852     * @return The content that was being used
23853     *
23854     * Unparent and return the content object which was set for this widget.
23855     *
23856     * @see elm_panel_content_set()
23857     */
23858    EAPI Evas_Object          *elm_panel_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
23859    /**
23860     * @brief Set the state of the panel.
23861     *
23862     * @param obj The panel object
23863     * @param hidden If true, the panel will run the animation to contract
23864     */
23865    EAPI void                  elm_panel_hidden_set(Evas_Object *obj, Eina_Bool hidden) EINA_ARG_NONNULL(1);
23866    /**
23867     * @brief Get the state of the panel.
23868     *
23869     * @param obj The panel object
23870     * @param hidden If true, the panel is in the "hide" state
23871     */
23872    EAPI Eina_Bool             elm_panel_hidden_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23873    /**
23874     * @brief Toggle the hidden state of the panel from code
23875     *
23876     * @param obj The panel object
23877     */
23878    EAPI void                  elm_panel_toggle(Evas_Object *obj) EINA_ARG_NONNULL(1);
23879    /**
23880     * @}
23881     */
23882
23883    /**
23884     * @defgroup Panes Panes
23885     * @ingroup Elementary
23886     *
23887     * @image html img/widget/panes/preview-00.png
23888     * @image latex img/widget/panes/preview-00.eps width=\textwidth
23889     *
23890     * @image html img/panes.png
23891     * @image latex img/panes.eps width=\textwidth
23892     *
23893     * The panes adds a dragable bar between two contents. When dragged
23894     * this bar will resize contents size.
23895     *
23896     * Panes can be displayed vertically or horizontally, and contents
23897     * size proportion can be customized (homogeneous by default).
23898     *
23899     * Smart callbacks one can listen to:
23900     * - "press" - The panes has been pressed (button wasn't released yet).
23901     * - "unpressed" - The panes was released after being pressed.
23902     * - "clicked" - The panes has been clicked>
23903     * - "clicked,double" - The panes has been double clicked
23904     *
23905     * Available styles for it:
23906     * - @c "default"
23907     *
23908     * Default contents parts of the panes widget that you can use for are:
23909     * @li "left" - A leftside content of the panes
23910     * @li "right" - A rightside content of the panes
23911     *
23912     * If panes is displayed vertically, left content will be displayed at
23913     * top.
23914     * 
23915     * Here is an example on its usage:
23916     * @li @ref panes_example
23917     */
23918
23919    /**
23920     * @addtogroup Panes
23921     * @{
23922     */
23923
23924    /**
23925     * Add a new panes widget to the given parent Elementary
23926     * (container) object.
23927     *
23928     * @param parent The parent object.
23929     * @return a new panes widget handle or @c NULL, on errors.
23930     *
23931     * This function inserts a new panes widget on the canvas.
23932     *
23933     * @ingroup Panes
23934     */
23935    EAPI Evas_Object          *elm_panes_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23936
23937    /**
23938     * Set the left content of the panes widget.
23939     *
23940     * @param obj The panes object.
23941     * @param content The new left content object.
23942     *
23943     * Once the content object is set, a previously set one will be deleted.
23944     * If you want to keep that old content object, use the
23945     * elm_panes_content_left_unset() function.
23946     *
23947     * If panes is displayed vertically, left content will be displayed at
23948     * top.
23949     *
23950     * @see elm_panes_content_left_get()
23951     * @see elm_panes_content_right_set() to set content on the other side.
23952     *
23953     * @ingroup Panes
23954     */
23955    EINA_DEPRECATED EAPI void                  elm_panes_content_left_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
23956
23957    /**
23958     * Set the right content of the panes widget.
23959     *
23960     * @param obj The panes object.
23961     * @param content The new right content object.
23962     *
23963     * Once the content object is set, a previously set one will be deleted.
23964     * If you want to keep that old content object, use the
23965     * elm_panes_content_right_unset() function.
23966     *
23967     * If panes is displayed vertically, left content will be displayed at
23968     * bottom.
23969     *
23970     * @see elm_panes_content_right_get()
23971     * @see elm_panes_content_left_set() to set content on the other side.
23972     *
23973     * @ingroup Panes
23974     */
23975    EINA_DEPRECATED EAPI void                  elm_panes_content_right_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
23976
23977    /**
23978     * Get the left content of the panes.
23979     *
23980     * @param obj The panes object.
23981     * @return The left content object that is being used.
23982     *
23983     * Return the left content object which is set for this widget.
23984     *
23985     * @see elm_panes_content_left_set() for details.
23986     *
23987     * @ingroup Panes
23988     */
23989    EINA_DEPRECATED EAPI Evas_Object          *elm_panes_content_left_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23990
23991    /**
23992     * Get the right content of the panes.
23993     *
23994     * @param obj The panes object
23995     * @return The right content object that is being used
23996     *
23997     * Return the right content object which is set for this widget.
23998     *
23999     * @see elm_panes_content_right_set() for details.
24000     *
24001     * @ingroup Panes
24002     */
24003    EINA_DEPRECATED EAPI Evas_Object          *elm_panes_content_right_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24004
24005    /**
24006     * Unset the left content used for the panes.
24007     *
24008     * @param obj The panes object.
24009     * @return The left content object that was being used.
24010     *
24011     * Unparent and return the left content object which was set for this widget.
24012     *
24013     * @see elm_panes_content_left_set() for details.
24014     * @see elm_panes_content_left_get().
24015     *
24016     * @ingroup Panes
24017     */
24018    EINA_DEPRECATED EAPI Evas_Object          *elm_panes_content_left_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24019
24020    /**
24021     * Unset the right content used for the panes.
24022     *
24023     * @param obj The panes object.
24024     * @return The right content object that was being used.
24025     *
24026     * Unparent and return the right content object which was set for this
24027     * widget.
24028     *
24029     * @see elm_panes_content_right_set() for details.
24030     * @see elm_panes_content_right_get().
24031     *
24032     * @ingroup Panes
24033     */
24034    EAPI Evas_Object          *elm_panes_content_right_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24035
24036    /**
24037     * Get the size proportion of panes widget's left side.
24038     *
24039     * @param obj The panes object.
24040     * @return float value between 0.0 and 1.0 representing size proportion
24041     * of left side.
24042     *
24043     * @see elm_panes_content_left_size_set() for more details.
24044     *
24045     * @ingroup Panes
24046     */
24047    EAPI double                elm_panes_content_left_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24048
24049    /**
24050     * Set the size proportion of panes widget's left side.
24051     *
24052     * @param obj The panes object.
24053     * @param size Value between 0.0 and 1.0 representing size proportion
24054     * of left side.
24055     *
24056     * By default it's homogeneous, i.e., both sides have the same size.
24057     *
24058     * If something different is required, it can be set with this function.
24059     * For example, if the left content should be displayed over
24060     * 75% of the panes size, @p size should be passed as @c 0.75.
24061     * This way, right content will be resized to 25% of panes size.
24062     *
24063     * If displayed vertically, left content is displayed at top, and
24064     * right content at bottom.
24065     *
24066     * @note This proportion will change when user drags the panes bar.
24067     *
24068     * @see elm_panes_content_left_size_get()
24069     *
24070     * @ingroup Panes
24071     */
24072    EAPI void                  elm_panes_content_left_size_set(Evas_Object *obj, double size) EINA_ARG_NONNULL(1);
24073
24074   /**
24075    * Set the orientation of a given panes widget.
24076    *
24077    * @param obj The panes object.
24078    * @param horizontal Use @c EINA_TRUE to make @p obj to be
24079    * @b horizontal, @c EINA_FALSE to make it @b vertical.
24080    *
24081    * Use this function to change how your panes is to be
24082    * disposed: vertically or horizontally.
24083    *
24084    * By default it's displayed horizontally.
24085    *
24086    * @see elm_panes_horizontal_get()
24087    *
24088    * @ingroup Panes
24089    */
24090    EAPI void                  elm_panes_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
24091
24092    /**
24093     * Retrieve the orientation of a given panes widget.
24094     *
24095     * @param obj The panes object.
24096     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
24097     * @c EINA_FALSE if it's @b vertical (and on errors).
24098     *
24099     * @see elm_panes_horizontal_set() for more details.
24100     *
24101     * @ingroup Panes
24102     */
24103    EAPI Eina_Bool             elm_panes_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24104    EAPI void                  elm_panes_fixed_set(Evas_Object *obj, Eina_Bool fixed) EINA_ARG_NONNULL(1);
24105    EAPI Eina_Bool             elm_panes_fixed_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24106
24107    /**
24108     * @}
24109     */
24110
24111    /**
24112     * @defgroup Flip Flip
24113     *
24114     * @image html img/widget/flip/preview-00.png
24115     * @image latex img/widget/flip/preview-00.eps
24116     *
24117     * This widget holds 2 content objects(Evas_Object): one on the front and one
24118     * on the back. It allows you to flip from front to back and vice-versa using
24119     * various animations.
24120     *
24121     * If either the front or back contents are not set the flip will treat that
24122     * as transparent. So if you wore to set the front content but not the back,
24123     * and then call elm_flip_go() you would see whatever is below the flip.
24124     *
24125     * For a list of supported animations see elm_flip_go().
24126     *
24127     * Signals that you can add callbacks for are:
24128     * "animate,begin" - when a flip animation was started
24129     * "animate,done" - when a flip animation is finished
24130     *
24131     * @ref tutorial_flip show how to use most of the API.
24132     *
24133     * @{
24134     */
24135    typedef enum _Elm_Flip_Mode
24136      {
24137         ELM_FLIP_ROTATE_Y_CENTER_AXIS,
24138         ELM_FLIP_ROTATE_X_CENTER_AXIS,
24139         ELM_FLIP_ROTATE_XZ_CENTER_AXIS,
24140         ELM_FLIP_ROTATE_YZ_CENTER_AXIS,
24141         ELM_FLIP_CUBE_LEFT,
24142         ELM_FLIP_CUBE_RIGHT,
24143         ELM_FLIP_CUBE_UP,
24144         ELM_FLIP_CUBE_DOWN,
24145         ELM_FLIP_PAGE_LEFT,
24146         ELM_FLIP_PAGE_RIGHT,
24147         ELM_FLIP_PAGE_UP,
24148         ELM_FLIP_PAGE_DOWN
24149      } Elm_Flip_Mode;
24150    typedef enum _Elm_Flip_Interaction
24151      {
24152         ELM_FLIP_INTERACTION_NONE,
24153         ELM_FLIP_INTERACTION_ROTATE,
24154         ELM_FLIP_INTERACTION_CUBE,
24155         ELM_FLIP_INTERACTION_PAGE
24156      } Elm_Flip_Interaction;
24157    typedef enum _Elm_Flip_Direction
24158      {
24159         ELM_FLIP_DIRECTION_UP, /**< Allows interaction with the top of the widget */
24160         ELM_FLIP_DIRECTION_DOWN, /**< Allows interaction with the bottom of the widget */
24161         ELM_FLIP_DIRECTION_LEFT, /**< Allows interaction with the left portion of the widget */
24162         ELM_FLIP_DIRECTION_RIGHT /**< Allows interaction with the right portion of the widget */
24163      } Elm_Flip_Direction;
24164    /**
24165     * @brief Add a new flip to the parent
24166     *
24167     * @param parent The parent object
24168     * @return The new object or NULL if it cannot be created
24169     */
24170    EAPI Evas_Object *elm_flip_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24171    /**
24172     * @brief Set the front content of the flip widget.
24173     *
24174     * @param obj The flip object
24175     * @param content The new front content object
24176     *
24177     * Once the content object is set, a previously set one will be deleted.
24178     * If you want to keep that old content object, use the
24179     * elm_flip_content_front_unset() function.
24180     */
24181    EAPI void         elm_flip_content_front_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24182    /**
24183     * @brief Set the back content of the flip widget.
24184     *
24185     * @param obj The flip object
24186     * @param content The new back content object
24187     *
24188     * Once the content object is set, a previously set one will be deleted.
24189     * If you want to keep that old content object, use the
24190     * elm_flip_content_back_unset() function.
24191     */
24192    EAPI void         elm_flip_content_back_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24193    /**
24194     * @brief Get the front content used for the flip
24195     *
24196     * @param obj The flip object
24197     * @return The front content object that is being used
24198     *
24199     * Return the front content object which is set for this widget.
24200     */
24201    EAPI Evas_Object *elm_flip_content_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24202    /**
24203     * @brief Get the back content used for the flip
24204     *
24205     * @param obj The flip object
24206     * @return The back content object that is being used
24207     *
24208     * Return the back content object which is set for this widget.
24209     */
24210    EAPI Evas_Object *elm_flip_content_back_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24211    /**
24212     * @brief Unset the front content used for the flip
24213     *
24214     * @param obj The flip object
24215     * @return The front content object that was being used
24216     *
24217     * Unparent and return the front content object which was set for this widget.
24218     */
24219    EAPI Evas_Object *elm_flip_content_front_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24220    /**
24221     * @brief Unset the back content used for the flip
24222     *
24223     * @param obj The flip object
24224     * @return The back content object that was being used
24225     *
24226     * Unparent and return the back content object which was set for this widget.
24227     */
24228    EAPI Evas_Object *elm_flip_content_back_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24229    /**
24230     * @brief Get flip front visibility state
24231     *
24232     * @param obj The flip objct
24233     * @return EINA_TRUE if front front is showing, EINA_FALSE if the back is
24234     * showing.
24235     */
24236    EAPI Eina_Bool    elm_flip_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24237    /**
24238     * @brief Set flip perspective
24239     *
24240     * @param obj The flip object
24241     * @param foc The coordinate to set the focus on
24242     * @param x The X coordinate
24243     * @param y The Y coordinate
24244     *
24245     * @warning This function currently does nothing.
24246     */
24247    EAPI void         elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
24248    /**
24249     * @brief Runs the flip animation
24250     *
24251     * @param obj The flip object
24252     * @param mode The mode type
24253     *
24254     * Flips the front and back contents using the @p mode animation. This
24255     * efectively hides the currently visible content and shows the hidden one.
24256     *
24257     * There a number of possible animations to use for the flipping:
24258     * @li ELM_FLIP_ROTATE_X_CENTER_AXIS - Rotate the currently visible content
24259     * around a horizontal axis in the middle of its height, the other content
24260     * is shown as the other side of the flip.
24261     * @li ELM_FLIP_ROTATE_Y_CENTER_AXIS - Rotate the currently visible content
24262     * around a vertical axis in the middle of its width, the other content is
24263     * shown as the other side of the flip.
24264     * @li ELM_FLIP_ROTATE_XZ_CENTER_AXIS - Rotate the currently visible content
24265     * around a diagonal axis in the middle of its width, the other content is
24266     * shown as the other side of the flip.
24267     * @li ELM_FLIP_ROTATE_YZ_CENTER_AXIS - Rotate the currently visible content
24268     * around a diagonal axis in the middle of its height, the other content is
24269     * shown as the other side of the flip.
24270     * @li ELM_FLIP_CUBE_LEFT - Rotate the currently visible content to the left
24271     * as if the flip was a cube, the other content is show as the right face of
24272     * the cube.
24273     * @li ELM_FLIP_CUBE_RIGHT - Rotate the currently visible content to the
24274     * right as if the flip was a cube, the other content is show as the left
24275     * face of the cube.
24276     * @li ELM_FLIP_CUBE_UP - Rotate the currently visible content up as if the
24277     * flip was a cube, the other content is show as the bottom face of the cube.
24278     * @li ELM_FLIP_CUBE_DOWN - Rotate the currently visible content down as if
24279     * the flip was a cube, the other content is show as the upper face of the
24280     * cube.
24281     * @li ELM_FLIP_PAGE_LEFT - Move the currently visible content to the left as
24282     * if the flip was a book, the other content is shown as the page below that.
24283     * @li ELM_FLIP_PAGE_RIGHT - Move the currently visible content to the right
24284     * as if the flip was a book, the other content is shown as the page below
24285     * that.
24286     * @li ELM_FLIP_PAGE_UP - Move the currently visible content up as if the
24287     * flip was a book, the other content is shown as the page below that.
24288     * @li ELM_FLIP_PAGE_DOWN - Move the currently visible content down as if the
24289     * flip was a book, the other content is shown as the page below that.
24290     *
24291     * @image html elm_flip.png
24292     * @image latex elm_flip.eps width=\textwidth
24293     */
24294    EAPI void         elm_flip_go(Evas_Object *obj, Elm_Flip_Mode mode) EINA_ARG_NONNULL(1);
24295    /**
24296     * @brief Set the interactive flip mode
24297     *
24298     * @param obj The flip object
24299     * @param mode The interactive flip mode to use
24300     *
24301     * This sets if the flip should be interactive (allow user to click and
24302     * drag a side of the flip to reveal the back page and cause it to flip).
24303     * By default a flip is not interactive. You may also need to set which
24304     * sides of the flip are "active" for flipping and how much space they use
24305     * (a minimum of a finger size) with elm_flip_interacton_direction_enabled_set()
24306     * and elm_flip_interacton_direction_hitsize_set()
24307     *
24308     * The four avilable mode of interaction are:
24309     * @li ELM_FLIP_INTERACTION_NONE - No interaction is allowed
24310     * @li ELM_FLIP_INTERACTION_ROTATE - Interaction will cause rotate animation
24311     * @li ELM_FLIP_INTERACTION_CUBE - Interaction will cause cube animation
24312     * @li ELM_FLIP_INTERACTION_PAGE - Interaction will cause page animation
24313     *
24314     * @note ELM_FLIP_INTERACTION_ROTATE won't cause
24315     * ELM_FLIP_ROTATE_XZ_CENTER_AXIS or ELM_FLIP_ROTATE_YZ_CENTER_AXIS to
24316     * happen, those can only be acheived with elm_flip_go();
24317     */
24318    EAPI void         elm_flip_interaction_set(Evas_Object *obj, Elm_Flip_Interaction mode);
24319    /**
24320     * @brief Get the interactive flip mode
24321     *
24322     * @param obj The flip object
24323     * @return The interactive flip mode
24324     *
24325     * Returns the interactive flip mode set by elm_flip_interaction_set()
24326     */
24327    EAPI Elm_Flip_Interaction elm_flip_interaction_get(const Evas_Object *obj);
24328    /**
24329     * @brief Set which directions of the flip respond to interactive flip
24330     *
24331     * @param obj The flip object
24332     * @param dir The direction to change
24333     * @param enabled If that direction is enabled or not
24334     *
24335     * By default all directions are disabled, so you may want to enable the
24336     * desired directions for flipping if you need interactive flipping. You must
24337     * call this function once for each direction that should be enabled.
24338     *
24339     * @see elm_flip_interaction_set()
24340     */
24341    EAPI void         elm_flip_interacton_direction_enabled_set(Evas_Object *obj, Elm_Flip_Direction dir, Eina_Bool enabled);
24342    /**
24343     * @brief Get the enabled state of that flip direction
24344     *
24345     * @param obj The flip object
24346     * @param dir The direction to check
24347     * @return If that direction is enabled or not
24348     *
24349     * Gets the enabled state set by elm_flip_interacton_direction_enabled_set()
24350     *
24351     * @see elm_flip_interaction_set()
24352     */
24353    EAPI Eina_Bool    elm_flip_interacton_direction_enabled_get(Evas_Object *obj, Elm_Flip_Direction dir);
24354    /**
24355     * @brief Set the amount of the flip that is sensitive to interactive flip
24356     *
24357     * @param obj The flip object
24358     * @param dir The direction to modify
24359     * @param hitsize The amount of that dimension (0.0 to 1.0) to use
24360     *
24361     * Set the amount of the flip that is sensitive to interactive flip, with 0
24362     * representing no area in the flip and 1 representing the entire flip. There
24363     * is however a consideration to be made in that the area will never be
24364     * smaller than the finger size set(as set in your Elementary configuration).
24365     *
24366     * @see elm_flip_interaction_set()
24367     */
24368    EAPI void         elm_flip_interacton_direction_hitsize_set(Evas_Object *obj, Elm_Flip_Direction dir, double hitsize);
24369    /**
24370     * @brief Get the amount of the flip that is sensitive to interactive flip
24371     *
24372     * @param obj The flip object
24373     * @param dir The direction to check
24374     * @return The size set for that direction
24375     *
24376     * Returns the amount os sensitive area set by
24377     * elm_flip_interacton_direction_hitsize_set().
24378     */
24379    EAPI double       elm_flip_interacton_direction_hitsize_get(Evas_Object *obj, Elm_Flip_Direction dir);
24380    /**
24381     * @}
24382     */
24383
24384    /* scrolledentry */
24385    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24386    EINA_DEPRECATED EAPI void         elm_scrolled_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
24387    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24388    EINA_DEPRECATED EAPI void         elm_scrolled_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
24389    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24390    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
24391    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24392    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
24393    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24394    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24395    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
24396    EINA_DEPRECATED EAPI void         elm_scrolled_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
24397    EINA_DEPRECATED EAPI void         elm_scrolled_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
24398    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24399    EINA_DEPRECATED EAPI void         elm_scrolled_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
24400    EINA_DEPRECATED EAPI void         elm_scrolled_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
24401    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
24402    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
24403    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
24404    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
24405    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24406    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24407    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24408    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24409    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
24410    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
24411    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24412    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24413    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24414    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
24415    EINA_DEPRECATED EAPI int          elm_scrolled_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24416    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
24417    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
24418    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
24419    EINA_DEPRECATED EAPI void         elm_scrolled_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
24420    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);
24421    EINA_DEPRECATED EAPI void         elm_scrolled_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
24422    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24423    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);
24424    EINA_DEPRECATED EAPI void         elm_scrolled_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
24425    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);
24426    EINA_DEPRECATED EAPI void         elm_scrolled_entry_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1, 2);
24427    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24428    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24429    EINA_DEPRECATED EAPI void         elm_scrolled_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
24430    EINA_DEPRECATED EAPI void         elm_scrolled_entry_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1, 2);
24431    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24432    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24433    EINA_DEPRECATED EAPI void         elm_scrolled_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
24434    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);
24435    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);
24436    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);
24437    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);
24438    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);
24439    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);
24440    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
24441    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
24442    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
24443    EINA_DEPRECATED EAPI void         elm_scrolled_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
24444    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24445    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
24446    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cnp_textonly_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
24447    EINA_DEPRECATED EAPI void         elm_scrolled_entry_line_char_wrap_set(Evas_Object *obj, Eina_Bool wrap) EINA_ARG_NONNULL(1);
24448    EINA_DEPRECATED EAPI void         elm_scrolled_entry_input_panel_enabled_set(Evas_Object *obj, Eina_Bool enabled);
24449    EINA_DEPRECATED EAPI void         elm_scrolled_entry_input_panel_layout_set(Evas_Object *obj, Elm_Input_Panel_Layout layout);
24450    EINA_DEPRECATED EAPI Ecore_IMF_Context *elm_scrolled_entry_imf_context_get(Evas_Object *obj);
24451    EINA_DEPRECATED EAPI void         elm_scrolled_entry_autocapitalization_set(Evas_Object *obj, Eina_Bool autocap);
24452    EINA_DEPRECATED EAPI void         elm_scrolled_entry_autoperiod_set(Evas_Object *obj, Eina_Bool autoperiod);
24453
24454    /**
24455     * @defgroup Conformant Conformant
24456     * @ingroup Elementary
24457     *
24458     * @image html img/widget/conformant/preview-00.png
24459     * @image latex img/widget/conformant/preview-00.eps width=\textwidth
24460     *
24461     * @image html img/conformant.png
24462     * @image latex img/conformant.eps width=\textwidth
24463     *
24464     * The aim is to provide a widget that can be used in elementary apps to
24465     * account for space taken up by the indicator, virtual keypad & softkey
24466     * windows when running the illume2 module of E17.
24467     *
24468     * So conformant content will be sized and positioned considering the
24469     * space required for such stuff, and when they popup, as a keyboard
24470     * shows when an entry is selected, conformant content won't change.
24471     *
24472     * Available styles for it:
24473     * - @c "default"
24474     *
24475     * Default contents parts of the conformant widget that you can use for are:
24476     * @li "default" - A content of the conformant
24477     *
24478     * See how to use this widget in this example:
24479     * @ref conformant_example
24480     */
24481
24482    /**
24483     * @addtogroup Conformant
24484     * @{
24485     */
24486
24487    /**
24488     * Add a new conformant widget to the given parent Elementary
24489     * (container) object.
24490     *
24491     * @param parent The parent object.
24492     * @return A new conformant widget handle or @c NULL, on errors.
24493     *
24494     * This function inserts a new conformant widget on the canvas.
24495     *
24496     * @ingroup Conformant
24497     */
24498    EAPI Evas_Object *elm_conformant_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24499
24500    /**
24501     * Set the content of the conformant widget.
24502     *
24503     * @param obj The conformant object.
24504     * @param content The content to be displayed by the conformant.
24505     *
24506     * Content will be sized and positioned considering the space required
24507     * to display a virtual keyboard. So it won't fill all the conformant
24508     * size. This way is possible to be sure that content won't resize
24509     * or be re-positioned after the keyboard is displayed.
24510     *
24511     * Once the content object is set, a previously set one will be deleted.
24512     * If you want to keep that old content object, use the
24513     * elm_object_content_unset() function.
24514     *
24515     * @see elm_object_content_unset()
24516     * @see elm_object_content_get()
24517     *
24518     * @ingroup Conformant
24519     */
24520    EAPI void         elm_conformant_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24521
24522    /**
24523     * Get the content of the conformant widget.
24524     *
24525     * @param obj The conformant object.
24526     * @return The content that is being used.
24527     *
24528     * Return the content object which is set for this widget.
24529     * It won't be unparent from conformant. For that, use
24530     * elm_object_content_unset().
24531     *
24532     * @see elm_object_content_set().
24533     * @see elm_object_content_unset()
24534     *
24535     * @ingroup Conformant
24536     */
24537    EAPI Evas_Object *elm_conformant_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24538
24539    /**
24540     * Unset the content of the conformant widget.
24541     *
24542     * @param obj The conformant object.
24543     * @return The content that was being used.
24544     *
24545     * Unparent and return the content object which was set for this widget.
24546     *
24547     * @see elm_object_content_set().
24548     *
24549     * @ingroup Conformant
24550     */
24551    EAPI Evas_Object *elm_conformant_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24552
24553    /**
24554     * Returns the Evas_Object that represents the content area.
24555     *
24556     * @param obj The conformant object.
24557     * @return The content area of the widget.
24558     *
24559     * @ingroup Conformant
24560     */
24561    EAPI Evas_Object *elm_conformant_content_area_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24562
24563    /**
24564     * @}
24565     */
24566
24567    /**
24568     * @defgroup Mapbuf Mapbuf
24569     * @ingroup Elementary
24570     *
24571     * @image html img/widget/mapbuf/preview-00.png
24572     * @image latex img/widget/mapbuf/preview-00.eps width=\textwidth
24573     *
24574     * This holds one content object and uses an Evas Map of transformation
24575     * points to be later used with this content. So the content will be
24576     * moved, resized, etc as a single image. So it will improve performance
24577     * when you have a complex interafce, with a lot of elements, and will
24578     * need to resize or move it frequently (the content object and its
24579     * children).
24580     *
24581     * Default contents parts of the mapbuf widget that you can use for are:
24582     * @li "default" - A content of the mapbuf
24583     *
24584     * To enable map, elm_mapbuf_enabled_set() should be used.
24585     * 
24586     * See how to use this widget in this example:
24587     * @ref mapbuf_example
24588     */
24589
24590    /**
24591     * @addtogroup Mapbuf
24592     * @{
24593     */
24594
24595    /**
24596     * Add a new mapbuf widget to the given parent Elementary
24597     * (container) object.
24598     *
24599     * @param parent The parent object.
24600     * @return A new mapbuf widget handle or @c NULL, on errors.
24601     *
24602     * This function inserts a new mapbuf widget on the canvas.
24603     *
24604     * @ingroup Mapbuf
24605     */
24606    EAPI Evas_Object *elm_mapbuf_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24607
24608    /**
24609     * Set the content of the mapbuf.
24610     *
24611     * @param obj The mapbuf object.
24612     * @param content The content that will be filled in this mapbuf object.
24613     *
24614     * Once the content object is set, a previously set one will be deleted.
24615     * If you want to keep that old content object, use the
24616     * elm_mapbuf_content_unset() function.
24617     *
24618     * To enable map, elm_mapbuf_enabled_set() should be used.
24619     *
24620     * @ingroup Mapbuf
24621     */
24622    EAPI void         elm_mapbuf_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24623
24624    /**
24625     * Get the content of the mapbuf.
24626     *
24627     * @param obj The mapbuf object.
24628     * @return The content that is being used.
24629     *
24630     * Return the content object which is set for this widget.
24631     *
24632     * @see elm_mapbuf_content_set() for details.
24633     *
24634     * @ingroup Mapbuf
24635     */
24636    EAPI Evas_Object *elm_mapbuf_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24637
24638    /**
24639     * Unset the content of the mapbuf.
24640     *
24641     * @param obj The mapbuf object.
24642     * @return The content that was being used.
24643     *
24644     * Unparent and return the content object which was set for this widget.
24645     *
24646     * @see elm_mapbuf_content_set() for details.
24647     *
24648     * @ingroup Mapbuf
24649     */
24650    EAPI Evas_Object *elm_mapbuf_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24651
24652    /**
24653     * Enable or disable the map.
24654     *
24655     * @param obj The mapbuf object.
24656     * @param enabled @c EINA_TRUE to enable map or @c EINA_FALSE to disable it.
24657     *
24658     * This enables the map that is set or disables it. On enable, the object
24659     * geometry will be saved, and the new geometry will change (position and
24660     * size) to reflect the map geometry set.
24661     *
24662     * Also, when enabled, alpha and smooth states will be used, so if the
24663     * content isn't solid, alpha should be enabled, for example, otherwise
24664     * a black retangle will fill the content.
24665     *
24666     * When disabled, the stored map will be freed and geometry prior to
24667     * enabling the map will be restored.
24668     *
24669     * It's disabled by default.
24670     *
24671     * @see elm_mapbuf_alpha_set()
24672     * @see elm_mapbuf_smooth_set()
24673     *
24674     * @ingroup Mapbuf
24675     */
24676    EAPI void         elm_mapbuf_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
24677
24678    /**
24679     * Get a value whether map is enabled or not.
24680     *
24681     * @param obj The mapbuf object.
24682     * @return @c EINA_TRUE means map is enabled. @c EINA_FALSE indicates
24683     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
24684     *
24685     * @see elm_mapbuf_enabled_set() for details.
24686     *
24687     * @ingroup Mapbuf
24688     */
24689    EAPI Eina_Bool    elm_mapbuf_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24690
24691    /**
24692     * Enable or disable smooth map rendering.
24693     *
24694     * @param obj The mapbuf object.
24695     * @param smooth @c EINA_TRUE to enable smooth map rendering or @c EINA_FALSE
24696     * to disable it.
24697     *
24698     * This sets smoothing for map rendering. If the object is a type that has
24699     * its own smoothing settings, then both the smooth settings for this object
24700     * and the map must be turned off.
24701     *
24702     * By default smooth maps are enabled.
24703     *
24704     * @ingroup Mapbuf
24705     */
24706    EAPI void         elm_mapbuf_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
24707
24708    /**
24709     * Get a value whether smooth map rendering is enabled or not.
24710     *
24711     * @param obj The mapbuf object.
24712     * @return @c EINA_TRUE means smooth map rendering is enabled. @c EINA_FALSE
24713     * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
24714     *
24715     * @see elm_mapbuf_smooth_set() for details.
24716     *
24717     * @ingroup Mapbuf
24718     */
24719    EAPI Eina_Bool    elm_mapbuf_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24720
24721    /**
24722     * Set or unset alpha flag for map rendering.
24723     *
24724     * @param obj The mapbuf object.
24725     * @param alpha @c EINA_TRUE to enable alpha blending or @c EINA_FALSE
24726     * to disable it.
24727     *
24728     * This sets alpha flag for map rendering. If the object is a type that has
24729     * its own alpha settings, then this will take precedence. Only image objects
24730     * have this currently. It stops alpha blending of the map area, and is
24731     * useful if you know the object and/or all sub-objects is 100% solid.
24732     *
24733     * Alpha is enabled by default.
24734     *
24735     * @ingroup Mapbuf
24736     */
24737    EAPI void         elm_mapbuf_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
24738
24739    /**
24740     * Get a value whether alpha blending is enabled or not.
24741     *
24742     * @param obj The mapbuf object.
24743     * @return @c EINA_TRUE means alpha blending is enabled. @c EINA_FALSE
24744     * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
24745     *
24746     * @see elm_mapbuf_alpha_set() for details.
24747     *
24748     * @ingroup Mapbuf
24749     */
24750    EAPI Eina_Bool    elm_mapbuf_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24751
24752    /**
24753     * @}
24754     */
24755
24756    /**
24757     * @defgroup Flipselector Flip Selector
24758     *
24759     * @image html img/widget/flipselector/preview-00.png
24760     * @image latex img/widget/flipselector/preview-00.eps
24761     *
24762     * A flip selector is a widget to show a set of @b text items, one
24763     * at a time, with the same sheet switching style as the @ref Clock
24764     * "clock" widget, when one changes the current displaying sheet
24765     * (thus, the "flip" in the name).
24766     *
24767     * User clicks to flip sheets which are @b held for some time will
24768     * make the flip selector to flip continuosly and automatically for
24769     * the user. The interval between flips will keep growing in time,
24770     * so that it helps the user to reach an item which is distant from
24771     * the current selection.
24772     *
24773     * Smart callbacks one can register to:
24774     * - @c "selected" - when the widget's selected text item is changed
24775     * - @c "overflowed" - when the widget's current selection is changed
24776     *   from the first item in its list to the last
24777     * - @c "underflowed" - when the widget's current selection is changed
24778     *   from the last item in its list to the first
24779     *
24780     * Available styles for it:
24781     * - @c "default"
24782     *
24783          * To set/get the label of the flipselector item, you can use
24784          * elm_object_item_text_set/get APIs.
24785          * Once the text is set, a previously set one will be deleted.
24786          * 
24787     * Here is an example on its usage:
24788     * @li @ref flipselector_example
24789     */
24790
24791    /**
24792     * @addtogroup Flipselector
24793     * @{
24794     */
24795
24796    typedef struct _Elm_Flipselector_Item Elm_Flipselector_Item; /**< Item handle for a flip selector widget. */
24797
24798    /**
24799     * Add a new flip selector widget to the given parent Elementary
24800     * (container) widget
24801     *
24802     * @param parent The parent object
24803     * @return a new flip selector widget handle or @c NULL, on errors
24804     *
24805     * This function inserts a new flip selector widget on the canvas.
24806     *
24807     * @ingroup Flipselector
24808     */
24809    EAPI Evas_Object               *elm_flipselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24810
24811    /**
24812     * Programmatically select the next item of a flip selector widget
24813     *
24814     * @param obj The flipselector object
24815     *
24816     * @note The selection will be animated. Also, if it reaches the
24817     * end of its list of member items, it will continue with the first
24818     * one onwards.
24819     *
24820     * @ingroup Flipselector
24821     */
24822    EAPI void                       elm_flipselector_flip_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
24823
24824    /**
24825     * Programmatically select the previous item of a flip selector
24826     * widget
24827     *
24828     * @param obj The flipselector object
24829     *
24830     * @note The selection will be animated.  Also, if it reaches the
24831     * beginning of its list of member items, it will continue with the
24832     * last one backwards.
24833     *
24834     * @ingroup Flipselector
24835     */
24836    EAPI void                       elm_flipselector_flip_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
24837
24838    /**
24839     * Append a (text) item to a flip selector widget
24840     *
24841     * @param obj The flipselector object
24842     * @param label The (text) label of the new item
24843     * @param func Convenience callback function to take place when
24844     * item is selected
24845     * @param data Data passed to @p func, above
24846     * @return A handle to the item added or @c NULL, on errors
24847     *
24848     * The widget's list of labels to show will be appended with the
24849     * given value. If the user wishes so, a callback function pointer
24850     * can be passed, which will get called when this same item is
24851     * selected.
24852     *
24853     * @note The current selection @b won't be modified by appending an
24854     * element to the list.
24855     *
24856     * @note The maximum length of the text label is going to be
24857     * determined <b>by the widget's theme</b>. Strings larger than
24858     * that value are going to be @b truncated.
24859     *
24860     * @ingroup Flipselector
24861     */
24862    EAPI Elm_Flipselector_Item     *elm_flipselector_item_append(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
24863
24864    /**
24865     * Prepend a (text) item to a flip selector widget
24866     *
24867     * @param obj The flipselector object
24868     * @param label The (text) label of the new item
24869     * @param func Convenience callback function to take place when
24870     * item is selected
24871     * @param data Data passed to @p func, above
24872     * @return A handle to the item added or @c NULL, on errors
24873     *
24874     * The widget's list of labels to show will be prepended with the
24875     * given value. If the user wishes so, a callback function pointer
24876     * can be passed, which will get called when this same item is
24877     * selected.
24878     *
24879     * @note The current selection @b won't be modified by prepending
24880     * an element to the list.
24881     *
24882     * @note The maximum length of the text label is going to be
24883     * determined <b>by the widget's theme</b>. Strings larger than
24884     * that value are going to be @b truncated.
24885     *
24886     * @ingroup Flipselector
24887     */
24888    EAPI Elm_Flipselector_Item     *elm_flipselector_item_prepend(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
24889
24890    /**
24891     * Get the internal list of items in a given flip selector widget.
24892     *
24893     * @param obj The flipselector object
24894     * @return The list of items (#Elm_Flipselector_Item as data) or
24895     * @c NULL on errors.
24896     *
24897     * This list is @b not to be modified in any way and must not be
24898     * freed. Use the list members with functions like
24899     * elm_flipselector_item_label_set(),
24900     * elm_flipselector_item_label_get(),
24901     * elm_flipselector_item_del(),
24902     * elm_flipselector_item_selected_get(),
24903     * elm_flipselector_item_selected_set().
24904     *
24905     * @warning This list is only valid until @p obj object's internal
24906     * items list is changed. It should be fetched again with another
24907     * call to this function when changes happen.
24908     *
24909     * @ingroup Flipselector
24910     */
24911    EAPI const Eina_List           *elm_flipselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24912
24913    /**
24914     * Get the first item in the given flip selector widget's list of
24915     * items.
24916     *
24917     * @param obj The flipselector object
24918     * @return The first item or @c NULL, if it has no items (and on
24919     * errors)
24920     *
24921     * @see elm_flipselector_item_append()
24922     * @see elm_flipselector_last_item_get()
24923     *
24924     * @ingroup Flipselector
24925     */
24926    EAPI Elm_Flipselector_Item     *elm_flipselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24927
24928    /**
24929     * Get the last item in the given flip selector widget's list of
24930     * items.
24931     *
24932     * @param obj The flipselector object
24933     * @return The last item or @c NULL, if it has no items (and on
24934     * errors)
24935     *
24936     * @see elm_flipselector_item_prepend()
24937     * @see elm_flipselector_first_item_get()
24938     *
24939     * @ingroup Flipselector
24940     */
24941    EAPI Elm_Flipselector_Item     *elm_flipselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24942
24943    /**
24944     * Get the currently selected item in a flip selector widget.
24945     *
24946     * @param obj The flipselector object
24947     * @return The selected item or @c NULL, if the widget has no items
24948     * (and on erros)
24949     *
24950     * @ingroup Flipselector
24951     */
24952    EAPI Elm_Flipselector_Item     *elm_flipselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24953
24954    /**
24955     * Set whether a given flip selector widget's item should be the
24956     * currently selected one.
24957     *
24958     * @param item The flip selector item
24959     * @param selected @c EINA_TRUE to select it, @c EINA_FALSE to unselect.
24960     *
24961     * This sets whether @p item is or not the selected (thus, under
24962     * display) one. If @p item is different than one under display,
24963     * the latter will be unselected. If the @p item is set to be
24964     * unselected, on the other hand, the @b first item in the widget's
24965     * internal members list will be the new selected one.
24966     *
24967     * @see elm_flipselector_item_selected_get()
24968     *
24969     * @ingroup Flipselector
24970     */
24971    EAPI void                       elm_flipselector_item_selected_set(Elm_Flipselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
24972
24973    /**
24974     * Get whether a given flip selector widget's item is the currently
24975     * selected one.
24976     *
24977     * @param item The flip selector item
24978     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
24979     * (or on errors).
24980     *
24981     * @see elm_flipselector_item_selected_set()
24982     *
24983     * @ingroup Flipselector
24984     */
24985    EAPI Eina_Bool                  elm_flipselector_item_selected_get(const Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
24986
24987    /**
24988     * Delete a given item from a flip selector widget.
24989     *
24990     * @param item The item to delete
24991     *
24992     * @ingroup Flipselector
24993     */
24994    EAPI void                       elm_flipselector_item_del(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
24995
24996    /**
24997     * Get the label of a given flip selector widget's item.
24998     *
24999     * @param item The item to get label from
25000     * @return The text label of @p item or @c NULL, on errors
25001     *
25002     * @see elm_flipselector_item_label_set()
25003     *
25004     * @ingroup Flipselector
25005     */
25006    EAPI const char                *elm_flipselector_item_label_get(const Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
25007
25008    /**
25009     * Set the label of a given flip selector widget's item.
25010     *
25011     * @param item The item to set label on
25012     * @param label The text label string, in UTF-8 encoding
25013     *
25014     * @see elm_flipselector_item_label_get()
25015     *
25016     * @ingroup Flipselector
25017     */
25018    EAPI void                       elm_flipselector_item_label_set(Elm_Flipselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
25019
25020    /**
25021     * Gets the item before @p item in a flip selector widget's
25022     * internal list of items.
25023     *
25024     * @param item The item to fetch previous from
25025     * @return The item before the @p item, in its parent's list. If
25026     *         there is no previous item for @p item or there's an
25027     *         error, @c NULL is returned.
25028     *
25029     * @see elm_flipselector_item_next_get()
25030     *
25031     * @ingroup Flipselector
25032     */
25033    EAPI Elm_Flipselector_Item     *elm_flipselector_item_prev_get(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
25034
25035    /**
25036     * Gets the item after @p item in a flip selector widget's
25037     * internal list of items.
25038     *
25039     * @param item The item to fetch next from
25040     * @return The item after the @p item, in its parent's list. If
25041     *         there is no next item for @p item or there's an
25042     *         error, @c NULL is returned.
25043     *
25044     * @see elm_flipselector_item_next_get()
25045     *
25046     * @ingroup Flipselector
25047     */
25048    EAPI Elm_Flipselector_Item     *elm_flipselector_item_next_get(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
25049
25050    /**
25051     * Set the interval on time updates for an user mouse button hold
25052     * on a flip selector widget.
25053     *
25054     * @param obj The flip selector object
25055     * @param interval The (first) interval value in seconds
25056     *
25057     * This interval value is @b decreased while the user holds the
25058     * mouse pointer either flipping up or flipping doww a given flip
25059     * selector.
25060     *
25061     * This helps the user to get to a given item distant from the
25062     * current one easier/faster, as it will start to flip quicker and
25063     * quicker on mouse button holds.
25064     *
25065     * The calculation for the next flip interval value, starting from
25066     * the one set with this call, is the previous interval divided by
25067     * 1.05, so it decreases a little bit.
25068     *
25069     * The default starting interval value for automatic flips is
25070     * @b 0.85 seconds.
25071     *
25072     * @see elm_flipselector_interval_get()
25073     *
25074     * @ingroup Flipselector
25075     */
25076    EAPI void                       elm_flipselector_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
25077
25078    /**
25079     * Get the interval on time updates for an user mouse button hold
25080     * on a flip selector widget.
25081     *
25082     * @param obj The flip selector object
25083     * @return The (first) interval value, in seconds, set on it
25084     *
25085     * @see elm_flipselector_interval_set() for more details
25086     *
25087     * @ingroup Flipselector
25088     */
25089    EAPI double                     elm_flipselector_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25090    /**
25091     * @}
25092     */
25093
25094    /**
25095     * @addtogroup Calendar
25096     * @{
25097     */
25098
25099    /**
25100     * @enum _Elm_Calendar_Mark_Repeat
25101     * @typedef Elm_Calendar_Mark_Repeat
25102     *
25103     * Event periodicity, used to define if a mark should be repeated
25104     * @b beyond event's day. It's set when a mark is added.
25105     *
25106     * So, for a mark added to 13th May with periodicity set to WEEKLY,
25107     * there will be marks every week after this date. Marks will be displayed
25108     * at 13th, 20th, 27th, 3rd June ...
25109     *
25110     * Values don't work as bitmask, only one can be choosen.
25111     *
25112     * @see elm_calendar_mark_add()
25113     *
25114     * @ingroup Calendar
25115     */
25116    typedef enum _Elm_Calendar_Mark_Repeat
25117      {
25118         ELM_CALENDAR_UNIQUE, /**< Default value. Marks will be displayed only on event day. */
25119         ELM_CALENDAR_DAILY, /**< Marks will be displayed everyday after event day (inclusive). */
25120         ELM_CALENDAR_WEEKLY, /**< Marks will be displayed every week after event day (inclusive) - i.e. each seven days. */
25121         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*/
25122         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. */
25123      } Elm_Calendar_Mark_Repeat;
25124
25125    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(). */
25126
25127    /**
25128     * Add a new calendar widget to the given parent Elementary
25129     * (container) object.
25130     *
25131     * @param parent The parent object.
25132     * @return a new calendar widget handle or @c NULL, on errors.
25133     *
25134     * This function inserts a new calendar widget on the canvas.
25135     *
25136     * @ref calendar_example_01
25137     *
25138     * @ingroup Calendar
25139     */
25140    EAPI Evas_Object       *elm_calendar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25141
25142    /**
25143     * Get weekdays names displayed by the calendar.
25144     *
25145     * @param obj The calendar object.
25146     * @return Array of seven strings to be used as weekday names.
25147     *
25148     * By default, weekdays abbreviations get from system are displayed:
25149     * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
25150     * The first string is related to Sunday, the second to Monday...
25151     *
25152     * @see elm_calendar_weekdays_name_set()
25153     *
25154     * @ref calendar_example_05
25155     *
25156     * @ingroup Calendar
25157     */
25158    EAPI const char       **elm_calendar_weekdays_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25159
25160    /**
25161     * Set weekdays names to be displayed by the calendar.
25162     *
25163     * @param obj The calendar object.
25164     * @param weekdays Array of seven strings to be used as weekday names.
25165     * @warning It must have 7 elements, or it will access invalid memory.
25166     * @warning The strings must be NULL terminated ('@\0').
25167     *
25168     * By default, weekdays abbreviations get from system are displayed:
25169     * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
25170     *
25171     * The first string should be related to Sunday, the second to Monday...
25172     *
25173     * The usage should be like this:
25174     * @code
25175     *   const char *weekdays[] =
25176     *   {
25177     *      "Sunday", "Monday", "Tuesday", "Wednesday",
25178     *      "Thursday", "Friday", "Saturday"
25179     *   };
25180     *   elm_calendar_weekdays_names_set(calendar, weekdays);
25181     * @endcode
25182     *
25183     * @see elm_calendar_weekdays_name_get()
25184     *
25185     * @ref calendar_example_02
25186     *
25187     * @ingroup Calendar
25188     */
25189    EAPI void               elm_calendar_weekdays_names_set(Evas_Object *obj, const char *weekdays[]) EINA_ARG_NONNULL(1, 2);
25190
25191    /**
25192     * Set the minimum and maximum values for the year
25193     *
25194     * @param obj The calendar object
25195     * @param min The minimum year, greater than 1901;
25196     * @param max The maximum year;
25197     *
25198     * Maximum must be greater than minimum, except if you don't wan't to set
25199     * maximum year.
25200     * Default values are 1902 and -1.
25201     *
25202     * If the maximum year is a negative value, it will be limited depending
25203     * on the platform architecture (year 2037 for 32 bits);
25204     *
25205     * @see elm_calendar_min_max_year_get()
25206     *
25207     * @ref calendar_example_03
25208     *
25209     * @ingroup Calendar
25210     */
25211    EAPI void               elm_calendar_min_max_year_set(Evas_Object *obj, int min, int max) EINA_ARG_NONNULL(1);
25212
25213    /**
25214     * Get the minimum and maximum values for the year
25215     *
25216     * @param obj The calendar object.
25217     * @param min The minimum year.
25218     * @param max The maximum year.
25219     *
25220     * Default values are 1902 and -1.
25221     *
25222     * @see elm_calendar_min_max_year_get() for more details.
25223     *
25224     * @ref calendar_example_05
25225     *
25226     * @ingroup Calendar
25227     */
25228    EAPI void               elm_calendar_min_max_year_get(const Evas_Object *obj, int *min, int *max) EINA_ARG_NONNULL(1);
25229
25230    /**
25231     * Enable or disable day selection
25232     *
25233     * @param obj The calendar object.
25234     * @param enabled @c EINA_TRUE to enable selection or @c EINA_FALSE to
25235     * disable it.
25236     *
25237     * Enabled by default. If disabled, the user still can select months,
25238     * but not days. Selected days are highlighted on calendar.
25239     * It should be used if you won't need such selection for the widget usage.
25240     *
25241     * When a day is selected, or month is changed, smart callbacks for
25242     * signal "changed" will be called.
25243     *
25244     * @see elm_calendar_day_selection_enable_get()
25245     *
25246     * @ref calendar_example_04
25247     *
25248     * @ingroup Calendar
25249     */
25250    EAPI void               elm_calendar_day_selection_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
25251
25252    /**
25253     * Get a value whether day selection is enabled or not.
25254     *
25255     * @see elm_calendar_day_selection_enable_set() for details.
25256     *
25257     * @param obj The calendar object.
25258     * @return EINA_TRUE means day selection is enabled. EINA_FALSE indicates
25259     * it's disabled. If @p obj is NULL, EINA_FALSE is returned.
25260     *
25261     * @ref calendar_example_05
25262     *
25263     * @ingroup Calendar
25264     */
25265    EAPI Eina_Bool          elm_calendar_day_selection_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25266
25267
25268    /**
25269     * Set selected date to be highlighted on calendar.
25270     *
25271     * @param obj The calendar object.
25272     * @param selected_time A @b tm struct to represent the selected date.
25273     *
25274     * Set the selected date, changing the displayed month if needed.
25275     * Selected date changes when the user goes to next/previous month or
25276     * select a day pressing over it on calendar.
25277     *
25278     * @see elm_calendar_selected_time_get()
25279     *
25280     * @ref calendar_example_04
25281     *
25282     * @ingroup Calendar
25283     */
25284    EAPI void               elm_calendar_selected_time_set(Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1);
25285
25286    /**
25287     * Get selected date.
25288     *
25289     * @param obj The calendar object
25290     * @param selected_time A @b tm struct to point to selected date
25291     * @return EINA_FALSE means an error ocurred and returned time shouldn't
25292     * be considered.
25293     *
25294     * Get date selected by the user or set by function
25295     * elm_calendar_selected_time_set().
25296     * Selected date changes when the user goes to next/previous month or
25297     * select a day pressing over it on calendar.
25298     *
25299     * @see elm_calendar_selected_time_get()
25300     *
25301     * @ref calendar_example_05
25302     *
25303     * @ingroup Calendar
25304     */
25305    EAPI Eina_Bool          elm_calendar_selected_time_get(const Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1, 2);
25306
25307    /**
25308     * Set a function to format the string that will be used to display
25309     * month and year;
25310     *
25311     * @param obj The calendar object
25312     * @param format_function Function to set the month-year string given
25313     * the selected date
25314     *
25315     * By default it uses strftime with "%B %Y" format string.
25316     * It should allocate the memory that will be used by the string,
25317     * that will be freed by the widget after usage.
25318     * A pointer to the string and a pointer to the time struct will be provided.
25319     *
25320     * Example:
25321     * @code
25322     * static char *
25323     * _format_month_year(struct tm *selected_time)
25324     * {
25325     *    char buf[32];
25326     *    if (!strftime(buf, sizeof(buf), "%B %Y", selected_time)) return NULL;
25327     *    return strdup(buf);
25328     * }
25329     *
25330     * elm_calendar_format_function_set(calendar, _format_month_year);
25331     * @endcode
25332     *
25333     * @ref calendar_example_02
25334     *
25335     * @ingroup Calendar
25336     */
25337    EAPI void               elm_calendar_format_function_set(Evas_Object *obj, char * (*format_function) (struct tm *stime)) EINA_ARG_NONNULL(1);
25338
25339    /**
25340     * Add a new mark to the calendar
25341     *
25342     * @param obj The calendar object
25343     * @param mark_type A string used to define the type of mark. It will be
25344     * emitted to the theme, that should display a related modification on these
25345     * days representation.
25346     * @param mark_time A time struct to represent the date of inclusion of the
25347     * mark. For marks that repeats it will just be displayed after the inclusion
25348     * date in the calendar.
25349     * @param repeat Repeat the event following this periodicity. Can be a unique
25350     * mark (that don't repeat), daily, weekly, monthly or annually.
25351     * @return The created mark or @p NULL upon failure.
25352     *
25353     * Add a mark that will be drawn in the calendar respecting the insertion
25354     * time and periodicity. It will emit the type as signal to the widget theme.
25355     * Default theme supports "holiday" and "checked", but it can be extended.
25356     *
25357     * It won't immediately update the calendar, drawing the marks.
25358     * For this, call elm_calendar_marks_draw(). However, when user selects
25359     * next or previous month calendar forces marks drawn.
25360     *
25361     * Marks created with this method can be deleted with
25362     * elm_calendar_mark_del().
25363     *
25364     * Example
25365     * @code
25366     * struct tm selected_time;
25367     * time_t current_time;
25368     *
25369     * current_time = time(NULL) + 5 * 84600;
25370     * localtime_r(&current_time, &selected_time);
25371     * elm_calendar_mark_add(cal, "holiday", selected_time,
25372     *     ELM_CALENDAR_ANNUALLY);
25373     *
25374     * current_time = time(NULL) + 1 * 84600;
25375     * localtime_r(&current_time, &selected_time);
25376     * elm_calendar_mark_add(cal, "checked", selected_time, ELM_CALENDAR_UNIQUE);
25377     *
25378     * elm_calendar_marks_draw(cal);
25379     * @endcode
25380     *
25381     * @see elm_calendar_marks_draw()
25382     * @see elm_calendar_mark_del()
25383     *
25384     * @ref calendar_example_06
25385     *
25386     * @ingroup Calendar
25387     */
25388    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);
25389
25390    /**
25391     * Delete mark from the calendar.
25392     *
25393     * @param mark The mark to be deleted.
25394     *
25395     * If deleting all calendar marks is required, elm_calendar_marks_clear()
25396     * should be used instead of getting marks list and deleting each one.
25397     *
25398     * @see elm_calendar_mark_add()
25399     *
25400     * @ref calendar_example_06
25401     *
25402     * @ingroup Calendar
25403     */
25404    EAPI void               elm_calendar_mark_del(Elm_Calendar_Mark *mark) EINA_ARG_NONNULL(1);
25405
25406    /**
25407     * Remove all calendar's marks
25408     *
25409     * @param obj The calendar object.
25410     *
25411     * @see elm_calendar_mark_add()
25412     * @see elm_calendar_mark_del()
25413     *
25414     * @ingroup Calendar
25415     */
25416    EAPI void               elm_calendar_marks_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
25417
25418
25419    /**
25420     * Get a list of all the calendar marks.
25421     *
25422     * @param obj The calendar object.
25423     * @return An @c Eina_List of calendar marks objects, or @c NULL on failure.
25424     *
25425     * @see elm_calendar_mark_add()
25426     * @see elm_calendar_mark_del()
25427     * @see elm_calendar_marks_clear()
25428     *
25429     * @ingroup Calendar
25430     */
25431    EAPI const Eina_List   *elm_calendar_marks_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25432
25433    /**
25434     * Draw calendar marks.
25435     *
25436     * @param obj The calendar object.
25437     *
25438     * Should be used after adding, removing or clearing marks.
25439     * It will go through the entire marks list updating the calendar.
25440     * If lots of marks will be added, add all the marks and then call
25441     * this function.
25442     *
25443     * When the month is changed, i.e. user selects next or previous month,
25444     * marks will be drawed.
25445     *
25446     * @see elm_calendar_mark_add()
25447     * @see elm_calendar_mark_del()
25448     * @see elm_calendar_marks_clear()
25449     *
25450     * @ref calendar_example_06
25451     *
25452     * @ingroup Calendar
25453     */
25454    EAPI void               elm_calendar_marks_draw(Evas_Object *obj) EINA_ARG_NONNULL(1);
25455
25456    /**
25457     * Set a day text color to the same that represents Saturdays.
25458     *
25459     * @param obj The calendar object.
25460     * @param pos The text position. Position is the cell counter, from left
25461     * to right, up to down. It starts on 0 and ends on 41.
25462     *
25463     * @deprecated use elm_calendar_mark_add() instead like:
25464     *
25465     * @code
25466     * struct tm t = { 0, 0, 12, 6, 0, 0, 6, 6, -1 };
25467     * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
25468     * @endcode
25469     *
25470     * @see elm_calendar_mark_add()
25471     *
25472     * @ingroup Calendar
25473     */
25474    EINA_DEPRECATED EAPI void               elm_calendar_text_saturday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
25475
25476    /**
25477     * Set a day text color to the same that represents Sundays.
25478     *
25479     * @param obj The calendar object.
25480     * @param pos The text position. Position is the cell counter, from left
25481     * to right, up to down. It starts on 0 and ends on 41.
25482
25483     * @deprecated use elm_calendar_mark_add() instead like:
25484     *
25485     * @code
25486     * struct tm t = { 0, 0, 12, 7, 0, 0, 0, 0, -1 };
25487     * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
25488     * @endcode
25489     *
25490     * @see elm_calendar_mark_add()
25491     *
25492     * @ingroup Calendar
25493     */
25494    EINA_DEPRECATED EAPI void               elm_calendar_text_sunday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
25495
25496    /**
25497     * Set a day text color to the same that represents Weekdays.
25498     *
25499     * @param obj The calendar object
25500     * @param pos The text position. Position is the cell counter, from left
25501     * to right, up to down. It starts on 0 and ends on 41.
25502     *
25503     * @deprecated use elm_calendar_mark_add() instead like:
25504     *
25505     * @code
25506     * struct tm t = { 0, 0, 12, 1, 0, 0, 0, 0, -1 };
25507     *
25508     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // monday
25509     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
25510     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // tuesday
25511     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
25512     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // wednesday
25513     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
25514     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // thursday
25515     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
25516     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // friday
25517     * @endcode
25518     *
25519     * @see elm_calendar_mark_add()
25520     *
25521     * @ingroup Calendar
25522     */
25523    EINA_DEPRECATED EAPI void               elm_calendar_text_weekday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
25524
25525    /**
25526     * Set the interval on time updates for an user mouse button hold
25527     * on calendar widgets' month selection.
25528     *
25529     * @param obj The calendar object
25530     * @param interval The (first) interval value in seconds
25531     *
25532     * This interval value is @b decreased while the user holds the
25533     * mouse pointer either selecting next or previous month.
25534     *
25535     * This helps the user to get to a given month distant from the
25536     * current one easier/faster, as it will start to change quicker and
25537     * quicker on mouse button holds.
25538     *
25539     * The calculation for the next change interval value, starting from
25540     * the one set with this call, is the previous interval divided by
25541     * 1.05, so it decreases a little bit.
25542     *
25543     * The default starting interval value for automatic changes is
25544     * @b 0.85 seconds.
25545     *
25546     * @see elm_calendar_interval_get()
25547     *
25548     * @ingroup Calendar
25549     */
25550    EAPI void               elm_calendar_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
25551
25552    /**
25553     * Get the interval on time updates for an user mouse button hold
25554     * on calendar widgets' month selection.
25555     *
25556     * @param obj The calendar object
25557     * @return The (first) interval value, in seconds, set on it
25558     *
25559     * @see elm_calendar_interval_set() for more details
25560     *
25561     * @ingroup Calendar
25562     */
25563    EAPI double             elm_calendar_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25564
25565    /**
25566     * @}
25567     */
25568
25569    /**
25570     * @defgroup Diskselector Diskselector
25571     * @ingroup Elementary
25572     *
25573     * @image html img/widget/diskselector/preview-00.png
25574     * @image latex img/widget/diskselector/preview-00.eps
25575     *
25576     * A diskselector is a kind of list widget. It scrolls horizontally,
25577     * and can contain label and icon objects. Three items are displayed
25578     * with the selected one in the middle.
25579     *
25580     * It can act like a circular list with round mode and labels can be
25581     * reduced for a defined length for side items.
25582     *
25583     * Smart callbacks one can listen to:
25584     * - "selected" - when item is selected, i.e. scroller stops.
25585     *
25586     * Available styles for it:
25587     * - @c "default"
25588     *
25589     * List of examples:
25590     * @li @ref diskselector_example_01
25591     * @li @ref diskselector_example_02
25592     */
25593
25594    /**
25595     * @addtogroup Diskselector
25596     * @{
25597     */
25598
25599    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(). */
25600
25601    /**
25602     * Add a new diskselector widget to the given parent Elementary
25603     * (container) object.
25604     *
25605     * @param parent The parent object.
25606     * @return a new diskselector widget handle or @c NULL, on errors.
25607     *
25608     * This function inserts a new diskselector widget on the canvas.
25609     *
25610     * @ingroup Diskselector
25611     */
25612    EAPI Evas_Object           *elm_diskselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25613
25614    /**
25615     * Enable or disable round mode.
25616     *
25617     * @param obj The diskselector object.
25618     * @param round @c EINA_TRUE to enable round mode or @c EINA_FALSE to
25619     * disable it.
25620     *
25621     * Disabled by default. If round mode is enabled the items list will
25622     * work like a circle list, so when the user reaches the last item,
25623     * the first one will popup.
25624     *
25625     * @see elm_diskselector_round_get()
25626     *
25627     * @ingroup Diskselector
25628     */
25629    EAPI void                   elm_diskselector_round_set(Evas_Object *obj, Eina_Bool round) EINA_ARG_NONNULL(1);
25630
25631    /**
25632     * Get a value whether round mode is enabled or not.
25633     *
25634     * @see elm_diskselector_round_set() for details.
25635     *
25636     * @param obj The diskselector object.
25637     * @return @c EINA_TRUE means round mode is enabled. @c EINA_FALSE indicates
25638     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
25639     *
25640     * @ingroup Diskselector
25641     */
25642    EAPI Eina_Bool              elm_diskselector_round_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25643
25644    /**
25645     * Get the side labels max length.
25646     *
25647     * @deprecated use elm_diskselector_side_label_length_get() instead:
25648     *
25649     * @param obj The diskselector object.
25650     * @return The max length defined for side labels, or 0 if not a valid
25651     * diskselector.
25652     *
25653     * @ingroup Diskselector
25654     */
25655    EINA_DEPRECATED EAPI int    elm_diskselector_side_label_lenght_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25656
25657    /**
25658     * Set the side labels max length.
25659     *
25660     * @deprecated use elm_diskselector_side_label_length_set() instead:
25661     *
25662     * @param obj The diskselector object.
25663     * @param len The max length defined for side labels.
25664     *
25665     * @ingroup Diskselector
25666     */
25667    EINA_DEPRECATED EAPI void   elm_diskselector_side_label_lenght_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
25668
25669    /**
25670     * Get the side labels max length.
25671     *
25672     * @see elm_diskselector_side_label_length_set() for details.
25673     *
25674     * @param obj The diskselector object.
25675     * @return The max length defined for side labels, or 0 if not a valid
25676     * diskselector.
25677     *
25678     * @ingroup Diskselector
25679     */
25680    EAPI int                    elm_diskselector_side_label_length_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25681
25682    /**
25683     * Set the side labels max length.
25684     *
25685     * @param obj The diskselector object.
25686     * @param len The max length defined for side labels.
25687     *
25688     * Length is the number of characters of items' label that will be
25689     * visible when it's set on side positions. It will just crop
25690     * the string after defined size. E.g.:
25691     *
25692     * An item with label "January" would be displayed on side position as
25693     * "Jan" if max length is set to 3, or "Janu", if this property
25694     * is set to 4.
25695     *
25696     * When it's selected, the entire label will be displayed, except for
25697     * width restrictions. In this case label will be cropped and "..."
25698     * will be concatenated.
25699     *
25700     * Default side label max length is 3.
25701     *
25702     * This property will be applyed over all items, included before or
25703     * later this function call.
25704     *
25705     * @ingroup Diskselector
25706     */
25707    EAPI void                   elm_diskselector_side_label_length_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
25708
25709    /**
25710     * Set the number of items to be displayed.
25711     *
25712     * @param obj The diskselector object.
25713     * @param num The number of items the diskselector will display.
25714     *
25715     * Default value is 3, and also it's the minimun. If @p num is less
25716     * than 3, it will be set to 3.
25717     *
25718     * Also, it can be set on theme, using data item @c display_item_num
25719     * on group "elm/diskselector/item/X", where X is style set.
25720     * E.g.:
25721     *
25722     * group { name: "elm/diskselector/item/X";
25723     * data {
25724     *     item: "display_item_num" "5";
25725     *     }
25726     *
25727     * @ingroup Diskselector
25728     */
25729    EAPI void                   elm_diskselector_display_item_num_set(Evas_Object *obj, int num) EINA_ARG_NONNULL(1);
25730
25731    /**
25732     * Get the number of items in the diskselector object.
25733     *
25734     * @param obj The diskselector object.
25735     *
25736     * @ingroup Diskselector
25737     */
25738    EAPI int                   elm_diskselector_display_item_num_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25739
25740    /**
25741     * Set bouncing behaviour when the scrolled content reaches an edge.
25742     *
25743     * Tell the internal scroller object whether it should bounce or not
25744     * when it reaches the respective edges for each axis.
25745     *
25746     * @param obj The diskselector object.
25747     * @param h_bounce Whether to bounce or not in the horizontal axis.
25748     * @param v_bounce Whether to bounce or not in the vertical axis.
25749     *
25750     * @see elm_scroller_bounce_set()
25751     *
25752     * @ingroup Diskselector
25753     */
25754    EAPI void                   elm_diskselector_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
25755
25756    /**
25757     * Get the bouncing behaviour of the internal scroller.
25758     *
25759     * Get whether the internal scroller should bounce when the edge of each
25760     * axis is reached scrolling.
25761     *
25762     * @param obj The diskselector object.
25763     * @param h_bounce Pointer where to store the bounce state of the horizontal
25764     * axis.
25765     * @param v_bounce Pointer where to store the bounce state of the vertical
25766     * axis.
25767     *
25768     * @see elm_scroller_bounce_get()
25769     * @see elm_diskselector_bounce_set()
25770     *
25771     * @ingroup Diskselector
25772     */
25773    EAPI void                   elm_diskselector_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
25774
25775    /**
25776     * Get the scrollbar policy.
25777     *
25778     * @see elm_diskselector_scroller_policy_get() for details.
25779     *
25780     * @param obj The diskselector object.
25781     * @param policy_h Pointer where to store horizontal scrollbar policy.
25782     * @param policy_v Pointer where to store vertical scrollbar policy.
25783     *
25784     * @ingroup Diskselector
25785     */
25786    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);
25787
25788    /**
25789     * Set the scrollbar policy.
25790     *
25791     * @param obj The diskselector object.
25792     * @param policy_h Horizontal scrollbar policy.
25793     * @param policy_v Vertical scrollbar policy.
25794     *
25795     * This sets the scrollbar visibility policy for the given scroller.
25796     * #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it
25797     * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
25798     * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
25799     * This applies respectively for the horizontal and vertical scrollbars.
25800     *
25801     * The both are disabled by default, i.e., are set to
25802     * #ELM_SCROLLER_POLICY_OFF.
25803     *
25804     * @ingroup Diskselector
25805     */
25806    EAPI void                   elm_diskselector_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
25807
25808    /**
25809     * Remove all diskselector's items.
25810     *
25811     * @param obj The diskselector object.
25812     *
25813     * @see elm_diskselector_item_del()
25814     * @see elm_diskselector_item_append()
25815     *
25816     * @ingroup Diskselector
25817     */
25818    EAPI void                   elm_diskselector_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
25819
25820    /**
25821     * Get a list of all the diskselector items.
25822     *
25823     * @param obj The diskselector object.
25824     * @return An @c Eina_List of diskselector items, #Elm_Diskselector_Item,
25825     * or @c NULL on failure.
25826     *
25827     * @see elm_diskselector_item_append()
25828     * @see elm_diskselector_item_del()
25829     * @see elm_diskselector_clear()
25830     *
25831     * @ingroup Diskselector
25832     */
25833    EAPI const Eina_List       *elm_diskselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25834
25835    /**
25836     * Appends a new item to the diskselector object.
25837     *
25838     * @param obj The diskselector object.
25839     * @param label The label of the diskselector item.
25840     * @param icon The icon object to use at left side of the item. An
25841     * icon can be any Evas object, but usually it is an icon created
25842     * with elm_icon_add().
25843     * @param func The function to call when the item is selected.
25844     * @param data The data to associate with the item for related callbacks.
25845     *
25846     * @return The created item or @c NULL upon failure.
25847     *
25848     * A new item will be created and appended to the diskselector, i.e., will
25849     * be set as last item. Also, if there is no selected item, it will
25850     * be selected. This will always happens for the first appended item.
25851     *
25852     * If no icon is set, label will be centered on item position, otherwise
25853     * the icon will be placed at left of the label, that will be shifted
25854     * to the right.
25855     *
25856     * Items created with this method can be deleted with
25857     * elm_diskselector_item_del().
25858     *
25859     * Associated @p data can be properly freed when item is deleted if a
25860     * callback function is set with elm_diskselector_item_del_cb_set().
25861     *
25862     * If a function is passed as argument, it will be called everytime this item
25863     * is selected, i.e., the user stops the diskselector with this
25864     * item on center position. If such function isn't needed, just passing
25865     * @c NULL as @p func is enough. The same should be done for @p data.
25866     *
25867     * Simple example (with no function callback or data associated):
25868     * @code
25869     * disk = elm_diskselector_add(win);
25870     * ic = elm_icon_add(win);
25871     * elm_icon_file_set(ic, "path/to/image", NULL);
25872     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
25873     * elm_diskselector_item_append(disk, "label", ic, NULL, NULL);
25874     * @endcode
25875     *
25876     * @see elm_diskselector_item_del()
25877     * @see elm_diskselector_item_del_cb_set()
25878     * @see elm_diskselector_clear()
25879     * @see elm_icon_add()
25880     *
25881     * @ingroup Diskselector
25882     */
25883    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);
25884
25885
25886    /**
25887     * Delete them item from the diskselector.
25888     *
25889     * @param it The item of diskselector to be deleted.
25890     *
25891     * If deleting all diskselector items is required, elm_diskselector_clear()
25892     * should be used instead of getting items list and deleting each one.
25893     *
25894     * @see elm_diskselector_clear()
25895     * @see elm_diskselector_item_append()
25896     * @see elm_diskselector_item_del_cb_set()
25897     *
25898     * @ingroup Diskselector
25899     */
25900    EAPI void                   elm_diskselector_item_del(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
25901
25902    /**
25903     * Set the function called when a diskselector item is freed.
25904     *
25905     * @param it The item to set the callback on
25906     * @param func The function called
25907     *
25908     * If there is a @p func, then it will be called prior item's memory release.
25909     * That will be called with the following arguments:
25910     * @li item's data;
25911     * @li item's Evas object;
25912     * @li item itself;
25913     *
25914     * This way, a data associated to a diskselector item could be properly
25915     * freed.
25916     *
25917     * @ingroup Diskselector
25918     */
25919    EAPI void                   elm_diskselector_item_del_cb_set(Elm_Diskselector_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
25920
25921    /**
25922     * Get the data associated to the item.
25923     *
25924     * @param it The diskselector item
25925     * @return The data associated to @p it
25926     *
25927     * The return value is a pointer to data associated to @p item when it was
25928     * created, with function elm_diskselector_item_append(). If no data
25929     * was passed as argument, it will return @c NULL.
25930     *
25931     * @see elm_diskselector_item_append()
25932     *
25933     * @ingroup Diskselector
25934     */
25935    EAPI void                  *elm_diskselector_item_data_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
25936
25937    /**
25938     * Set the icon associated to the item.
25939     *
25940     * @param it The diskselector item
25941     * @param icon The icon object to associate with @p it
25942     *
25943     * The icon object to use at left side of the item. An
25944     * icon can be any Evas object, but usually it is an icon created
25945     * with elm_icon_add().
25946     *
25947     * Once the icon object is set, a previously set one will be deleted.
25948     * @warning Setting the same icon for two items will cause the icon to
25949     * dissapear from the first item.
25950     *
25951     * If an icon was passed as argument on item creation, with function
25952     * elm_diskselector_item_append(), it will be already
25953     * associated to the item.
25954     *
25955     * @see elm_diskselector_item_append()
25956     * @see elm_diskselector_item_icon_get()
25957     *
25958     * @ingroup Diskselector
25959     */
25960    EAPI void                   elm_diskselector_item_icon_set(Elm_Diskselector_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
25961
25962    /**
25963     * Get the icon associated to the item.
25964     *
25965     * @param it The diskselector item
25966     * @return The icon associated to @p it
25967     *
25968     * The return value is a pointer to the icon associated to @p item when it was
25969     * created, with function elm_diskselector_item_append(), or later
25970     * with function elm_diskselector_item_icon_set. If no icon
25971     * was passed as argument, it will return @c NULL.
25972     *
25973     * @see elm_diskselector_item_append()
25974     * @see elm_diskselector_item_icon_set()
25975     *
25976     * @ingroup Diskselector
25977     */
25978    EAPI Evas_Object           *elm_diskselector_item_icon_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
25979
25980    /**
25981     * Set the label of item.
25982     *
25983     * @param it The item of diskselector.
25984     * @param label The label of item.
25985     *
25986     * The label to be displayed by the item.
25987     *
25988     * If no icon is set, label will be centered on item position, otherwise
25989     * the icon will be placed at left of the label, that will be shifted
25990     * to the right.
25991     *
25992     * An item with label "January" would be displayed on side position as
25993     * "Jan" if max length is set to 3 with function
25994     * elm_diskselector_side_label_lenght_set(), or "Janu", if this property
25995     * is set to 4.
25996     *
25997     * When this @p item is selected, the entire label will be displayed,
25998     * except for width restrictions.
25999     * In this case label will be cropped and "..." will be concatenated,
26000     * but only for display purposes. It will keep the entire string, so
26001     * if diskselector is resized the remaining characters will be displayed.
26002     *
26003     * If a label was passed as argument on item creation, with function
26004     * elm_diskselector_item_append(), it will be already
26005     * displayed by the item.
26006     *
26007     * @see elm_diskselector_side_label_lenght_set()
26008     * @see elm_diskselector_item_label_get()
26009     * @see elm_diskselector_item_append()
26010     *
26011     * @ingroup Diskselector
26012     */
26013    EAPI void                   elm_diskselector_item_label_set(Elm_Diskselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
26014
26015    /**
26016     * Get the label of item.
26017     *
26018     * @param it The item of diskselector.
26019     * @return The label of item.
26020     *
26021     * The return value is a pointer to the label associated to @p item when it was
26022     * created, with function elm_diskselector_item_append(), or later
26023     * with function elm_diskselector_item_label_set. If no label
26024     * was passed as argument, it will return @c NULL.
26025     *
26026     * @see elm_diskselector_item_label_set() for more details.
26027     * @see elm_diskselector_item_append()
26028     *
26029     * @ingroup Diskselector
26030     */
26031    EAPI const char            *elm_diskselector_item_label_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26032
26033    /**
26034     * Get the selected item.
26035     *
26036     * @param obj The diskselector object.
26037     * @return The selected diskselector item.
26038     *
26039     * The selected item can be unselected with function
26040     * elm_diskselector_item_selected_set(), and the first item of
26041     * diskselector will be selected.
26042     *
26043     * The selected item always will be centered on diskselector, with
26044     * full label displayed, i.e., max lenght set to side labels won't
26045     * apply on the selected item. More details on
26046     * elm_diskselector_side_label_length_set().
26047     *
26048     * @ingroup Diskselector
26049     */
26050    EAPI Elm_Diskselector_Item *elm_diskselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26051
26052    /**
26053     * Set the selected state of an item.
26054     *
26055     * @param it The diskselector item
26056     * @param selected The selected state
26057     *
26058     * This sets the selected state of the given item @p it.
26059     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
26060     *
26061     * If a new item is selected the previosly selected will be unselected.
26062     * Previoulsy selected item can be get with function
26063     * elm_diskselector_selected_item_get().
26064     *
26065     * If the item @p it is unselected, the first item of diskselector will
26066     * be selected.
26067     *
26068     * Selected items will be visible on center position of diskselector.
26069     * So if it was on another position before selected, or was invisible,
26070     * diskselector will animate items until the selected item reaches center
26071     * position.
26072     *
26073     * @see elm_diskselector_item_selected_get()
26074     * @see elm_diskselector_selected_item_get()
26075     *
26076     * @ingroup Diskselector
26077     */
26078    EAPI void                   elm_diskselector_item_selected_set(Elm_Diskselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
26079
26080    /*
26081     * Get whether the @p item is selected or not.
26082     *
26083     * @param it The diskselector item.
26084     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
26085     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
26086     *
26087     * @see elm_diskselector_selected_item_set() for details.
26088     * @see elm_diskselector_item_selected_get()
26089     *
26090     * @ingroup Diskselector
26091     */
26092    EAPI Eina_Bool              elm_diskselector_item_selected_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26093
26094    /**
26095     * Get the first item of the diskselector.
26096     *
26097     * @param obj The diskselector object.
26098     * @return The first item, or @c NULL if none.
26099     *
26100     * The list of items follows append order. So it will return the first
26101     * item appended to the widget that wasn't deleted.
26102     *
26103     * @see elm_diskselector_item_append()
26104     * @see elm_diskselector_items_get()
26105     *
26106     * @ingroup Diskselector
26107     */
26108    EAPI Elm_Diskselector_Item *elm_diskselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26109
26110    /**
26111     * Get the last item of the diskselector.
26112     *
26113     * @param obj The diskselector object.
26114     * @return The last item, or @c NULL if none.
26115     *
26116     * The list of items follows append order. So it will return last first
26117     * item appended to the widget that wasn't deleted.
26118     *
26119     * @see elm_diskselector_item_append()
26120     * @see elm_diskselector_items_get()
26121     *
26122     * @ingroup Diskselector
26123     */
26124    EAPI Elm_Diskselector_Item *elm_diskselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26125
26126    /**
26127     * Get the item before @p item in diskselector.
26128     *
26129     * @param it The diskselector item.
26130     * @return The item before @p item, or @c NULL if none or on failure.
26131     *
26132     * The list of items follows append order. So it will return item appended
26133     * just before @p item and that wasn't deleted.
26134     *
26135     * If it is the first item, @c NULL will be returned.
26136     * First item can be get by elm_diskselector_first_item_get().
26137     *
26138     * @see elm_diskselector_item_append()
26139     * @see elm_diskselector_items_get()
26140     *
26141     * @ingroup Diskselector
26142     */
26143    EAPI Elm_Diskselector_Item *elm_diskselector_item_prev_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26144
26145    /**
26146     * Get the item after @p item in diskselector.
26147     *
26148     * @param it The diskselector item.
26149     * @return The item after @p item, or @c NULL if none or on failure.
26150     *
26151     * The list of items follows append order. So it will return item appended
26152     * just after @p item and that wasn't deleted.
26153     *
26154     * If it is the last item, @c NULL will be returned.
26155     * Last item can be get by elm_diskselector_last_item_get().
26156     *
26157     * @see elm_diskselector_item_append()
26158     * @see elm_diskselector_items_get()
26159     *
26160     * @ingroup Diskselector
26161     */
26162    EAPI Elm_Diskselector_Item *elm_diskselector_item_next_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26163
26164    /**
26165     * Set the text to be shown in the diskselector item.
26166     *
26167     * @param item Target item
26168     * @param text The text to set in the content
26169     *
26170     * Setup the text as tooltip to object. The item can have only one tooltip,
26171     * so any previous tooltip data is removed.
26172     *
26173     * @see elm_object_tooltip_text_set() for more details.
26174     *
26175     * @ingroup Diskselector
26176     */
26177    EAPI void                   elm_diskselector_item_tooltip_text_set(Elm_Diskselector_Item *item, const char *text) EINA_ARG_NONNULL(1);
26178
26179    /**
26180     * Set the content to be shown in the tooltip item.
26181     *
26182     * Setup the tooltip to item. The item can have only one tooltip,
26183     * so any previous tooltip data is removed. @p func(with @p data) will
26184     * be called every time that need show the tooltip and it should
26185     * return a valid Evas_Object. This object is then managed fully by
26186     * tooltip system and is deleted when the tooltip is gone.
26187     *
26188     * @param item the diskselector item being attached a tooltip.
26189     * @param func the function used to create the tooltip contents.
26190     * @param data what to provide to @a func as callback data/context.
26191     * @param del_cb called when data is not needed anymore, either when
26192     *        another callback replaces @p func, the tooltip is unset with
26193     *        elm_diskselector_item_tooltip_unset() or the owner @a item
26194     *        dies. This callback receives as the first parameter the
26195     *        given @a data, and @c event_info is the item.
26196     *
26197     * @see elm_object_tooltip_content_cb_set() for more details.
26198     *
26199     * @ingroup Diskselector
26200     */
26201    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);
26202
26203    /**
26204     * Unset tooltip from item.
26205     *
26206     * @param item diskselector item to remove previously set tooltip.
26207     *
26208     * Remove tooltip from item. The callback provided as del_cb to
26209     * elm_diskselector_item_tooltip_content_cb_set() will be called to notify
26210     * it is not used anymore.
26211     *
26212     * @see elm_object_tooltip_unset() for more details.
26213     * @see elm_diskselector_item_tooltip_content_cb_set()
26214     *
26215     * @ingroup Diskselector
26216     */
26217    EAPI void                   elm_diskselector_item_tooltip_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26218
26219
26220    /**
26221     * Sets a different style for this item tooltip.
26222     *
26223     * @note before you set a style you should define a tooltip with
26224     *       elm_diskselector_item_tooltip_content_cb_set() or
26225     *       elm_diskselector_item_tooltip_text_set()
26226     *
26227     * @param item diskselector item with tooltip already set.
26228     * @param style the theme style to use (default, transparent, ...)
26229     *
26230     * @see elm_object_tooltip_style_set() for more details.
26231     *
26232     * @ingroup Diskselector
26233     */
26234    EAPI void                   elm_diskselector_item_tooltip_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
26235
26236    /**
26237     * Get the style for this item tooltip.
26238     *
26239     * @param item diskselector item with tooltip already set.
26240     * @return style the theme style in use, defaults to "default". If the
26241     *         object does not have a tooltip set, then NULL is returned.
26242     *
26243     * @see elm_object_tooltip_style_get() for more details.
26244     * @see elm_diskselector_item_tooltip_style_set()
26245     *
26246     * @ingroup Diskselector
26247     */
26248    EAPI const char            *elm_diskselector_item_tooltip_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26249
26250    /**
26251     * Set the cursor to be shown when mouse is over the diskselector item
26252     *
26253     * @param item Target item
26254     * @param cursor the cursor name to be used.
26255     *
26256     * @see elm_object_cursor_set() for more details.
26257     *
26258     * @ingroup Diskselector
26259     */
26260    EAPI void                   elm_diskselector_item_cursor_set(Elm_Diskselector_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
26261
26262    /**
26263     * Get the cursor to be shown when mouse is over the diskselector item
26264     *
26265     * @param item diskselector item with cursor already set.
26266     * @return the cursor name.
26267     *
26268     * @see elm_object_cursor_get() for more details.
26269     * @see elm_diskselector_cursor_set()
26270     *
26271     * @ingroup Diskselector
26272     */
26273    EAPI const char            *elm_diskselector_item_cursor_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26274
26275
26276    /**
26277     * Unset the cursor to be shown when mouse is over the diskselector item
26278     *
26279     * @param item Target item
26280     *
26281     * @see elm_object_cursor_unset() for more details.
26282     * @see elm_diskselector_cursor_set()
26283     *
26284     * @ingroup Diskselector
26285     */
26286    EAPI void                   elm_diskselector_item_cursor_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26287
26288    /**
26289     * Sets a different style for this item cursor.
26290     *
26291     * @note before you set a style you should define a cursor with
26292     *       elm_diskselector_item_cursor_set()
26293     *
26294     * @param item diskselector item with cursor already set.
26295     * @param style the theme style to use (default, transparent, ...)
26296     *
26297     * @see elm_object_cursor_style_set() for more details.
26298     *
26299     * @ingroup Diskselector
26300     */
26301    EAPI void                   elm_diskselector_item_cursor_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
26302
26303
26304    /**
26305     * Get the style for this item cursor.
26306     *
26307     * @param item diskselector item with cursor already set.
26308     * @return style the theme style in use, defaults to "default". If the
26309     *         object does not have a cursor set, then @c NULL is returned.
26310     *
26311     * @see elm_object_cursor_style_get() for more details.
26312     * @see elm_diskselector_item_cursor_style_set()
26313     *
26314     * @ingroup Diskselector
26315     */
26316    EAPI const char            *elm_diskselector_item_cursor_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26317
26318
26319    /**
26320     * Set if the cursor set should be searched on the theme or should use
26321     * the provided by the engine, only.
26322     *
26323     * @note before you set if should look on theme you should define a cursor
26324     * with elm_diskselector_item_cursor_set().
26325     * By default it will only look for cursors provided by the engine.
26326     *
26327     * @param item widget item with cursor already set.
26328     * @param engine_only boolean to define if cursors set with
26329     * elm_diskselector_item_cursor_set() should be searched only
26330     * between cursors provided by the engine or searched on widget's
26331     * theme as well.
26332     *
26333     * @see elm_object_cursor_engine_only_set() for more details.
26334     *
26335     * @ingroup Diskselector
26336     */
26337    EAPI void                   elm_diskselector_item_cursor_engine_only_set(Elm_Diskselector_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
26338
26339    /**
26340     * Get the cursor engine only usage for this item cursor.
26341     *
26342     * @param item widget item with cursor already set.
26343     * @return engine_only boolean to define it cursors should be looked only
26344     * between the provided by the engine or searched on widget's theme as well.
26345     * If the item does not have a cursor set, then @c EINA_FALSE is returned.
26346     *
26347     * @see elm_object_cursor_engine_only_get() for more details.
26348     * @see elm_diskselector_item_cursor_engine_only_set()
26349     *
26350     * @ingroup Diskselector
26351     */
26352    EAPI Eina_Bool              elm_diskselector_item_cursor_engine_only_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26353
26354    /**
26355     * @}
26356     */
26357
26358    /**
26359     * @defgroup Colorselector Colorselector
26360     *
26361     * @{
26362     *
26363     * @image html img/widget/colorselector/preview-00.png
26364     * @image latex img/widget/colorselector/preview-00.eps
26365     *
26366     * @brief Widget for user to select a color.
26367     *
26368     * Signals that you can add callbacks for are:
26369     * "changed" - When the color value changes(event_info is NULL).
26370     *
26371     * See @ref tutorial_colorselector.
26372     */
26373    /**
26374     * @brief Add a new colorselector to the parent
26375     *
26376     * @param parent The parent object
26377     * @return The new object or NULL if it cannot be created
26378     *
26379     * @ingroup Colorselector
26380     */
26381    EAPI Evas_Object *elm_colorselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26382    /**
26383     * Set a color for the colorselector
26384     *
26385     * @param obj   Colorselector object
26386     * @param r     r-value of color
26387     * @param g     g-value of color
26388     * @param b     b-value of color
26389     * @param a     a-value of color
26390     *
26391     * @ingroup Colorselector
26392     */
26393    EAPI void         elm_colorselector_color_set(Evas_Object *obj, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
26394    /**
26395     * Get a color from the colorselector
26396     *
26397     * @param obj   Colorselector object
26398     * @param r     integer pointer for r-value of color
26399     * @param g     integer pointer for g-value of color
26400     * @param b     integer pointer for b-value of color
26401     * @param a     integer pointer for a-value of color
26402     *
26403     * @ingroup Colorselector
26404     */
26405    EAPI void         elm_colorselector_color_get(const Evas_Object *obj, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
26406    /**
26407     * @}
26408     */
26409
26410    /**
26411     * @defgroup Ctxpopup Ctxpopup
26412     *
26413     * @image html img/widget/ctxpopup/preview-00.png
26414     * @image latex img/widget/ctxpopup/preview-00.eps
26415     *
26416     * @brief Context popup widet.
26417     *
26418     * A ctxpopup is a widget that, when shown, pops up a list of items.
26419     * It automatically chooses an area inside its parent object's view
26420     * (set via elm_ctxpopup_add() and elm_ctxpopup_hover_parent_set()) to
26421     * optimally fit into it. In the default theme, it will also point an
26422     * arrow to it's top left position at the time one shows it. Ctxpopup
26423     * items have a label and/or an icon. It is intended for a small
26424     * number of items (hence the use of list, not genlist).
26425     *
26426     * @note Ctxpopup is a especialization of @ref Hover.
26427     *
26428     * Signals that you can add callbacks for are:
26429     * "dismissed" - the ctxpopup was dismissed
26430     *
26431     * Default contents parts of the ctxpopup widget that you can use for are:
26432     * @li "default" - A content of the ctxpopup
26433     *
26434     * @ref tutorial_ctxpopup shows the usage of a good deal of the API.
26435     * @{
26436     */
26437    typedef enum _Elm_Ctxpopup_Direction
26438      {
26439         ELM_CTXPOPUP_DIRECTION_DOWN, /**< ctxpopup show appear below clicked
26440                                           area */
26441         ELM_CTXPOPUP_DIRECTION_RIGHT, /**< ctxpopup show appear to the right of
26442                                            the clicked area */
26443         ELM_CTXPOPUP_DIRECTION_LEFT, /**< ctxpopup show appear to the left of
26444                                           the clicked area */
26445         ELM_CTXPOPUP_DIRECTION_UP, /**< ctxpopup show appear above the clicked
26446                                         area */
26447         ELM_CTXPOPUP_DIRECTION_UNKNOWN, /**< ctxpopup does not determine it's direction yet*/
26448      } Elm_Ctxpopup_Direction;
26449 #define Elm_Ctxpopup_Item Elm_Object_Item
26450
26451    /**
26452     * @brief Add a new Ctxpopup object to the parent.
26453     *
26454     * @param parent Parent object
26455     * @return New object or @c NULL, if it cannot be created
26456     */
26457    EAPI Evas_Object  *elm_ctxpopup_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26458    /**
26459     * @brief Set the Ctxpopup's parent
26460     *
26461     * @param obj The ctxpopup object
26462     * @param area The parent to use
26463     *
26464     * Set the parent object.
26465     *
26466     * @note elm_ctxpopup_add() will automatically call this function
26467     * with its @c parent argument.
26468     *
26469     * @see elm_ctxpopup_add()
26470     * @see elm_hover_parent_set()
26471     */
26472    EAPI void          elm_ctxpopup_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1, 2);
26473    /**
26474     * @brief Get the Ctxpopup's parent
26475     *
26476     * @param obj The ctxpopup object
26477     *
26478     * @see elm_ctxpopup_hover_parent_set() for more information
26479     */
26480    EAPI Evas_Object  *elm_ctxpopup_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26481    /**
26482     * @brief Clear all items in the given ctxpopup object.
26483     *
26484     * @param obj Ctxpopup object
26485     */
26486    EAPI void          elm_ctxpopup_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
26487    /**
26488     * @brief Change the ctxpopup's orientation to horizontal or vertical.
26489     *
26490     * @param obj Ctxpopup object
26491     * @param horizontal @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical
26492     */
26493    EAPI void          elm_ctxpopup_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
26494    /**
26495     * @brief Get the value of current ctxpopup object's orientation.
26496     *
26497     * @param obj Ctxpopup object
26498     * @return @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical mode (or errors)
26499     *
26500     * @see elm_ctxpopup_horizontal_set()
26501     */
26502    EAPI Eina_Bool     elm_ctxpopup_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26503    /**
26504     * @brief Add a new item to a ctxpopup object.
26505     *
26506     * @param obj Ctxpopup object
26507     * @param icon Icon to be set on new item
26508     * @param label The Label of the new item
26509     * @param func Convenience function called when item selected
26510     * @param data Data passed to @p func
26511     * @return A handle to the item added or @c NULL, on errors
26512     *
26513     * @warning Ctxpopup can't hold both an item list and a content at the same
26514     * time. When an item is added, any previous content will be removed.
26515     *
26516     * @see elm_ctxpopup_content_set()
26517     */
26518    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);
26519    /**
26520     * @brief Delete the given item in a ctxpopup object.
26521     *
26522     * @param it Ctxpopup item to be deleted
26523     *
26524     * @see elm_ctxpopup_item_append()
26525     */
26526    EAPI void          elm_ctxpopup_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26527    /**
26528     * @brief Set the ctxpopup item's state as disabled or enabled.
26529     *
26530     * @param it Ctxpopup item to be enabled/disabled
26531     * @param disabled @c EINA_TRUE to disable it, @c EINA_FALSE to enable it
26532     *
26533     * When disabled the item is greyed out to indicate it's state.
26534     */
26535    EAPI void          elm_ctxpopup_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
26536    /**
26537     * @brief Get the ctxpopup item's disabled/enabled state.
26538     *
26539     * @param it Ctxpopup item to be enabled/disabled
26540     * @return disabled @c EINA_TRUE, if disabled, @c EINA_FALSE otherwise
26541     *
26542     * @see elm_ctxpopup_item_disabled_set()
26543     * @deprecated use elm_object_item_disabled_get() instead
26544     */
26545    EAPI Eina_Bool     elm_ctxpopup_item_disabled_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26546    /**
26547     * @brief Get the icon object for the given ctxpopup item.
26548     *
26549     * @param it Ctxpopup item
26550     * @return icon object or @c NULL, if the item does not have icon or an error
26551     * occurred
26552     *
26553     * @see elm_ctxpopup_item_append()
26554     * @see elm_ctxpopup_item_icon_set()
26555     */
26556    EAPI Evas_Object  *elm_ctxpopup_item_icon_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26557    /**
26558     * @brief Sets the side icon associated with the ctxpopup item
26559     *
26560     * @param it Ctxpopup item
26561     * @param icon Icon object to be set
26562     *
26563     * Once the icon object is set, a previously set one will be deleted.
26564     * @warning Setting the same icon for two items will cause the icon to
26565     * dissapear from the first item.
26566     *
26567     * @see elm_ctxpopup_item_append()
26568     */
26569    EAPI void          elm_ctxpopup_item_icon_set(Elm_Object_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
26570    /**
26571     * @brief Get the label for the given ctxpopup item.
26572     *
26573     * @param it Ctxpopup item
26574     * @return label string or @c NULL, if the item does not have label or an
26575     * error occured
26576     *
26577     * @see elm_ctxpopup_item_append()
26578     * @see elm_ctxpopup_item_label_set()
26579     */
26580    EAPI const char   *elm_ctxpopup_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26581    /**
26582     * @brief (Re)set the label on the given ctxpopup item.
26583     *
26584     * @param it Ctxpopup item
26585     * @param label String to set as label
26586     */
26587    EAPI void          elm_ctxpopup_item_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
26588    /**
26589     * @brief Set an elm widget as the content of the ctxpopup.
26590     *
26591     * @param obj Ctxpopup object
26592     * @param content Content to be swallowed
26593     *
26594     * If the content object is already set, a previous one will bedeleted. If
26595     * you want to keep that old content object, use the
26596     * elm_ctxpopup_content_unset() function.
26597     *
26598     * @deprecated use elm_object_content_set()
26599     *
26600     * @warning Ctxpopup can't hold both a item list and a content at the same
26601     * time. When a content is set, any previous items will be removed.
26602     */
26603    EAPI void          elm_ctxpopup_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1, 2);
26604    /**
26605     * @brief Unset the ctxpopup content
26606     *
26607     * @param obj Ctxpopup object
26608     * @return The content that was being used
26609     *
26610     * Unparent and return the content object which was set for this widget.
26611     *
26612     * @deprecated use elm_object_content_unset()
26613     *
26614     * @see elm_ctxpopup_content_set()
26615     */
26616    EAPI Evas_Object  *elm_ctxpopup_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
26617    /**
26618     * @brief Set the direction priority of a ctxpopup.
26619     *
26620     * @param obj Ctxpopup object
26621     * @param first 1st priority of direction
26622     * @param second 2nd priority of direction
26623     * @param third 3th priority of direction
26624     * @param fourth 4th priority of direction
26625     *
26626     * This functions gives a chance to user to set the priority of ctxpopup
26627     * showing direction. This doesn't guarantee the ctxpopup will appear in the
26628     * requested direction.
26629     *
26630     * @see Elm_Ctxpopup_Direction
26631     */
26632    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);
26633    /**
26634     * @brief Get the direction priority of a ctxpopup.
26635     *
26636     * @param obj Ctxpopup object
26637     * @param first 1st priority of direction to be returned
26638     * @param second 2nd priority of direction to be returned
26639     * @param third 3th priority of direction to be returned
26640     * @param fourth 4th priority of direction to be returned
26641     *
26642     * @see elm_ctxpopup_direction_priority_set() for more information.
26643     */
26644    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);
26645
26646    /**
26647     * @brief Get the current direction of a ctxpopup.
26648     *
26649     * @param obj Ctxpopup object
26650     * @return current direction of a ctxpopup
26651     *
26652     * @warning Once the ctxpopup showed up, the direction would be determined
26653     */
26654    EAPI Elm_Ctxpopup_Direction elm_ctxpopup_direction_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26655
26656    /**
26657     * @}
26658     */
26659
26660    /* transit */
26661    /**
26662     *
26663     * @defgroup Transit Transit
26664     * @ingroup Elementary
26665     *
26666     * Transit is designed to apply various animated transition effects to @c
26667     * Evas_Object, such like translation, rotation, etc. For using these
26668     * effects, create an @ref Elm_Transit and add the desired transition effects.
26669     *
26670     * Once the effects are added into transit, they will be automatically
26671     * managed (their callback will be called until the duration is ended, and
26672     * they will be deleted on completion).
26673     *
26674     * Example:
26675     * @code
26676     * Elm_Transit *trans = elm_transit_add();
26677     * elm_transit_object_add(trans, obj);
26678     * elm_transit_effect_translation_add(trans, 0, 0, 280, 280
26679     * elm_transit_duration_set(transit, 1);
26680     * elm_transit_auto_reverse_set(transit, EINA_TRUE);
26681     * elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
26682     * elm_transit_repeat_times_set(transit, 3);
26683     * @endcode
26684     *
26685     * Some transition effects are used to change the properties of objects. They
26686     * are:
26687     * @li @ref elm_transit_effect_translation_add
26688     * @li @ref elm_transit_effect_color_add
26689     * @li @ref elm_transit_effect_rotation_add
26690     * @li @ref elm_transit_effect_wipe_add
26691     * @li @ref elm_transit_effect_zoom_add
26692     * @li @ref elm_transit_effect_resizing_add
26693     *
26694     * Other transition effects are used to make one object disappear and another
26695     * object appear on its old place. These effects are:
26696     *
26697     * @li @ref elm_transit_effect_flip_add
26698     * @li @ref elm_transit_effect_resizable_flip_add
26699     * @li @ref elm_transit_effect_fade_add
26700     * @li @ref elm_transit_effect_blend_add
26701     *
26702     * It's also possible to make a transition chain with @ref
26703     * elm_transit_chain_transit_add.
26704     *
26705     * @warning We strongly recommend to use elm_transit just when edje can not do
26706     * the trick. Edje has more advantage than Elm_Transit, it has more flexibility and
26707     * animations can be manipulated inside the theme.
26708     *
26709     * List of examples:
26710     * @li @ref transit_example_01_explained
26711     * @li @ref transit_example_02_explained
26712     * @li @ref transit_example_03_c
26713     * @li @ref transit_example_04_c
26714     *
26715     * @{
26716     */
26717
26718    /**
26719     * @enum Elm_Transit_Tween_Mode
26720     *
26721     * The type of acceleration used in the transition.
26722     */
26723    typedef enum
26724      {
26725         ELM_TRANSIT_TWEEN_MODE_LINEAR, /**< Constant speed */
26726         ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL, /**< Starts slow, increase speed
26727                                              over time, then decrease again
26728                                              and stop slowly */
26729         ELM_TRANSIT_TWEEN_MODE_DECELERATE, /**< Starts fast and decrease
26730                                              speed over time */
26731         ELM_TRANSIT_TWEEN_MODE_ACCELERATE /**< Starts slow and increase speed
26732                                             over time */
26733      } Elm_Transit_Tween_Mode;
26734
26735    /**
26736     * @enum Elm_Transit_Effect_Flip_Axis
26737     *
26738     * The axis where flip effect should be applied.
26739     */
26740    typedef enum
26741      {
26742         ELM_TRANSIT_EFFECT_FLIP_AXIS_X, /**< Flip on X axis */
26743         ELM_TRANSIT_EFFECT_FLIP_AXIS_Y /**< Flip on Y axis */
26744      } Elm_Transit_Effect_Flip_Axis;
26745    /**
26746     * @enum Elm_Transit_Effect_Wipe_Dir
26747     *
26748     * The direction where the wipe effect should occur.
26749     */
26750    typedef enum
26751      {
26752         ELM_TRANSIT_EFFECT_WIPE_DIR_LEFT, /**< Wipe to the left */
26753         ELM_TRANSIT_EFFECT_WIPE_DIR_RIGHT, /**< Wipe to the right */
26754         ELM_TRANSIT_EFFECT_WIPE_DIR_UP, /**< Wipe up */
26755         ELM_TRANSIT_EFFECT_WIPE_DIR_DOWN /**< Wipe down */
26756      } Elm_Transit_Effect_Wipe_Dir;
26757    /** @enum Elm_Transit_Effect_Wipe_Type
26758     *
26759     * Whether the wipe effect should show or hide the object.
26760     */
26761    typedef enum
26762      {
26763         ELM_TRANSIT_EFFECT_WIPE_TYPE_HIDE, /**< Hide the object during the
26764                                              animation */
26765         ELM_TRANSIT_EFFECT_WIPE_TYPE_SHOW /**< Show the object during the
26766                                             animation */
26767      } Elm_Transit_Effect_Wipe_Type;
26768
26769    /**
26770     * @typedef Elm_Transit
26771     *
26772     * The Transit created with elm_transit_add(). This type has the information
26773     * about the objects which the transition will be applied, and the
26774     * transition effects that will be used. It also contains info about
26775     * duration, number of repetitions, auto-reverse, etc.
26776     */
26777    typedef struct _Elm_Transit Elm_Transit;
26778    typedef void Elm_Transit_Effect;
26779    /**
26780     * @typedef Elm_Transit_Effect_Transition_Cb
26781     *
26782     * Transition callback called for this effect on each transition iteration.
26783     */
26784    typedef void (*Elm_Transit_Effect_Transition_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit, double progress);
26785    /**
26786     * Elm_Transit_Effect_End_Cb
26787     *
26788     * Transition callback called for this effect when the transition is over.
26789     */
26790    typedef void (*Elm_Transit_Effect_End_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit);
26791
26792    /**
26793     * Elm_Transit_Del_Cb
26794     *
26795     * A callback called when the transit is deleted.
26796     */
26797    typedef void (*Elm_Transit_Del_Cb) (void *data, Elm_Transit *transit);
26798
26799    /**
26800     * Add new transit.
26801     *
26802     * @note Is not necessary to delete the transit object, it will be deleted at
26803     * the end of its operation.
26804     * @note The transit will start playing when the program enter in the main loop, is not
26805     * necessary to give a start to the transit.
26806     *
26807     * @return The transit object.
26808     *
26809     * @ingroup Transit
26810     */
26811    EAPI Elm_Transit                *elm_transit_add(void);
26812
26813    /**
26814     * Stops the animation and delete the @p transit object.
26815     *
26816     * Call this function if you wants to stop the animation before the duration
26817     * time. Make sure the @p transit object is still alive with
26818     * elm_transit_del_cb_set() function.
26819     * All added effects will be deleted, calling its repective data_free_cb
26820     * functions. The function setted by elm_transit_del_cb_set() will be called.
26821     *
26822     * @see elm_transit_del_cb_set()
26823     *
26824     * @param transit The transit object to be deleted.
26825     *
26826     * @ingroup Transit
26827     * @warning Just call this function if you are sure the transit is alive.
26828     */
26829    EAPI void                        elm_transit_del(Elm_Transit *transit) EINA_ARG_NONNULL(1);
26830
26831    /**
26832     * Add a new effect to the transit.
26833     *
26834     * @note The cb function and the data are the key to the effect. If you try to
26835     * add an already added effect, nothing is done.
26836     * @note After the first addition of an effect in @p transit, if its
26837     * effect list become empty again, the @p transit will be killed by
26838     * elm_transit_del(transit) function.
26839     *
26840     * Exemple:
26841     * @code
26842     * Elm_Transit *transit = elm_transit_add();
26843     * elm_transit_effect_add(transit,
26844     *                        elm_transit_effect_blend_op,
26845     *                        elm_transit_effect_blend_context_new(),
26846     *                        elm_transit_effect_blend_context_free);
26847     * @endcode
26848     *
26849     * @param transit The transit object.
26850     * @param transition_cb The operation function. It is called when the
26851     * animation begins, it is the function that actually performs the animation.
26852     * It is called with the @p data, @p transit and the time progression of the
26853     * animation (a double value between 0.0 and 1.0).
26854     * @param effect The context data of the effect.
26855     * @param end_cb The function to free the context data, it will be called
26856     * at the end of the effect, it must finalize the animation and free the
26857     * @p data.
26858     *
26859     * @ingroup Transit
26860     * @warning The transit free the context data at the and of the transition with
26861     * the data_free_cb function, do not use the context data in another transit.
26862     */
26863    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);
26864
26865    /**
26866     * Delete an added effect.
26867     *
26868     * This function will remove the effect from the @p transit, calling the
26869     * data_free_cb to free the @p data.
26870     *
26871     * @see elm_transit_effect_add()
26872     *
26873     * @note If the effect is not found, nothing is done.
26874     * @note If the effect list become empty, this function will call
26875     * elm_transit_del(transit), that is, it will kill the @p transit.
26876     *
26877     * @param transit The transit object.
26878     * @param transition_cb The operation function.
26879     * @param effect The context data of the effect.
26880     *
26881     * @ingroup Transit
26882     */
26883    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);
26884
26885    /**
26886     * Add new object to apply the effects.
26887     *
26888     * @note After the first addition of an object in @p transit, if its
26889     * object list become empty again, the @p transit will be killed by
26890     * elm_transit_del(transit) function.
26891     * @note If the @p obj belongs to another transit, the @p obj will be
26892     * removed from it and it will only belong to the @p transit. If the old
26893     * transit stays without objects, it will die.
26894     * @note When you add an object into the @p transit, its state from
26895     * evas_object_pass_events_get(obj) is saved, and it is applied when the
26896     * transit ends, if you change this state whith evas_object_pass_events_set()
26897     * after add the object, this state will change again when @p transit stops to
26898     * run.
26899     *
26900     * @param transit The transit object.
26901     * @param obj Object to be animated.
26902     *
26903     * @ingroup Transit
26904     * @warning It is not allowed to add a new object after transit begins to go.
26905     */
26906    EAPI void                        elm_transit_object_add(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
26907
26908    /**
26909     * Removes an added object from the transit.
26910     *
26911     * @note If the @p obj is not in the @p transit, nothing is done.
26912     * @note If the list become empty, this function will call
26913     * elm_transit_del(transit), that is, it will kill the @p transit.
26914     *
26915     * @param transit The transit object.
26916     * @param obj Object to be removed from @p transit.
26917     *
26918     * @ingroup Transit
26919     * @warning It is not allowed to remove objects after transit begins to go.
26920     */
26921    EAPI void                        elm_transit_object_remove(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
26922
26923    /**
26924     * Get the objects of the transit.
26925     *
26926     * @param transit The transit object.
26927     * @return a Eina_List with the objects from the transit.
26928     *
26929     * @ingroup Transit
26930     */
26931    EAPI const Eina_List            *elm_transit_objects_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
26932
26933    /**
26934     * Enable/disable keeping up the objects states.
26935     * If it is not kept, the objects states will be reset when transition ends.
26936     *
26937     * @note @p transit can not be NULL.
26938     * @note One state includes geometry, color, map data.
26939     *
26940     * @param transit The transit object.
26941     * @param state_keep Keeping or Non Keeping.
26942     *
26943     * @ingroup Transit
26944     */
26945    EAPI void                        elm_transit_objects_final_state_keep_set(Elm_Transit *transit, Eina_Bool state_keep) EINA_ARG_NONNULL(1);
26946
26947    /**
26948     * Get a value whether the objects states will be reset or not.
26949     *
26950     * @note @p transit can not be NULL
26951     *
26952     * @see elm_transit_objects_final_state_keep_set()
26953     *
26954     * @param transit The transit object.
26955     * @return EINA_TRUE means the states of the objects will be reset.
26956     * If @p transit is NULL, EINA_FALSE is returned
26957     *
26958     * @ingroup Transit
26959     */
26960    EAPI Eina_Bool                   elm_transit_objects_final_state_keep_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
26961
26962    /**
26963     * Set the event enabled when transit is operating.
26964     *
26965     * If @p enabled is EINA_TRUE, the objects of the transit will receives
26966     * events from mouse and keyboard during the animation.
26967     * @note When you add an object with elm_transit_object_add(), its state from
26968     * evas_object_pass_events_get(obj) is saved, and it is applied when the
26969     * transit ends, if you change this state with evas_object_pass_events_set()
26970     * after adding the object, this state will change again when @p transit stops
26971     * to run.
26972     *
26973     * @param transit The transit object.
26974     * @param enabled Events are received when enabled is @c EINA_TRUE, and
26975     * ignored otherwise.
26976     *
26977     * @ingroup Transit
26978     */
26979    EAPI void                        elm_transit_event_enabled_set(Elm_Transit *transit, Eina_Bool enabled) EINA_ARG_NONNULL(1);
26980
26981    /**
26982     * Get the value of event enabled status.
26983     *
26984     * @see elm_transit_event_enabled_set()
26985     *
26986     * @param transit The Transit object
26987     * @return EINA_TRUE, when event is enabled. If @p transit is NULL
26988     * EINA_FALSE is returned
26989     *
26990     * @ingroup Transit
26991     */
26992    EAPI Eina_Bool                   elm_transit_event_enabled_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
26993
26994    /**
26995     * Set the user-callback function when the transit is deleted.
26996     *
26997     * @note Using this function twice will overwrite the first function setted.
26998     * @note the @p transit object will be deleted after call @p cb function.
26999     *
27000     * @param transit The transit object.
27001     * @param cb Callback function pointer. This function will be called before
27002     * the deletion of the transit.
27003     * @param data Callback funtion user data. It is the @p op parameter.
27004     *
27005     * @ingroup Transit
27006     */
27007    EAPI void                        elm_transit_del_cb_set(Elm_Transit *transit, Elm_Transit_Del_Cb cb, void *data) EINA_ARG_NONNULL(1);
27008
27009    /**
27010     * Set reverse effect automatically.
27011     *
27012     * If auto reverse is setted, after running the effects with the progress
27013     * parameter from 0 to 1, it will call the effecs again with the progress
27014     * from 1 to 0. The transit will last for a time iqual to (2 * duration * repeat),
27015     * where the duration was setted with the function elm_transit_add and
27016     * the repeat with the function elm_transit_repeat_times_set().
27017     *
27018     * @param transit The transit object.
27019     * @param reverse EINA_TRUE means the auto_reverse is on.
27020     *
27021     * @ingroup Transit
27022     */
27023    EAPI void                        elm_transit_auto_reverse_set(Elm_Transit *transit, Eina_Bool reverse) EINA_ARG_NONNULL(1);
27024
27025    /**
27026     * Get if the auto reverse is on.
27027     *
27028     * @see elm_transit_auto_reverse_set()
27029     *
27030     * @param transit The transit object.
27031     * @return EINA_TRUE means auto reverse is on. If @p transit is NULL
27032     * EINA_FALSE is returned
27033     *
27034     * @ingroup Transit
27035     */
27036    EAPI Eina_Bool                   elm_transit_auto_reverse_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27037
27038    /**
27039     * Set the transit repeat count. Effect will be repeated by repeat count.
27040     *
27041     * This function sets the number of repetition the transit will run after
27042     * the first one, that is, if @p repeat is 1, the transit will run 2 times.
27043     * If the @p repeat is a negative number, it will repeat infinite times.
27044     *
27045     * @note If this function is called during the transit execution, the transit
27046     * will run @p repeat times, ignoring the times it already performed.
27047     *
27048     * @param transit The transit object
27049     * @param repeat Repeat count
27050     *
27051     * @ingroup Transit
27052     */
27053    EAPI void                        elm_transit_repeat_times_set(Elm_Transit *transit, int repeat) EINA_ARG_NONNULL(1);
27054
27055    /**
27056     * Get the transit repeat count.
27057     *
27058     * @see elm_transit_repeat_times_set()
27059     *
27060     * @param transit The Transit object.
27061     * @return The repeat count. If @p transit is NULL
27062     * 0 is returned
27063     *
27064     * @ingroup Transit
27065     */
27066    EAPI int                         elm_transit_repeat_times_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27067
27068    /**
27069     * Set the transit animation acceleration type.
27070     *
27071     * This function sets the tween mode of the transit that can be:
27072     * ELM_TRANSIT_TWEEN_MODE_LINEAR - The default mode.
27073     * ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL - Starts in accelerate mode and ends decelerating.
27074     * ELM_TRANSIT_TWEEN_MODE_DECELERATE - The animation will be slowed over time.
27075     * ELM_TRANSIT_TWEEN_MODE_ACCELERATE - The animation will accelerate over time.
27076     *
27077     * @param transit The transit object.
27078     * @param tween_mode The tween type.
27079     *
27080     * @ingroup Transit
27081     */
27082    EAPI void                        elm_transit_tween_mode_set(Elm_Transit *transit, Elm_Transit_Tween_Mode tween_mode) EINA_ARG_NONNULL(1);
27083
27084    /**
27085     * Get the transit animation acceleration type.
27086     *
27087     * @note @p transit can not be NULL
27088     *
27089     * @param transit The transit object.
27090     * @return The tween type. If @p transit is NULL
27091     * ELM_TRANSIT_TWEEN_MODE_LINEAR is returned.
27092     *
27093     * @ingroup Transit
27094     */
27095    EAPI Elm_Transit_Tween_Mode      elm_transit_tween_mode_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27096
27097    /**
27098     * Set the transit animation time
27099     *
27100     * @note @p transit can not be NULL
27101     *
27102     * @param transit The transit object.
27103     * @param duration The animation time.
27104     *
27105     * @ingroup Transit
27106     */
27107    EAPI void                        elm_transit_duration_set(Elm_Transit *transit, double duration) EINA_ARG_NONNULL(1);
27108
27109    /**
27110     * Get the transit animation time
27111     *
27112     * @note @p transit can not be NULL
27113     *
27114     * @param transit The transit object.
27115     *
27116     * @return The transit animation time.
27117     *
27118     * @ingroup Transit
27119     */
27120    EAPI double                      elm_transit_duration_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27121
27122    /**
27123     * Starts the transition.
27124     * Once this API is called, the transit begins to measure the time.
27125     *
27126     * @note @p transit can not be NULL
27127     *
27128     * @param transit The transit object.
27129     *
27130     * @ingroup Transit
27131     */
27132    EAPI void                        elm_transit_go(Elm_Transit *transit) EINA_ARG_NONNULL(1);
27133
27134    /**
27135     * Pause/Resume the transition.
27136     *
27137     * If you call elm_transit_go again, the transit will be started from the
27138     * beginning, and will be unpaused.
27139     *
27140     * @note @p transit can not be NULL
27141     *
27142     * @param transit The transit object.
27143     * @param paused Whether the transition should be paused or not.
27144     *
27145     * @ingroup Transit
27146     */
27147    EAPI void                        elm_transit_paused_set(Elm_Transit *transit, Eina_Bool paused) EINA_ARG_NONNULL(1);
27148
27149    /**
27150     * Get the value of paused status.
27151     *
27152     * @see elm_transit_paused_set()
27153     *
27154     * @note @p transit can not be NULL
27155     *
27156     * @param transit The transit object.
27157     * @return EINA_TRUE means transition is paused. If @p transit is NULL
27158     * EINA_FALSE is returned
27159     *
27160     * @ingroup Transit
27161     */
27162    EAPI Eina_Bool                   elm_transit_paused_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27163
27164    /**
27165     * Get the time progression of the animation (a double value between 0.0 and 1.0).
27166     *
27167     * The value returned is a fraction (current time / total time). It
27168     * represents the progression position relative to the total.
27169     *
27170     * @note @p transit can not be NULL
27171     *
27172     * @param transit The transit object.
27173     *
27174     * @return The time progression value. If @p transit is NULL
27175     * 0 is returned
27176     *
27177     * @ingroup Transit
27178     */
27179    EAPI double                      elm_transit_progress_value_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27180
27181    /**
27182     * Makes the chain relationship between two transits.
27183     *
27184     * @note @p transit can not be NULL. Transit would have multiple chain transits.
27185     * @note @p chain_transit can not be NULL. Chain transits could be chained to the only one transit.
27186     *
27187     * @param transit The transit object.
27188     * @param chain_transit The chain transit object. This transit will be operated
27189     *        after transit is done.
27190     *
27191     * This function adds @p chain_transit transition to a chain after the @p
27192     * transit, and will be started as soon as @p transit ends. See @ref
27193     * transit_example_02_explained for a full example.
27194     *
27195     * @ingroup Transit
27196     */
27197    EAPI void                        elm_transit_chain_transit_add(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1, 2);
27198
27199    /**
27200     * Cut off the chain relationship between two transits.
27201     *
27202     * @note @p transit can not be NULL. Transit would have the chain relationship with @p chain transit.
27203     * @note @p chain_transit can not be NULL. Chain transits should be chained to the @p transit.
27204     *
27205     * @param transit The transit object.
27206     * @param chain_transit The chain transit object.
27207     *
27208     * This function remove the @p chain_transit transition from the @p transit.
27209     *
27210     * @ingroup Transit
27211     */
27212    EAPI void                        elm_transit_chain_transit_del(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1,2);
27213
27214    /**
27215     * Get the current chain transit list.
27216     *
27217     * @note @p transit can not be NULL.
27218     *
27219     * @param transit The transit object.
27220     * @return chain transit list.
27221     *
27222     * @ingroup Transit
27223     */
27224    EAPI Eina_List                  *elm_transit_chain_transits_get(const Elm_Transit *transit);
27225
27226    /**
27227     * Add the Resizing Effect to Elm_Transit.
27228     *
27229     * @note This API is one of the facades. It creates resizing effect context
27230     * and add it's required APIs to elm_transit_effect_add.
27231     *
27232     * @see elm_transit_effect_add()
27233     *
27234     * @param transit Transit object.
27235     * @param from_w Object width size when effect begins.
27236     * @param from_h Object height size when effect begins.
27237     * @param to_w Object width size when effect ends.
27238     * @param to_h Object height size when effect ends.
27239     * @return Resizing effect context data.
27240     *
27241     * @ingroup Transit
27242     */
27243    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);
27244
27245    /**
27246     * Add the Translation Effect to Elm_Transit.
27247     *
27248     * @note This API is one of the facades. It creates translation effect context
27249     * and add it's required APIs to elm_transit_effect_add.
27250     *
27251     * @see elm_transit_effect_add()
27252     *
27253     * @param transit Transit object.
27254     * @param from_dx X Position variation when effect begins.
27255     * @param from_dy Y Position variation when effect begins.
27256     * @param to_dx X Position variation when effect ends.
27257     * @param to_dy Y Position variation when effect ends.
27258     * @return Translation effect context data.
27259     *
27260     * @ingroup Transit
27261     * @warning It is highly recommended just create a transit with this effect when
27262     * the window that the objects of the transit belongs has already been created.
27263     * This is because this effect needs the geometry information about the objects,
27264     * and if the window was not created yet, it can get a wrong information.
27265     */
27266    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);
27267
27268    /**
27269     * Add the Zoom Effect to Elm_Transit.
27270     *
27271     * @note This API is one of the facades. It creates zoom effect context
27272     * and add it's required APIs to elm_transit_effect_add.
27273     *
27274     * @see elm_transit_effect_add()
27275     *
27276     * @param transit Transit object.
27277     * @param from_rate Scale rate when effect begins (1 is current rate).
27278     * @param to_rate Scale rate when effect ends.
27279     * @return Zoom effect context data.
27280     *
27281     * @ingroup Transit
27282     * @warning It is highly recommended just create a transit with this effect when
27283     * the window that the objects of the transit belongs has already been created.
27284     * This is because this effect needs the geometry information about the objects,
27285     * and if the window was not created yet, it can get a wrong information.
27286     */
27287    EAPI Elm_Transit_Effect *elm_transit_effect_zoom_add(Elm_Transit *transit, float from_rate, float to_rate);
27288
27289    /**
27290     * Add the Flip Effect to Elm_Transit.
27291     *
27292     * @note This API is one of the facades. It creates flip effect context
27293     * and add it's required APIs to elm_transit_effect_add.
27294     * @note This effect is applied to each pair of objects in the order they are listed
27295     * in the transit list of objects. The first object in the pair will be the
27296     * "front" object and the second will be the "back" object.
27297     *
27298     * @see elm_transit_effect_add()
27299     *
27300     * @param transit Transit object.
27301     * @param axis Flipping Axis(X or Y).
27302     * @param cw Flipping Direction. EINA_TRUE is clock-wise.
27303     * @return Flip effect context data.
27304     *
27305     * @ingroup Transit
27306     * @warning It is highly recommended just create a transit with this effect when
27307     * the window that the objects of the transit belongs has already been created.
27308     * This is because this effect needs the geometry information about the objects,
27309     * and if the window was not created yet, it can get a wrong information.
27310     */
27311    EAPI Elm_Transit_Effect *elm_transit_effect_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
27312
27313    /**
27314     * Add the Resizable Flip Effect to Elm_Transit.
27315     *
27316     * @note This API is one of the facades. It creates resizable flip effect context
27317     * and add it's required APIs to elm_transit_effect_add.
27318     * @note This effect is applied to each pair of objects in the order they are listed
27319     * in the transit list of objects. The first object in the pair will be the
27320     * "front" object and the second will be the "back" object.
27321     *
27322     * @see elm_transit_effect_add()
27323     *
27324     * @param transit Transit object.
27325     * @param axis Flipping Axis(X or Y).
27326     * @param cw Flipping Direction. EINA_TRUE is clock-wise.
27327     * @return Resizable flip effect context data.
27328     *
27329     * @ingroup Transit
27330     * @warning It is highly recommended just create a transit with this effect when
27331     * the window that the objects of the transit belongs has already been created.
27332     * This is because this effect needs the geometry information about the objects,
27333     * and if the window was not created yet, it can get a wrong information.
27334     */
27335    EAPI Elm_Transit_Effect *elm_transit_effect_resizable_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
27336
27337    /**
27338     * Add the Wipe Effect to Elm_Transit.
27339     *
27340     * @note This API is one of the facades. It creates wipe effect context
27341     * and add it's required APIs to elm_transit_effect_add.
27342     *
27343     * @see elm_transit_effect_add()
27344     *
27345     * @param transit Transit object.
27346     * @param type Wipe type. Hide or show.
27347     * @param dir Wipe Direction.
27348     * @return Wipe effect context data.
27349     *
27350     * @ingroup Transit
27351     * @warning It is highly recommended just create a transit with this effect when
27352     * the window that the objects of the transit belongs has already been created.
27353     * This is because this effect needs the geometry information about the objects,
27354     * and if the window was not created yet, it can get a wrong information.
27355     */
27356    EAPI Elm_Transit_Effect *elm_transit_effect_wipe_add(Elm_Transit *transit, Elm_Transit_Effect_Wipe_Type type, Elm_Transit_Effect_Wipe_Dir dir);
27357
27358    /**
27359     * Add the Color Effect to Elm_Transit.
27360     *
27361     * @note This API is one of the facades. It creates color effect context
27362     * and add it's required APIs to elm_transit_effect_add.
27363     *
27364     * @see elm_transit_effect_add()
27365     *
27366     * @param transit        Transit object.
27367     * @param  from_r        RGB R when effect begins.
27368     * @param  from_g        RGB G when effect begins.
27369     * @param  from_b        RGB B when effect begins.
27370     * @param  from_a        RGB A when effect begins.
27371     * @param  to_r          RGB R when effect ends.
27372     * @param  to_g          RGB G when effect ends.
27373     * @param  to_b          RGB B when effect ends.
27374     * @param  to_a          RGB A when effect ends.
27375     * @return               Color effect context data.
27376     *
27377     * @ingroup Transit
27378     */
27379    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);
27380
27381    /**
27382     * Add the Fade Effect to Elm_Transit.
27383     *
27384     * @note This API is one of the facades. It creates fade effect context
27385     * and add it's required APIs to elm_transit_effect_add.
27386     * @note This effect is applied to each pair of objects in the order they are listed
27387     * in the transit list of objects. The first object in the pair will be the
27388     * "before" object and the second will be the "after" object.
27389     *
27390     * @see elm_transit_effect_add()
27391     *
27392     * @param transit Transit object.
27393     * @return Fade effect context data.
27394     *
27395     * @ingroup Transit
27396     * @warning It is highly recommended just create a transit with this effect when
27397     * the window that the objects of the transit belongs has already been created.
27398     * This is because this effect needs the color information about the objects,
27399     * and if the window was not created yet, it can get a wrong information.
27400     */
27401    EAPI Elm_Transit_Effect *elm_transit_effect_fade_add(Elm_Transit *transit);
27402
27403    /**
27404     * Add the Blend Effect to Elm_Transit.
27405     *
27406     * @note This API is one of the facades. It creates blend effect context
27407     * and add it's required APIs to elm_transit_effect_add.
27408     * @note This effect is applied to each pair of objects in the order they are listed
27409     * in the transit list of objects. The first object in the pair will be the
27410     * "before" object and the second will be the "after" object.
27411     *
27412     * @see elm_transit_effect_add()
27413     *
27414     * @param transit Transit object.
27415     * @return Blend effect context data.
27416     *
27417     * @ingroup Transit
27418     * @warning It is highly recommended just create a transit with this effect when
27419     * the window that the objects of the transit belongs has already been created.
27420     * This is because this effect needs the color information about the objects,
27421     * and if the window was not created yet, it can get a wrong information.
27422     */
27423    EAPI Elm_Transit_Effect *elm_transit_effect_blend_add(Elm_Transit *transit);
27424
27425    /**
27426     * Add the Rotation Effect to Elm_Transit.
27427     *
27428     * @note This API is one of the facades. It creates rotation effect context
27429     * and add it's required APIs to elm_transit_effect_add.
27430     *
27431     * @see elm_transit_effect_add()
27432     *
27433     * @param transit Transit object.
27434     * @param from_degree Degree when effect begins.
27435     * @param to_degree Degree when effect is ends.
27436     * @return Rotation effect context data.
27437     *
27438     * @ingroup Transit
27439     * @warning It is highly recommended just create a transit with this effect when
27440     * the window that the objects of the transit belongs has already been created.
27441     * This is because this effect needs the geometry information about the objects,
27442     * and if the window was not created yet, it can get a wrong information.
27443     */
27444    EAPI Elm_Transit_Effect *elm_transit_effect_rotation_add(Elm_Transit *transit, float from_degree, float to_degree);
27445
27446    /**
27447     * Add the ImageAnimation Effect to Elm_Transit.
27448     *
27449     * @note This API is one of the facades. It creates image animation effect context
27450     * and add it's required APIs to elm_transit_effect_add.
27451     * The @p images parameter is a list images paths. This list and
27452     * its contents will be deleted at the end of the effect by
27453     * elm_transit_effect_image_animation_context_free() function.
27454     *
27455     * Example:
27456     * @code
27457     * char buf[PATH_MAX];
27458     * Eina_List *images = NULL;
27459     * Elm_Transit *transi = elm_transit_add();
27460     *
27461     * snprintf(buf, sizeof(buf), "%s/images/icon_11.png", PACKAGE_DATA_DIR);
27462     * images = eina_list_append(images, eina_stringshare_add(buf));
27463     *
27464     * snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
27465     * images = eina_list_append(images, eina_stringshare_add(buf));
27466     * elm_transit_effect_image_animation_add(transi, images);
27467     *
27468     * @endcode
27469     *
27470     * @see elm_transit_effect_add()
27471     *
27472     * @param transit Transit object.
27473     * @param images Eina_List of images file paths. This list and
27474     * its contents will be deleted at the end of the effect by
27475     * elm_transit_effect_image_animation_context_free() function.
27476     * @return Image Animation effect context data.
27477     *
27478     * @ingroup Transit
27479     */
27480    EAPI Elm_Transit_Effect *elm_transit_effect_image_animation_add(Elm_Transit *transit, Eina_List *images);
27481    /**
27482     * @}
27483     */
27484
27485    /* Store */
27486    typedef struct _Elm_Store                      Elm_Store;
27487    typedef struct _Elm_Store_DBsystem             Elm_Store_DBsystem;
27488    typedef struct _Elm_Store_Filesystem           Elm_Store_Filesystem;
27489    typedef struct _Elm_Store_Item                 Elm_Store_Item;
27490    typedef struct _Elm_Store_Item_DBsystem        Elm_Store_Item_DBsystem;
27491    typedef struct _Elm_Store_Item_Filesystem      Elm_Store_Item_Filesystem;
27492    typedef struct _Elm_Store_Item_Info            Elm_Store_Item_Info;
27493    typedef struct _Elm_Store_Item_Info_Filesystem Elm_Store_Item_Info_Filesystem;
27494    typedef struct _Elm_Store_Item_Mapping         Elm_Store_Item_Mapping;
27495    typedef struct _Elm_Store_Item_Mapping_Empty   Elm_Store_Item_Mapping_Empty;
27496    typedef struct _Elm_Store_Item_Mapping_Icon    Elm_Store_Item_Mapping_Icon;
27497    typedef struct _Elm_Store_Item_Mapping_Photo   Elm_Store_Item_Mapping_Photo;
27498    typedef struct _Elm_Store_Item_Mapping_Custom  Elm_Store_Item_Mapping_Custom;
27499
27500    typedef Eina_Bool (*Elm_Store_Item_List_Cb) (void *data, Elm_Store_Item_Info *info);
27501    typedef void      (*Elm_Store_Item_Fetch_Cb) (void *data, Elm_Store_Item *sti, Elm_Store_Item_Info *info);
27502    typedef void      (*Elm_Store_Item_Unfetch_Cb) (void *data, Elm_Store_Item *sti, Elm_Store_Item_Info *info);
27503    typedef void      (*Elm_Store_Item_Select_Cb) (void *data, Elm_Store_Item *sti);
27504    typedef int       (*Elm_Store_Item_Sort_Cb) (void *data, Elm_Store_Item_Info *info1, Elm_Store_Item_Info *info2);
27505    typedef void      (*Elm_Store_Item_Free_Cb) (void *data, Elm_Store_Item_Info *info);
27506    typedef void     *(*Elm_Store_Item_Mapping_Cb) (void *data, Elm_Store_Item *sti, const char *part);
27507
27508    typedef enum
27509      {
27510         ELM_STORE_ITEM_MAPPING_NONE = 0,
27511         ELM_STORE_ITEM_MAPPING_LABEL, // const char * -> label
27512         ELM_STORE_ITEM_MAPPING_STATE, // Eina_Bool -> state
27513         ELM_STORE_ITEM_MAPPING_ICON, // char * -> icon path
27514         ELM_STORE_ITEM_MAPPING_PHOTO, // char * -> photo path
27515         ELM_STORE_ITEM_MAPPING_CUSTOM, // item->custom(it->data, it, part) -> void * (-> any)
27516         // can add more here as needed by common apps
27517         ELM_STORE_ITEM_MAPPING_LAST
27518      } Elm_Store_Item_Mapping_Type;
27519
27520    struct _Elm_Store_Item_Mapping_Icon
27521      {
27522         // FIXME: allow edje file icons
27523         int                   w, h;
27524         Elm_Icon_Lookup_Order lookup_order;
27525         Eina_Bool             standard_name : 1;
27526         Eina_Bool             no_scale : 1;
27527         Eina_Bool             smooth : 1;
27528         Eina_Bool             scale_up : 1;
27529         Eina_Bool             scale_down : 1;
27530      };
27531
27532    struct _Elm_Store_Item_Mapping_Empty
27533      {
27534         Eina_Bool             dummy;
27535      };
27536
27537    struct _Elm_Store_Item_Mapping_Photo
27538      {
27539         int                   size;
27540      };
27541
27542    struct _Elm_Store_Item_Mapping_Custom
27543      {
27544         Elm_Store_Item_Mapping_Cb func;
27545      };
27546
27547    struct _Elm_Store_Item_Mapping
27548      {
27549         Elm_Store_Item_Mapping_Type     type;
27550         const char                     *part;
27551         int                             offset;
27552         union
27553           {
27554              Elm_Store_Item_Mapping_Empty  empty;
27555              Elm_Store_Item_Mapping_Icon   icon;
27556              Elm_Store_Item_Mapping_Photo  photo;
27557              Elm_Store_Item_Mapping_Custom custom;
27558              // add more types here
27559           } details;
27560      };
27561
27562    struct _Elm_Store_Item_Info
27563      {
27564         int                           index;
27565         int                           item_type;
27566         int                           group_index;
27567         Eina_Bool                     rec_item;
27568         int                           pre_group_index;
27569
27570         Elm_Genlist_Item_Class       *item_class;
27571         const Elm_Store_Item_Mapping *mapping;
27572         void                         *data;
27573         char                         *sort_id;
27574      };
27575
27576    struct _Elm_Store_Item_Info_Filesystem
27577      {
27578         Elm_Store_Item_Info  base;
27579         char                *path;
27580      };
27581
27582 #define ELM_STORE_ITEM_MAPPING_END { ELM_STORE_ITEM_MAPPING_NONE, NULL, 0, { .empty = { EINA_TRUE } } }
27583 #define ELM_STORE_ITEM_MAPPING_OFFSET(st, it) offsetof(st, it)
27584
27585    EAPI Elm_Store              *elm_store_dbsystem_new(void);
27586    EAPI void                    elm_store_item_count_set(Elm_Store *st, int count) EINA_ARG_NONNULL(1);
27587    EAPI void                    elm_store_item_select_func_set(Elm_Store *st, Elm_Store_Item_Select_Cb func, const void *data) EINA_ARG_NONNULL(1);
27588    EAPI void                    elm_store_item_sort_func_set(Elm_Store *st, Elm_Store_Item_Sort_Cb func, const void *data) EINA_ARG_NONNULL(1);
27589    EAPI void                    elm_store_item_free_func_set(Elm_Store *st, Elm_Store_Item_Free_Cb func, const void *data) EINA_ARG_NONNULL(1);
27590    EAPI int                     elm_store_item_data_index_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27591    EAPI void                   *elm_store_dbsystem_db_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27592    EAPI void                    elm_store_dbsystem_db_set(Elm_Store *store, void *pDB) EINA_ARG_NONNULL(1);
27593    EAPI int                     elm_store_item_index_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27594    EAPI Elm_Store_Item         *elm_store_item_add(Elm_Store *st, Elm_Store_Item_Info *info) EINA_ARG_NONNULL(1);
27595    EAPI void                    elm_store_item_update(Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27596    EAPI void                    elm_store_visible_items_update(Elm_Store *st) EINA_ARG_NONNULL(1);
27597    EAPI void                    elm_store_item_del(Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27598    EAPI void                    elm_store_free(Elm_Store *st);
27599    EAPI Elm_Store              *elm_store_filesystem_new(void);
27600    EAPI void                    elm_store_filesystem_directory_set(Elm_Store *st, const char *dir) EINA_ARG_NONNULL(1);
27601    EAPI const char             *elm_store_filesystem_directory_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
27602    EAPI const char             *elm_store_item_filesystem_path_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27603
27604    EAPI void                    elm_store_target_genlist_set(Elm_Store *st, Evas_Object *obj) EINA_ARG_NONNULL(1);
27605
27606    EAPI void                    elm_store_cache_set(Elm_Store *st, int max) EINA_ARG_NONNULL(1);
27607    EAPI int                     elm_store_cache_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
27608    EAPI void                    elm_store_list_func_set(Elm_Store *st, Elm_Store_Item_List_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
27609    EAPI void                    elm_store_fetch_func_set(Elm_Store *st, Elm_Store_Item_Fetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
27610    EAPI void                    elm_store_fetch_thread_set(Elm_Store *st, Eina_Bool use_thread) EINA_ARG_NONNULL(1);
27611    EAPI Eina_Bool               elm_store_fetch_thread_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
27612
27613    EAPI void                    elm_store_unfetch_func_set(Elm_Store *st, Elm_Store_Item_Unfetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
27614    EAPI void                    elm_store_sorted_set(Elm_Store *st, Eina_Bool sorted) EINA_ARG_NONNULL(1);
27615    EAPI Eina_Bool               elm_store_sorted_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
27616    EAPI void                    elm_store_item_data_set(Elm_Store_Item *sti, void *data) EINA_ARG_NONNULL(1);
27617    EAPI void                   *elm_store_item_data_get(Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27618    EAPI const Elm_Store        *elm_store_item_store_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27619    EAPI const Elm_Genlist_Item *elm_store_item_genlist_item_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27620
27621    /**
27622     * @defgroup SegmentControl SegmentControl
27623     * @ingroup Elementary
27624     *
27625     * @image html img/widget/segment_control/preview-00.png
27626     * @image latex img/widget/segment_control/preview-00.eps width=\textwidth
27627     *
27628     * @image html img/segment_control.png
27629     * @image latex img/segment_control.eps width=\textwidth
27630     *
27631     * Segment control widget is a horizontal control made of multiple segment
27632     * items, each segment item functioning similar to discrete two state button.
27633     * A segment control groups the items together and provides compact
27634     * single button with multiple equal size segments.
27635     *
27636     * Segment item size is determined by base widget
27637     * size and the number of items added.
27638     * Only one segment item can be at selected state. A segment item can display
27639     * combination of Text and any Evas_Object like Images or other widget.
27640     *
27641     * Smart callbacks one can listen to:
27642     * - "changed" - When the user clicks on a segment item which is not
27643     *   previously selected and get selected. The event_info parameter is the
27644     *   segment item pointer.
27645     *
27646     * Available styles for it:
27647     * - @c "default"
27648     *
27649     * Here is an example on its usage:
27650     * @li @ref segment_control_example
27651     */
27652
27653    /**
27654     * @addtogroup SegmentControl
27655     * @{
27656     */
27657
27658    typedef struct _Elm_Segment_Item Elm_Segment_Item; /**< Item handle for a segment control widget. */
27659
27660    /**
27661     * Add a new segment control widget to the given parent Elementary
27662     * (container) object.
27663     *
27664     * @param parent The parent object.
27665     * @return a new segment control widget handle or @c NULL, on errors.
27666     *
27667     * This function inserts a new segment control widget on the canvas.
27668     *
27669     * @ingroup SegmentControl
27670     */
27671    EAPI Evas_Object      *elm_segment_control_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
27672
27673    /**
27674     * Append a new item to the segment control object.
27675     *
27676     * @param obj The segment control object.
27677     * @param icon The icon object to use for the left side of the item. An
27678     * icon can be any Evas object, but usually it is an icon created
27679     * with elm_icon_add().
27680     * @param label The label of the item.
27681     *        Note that, NULL is different from empty string "".
27682     * @return The created item or @c NULL upon failure.
27683     *
27684     * A new item will be created and appended to the segment control, i.e., will
27685     * be set as @b last item.
27686     *
27687     * If it should be inserted at another position,
27688     * elm_segment_control_item_insert_at() should be used instead.
27689     *
27690     * Items created with this function can be deleted with function
27691     * elm_segment_control_item_del() or elm_segment_control_item_del_at().
27692     *
27693     * @note @p label set to @c NULL is different from empty string "".
27694     * If an item
27695     * only has icon, it will be displayed bigger and centered. If it has
27696     * icon and label, even that an empty string, icon will be smaller and
27697     * positioned at left.
27698     *
27699     * Simple example:
27700     * @code
27701     * sc = elm_segment_control_add(win);
27702     * ic = elm_icon_add(win);
27703     * elm_icon_file_set(ic, "path/to/image", NULL);
27704     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
27705     * elm_segment_control_item_add(sc, ic, "label");
27706     * evas_object_show(sc);
27707     * @endcode
27708     *
27709     * @see elm_segment_control_item_insert_at()
27710     * @see elm_segment_control_item_del()
27711     *
27712     * @ingroup SegmentControl
27713     */
27714    EAPI Elm_Segment_Item *elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon, const char *label) EINA_ARG_NONNULL(1);
27715
27716    /**
27717     * Insert a new item to the segment control object at specified position.
27718     *
27719     * @param obj The segment control object.
27720     * @param icon The icon object to use for the left side of the item. An
27721     * icon can be any Evas object, but usually it is an icon created
27722     * with elm_icon_add().
27723     * @param label The label of the item.
27724     * @param index Item position. Value should be between 0 and items count.
27725     * @return The created item or @c NULL upon failure.
27726
27727     * Index values must be between @c 0, when item will be prepended to
27728     * segment control, and items count, that can be get with
27729     * elm_segment_control_item_count_get(), case when item will be appended
27730     * to segment control, just like elm_segment_control_item_add().
27731     *
27732     * Items created with this function can be deleted with function
27733     * elm_segment_control_item_del() or elm_segment_control_item_del_at().
27734     *
27735     * @note @p label set to @c NULL is different from empty string "".
27736     * If an item
27737     * only has icon, it will be displayed bigger and centered. If it has
27738     * icon and label, even that an empty string, icon will be smaller and
27739     * positioned at left.
27740     *
27741     * @see elm_segment_control_item_add()
27742     * @see elm_segment_control_item_count_get()
27743     * @see elm_segment_control_item_del()
27744     *
27745     * @ingroup SegmentControl
27746     */
27747    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);
27748
27749    /**
27750     * Remove a segment control item from its parent, deleting it.
27751     *
27752     * @param it The item to be removed.
27753     *
27754     * Items can be added with elm_segment_control_item_add() or
27755     * elm_segment_control_item_insert_at().
27756     *
27757     * @ingroup SegmentControl
27758     */
27759    EAPI void              elm_segment_control_item_del(Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
27760
27761    /**
27762     * Remove a segment control item at given index from its parent,
27763     * deleting it.
27764     *
27765     * @param obj The segment control object.
27766     * @param index The position of the segment control item to be deleted.
27767     *
27768     * Items can be added with elm_segment_control_item_add() or
27769     * elm_segment_control_item_insert_at().
27770     *
27771     * @ingroup SegmentControl
27772     */
27773    EAPI void              elm_segment_control_item_del_at(Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
27774
27775    /**
27776     * Get the Segment items count from segment control.
27777     *
27778     * @param obj The segment control object.
27779     * @return Segment items count.
27780     *
27781     * It will just return the number of items added to segment control @p obj.
27782     *
27783     * @ingroup SegmentControl
27784     */
27785    EAPI int               elm_segment_control_item_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27786
27787    /**
27788     * Get the item placed at specified index.
27789     *
27790     * @param obj The segment control object.
27791     * @param index The index of the segment item.
27792     * @return The segment control item or @c NULL on failure.
27793     *
27794     * Index is the position of an item in segment control widget. Its
27795     * range is from @c 0 to <tt> count - 1 </tt>.
27796     * Count is the number of items, that can be get with
27797     * elm_segment_control_item_count_get().
27798     *
27799     * @ingroup SegmentControl
27800     */
27801    EAPI Elm_Segment_Item *elm_segment_control_item_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
27802
27803    /**
27804     * Get the label of item.
27805     *
27806     * @param obj The segment control object.
27807     * @param index The index of the segment item.
27808     * @return The label of the item at @p index.
27809     *
27810     * The return value is a pointer to the label associated to the item when
27811     * it was created, with function elm_segment_control_item_add(), or later
27812     * with function elm_segment_control_item_label_set. If no label
27813     * was passed as argument, it will return @c NULL.
27814     *
27815     * @see elm_segment_control_item_label_set() for more details.
27816     * @see elm_segment_control_item_add()
27817     *
27818     * @ingroup SegmentControl
27819     */
27820    EAPI const char       *elm_segment_control_item_label_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
27821
27822    /**
27823     * Set the label of item.
27824     *
27825     * @param it The item of segment control.
27826     * @param text The label of item.
27827     *
27828     * The label to be displayed by the item.
27829     * Label will be at right of the icon (if set).
27830     *
27831     * If a label was passed as argument on item creation, with function
27832     * elm_control_segment_item_add(), it will be already
27833     * displayed by the item.
27834     *
27835     * @see elm_segment_control_item_label_get()
27836     * @see elm_segment_control_item_add()
27837     *
27838     * @ingroup SegmentControl
27839     */
27840    EAPI void              elm_segment_control_item_label_set(Elm_Segment_Item* it, const char* label) EINA_ARG_NONNULL(1);
27841
27842    /**
27843     * Get the icon associated to the item.
27844     *
27845     * @param obj The segment control object.
27846     * @param index The index of the segment item.
27847     * @return The left side icon associated to the item at @p index.
27848     *
27849     * The return value is a pointer to the icon associated to the item when
27850     * it was created, with function elm_segment_control_item_add(), or later
27851     * with function elm_segment_control_item_icon_set(). If no icon
27852     * was passed as argument, it will return @c NULL.
27853     *
27854     * @see elm_segment_control_item_add()
27855     * @see elm_segment_control_item_icon_set()
27856     *
27857     * @ingroup SegmentControl
27858     */
27859    EAPI Evas_Object      *elm_segment_control_item_icon_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
27860
27861    /**
27862     * Set the icon associated to the item.
27863     *
27864     * @param it The segment control item.
27865     * @param icon The icon object to associate with @p it.
27866     *
27867     * The icon object to use at left side of the item. An
27868     * icon can be any Evas object, but usually it is an icon created
27869     * with elm_icon_add().
27870     *
27871     * Once the icon object is set, a previously set one will be deleted.
27872     * @warning Setting the same icon for two items will cause the icon to
27873     * dissapear from the first item.
27874     *
27875     * If an icon was passed as argument on item creation, with function
27876     * elm_segment_control_item_add(), it will be already
27877     * associated to the item.
27878     *
27879     * @see elm_segment_control_item_add()
27880     * @see elm_segment_control_item_icon_get()
27881     *
27882     * @ingroup SegmentControl
27883     */
27884    EAPI void              elm_segment_control_item_icon_set(Elm_Segment_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
27885
27886    /**
27887     * Get the index of an item.
27888     *
27889     * @param it The segment control item.
27890     * @return The position of item in segment control widget.
27891     *
27892     * Index is the position of an item in segment control widget. Its
27893     * range is from @c 0 to <tt> count - 1 </tt>.
27894     * Count is the number of items, that can be get with
27895     * elm_segment_control_item_count_get().
27896     *
27897     * @ingroup SegmentControl
27898     */
27899    EAPI int               elm_segment_control_item_index_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
27900
27901    /**
27902     * Get the base object of the item.
27903     *
27904     * @param it The segment control item.
27905     * @return The base object associated with @p it.
27906     *
27907     * Base object is the @c Evas_Object that represents that item.
27908     *
27909     * @ingroup SegmentControl
27910     */
27911    EAPI Evas_Object      *elm_segment_control_item_object_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
27912
27913    /**
27914     * Get the selected item.
27915     *
27916     * @param obj The segment control object.
27917     * @return The selected item or @c NULL if none of segment items is
27918     * selected.
27919     *
27920     * The selected item can be unselected with function
27921     * elm_segment_control_item_selected_set().
27922     *
27923     * The selected item always will be highlighted on segment control.
27924     *
27925     * @ingroup SegmentControl
27926     */
27927    EAPI Elm_Segment_Item *elm_segment_control_item_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27928
27929    /**
27930     * Set the selected state of an item.
27931     *
27932     * @param it The segment control item
27933     * @param select The selected state
27934     *
27935     * This sets the selected state of the given item @p it.
27936     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
27937     *
27938     * If a new item is selected the previosly selected will be unselected.
27939     * Previoulsy selected item can be get with function
27940     * elm_segment_control_item_selected_get().
27941     *
27942     * The selected item always will be highlighted on segment control.
27943     *
27944     * @see elm_segment_control_item_selected_get()
27945     *
27946     * @ingroup SegmentControl
27947     */
27948    EAPI void              elm_segment_control_item_selected_set(Elm_Segment_Item *it, Eina_Bool select) EINA_ARG_NONNULL(1);
27949
27950    /**
27951     * @}
27952     */
27953
27954    /**
27955     * @defgroup Grid Grid
27956     *
27957     * The grid is a grid layout widget that lays out a series of children as a
27958     * fixed "grid" of widgets using a given percentage of the grid width and
27959     * height each using the child object.
27960     *
27961     * The Grid uses a "Virtual resolution" that is stretched to fill the grid
27962     * widgets size itself. The default is 100 x 100, so that means the
27963     * position and sizes of children will effectively be percentages (0 to 100)
27964     * of the width or height of the grid widget
27965     *
27966     * @{
27967     */
27968
27969    /**
27970     * Add a new grid to the parent
27971     *
27972     * @param parent The parent object
27973     * @return The new object or NULL if it cannot be created
27974     *
27975     * @ingroup Grid
27976     */
27977    EAPI Evas_Object *elm_grid_add(Evas_Object *parent);
27978
27979    /**
27980     * Set the virtual size of the grid
27981     *
27982     * @param obj The grid object
27983     * @param w The virtual width of the grid
27984     * @param h The virtual height of the grid
27985     *
27986     * @ingroup Grid
27987     */
27988    EAPI void         elm_grid_size_set(Evas_Object *obj, int w, int h);
27989
27990    /**
27991     * Get the virtual size of the grid
27992     *
27993     * @param obj The grid object
27994     * @param w Pointer to integer to store the virtual width of the grid
27995     * @param h Pointer to integer to store the virtual height of the grid
27996     *
27997     * @ingroup Grid
27998     */
27999    EAPI void         elm_grid_size_get(Evas_Object *obj, int *w, int *h);
28000
28001    /**
28002     * Pack child at given position and size
28003     *
28004     * @param obj The grid object
28005     * @param subobj The child to pack
28006     * @param x The virtual x coord at which to pack it
28007     * @param y The virtual y coord at which to pack it
28008     * @param w The virtual width at which to pack it
28009     * @param h The virtual height at which to pack it
28010     *
28011     * @ingroup Grid
28012     */
28013    EAPI void         elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h);
28014
28015    /**
28016     * Unpack a child from a grid object
28017     *
28018     * @param obj The grid object
28019     * @param subobj The child to unpack
28020     *
28021     * @ingroup Grid
28022     */
28023    EAPI void         elm_grid_unpack(Evas_Object *obj, Evas_Object *subobj);
28024
28025    /**
28026     * Faster way to remove all child objects from a grid object.
28027     *
28028     * @param obj The grid object
28029     * @param clear If true, it will delete just removed children
28030     *
28031     * @ingroup Grid
28032     */
28033    EAPI void         elm_grid_clear(Evas_Object *obj, Eina_Bool clear);
28034
28035    /**
28036     * Set packing of an existing child at to position and size
28037     *
28038     * @param subobj The child to set packing of
28039     * @param x The virtual x coord at which to pack it
28040     * @param y The virtual y coord at which to pack it
28041     * @param w The virtual width at which to pack it
28042     * @param h The virtual height at which to pack it
28043     *
28044     * @ingroup Grid
28045     */
28046    EAPI void         elm_grid_pack_set(Evas_Object *subobj, int x, int y, int w, int h);
28047
28048    /**
28049     * get packing of a child
28050     *
28051     * @param subobj The child to query
28052     * @param x Pointer to integer to store the virtual x coord
28053     * @param y Pointer to integer to store the virtual y coord
28054     * @param w Pointer to integer to store the virtual width
28055     * @param h Pointer to integer to store the virtual height
28056     *
28057     * @ingroup Grid
28058     */
28059    EAPI void         elm_grid_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h);
28060
28061    /**
28062     * @}
28063     */
28064
28065    EAPI Evas_Object *elm_factory_add(Evas_Object *parent);
28066    EINA_DEPRECATED EAPI void         elm_factory_content_set(Evas_Object *obj, Evas_Object *content);
28067    EINA_DEPRECATED EAPI Evas_Object *elm_factory_content_get(const Evas_Object *obj);
28068    EAPI void         elm_factory_maxmin_mode_set(Evas_Object *obj, Eina_Bool enabled);
28069    EAPI Eina_Bool    elm_factory_maxmin_mode_get(const Evas_Object *obj);
28070    EAPI void         elm_factory_maxmin_reset_set(Evas_Object *obj);
28071
28072    /**
28073     * @defgroup Video Video
28074     *
28075     * @addtogroup Video
28076     * @{
28077     *
28078     * Elementary comes with two object that help design application that need
28079     * to display video. The main one, Elm_Video, display a video by using Emotion.
28080     * It does embedded the video inside an Edje object, so you can do some
28081     * animation depending on the video state change. It does also implement a
28082     * ressource management policy to remove this burden from the application writer.
28083     *
28084     * The second one, Elm_Player is a video player that need to be linked with and Elm_Video.
28085     * It take care of updating its content according to Emotion event and provide a
28086     * way to theme itself. It also does automatically raise the priority of the
28087     * linked Elm_Video so it will use the video decoder if available. It also does
28088     * activate the remember function on the linked Elm_Video object.
28089     *
28090     * Signals that you can add callback for are :
28091     *
28092     * "forward,clicked" - the user clicked the forward button.
28093     * "info,clicked" - the user clicked the info button.
28094     * "next,clicked" - the user clicked the next button.
28095     * "pause,clicked" - the user clicked the pause button.
28096     * "play,clicked" - the user clicked the play button.
28097     * "prev,clicked" - the user clicked the prev button.
28098     * "rewind,clicked" - the user clicked the rewind button.
28099     * "stop,clicked" - the user clicked the stop button.
28100     * 
28101     * Default contents parts of the player widget that you can use for are:
28102     * @li "video" - A video of the player
28103     * 
28104     */
28105
28106    /**
28107     * @brief Add a new Elm_Player object to the given parent Elementary (container) object.
28108     *
28109     * @param parent The parent object
28110     * @return a new player widget handle or @c NULL, on errors.
28111     *
28112     * This function inserts a new player widget on the canvas.
28113     *
28114     * @see elm_object_content_part_set()
28115     *
28116     * @ingroup Video
28117     */
28118    EAPI Evas_Object *elm_player_add(Evas_Object *parent);
28119
28120    /**
28121     * @brief Link a Elm_Payer with an Elm_Video object.
28122     *
28123     * @param player the Elm_Player object.
28124     * @param video The Elm_Video object.
28125     *
28126     * This mean that action on the player widget will affect the
28127     * video object and the state of the video will be reflected in
28128     * the player itself.
28129     *
28130     * @see elm_player_add()
28131     * @see elm_video_add()
28132     * @deprecated use elm_object_content_part_set() instead
28133     *
28134     * @ingroup Video
28135     */
28136    EINA_DEPRECATED EAPI void elm_player_video_set(Evas_Object *player, Evas_Object *video);
28137
28138    /**
28139     * @brief Add a new Elm_Video object to the given parent Elementary (container) object.
28140     *
28141     * @param parent The parent object
28142     * @return a new video widget handle or @c NULL, on errors.
28143     *
28144     * This function inserts a new video widget on the canvas.
28145     *
28146     * @seeelm_video_file_set()
28147     * @see elm_video_uri_set()
28148     *
28149     * @ingroup Video
28150     */
28151    EAPI Evas_Object *elm_video_add(Evas_Object *parent);
28152
28153    /**
28154     * @brief Define the file that will be the video source.
28155     *
28156     * @param video The video object to define the file for.
28157     * @param filename The file to target.
28158     *
28159     * This function will explicitly define a filename as a source
28160     * for the video of the Elm_Video object.
28161     *
28162     * @see elm_video_uri_set()
28163     * @see elm_video_add()
28164     * @see elm_player_add()
28165     *
28166     * @ingroup Video
28167     */
28168    EAPI void elm_video_file_set(Evas_Object *video, const char *filename);
28169
28170    /**
28171     * @brief Define the uri that will be the video source.
28172     *
28173     * @param video The video object to define the file for.
28174     * @param uri The uri to target.
28175     *
28176     * This function will define an uri as a source for the video of the
28177     * Elm_Video object. URI could be remote source of video, like http:// or local source
28178     * like for example WebCam who are most of the time v4l2:// (but that depend and
28179     * you should use Emotion API to request and list the available Webcam on your system).
28180     *
28181     * @see elm_video_file_set()
28182     * @see elm_video_add()
28183     * @see elm_player_add()
28184     *
28185     * @ingroup Video
28186     */
28187    EAPI void elm_video_uri_set(Evas_Object *video, const char *uri);
28188
28189    /**
28190     * @brief Get the underlying Emotion object.
28191     *
28192     * @param video The video object to proceed the request on.
28193     * @return the underlying Emotion object.
28194     *
28195     * @ingroup Video
28196     */
28197    EAPI Evas_Object *elm_video_emotion_get(const Evas_Object *video);
28198
28199    /**
28200     * @brief Start to play the video
28201     *
28202     * @param video The video object to proceed the request on.
28203     *
28204     * Start to play the video and cancel all suspend state.
28205     *
28206     * @ingroup Video
28207     */
28208    EAPI void elm_video_play(Evas_Object *video);
28209
28210    /**
28211     * @brief Pause the video
28212     *
28213     * @param video The video object to proceed the request on.
28214     *
28215     * Pause the video and start a timer to trigger suspend mode.
28216     *
28217     * @ingroup Video
28218     */
28219    EAPI void elm_video_pause(Evas_Object *video);
28220
28221    /**
28222     * @brief Stop the video
28223     *
28224     * @param video The video object to proceed the request on.
28225     *
28226     * Stop the video and put the emotion in deep sleep mode.
28227     *
28228     * @ingroup Video
28229     */
28230    EAPI void elm_video_stop(Evas_Object *video);
28231
28232    /**
28233     * @brief Is the video actually playing.
28234     *
28235     * @param video The video object to proceed the request on.
28236     * @return EINA_TRUE if the video is actually playing.
28237     *
28238     * You should consider watching event on the object instead of polling
28239     * the object state.
28240     *
28241     * @ingroup Video
28242     */
28243    EAPI Eina_Bool elm_video_is_playing(const Evas_Object *video);
28244
28245    /**
28246     * @brief Is it possible to seek inside the video.
28247     *
28248     * @param video The video object to proceed the request on.
28249     * @return EINA_TRUE if is possible to seek inside the video.
28250     *
28251     * @ingroup Video
28252     */
28253    EAPI Eina_Bool elm_video_is_seekable(const Evas_Object *video);
28254
28255    /**
28256     * @brief Is the audio muted.
28257     *
28258     * @param video The video object to proceed the request on.
28259     * @return EINA_TRUE if the audio is muted.
28260     *
28261     * @ingroup Video
28262     */
28263    EAPI Eina_Bool elm_video_audio_mute_get(const Evas_Object *video);
28264
28265    /**
28266     * @brief Change the mute state of the Elm_Video object.
28267     *
28268     * @param video The video object to proceed the request on.
28269     * @param mute The new mute state.
28270     *
28271     * @ingroup Video
28272     */
28273    EAPI void elm_video_audio_mute_set(Evas_Object *video, Eina_Bool mute);
28274
28275    /**
28276     * @brief Get the audio level of the current video.
28277     *
28278     * @param video The video object to proceed the request on.
28279     * @return the current audio level.
28280     *
28281     * @ingroup Video
28282     */
28283    EAPI double elm_video_audio_level_get(const Evas_Object *video);
28284
28285    /**
28286     * @brief Set the audio level of anElm_Video object.
28287     *
28288     * @param video The video object to proceed the request on.
28289     * @param volume The new audio volume.
28290     *
28291     * @ingroup Video
28292     */
28293    EAPI void elm_video_audio_level_set(Evas_Object *video, double volume);
28294
28295    EAPI double elm_video_play_position_get(const Evas_Object *video);
28296    EAPI void elm_video_play_position_set(Evas_Object *video, double position);
28297    EAPI double elm_video_play_length_get(const Evas_Object *video);
28298    EAPI void elm_video_remember_position_set(Evas_Object *video, Eina_Bool remember);
28299    EAPI Eina_Bool elm_video_remember_position_get(const Evas_Object *video);
28300    EAPI const char *elm_video_title_get(const Evas_Object *video);
28301    /**
28302     * @}
28303     */
28304
28305    // FIXME: incomplete - carousel. don't use this until this comment is removed
28306    typedef struct _Elm_Carousel_Item Elm_Carousel_Item;
28307    EAPI Evas_Object       *elm_carousel_add(Evas_Object *parent);
28308    EAPI Elm_Carousel_Item *elm_carousel_item_add(Evas_Object *obj, Evas_Object *icon, const char *label, Evas_Smart_Cb func, const void *data);
28309    EAPI void               elm_carousel_item_del(Elm_Carousel_Item *item);
28310    EAPI void               elm_carousel_item_select(Elm_Carousel_Item *item);
28311    /* smart callbacks called:
28312     * "clicked" - when the user clicks on a carousel item and becomes selected
28313     */
28314
28315    /* datefield */
28316
28317    typedef enum _Elm_Datefield_ItemType
28318      {
28319         ELM_DATEFIELD_YEAR = 0,
28320         ELM_DATEFIELD_MONTH,
28321         ELM_DATEFIELD_DATE,
28322         ELM_DATEFIELD_HOUR,
28323         ELM_DATEFIELD_MINUTE,
28324         ELM_DATEFIELD_AMPM
28325      } Elm_Datefield_ItemType;
28326
28327    EAPI Evas_Object *elm_datefield_add(Evas_Object *parent);
28328    EAPI void         elm_datefield_format_set(Evas_Object *obj, const char *fmt);
28329    EAPI char        *elm_datefield_format_get(const Evas_Object *obj);
28330    EAPI void         elm_datefield_item_enabled_set(Evas_Object *obj, Elm_Datefield_ItemType itemtype, Eina_Bool enable);
28331    EAPI Eina_Bool    elm_datefield_item_enabled_get(const Evas_Object *obj, Elm_Datefield_ItemType itemtype);
28332    EAPI void         elm_datefield_item_value_set(Evas_Object *obj, Elm_Datefield_ItemType itemtype, int value);
28333    EAPI int          elm_datefield_item_value_get(const Evas_Object *obj, Elm_Datefield_ItemType itemtype);
28334    EAPI void         elm_datefield_item_min_set(Evas_Object *obj, Elm_Datefield_ItemType itemtype, int value, Eina_Bool abs_limit);
28335    EAPI int          elm_datefield_item_min_get(const Evas_Object *obj, Elm_Datefield_ItemType itemtype);
28336    EAPI Eina_Bool    elm_datefield_item_min_is_absolute(const Evas_Object *obj, Elm_Datefield_ItemType itemtype);
28337    EAPI void         elm_datefield_item_max_set(Evas_Object *obj, Elm_Datefield_ItemType itemtype, int value, Eina_Bool abs_limit);
28338    EAPI int          elm_datefield_item_max_get(const Evas_Object *obj, Elm_Datefield_ItemType itemtype);
28339    EAPI Eina_Bool    elm_datefield_item_max_is_absolute(const Evas_Object *obj, Elm_Datefield_ItemType itemtype);
28340  
28341    /* smart callbacks called:
28342    * "changed" - when datefield value is changed, this signal is sent.
28343    */
28344
28345 ////////////////////// DEPRECATED ///////////////////////////////////
28346
28347    typedef enum _Elm_Datefield_Layout
28348      {
28349         ELM_DATEFIELD_LAYOUT_TIME,
28350         ELM_DATEFIELD_LAYOUT_DATE,
28351         ELM_DATEFIELD_LAYOUT_DATEANDTIME
28352      } Elm_Datefield_Layout;
28353
28354    EINA_DEPRECATED EAPI void         elm_datefield_layout_set(Evas_Object *obj, Elm_Datefield_Layout layout);
28355    EINA_DEPRECATED EAPI Elm_Datefield_Layout elm_datefield_layout_get(const Evas_Object *obj);
28356    EINA_DEPRECATED EAPI void         elm_datefield_date_format_set(Evas_Object *obj, const char *fmt);
28357    EINA_DEPRECATED EAPI const char  *elm_datefield_date_format_get(const Evas_Object *obj);
28358    EINA_DEPRECATED EAPI void         elm_datefield_time_mode_set(Evas_Object *obj, Eina_Bool mode);
28359    EINA_DEPRECATED EAPI Eina_Bool    elm_datefield_time_mode_get(const Evas_Object *obj);
28360    EINA_DEPRECATED EAPI void         elm_datefield_date_set(Evas_Object *obj, int year, int month, int day, int hour, int min);
28361    EINA_DEPRECATED EAPI void         elm_datefield_date_get(const Evas_Object *obj, int *year, int *month, int *day, int *hour, int *min);
28362    EINA_DEPRECATED EAPI Eina_Bool    elm_datefield_date_max_set(Evas_Object *obj, int year, int month, int day);
28363    EINA_DEPRECATED EAPI void         elm_datefield_date_max_get(const Evas_Object *obj, int *year, int *month, int *day);
28364    EINA_DEPRECATED EAPI Eina_Bool    elm_datefield_date_min_set(Evas_Object *obj, int year, int month, int day);
28365    EINA_DEPRECATED EAPI void         elm_datefield_date_min_get(const Evas_Object *obj, int *year, int *month, int *day);
28366    EINA_DEPRECATED EAPI void         elm_datefield_input_panel_state_callback_add(Evas_Object *obj, void (*pEventCallbackFunc) (void *data, Evas_Object *obj, int value), void *data);
28367    EINA_DEPRECATED EAPI void         elm_datefield_input_panel_state_callback_del(Evas_Object *obj, void (*pEventCallbackFunc) (void *data, Evas_Object *obj, int value));
28368 /////////////////////////////////////////////////////////////////////
28369
28370    /* popup */
28371    typedef enum _Elm_Popup_Response
28372      {
28373         ELM_POPUP_RESPONSE_NONE = -1,
28374         ELM_POPUP_RESPONSE_TIMEOUT = -2,
28375         ELM_POPUP_RESPONSE_OK = -3,
28376         ELM_POPUP_RESPONSE_CANCEL = -4,
28377         ELM_POPUP_RESPONSE_CLOSE = -5
28378      } Elm_Popup_Response;
28379
28380    typedef enum _Elm_Popup_Mode
28381      {
28382         ELM_POPUP_TYPE_NONE = 0,
28383         ELM_POPUP_TYPE_ALERT = (1 << 0)
28384      } Elm_Popup_Mode;
28385
28386    typedef enum _Elm_Popup_Orient
28387      {
28388         ELM_POPUP_ORIENT_TOP,
28389         ELM_POPUP_ORIENT_CENTER,
28390         ELM_POPUP_ORIENT_BOTTOM,
28391         ELM_POPUP_ORIENT_LEFT,
28392         ELM_POPUP_ORIENT_RIGHT,
28393         ELM_POPUP_ORIENT_TOP_LEFT,
28394         ELM_POPUP_ORIENT_TOP_RIGHT,
28395         ELM_POPUP_ORIENT_BOTTOM_LEFT,
28396         ELM_POPUP_ORIENT_BOTTOM_RIGHT
28397      } Elm_Popup_Orient;
28398
28399    /* smart callbacks called:
28400     * "response" - when ever popup is closed, this signal is sent with appropriate response id.".
28401     */
28402
28403    EAPI Evas_Object *elm_popup_add(Evas_Object *parent);
28404    EAPI void         elm_popup_desc_set(Evas_Object *obj, const char *text);
28405    EAPI const char  *elm_popup_desc_get(Evas_Object *obj);
28406    EAPI void         elm_popup_title_label_set(Evas_Object *obj, const char *text);
28407    EAPI const char  *elm_popup_title_label_get(Evas_Object *obj);
28408    EAPI void         elm_popup_title_icon_set(Evas_Object *obj, Evas_Object *icon);
28409    EAPI Evas_Object *elm_popup_title_icon_get(Evas_Object *obj);
28410    EAPI void         elm_popup_content_set(Evas_Object *obj, Evas_Object *content);
28411    EAPI Evas_Object *elm_popup_content_get(Evas_Object *obj);
28412    EAPI void         elm_popup_buttons_add(Evas_Object *obj,int no_of_buttons, const char *first_button_text,  ...);
28413    EAPI Evas_Object *elm_popup_with_buttons_add(Evas_Object *parent, const char *title, const char *desc_text,int no_of_buttons, const char *first_button_text, ... );
28414    EAPI void         elm_popup_timeout_set(Evas_Object *obj, double timeout);
28415    EAPI void         elm_popup_mode_set(Evas_Object *obj, Elm_Popup_Mode mode);
28416    EAPI void         elm_popup_response(Evas_Object *obj, int  response_id);
28417    EAPI void         elm_popup_orient_set(Evas_Object *obj, Elm_Popup_Orient orient);
28418    EAPI int          elm_popup_run(Evas_Object *obj);
28419
28420    /* NavigationBar */
28421    #define NAVIBAR_TITLEOBJ_INSTANT_HIDE "elm,state,hide,noanimate,title", "elm"
28422    #define NAVIBAR_TITLEOBJ_INSTANT_SHOW "elm,state,show,noanimate,title", "elm"
28423
28424    typedef enum
28425      {
28426         ELM_NAVIGATIONBAR_FUNCTION_BUTTON1,
28427         ELM_NAVIGATIONBAR_FUNCTION_BUTTON2,
28428         ELM_NAVIGATIONBAR_FUNCTION_BUTTON3,
28429         ELM_NAVIGATIONBAR_BACK_BUTTON
28430      } Elm_Navi_Button_Type;
28431
28432    EINA_DEPRECATED EAPI Evas_Object *elm_navigationbar_add(Evas_Object *parent);
28433    EINA_DEPRECATED    EAPI void         elm_navigationbar_push(Evas_Object *obj, const char *title, Evas_Object *fn_btn1, Evas_Object *fn_btn2, Evas_Object *fn_btn3, Evas_Object *content);
28434    EINA_DEPRECATED    EAPI void         elm_navigationbar_pop(Evas_Object *obj);
28435    EINA_DEPRECATED    EAPI void         elm_navigationbar_to_content_pop(Evas_Object *obj, Evas_Object *content);
28436    EINA_DEPRECATED    EAPI void         elm_navigationbar_title_label_set(Evas_Object *obj, Evas_Object *content, const char *title);
28437    EINA_DEPRECATED    EAPI const char  *elm_navigationbar_title_label_get(Evas_Object *obj, Evas_Object *content);
28438    EINA_DEPRECATED    EAPI void         elm_navigationbar_title_object_add(Evas_Object *obj, Evas_Object *content, Evas_Object *title_obj);
28439    EINA_DEPRECATED    EAPI Evas_Object *elm_navigationbar_title_object_get(Evas_Object *obj, Evas_Object *content);
28440    EINA_DEPRECATED    EAPI Eina_List   *elm_navigationbar_title_object_list_get(Evas_Object *obj, Evas_Object *content);
28441    EINA_DEPRECATED    EAPI Evas_Object *elm_navigationbar_content_top_get(Evas_Object *obj);
28442    EINA_DEPRECATED    EAPI Evas_Object *elm_navigationbar_content_bottom_get(Evas_Object *obj);
28443    EINA_DEPRECATED    EAPI void         elm_navigationbar_hidden_set(Evas_Object *obj, Eina_Bool hidden);
28444    EINA_DEPRECATED    EAPI void         elm_navigationbar_title_button_set(Evas_Object *obj, Evas_Object *content, Evas_Object *button, Elm_Navi_Button_Type button_type);
28445    EINA_DEPRECATED    EAPI Evas_Object *elm_navigationbar_title_button_get(Evas_Object *obj, Evas_Object *content, Elm_Navi_Button_Type button_type);
28446    EINA_DEPRECATED    EAPI const char  *elm_navigationbar_subtitle_label_get(Evas_Object *obj, Evas_Object *content);
28447    EINA_DEPRECATED    EAPI void         elm_navigationbar_subtitle_label_set(Evas_Object *obj, Evas_Object *content, const char *subtitle);
28448    EINA_DEPRECATED    EAPI void         elm_navigationbar_title_object_list_unset(Evas_Object *obj, Evas_Object *content, Eina_List **list);
28449    EINA_DEPRECATED    EAPI void         elm_navigationbar_animation_disabled_set(Evas_Object *obj, Eina_Bool disable);
28450    EINA_DEPRECATED    EAPI void         elm_navigationbar_title_object_visible_set(Evas_Object *obj, Evas_Object *content, Eina_Bool visible);
28451    EINA_DEPRECATED    Eina_Bool         elm_navigationbar_title_object_visible_get(Evas_Object *obj, Evas_Object *content);
28452    EINA_DEPRECATED    EAPI void         elm_navigationbar_title_icon_set(Evas_Object *obj, Evas_Object *content, Evas_Object *icon);
28453    EINA_DEPRECATED    EAPI Evas_Object *elm_navigationbar_title_icon_get(Evas_Object *obj, Evas_Object *content);
28454
28455    /* NavigationBar */
28456    #define NAVIBAR_EX_TITLEOBJ_INSTANT_HIDE "elm,state,hide,noanimate,title", "elm"
28457    #define NAVIBAR_EX_TITLEOBJ_INSTANT_SHOW "elm,state,show,noanimate,title", "elm"
28458
28459    typedef enum
28460      {
28461         ELM_NAVIGATIONBAR_EX_BACK_BUTTON,
28462         ELM_NAVIGATIONBAR_EX_FUNCTION_BUTTON1,
28463         ELM_NAVIGATIONBAR_EX_FUNCTION_BUTTON2,
28464         ELM_NAVIGATIONBAR_EX_FUNCTION_BUTTON3,
28465         ELM_NAVIGATIONBAR_EX_MAX
28466      } Elm_Navi_ex_Button_Type;
28467    typedef struct _Elm_Navigationbar_ex_Item Elm_Navigationbar_ex_Item;
28468
28469    EINA_DEPRECATED    EAPI Evas_Object *elm_navigationbar_ex_add(Evas_Object *parent);
28470    EINA_DEPRECATED    EAPI Elm_Navigationbar_ex_Item *elm_navigationbar_ex_item_push(Evas_Object *obj, Evas_Object *content, const char *item_style);
28471    EINA_DEPRECATED    EAPI void         elm_navigationbar_ex_item_pop(Evas_Object *obj);
28472    EINA_DEPRECATED    EAPI void         elm_navigationbar_ex_item_promote(Elm_Navigationbar_ex_Item* item);
28473    EINA_DEPRECATED    EAPI void         elm_navigationbar_ex_to_item_pop(Elm_Navigationbar_ex_Item* item);
28474    EINA_DEPRECATED    EAPI void         elm_navigationbar_ex_item_title_label_set(Elm_Navigationbar_ex_Item *item, const char *title);
28475    EINA_DEPRECATED    EAPI const char  *elm_navigationbar_ex_item_title_label_get(Elm_Navigationbar_ex_Item* item);
28476    EINA_DEPRECATED    EAPI Elm_Navigationbar_ex_Item *elm_navigationbar_ex_item_top_get(const Evas_Object *obj);
28477    EINA_DEPRECATED    EAPI Elm_Navigationbar_ex_Item *elm_navigationbar_ex_item_bottom_get(const Evas_Object *obj);
28478    EINA_DEPRECATED    EAPI void         elm_navigationbar_ex_item_title_button_set(Elm_Navigationbar_ex_Item* item, char *btn_label, Evas_Object *icon, int button_type, Evas_Smart_Cb func, const void *data);
28479    EINA_DEPRECATED    EAPI Evas_Object *elm_navigationbar_ex_item_title_button_get(Elm_Navigationbar_ex_Item* item, int button_type);
28480    EINA_DEPRECATED    EAPI void         elm_navigationbar_ex_item_title_object_set(Elm_Navigationbar_ex_Item* item, Evas_Object *title_obj);
28481    EINA_DEPRECATED    EAPI Evas_Object *elm_navigationbar_ex_item_title_object_unset(Elm_Navigationbar_ex_Item* item);
28482    EINA_DEPRECATED    EAPI void         elm_navigationbar_ex_item_title_hidden_set(Elm_Navigationbar_ex_Item* item, Eina_Bool hidden);
28483    EINA_DEPRECATED    EAPI Evas_Object *elm_navigationbar_ex_item_title_object_get(Elm_Navigationbar_ex_Item* item);
28484    EINA_DEPRECATED    EAPI const char  *elm_navigationbar_ex_item_subtitle_label_get(Elm_Navigationbar_ex_Item* item);
28485    EINA_DEPRECATED    EAPI void         elm_navigationbar_ex_item_subtitle_label_set( Elm_Navigationbar_ex_Item* item, const char *subtitle);
28486    EINA_DEPRECATED    EAPI void         elm_navigationbar_ex_item_style_set(Elm_Navigationbar_ex_Item* item, const char* item_style);
28487    EINA_DEPRECATED    EAPI const char  *elm_navigationbar_ex_item_style_get(Elm_Navigationbar_ex_Item* item);
28488    EINA_DEPRECATED    EAPI Evas_Object *elm_navigationbar_ex_item_content_unset(Elm_Navigationbar_ex_Item* item);
28489    EINA_DEPRECATED    EAPI Evas_Object *elm_navigationbar_ex_item_content_get(Elm_Navigationbar_ex_Item* item);
28490    EINA_DEPRECATED    EAPI void         elm_navigationbar_ex_delete_on_pop_set(Evas_Object *obj, Eina_Bool del_on_pop);
28491    EINA_DEPRECATED    EAPI Evas_Object *elm_navigationbar_ex_item_icon_get(Elm_Navigationbar_ex_Item* item);
28492    EINA_DEPRECATED    EAPI void         elm_navigationbar_ex_item_icon_set(Elm_Navigationbar_ex_Item* item, Evas_Object *icon);
28493    EINA_DEPRECATED    EAPI Evas_Object *elm_navigationbar_ex_item_title_button_unset(Elm_Navigationbar_ex_Item* item, int button_type);
28494    EINA_DEPRECATED    EAPI void         elm_navigationbar_ex_animation_disable_set(Evas_Object *obj, Eina_Bool disable);
28495    EINA_DEPRECATED    EAPI void         elm_navigationbar_ex_title_object_visible_set(Elm_Navigationbar_ex_Item* item, Eina_Bool visible);
28496    EINA_DEPRECATED    Eina_Bool         elm_navigationbar_ex_title_object_visible_get(Elm_Navigationbar_ex_Item* item);
28497
28498    /**
28499     * @defgroup Naviframe Naviframe
28500     * @ingroup Elementary
28501     *
28502     * @brief Naviframe is a kind of view manager for the applications.
28503     *
28504     * Naviframe provides functions to switch different pages with stack
28505     * mechanism. It means if one page(item) needs to be changed to the new one,
28506     * then naviframe would push the new page to it's internal stack. Of course,
28507     * it can be back to the previous page by popping the top page. Naviframe
28508     * provides some transition effect while the pages are switching (same as
28509     * pager).
28510     *
28511     * Since each item could keep the different styles, users could keep the
28512     * same look & feel for the pages or different styles for the items in it's
28513     * application.
28514     *
28515     * Signals that you can add callback for are:
28516     * @li "transition,finished" - When the transition is finished in changing
28517     *     the item
28518     * @li "title,clicked" - User clicked title area
28519     *
28520     * Default contents parts of the naviframe items that you can use for are:
28521     * @li "default" - A main content of the page
28522     * @li "icon" - A icon in the title area
28523     * @li "prev_btn" - A button to go to the previous page
28524     * @li "next_btn" - A button to go to the next page
28525     *
28526     * Default text parts of the naviframe items that you can use for are:
28527     * @li "default" - Title label in the title area
28528     * @li "subtitle" - Sub-title label in the title area
28529     *
28530     * @ref tutorial_naviframe gives a good overview of the usage of the API.
28531     */
28532
28533   //Available commonly
28534   #define ELM_NAVIFRAME_ITEM_CONTENT "elm.swallow.content"
28535   #define ELM_NAVIFRAME_ITEM_ICON "elm.swallow.icon"
28536   #define ELM_NAVIFRAME_ITEM_OPTIONHEADER "elm.swallow.optionheader"
28537   #define ELM_NAVIFRAME_ITEM_TITLE_LABEL "elm.text.title"
28538   #define ELM_NAVIFRAME_ITEM_PREV_BTN "elm.swallow.prev_btn"
28539   #define ELM_NAVIFRAME_ITEM_TITLE_LEFT_BTN "elm.swallow.left_btn"
28540   #define ELM_NAVIFRAME_ITEM_TITLE_RIGHT_BTN "elm.swallow.right_btn"
28541   #define ELM_NAVIFRAME_ITEM_TITLE_MORE_BTN "elm.swallow.more_btn"
28542   #define ELM_NAVIFRAME_ITEM_CONTROLBAR "elm.swallow.controlbar"
28543   #define ELM_NAVIFRAME_ITEM_SIGNAL_OPTIONHEADER_CLOSE "elm,state,optionheader,close", ""
28544   #define ELM_NAVIFRAME_ITEM_SIGNAL_OPTIONHEADER_OPEN "elm,state,optionheader,open", ""
28545   #define ELM_NAVIFRAME_ITEM_SIGNAL_OPTIONHEADER_INSTANT_CLOSE "elm,state,optionheader,instant_close", ""
28546   #define ELM_NAVIFRAME_ITEM_SIGNAL_OPTIONHEADER_INSTANT_OPEN "elm,state,optionheader,instant_open", ""
28547   #define ELM_NAVIFRAME_ITEM_SIGNAL_CONTROLBAR_CLOSE "elm,state,controlbar,close", ""
28548   #define ELM_NAVIFRAME_ITEM_SIGNAL_CONTROLBAR_OPEN "elm,state,controlbar,open", ""
28549   #define ELM_NAVIFRAME_ITEM_SIGNAL_CONTROLBAR_INSTANT_CLOSE "elm,state,controlbar,instant_close", ""
28550   #define ELM_NAVIFRAME_ITEM_SIGNAL_CONTROLBAR_INSTANT_OPEN "elm,state,controlbar,instant_open", ""
28551
28552    //Available only in a style - "2line"
28553   #define ELM_NAVIFRAME_ITEM_OPTIONHEADER2 "elm.swallow.optionheader2"
28554
28555   //Available only in a style - "segment"
28556   #define ELM_NAVIFRAME_ITEM_SEGMENT2 "elm.swallow.segment2"
28557   #define ELM_NAVIFRAME_ITEM_SEGMENT3 "elm.swallow.segment3"
28558
28559    /**
28560     * @addtogroup Naviframe
28561     * @{
28562     */
28563
28564    /**
28565     * @brief Add a new Naviframe object to the parent.
28566     *
28567     * @param parent Parent object
28568     * @return New object or @c NULL, if it cannot be created
28569     *
28570     * @ingroup Naviframe
28571     */
28572    EAPI Evas_Object        *elm_naviframe_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
28573    /**
28574     * @brief Push a new item to the top of the naviframe stack (and show it).
28575     *
28576     * @param obj The naviframe object
28577     * @param title_label The label in the title area. The name of the title
28578     *        label part is "elm.text.title"
28579     * @param prev_btn The button to go to the previous item. If it is NULL,
28580     *        then naviframe will create a back button automatically. The name of
28581     *        the prev_btn part is "elm.swallow.prev_btn"
28582     * @param next_btn The button to go to the next item. Or It could be just an
28583     *        extra function button. The name of the next_btn part is
28584     *        "elm.swallow.next_btn"
28585     * @param content The main content object. The name of content part is
28586     *        "elm.swallow.content"
28587     * @param item_style The current item style name. @c NULL would be default.
28588     * @return The created item or @c NULL upon failure.
28589     *
28590     * The item pushed becomes one page of the naviframe, this item will be
28591     * deleted when it is popped.
28592     *
28593     * @see also elm_naviframe_item_style_set()
28594     * @see also elm_naviframe_item_insert_before()
28595     * @see also elm_naviframe_item_insert_after()
28596     *
28597     * The following styles are available for this item:
28598     * @li @c "default"
28599     *
28600     * @ingroup Naviframe
28601     */
28602    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);
28603     /**
28604     * @brief Insert a new item into the naviframe before item @p before.
28605     *
28606     * @param before The naviframe item to insert before.
28607     * @param title_label The label in the title area. The name of the title
28608     *        label part is "elm.text.title"
28609     * @param prev_btn The button to go to the previous item. If it is NULL,
28610     *        then naviframe will create a back button automatically. The name of
28611     *        the prev_btn part is "elm.swallow.prev_btn"
28612     * @param next_btn The button to go to the next item. Or It could be just an
28613     *        extra function button. The name of the next_btn part is
28614     *        "elm.swallow.next_btn"
28615     * @param content The main content object. The name of content part is
28616     *        "elm.swallow.content"
28617     * @param item_style The current item style name. @c NULL would be default.
28618     * @return The created item or @c NULL upon failure.
28619     *
28620     * The item is inserted into the naviframe straight away without any
28621     * transition operations. This item will be deleted when it is popped.
28622     *
28623     * @see also elm_naviframe_item_style_set()
28624     * @see also elm_naviframe_item_push()
28625     * @see also elm_naviframe_item_insert_after()
28626     *
28627     * The following styles are available for this item:
28628     * @li @c "default"
28629     *
28630     * @ingroup Naviframe
28631     */
28632    EAPI Elm_Object_Item    *elm_naviframe_item_insert_before(Elm_Object_Item *before, const char *title_label, Evas_Object *prev_btn, Evas_Object *next_btn, Evas_Object *content, const char *item_style) EINA_ARG_NONNULL(1, 5);
28633    /**
28634     * @brief Insert a new item into the naviframe after item @p after.
28635     *
28636     * @param after The naviframe item to insert after.
28637     * @param title_label The label in the title area. The name of the title
28638     *        label part is "elm.text.title"
28639     * @param prev_btn The button to go to the previous item. If it is NULL,
28640     *        then naviframe will create a back button automatically. The name of
28641     *        the prev_btn part is "elm.swallow.prev_btn"
28642     * @param next_btn The button to go to the next item. Or It could be just an
28643     *        extra function button. The name of the next_btn part is
28644     *        "elm.swallow.next_btn"
28645     * @param content The main content object. The name of content part is
28646     *        "elm.swallow.content"
28647     * @param item_style The current item style name. @c NULL would be default.
28648     * @return The created item or @c NULL upon failure.
28649     *
28650     * The item is inserted into the naviframe straight away without any
28651     * transition operations. This item will be deleted when it is popped.
28652     *
28653     * @see also elm_naviframe_item_style_set()
28654     * @see also elm_naviframe_item_push()
28655     * @see also elm_naviframe_item_insert_before()
28656     *
28657     * The following styles are available for this item:
28658     * @li @c "default"
28659     *
28660     * @ingroup Naviframe
28661     */
28662    EAPI Elm_Object_Item    *elm_naviframe_item_insert_after(Elm_Object_Item *after, const char *title_label, Evas_Object *prev_btn, Evas_Object *next_btn, Evas_Object *content, const char *item_style) EINA_ARG_NONNULL(1, 5);
28663    /**
28664     * @brief Pop an item that is on top of the stack
28665     *
28666     * @param obj The naviframe object
28667     * @return @c NULL or the content object(if the
28668     *         elm_naviframe_content_preserve_on_pop_get is true).
28669     *
28670     * This pops an item that is on the top(visible) of the naviframe, makes it
28671     * disappear, then deletes the item. The item that was underneath it on the
28672     * stack will become visible.
28673     *
28674     * @see also elm_naviframe_content_preserve_on_pop_get()
28675     *
28676     * @ingroup Naviframe
28677     */
28678    EAPI Evas_Object        *elm_naviframe_item_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
28679    /**
28680     * @brief Pop the items between the top and the above one on the given item.
28681     *
28682     * @param it The naviframe item
28683     *
28684     * @ingroup Naviframe
28685     */
28686    EAPI void                elm_naviframe_item_pop_to(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28687    /**
28688    * Promote an item already in the naviframe stack to the top of the stack
28689    *
28690    * @param it The naviframe item
28691    *
28692    * This will take the indicated item and promote it to the top of the stack
28693    * as if it had been pushed there. The item must already be inside the
28694    * naviframe stack to work.
28695    *
28696    */
28697    EAPI void                elm_naviframe_item_promote(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28698    /**
28699     * @brief Delete the given item instantly.
28700     *
28701     * @param it The naviframe item
28702     *
28703     * This just deletes the given item from the naviframe item list instantly.
28704     * So this would not emit any signals for view transitions but just change
28705     * the current view if the given item is a top one.
28706     *
28707     * @ingroup Naviframe
28708     */
28709    EAPI void                elm_naviframe_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28710    /**
28711     * @brief preserve the content objects when items are popped.
28712     *
28713     * @param obj The naviframe object
28714     * @param preserve Enable the preserve mode if EINA_TRUE, disable otherwise
28715     *
28716     * @see also elm_naviframe_content_preserve_on_pop_get()
28717     *
28718     * @ingroup Naviframe
28719     */
28720    EAPI void                elm_naviframe_content_preserve_on_pop_set(Evas_Object *obj, Eina_Bool preserve) EINA_ARG_NONNULL(1);
28721    /**
28722     * @brief Get a value whether preserve mode is enabled or not.
28723     *
28724     * @param obj The naviframe object
28725     * @return If @c EINA_TRUE, preserve mode is enabled
28726     *
28727     * @see also elm_naviframe_content_preserve_on_pop_set()
28728     *
28729     * @ingroup Naviframe
28730     */
28731    EAPI Eina_Bool           elm_naviframe_content_preserve_on_pop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28732    /**
28733     * @brief Get a top item on the naviframe stack
28734     *
28735     * @param obj The naviframe object
28736     * @return The top item on the naviframe stack or @c NULL, if the stack is
28737     *         empty
28738     *
28739     * @ingroup Naviframe
28740     */
28741    EAPI Elm_Object_Item    *elm_naviframe_top_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28742    /**
28743     * @brief Get a bottom item on the naviframe stack
28744     *
28745     * @param obj The naviframe object
28746     * @return The bottom item on the naviframe stack or @c NULL, if the stack is
28747     *         empty
28748     *
28749     * @ingroup Naviframe
28750     */
28751    EAPI Elm_Object_Item    *elm_naviframe_bottom_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28752    /**
28753     * @brief Set an item style
28754     *
28755     * @param obj The naviframe item
28756     * @param item_style The current item style name. @c NULL would be default
28757     *
28758     * The following styles are available for this item:
28759     * @li @c "default"
28760     *
28761     * @see also elm_naviframe_item_style_get()
28762     *
28763     * @ingroup Naviframe
28764     */
28765    EAPI void                elm_naviframe_item_style_set(Elm_Object_Item *it, const char *item_style) EINA_ARG_NONNULL(1);
28766    /**
28767     * @brief Get an item style
28768     *
28769     * @param obj The naviframe item
28770     * @return The current item style name
28771     *
28772     * @see also elm_naviframe_item_style_set()
28773     *
28774     * @ingroup Naviframe
28775     */
28776    EAPI const char         *elm_naviframe_item_style_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28777    /**
28778     * @brief Show/Hide the title area
28779     *
28780     * @param it The naviframe item
28781     * @param visible If @c EINA_TRUE, title area will be visible, hidden
28782     *        otherwise
28783     *
28784     * When the title area is invisible, then the controls would be hidden so as     * to expand the content area to full-size.
28785     *
28786     * @see also elm_naviframe_item_title_visible_get()
28787     *
28788     * @ingroup Naviframe
28789     */
28790    EAPI void                elm_naviframe_item_title_visible_set(Elm_Object_Item *it, Eina_Bool visible) EINA_ARG_NONNULL(1);
28791    /**
28792     * @brief Get a value whether title area is visible or not.
28793     *
28794     * @param it The naviframe item
28795     * @return If @c EINA_TRUE, title area is visible
28796     *
28797     * @see also elm_naviframe_item_title_visible_set()
28798     *
28799     * @ingroup Naviframe
28800     */
28801    EAPI Eina_Bool           elm_naviframe_item_title_visible_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28802
28803    /**
28804     * @brief Set creating prev button automatically or not
28805     *
28806     * @param obj The naviframe object
28807     * @param auto_pushed If @c EINA_TRUE, the previous button(back button) will
28808     *        be created internally when you pass the @c NULL to the prev_btn
28809     *        parameter in elm_naviframe_item_push
28810     *
28811     * @see also elm_naviframe_item_push()
28812     */
28813    EAPI void                elm_naviframe_prev_btn_auto_pushed_set(Evas_Object *obj, Eina_Bool auto_pushed) EINA_ARG_NONNULL(1);
28814    /**
28815     * @brief Get a value whether prev button(back button) will be auto pushed or
28816     *        not.
28817     *
28818     * @param obj The naviframe object
28819     * @return If @c EINA_TRUE, prev button will be auto pushed.
28820     *
28821     * @see also elm_naviframe_item_push()
28822     *           elm_naviframe_prev_btn_auto_pushed_set()
28823     */
28824    EAPI Eina_Bool           elm_naviframe_prev_btn_auto_pushed_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28825    /**
28826     * @brief Get a list of all the naviframe items.
28827     *
28828     * @param obj The naviframe object
28829     * @return An Eina_Inlist* of naviframe items, #Elm_Object_Item,
28830     * or @c NULL on failure.
28831     */
28832    EAPI Eina_Inlist        *elm_naviframe_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28833
28834    /**
28835     * @}
28836     */
28837
28838    /* Control Bar */
28839    #define CONTROLBAR_SYSTEM_ICON_ALBUMS "controlbar_albums"
28840    #define CONTROLBAR_SYSTEM_ICON_ARTISTS "controlbar_artists"
28841    #define CONTROLBAR_SYSTEM_ICON_SONGS "controlbar_songs"
28842    #define CONTROLBAR_SYSTEM_ICON_PLAYLIST "controlbar_playlist"
28843    #define CONTROLBAR_SYSTEM_ICON_MORE "controlbar_more"
28844    #define CONTROLBAR_SYSTEM_ICON_CONTACTS "controlbar_contacts"
28845    #define CONTROLBAR_SYSTEM_ICON_DIALER "controlbar_dialer"
28846    #define CONTROLBAR_SYSTEM_ICON_FAVORITES "controlbar_favorites"
28847    #define CONTROLBAR_SYSTEM_ICON_LOGS "controlbar_logs"
28848
28849    typedef enum _Elm_Controlbar_Mode_Type
28850      {
28851         ELM_CONTROLBAR_MODE_DEFAULT = 0,
28852         ELM_CONTROLBAR_MODE_TRANSLUCENCE,
28853         ELM_CONTROLBAR_MODE_TRANSPARENCY,
28854         ELM_CONTROLBAR_MODE_LARGE,
28855         ELM_CONTROLBAR_MODE_SMALL,
28856         ELM_CONTROLBAR_MODE_LEFT,
28857         ELM_CONTROLBAR_MODE_RIGHT
28858      } Elm_Controlbar_Mode_Type;
28859
28860    typedef struct _Elm_Controlbar_Item Elm_Controlbar_Item;
28861    EAPI Evas_Object *elm_controlbar_add(Evas_Object *parent);
28862    EAPI Elm_Controlbar_Item *elm_controlbar_tab_item_append(Evas_Object *obj, const char *icon_path, const char *label, Evas_Object *view);
28863    EAPI Elm_Controlbar_Item *elm_controlbar_tab_item_prepend(Evas_Object *obj, const char *icon_path, const char *label, Evas_Object *view);
28864    EAPI Elm_Controlbar_Item *elm_controlbar_tab_item_insert_before(Evas_Object *obj, Elm_Controlbar_Item *before, const char *icon_path, const char *label, Evas_Object *view);
28865    EAPI Elm_Controlbar_Item *elm_controlbar_tab_item_insert_after(Evas_Object *obj, Elm_Controlbar_Item *after, const char *icon_path, const char *label, Evas_Object *view);
28866    EAPI Elm_Controlbar_Item *elm_controlbar_tool_item_append(Evas_Object *obj, const char *icon_path, const char *label, void (*func) (void *data, Evas_Object *obj, void *event_info), void *data);
28867    EAPI Elm_Controlbar_Item *elm_controlbar_tool_item_prepend(Evas_Object *obj, const char *icon_path, const char *label, void (*func) (void *data, Evas_Object *obj, void *event_info), void *data);
28868    EAPI Elm_Controlbar_Item *elm_controlbar_tool_item_insert_before(Evas_Object *obj, Elm_Controlbar_Item *before, const char *icon_path, const char *label, void (*func) (void *data, Evas_Object *obj, void *event_info), void *data);
28869    EAPI Elm_Controlbar_Item *elm_controlbar_tool_item_insert_after(Evas_Object *obj, Elm_Controlbar_Item *after, const char *icon_path, const char *label, void (*func) (void *data, Evas_Object *obj, void *event_info), void *data);
28870    EAPI Elm_Controlbar_Item *elm_controlbar_object_item_append(Evas_Object *obj, Evas_Object *obj_item, const int sel);
28871    EAPI Elm_Controlbar_Item *elm_controlbar_object_item_prepend(Evas_Object *obj, Evas_Object *obj_item, const int sel);
28872    EAPI Elm_Controlbar_Item *elm_controlbar_object_item_insert_before(Evas_Object *obj, Elm_Controlbar_Item *before, Evas_Object *obj_item, const int sel);
28873    EAPI Elm_Controlbar_Item *elm_controlbar_object_item_insert_after(Evas_Object *obj, Elm_Controlbar_Item *after, Evas_Object *obj_item, const int sel);
28874    EAPI Evas_Object *elm_controlbar_object_item_object_get(const Elm_Controlbar_Item *it);
28875    EAPI void         elm_controlbar_item_del(Elm_Controlbar_Item *it);
28876    EAPI void         elm_controlbar_item_select(Elm_Controlbar_Item *it);
28877    EAPI void         elm_controlbar_item_visible_set(Elm_Controlbar_Item *it, Eina_Bool bar);
28878    EAPI Eina_Bool    elm_controlbar_item_visible_get(const Elm_Controlbar_Item * it);
28879    EAPI void         elm_controlbar_item_disabled_set(Elm_Controlbar_Item * it, Eina_Bool disabled);
28880    EAPI Eina_Bool    elm_controlbar_item_disabled_get(const Elm_Controlbar_Item * it);
28881    EAPI void         elm_controlbar_item_icon_set(Elm_Controlbar_Item *it, const char *icon_path);
28882    EAPI Evas_Object *elm_controlbar_item_icon_get(const Elm_Controlbar_Item *it);
28883    EAPI void         elm_controlbar_item_label_set(Elm_Controlbar_Item *it, const char *label);
28884    EAPI const char  *elm_controlbar_item_label_get(const Elm_Controlbar_Item *it);
28885    EAPI Elm_Controlbar_Item *elm_controlbar_selected_item_get(const Evas_Object *obj);
28886    EAPI Elm_Controlbar_Item *elm_controlbar_first_item_get(const Evas_Object *obj);
28887    EAPI Elm_Controlbar_Item *elm_controlbar_last_item_get(const Evas_Object *obj);
28888    EAPI const Eina_List   *elm_controlbar_items_get(const Evas_Object *obj);
28889    EAPI Elm_Controlbar_Item *elm_controlbar_item_prev(Elm_Controlbar_Item *it);
28890    EAPI Elm_Controlbar_Item *elm_controlbar_item_next(Elm_Controlbar_Item *it);
28891    EAPI void         elm_controlbar_item_view_set(Elm_Controlbar_Item *it, Evas_Object * view);
28892    EAPI Evas_Object *elm_controlbar_item_view_get(const Elm_Controlbar_Item *it);
28893    EAPI Evas_Object *elm_controlbar_item_view_unset(Elm_Controlbar_Item *it);
28894    EAPI Evas_Object *elm_controlbar_item_button_get(const Elm_Controlbar_Item *it);
28895    EAPI void         elm_controlbar_mode_set(Evas_Object *obj, int mode);
28896    EAPI void         elm_controlbar_alpha_set(Evas_Object *obj, int alpha);
28897    EAPI void         elm_controlbar_item_auto_align_set(Evas_Object *obj, Eina_Bool auto_align);
28898    EAPI void         elm_controlbar_vertical_set(Evas_Object *obj, Eina_Bool vertical);
28899
28900    /* SearchBar */
28901    EAPI Evas_Object *elm_searchbar_add(Evas_Object *parent);
28902    EAPI void         elm_searchbar_text_set(Evas_Object *obj, const char *entry);
28903    EAPI const char  *elm_searchbar_text_get(Evas_Object *obj);
28904    EAPI Evas_Object *elm_searchbar_entry_get(Evas_Object *obj);
28905    EAPI Evas_Object *elm_searchbar_editfield_get(Evas_Object *obj);
28906    EAPI void         elm_searchbar_cancel_button_animation_set(Evas_Object *obj, Eina_Bool cancel_btn_ani_flag);
28907    EAPI void         elm_searchbar_cancel_button_set(Evas_Object *obj, Eina_Bool visible);
28908    EAPI void         elm_searchbar_clear(Evas_Object *obj);
28909    EAPI void         elm_searchbar_boundary_rect_set(Evas_Object *obj, Eina_Bool boundary);
28910
28911    EAPI Evas_Object *elm_page_control_add(Evas_Object *parent);
28912    EAPI void         elm_page_control_page_count_set(Evas_Object *obj, unsigned int page_count);
28913    EAPI void         elm_page_control_page_id_set(Evas_Object *obj, unsigned int page_id);
28914    EAPI unsigned int elm_page_control_page_id_get(Evas_Object *obj);
28915
28916    /* NoContents */
28917    EAPI Evas_Object *elm_nocontents_add(Evas_Object *parent);
28918    EAPI void         elm_nocontents_label_set(Evas_Object *obj, const char *label);
28919    EAPI const char  *elm_nocontents_label_get(const Evas_Object *obj);
28920    EAPI void         elm_nocontents_custom_set(const Evas_Object *obj, Evas_Object *custom);
28921    EAPI Evas_Object *elm_nocontents_custom_get(const Evas_Object *obj);
28922
28923    /* TickerNoti */
28924    typedef enum
28925      {
28926         ELM_TICKERNOTI_ORIENT_TOP = 0,
28927         ELM_TICKERNOTI_ORIENT_BOTTOM,
28928         ELM_TICKERNOTI_ORIENT_LAST
28929      }  Elm_Tickernoti_Orient;
28930
28931    EAPI Evas_Object              *elm_tickernoti_add (Evas_Object *parent);
28932    EAPI void                      elm_tickernoti_orient_set (Evas_Object *obj, Elm_Tickernoti_Orient orient) EINA_ARG_NONNULL(1);
28933    EAPI Elm_Tickernoti_Orient     elm_tickernoti_orient_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
28934    EAPI int                       elm_tickernoti_rotation_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
28935    EAPI void                      elm_tickernoti_rotation_set (Evas_Object *obj, int angle) EINA_ARG_NONNULL(1);
28936    EAPI Evas_Object              *elm_tickernoti_win_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
28937    /* #### Below APIs and data structures are going to be deprecated, announcment will be made soon ####*/
28938    typedef enum
28939     {
28940        ELM_TICKERNOTI_DEFAULT,
28941        ELM_TICKERNOTI_DETAILVIEW
28942     } Elm_Tickernoti_Mode;
28943    EAPI void                      elm_tickernoti_detailview_label_set (Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
28944    EAPI const char               *elm_tickernoti_detailview_label_get (const Evas_Object *obj)EINA_ARG_NONNULL(1);
28945    EAPI void                      elm_tickernoti_detailview_button_set (Evas_Object *obj, Evas_Object *button) EINA_ARG_NONNULL(2);
28946    EAPI Evas_Object              *elm_tickernoti_detailview_button_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
28947    EAPI void                      elm_tickernoti_detailview_icon_set (Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
28948    EAPI Evas_Object              *elm_tickernoti_detailview_icon_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
28949    EAPI Evas_Object              *elm_tickernoti_detailview_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
28950    EAPI void                      elm_tickernoti_mode_set (Evas_Object *obj, Elm_Tickernoti_Mode mode) EINA_ARG_NONNULL(1);
28951    EAPI Elm_Tickernoti_Mode       elm_tickernoti_mode_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
28952    EAPI void                      elm_tickernoti_orientation_set (Evas_Object *obj, Elm_Tickernoti_Orient orient) EINA_ARG_NONNULL(1);
28953    EAPI Elm_Tickernoti_Orient     elm_tickernoti_orientation_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
28954    EAPI void                      elm_tickernoti_label_set (Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
28955    EAPI const char               *elm_tickernoti_label_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
28956    EAPI void                      elm_tickernoti_icon_set (Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
28957    EAPI Evas_Object              *elm_tickernoti_icon_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
28958    EAPI void                      elm_tickernoti_button_set (Evas_Object *obj, Evas_Object *button) EINA_ARG_NONNULL(1);
28959    EAPI Evas_Object              *elm_tickernoti_button_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
28960    /* ############################################################################### */
28961    /*
28962     * Parts which can be used with elm_object_text_part_set() and
28963     * elm_object_text_part_get():
28964     *
28965     * @li NULL/"default" - Operates on tickernoti content-text
28966     *
28967     * Parts which can be used with elm_object_content_part_set(),
28968     * elm_object_content_part_get() and elm_object_content_part_unset():
28969     *
28970     * @li "icon" - Operates on tickernoti's icon
28971     * @li "button" - Operates on tickernoti's button
28972     *
28973     * smart callbacks called:
28974     * @li "clicked" - emitted when tickernoti is clicked, except at the
28975     * swallow/button region, if any.
28976     * @li "hide" - emitted when the tickernoti is completely hidden. In case of
28977     * any hide animation, this signal is emitted after the animation.
28978     */
28979
28980    /* colorpalette */
28981    typedef struct _Colorpalette_Color Elm_Colorpalette_Color;
28982
28983    struct _Colorpalette_Color
28984      {
28985         unsigned int r, g, b;
28986      };
28987
28988    EAPI Evas_Object *elm_colorpalette_add(Evas_Object *parent);
28989    EAPI void         elm_colorpalette_color_set(Evas_Object *obj, int color_num, Elm_Colorpalette_Color *color);
28990    EAPI void         elm_colorpalette_row_column_set(Evas_Object *obj, int row, int col);
28991    /* smart callbacks called:
28992     * "clicked" - when image clicked
28993     */
28994
28995    /* editfield */
28996    EAPI Evas_Object *elm_editfield_add(Evas_Object *parent);
28997    EAPI void         elm_editfield_label_set(Evas_Object *obj, const char *label);
28998    EAPI const char  *elm_editfield_label_get(Evas_Object *obj);
28999    EAPI void         elm_editfield_guide_text_set(Evas_Object *obj, const char *text);
29000    EAPI const char  *elm_editfield_guide_text_get(Evas_Object *obj);
29001    EAPI Evas_Object *elm_editfield_entry_get(Evas_Object *obj);
29002 //   EAPI Evas_Object *elm_editfield_clear_button_show(Evas_Object *obj, Eina_Bool show);
29003    EAPI void         elm_editfield_right_icon_set(Evas_Object *obj, Evas_Object *icon);
29004    EAPI Evas_Object *elm_editfield_right_icon_get(Evas_Object *obj);
29005    EAPI void         elm_editfield_left_icon_set(Evas_Object *obj, Evas_Object *icon);
29006    EAPI Evas_Object *elm_editfield_left_icon_get(Evas_Object *obj);
29007    EAPI void         elm_editfield_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line);
29008    EAPI Eina_Bool    elm_editfield_entry_single_line_get(Evas_Object *obj);
29009    EAPI void         elm_editfield_eraser_set(Evas_Object *obj, Eina_Bool visible);
29010    EAPI Eina_Bool    elm_editfield_eraser_get(Evas_Object *obj);
29011    /* smart callbacks called:
29012     * "clicked" - when an editfield is clicked
29013     * "unfocused" - when an editfield is unfocused
29014     */
29015
29016
29017    /* Sliding Drawer */
29018    typedef enum _Elm_SlidingDrawer_Pos
29019      {
29020         ELM_SLIDINGDRAWER_BOTTOM,
29021         ELM_SLIDINGDRAWER_LEFT,
29022         ELM_SLIDINGDRAWER_RIGHT,
29023         ELM_SLIDINGDRAWER_TOP
29024      } Elm_SlidingDrawer_Pos;
29025
29026    typedef struct _Elm_SlidingDrawer_Drag_Value
29027      {
29028         double x, y;
29029      } Elm_SlidingDrawer_Drag_Value;
29030
29031    EINA_DEPRECATED EAPI Evas_Object *elm_slidingdrawer_add(Evas_Object *parent);
29032    EINA_DEPRECATED EAPI void         elm_slidingdrawer_content_set (Evas_Object *obj, Evas_Object *content);
29033    EINA_DEPRECATED EAPI Evas_Object *elm_slidingdrawer_content_unset(Evas_Object *obj);
29034    EINA_DEPRECATED EAPI void         elm_slidingdrawer_pos_set(Evas_Object *obj, Elm_SlidingDrawer_Pos pos);
29035    EINA_DEPRECATED EAPI void         elm_slidingdrawer_max_drag_value_set(Evas_Object *obj, double dw,  double dh);
29036    EINA_DEPRECATED EAPI void         elm_slidingdrawer_drag_value_set(Evas_Object *obj, double dx, double dy);
29037
29038    /* multibuttonentry */
29039    typedef struct _Multibuttonentry_Item Elm_Multibuttonentry_Item;
29040    typedef Eina_Bool (*Elm_Multibuttonentry_Item_Verify_Callback) (Evas_Object *obj, const char *item_label, void *item_data, void *data);
29041    EAPI Evas_Object               *elm_multibuttonentry_add(Evas_Object *parent);
29042    EAPI const char                *elm_multibuttonentry_label_get(const Evas_Object *obj);
29043    EAPI void                       elm_multibuttonentry_label_set(Evas_Object *obj, const char *label);
29044    EAPI Evas_Object               *elm_multibuttonentry_entry_get(const Evas_Object *obj);
29045    EAPI const char *               elm_multibuttonentry_guide_text_get(const Evas_Object *obj);
29046    EAPI void                       elm_multibuttonentry_guide_text_set(Evas_Object *obj, const char *guidetext);
29047    EAPI int                        elm_multibuttonentry_contracted_state_get(const Evas_Object *obj);
29048    EAPI void                       elm_multibuttonentry_contracted_state_set(Evas_Object *obj, int contracted);
29049    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_add_start(Evas_Object *obj, const char *label, void *data);
29050    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_add_end(Evas_Object *obj, const char *label, void *data);
29051    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_add_before(Evas_Object *obj, const char *label, Elm_Multibuttonentry_Item *before, void *data);
29052    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_add_after(Evas_Object *obj, const char *label, Elm_Multibuttonentry_Item *after, void *data);
29053    EAPI const Eina_List           *elm_multibuttonentry_items_get(const Evas_Object *obj);
29054    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_first_get(const Evas_Object *obj);
29055    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_last_get(const Evas_Object *obj);
29056    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_selected_get(const Evas_Object *obj);
29057    EAPI void                       elm_multibuttonentry_item_selected_set(Elm_Multibuttonentry_Item *item);
29058    EAPI void                       elm_multibuttonentry_item_unselect_all(Evas_Object *obj);
29059    EAPI void                       elm_multibuttonentry_item_del(Elm_Multibuttonentry_Item *item);
29060    EAPI void                       elm_multibuttonentry_items_del(Evas_Object *obj);
29061    EAPI const char                *elm_multibuttonentry_item_label_get(const Elm_Multibuttonentry_Item *item);
29062    EAPI void                       elm_multibuttonentry_item_label_set(Elm_Multibuttonentry_Item *item, const char *str);
29063    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_prev(Elm_Multibuttonentry_Item *item);
29064    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_next(Elm_Multibuttonentry_Item *item);
29065    EAPI void                      *elm_multibuttonentry_item_data_get(const Elm_Multibuttonentry_Item *item);
29066    EAPI void                       elm_multibuttonentry_item_data_set(Elm_Multibuttonentry_Item *item, void *data);
29067    EAPI void                       elm_multibuttonentry_item_verify_callback_set(Evas_Object *obj, Elm_Multibuttonentry_Item_Verify_Callback func, void *data);
29068    /* smart callback called:
29069     * "selected" - This signal is emitted when the selected item of multibuttonentry is changed.
29070     * "added" - This signal is emitted when a new multibuttonentry item is added.
29071     * "deleted" - This signal is emitted when a multibuttonentry item is deleted.
29072     * "expanded" - This signal is emitted when a multibuttonentry is expanded.
29073     * "contracted" - This signal is emitted when a multibuttonentry is contracted.
29074     * "contracted,state,changed" - This signal is emitted when the contracted state of multibuttonentry is changed.
29075     * "item,selected" - This signal is emitted when the selected item of multibuttonentry is changed.
29076     * "item,added" - This signal is emitted when a new multibuttonentry item is added.
29077     * "item,deleted" - This signal is emitted when a multibuttonentry item is deleted.
29078     * "item,clicked" - This signal is emitted when a multibuttonentry item is clicked.
29079     * "clicked" - This signal is emitted when a multibuttonentry is clicked.
29080     * "unfocused" - This signal is emitted when a multibuttonentry is unfocused.
29081     */
29082    /* available styles:
29083     * default
29084     */
29085
29086    /* stackedicon */
29087    typedef struct _Stackedicon_Item Elm_Stackedicon_Item;
29088    EAPI Evas_Object          *elm_stackedicon_add(Evas_Object *parent);
29089    EAPI Elm_Stackedicon_Item *elm_stackedicon_item_append(Evas_Object *obj, const char *path);
29090    EAPI Elm_Stackedicon_Item *elm_stackedicon_item_prepend(Evas_Object *obj, const char *path);
29091    EAPI void                  elm_stackedicon_item_del(Elm_Stackedicon_Item *it);
29092    EAPI Eina_List            *elm_stackedicon_item_list_get(Evas_Object *obj);
29093    /* smart callback called:
29094     * "expanded" - This signal is emitted when a stackedicon is expanded.
29095     * "clicked" - This signal is emitted when a stackedicon is clicked.
29096     */
29097    /* available styles:
29098     * default
29099     */
29100
29101    /* dialoguegroup */
29102    typedef struct _Dialogue_Item Dialogue_Item;
29103
29104    typedef enum _Elm_Dialoguegourp_Item_Style
29105      {
29106         ELM_DIALOGUEGROUP_ITEM_STYLE_DEFAULT = 0,
29107         ELM_DIALOGUEGROUP_ITEM_STYLE_EDITFIELD = (1 << 0),
29108         ELM_DIALOGUEGROUP_ITEM_STYLE_EDITFIELD_WITH_TITLE = (1 << 1),
29109         ELM_DIALOGUEGROUP_ITEM_STYLE_EDIT_TITLE = (1 << 2),
29110         ELM_DIALOGUEGROUP_ITEM_STYLE_HIDDEN = (1 << 3),
29111         ELM_DIALOGUEGROUP_ITEM_STYLE_DATAVIEW = (1 << 4),
29112         ELM_DIALOGUEGROUP_ITEM_STYLE_NO_BG = (1 << 5),
29113         ELM_DIALOGUEGROUP_ITEM_STYLE_SUB = (1 << 6),
29114         ELM_DIALOGUEGROUP_ITEM_STYLE_EDIT = (1 << 7),
29115         ELM_DIALOGUEGROUP_ITEM_STYLE_EDIT_MERGE = (1 << 8),
29116         ELM_DIALOGUEGROUP_ITEM_STYLE_LAST = (1 << 9)
29117      } Elm_Dialoguegroup_Item_Style;
29118
29119    EINA_DEPRECATED EAPI Evas_Object   *elm_dialoguegroup_add(Evas_Object *parent);
29120    EINA_DEPRECATED EAPI Dialogue_Item *elm_dialoguegroup_append(Evas_Object *obj, Evas_Object *subobj, Elm_Dialoguegroup_Item_Style style);
29121    EINA_DEPRECATED EAPI Dialogue_Item *elm_dialoguegroup_prepend(Evas_Object *obj, Evas_Object *subobj, Elm_Dialoguegroup_Item_Style style);
29122    EINA_DEPRECATED EAPI Dialogue_Item *elm_dialoguegroup_insert_after(Evas_Object *obj, Evas_Object *subobj, Dialogue_Item *after, Elm_Dialoguegroup_Item_Style style);
29123    EINA_DEPRECATED EAPI Dialogue_Item *elm_dialoguegroup_insert_before(Evas_Object *obj, Evas_Object *subobj, Dialogue_Item *before, Elm_Dialoguegroup_Item_Style style);
29124    EINA_DEPRECATED EAPI void           elm_dialoguegroup_remove(Dialogue_Item *item);
29125    EINA_DEPRECATED EAPI void           elm_dialoguegroup_remove_all(Evas_Object *obj);
29126    EINA_DEPRECATED EAPI void           elm_dialoguegroup_title_set(Evas_Object *obj, const char *title);
29127    EINA_DEPRECATED EAPI const char    *elm_dialoguegroup_title_get(Evas_Object *obj);
29128    EINA_DEPRECATED EAPI void           elm_dialoguegroup_press_effect_set(Dialogue_Item *item, Eina_Bool press);
29129    EINA_DEPRECATED EAPI Eina_Bool      elm_dialoguegroup_press_effect_get(Dialogue_Item *item);
29130    EINA_DEPRECATED EAPI Evas_Object   *elm_dialoguegroup_item_content_get(Dialogue_Item *item);
29131    EINA_DEPRECATED EAPI void           elm_dialoguegroup_item_style_set(Dialogue_Item *item, Elm_Dialoguegroup_Item_Style style);
29132    EINA_DEPRECATED EAPI Elm_Dialoguegroup_Item_Style    elm_dialoguegroup_item_style_get(Dialogue_Item *item);
29133    EINA_DEPRECATED EAPI void           elm_dialoguegroup_item_disabled_set(Dialogue_Item *item, Eina_Bool disabled);
29134    EINA_DEPRECATED EAPI Eina_Bool      elm_dialoguegroup_item_disabled_get(Dialogue_Item *item);
29135
29136    /* Dayselector */
29137    typedef enum
29138      {
29139         ELM_DAYSELECTOR_SUN,
29140         ELM_DAYSELECTOR_MON,
29141         ELM_DAYSELECTOR_TUE,
29142         ELM_DAYSELECTOR_WED,
29143         ELM_DAYSELECTOR_THU,
29144         ELM_DAYSELECTOR_FRI,
29145         ELM_DAYSELECTOR_SAT
29146      } Elm_DaySelector_Day;
29147
29148    EAPI Evas_Object *elm_dayselector_add(Evas_Object *parent);
29149    EAPI Eina_Bool    elm_dayselector_check_state_get(Evas_Object *obj, Elm_DaySelector_Day day);
29150    EAPI void         elm_dayselector_check_state_set(Evas_Object *obj, Elm_DaySelector_Day day, Eina_Bool checked);
29151
29152    /* Image Slider */
29153    typedef struct _Imageslider_Item Elm_Imageslider_Item;
29154    typedef void (*Elm_Imageslider_Cb)(void *data, Evas_Object *obj, void *event_info);
29155    EAPI Evas_Object           *elm_imageslider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
29156    EAPI Elm_Imageslider_Item  *elm_imageslider_item_append(Evas_Object *obj, const char *photo_file, Elm_Imageslider_Cb func, void *data) EINA_ARG_NONNULL(1);
29157    EAPI Elm_Imageslider_Item  *elm_imageslider_item_append_relative(Evas_Object *obj, const char *photo_file, Elm_Imageslider_Cb func, unsigned int index, void *data) EINA_ARG_NONNULL(1);
29158    EAPI Elm_Imageslider_Item  *elm_imageslider_item_prepend(Evas_Object *obj, const char *photo_file, Elm_Imageslider_Cb func, void *data) EINA_ARG_NONNULL(1);
29159    EAPI void                   elm_imageslider_item_del(Elm_Imageslider_Item *it) EINA_ARG_NONNULL(1);
29160    EAPI Elm_Imageslider_Item  *elm_imageslider_selected_item_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
29161    EAPI Eina_Bool              elm_imageslider_item_selected_get(Elm_Imageslider_Item *it) EINA_ARG_NONNULL(1);
29162    EAPI void                   elm_imageslider_item_selected_set(Elm_Imageslider_Item *it) EINA_ARG_NONNULL(1);
29163    EAPI const char            *elm_imageslider_item_photo_file_get(Elm_Imageslider_Item *it) EINA_ARG_NONNULL(1);
29164    EAPI Elm_Imageslider_Item  *elm_imageslider_item_prev(Elm_Imageslider_Item *it) EINA_ARG_NONNULL(1);
29165    EAPI Elm_Imageslider_Item  *elm_imageslider_item_next(Elm_Imageslider_Item *it) EINA_ARG_NONNULL(1);
29166    EAPI void                   elm_imageslider_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
29167    EAPI void                   elm_imageslider_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
29168    EAPI void                   elm_imageslider_item_photo_file_set(Elm_Imageslider_Item *it, const char *photo_file) EINA_ARG_NONNULL(1,2);
29169    EAPI void                   elm_imageslider_item_update(Elm_Imageslider_Item *it) EINA_ARG_NONNULL(1);
29170 #ifdef __cplusplus
29171 }
29172 #endif
29173
29174 #endif