Misc documentation changes
[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_EMAP_DEF@ ELM_EMAP
316 @ELM_DEBUG_DEF@ ELM_DEBUG
317 @ELM_ALLOCA_H_DEF@ ELM_ALLOCA_H
318 @ELM_LIBINTL_H_DEF@ ELM_LIBINTL_H
319
320 /* Standard headers for standard system calls etc. */
321 #include <stdio.h>
322 #include <stdlib.h>
323 #include <unistd.h>
324 #include <string.h>
325 #include <sys/types.h>
326 #include <sys/stat.h>
327 #include <sys/time.h>
328 #include <sys/param.h>
329 #include <dlfcn.h>
330 #include <math.h>
331 #include <fnmatch.h>
332 #include <limits.h>
333 #include <ctype.h>
334 #include <time.h>
335 #include <dirent.h>
336 #include <pwd.h>
337 #include <errno.h>
338
339 #ifdef ELM_UNIX
340 # include <locale.h>
341 # ifdef ELM_LIBINTL_H
342 #  include <libintl.h>
343 # endif
344 # include <signal.h>
345 # include <grp.h>
346 # include <glob.h>
347 #endif
348
349 #ifdef ELM_ALLOCA_H
350 # include <alloca.h>
351 #endif
352
353 #if defined (ELM_WIN32) || defined (ELM_WINCE)
354 # include <malloc.h>
355 # ifndef alloca
356 #  define alloca _alloca
357 # endif
358 #endif
359
360
361 /* EFL headers */
362 #include <Eina.h>
363 #include <Eet.h>
364 #include <Evas.h>
365 #include <Evas_GL.h>
366 #include <Ecore.h>
367 #include <Ecore_Evas.h>
368 #include <Ecore_File.h>
369 #include <Ecore_IMF.h>
370 #include <Edje.h>
371
372 #ifdef ELM_EDBUS
373 # include <E_DBus.h>
374 #endif
375
376 #ifdef ELM_EFREET
377 # include <Efreet.h>
378 # include <Efreet_Mime.h>
379 # include <Efreet_Trash.h>
380 #endif
381
382 #ifdef ELM_ETHUMB
383 # include <Ethumb_Client.h>
384 #endif
385
386 #ifdef ELM_EMAP
387 # include <EMap.h>
388 #endif
389
390 #ifdef EAPI
391 # undef EAPI
392 #endif
393
394 #ifdef _WIN32
395 # ifdef ELEMENTARY_BUILD
396 #  ifdef DLL_EXPORT
397 #   define EAPI __declspec(dllexport)
398 #  else
399 #   define EAPI
400 #  endif /* ! DLL_EXPORT */
401 # else
402 #  define EAPI __declspec(dllimport)
403 # endif /* ! EFL_EVAS_BUILD */
404 #else
405 # ifdef __GNUC__
406 #  if __GNUC__ >= 4
407 #   define EAPI __attribute__ ((visibility("default")))
408 #  else
409 #   define EAPI
410 #  endif
411 # else
412 #  define EAPI
413 # endif
414 #endif /* ! _WIN32 */
415
416
417 /* allow usage from c++ */
418 #ifdef __cplusplus
419 extern "C" {
420 #endif
421
422 #define ELM_VERSION_MAJOR @VMAJ@
423 #define ELM_VERSION_MINOR @VMIN@
424
425    typedef struct _Elm_Version
426      {
427         int major;
428         int minor;
429         int micro;
430         int revision;
431      } Elm_Version;
432
433    EAPI extern Elm_Version *elm_version;
434
435 /* handy macros */
436 #define ELM_RECTS_INTERSECT(x, y, w, h, xx, yy, ww, hh) (((x) < ((xx) + (ww))) && ((y) < ((yy) + (hh))) && (((x) + (w)) > (xx)) && (((y) + (h)) > (yy)))
437 #define ELM_PI 3.14159265358979323846
438
439    /**
440     * @defgroup General General
441     *
442     * @brief General Elementary API. Functions that don't relate to
443     * Elementary objects specifically.
444     *
445     * Here are documented functions which init/shutdown the library,
446     * that apply to generic Elementary objects, that deal with
447     * configuration, et cetera.
448     *
449     * @ref general_functions_example_page "This" example contemplates
450     * some of these functions.
451     */
452
453    /**
454     * @addtogroup General
455     * @{
456     */
457
458   /**
459    * Defines couple of standard Evas_Object layers to be used
460    * with evas_object_layer_set().
461    *
462    * @note whenever extending with new values, try to keep some padding
463    *       to siblings so there is room for further extensions.
464    */
465   typedef enum _Elm_Object_Layer
466     {
467        ELM_OBJECT_LAYER_BACKGROUND = EVAS_LAYER_MIN + 64, /**< where to place backgrounds */
468        ELM_OBJECT_LAYER_DEFAULT = 0, /**< Evas_Object default layer (and thus for Elementary) */
469        ELM_OBJECT_LAYER_FOCUS = EVAS_LAYER_MAX - 128, /**< where focus object visualization is */
470        ELM_OBJECT_LAYER_TOOLTIP = EVAS_LAYER_MAX - 64, /**< where to show tooltips */
471        ELM_OBJECT_LAYER_CURSOR = EVAS_LAYER_MAX - 32, /**< where to show cursors */
472        ELM_OBJECT_LAYER_LAST /**< last layer known by Elementary */
473     } Elm_Object_Layer;
474
475 /**************************************************************************/
476    EAPI extern int ELM_ECORE_EVENT_ETHUMB_CONNECT;
477
478    /**
479     * Emitted when any Elementary's policy value is changed.
480     */
481    EAPI extern int ELM_EVENT_POLICY_CHANGED;
482
483    /**
484     * @typedef Elm_Event_Policy_Changed
485     *
486     * Data on the event when an Elementary policy has changed
487     */
488     typedef struct _Elm_Event_Policy_Changed Elm_Event_Policy_Changed;
489
490    /**
491     * @struct _Elm_Event_Policy_Changed
492     *
493     * Data on the event when an Elementary policy has changed
494     */
495     struct _Elm_Event_Policy_Changed
496      {
497         unsigned int policy; /**< the policy identifier */
498         int          new_value; /**< value the policy had before the change */
499         int          old_value; /**< new value the policy got */
500     };
501
502    /**
503     * Policy identifiers.
504     */
505     typedef enum _Elm_Policy
506     {
507         ELM_POLICY_QUIT, /**< under which circumstances the application
508                           * should quit automatically. @see
509                           * Elm_Policy_Quit.
510                           */
511         ELM_POLICY_LAST
512     } Elm_Policy; /**< Elementary policy identifiers/groups enumeration.  @see elm_policy_set()
513  */
514
515    typedef enum _Elm_Policy_Quit
516      {
517         ELM_POLICY_QUIT_NONE = 0, /**< never quit the application
518                                    * automatically */
519         ELM_POLICY_QUIT_LAST_WINDOW_CLOSED /**< quit when the
520                                             * application's last
521                                             * window is closed */
522      } Elm_Policy_Quit; /**< Possible values for the #ELM_POLICY_QUIT policy */
523
524    typedef enum _Elm_Focus_Direction
525      {
526         ELM_FOCUS_PREVIOUS,
527         ELM_FOCUS_NEXT
528      } Elm_Focus_Direction;
529
530    typedef enum _Elm_Text_Format
531      {
532         ELM_TEXT_FORMAT_PLAIN_UTF8,
533         ELM_TEXT_FORMAT_MARKUP_UTF8
534      } Elm_Text_Format;
535
536    /**
537     * Line wrapping types.
538     */
539    typedef enum _Elm_Wrap_Type
540      {
541         ELM_WRAP_NONE = 0, /**< No wrap - value is zero */
542         ELM_WRAP_CHAR, /**< Char wrap - wrap between characters */
543         ELM_WRAP_WORD, /**< Word wrap - wrap in allowed wrapping points (as defined in the unicode standard) */
544         ELM_WRAP_MIXED, /**< Mixed wrap - Word wrap, and if that fails, char wrap. */
545         ELM_WRAP_LAST
546      } Elm_Wrap_Type;
547
548    typedef enum
549      {
550         ELM_INPUT_PANEL_LAYOUT_NORMAL,          /**< Default layout */
551         ELM_INPUT_PANEL_LAYOUT_NUMBER,          /**< Number layout */
552         ELM_INPUT_PANEL_LAYOUT_EMAIL,           /**< Email layout */
553         ELM_INPUT_PANEL_LAYOUT_URL,             /**< URL layout */
554         ELM_INPUT_PANEL_LAYOUT_PHONENUMBER,     /**< Phone Number layout */
555         ELM_INPUT_PANEL_LAYOUT_IP,              /**< IP layout */
556         ELM_INPUT_PANEL_LAYOUT_MONTH,           /**< Month layout */
557         ELM_INPUT_PANEL_LAYOUT_NUMBERONLY,      /**< Number Only layout */
558         ELM_INPUT_PANEL_LAYOUT_INVALID
559      } Elm_Input_Panel_Layout;
560
561    typedef enum
562      {
563         ELM_AUTOCAPITAL_TYPE_NONE,
564         ELM_AUTOCAPITAL_TYPE_WORD,
565         ELM_AUTOCAPITAL_TYPE_SENTENCE,
566         ELM_AUTOCAPITAL_TYPE_ALLCHARACTER,
567      } Elm_Autocapital_Type;
568
569    /**
570     * @typedef Elm_Object_Item
571     * An Elementary Object item handle.
572     * @ingroup General
573     */
574    typedef struct _Elm_Object_Item Elm_Object_Item;
575
576
577    /**
578     * Called back when a widget's tooltip is activated and needs content.
579     * @param data user-data given to elm_object_tooltip_content_cb_set()
580     * @param obj owner widget.
581     */
582    typedef Evas_Object *(*Elm_Tooltip_Content_Cb) (void *data, Evas_Object *obj);
583
584    /**
585     * Called back when a widget's item tooltip is activated and needs content.
586     * @param data user-data given to elm_object_tooltip_content_cb_set()
587     * @param obj owner widget.
588     * @param item context dependent item. As an example, if tooltip was
589     *        set on Elm_List_Item, then it is of this type.
590     */
591    typedef Evas_Object *(*Elm_Tooltip_Item_Content_Cb) (void *data, Evas_Object *obj, void *item);
592
593    typedef Eina_Bool (*Elm_Event_Cb) (void *data, Evas_Object *obj, Evas_Object *src, Evas_Callback_Type type, void *event_info);
594
595 #ifndef ELM_LIB_QUICKLAUNCH
596 #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 */
597 #else
598 #define ELM_MAIN() int main(int argc, char **argv) {return elm_quicklaunch_fallback(argc, argv);} /**< macro to be used after the elm_main() function */
599 #endif
600
601 /**************************************************************************/
602    /* General calls */
603
604    /**
605     * Initialize Elementary
606     *
607     * @param[in] argc System's argument count value
608     * @param[in] argv System's pointer to array of argument strings
609     * @return The init counter value.
610     *
611     * This function initializes Elementary and increments a counter of
612     * the number of calls to it. It returns the new counter's value.
613     *
614     * @warning This call is exported only for use by the @c ELM_MAIN()
615     * macro. There is no need to use this if you use this macro (which
616     * is highly advisable). An elm_main() should contain the entry
617     * point code for your application, having the same prototype as
618     * elm_init(), and @b not being static (putting the @c EAPI symbol
619     * in front of its type declaration is advisable). The @c
620     * ELM_MAIN() call should be placed just after it.
621     *
622     * Example:
623     * @dontinclude bg_example_01.c
624     * @skip static void
625     * @until ELM_MAIN
626     *
627     * See the full @ref bg_example_01_c "example".
628     *
629     * @see elm_shutdown().
630     * @ingroup General
631     */
632    EAPI int          elm_init(int argc, char **argv);
633
634    /**
635     * Shut down Elementary
636     *
637     * @return The init counter value.
638     *
639     * This should be called at the end of your application, just
640     * before it ceases to do any more processing. This will clean up
641     * any permanent resources your application may have allocated via
642     * Elementary that would otherwise persist.
643     *
644     * @see elm_init() for an example
645     *
646     * @ingroup General
647     */
648    EAPI int          elm_shutdown(void);
649
650    /**
651     * Run Elementary's main loop
652     *
653     * This call should be issued just after all initialization is
654     * completed. This function will not return until elm_exit() is
655     * called. It will keep looping, running the main
656     * (event/processing) loop for Elementary.
657     *
658     * @see elm_init() for an example
659     *
660     * @ingroup General
661     */
662    EAPI void         elm_run(void);
663
664    /**
665     * Exit Elementary's main loop
666     *
667     * If this call is issued, it will flag the main loop to cease
668     * processing and return back to its parent function (usually your
669     * elm_main() function).
670     *
671     * @see elm_init() for an example. There, just after a request to
672     * close the window comes, the main loop will be left.
673     *
674     * @note By using the appropriate #ELM_POLICY_QUIT on your Elementary
675     * applications, you'll be able to get this function called automatically for you.
676     *
677     * @ingroup General
678     */
679    EAPI void         elm_exit(void);
680
681    /**
682     * Provide information in order to make Elementary determine the @b
683     * run time location of the software in question, so other data files
684     * such as images, sound files, executable utilities, libraries,
685     * modules and locale files can be found.
686     *
687     * @param mainfunc This is your application's main function name,
688     *        whose binary's location is to be found. Providing @c NULL
689     *        will make Elementary not to use it
690     * @param dom This will be used as the application's "domain", in the
691     *        form of a prefix to any environment variables that may
692     *        override prefix detection and the directory name, inside the
693     *        standard share or data directories, where the software's
694     *        data files will be looked for.
695     * @param checkfile This is an (optional) magic file's path to check
696     *        for existence (and it must be located in the data directory,
697     *        under the share directory provided above). Its presence will
698     *        help determine the prefix found was correct. Pass @c NULL if
699     *        the check is not to be done.
700     *
701     * This function allows one to re-locate the application somewhere
702     * else after compilation, if the developer wishes for easier
703     * distribution of pre-compiled binaries.
704     *
705     * The prefix system is designed to locate where the given software is
706     * installed (under a common path prefix) at run time and then report
707     * specific locations of this prefix and common directories inside
708     * this prefix like the binary, library, data and locale directories,
709     * through the @c elm_app_*_get() family of functions.
710     *
711     * Call elm_app_info_set() early on before you change working
712     * directory or anything about @c argv[0], so it gets accurate
713     * information.
714     *
715     * It will then try and trace back which file @p mainfunc comes from,
716     * if provided, to determine the application's prefix directory.
717     *
718     * The @p dom parameter provides a string prefix to prepend before
719     * environment variables, allowing a fallback to @b specific
720     * environment variables to locate the software. You would most
721     * probably provide a lowercase string there, because it will also
722     * serve as directory domain, explained next. For environment
723     * variables purposes, this string is made uppercase. For example if
724     * @c "myapp" is provided as the prefix, then the program would expect
725     * @c "MYAPP_PREFIX" as a master environment variable to specify the
726     * exact install prefix for the software, or more specific environment
727     * variables like @c "MYAPP_BIN_DIR", @c "MYAPP_LIB_DIR", @c
728     * "MYAPP_DATA_DIR" and @c "MYAPP_LOCALE_DIR", which could be set by
729     * the user or scripts before launching. If not provided (@c NULL),
730     * environment variables will not be used to override compiled-in
731     * defaults or auto detections.
732     *
733     * The @p dom string also provides a subdirectory inside the system
734     * shared data directory for data files. For example, if the system
735     * directory is @c /usr/local/share, then this directory name is
736     * appended, creating @c /usr/local/share/myapp, if it @p was @c
737     * "myapp". It is expected that the application installs data files in
738     * this directory.
739     *
740     * The @p checkfile is a file name or path of something inside the
741     * share or data directory to be used to test that the prefix
742     * detection worked. For example, your app will install a wallpaper
743     * image as @c /usr/local/share/myapp/images/wallpaper.jpg and so to
744     * check that this worked, provide @c "images/wallpaper.jpg" as the @p
745     * checkfile string.
746     *
747     * @see elm_app_compile_bin_dir_set()
748     * @see elm_app_compile_lib_dir_set()
749     * @see elm_app_compile_data_dir_set()
750     * @see elm_app_compile_locale_set()
751     * @see elm_app_prefix_dir_get()
752     * @see elm_app_bin_dir_get()
753     * @see elm_app_lib_dir_get()
754     * @see elm_app_data_dir_get()
755     * @see elm_app_locale_dir_get()
756     */
757    EAPI void         elm_app_info_set(void *mainfunc, const char *dom, const char *checkfile);
758
759    /**
760     * Provide information on the @b fallback application's binaries
761     * directory, in scenarios where they get overriden by
762     * elm_app_info_set().
763     *
764     * @param dir The path to the default binaries directory (compile time
765     * one)
766     *
767     * @note Elementary will as well use this path to determine actual
768     * names of binaries' directory paths, maybe changing it to be @c
769     * something/local/bin instead of @c something/bin, only, for
770     * example.
771     *
772     * @warning You should call this function @b before
773     * elm_app_info_set().
774     */
775    EAPI void         elm_app_compile_bin_dir_set(const char *dir);
776
777    /**
778     * Provide information on the @b fallback application's libraries
779     * directory, on scenarios where they get overriden by
780     * elm_app_info_set().
781     *
782     * @param dir The path to the default libraries directory (compile
783     * time one)
784     *
785     * @note Elementary will as well use this path to determine actual
786     * names of libraries' directory paths, maybe changing it to be @c
787     * something/lib32 or @c something/lib64 instead of @c something/lib,
788     * only, for example.
789     *
790     * @warning You should call this function @b before
791     * elm_app_info_set().
792     */
793    EAPI void         elm_app_compile_lib_dir_set(const char *dir);
794
795    /**
796     * Provide information on the @b fallback application's data
797     * directory, on scenarios where they get overriden by
798     * elm_app_info_set().
799     *
800     * @param dir The path to the default data directory (compile time
801     * one)
802     *
803     * @note Elementary will as well use this path to determine actual
804     * names of data directory paths, maybe changing it to be @c
805     * something/local/share instead of @c something/share, only, for
806     * example.
807     *
808     * @warning You should call this function @b before
809     * elm_app_info_set().
810     */
811    EAPI void         elm_app_compile_data_dir_set(const char *dir);
812
813    /**
814     * Provide information on the @b fallback application's locale
815     * directory, on scenarios where they get overriden by
816     * elm_app_info_set().
817     *
818     * @param dir The path to the default locale directory (compile time
819     * one)
820     *
821     * @warning You should call this function @b before
822     * elm_app_info_set().
823     */
824    EAPI void         elm_app_compile_locale_set(const char *dir);
825
826    /**
827     * Retrieve the application's run time prefix directory, as set by
828     * elm_app_info_set() and the way (environment) the application was
829     * run from.
830     *
831     * @return The directory prefix the application is actually using.
832     */
833    EAPI const char  *elm_app_prefix_dir_get(void);
834
835    /**
836     * Retrieve the application's run time binaries prefix directory, as
837     * set by elm_app_info_set() and the way (environment) the application
838     * was run from.
839     *
840     * @return The binaries directory prefix the application is actually
841     * using.
842     */
843    EAPI const char  *elm_app_bin_dir_get(void);
844
845    /**
846     * Retrieve the application's run time libraries prefix directory, as
847     * set by elm_app_info_set() and the way (environment) the application
848     * was run from.
849     *
850     * @return The libraries directory prefix the application is actually
851     * using.
852     */
853    EAPI const char  *elm_app_lib_dir_get(void);
854
855    /**
856     * Retrieve the application's run time data prefix directory, as
857     * set by elm_app_info_set() and the way (environment) the application
858     * was run from.
859     *
860     * @return The data directory prefix the application is actually
861     * using.
862     */
863    EAPI const char  *elm_app_data_dir_get(void);
864
865    /**
866     * Retrieve the application's run time locale prefix directory, as
867     * set by elm_app_info_set() and the way (environment) the application
868     * was run from.
869     *
870     * @return The locale directory prefix the application is actually
871     * using.
872     */
873    EAPI const char  *elm_app_locale_dir_get(void);
874
875    EAPI void         elm_quicklaunch_mode_set(Eina_Bool ql_on);
876    EAPI Eina_Bool    elm_quicklaunch_mode_get(void);
877    EAPI int          elm_quicklaunch_init(int argc, char **argv);
878    EAPI int          elm_quicklaunch_sub_init(int argc, char **argv);
879    EAPI int          elm_quicklaunch_sub_shutdown(void);
880    EAPI int          elm_quicklaunch_shutdown(void);
881    EAPI void         elm_quicklaunch_seed(void);
882    EAPI Eina_Bool    elm_quicklaunch_prepare(int argc, char **argv);
883    EAPI Eina_Bool    elm_quicklaunch_fork(int argc, char **argv, char *cwd, void (postfork_func) (void *data), void *postfork_data);
884    EAPI void         elm_quicklaunch_cleanup(void);
885    EAPI int          elm_quicklaunch_fallback(int argc, char **argv);
886    EAPI char        *elm_quicklaunch_exe_path_get(const char *exe);
887
888    EAPI Eina_Bool    elm_need_efreet(void);
889    EAPI Eina_Bool    elm_need_e_dbus(void);
890    EAPI Eina_Bool    elm_need_ethumb(void);
891
892    /**
893     * Set a new policy's value (for a given policy group/identifier).
894     *
895     * @param policy policy identifier, as in @ref Elm_Policy.
896     * @param value policy value, which depends on the identifier
897     *
898     * @return @c EINA_TRUE on success or @c EINA_FALSE, on error.
899     *
900     * Elementary policies define applications' behavior,
901     * somehow. These behaviors are divided in policy groups (see
902     * #Elm_Policy enumeration). This call will emit the Ecore event
903     * #ELM_EVENT_POLICY_CHANGED, which can be hooked at with
904     * handlers. An #Elm_Event_Policy_Changed struct will be passed,
905     * then.
906     *
907     * @note Currently, we have only one policy identifier/group
908     * (#ELM_POLICY_QUIT), which has two possible values.
909     *
910     * @ingroup General
911     */
912    EAPI Eina_Bool    elm_policy_set(unsigned int policy, int value);
913
914    /**
915     * Gets the policy value for given policy identifier.
916     *
917     * @param policy policy identifier, as in #Elm_Policy.
918     * @return The currently set policy value, for that
919     * identifier. Will be @c 0 if @p policy passed is invalid.
920     *
921     * @ingroup General
922     */
923    EAPI int          elm_policy_get(unsigned int policy);
924
925    /**
926     * Change the language of the current application
927     *
928     * The @p lang passed must be the full name of the locale to use, for
929     * example "en_US.utf8" or "es_ES@euro".
930     *
931     * Changing language with this function will make Elementary run through
932     * all its widgets, translating strings set with
933     * elm_object_domain_translatable_text_part_set(). This way, an entire
934     * UI can have its language changed without having to restart the program.
935     *
936     * For more complex cases, like having formatted strings that need
937     * translation, widgets will also emit a "language,changed" signal that
938     * the user can listen to to manually translate the text.
939     *
940     * @param lang Language to set, must be the full name of the locale
941     *
942     * @ingroup General
943     */
944    EAPI void         elm_language_set(const char *lang);
945
946    /**
947     * Set a label of an object
948     *
949     * @param obj The Elementary object
950     * @param part The text part name to set (NULL for the default label)
951     * @param label The new text of the label
952     *
953     * @note Elementary objects may have many labels (e.g. Action Slider)
954     *
955     * @ingroup General
956     */
957    EAPI void         elm_object_text_part_set(Evas_Object *obj, const char *part, const char *label);
958
959 #define elm_object_text_set(obj, label) elm_object_text_part_set((obj), NULL, (label))
960
961    /**
962     * Get a label of an object
963     *
964     * @param obj The Elementary object
965     * @param part The text part name to get (NULL for the default label)
966     * @return text of the label or NULL for any error
967     *
968     * @note Elementary objects may have many labels (e.g. Action Slider)
969     *
970     * @ingroup General
971     */
972    EAPI const char  *elm_object_text_part_get(const Evas_Object *obj, const char *part);
973
974 #define elm_object_text_get(obj) elm_object_text_part_get((obj), NULL)
975
976    /**
977     * Set a content of an object
978     *
979     * @param obj The Elementary object
980     * @param part The content part name to set (NULL for the default content)
981     * @param content The new content of the object
982     *
983     * @note Elementary objects may have many contents
984     *
985     * @ingroup General
986     */
987    EAPI void elm_object_content_part_set(Evas_Object *obj, const char *part, Evas_Object *content);
988
989 #define elm_object_content_set(obj, content) elm_object_content_part_set((obj), NULL, (content))
990
991    /**
992     * Get a content of an object
993     *
994     * @param obj The Elementary object
995     * @param item The content part name to get (NULL for the default content)
996     * @return content of the object or NULL for any error
997     *
998     * @note Elementary objects may have many contents
999     *
1000     * @ingroup General
1001     */
1002    EAPI Evas_Object *elm_object_content_part_get(const Evas_Object *obj, const char *part);
1003
1004 #define elm_object_content_get(obj) elm_object_content_part_get((obj), NULL)
1005
1006    /**
1007     * Unset a content of an object
1008     *
1009     * @param obj The Elementary object
1010     * @param item The content part name to unset (NULL for the default content)
1011     *
1012     * @note Elementary objects may have many contents
1013     *
1014     * @ingroup General
1015     */
1016    EAPI Evas_Object *elm_object_content_part_unset(Evas_Object *obj, const char *part);
1017
1018 #define elm_object_content_unset(obj) elm_object_content_part_unset((obj), NULL)
1019
1020    /**
1021     * Set a content of an object item
1022     *
1023     * @param it The Elementary object item
1024     * @param part The content part name to set (NULL for the default content)
1025     * @param content The new content of the object item
1026     *
1027     * @note Elementary object items may have many contents
1028     *
1029     * @ingroup General
1030     */
1031    EAPI void elm_object_item_content_part_set(Elm_Object_Item *it, const char *part, Evas_Object *content);
1032
1033 #define elm_object_item_content_set(it, content) elm_object_item_content_part_set((it), NULL, (content))
1034
1035    /**
1036     * Get a content of an object item
1037     *
1038     * @param it The Elementary object item
1039     * @param part The content part name to unset (NULL for the default content)
1040     * @return content of the object item or NULL for any error
1041     *
1042     * @note Elementary object items may have many contents
1043     *
1044     * @ingroup General
1045     */
1046    EAPI Evas_Object *elm_object_item_content_part_get(const Elm_Object_Item *it, const char *part);
1047
1048 #define elm_object_item_content_get(it) elm_object_item_content_part_get((it), NULL)
1049
1050    /**
1051     * Unset a content of an object item
1052     *
1053     * @param it The Elementary object item
1054     * @param part The content part name to unset (NULL for the default content)
1055     *
1056     * @note Elementary object items may have many contents
1057     *
1058     * @ingroup General
1059     */
1060    EAPI Evas_Object *elm_object_item_content_part_unset(Elm_Object_Item *it, const char *part);
1061
1062 #define elm_object_item_content_unset(it, content) elm_object_item_content_part_unset((it), (content))
1063
1064    /**
1065     * Set a label of an object item
1066     *
1067     * @param it The Elementary object item
1068     * @param part The text part name to set (NULL for the default label)
1069     * @param label The new text of the label
1070     *
1071     * @note Elementary object items may have many labels
1072     *
1073     * @ingroup General
1074     */
1075    EAPI void elm_object_item_text_part_set(Elm_Object_Item *it, const char *part, const char *label);
1076
1077 #define elm_object_item_text_set(it, label) elm_object_item_text_part_set((it), NULL, (label))
1078
1079    /**
1080     * Get a label of an object item
1081     *
1082     * @param it The Elementary object item
1083     * @param part The text part name to get (NULL for the default label)
1084     * @return text of the label or NULL for any error
1085     *
1086     * @note Elementary object items may have many labels
1087     *
1088     * @ingroup General
1089     */
1090    EAPI const char *elm_object_item_text_part_get(const Elm_Object_Item *it, const char *part);
1091
1092 #define elm_object_item_text_get(it) elm_object_item_text_part_get((it), NULL)
1093
1094    /**
1095     * Set the text to read out when in accessibility mode
1096     *
1097     * @param obj The object which is to be described
1098     * @param txt The text that describes the widget to people with poor or no vision
1099     *
1100     * @ingroup General
1101     */
1102    EAPI void elm_object_access_info_set(Evas_Object *obj, const char *txt);
1103
1104    /**
1105     * Set the text to read out when in accessibility mode
1106     *
1107     * @param it The object item which is to be described
1108     * @param txt The text that describes the widget to people with poor or no vision
1109     *
1110     * @ingroup General
1111     */
1112    EAPI void elm_object_item_access_info_set(Elm_Object_Item *it, const char *txt);
1113
1114    /**
1115     * Get the data associated with an object item
1116     * @param it The object item
1117     * @return The data associated with @p it
1118     *
1119     * @ingroup General
1120     */
1121    EAPI void *elm_object_item_data_get(const Elm_Object_Item *it);
1122
1123    /**
1124     * Set the data associated with an object item
1125     * @param it The object item
1126     * @param data The data to be associated with @p it
1127     *
1128     * @ingroup General
1129     */
1130    EAPI void elm_object_item_data_set(Elm_Object_Item *it, void *data);
1131
1132    /**
1133     * Send a signal to the edje object of the widget item.
1134     *
1135     * This function sends a signal to the edje object of the obj item. An
1136     * edje program can respond to a signal by specifying matching
1137     * 'signal' and 'source' fields.
1138     *
1139     * @param it The Elementary object item
1140     * @param emission The signal's name.
1141     * @param source The signal's source.
1142     * @ingroup General
1143     */
1144    EAPI void             elm_object_item_signal_emit(Elm_Object_Item *it, const char *emission, const char *source) EINA_ARG_NONNULL(1);
1145
1146    /**
1147     * @}
1148     */
1149
1150    /**
1151     * @defgroup Caches Caches
1152     *
1153     * These are functions which let one fine-tune some cache values for
1154     * Elementary applications, thus allowing for performance adjustments.
1155     *
1156     * @{
1157     */
1158
1159    /**
1160     * @brief Flush all caches.
1161     *
1162     * Frees all data that was in cache and is not currently being used to reduce
1163     * memory usage. This frees Edje's, Evas' and Eet's cache. This is equivalent
1164     * to calling all of the following functions:
1165     * @li edje_file_cache_flush()
1166     * @li edje_collection_cache_flush()
1167     * @li eet_clearcache()
1168     * @li evas_image_cache_flush()
1169     * @li evas_font_cache_flush()
1170     * @li evas_render_dump()
1171     * @note Evas caches are flushed for every canvas associated with a window.
1172     *
1173     * @ingroup Caches
1174     */
1175    EAPI void         elm_all_flush(void);
1176
1177    /**
1178     * Get the configured cache flush interval time
1179     *
1180     * This gets the globally configured cache flush interval time, in
1181     * ticks
1182     *
1183     * @return The cache flush interval time
1184     * @ingroup Caches
1185     *
1186     * @see elm_all_flush()
1187     */
1188    EAPI int          elm_cache_flush_interval_get(void);
1189
1190    /**
1191     * Set the configured cache flush interval time
1192     *
1193     * This sets the globally configured cache flush interval time, in ticks
1194     *
1195     * @param size The cache flush interval time
1196     * @ingroup Caches
1197     *
1198     * @see elm_all_flush()
1199     */
1200    EAPI void         elm_cache_flush_interval_set(int size);
1201
1202    /**
1203     * Set the configured cache flush interval time for all applications on the
1204     * display
1205     *
1206     * This sets the globally configured cache flush interval time -- in ticks
1207     * -- for all applications on the display.
1208     *
1209     * @param size The cache flush interval time
1210     * @ingroup Caches
1211     */
1212    EAPI void         elm_cache_flush_interval_all_set(int size);
1213
1214    /**
1215     * Get the configured cache flush enabled state
1216     *
1217     * This gets the globally configured cache flush state - if it is enabled
1218     * or not. When cache flushing is enabled, elementary will regularly
1219     * (see elm_cache_flush_interval_get() ) flush caches and dump data out of
1220     * memory and allow usage to re-seed caches and data in memory where it
1221     * can do so. An idle application will thus minimise its memory usage as
1222     * data will be freed from memory and not be re-loaded as it is idle and
1223     * not rendering or doing anything graphically right now.
1224     *
1225     * @return The cache flush state
1226     * @ingroup Caches
1227     *
1228     * @see elm_all_flush()
1229     */
1230    EAPI Eina_Bool    elm_cache_flush_enabled_get(void);
1231
1232    /**
1233     * Set the configured cache flush enabled state
1234     *
1235     * This sets the globally configured cache flush enabled state.
1236     *
1237     * @param size The cache flush enabled state
1238     * @ingroup Caches
1239     *
1240     * @see elm_all_flush()
1241     */
1242    EAPI void         elm_cache_flush_enabled_set(Eina_Bool enabled);
1243
1244    /**
1245     * Set the configured cache flush enabled state for all applications on the
1246     * display
1247     *
1248     * This sets the globally configured cache flush enabled state for all
1249     * applications on the display.
1250     *
1251     * @param size The cache flush enabled state
1252     * @ingroup Caches
1253     */
1254    EAPI void         elm_cache_flush_enabled_all_set(Eina_Bool enabled);
1255
1256    /**
1257     * Get the configured font cache size
1258     *
1259     * This gets the globally configured font cache size, in bytes.
1260     *
1261     * @return The font cache size
1262     * @ingroup Caches
1263     */
1264    EAPI int          elm_font_cache_get(void);
1265
1266    /**
1267     * Set the configured font cache size
1268     *
1269     * This sets the globally configured font cache size, in bytes
1270     *
1271     * @param size The font cache size
1272     * @ingroup Caches
1273     */
1274    EAPI void         elm_font_cache_set(int size);
1275
1276    /**
1277     * Set the configured font cache size for all applications on the
1278     * display
1279     *
1280     * This sets the globally configured font cache size -- in bytes
1281     * -- for all applications on the display.
1282     *
1283     * @param size The font cache size
1284     * @ingroup Caches
1285     */
1286    EAPI void         elm_font_cache_all_set(int size);
1287
1288    /**
1289     * Get the configured image cache size
1290     *
1291     * This gets the globally configured image cache size, in bytes
1292     *
1293     * @return The image cache size
1294     * @ingroup Caches
1295     */
1296    EAPI int          elm_image_cache_get(void);
1297
1298    /**
1299     * Set the configured image cache size
1300     *
1301     * This sets the globally configured image cache size, in bytes
1302     *
1303     * @param size The image cache size
1304     * @ingroup Caches
1305     */
1306    EAPI void         elm_image_cache_set(int size);
1307
1308    /**
1309     * Set the configured image cache size for all applications on the
1310     * display
1311     *
1312     * This sets the globally configured image cache size -- in bytes
1313     * -- for all applications on the display.
1314     *
1315     * @param size The image cache size
1316     * @ingroup Caches
1317     */
1318    EAPI void         elm_image_cache_all_set(int size);
1319
1320    /**
1321     * Get the configured edje file cache size.
1322     *
1323     * This gets the globally configured edje file cache size, in number
1324     * of files.
1325     *
1326     * @return The edje file cache size
1327     * @ingroup Caches
1328     */
1329    EAPI int          elm_edje_file_cache_get(void);
1330
1331    /**
1332     * Set the configured edje file cache size
1333     *
1334     * This sets the globally configured edje file cache size, in number
1335     * of files.
1336     *
1337     * @param size The edje file cache size
1338     * @ingroup Caches
1339     */
1340    EAPI void         elm_edje_file_cache_set(int size);
1341
1342    /**
1343     * Set the configured edje file cache size for all applications on the
1344     * display
1345     *
1346     * This sets the globally configured edje file cache size -- in number
1347     * of files -- for all applications on the display.
1348     *
1349     * @param size The edje file cache size
1350     * @ingroup Caches
1351     */
1352    EAPI void         elm_edje_file_cache_all_set(int size);
1353
1354    /**
1355     * Get the configured edje collections (groups) cache size.
1356     *
1357     * This gets the globally configured edje collections cache size, in
1358     * number of collections.
1359     *
1360     * @return The edje collections cache size
1361     * @ingroup Caches
1362     */
1363    EAPI int          elm_edje_collection_cache_get(void);
1364
1365    /**
1366     * Set the configured edje collections (groups) cache size
1367     *
1368     * This sets the globally configured edje collections cache size, in
1369     * number of collections.
1370     *
1371     * @param size The edje collections cache size
1372     * @ingroup Caches
1373     */
1374    EAPI void         elm_edje_collection_cache_set(int size);
1375
1376    /**
1377     * Set the configured edje collections (groups) cache size for all
1378     * applications on the display
1379     *
1380     * This sets the globally configured edje collections cache size -- in
1381     * number of collections -- for all applications on the display.
1382     *
1383     * @param size The edje collections cache size
1384     * @ingroup Caches
1385     */
1386    EAPI void         elm_edje_collection_cache_all_set(int size);
1387
1388    /**
1389     * @}
1390     */
1391
1392    /**
1393     * @defgroup Scaling Widget Scaling
1394     *
1395     * Different widgets can be scaled independently. These functions
1396     * allow you to manipulate this scaling on a per-widget basis. The
1397     * object and all its children get their scaling factors multiplied
1398     * by the scale factor set. This is multiplicative, in that if a
1399     * child also has a scale size set it is in turn multiplied by its
1400     * parent's scale size. @c 1.0 means “don't scale”, @c 2.0 is
1401     * double size, @c 0.5 is half, etc.
1402     *
1403     * @ref general_functions_example_page "This" example contemplates
1404     * some of these functions.
1405     */
1406
1407    /**
1408     * Set the scaling factor for a given Elementary object
1409     *
1410     * @param obj The Elementary to operate on
1411     * @param scale Scale factor (from @c 0.0 up, with @c 1.0 meaning
1412     * no scaling)
1413     *
1414     * @ingroup Scaling
1415     */
1416    EAPI void         elm_object_scale_set(Evas_Object *obj, double scale) EINA_ARG_NONNULL(1);
1417
1418    /**
1419     * Get the scaling factor for a given Elementary object
1420     *
1421     * @param obj The object
1422     * @return The scaling factor set by elm_object_scale_set()
1423     *
1424     * @ingroup Scaling
1425     */
1426    EAPI double       elm_object_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1427
1428    /**
1429     * @defgroup Password_last_show Password last input show
1430     *
1431     * Last show feature of password mode enables user to view
1432     * the last input entered for few seconds before masking it.
1433     * These functions allow to set this feature in password mode
1434     * of entry widget and also allow to manipulate the duration
1435     * for which the input has to be visible.
1436     *
1437     * @{
1438     */
1439
1440    /**
1441     * Get show last setting of password mode.
1442     *
1443     * This gets the show last input setting of password mode which might be
1444     * enabled or disabled.
1445     *
1446     * @return @c EINA_TRUE, if the last input show setting is enabled, @c EINA_FALSE
1447     *            if it's disabled.
1448     * @ingroup Password_last_show
1449     */
1450    EAPI Eina_Bool elm_password_show_last_get(void);
1451
1452    /**
1453     * Set show last setting in password mode.
1454     *
1455     * This enables or disables show last setting of password mode.
1456     *
1457     * @param password_show_last If EINA_TRUE enable's last input show in password mode.
1458     * @see elm_password_show_last_timeout_set()
1459     * @ingroup Password_last_show
1460     */
1461    EAPI void elm_password_show_last_set(Eina_Bool password_show_last);
1462
1463    /**
1464     * Get's the timeout value in last show password mode.
1465     *
1466     * This gets the time out value for which the last input entered in password
1467     * mode will be visible.
1468     *
1469     * @return The timeout value of last show password mode.
1470     * @ingroup Password_last_show
1471     */
1472    EAPI double elm_password_show_last_timeout_get(void);
1473
1474    /**
1475     * Set's the timeout value in last show password mode.
1476     *
1477     * This sets the time out value for which the last input entered in password
1478     * mode will be visible.
1479     *
1480     * @param password_show_last_timeout The timeout value.
1481     * @see elm_password_show_last_set()
1482     * @ingroup Password_last_show
1483     */
1484    EAPI void elm_password_show_last_timeout_set(double password_show_last_timeout);
1485
1486    /**
1487     * @}
1488     */
1489
1490    /**
1491     * @defgroup UI-Mirroring Selective Widget mirroring
1492     *
1493     * These functions allow you to set ui-mirroring on specific
1494     * widgets or the whole interface. Widgets can be in one of two
1495     * modes, automatic and manual.  Automatic means they'll be changed
1496     * according to the system mirroring mode and manual means only
1497     * explicit changes will matter. You are not supposed to change
1498     * mirroring state of a widget set to automatic, will mostly work,
1499     * but the behavior is not really defined.
1500     *
1501     * @{
1502     */
1503
1504    /**
1505     * Get the system mirrored mode. This determines the default mirrored mode
1506     * of widgets.
1507     *
1508     * @return EINA_TRUE if mirrored is set, EINA_FALSE otherwise
1509     */
1510    EAPI Eina_Bool    elm_object_mirrored_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1511
1512    /**
1513     * Set the system mirrored mode. This determines the default mirrored mode
1514     * of widgets.
1515     *
1516     * @param mirrored EINA_TRUE to set mirrored mode, EINA_FALSE to unset it.
1517     */
1518    EAPI void         elm_object_mirrored_set(Evas_Object *obj, Eina_Bool mirrored) EINA_ARG_NONNULL(1);
1519
1520    /**
1521     * Returns the widget's mirrored mode setting.
1522     *
1523     * @param obj The widget.
1524     * @return mirrored mode setting of the object.
1525     *
1526     **/
1527    EAPI Eina_Bool    elm_object_mirrored_automatic_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1528
1529    /**
1530     * Sets the widget's mirrored mode setting.
1531     * When widget in automatic mode, it follows the system mirrored mode set by
1532     * elm_mirrored_set().
1533     * @param obj The widget.
1534     * @param automatic EINA_TRUE for auto mirrored mode. EINA_FALSE for manual.
1535     */
1536    EAPI void         elm_object_mirrored_automatic_set(Evas_Object *obj, Eina_Bool automatic) EINA_ARG_NONNULL(1);
1537
1538    /**
1539     * @}
1540     */
1541
1542    /**
1543     * Set the style to use by a widget
1544     *
1545     * Sets the style name that will define the appearance of a widget. Styles
1546     * vary from widget to widget and may also be defined by other themes
1547     * by means of extensions and overlays.
1548     *
1549     * @param obj The Elementary widget to style
1550     * @param style The style name to use
1551     *
1552     * @see elm_theme_extension_add()
1553     * @see elm_theme_extension_del()
1554     * @see elm_theme_overlay_add()
1555     * @see elm_theme_overlay_del()
1556     *
1557     * @ingroup Styles
1558     */
1559    EAPI void         elm_object_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
1560    /**
1561     * Get the style used by the widget
1562     *
1563     * This gets the style being used for that widget. Note that the string
1564     * pointer is only valid as longas the object is valid and the style doesn't
1565     * change.
1566     *
1567     * @param obj The Elementary widget to query for its style
1568     * @return The style name used
1569     *
1570     * @see elm_object_style_set()
1571     *
1572     * @ingroup Styles
1573     */
1574    EAPI const char  *elm_object_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1575
1576    /**
1577     * @defgroup Styles Styles
1578     *
1579     * Widgets can have different styles of look. These generic API's
1580     * set styles of widgets, if they support them (and if the theme(s)
1581     * do).
1582     *
1583     * @ref general_functions_example_page "This" example contemplates
1584     * some of these functions.
1585     */
1586
1587    /**
1588     * Set the disabled state of an Elementary object.
1589     *
1590     * @param obj The Elementary object to operate on
1591     * @param disabled The state to put in in: @c EINA_TRUE for
1592     *        disabled, @c EINA_FALSE for enabled
1593     *
1594     * Elementary objects can be @b disabled, in which state they won't
1595     * receive input and, in general, will be themed differently from
1596     * their normal state, usually greyed out. Useful for contexts
1597     * where you don't want your users to interact with some of the
1598     * parts of you interface.
1599     *
1600     * This sets the state for the widget, either disabling it or
1601     * enabling it back.
1602     *
1603     * @ingroup Styles
1604     */
1605    EAPI void         elm_object_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
1606
1607    /**
1608     * Get the disabled state of an Elementary object.
1609     *
1610     * @param obj The Elementary object to operate on
1611     * @return @c EINA_TRUE, if the widget is disabled, @c EINA_FALSE
1612     *            if it's enabled (or on errors)
1613     *
1614     * This gets the state of the widget, which might be enabled or disabled.
1615     *
1616     * @ingroup Styles
1617     */
1618    EAPI Eina_Bool    elm_object_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1619
1620    /**
1621     * @defgroup WidgetNavigation Widget Tree Navigation.
1622     *
1623     * How to check if an Evas Object is an Elementary widget? How to
1624     * get the first elementary widget that is parent of the given
1625     * object?  These are all covered in widget tree navigation.
1626     *
1627     * @ref general_functions_example_page "This" example contemplates
1628     * some of these functions.
1629     */
1630
1631    /**
1632     * Check if the given Evas Object is an Elementary widget.
1633     *
1634     * @param obj the object to query.
1635     * @return @c EINA_TRUE if it is an elementary widget variant,
1636     *         @c EINA_FALSE otherwise
1637     * @ingroup WidgetNavigation
1638     */
1639    EAPI Eina_Bool    elm_object_widget_check(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1640
1641    /**
1642     * Get the first parent of the given object that is an Elementary
1643     * widget.
1644     *
1645     * @param obj the Elementary object to query parent from.
1646     * @return the parent object that is an Elementary widget, or @c
1647     *         NULL, if it was not found.
1648     *
1649     * Use this to query for an object's parent widget.
1650     *
1651     * @note Most of Elementary users wouldn't be mixing non-Elementary
1652     * smart objects in the objects tree of an application, as this is
1653     * an advanced usage of Elementary with Evas. So, except for the
1654     * application's window, which is the root of that tree, all other
1655     * objects would have valid Elementary widget parents.
1656     *
1657     * @ingroup WidgetNavigation
1658     */
1659    EAPI Evas_Object *elm_object_parent_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1660
1661    /**
1662     * Get the top level parent of an Elementary widget.
1663     *
1664     * @param obj The object to query.
1665     * @return The top level Elementary widget, or @c NULL if parent cannot be
1666     * found.
1667     * @ingroup WidgetNavigation
1668     */
1669    EAPI Evas_Object *elm_object_top_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1670
1671    /**
1672     * Get the string that represents this Elementary widget.
1673     *
1674     * @note Elementary is weird and exposes itself as a single
1675     *       Evas_Object_Smart_Class of type "elm_widget", so
1676     *       evas_object_type_get() always return that, making debug and
1677     *       language bindings hard. This function tries to mitigate this
1678     *       problem, but the solution is to change Elementary to use
1679     *       proper inheritance.
1680     *
1681     * @param obj the object to query.
1682     * @return Elementary widget name, or @c NULL if not a valid widget.
1683     * @ingroup WidgetNavigation
1684     */
1685    EAPI const char  *elm_object_widget_type_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1686
1687    /**
1688     * @defgroup Config Elementary Config
1689     *
1690     * Elementary configuration is formed by a set options bounded to a
1691     * given @ref Profile profile, like @ref Theme theme, @ref Fingers
1692     * "finger size", etc. These are functions with which one syncronizes
1693     * changes made to those values to the configuration storing files, de
1694     * facto. You most probably don't want to use the functions in this
1695     * group unlees you're writing an elementary configuration manager.
1696     *
1697     * @{
1698     */
1699    EAPI double       elm_scale_get(void);
1700    EAPI void         elm_scale_set(double scale);
1701    EAPI void         elm_scale_all_set(double scale);
1702
1703    /**
1704     * Save back Elementary's configuration, so that it will persist on
1705     * future sessions.
1706     *
1707     * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
1708     * @ingroup Config
1709     *
1710     * This function will take effect -- thus, do I/O -- immediately. Use
1711     * it when you want to apply all configuration changes at once. The
1712     * current configuration set will get saved onto the current profile
1713     * configuration file.
1714     *
1715     */
1716    EAPI Eina_Bool    elm_mirrored_get(void);
1717    EAPI void         elm_mirrored_set(Eina_Bool mirrored);
1718
1719    /**
1720     * Reload Elementary's configuration, bounded to current selected
1721     * profile.
1722     *
1723     * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
1724     * @ingroup Config
1725     *
1726     * Useful when you want to force reloading of configuration values for
1727     * a profile. If one removes user custom configuration directories,
1728     * for example, it will force a reload with system values insted.
1729     *
1730     */
1731    EAPI Eina_Bool    elm_config_save(void);
1732    EAPI void         elm_config_reload(void);
1733
1734    /**
1735     * @}
1736     */
1737
1738    /**
1739     * @defgroup Profile Elementary Profile
1740     *
1741     * Profiles are pre-set options that affect the whole look-and-feel of
1742     * Elementary-based applications. There are, for example, profiles
1743     * aimed at desktop computer applications and others aimed at mobile,
1744     * touchscreen-based ones. You most probably don't want to use the
1745     * functions in this group unlees you're writing an elementary
1746     * configuration manager.
1747     *
1748     * @{
1749     */
1750
1751    /**
1752     * Get Elementary's profile in use.
1753     *
1754     * This gets the global profile that is applied to all Elementary
1755     * applications.
1756     *
1757     * @return The profile's name
1758     * @ingroup Profile
1759     */
1760    EAPI const char  *elm_profile_current_get(void);
1761
1762    /**
1763     * Get an Elementary's profile directory path in the filesystem. One
1764     * may want to fetch a system profile's dir or an user one (fetched
1765     * inside $HOME).
1766     *
1767     * @param profile The profile's name
1768     * @param is_user Whether to lookup for an user profile (@c EINA_TRUE)
1769     *                or a system one (@c EINA_FALSE)
1770     * @return The profile's directory path.
1771     * @ingroup Profile
1772     *
1773     * @note You must free it with elm_profile_dir_free().
1774     */
1775    EAPI const char  *elm_profile_dir_get(const char *profile, Eina_Bool is_user);
1776
1777    /**
1778     * Free an Elementary's profile directory path, as returned by
1779     * elm_profile_dir_get().
1780     *
1781     * @param p_dir The profile's path
1782     * @ingroup Profile
1783     *
1784     */
1785    EAPI void         elm_profile_dir_free(const char *p_dir);
1786
1787    /**
1788     * Get Elementary's list of available profiles.
1789     *
1790     * @return The profiles list. List node data are the profile name
1791     *         strings.
1792     * @ingroup Profile
1793     *
1794     * @note One must free this list, after usage, with the function
1795     *       elm_profile_list_free().
1796     */
1797    EAPI Eina_List   *elm_profile_list_get(void);
1798
1799    /**
1800     * Free Elementary's list of available profiles.
1801     *
1802     * @param l The profiles list, as returned by elm_profile_list_get().
1803     * @ingroup Profile
1804     *
1805     */
1806    EAPI void         elm_profile_list_free(Eina_List *l);
1807
1808    /**
1809     * Set Elementary's profile.
1810     *
1811     * This sets the global profile that is applied to Elementary
1812     * applications. Just the process the call comes from will be
1813     * affected.
1814     *
1815     * @param profile The profile's name
1816     * @ingroup Profile
1817     *
1818     */
1819    EAPI void         elm_profile_set(const char *profile);
1820
1821    /**
1822     * Set Elementary's profile.
1823     *
1824     * This sets the global profile that is applied to all Elementary
1825     * applications. All running Elementary windows will be affected.
1826     *
1827     * @param profile The profile's name
1828     * @ingroup Profile
1829     *
1830     */
1831    EAPI void         elm_profile_all_set(const char *profile);
1832
1833    /**
1834     * @}
1835     */
1836
1837    /**
1838     * @defgroup Engine Elementary Engine
1839     *
1840     * These are functions setting and querying which rendering engine
1841     * Elementary will use for drawing its windows' pixels.
1842     *
1843     * The following are the available engines:
1844     * @li "software_x11"
1845     * @li "fb"
1846     * @li "directfb"
1847     * @li "software_16_x11"
1848     * @li "software_8_x11"
1849     * @li "xrender_x11"
1850     * @li "opengl_x11"
1851     * @li "software_gdi"
1852     * @li "software_16_wince_gdi"
1853     * @li "sdl"
1854     * @li "software_16_sdl"
1855     * @li "opengl_sdl"
1856     * @li "buffer"
1857     * @li "ews"
1858     *
1859     * @{
1860     */
1861
1862    /**
1863     * @brief Get Elementary's rendering engine in use.
1864     *
1865     * @return The rendering engine's name
1866     * @note there's no need to free the returned string, here.
1867     *
1868     * This gets the global rendering engine that is applied to all Elementary
1869     * applications.
1870     *
1871     * @see elm_engine_set()
1872     */
1873    EAPI const char  *elm_engine_current_get(void);
1874
1875    /**
1876     * @brief Set Elementary's rendering engine for use.
1877     *
1878     * @param engine The rendering engine's name
1879     *
1880     * This sets global rendering engine that is applied to all Elementary
1881     * applications. Note that it will take effect only to Elementary windows
1882     * created after this is called.
1883     *
1884     * @see elm_win_add()
1885     */
1886    EAPI void         elm_engine_set(const char *engine);
1887
1888    /**
1889     * @}
1890     */
1891
1892    /**
1893     * @defgroup Fonts Elementary Fonts
1894     *
1895     * These are functions dealing with font rendering, selection and the
1896     * like for Elementary applications. One might fetch which system
1897     * fonts are there to use and set custom fonts for individual classes
1898     * of UI items containing text (text classes).
1899     *
1900     * @{
1901     */
1902
1903   typedef struct _Elm_Text_Class
1904     {
1905        const char *name;
1906        const char *desc;
1907     } Elm_Text_Class;
1908
1909   typedef struct _Elm_Font_Overlay
1910     {
1911        const char     *text_class;
1912        const char     *font;
1913        Evas_Font_Size  size;
1914     } Elm_Font_Overlay;
1915
1916   typedef struct _Elm_Font_Properties
1917     {
1918        const char *name;
1919        Eina_List  *styles;
1920     } Elm_Font_Properties;
1921
1922    /**
1923     * Get Elementary's list of supported text classes.
1924     *
1925     * @return The text classes list, with @c Elm_Text_Class blobs as data.
1926     * @ingroup Fonts
1927     *
1928     * Release the list with elm_text_classes_list_free().
1929     */
1930    EAPI const Eina_List     *elm_text_classes_list_get(void);
1931
1932    /**
1933     * Free Elementary's list of supported text classes.
1934     *
1935     * @ingroup Fonts
1936     *
1937     * @see elm_text_classes_list_get().
1938     */
1939    EAPI void                 elm_text_classes_list_free(const Eina_List *list);
1940
1941    /**
1942     * Get Elementary's list of font overlays, set with
1943     * elm_font_overlay_set().
1944     *
1945     * @return The font overlays list, with @c Elm_Font_Overlay blobs as
1946     * data.
1947     *
1948     * @ingroup Fonts
1949     *
1950     * For each text class, one can set a <b>font overlay</b> for it,
1951     * overriding the default font properties for that class coming from
1952     * the theme in use. There is no need to free this list.
1953     *
1954     * @see elm_font_overlay_set() and elm_font_overlay_unset().
1955     */
1956    EAPI const Eina_List     *elm_font_overlay_list_get(void);
1957
1958    /**
1959     * Set a font overlay for a given Elementary text class.
1960     *
1961     * @param text_class Text class name
1962     * @param font Font name and style string
1963     * @param size Font size
1964     *
1965     * @ingroup Fonts
1966     *
1967     * @p font has to be in the format returned by
1968     * elm_font_fontconfig_name_get(). @see elm_font_overlay_list_get()
1969     * and elm_font_overlay_unset().
1970     */
1971    EAPI void                 elm_font_overlay_set(const char *text_class, const char *font, Evas_Font_Size size);
1972
1973    /**
1974     * Unset a font overlay for a given Elementary text class.
1975     *
1976     * @param text_class Text class name
1977     *
1978     * @ingroup Fonts
1979     *
1980     * This will bring back text elements belonging to text class
1981     * @p text_class back to their default font settings.
1982     */
1983    EAPI void                 elm_font_overlay_unset(const char *text_class);
1984
1985    /**
1986     * Apply the changes made with elm_font_overlay_set() and
1987     * elm_font_overlay_unset() on the current Elementary window.
1988     *
1989     * @ingroup Fonts
1990     *
1991     * This applies all font overlays set to all objects in the UI.
1992     */
1993    EAPI void                 elm_font_overlay_apply(void);
1994
1995    /**
1996     * Apply the changes made with elm_font_overlay_set() and
1997     * elm_font_overlay_unset() on all Elementary application windows.
1998     *
1999     * @ingroup Fonts
2000     *
2001     * This applies all font overlays set to all objects in the UI.
2002     */
2003    EAPI void                 elm_font_overlay_all_apply(void);
2004
2005    /**
2006     * Translate a font (family) name string in fontconfig's font names
2007     * syntax into an @c Elm_Font_Properties struct.
2008     *
2009     * @param font The font name and styles string
2010     * @return the font properties struct
2011     *
2012     * @ingroup Fonts
2013     *
2014     * @note The reverse translation can be achived with
2015     * elm_font_fontconfig_name_get(), for one style only (single font
2016     * instance, not family).
2017     */
2018    EAPI Elm_Font_Properties *elm_font_properties_get(const char *font) EINA_ARG_NONNULL(1);
2019
2020    /**
2021     * Free font properties return by elm_font_properties_get().
2022     *
2023     * @param efp the font properties struct
2024     *
2025     * @ingroup Fonts
2026     */
2027    EAPI void                 elm_font_properties_free(Elm_Font_Properties *efp) EINA_ARG_NONNULL(1);
2028
2029    /**
2030     * Translate a font name, bound to a style, into fontconfig's font names
2031     * syntax.
2032     *
2033     * @param name The font (family) name
2034     * @param style The given style (may be @c NULL)
2035     *
2036     * @return the font name and style string
2037     *
2038     * @ingroup Fonts
2039     *
2040     * @note The reverse translation can be achived with
2041     * elm_font_properties_get(), for one style only (single font
2042     * instance, not family).
2043     */
2044    EAPI const char          *elm_font_fontconfig_name_get(const char *name, const char *style) EINA_ARG_NONNULL(1);
2045
2046    /**
2047     * Free the font string return by elm_font_fontconfig_name_get().
2048     *
2049     * @param efp the font properties struct
2050     *
2051     * @ingroup Fonts
2052     */
2053    EAPI void                 elm_font_fontconfig_name_free(const char *name) EINA_ARG_NONNULL(1);
2054
2055    /**
2056     * Create a font hash table of available system fonts.
2057     *
2058     * One must call it with @p list being the return value of
2059     * evas_font_available_list(). The hash will be indexed by font
2060     * (family) names, being its values @c Elm_Font_Properties blobs.
2061     *
2062     * @param list The list of available system fonts, as returned by
2063     * evas_font_available_list().
2064     * @return the font hash.
2065     *
2066     * @ingroup Fonts
2067     *
2068     * @note The user is supposed to get it populated at least with 3
2069     * default font families (Sans, Serif, Monospace), which should be
2070     * present on most systems.
2071     */
2072    EAPI Eina_Hash           *elm_font_available_hash_add(Eina_List *list);
2073
2074    /**
2075     * Free the hash return by elm_font_available_hash_add().
2076     *
2077     * @param hash the hash to be freed.
2078     *
2079     * @ingroup Fonts
2080     */
2081    EAPI void                 elm_font_available_hash_del(Eina_Hash *hash);
2082
2083    /**
2084     * @}
2085     */
2086
2087    /**
2088     * @defgroup Fingers Fingers
2089     *
2090     * Elementary is designed to be finger-friendly for touchscreens,
2091     * and so in addition to scaling for display resolution, it can
2092     * also scale based on finger "resolution" (or size). You can then
2093     * customize the granularity of the areas meant to receive clicks
2094     * on touchscreens.
2095     *
2096     * Different profiles may have pre-set values for finger sizes.
2097     *
2098     * @ref general_functions_example_page "This" example contemplates
2099     * some of these functions.
2100     *
2101     * @{
2102     */
2103
2104    /**
2105     * Get the configured "finger size"
2106     *
2107     * @return The finger size
2108     *
2109     * This gets the globally configured finger size, <b>in pixels</b>
2110     *
2111     * @ingroup Fingers
2112     */
2113    EAPI Evas_Coord       elm_finger_size_get(void);
2114
2115    /**
2116     * Set the configured finger size
2117     *
2118     * This sets the globally configured finger size in pixels
2119     *
2120     * @param size The finger size
2121     * @ingroup Fingers
2122     */
2123    EAPI void             elm_finger_size_set(Evas_Coord size);
2124
2125    /**
2126     * Set the configured finger size for all applications on the display
2127     *
2128     * This sets the globally configured finger size in pixels for all
2129     * applications on the display
2130     *
2131     * @param size The finger size
2132     * @ingroup Fingers
2133     */
2134    EAPI void             elm_finger_size_all_set(Evas_Coord size);
2135
2136    /**
2137     * @}
2138     */
2139
2140    /**
2141     * @defgroup Focus Focus
2142     *
2143     * An Elementary application has, at all times, one (and only one)
2144     * @b focused object. This is what determines where the input
2145     * events go to within the application's window. Also, focused
2146     * objects can be decorated differently, in order to signal to the
2147     * user where the input is, at a given moment.
2148     *
2149     * Elementary applications also have the concept of <b>focus
2150     * chain</b>: one can cycle through all the windows' focusable
2151     * objects by input (tab key) or programmatically. The default
2152     * focus chain for an application is the one define by the order in
2153     * which the widgets where added in code. One will cycle through
2154     * top level widgets, and, for each one containg sub-objects, cycle
2155     * through them all, before returning to the level
2156     * above. Elementary also allows one to set @b custom focus chains
2157     * for their applications.
2158     *
2159     * Besides the focused decoration a widget may exhibit, when it
2160     * gets focus, Elementary has a @b global focus highlight object
2161     * that can be enabled for a window. If one chooses to do so, this
2162     * extra highlight effect will surround the current focused object,
2163     * too.
2164     *
2165     * @note Some Elementary widgets are @b unfocusable, after
2166     * creation, by their very nature: they are not meant to be
2167     * interacted with input events, but are there just for visual
2168     * purposes.
2169     *
2170     * @ref general_functions_example_page "This" example contemplates
2171     * some of these functions.
2172     */
2173
2174    /**
2175     * Get the enable status of the focus highlight
2176     *
2177     * This gets whether the highlight on focused objects is enabled or not
2178     * @ingroup Focus
2179     */
2180    EAPI Eina_Bool        elm_focus_highlight_enabled_get(void);
2181
2182    /**
2183     * Set the enable status of the focus highlight
2184     *
2185     * Set whether to show or not the highlight on focused objects
2186     * @param enable Enable highlight if EINA_TRUE, disable otherwise
2187     * @ingroup Focus
2188     */
2189    EAPI void             elm_focus_highlight_enabled_set(Eina_Bool enable);
2190
2191    /**
2192     * Get the enable status of the highlight animation
2193     *
2194     * Get whether the focus highlight, if enabled, will animate its switch from
2195     * one object to the next
2196     * @ingroup Focus
2197     */
2198    EAPI Eina_Bool        elm_focus_highlight_animate_get(void);
2199
2200    /**
2201     * Set the enable status of the highlight animation
2202     *
2203     * Set whether the focus highlight, if enabled, will animate its switch from
2204     * one object to the next
2205     * @param animate Enable animation if EINA_TRUE, disable otherwise
2206     * @ingroup Focus
2207     */
2208    EAPI void             elm_focus_highlight_animate_set(Eina_Bool animate);
2209
2210    /**
2211     * Get the whether an Elementary object has the focus or not.
2212     *
2213     * @param obj The Elementary object to get the information from
2214     * @return @c EINA_TRUE, if the object is focused, @c EINA_FALSE if
2215     *            not (and on errors).
2216     *
2217     * @see elm_object_focus_set()
2218     *
2219     * @ingroup Focus
2220     */
2221    EAPI Eina_Bool        elm_object_focus_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2222
2223    /**
2224     * Make a given Elementary object the focused one.
2225     *
2226     * @param obj The Elementary object to make focused.
2227     *
2228     * @note This object, if it can handle focus, will take the focus
2229     * away from the one who had it previously and will, for now on, be
2230     * the one receiving input events.
2231     *
2232     * @see elm_object_focus_get()
2233     *
2234     * @ingroup Focus
2235     */
2236    EAPI void             elm_object_focus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2237
2238    /**
2239     * Remove the focus from an Elementary object
2240     *
2241     * @param obj The Elementary to take focus from
2242     *
2243     * This removes the focus from @p obj, passing it back to the
2244     * previous element in the focus chain list.
2245     *
2246     * @see elm_object_focus() and elm_object_focus_custom_chain_get()
2247     *
2248     * @ingroup Focus
2249     */
2250    EAPI void             elm_object_unfocus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2251
2252    /**
2253     * Set the ability for an Element object to be focused
2254     *
2255     * @param obj The Elementary object to operate on
2256     * @param enable @c EINA_TRUE if the object can be focused, @c
2257     *        EINA_FALSE if not (and on errors)
2258     *
2259     * This sets whether the object @p obj is able to take focus or
2260     * not. Unfocusable objects do nothing when programmatically
2261     * focused, being the nearest focusable parent object the one
2262     * really getting focus. Also, when they receive mouse input, they
2263     * will get the event, but not take away the focus from where it
2264     * was previously.
2265     *
2266     * @ingroup Focus
2267     */
2268    EAPI void             elm_object_focus_allow_set(Evas_Object *obj, Eina_Bool enable) EINA_ARG_NONNULL(1);
2269
2270    /**
2271     * Get whether an Elementary object is focusable or not
2272     *
2273     * @param obj The Elementary object to operate on
2274     * @return @c EINA_TRUE if the object is allowed to be focused, @c
2275     *             EINA_FALSE if not (and on errors)
2276     *
2277     * @note Objects which are meant to be interacted with by input
2278     * events are created able to be focused, by default. All the
2279     * others are not.
2280     *
2281     * @ingroup Focus
2282     */
2283    EAPI Eina_Bool        elm_object_focus_allow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2284
2285    /**
2286     * Set custom focus chain.
2287     *
2288     * This function overwrites any previous custom focus chain within
2289     * the list of objects. The previous list will be deleted and this list
2290     * will be managed by elementary. After it is set, don't modify it.
2291     *
2292     * @note On focus cycle, only will be evaluated children of this container.
2293     *
2294     * @param obj The container object
2295     * @param objs Chain of objects to pass focus
2296     * @ingroup Focus
2297     */
2298    EAPI void             elm_object_focus_custom_chain_set(Evas_Object *obj, Eina_List *objs) EINA_ARG_NONNULL(1);
2299
2300    /**
2301     * Unset a custom focus chain on a given Elementary widget
2302     *
2303     * @param obj The container object to remove focus chain from
2304     *
2305     * Any focus chain previously set on @p obj (for its child objects)
2306     * is removed entirely after this call.
2307     *
2308     * @ingroup Focus
2309     */
2310    EAPI void             elm_object_focus_custom_chain_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
2311
2312    /**
2313     * Get custom focus chain
2314     *
2315     * @param obj The container object
2316     * @ingroup Focus
2317     */
2318    EAPI const Eina_List *elm_object_focus_custom_chain_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2319
2320    /**
2321     * Append object to custom focus chain.
2322     *
2323     * @note If relative_child equal to NULL or not in custom chain, the object
2324     * will be added in end.
2325     *
2326     * @note On focus cycle, only will be evaluated children of this container.
2327     *
2328     * @param obj The container object
2329     * @param child The child to be added in custom chain
2330     * @param relative_child The relative object to position the child
2331     * @ingroup Focus
2332     */
2333    EAPI void             elm_object_focus_custom_chain_append(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2334
2335    /**
2336     * Prepend object to custom focus chain.
2337     *
2338     * @note If relative_child equal to NULL or not in custom chain, the object
2339     * will be added in begin.
2340     *
2341     * @note On focus cycle, only will be evaluated children of this container.
2342     *
2343     * @param obj The container object
2344     * @param child The child to be added in custom chain
2345     * @param relative_child The relative object to position the child
2346     * @ingroup Focus
2347     */
2348    EAPI void             elm_object_focus_custom_chain_prepend(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2349
2350    /**
2351     * Give focus to next object in object tree.
2352     *
2353     * Give focus to next object in focus chain of one object sub-tree.
2354     * If the last object of chain already have focus, the focus will go to the
2355     * first object of chain.
2356     *
2357     * @param obj The object root of sub-tree
2358     * @param dir Direction to cycle the focus
2359     *
2360     * @ingroup Focus
2361     */
2362    EAPI void             elm_object_focus_cycle(Evas_Object *obj, Elm_Focus_Direction dir) EINA_ARG_NONNULL(1);
2363
2364    /**
2365     * Give focus to near object in one direction.
2366     *
2367     * Give focus to near object in direction of one object.
2368     * If none focusable object in given direction, the focus will not change.
2369     *
2370     * @param obj The reference object
2371     * @param x Horizontal component of direction to focus
2372     * @param y Vertical component of direction to focus
2373     *
2374     * @ingroup Focus
2375     */
2376    EAPI void             elm_object_focus_direction_go(Evas_Object *obj, int x, int y) EINA_ARG_NONNULL(1);
2377
2378    /**
2379     * Make the elementary object and its children to be unfocusable
2380     * (or focusable).
2381     *
2382     * @param obj The Elementary object to operate on
2383     * @param tree_unfocusable @c EINA_TRUE for unfocusable,
2384     *        @c EINA_FALSE for focusable.
2385     *
2386     * This sets whether the object @p obj and its children objects
2387     * are able to take focus or not. If the tree is set as unfocusable,
2388     * newest focused object which is not in this tree will get focus.
2389     * This API can be helpful for an object to be deleted.
2390     * When an object will be deleted soon, it and its children may not
2391     * want to get focus (by focus reverting or by other focus controls).
2392     * Then, just use this API before deleting.
2393     *
2394     * @see elm_object_tree_unfocusable_get()
2395     *
2396     * @ingroup Focus
2397     */
2398    EAPI void             elm_object_tree_unfocusable_set(Evas_Object *obj, Eina_Bool tree_unfocusable); EINA_ARG_NONNULL(1);
2399
2400    /**
2401     * Get whether an Elementary object and its children are unfocusable or not.
2402     *
2403     * @param obj The Elementary object to get the information from
2404     * @return @c EINA_TRUE, if the tree is unfocussable,
2405     *         @c EINA_FALSE if not (and on errors).
2406     *
2407     * @see elm_object_tree_unfocusable_set()
2408     *
2409     * @ingroup Focus
2410     */
2411    EAPI Eina_Bool        elm_object_tree_unfocusable_get(const Evas_Object *obj); EINA_ARG_NONNULL(1);
2412
2413    /**
2414     * @defgroup Scrolling Scrolling
2415     *
2416     * These are functions setting how scrollable views in Elementary
2417     * widgets should behave on user interaction.
2418     *
2419     * @{
2420     */
2421
2422    /**
2423     * Get whether scrollers should bounce when they reach their
2424     * viewport's edge during a scroll.
2425     *
2426     * @return the thumb scroll bouncing state
2427     *
2428     * This is the default behavior for touch screens, in general.
2429     * @ingroup Scrolling
2430     */
2431    EAPI Eina_Bool        elm_scroll_bounce_enabled_get(void);
2432
2433    /**
2434     * Set whether scrollers should bounce when they reach their
2435     * viewport's edge during a scroll.
2436     *
2437     * @param enabled the thumb scroll bouncing state
2438     *
2439     * @see elm_thumbscroll_bounce_enabled_get()
2440     * @ingroup Scrolling
2441     */
2442    EAPI void             elm_scroll_bounce_enabled_set(Eina_Bool enabled);
2443
2444    /**
2445     * Set whether scrollers should bounce when they reach their
2446     * viewport's edge during a scroll, for all Elementary application
2447     * windows.
2448     *
2449     * @param enabled the thumb scroll bouncing state
2450     *
2451     * @see elm_thumbscroll_bounce_enabled_get()
2452     * @ingroup Scrolling
2453     */
2454    EAPI void             elm_scroll_bounce_enabled_all_set(Eina_Bool enabled);
2455
2456    /**
2457     * Get the amount of inertia a scroller will impose at bounce
2458     * animations.
2459     *
2460     * @return the thumb scroll bounce friction
2461     *
2462     * @ingroup Scrolling
2463     */
2464    EAPI double           elm_scroll_bounce_friction_get(void);
2465
2466    /**
2467     * Set the amount of inertia a scroller will impose at bounce
2468     * animations.
2469     *
2470     * @param friction the thumb scroll bounce friction
2471     *
2472     * @see elm_thumbscroll_bounce_friction_get()
2473     * @ingroup Scrolling
2474     */
2475    EAPI void             elm_scroll_bounce_friction_set(double friction);
2476
2477    /**
2478     * Set the amount of inertia a scroller will impose at bounce
2479     * animations, for all Elementary application windows.
2480     *
2481     * @param friction the thumb scroll bounce friction
2482     *
2483     * @see elm_thumbscroll_bounce_friction_get()
2484     * @ingroup Scrolling
2485     */
2486    EAPI void             elm_scroll_bounce_friction_all_set(double friction);
2487
2488    /**
2489     * Get the amount of inertia a <b>paged</b> scroller will impose at
2490     * page fitting animations.
2491     *
2492     * @return the page scroll friction
2493     *
2494     * @ingroup Scrolling
2495     */
2496    EAPI double           elm_scroll_page_scroll_friction_get(void);
2497
2498    /**
2499     * Set the amount of inertia a <b>paged</b> scroller will impose at
2500     * page fitting animations.
2501     *
2502     * @param friction the page scroll friction
2503     *
2504     * @see elm_thumbscroll_page_scroll_friction_get()
2505     * @ingroup Scrolling
2506     */
2507    EAPI void             elm_scroll_page_scroll_friction_set(double friction);
2508
2509    /**
2510     * Set the amount of inertia a <b>paged</b> scroller will impose at
2511     * page fitting animations, for all Elementary application windows.
2512     *
2513     * @param friction the page scroll friction
2514     *
2515     * @see elm_thumbscroll_page_scroll_friction_get()
2516     * @ingroup Scrolling
2517     */
2518    EAPI void             elm_scroll_page_scroll_friction_all_set(double friction);
2519
2520    /**
2521     * Get the amount of inertia a scroller will impose at region bring
2522     * animations.
2523     *
2524     * @return the bring in scroll friction
2525     *
2526     * @ingroup Scrolling
2527     */
2528    EAPI double           elm_scroll_bring_in_scroll_friction_get(void);
2529
2530    /**
2531     * Set the amount of inertia a scroller will impose at region bring
2532     * animations.
2533     *
2534     * @param friction the bring in scroll friction
2535     *
2536     * @see elm_thumbscroll_bring_in_scroll_friction_get()
2537     * @ingroup Scrolling
2538     */
2539    EAPI void             elm_scroll_bring_in_scroll_friction_set(double friction);
2540
2541    /**
2542     * Set the amount of inertia a scroller will impose at region bring
2543     * animations, for all Elementary application windows.
2544     *
2545     * @param friction the bring in scroll friction
2546     *
2547     * @see elm_thumbscroll_bring_in_scroll_friction_get()
2548     * @ingroup Scrolling
2549     */
2550    EAPI void             elm_scroll_bring_in_scroll_friction_all_set(double friction);
2551
2552    /**
2553     * Get the amount of inertia scrollers will impose at animations
2554     * triggered by Elementary widgets' zooming API.
2555     *
2556     * @return the zoom friction
2557     *
2558     * @ingroup Scrolling
2559     */
2560    EAPI double           elm_scroll_zoom_friction_get(void);
2561
2562    /**
2563     * Set the amount of inertia scrollers will impose at animations
2564     * triggered by Elementary widgets' zooming API.
2565     *
2566     * @param friction the zoom friction
2567     *
2568     * @see elm_thumbscroll_zoom_friction_get()
2569     * @ingroup Scrolling
2570     */
2571    EAPI void             elm_scroll_zoom_friction_set(double friction);
2572
2573    /**
2574     * Set the amount of inertia scrollers will impose at animations
2575     * triggered by Elementary widgets' zooming API, for all Elementary
2576     * application windows.
2577     *
2578     * @param friction the zoom friction
2579     *
2580     * @see elm_thumbscroll_zoom_friction_get()
2581     * @ingroup Scrolling
2582     */
2583    EAPI void             elm_scroll_zoom_friction_all_set(double friction);
2584
2585    /**
2586     * Get whether scrollers should be draggable from any point in their
2587     * views.
2588     *
2589     * @return the thumb scroll state
2590     *
2591     * @note This is the default behavior for touch screens, in general.
2592     * @note All other functions namespaced with "thumbscroll" will only
2593     *       have effect if this mode is enabled.
2594     *
2595     * @ingroup Scrolling
2596     */
2597    EAPI Eina_Bool        elm_scroll_thumbscroll_enabled_get(void);
2598
2599    /**
2600     * Set whether scrollers should be draggable from any point in their
2601     * views.
2602     *
2603     * @param enabled the thumb scroll state
2604     *
2605     * @see elm_thumbscroll_enabled_get()
2606     * @ingroup Scrolling
2607     */
2608    EAPI void             elm_scroll_thumbscroll_enabled_set(Eina_Bool enabled);
2609
2610    /**
2611     * Set whether scrollers should be draggable from any point in their
2612     * views, for all Elementary application windows.
2613     *
2614     * @param enabled the thumb scroll state
2615     *
2616     * @see elm_thumbscroll_enabled_get()
2617     * @ingroup Scrolling
2618     */
2619    EAPI void             elm_scroll_thumbscroll_enabled_all_set(Eina_Bool enabled);
2620
2621    /**
2622     * Get the number of pixels one should travel while dragging a
2623     * scroller's view to actually trigger scrolling.
2624     *
2625     * @return the thumb scroll threshould
2626     *
2627     * One would use higher values for touch screens, in general, because
2628     * of their inherent imprecision.
2629     * @ingroup Scrolling
2630     */
2631    EAPI unsigned int     elm_scroll_thumbscroll_threshold_get(void);
2632
2633    /**
2634     * Set the number of pixels one should travel while dragging a
2635     * scroller's view to actually trigger scrolling.
2636     *
2637     * @param threshold the thumb scroll threshould
2638     *
2639     * @see elm_thumbscroll_threshould_get()
2640     * @ingroup Scrolling
2641     */
2642    EAPI void             elm_scroll_thumbscroll_threshold_set(unsigned int threshold);
2643
2644    /**
2645     * Set the number of pixels one should travel while dragging a
2646     * scroller's view to actually trigger scrolling, for all Elementary
2647     * application windows.
2648     *
2649     * @param threshold the thumb scroll threshould
2650     *
2651     * @see elm_thumbscroll_threshould_get()
2652     * @ingroup Scrolling
2653     */
2654    EAPI void             elm_scroll_thumbscroll_threshold_all_set(unsigned int threshold);
2655
2656    /**
2657     * Get the minimum speed of mouse cursor movement which will trigger
2658     * list self scrolling animation after a mouse up event
2659     * (pixels/second).
2660     *
2661     * @return the thumb scroll momentum threshould
2662     *
2663     * @ingroup Scrolling
2664     */
2665    EAPI double           elm_scroll_thumbscroll_momentum_threshold_get(void);
2666
2667    /**
2668     * Set the minimum speed of mouse cursor movement which will trigger
2669     * list self scrolling animation after a mouse up event
2670     * (pixels/second).
2671     *
2672     * @param threshold the thumb scroll momentum threshould
2673     *
2674     * @see elm_thumbscroll_momentum_threshould_get()
2675     * @ingroup Scrolling
2676     */
2677    EAPI void             elm_scroll_thumbscroll_momentum_threshold_set(double threshold);
2678
2679    /**
2680     * Set the minimum speed of mouse cursor movement which will trigger
2681     * list self scrolling animation after a mouse up event
2682     * (pixels/second), for all Elementary application windows.
2683     *
2684     * @param threshold the thumb scroll momentum threshould
2685     *
2686     * @see elm_thumbscroll_momentum_threshould_get()
2687     * @ingroup Scrolling
2688     */
2689    EAPI void             elm_scroll_thumbscroll_momentum_threshold_all_set(double threshold);
2690
2691    /**
2692     * Get the amount of inertia a scroller will impose at self scrolling
2693     * animations.
2694     *
2695     * @return the thumb scroll friction
2696     *
2697     * @ingroup Scrolling
2698     */
2699    EAPI double           elm_scroll_thumbscroll_friction_get(void);
2700
2701    /**
2702     * Set the amount of inertia a scroller will impose at self scrolling
2703     * animations.
2704     *
2705     * @param friction the thumb scroll friction
2706     *
2707     * @see elm_thumbscroll_friction_get()
2708     * @ingroup Scrolling
2709     */
2710    EAPI void             elm_scroll_thumbscroll_friction_set(double friction);
2711
2712    /**
2713     * Set the amount of inertia a scroller will impose at self scrolling
2714     * animations, for all Elementary application windows.
2715     *
2716     * @param friction the thumb scroll friction
2717     *
2718     * @see elm_thumbscroll_friction_get()
2719     * @ingroup Scrolling
2720     */
2721    EAPI void             elm_scroll_thumbscroll_friction_all_set(double friction);
2722
2723    /**
2724     * Get the amount of lag between your actual mouse cursor dragging
2725     * movement and a scroller's view movement itself, while pushing it
2726     * into bounce state manually.
2727     *
2728     * @return the thumb scroll border friction
2729     *
2730     * @ingroup Scrolling
2731     */
2732    EAPI double           elm_scroll_thumbscroll_border_friction_get(void);
2733
2734    /**
2735     * Set the amount of lag between your actual mouse cursor dragging
2736     * movement and a scroller's view movement itself, while pushing it
2737     * into bounce state manually.
2738     *
2739     * @param friction the thumb scroll border friction. @c 0.0 for
2740     *        perfect synchrony between two movements, @c 1.0 for maximum
2741     *        lag.
2742     *
2743     * @see elm_thumbscroll_border_friction_get()
2744     * @note parameter value will get bound to 0.0 - 1.0 interval, always
2745     *
2746     * @ingroup Scrolling
2747     */
2748    EAPI void             elm_scroll_thumbscroll_border_friction_set(double friction);
2749
2750    /**
2751     * Set the amount of lag between your actual mouse cursor dragging
2752     * movement and a scroller's view movement itself, while pushing it
2753     * into bounce state manually, for all Elementary application windows.
2754     *
2755     * @param friction the thumb scroll border friction. @c 0.0 for
2756     *        perfect synchrony between two movements, @c 1.0 for maximum
2757     *        lag.
2758     *
2759     * @see elm_thumbscroll_border_friction_get()
2760     * @note parameter value will get bound to 0.0 - 1.0 interval, always
2761     *
2762     * @ingroup Scrolling
2763     */
2764    EAPI void             elm_scroll_thumbscroll_border_friction_all_set(double friction);
2765
2766    /**
2767     * Get the sensitivity amount which is be multiplied by the length of
2768     * mouse dragging.
2769     *
2770     * @return the thumb scroll sensitivity friction
2771     *
2772     * @ingroup Scrolling
2773     */
2774    EAPI double           elm_scroll_thumbscroll_sensitivity_friction_get(void);
2775
2776    /**
2777     * Set the sensitivity amount which is be multiplied by the length of
2778     * mouse dragging.
2779     *
2780     * @param friction the thumb scroll sensitivity friction. @c 0.1 for
2781     *        minimun sensitivity, @c 1.0 for maximum sensitivity. 0.25
2782     *        is proper.
2783     *
2784     * @see elm_thumbscroll_sensitivity_friction_get()
2785     * @note parameter value will get bound to 0.1 - 1.0 interval, always
2786     *
2787     * @ingroup Scrolling
2788     */
2789    EAPI void             elm_scroll_thumbscroll_sensitivity_friction_set(double friction);
2790
2791    /**
2792     * Set the sensitivity amount which is be multiplied by the length of
2793     * mouse dragging, for all Elementary application windows.
2794     *
2795     * @param friction the thumb scroll sensitivity friction. @c 0.1 for
2796     *        minimun sensitivity, @c 1.0 for maximum sensitivity. 0.25
2797     *        is proper.
2798     *
2799     * @see elm_thumbscroll_sensitivity_friction_get()
2800     * @note parameter value will get bound to 0.1 - 1.0 interval, always
2801     *
2802     * @ingroup Scrolling
2803     */
2804    EAPI void             elm_scroll_thumbscroll_sensitivity_friction_all_set(double friction);
2805
2806    /**
2807     * @}
2808     */
2809
2810    /**
2811     * @defgroup Scrollhints Scrollhints
2812     *
2813     * Objects when inside a scroller can scroll, but this may not always be
2814     * desirable in certain situations. This allows an object to hint to itself
2815     * and parents to "not scroll" in one of 2 ways. If any child object of a
2816     * scroller has pushed a scroll freeze or hold then it affects all parent
2817     * scrollers until all children have released them.
2818     *
2819     * 1. To hold on scrolling. This means just flicking and dragging may no
2820     * longer scroll, but pressing/dragging near an edge of the scroller will
2821     * still scroll. This is automatically used by the entry object when
2822     * selecting text.
2823     *
2824     * 2. To totally freeze scrolling. This means it stops. until
2825     * popped/released.
2826     *
2827     * @{
2828     */
2829
2830    /**
2831     * Push the scroll hold by 1
2832     *
2833     * This increments the scroll hold count by one. If it is more than 0 it will
2834     * take effect on the parents of the indicated object.
2835     *
2836     * @param obj The object
2837     * @ingroup Scrollhints
2838     */
2839    EAPI void             elm_object_scroll_hold_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
2840
2841    /**
2842     * Pop the scroll hold by 1
2843     *
2844     * This decrements the scroll hold count by one. If it is more than 0 it will
2845     * take effect on the parents of the indicated object.
2846     *
2847     * @param obj The object
2848     * @ingroup Scrollhints
2849     */
2850    EAPI void             elm_object_scroll_hold_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
2851
2852    /**
2853     * Push the scroll freeze by 1
2854     *
2855     * This increments the scroll freeze count by one. If it is more
2856     * than 0 it will take effect on the parents of the indicated
2857     * object.
2858     *
2859     * @param obj The object
2860     * @ingroup Scrollhints
2861     */
2862    EAPI void             elm_object_scroll_freeze_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
2863
2864    /**
2865     * Pop the scroll freeze by 1
2866     *
2867     * This decrements the scroll freeze count by one. If it is more
2868     * than 0 it will take effect on the parents of the indicated
2869     * object.
2870     *
2871     * @param obj The object
2872     * @ingroup Scrollhints
2873     */
2874    EAPI void             elm_object_scroll_freeze_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
2875
2876    /**
2877     * Lock the scrolling of the given widget (and thus all parents)
2878     *
2879     * This locks the given object from scrolling in the X axis (and implicitly
2880     * also locks all parent scrollers too from doing the same).
2881     *
2882     * @param obj The object
2883     * @param lock The lock state (1 == locked, 0 == unlocked)
2884     * @ingroup Scrollhints
2885     */
2886    EAPI void             elm_object_scroll_lock_x_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
2887
2888    /**
2889     * Lock the scrolling of the given widget (and thus all parents)
2890     *
2891     * This locks the given object from scrolling in the Y axis (and implicitly
2892     * also locks all parent scrollers too from doing the same).
2893     *
2894     * @param obj The object
2895     * @param lock The lock state (1 == locked, 0 == unlocked)
2896     * @ingroup Scrollhints
2897     */
2898    EAPI void             elm_object_scroll_lock_y_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
2899
2900    /**
2901     * Get the scrolling lock of the given widget
2902     *
2903     * This gets the lock for X axis scrolling.
2904     *
2905     * @param obj The object
2906     * @ingroup Scrollhints
2907     */
2908    EAPI Eina_Bool        elm_object_scroll_lock_x_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2909
2910    /**
2911     * Get the scrolling lock of the given widget
2912     *
2913     * This gets the lock for X axis scrolling.
2914     *
2915     * @param obj The object
2916     * @ingroup Scrollhints
2917     */
2918    EAPI Eina_Bool        elm_object_scroll_lock_y_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2919
2920    /**
2921     * @}
2922     */
2923
2924    /**
2925     * Send a signal to the widget edje object.
2926     *
2927     * This function sends a signal to the edje object of the obj. An
2928     * edje program can respond to a signal by specifying matching
2929     * 'signal' and 'source' fields.
2930     *
2931     * @param obj The object
2932     * @param emission The signal's name.
2933     * @param source The signal's source.
2934     * @ingroup General
2935     */
2936    EAPI void             elm_object_signal_emit(Evas_Object *obj, const char *emission, const char *source) EINA_ARG_NONNULL(1);
2937    EAPI void             elm_object_signal_callback_add(Evas_Object *obj, const char *emission, const char *source, void (*func) (void *data, Evas_Object *o, const char *emission, const char *source), void *data) EINA_ARG_NONNULL(1, 4);
2938    EAPI void            *elm_object_signal_callback_del(Evas_Object *obj, const char *emission, const char *source, void (*func) (void *data, Evas_Object *o, const char *emission, const char *source)) EINA_ARG_NONNULL(1, 4);
2939
2940    /**
2941     * Add a callback for a signal emitted by widget edje object.
2942     *
2943     * This function connects a callback function to a signal emitted by the
2944     * edje object of the obj.
2945     * Globs can occur in either the emission or source name.
2946     *
2947     * @param obj The object
2948     * @param emission The signal's name.
2949     * @param source The signal's source.
2950     * @param func The callback function to be executed when the signal is
2951     * emitted.
2952     * @param data A pointer to data to pass in to the callback function.
2953     * @ingroup General
2954     */
2955    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);
2956
2957    /**
2958     * Remove a signal-triggered callback from a widget edje object.
2959     *
2960     * This function removes a callback, previoulsy attached to a
2961     * signal emitted by the edje object of the obj.  The parameters
2962     * emission, source and func must match exactly those passed to a
2963     * previous call to elm_object_signal_callback_add(). The data
2964     * pointer that was passed to this call will be returned.
2965     *
2966     * @param obj The object
2967     * @param emission The signal's name.
2968     * @param source The signal's source.
2969     * @param func The callback function to be executed when the signal is
2970     * emitted.
2971     * @return The data pointer
2972     * @ingroup General
2973     */
2974    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);
2975
2976    /**
2977     * Add a callback for input events (key up, key down, mouse wheel)
2978     * on a given Elementary widget
2979     *
2980     * @param obj The widget to add an event callback on
2981     * @param func The callback function to be executed when the event
2982     * happens
2983     * @param data Data to pass in to @p func
2984     *
2985     * Every widget in an Elementary interface set to receive focus,
2986     * with elm_object_focus_allow_set(), will propagate @b all of its
2987     * key up, key down and mouse wheel input events up to its parent
2988     * object, and so on. All of the focusable ones in this chain which
2989     * had an event callback set, with this call, will be able to treat
2990     * those events. There are two ways of making the propagation of
2991     * these event upwards in the tree of widgets to @b cease:
2992     * - Just return @c EINA_TRUE on @p func. @c EINA_FALSE will mean
2993     *   the event was @b not processed, so the propagation will go on.
2994     * - The @c event_info pointer passed to @p func will contain the
2995     *   event's structure and, if you OR its @c event_flags inner
2996     *   value to @c EVAS_EVENT_FLAG_ON_HOLD, you're telling Elementary
2997     *   one has already handled it, thus killing the event's
2998     *   propagation, too.
2999     *
3000     * @note Your event callback will be issued on those events taking
3001     * place only if no other child widget of @obj has consumed the
3002     * event already.
3003     *
3004     * @note Not to be confused with @c
3005     * evas_object_event_callback_add(), which will add event callbacks
3006     * per type on general Evas objects (no event propagation
3007     * infrastructure taken in account).
3008     *
3009     * @note Not to be confused with @c
3010     * elm_object_signal_callback_add(), which will add callbacks to @b
3011     * signals coming from a widget's theme, not input events.
3012     *
3013     * @note Not to be confused with @c
3014     * edje_object_signal_callback_add(), which does the same as
3015     * elm_object_signal_callback_add(), but directly on an Edje
3016     * object.
3017     *
3018     * @note Not to be confused with @c
3019     * evas_object_smart_callback_add(), which adds callbacks to smart
3020     * objects' <b>smart events</b>, and not input events.
3021     *
3022     * @see elm_object_event_callback_del()
3023     *
3024     * @ingroup General
3025     */
3026    EAPI void             elm_object_event_callback_add(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
3027
3028    /**
3029     * Remove an event callback from a widget.
3030     *
3031     * This function removes a callback, previoulsy attached to event emission
3032     * by the @p obj.
3033     * The parameters func and data must match exactly those passed to
3034     * a previous call to elm_object_event_callback_add(). The data pointer that
3035     * was passed to this call will be returned.
3036     *
3037     * @param obj The object
3038     * @param func The callback function to be executed when the event is
3039     * emitted.
3040     * @param data Data to pass in to the callback function.
3041     * @return The data pointer
3042     * @ingroup General
3043     */
3044    EAPI void            *elm_object_event_callback_del(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
3045
3046    /**
3047     * Adjust size of an element for finger usage.
3048     *
3049     * @param times_w How many fingers should fit horizontally
3050     * @param w Pointer to the width size to adjust
3051     * @param times_h How many fingers should fit vertically
3052     * @param h Pointer to the height size to adjust
3053     *
3054     * This takes width and height sizes (in pixels) as input and a
3055     * size multiple (which is how many fingers you want to place
3056     * within the area, being "finger" the size set by
3057     * elm_finger_size_set()), and adjusts the size to be large enough
3058     * to accommodate the resulting size -- if it doesn't already
3059     * accommodate it. On return the @p w and @p h sizes pointed to by
3060     * these parameters will be modified, on those conditions.
3061     *
3062     * @note This is kind of a low level Elementary call, most useful
3063     * on size evaluation times for widgets. An external user wouldn't
3064     * be calling, most of the time.
3065     *
3066     * @ingroup Fingers
3067     */
3068    EAPI void             elm_coords_finger_size_adjust(int times_w, Evas_Coord *w, int times_h, Evas_Coord *h);
3069
3070    /**
3071     * Get the duration for occuring long press event.
3072     *
3073     * @return Timeout for long press event
3074     * @ingroup Longpress
3075     */
3076    EAPI double           elm_longpress_timeout_get(void);
3077
3078    /**
3079     * Set the duration for occuring long press event.
3080     *
3081     * @param lonpress_timeout Timeout for long press event
3082     * @ingroup Longpress
3083     */
3084    EAPI void             elm_longpress_timeout_set(double longpress_timeout);
3085
3086    /**
3087     * @defgroup Debug Debug
3088     * don't use it unless you are sure
3089     *
3090     * @{
3091     */
3092
3093    /**
3094     * Print Tree object hierarchy in stdout
3095     *
3096     * @param obj The root object
3097     * @ingroup Debug
3098     */
3099    EAPI void             elm_object_tree_dump(const Evas_Object *top);
3100    EAPI void             elm_object_tree_dot_dump(const Evas_Object *top, const char *file);
3101
3102    EAPI void             elm_autocapitalization_allow_all_set(Eina_Bool autocap);
3103    EAPI void             elm_autoperiod_allow_all_set(Eina_Bool autoperiod);
3104    /**
3105     * Print Elm Objects tree hierarchy in file as dot(graphviz) syntax.
3106     *
3107     * @param obj The root object
3108     * @param file The path of output file
3109     * @ingroup Debug
3110     */
3111    EAPI void             elm_object_tree_dot_dump(const Evas_Object *top, const char *file);
3112
3113    /**
3114     * @}
3115     */
3116
3117    /**
3118     * @defgroup Theme Theme
3119     *
3120     * Elementary uses Edje to theme its widgets, naturally. But for the most
3121     * part this is hidden behind a simpler interface that lets the user set
3122     * extensions and choose the style of widgets in a much easier way.
3123     *
3124     * Instead of thinking in terms of paths to Edje files and their groups
3125     * each time you want to change the appearance of a widget, Elementary
3126     * works so you can add any theme file with extensions or replace the
3127     * main theme at one point in the application, and then just set the style
3128     * of widgets with elm_object_style_set() and related functions. Elementary
3129     * will then look in its list of themes for a matching group and apply it,
3130     * and when the theme changes midway through the application, all widgets
3131     * will be updated accordingly.
3132     *
3133     * There are three concepts you need to know to understand how Elementary
3134     * theming works: default theme, extensions and overlays.
3135     *
3136     * Default theme, obviously enough, is the one that provides the default
3137     * look of all widgets. End users can change the theme used by Elementary
3138     * by setting the @c ELM_THEME environment variable before running an
3139     * application, or globally for all programs using the @c elementary_config
3140     * utility. Applications can change the default theme using elm_theme_set(),
3141     * but this can go against the user wishes, so it's not an adviced practice.
3142     *
3143     * Ideally, applications should find everything they need in the already
3144     * provided theme, but there may be occasions when that's not enough and
3145     * custom styles are required to correctly express the idea. For this
3146     * cases, Elementary has extensions.
3147     *
3148     * Extensions allow the application developer to write styles of its own
3149     * to apply to some widgets. This requires knowledge of how each widget
3150     * is themed, as extensions will always replace the entire group used by
3151     * the widget, so important signals and parts need to be there for the
3152     * object to behave properly (see documentation of Edje for details).
3153     * Once the theme for the extension is done, the application needs to add
3154     * it to the list of themes Elementary will look into, using
3155     * elm_theme_extension_add(), and set the style of the desired widgets as
3156     * he would normally with elm_object_style_set().
3157     *
3158     * Overlays, on the other hand, can replace the look of all widgets by
3159     * overriding the default style. Like extensions, it's up to the application
3160     * developer to write the theme for the widgets it wants, the difference
3161     * being that when looking for the theme, Elementary will check first the
3162     * list of overlays, then the set theme and lastly the list of extensions,
3163     * so with overlays it's possible to replace the default view and every
3164     * widget will be affected. This is very much alike to setting the whole
3165     * theme for the application and will probably clash with the end user
3166     * options, not to mention the risk of ending up with not matching styles
3167     * across the program. Unless there's a very special reason to use them,
3168     * overlays should be avoided for the resons exposed before.
3169     *
3170     * All these theme lists are handled by ::Elm_Theme instances. Elementary
3171     * keeps one default internally and every function that receives one of
3172     * these can be called with NULL to refer to this default (except for
3173     * elm_theme_free()). It's possible to create a new instance of a
3174     * ::Elm_Theme to set other theme for a specific widget (and all of its
3175     * children), but this is as discouraged, if not even more so, than using
3176     * overlays. Don't use this unless you really know what you are doing.
3177     *
3178     * But to be less negative about things, you can look at the following
3179     * examples:
3180     * @li @ref theme_example_01 "Using extensions"
3181     * @li @ref theme_example_02 "Using overlays"
3182     *
3183     * @{
3184     */
3185    /**
3186     * @typedef Elm_Theme
3187     *
3188     * Opaque handler for the list of themes Elementary looks for when
3189     * rendering widgets.
3190     *
3191     * Stay out of this unless you really know what you are doing. For most
3192     * cases, sticking to the default is all a developer needs.
3193     */
3194    typedef struct _Elm_Theme Elm_Theme;
3195
3196    /**
3197     * Create a new specific theme
3198     *
3199     * This creates an empty specific theme that only uses the default theme. A
3200     * specific theme has its own private set of extensions and overlays too
3201     * (which are empty by default). Specific themes do not fall back to themes
3202     * of parent objects. They are not intended for this use. Use styles, overlays
3203     * and extensions when needed, but avoid specific themes unless there is no
3204     * other way (example: you want to have a preview of a new theme you are
3205     * selecting in a "theme selector" window. The preview is inside a scroller
3206     * and should display what the theme you selected will look like, but not
3207     * actually apply it yet. The child of the scroller will have a specific
3208     * theme set to show this preview before the user decides to apply it to all
3209     * applications).
3210     */
3211    EAPI Elm_Theme       *elm_theme_new(void);
3212    /**
3213     * Free a specific theme
3214     *
3215     * @param th The theme to free
3216     *
3217     * This frees a theme created with elm_theme_new().
3218     */
3219    EAPI void             elm_theme_free(Elm_Theme *th);
3220    /**
3221     * Copy the theme fom the source to the destination theme
3222     *
3223     * @param th The source theme to copy from
3224     * @param thdst The destination theme to copy data to
3225     *
3226     * This makes a one-time static copy of all the theme config, extensions
3227     * and overlays from @p th to @p thdst. If @p th references a theme, then
3228     * @p thdst is also set to reference it, with all the theme settings,
3229     * overlays and extensions that @p th had.
3230     */
3231    EAPI void             elm_theme_copy(Elm_Theme *th, Elm_Theme *thdst);
3232    /**
3233     * Tell the source theme to reference the ref theme
3234     *
3235     * @param th The theme that will do the referencing
3236     * @param thref The theme that is the reference source
3237     *
3238     * This clears @p th to be empty and then sets it to refer to @p thref
3239     * so @p th acts as an override to @p thref, but where its overrides
3240     * don't apply, it will fall through to @p thref for configuration.
3241     */
3242    EAPI void             elm_theme_ref_set(Elm_Theme *th, Elm_Theme *thref);
3243    /**
3244     * Return the theme referred to
3245     *
3246     * @param th The theme to get the reference from
3247     * @return The referenced theme handle
3248     *
3249     * This gets the theme set as the reference theme by elm_theme_ref_set().
3250     * If no theme is set as a reference, NULL is returned.
3251     */
3252    EAPI Elm_Theme       *elm_theme_ref_get(Elm_Theme *th);
3253    /**
3254     * Return the default theme
3255     *
3256     * @return The default theme handle
3257     *
3258     * This returns the internal default theme setup handle that all widgets
3259     * use implicitly unless a specific theme is set. This is also often use
3260     * as a shorthand of NULL.
3261     */
3262    EAPI Elm_Theme       *elm_theme_default_get(void);
3263    /**
3264     * Prepends a theme overlay to the list of overlays
3265     *
3266     * @param th The theme to add to, or if NULL, the default theme
3267     * @param item The Edje file path to be used
3268     *
3269     * Use this if your application needs to provide some custom overlay theme
3270     * (An Edje file that replaces some default styles of widgets) where adding
3271     * new styles, or changing system theme configuration is not possible. Do
3272     * NOT use this instead of a proper system theme configuration. Use proper
3273     * configuration files, profiles, environment variables etc. to set a theme
3274     * so that the theme can be altered by simple confiugration by a user. Using
3275     * this call to achieve that effect is abusing the API and will create lots
3276     * of trouble.
3277     *
3278     * @see elm_theme_extension_add()
3279     */
3280    EAPI void             elm_theme_overlay_add(Elm_Theme *th, const char *item);
3281    /**
3282     * Delete a theme overlay from the list of overlays
3283     *
3284     * @param th The theme to delete from, or if NULL, the default theme
3285     * @param item The name of the theme overlay
3286     *
3287     * @see elm_theme_overlay_add()
3288     */
3289    EAPI void             elm_theme_overlay_del(Elm_Theme *th, const char *item);
3290    /**
3291     * Appends a theme extension to the list of extensions.
3292     *
3293     * @param th The theme to add to, or if NULL, the default theme
3294     * @param item The Edje file path to be used
3295     *
3296     * This is intended when an application needs more styles of widgets or new
3297     * widget themes that the default does not provide (or may not provide). The
3298     * application has "extended" usage by coming up with new custom style names
3299     * for widgets for specific uses, but as these are not "standard", they are
3300     * not guaranteed to be provided by a default theme. This means the
3301     * application is required to provide these extra elements itself in specific
3302     * Edje files. This call adds one of those Edje files to the theme search
3303     * path to be search after the default theme. The use of this call is
3304     * encouraged when default styles do not meet the needs of the application.
3305     * Use this call instead of elm_theme_overlay_add() for almost all cases.
3306     *
3307     * @see elm_object_style_set()
3308     */
3309    EAPI void             elm_theme_extension_add(Elm_Theme *th, const char *item);
3310    /**
3311     * Deletes a theme extension from the list of extensions.
3312     *
3313     * @param th The theme to delete from, or if NULL, the default theme
3314     * @param item The name of the theme extension
3315     *
3316     * @see elm_theme_extension_add()
3317     */
3318    EAPI void             elm_theme_extension_del(Elm_Theme *th, const char *item);
3319    /**
3320     * Set the theme search order for the given theme
3321     *
3322     * @param th The theme to set the search order, or if NULL, the default theme
3323     * @param theme Theme search string
3324     *
3325     * This sets the search string for the theme in path-notation from first
3326     * theme to search, to last, delimited by the : character. Example:
3327     *
3328     * "shiny:/path/to/file.edj:default"
3329     *
3330     * See the ELM_THEME environment variable for more information.
3331     *
3332     * @see elm_theme_get()
3333     * @see elm_theme_list_get()
3334     */
3335    EAPI void             elm_theme_set(Elm_Theme *th, const char *theme);
3336    /**
3337     * Return the theme search order
3338     *
3339     * @param th The theme to get the search order, or if NULL, the default theme
3340     * @return The internal search order path
3341     *
3342     * This function returns a colon separated string of theme elements as
3343     * returned by elm_theme_list_get().
3344     *
3345     * @see elm_theme_set()
3346     * @see elm_theme_list_get()
3347     */
3348    EAPI const char      *elm_theme_get(Elm_Theme *th);
3349    /**
3350     * Return a list of theme elements to be used in a theme.
3351     *
3352     * @param th Theme to get the list of theme elements from.
3353     * @return The internal list of theme elements
3354     *
3355     * This returns the internal list of theme elements (will only be valid as
3356     * long as the theme is not modified by elm_theme_set() or theme is not
3357     * freed by elm_theme_free(). This is a list of strings which must not be
3358     * altered as they are also internal. If @p th is NULL, then the default
3359     * theme element list is returned.
3360     *
3361     * A theme element can consist of a full or relative path to a .edj file,
3362     * or a name, without extension, for a theme to be searched in the known
3363     * theme paths for Elemementary.
3364     *
3365     * @see elm_theme_set()
3366     * @see elm_theme_get()
3367     */
3368    EAPI const Eina_List *elm_theme_list_get(const Elm_Theme *th);
3369    /**
3370     * Return the full patrh for a theme element
3371     *
3372     * @param f The theme element name
3373     * @param in_search_path Pointer to a boolean to indicate if item is in the search path or not
3374     * @return The full path to the file found.
3375     *
3376     * This returns a string you should free with free() on success, NULL on
3377     * failure. This will search for the given theme element, and if it is a
3378     * full or relative path element or a simple searchable name. The returned
3379     * path is the full path to the file, if searched, and the file exists, or it
3380     * is simply the full path given in the element or a resolved path if
3381     * relative to home. The @p in_search_path boolean pointed to is set to
3382     * EINA_TRUE if the file was a searchable file andis in the search path,
3383     * and EINA_FALSE otherwise.
3384     */
3385    EAPI char            *elm_theme_list_item_path_get(const char *f, Eina_Bool *in_search_path);
3386    /**
3387     * Flush the current theme.
3388     *
3389     * @param th Theme to flush
3390     *
3391     * This flushes caches that let elementary know where to find theme elements
3392     * in the given theme. If @p th is NULL, then the default theme is flushed.
3393     * Call this function if source theme data has changed in such a way as to
3394     * make any caches Elementary kept invalid.
3395     */
3396    EAPI void             elm_theme_flush(Elm_Theme *th);
3397    /**
3398     * This flushes all themes (default and specific ones).
3399     *
3400     * This will flush all themes in the current application context, by calling
3401     * elm_theme_flush() on each of them.
3402     */
3403    EAPI void             elm_theme_full_flush(void);
3404    /**
3405     * Set the theme for all elementary using applications on the current display
3406     *
3407     * @param theme The name of the theme to use. Format same as the ELM_THEME
3408     * environment variable.
3409     */
3410    EAPI void             elm_theme_all_set(const char *theme);
3411    /**
3412     * Return a list of theme elements in the theme search path
3413     *
3414     * @return A list of strings that are the theme element names.
3415     *
3416     * This lists all available theme files in the standard Elementary search path
3417     * for theme elements, and returns them in alphabetical order as theme
3418     * element names in a list of strings. Free this with
3419     * elm_theme_name_available_list_free() when you are done with the list.
3420     */
3421    EAPI Eina_List       *elm_theme_name_available_list_new(void);
3422    /**
3423     * Free the list returned by elm_theme_name_available_list_new()
3424     *
3425     * This frees the list of themes returned by
3426     * elm_theme_name_available_list_new(). Once freed the list should no longer
3427     * be used. a new list mys be created.
3428     */
3429    EAPI void             elm_theme_name_available_list_free(Eina_List *list);
3430    /**
3431     * Set a specific theme to be used for this object and its children
3432     *
3433     * @param obj The object to set the theme on
3434     * @param th The theme to set
3435     *
3436     * This sets a specific theme that will be used for the given object and any
3437     * child objects it has. If @p th is NULL then the theme to be used is
3438     * cleared and the object will inherit its theme from its parent (which
3439     * ultimately will use the default theme if no specific themes are set).
3440     *
3441     * Use special themes with great care as this will annoy users and make
3442     * configuration difficult. Avoid any custom themes at all if it can be
3443     * helped.
3444     */
3445    EAPI void             elm_object_theme_set(Evas_Object *obj, Elm_Theme *th) EINA_ARG_NONNULL(1);
3446    /**
3447     * Get the specific theme to be used
3448     *
3449     * @param obj The object to get the specific theme from
3450     * @return The specifc theme set.
3451     *
3452     * This will return a specific theme set, or NULL if no specific theme is
3453     * set on that object. It will not return inherited themes from parents, only
3454     * the specific theme set for that specific object. See elm_object_theme_set()
3455     * for more information.
3456     */
3457    EAPI Elm_Theme       *elm_object_theme_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3458
3459    /**
3460     * Get a data item from a theme
3461     *
3462     * @param th The theme, or NULL for default theme
3463     * @param key The data key to search with
3464     * @return The data value, or NULL on failure
3465     *
3466     * This function is used to return data items from edc in @p th, an overlay, or an extension.
3467     * It works the same way as edje_file_data_get() except that the return is stringshared.
3468     */
3469    EAPI const char      *elm_theme_data_get(Elm_Theme *th, const char *key) EINA_ARG_NONNULL(2);
3470    /**
3471     * @}
3472     */
3473
3474    /* win */
3475    /** @defgroup Win Win
3476     *
3477     * @image html img/widget/win/preview-00.png
3478     * @image latex img/widget/win/preview-00.eps
3479     *
3480     * The window class of Elementary.  Contains functions to manipulate
3481     * windows. The Evas engine used to render the window contents is specified
3482     * in the system or user elementary config files (whichever is found last),
3483     * and can be overridden with the ELM_ENGINE environment variable for
3484     * testing.  Engines that may be supported (depending on Evas and Ecore-Evas
3485     * compilation setup and modules actually installed at runtime) are (listed
3486     * in order of best supported and most likely to be complete and work to
3487     * lowest quality).
3488     *
3489     * @li "x11", "x", "software-x11", "software_x11" (Software rendering in X11)
3490     * @li "gl", "opengl", "opengl-x11", "opengl_x11" (OpenGL or OpenGL-ES2
3491     * rendering in X11)
3492     * @li "shot:..." (Virtual screenshot renderer - renders to output file and
3493     * exits)
3494     * @li "fb", "software-fb", "software_fb" (Linux framebuffer direct software
3495     * rendering)
3496     * @li "sdl", "software-sdl", "software_sdl" (SDL software rendering to SDL
3497     * buffer)
3498     * @li "gl-sdl", "gl_sdl", "opengl-sdl", "opengl_sdl" (OpenGL or OpenGL-ES2
3499     * rendering using SDL as the buffer)
3500     * @li "gdi", "software-gdi", "software_gdi" (Windows WIN32 rendering via
3501     * GDI with software)
3502     * @li "dfb", "directfb" (Rendering to a DirectFB window)
3503     * @li "x11-8", "x8", "software-8-x11", "software_8_x11" (Rendering in
3504     * grayscale using dedicated 8bit software engine in X11)
3505     * @li "x11-16", "x16", "software-16-x11", "software_16_x11" (Rendering in
3506     * X11 using 16bit software engine)
3507     * @li "wince-gdi", "software-16-wince-gdi", "software_16_wince_gdi"
3508     * (Windows CE rendering via GDI with 16bit software renderer)
3509     * @li "sdl-16", "software-16-sdl", "software_16_sdl" (Rendering to SDL
3510     * buffer with 16bit software renderer)
3511     * @li "ews" (rendering to EWS - Ecore + Evas Single Process Windowing System)
3512     *
3513     * All engines use a simple string to select the engine to render, EXCEPT
3514     * the "shot" engine. This actually encodes the output of the virtual
3515     * screenshot and how long to delay in the engine string. The engine string
3516     * is encoded in the following way:
3517     *
3518     *   "shot:[delay=XX][:][repeat=DDD][:][file=XX]"
3519     *
3520     * Where options are separated by a ":" char if more than one option is
3521     * given, with delay, if provided being the first option and file the last
3522     * (order is important). The delay specifies how long to wait after the
3523     * window is shown before doing the virtual "in memory" rendering and then
3524     * save the output to the file specified by the file option (and then exit).
3525     * If no delay is given, the default is 0.5 seconds. If no file is given the
3526     * default output file is "out.png". Repeat option is for continous
3527     * capturing screenshots. Repeat range is from 1 to 999 and filename is
3528     * fixed to "out001.png" Some examples of using the shot engine:
3529     *
3530     *   ELM_ENGINE="shot:delay=1.0:repeat=5:file=elm_test.png" elementary_test
3531     *   ELM_ENGINE="shot:delay=1.0:file=elm_test.png" elementary_test
3532     *   ELM_ENGINE="shot:file=elm_test2.png" elementary_test
3533     *   ELM_ENGINE="shot:delay=2.0" elementary_test
3534     *   ELM_ENGINE="shot:" elementary_test
3535     *
3536     * Signals that you can add callbacks for are:
3537     *
3538     * @li "delete,request": the user requested to close the window. See
3539     * elm_win_autodel_set().
3540     * @li "focus,in": window got focus
3541     * @li "focus,out": window lost focus
3542     * @li "moved": window that holds the canvas was moved
3543     *
3544     * Examples:
3545     * @li @ref win_example_01
3546     *
3547     * @{
3548     */
3549    /**
3550     * Defines the types of window that can be created
3551     *
3552     * These are hints set on the window so that a running Window Manager knows
3553     * how the window should be handled and/or what kind of decorations it
3554     * should have.
3555     *
3556     * Currently, only the X11 backed engines use them.
3557     */
3558    typedef enum _Elm_Win_Type
3559      {
3560         ELM_WIN_BASIC, /**< A normal window. Indicates a normal, top-level
3561                          window. Almost every window will be created with this
3562                          type. */
3563         ELM_WIN_DIALOG_BASIC, /**< Used for simple dialog windows/ */
3564         ELM_WIN_DESKTOP, /**< For special desktop windows, like a background
3565                            window holding desktop icons. */
3566         ELM_WIN_DOCK, /**< The window is used as a dock or panel. Usually would
3567                         be kept on top of any other window by the Window
3568                         Manager. */
3569         ELM_WIN_TOOLBAR, /**< The window is used to hold a floating toolbar, or
3570                            similar. */
3571         ELM_WIN_MENU, /**< Similar to #ELM_WIN_TOOLBAR. */
3572         ELM_WIN_UTILITY, /**< A persistent utility window, like a toolbox or
3573                            pallete. */
3574         ELM_WIN_SPLASH, /**< Splash window for a starting up application. */
3575         ELM_WIN_DROPDOWN_MENU, /**< The window is a dropdown menu, as when an
3576                                  entry in a menubar is clicked. Typically used
3577                                  with elm_win_override_set(). This hint exists
3578                                  for completion only, as the EFL way of
3579                                  implementing a menu would not normally use a
3580                                  separate window for its contents. */
3581         ELM_WIN_POPUP_MENU, /**< Like #ELM_WIN_DROPDOWN_MENU, but for the menu
3582                               triggered by right-clicking an object. */
3583         ELM_WIN_TOOLTIP, /**< The window is a tooltip. A short piece of
3584                            explanatory text that typically appear after the
3585                            mouse cursor hovers over an object for a while.
3586                            Typically used with elm_win_override_set() and also
3587                            not very commonly used in the EFL. */
3588         ELM_WIN_NOTIFICATION, /**< A notification window, like a warning about
3589                                 battery life or a new E-Mail received. */
3590         ELM_WIN_COMBO, /**< A window holding the contents of a combo box. Not
3591                          usually used in the EFL. */
3592         ELM_WIN_DND, /**< Used to indicate the window is a representation of an
3593                        object being dragged across different windows, or even
3594                        applications. Typically used with
3595                        elm_win_override_set(). */
3596         ELM_WIN_INLINED_IMAGE, /**< The window is rendered onto an image
3597                                  buffer. No actual window is created for this
3598                                  type, instead the window and all of its
3599                                  contents will be rendered to an image buffer.
3600                                  This allows to have children window inside a
3601                                  parent one just like any other object would
3602                                  be, and do other things like applying @c
3603                                  Evas_Map effects to it. This is the only type
3604                                  of window that requires the @c parent
3605                                  parameter of elm_win_add() to be a valid @c
3606                                  Evas_Object. */
3607      } Elm_Win_Type;
3608
3609    /**
3610     * The differents layouts that can be requested for the virtual keyboard.
3611     *
3612     * When the application window is being managed by Illume, it may request
3613     * any of the following layouts for the virtual keyboard.
3614     */
3615    typedef enum _Elm_Win_Keyboard_Mode
3616      {
3617         ELM_WIN_KEYBOARD_UNKNOWN, /**< Unknown keyboard state */
3618         ELM_WIN_KEYBOARD_OFF, /**< Request to deactivate the keyboard */
3619         ELM_WIN_KEYBOARD_ON, /**< Enable keyboard with default layout */
3620         ELM_WIN_KEYBOARD_ALPHA, /**< Alpha (a-z) keyboard layout */
3621         ELM_WIN_KEYBOARD_NUMERIC, /**< Numeric keyboard layout */
3622         ELM_WIN_KEYBOARD_PIN, /**< PIN keyboard layout */
3623         ELM_WIN_KEYBOARD_PHONE_NUMBER, /**< Phone keyboard layout */
3624         ELM_WIN_KEYBOARD_HEX, /**< Hexadecimal numeric keyboard layout */
3625         ELM_WIN_KEYBOARD_TERMINAL, /**< Full (QUERTY) keyboard layout */
3626         ELM_WIN_KEYBOARD_PASSWORD, /**< Password keyboard layout */
3627         ELM_WIN_KEYBOARD_IP, /**< IP keyboard layout */
3628         ELM_WIN_KEYBOARD_HOST, /**< Host keyboard layout */
3629         ELM_WIN_KEYBOARD_FILE, /**< File keyboard layout */
3630         ELM_WIN_KEYBOARD_URL, /**< URL keyboard layout */
3631         ELM_WIN_KEYBOARD_KEYPAD, /**< Keypad layout */
3632         ELM_WIN_KEYBOARD_J2ME /**< J2ME keyboard layout */
3633      } Elm_Win_Keyboard_Mode;
3634
3635    /**
3636     * Available commands that can be sent to the Illume manager.
3637     *
3638     * When running under an Illume session, a window may send commands to the
3639     * Illume manager to perform different actions.
3640     */
3641    typedef enum _Elm_Illume_Command
3642      {
3643         ELM_ILLUME_COMMAND_FOCUS_BACK, /**< Reverts focus to the previous
3644                                          window */
3645         ELM_ILLUME_COMMAND_FOCUS_FORWARD, /**< Sends focus to the next window\
3646                                             in the list */
3647         ELM_ILLUME_COMMAND_FOCUS_HOME, /**< Hides all windows to show the Home
3648                                          screen */
3649         ELM_ILLUME_COMMAND_CLOSE /**< Closes the currently active window */
3650      } Elm_Illume_Command;
3651
3652    /**
3653     * Adds a window object. If this is the first window created, pass NULL as
3654     * @p parent.
3655     *
3656     * @param parent Parent object to add the window to, or NULL
3657     * @param name The name of the window
3658     * @param type The window type, one of #Elm_Win_Type.
3659     *
3660     * The @p parent paramter can be @c NULL for every window @p type except
3661     * #ELM_WIN_INLINED_IMAGE, which needs a parent to retrieve the canvas on
3662     * which the image object will be created.
3663     *
3664     * @return The created object, or NULL on failure
3665     */
3666    EAPI Evas_Object *elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type);
3667    /**
3668     * Add @p subobj as a resize object of window @p obj.
3669     *
3670     *
3671     * Setting an object as a resize object of the window means that the
3672     * @p subobj child's size and position will be controlled by the window
3673     * directly. That is, the object will be resized to match the window size
3674     * and should never be moved or resized manually by the developer.
3675     *
3676     * In addition, resize objects of the window control what the minimum size
3677     * of it will be, as well as whether it can or not be resized by the user.
3678     *
3679     * For the end user to be able to resize a window by dragging the handles
3680     * or borders provided by the Window Manager, or using any other similar
3681     * mechanism, all of the resize objects in the window should have their
3682     * evas_object_size_hint_weight_set() set to EVAS_HINT_EXPAND.
3683     *
3684     * @param obj The window object
3685     * @param subobj The resize object to add
3686     */
3687    EAPI void         elm_win_resize_object_add(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
3688    /**
3689     * Delete @p subobj as a resize object of window @p obj.
3690     *
3691     * This function removes the object @p subobj from the resize objects of
3692     * the window @p obj. It will not delete the object itself, which will be
3693     * left unmanaged and should be deleted by the developer, manually handled
3694     * or set as child of some other container.
3695     *
3696     * @param obj The window object
3697     * @param subobj The resize object to add
3698     */
3699    EAPI void         elm_win_resize_object_del(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
3700    /**
3701     * Set the title of the window
3702     *
3703     * @param obj The window object
3704     * @param title The title to set
3705     */
3706    EAPI void         elm_win_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
3707    /**
3708     * Get the title of the window
3709     *
3710     * The returned string is an internal one and should not be freed or
3711     * modified. It will also be rendered invalid if a new title is set or if
3712     * the window is destroyed.
3713     *
3714     * @param obj The window object
3715     * @return The title
3716     */
3717    EAPI const char  *elm_win_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3718    /**
3719     * Set the window's autodel state.
3720     *
3721     * When closing the window in any way outside of the program control, like
3722     * pressing the X button in the titlebar or using a command from the
3723     * Window Manager, a "delete,request" signal is emitted to indicate that
3724     * this event occurred and the developer can take any action, which may
3725     * include, or not, destroying the window object.
3726     *
3727     * When the @p autodel parameter is set, the window will be automatically
3728     * destroyed when this event occurs, after the signal is emitted.
3729     * If @p autodel is @c EINA_FALSE, then the window will not be destroyed
3730     * and is up to the program to do so when it's required.
3731     *
3732     * @param obj The window object
3733     * @param autodel If true, the window will automatically delete itself when
3734     * closed
3735     */
3736    EAPI void         elm_win_autodel_set(Evas_Object *obj, Eina_Bool autodel) EINA_ARG_NONNULL(1);
3737    /**
3738     * Get the window's autodel state.
3739     *
3740     * @param obj The window object
3741     * @return If the window will automatically delete itself when closed
3742     *
3743     * @see elm_win_autodel_set()
3744     */
3745    EAPI Eina_Bool    elm_win_autodel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3746    /**
3747     * Activate a window object.
3748     *
3749     * This function sends a request to the Window Manager to activate the
3750     * window pointed by @p obj. If honored by the WM, the window will receive
3751     * the keyboard focus.
3752     *
3753     * @note This is just a request that a Window Manager may ignore, so calling
3754     * this function does not ensure in any way that the window will be the
3755     * active one after it.
3756     *
3757     * @param obj The window object
3758     */
3759    EAPI void         elm_win_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
3760    /**
3761     * Lower a window object.
3762     *
3763     * Places the window pointed by @p obj at the bottom of the stack, so that
3764     * no other window is covered by it.
3765     *
3766     * If elm_win_override_set() is not set, the Window Manager may ignore this
3767     * request.
3768     *
3769     * @param obj The window object
3770     */
3771    EAPI void         elm_win_lower(Evas_Object *obj) EINA_ARG_NONNULL(1);
3772    /**
3773     * Raise a window object.
3774     *
3775     * Places the window pointed by @p obj at the top of the stack, so that it's
3776     * not covered by any other window.
3777     *
3778     * If elm_win_override_set() is not set, the Window Manager may ignore this
3779     * request.
3780     *
3781     * @param obj The window object
3782     */
3783    EAPI void         elm_win_raise(Evas_Object *obj) EINA_ARG_NONNULL(1);
3784    /**
3785     * Set the borderless state of a window.
3786     *
3787     * This function requests the Window Manager to not draw any decoration
3788     * around the window.
3789     *
3790     * @param obj The window object
3791     * @param borderless If true, the window is borderless
3792     */
3793    EAPI void         elm_win_borderless_set(Evas_Object *obj, Eina_Bool borderless) EINA_ARG_NONNULL(1);
3794    /**
3795     * Get the borderless state of a window.
3796     *
3797     * @param obj The window object
3798     * @return If true, the window is borderless
3799     */
3800    EAPI Eina_Bool    elm_win_borderless_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3801    /**
3802     * Set the shaped state of a window.
3803     *
3804     * Shaped windows, when supported, will render the parts of the window that
3805     * has no content, transparent.
3806     *
3807     * If @p shaped is EINA_FALSE, then it is strongly adviced to have some
3808     * background object or cover the entire window in any other way, or the
3809     * parts of the canvas that have no data will show framebuffer artifacts.
3810     *
3811     * @param obj The window object
3812     * @param shaped If true, the window is shaped
3813     *
3814     * @see elm_win_alpha_set()
3815     */
3816    EAPI void         elm_win_shaped_set(Evas_Object *obj, Eina_Bool shaped) EINA_ARG_NONNULL(1);
3817    /**
3818     * Get the shaped state of a window.
3819     *
3820     * @param obj The window object
3821     * @return If true, the window is shaped
3822     *
3823     * @see elm_win_shaped_set()
3824     */
3825    EAPI Eina_Bool    elm_win_shaped_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3826    /**
3827     * Set the alpha channel state of a window.
3828     *
3829     * If @p alpha is EINA_TRUE, the alpha channel of the canvas will be enabled
3830     * possibly making parts of the window completely or partially transparent.
3831     * This is also subject to the underlying system supporting it, like for
3832     * example, running under a compositing manager. If no compositing is
3833     * available, enabling this option will instead fallback to using shaped
3834     * windows, with elm_win_shaped_set().
3835     *
3836     * @param obj The window object
3837     * @param alpha If true, the window has an alpha channel
3838     *
3839     * @see elm_win_alpha_set()
3840     */
3841    EAPI void         elm_win_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
3842    /**
3843     * Get the transparency state of a window.
3844     *
3845     * @param obj The window object
3846     * @return If true, the window is transparent
3847     *
3848     * @see elm_win_transparent_set()
3849     */
3850    EAPI Eina_Bool    elm_win_transparent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3851    /**
3852     * Set the transparency state of a window.
3853     *
3854     * Use elm_win_alpha_set() instead.
3855     *
3856     * @param obj The window object
3857     * @param transparent If true, the window is transparent
3858     *
3859     * @see elm_win_alpha_set()
3860     */
3861    EAPI void         elm_win_transparent_set(Evas_Object *obj, Eina_Bool transparent) EINA_ARG_NONNULL(1);
3862    /**
3863     * Get the alpha channel state of a window.
3864     *
3865     * @param obj The window object
3866     * @return If true, the window has an alpha channel
3867     */
3868    EAPI Eina_Bool    elm_win_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3869    /**
3870     * Set the override state of a window.
3871     *
3872     * A window with @p override set to EINA_TRUE will not be managed by the
3873     * Window Manager. This means that no decorations of any kind will be shown
3874     * for it, moving and resizing must be handled by the application, as well
3875     * as the window visibility.
3876     *
3877     * This should not be used for normal windows, and even for not so normal
3878     * ones, it should only be used when there's a good reason and with a lot
3879     * of care. Mishandling override windows may result situations that
3880     * disrupt the normal workflow of the end user.
3881     *
3882     * @param obj The window object
3883     * @param override If true, the window is overridden
3884     */
3885    EAPI void         elm_win_override_set(Evas_Object *obj, Eina_Bool override) EINA_ARG_NONNULL(1);
3886    /**
3887     * Get the override state of a window.
3888     *
3889     * @param obj The window object
3890     * @return If true, the window is overridden
3891     *
3892     * @see elm_win_override_set()
3893     */
3894    EAPI Eina_Bool    elm_win_override_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3895    /**
3896     * Set the fullscreen state of a window.
3897     *
3898     * @param obj The window object
3899     * @param fullscreen If true, the window is fullscreen
3900     */
3901    EAPI void         elm_win_fullscreen_set(Evas_Object *obj, Eina_Bool fullscreen) EINA_ARG_NONNULL(1);
3902    /**
3903     * Get the fullscreen state of a window.
3904     *
3905     * @param obj The window object
3906     * @return If true, the window is fullscreen
3907     */
3908    EAPI Eina_Bool    elm_win_fullscreen_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3909    /**
3910     * Set the maximized state of a window.
3911     *
3912     * @param obj The window object
3913     * @param maximized If true, the window is maximized
3914     */
3915    EAPI void         elm_win_maximized_set(Evas_Object *obj, Eina_Bool maximized) EINA_ARG_NONNULL(1);
3916    /**
3917     * Get the maximized state of a window.
3918     *
3919     * @param obj The window object
3920     * @return If true, the window is maximized
3921     */
3922    EAPI Eina_Bool    elm_win_maximized_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3923    /**
3924     * Set the iconified state of a window.
3925     *
3926     * @param obj The window object
3927     * @param iconified If true, the window is iconified
3928     */
3929    EAPI void         elm_win_iconified_set(Evas_Object *obj, Eina_Bool iconified) EINA_ARG_NONNULL(1);
3930    /**
3931     * Get the iconified state of a window.
3932     *
3933     * @param obj The window object
3934     * @return If true, the window is iconified
3935     */
3936    EAPI Eina_Bool    elm_win_iconified_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3937    /**
3938     * Set the layer of the window.
3939     *
3940     * What this means exactly will depend on the underlying engine used.
3941     *
3942     * In the case of X11 backed engines, the value in @p layer has the
3943     * following meanings:
3944     * @li < 3: The window will be placed below all others.
3945     * @li > 5: The window will be placed above all others.
3946     * @li other: The window will be placed in the default layer.
3947     *
3948     * @param obj The window object
3949     * @param layer The layer of the window
3950     */
3951    EAPI void         elm_win_layer_set(Evas_Object *obj, int layer) EINA_ARG_NONNULL(1);
3952    /**
3953     * Get the layer of the window.
3954     *
3955     * @param obj The window object
3956     * @return The layer of the window
3957     *
3958     * @see elm_win_layer_set()
3959     */
3960    EAPI int          elm_win_layer_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3961    /**
3962     * Set the rotation of the window.
3963     *
3964     * Most engines only work with multiples of 90.
3965     *
3966     * This function is used to set the orientation of the window @p obj to
3967     * match that of the screen. The window itself will be resized to adjust
3968     * to the new geometry of its contents. If you want to keep the window size,
3969     * see elm_win_rotation_with_resize_set().
3970     *
3971     * @param obj The window object
3972     * @param rotation The rotation of the window, in degrees (0-360),
3973     * counter-clockwise.
3974     */
3975    EAPI void         elm_win_rotation_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
3976    /**
3977     * Rotates the window and resizes it.
3978     *
3979     * Like elm_win_rotation_set(), but it also resizes the window's contents so
3980     * that they fit inside the current window geometry.
3981     *
3982     * @param obj The window object
3983     * @param layer The rotation of the window in degrees (0-360),
3984     * counter-clockwise.
3985     */
3986    EAPI void         elm_win_rotation_with_resize_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
3987    /**
3988     * Get the rotation of the window.
3989     *
3990     * @param obj The window object
3991     * @return The rotation of the window in degrees (0-360)
3992     *
3993     * @see elm_win_rotation_set()
3994     * @see elm_win_rotation_with_resize_set()
3995     */
3996    EAPI int          elm_win_rotation_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3997    /**
3998     * Set the sticky state of the window.
3999     *
4000     * Hints the Window Manager that the window in @p obj should be left fixed
4001     * at its position even when the virtual desktop it's on moves or changes.
4002     *
4003     * @param obj The window object
4004     * @param sticky If true, the window's sticky state is enabled
4005     */
4006    EAPI void         elm_win_sticky_set(Evas_Object *obj, Eina_Bool sticky) EINA_ARG_NONNULL(1);
4007    /**
4008     * Get the sticky state of the window.
4009     *
4010     * @param obj The window object
4011     * @return If true, the window's sticky state is enabled
4012     *
4013     * @see elm_win_sticky_set()
4014     */
4015    EAPI Eina_Bool    elm_win_sticky_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4016    /**
4017     * Set if this window is an illume conformant window
4018     *
4019     * @param obj The window object
4020     * @param conformant The conformant flag (1 = conformant, 0 = non-conformant)
4021     */
4022    EAPI void         elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant) EINA_ARG_NONNULL(1);
4023    /**
4024     * Get if this window is an illume conformant window
4025     *
4026     * @param obj The window object
4027     * @return A boolean if this window is illume conformant or not
4028     */
4029    EAPI Eina_Bool    elm_win_conformant_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4030    /**
4031     * Set a window to be an illume quickpanel window
4032     *
4033     * By default window objects are not quickpanel windows.
4034     *
4035     * @param obj The window object
4036     * @param quickpanel The quickpanel flag (1 = quickpanel, 0 = normal window)
4037     */
4038    EAPI void         elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel) EINA_ARG_NONNULL(1);
4039    /**
4040     * Get if this window is a quickpanel or not
4041     *
4042     * @param obj The window object
4043     * @return A boolean if this window is a quickpanel or not
4044     */
4045    EAPI Eina_Bool    elm_win_quickpanel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4046    /**
4047     * Set the major priority of a quickpanel window
4048     *
4049     * @param obj The window object
4050     * @param priority The major priority for this quickpanel
4051     */
4052    EAPI void         elm_win_quickpanel_priority_major_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
4053    /**
4054     * Get the major priority of a quickpanel window
4055     *
4056     * @param obj The window object
4057     * @return The major priority of this quickpanel
4058     */
4059    EAPI int          elm_win_quickpanel_priority_major_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4060    /**
4061     * Set the minor priority of a quickpanel window
4062     *
4063     * @param obj The window object
4064     * @param priority The minor priority for this quickpanel
4065     */
4066    EAPI void         elm_win_quickpanel_priority_minor_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
4067    /**
4068     * Get the minor priority of a quickpanel window
4069     *
4070     * @param obj The window object
4071     * @return The minor priority of this quickpanel
4072     */
4073    EAPI int          elm_win_quickpanel_priority_minor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4074    /**
4075     * Set which zone this quickpanel should appear in
4076     *
4077     * @param obj The window object
4078     * @param zone The requested zone for this quickpanel
4079     */
4080    EAPI void         elm_win_quickpanel_zone_set(Evas_Object *obj, int zone) EINA_ARG_NONNULL(1);
4081    /**
4082     * Get which zone this quickpanel should appear in
4083     *
4084     * @param obj The window object
4085     * @return The requested zone for this quickpanel
4086     */
4087    EAPI int          elm_win_quickpanel_zone_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4088    /**
4089     * Set the window to be skipped by keyboard focus
4090     *
4091     * This sets the window to be skipped by normal keyboard input. This means
4092     * a window manager will be asked to not focus this window as well as omit
4093     * it from things like the taskbar, pager, "alt-tab" list etc. etc.
4094     *
4095     * Call this and enable it on a window BEFORE you show it for the first time,
4096     * otherwise it may have no effect.
4097     *
4098     * Use this for windows that have only output information or might only be
4099     * interacted with by the mouse or fingers, and never for typing input.
4100     * Be careful that this may have side-effects like making the window
4101     * non-accessible in some cases unless the window is specially handled. Use
4102     * this with care.
4103     *
4104     * @param obj The window object
4105     * @param skip The skip flag state (EINA_TRUE if it is to be skipped)
4106     */
4107    EAPI void         elm_win_prop_focus_skip_set(Evas_Object *obj, Eina_Bool skip) EINA_ARG_NONNULL(1);
4108    /**
4109     * Send a command to the windowing environment
4110     *
4111     * This is intended to work in touchscreen or small screen device
4112     * environments where there is a more simplistic window management policy in
4113     * place. This uses the window object indicated to select which part of the
4114     * environment to control (the part that this window lives in), and provides
4115     * a command and an optional parameter structure (use NULL for this if not
4116     * needed).
4117     *
4118     * @param obj The window object that lives in the environment to control
4119     * @param command The command to send
4120     * @param params Optional parameters for the command
4121     */
4122    EAPI void         elm_win_illume_command_send(Evas_Object *obj, Elm_Illume_Command command, void *params) EINA_ARG_NONNULL(1);
4123    /**
4124     * Get the inlined image object handle
4125     *
4126     * When you create a window with elm_win_add() of type ELM_WIN_INLINED_IMAGE,
4127     * then the window is in fact an evas image object inlined in the parent
4128     * canvas. You can get this object (be careful to not manipulate it as it
4129     * is under control of elementary), and use it to do things like get pixel
4130     * data, save the image to a file, etc.
4131     *
4132     * @param obj The window object to get the inlined image from
4133     * @return The inlined image object, or NULL if none exists
4134     */
4135    EAPI Evas_Object *elm_win_inlined_image_object_get(Evas_Object *obj);
4136    /**
4137     * Set the enabled status for the focus highlight in a window
4138     *
4139     * This function will enable or disable the focus highlight only for the
4140     * given window, regardless of the global setting for it
4141     *
4142     * @param obj The window where to enable the highlight
4143     * @param enabled The enabled value for the highlight
4144     */
4145    EAPI void         elm_win_focus_highlight_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
4146    /**
4147     * Get the enabled value of the focus highlight for this window
4148     *
4149     * @param obj The window in which to check if the focus highlight is enabled
4150     *
4151     * @return EINA_TRUE if enabled, EINA_FALSE otherwise
4152     */
4153    EAPI Eina_Bool    elm_win_focus_highlight_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4154    /**
4155     * Set the style for the focus highlight on this window
4156     *
4157     * Sets the style to use for theming the highlight of focused objects on
4158     * the given window. If @p style is NULL, the default will be used.
4159     *
4160     * @param obj The window where to set the style
4161     * @param style The style to set
4162     */
4163    EAPI void         elm_win_focus_highlight_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
4164    /**
4165     * Get the style set for the focus highlight object
4166     *
4167     * Gets the style set for this windows highilght object, or NULL if none
4168     * is set.
4169     *
4170     * @param obj The window to retrieve the highlights style from
4171     *
4172     * @return The style set or NULL if none was. Default is used in that case.
4173     */
4174    EAPI const char  *elm_win_focus_highlight_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4175    EAPI void         elm_win_indicator_state_set(Evas_Object *obj, int show_state);
4176    EAPI int          elm_win_indicator_state_get(Evas_Object *obj);
4177    /*...
4178     * ecore_x_icccm_hints_set -> accepts_focus (add to ecore_evas)
4179     * ecore_x_icccm_hints_set -> window_group (add to ecore_evas)
4180     * ecore_x_icccm_size_pos_hints_set -> request_pos (add to ecore_evas)
4181     * ecore_x_icccm_client_leader_set -> l (add to ecore_evas)
4182     * ecore_x_icccm_window_role_set -> role (add to ecore_evas)
4183     * ecore_x_icccm_transient_for_set -> forwin (add to ecore_evas)
4184     * ecore_x_netwm_window_type_set -> type (add to ecore_evas)
4185     *
4186     * (add to ecore_x) set netwm argb icon! (add to ecore_evas)
4187     * (blank mouse, private mouse obj, defaultmouse)
4188     *
4189     */
4190    /**
4191     * Sets the keyboard mode of the window.
4192     *
4193     * @param obj The window object
4194     * @param mode The mode to set, one of #Elm_Win_Keyboard_Mode
4195     */
4196    EAPI void                  elm_win_keyboard_mode_set(Evas_Object *obj, Elm_Win_Keyboard_Mode mode) EINA_ARG_NONNULL(1);
4197    /**
4198     * Gets the keyboard mode of the window.
4199     *
4200     * @param obj The window object
4201     * @return The mode, one of #Elm_Win_Keyboard_Mode
4202     */
4203    EAPI Elm_Win_Keyboard_Mode elm_win_keyboard_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4204    /**
4205     * Sets whether the window is a keyboard.
4206     *
4207     * @param obj The window object
4208     * @param is_keyboard If true, the window is a virtual keyboard
4209     */
4210    EAPI void                  elm_win_keyboard_win_set(Evas_Object *obj, Eina_Bool is_keyboard) EINA_ARG_NONNULL(1);
4211    /**
4212     * Gets whether the window is a keyboard.
4213     *
4214     * @param obj The window object
4215     * @return If the window is a virtual keyboard
4216     */
4217    EAPI Eina_Bool             elm_win_keyboard_win_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4218
4219    /**
4220     * Get the screen position of a window.
4221     *
4222     * @param obj The window object
4223     * @param x The int to store the x coordinate to
4224     * @param y The int to store the y coordinate to
4225     */
4226    EAPI void                  elm_win_screen_position_get(const Evas_Object *obj, int *x, int *y) EINA_ARG_NONNULL(1);
4227    /**
4228     * @}
4229     */
4230
4231    /**
4232     * @defgroup Inwin Inwin
4233     *
4234     * @image html img/widget/inwin/preview-00.png
4235     * @image latex img/widget/inwin/preview-00.eps
4236     * @image html img/widget/inwin/preview-01.png
4237     * @image latex img/widget/inwin/preview-01.eps
4238     * @image html img/widget/inwin/preview-02.png
4239     * @image latex img/widget/inwin/preview-02.eps
4240     *
4241     * An inwin is a window inside a window that is useful for a quick popup.
4242     * It does not hover.
4243     *
4244     * It works by creating an object that will occupy the entire window, so it
4245     * must be created using an @ref Win "elm_win" as parent only. The inwin
4246     * object can be hidden or restacked below every other object if it's
4247     * needed to show what's behind it without destroying it. If this is done,
4248     * the elm_win_inwin_activate() function can be used to bring it back to
4249     * full visibility again.
4250     *
4251     * There are three styles available in the default theme. These are:
4252     * @li default: The inwin is sized to take over most of the window it's
4253     * placed in.
4254     * @li minimal: The size of the inwin will be the minimum necessary to show
4255     * its contents.
4256     * @li minimal_vertical: Horizontally, the inwin takes as much space as
4257     * possible, but it's sized vertically the most it needs to fit its\
4258     * contents.
4259     *
4260     * Some examples of Inwin can be found in the following:
4261     * @li @ref inwin_example_01
4262     *
4263     * @{
4264     */
4265    /**
4266     * Adds an inwin to the current window
4267     *
4268     * The @p obj used as parent @b MUST be an @ref Win "Elementary Window".
4269     * Never call this function with anything other than the top-most window
4270     * as its parameter, unless you are fond of undefined behavior.
4271     *
4272     * After creating the object, the widget will set itself as resize object
4273     * for the window with elm_win_resize_object_add(), so when shown it will
4274     * appear to cover almost the entire window (how much of it depends on its
4275     * content and the style used). It must not be added into other container
4276     * objects and it needs not be moved or resized manually.
4277     *
4278     * @param parent The parent object
4279     * @return The new object or NULL if it cannot be created
4280     */
4281    EAPI Evas_Object          *elm_win_inwin_add(Evas_Object *obj) EINA_ARG_NONNULL(1);
4282    /**
4283     * Activates an inwin object, ensuring its visibility
4284     *
4285     * This function will make sure that the inwin @p obj is completely visible
4286     * by calling evas_object_show() and evas_object_raise() on it, to bring it
4287     * to the front. It also sets the keyboard focus to it, which will be passed
4288     * onto its content.
4289     *
4290     * The object's theme will also receive the signal "elm,action,show" with
4291     * source "elm".
4292     *
4293     * @param obj The inwin to activate
4294     */
4295    EAPI void                  elm_win_inwin_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
4296    /**
4297     * Set the content of an inwin object.
4298     *
4299     * Once the content object is set, a previously set one will be deleted.
4300     * If you want to keep that old content object, use the
4301     * elm_win_inwin_content_unset() function.
4302     *
4303     * @param obj The inwin object
4304     * @param content The object to set as content
4305     */
4306    EAPI void                  elm_win_inwin_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
4307    /**
4308     * Get the content of an inwin object.
4309     *
4310     * Return the content object which is set for this widget.
4311     *
4312     * The returned object is valid as long as the inwin is still alive and no
4313     * other content is set on it. Deleting the object will notify the inwin
4314     * about it and this one will be left empty.
4315     *
4316     * If you need to remove an inwin's content to be reused somewhere else,
4317     * see elm_win_inwin_content_unset().
4318     *
4319     * @param obj The inwin object
4320     * @return The content that is being used
4321     */
4322    EAPI Evas_Object          *elm_win_inwin_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4323    /**
4324     * Unset the content of an inwin object.
4325     *
4326     * Unparent and return the content object which was set for this widget.
4327     *
4328     * @param obj The inwin object
4329     * @return The content that was being used
4330     */
4331    EAPI Evas_Object          *elm_win_inwin_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4332    /**
4333     * @}
4334     */
4335    /* X specific calls - won't work on non-x engines (return 0) */
4336
4337    /**
4338     * Get the Ecore_X_Window of an Evas_Object
4339     *
4340     * @param obj The object
4341     *
4342     * @return The Ecore_X_Window of @p obj
4343     *
4344     * @ingroup Win
4345     */
4346    EAPI Ecore_X_Window elm_win_xwindow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4347
4348    /* smart callbacks called:
4349     * "delete,request" - the user requested to delete the window
4350     * "focus,in" - window got focus
4351     * "focus,out" - window lost focus
4352     * "moved" - window that holds the canvas was moved
4353     */
4354
4355    /**
4356     * @defgroup Bg Bg
4357     *
4358     * @image html img/widget/bg/preview-00.png
4359     * @image latex img/widget/bg/preview-00.eps
4360     *
4361     * @brief Background object, used for setting a solid color, image or Edje
4362     * group as background to a window or any container object.
4363     *
4364     * The bg object is used for setting a solid background to a window or
4365     * packing into any container object. It works just like an image, but has
4366     * some properties useful to a background, like setting it to tiled,
4367     * centered, scaled or stretched.
4368     * 
4369     * Default contents parts of the bg widget that you can use for are:
4370     * @li "elm.swallow.content" - overlay of the bg
4371     *
4372     * Here is some sample code using it:
4373     * @li @ref bg_01_example_page
4374     * @li @ref bg_02_example_page
4375     * @li @ref bg_03_example_page
4376     */
4377
4378    /* bg */
4379    typedef enum _Elm_Bg_Option
4380      {
4381         ELM_BG_OPTION_CENTER,  /**< center the background */
4382         ELM_BG_OPTION_SCALE,   /**< scale the background retaining aspect ratio */
4383         ELM_BG_OPTION_STRETCH, /**< stretch the background to fill */
4384         ELM_BG_OPTION_TILE     /**< tile background at its original size */
4385      } Elm_Bg_Option;
4386
4387    /**
4388     * Add a new background to the parent
4389     *
4390     * @param parent The parent object
4391     * @return The new object or NULL if it cannot be created
4392     *
4393     * @ingroup Bg
4394     */
4395    EAPI Evas_Object  *elm_bg_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4396
4397    /**
4398     * Set the file (image or edje) used for the background
4399     *
4400     * @param obj The bg object
4401     * @param file The file path
4402     * @param group Optional key (group in Edje) within the file
4403     *
4404     * This sets the image file used in the background object. The image (or edje)
4405     * will be stretched (retaining aspect if its an image file) to completely fill
4406     * the bg object. This may mean some parts are not visible.
4407     *
4408     * @note  Once the image of @p obj is set, a previously set one will be deleted,
4409     * even if @p file is NULL.
4410     *
4411     * @ingroup Bg
4412     */
4413    EAPI void          elm_bg_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
4414
4415    /**
4416     * Get the file (image or edje) used for the background
4417     *
4418     * @param obj The bg object
4419     * @param file The file path
4420     * @param group Optional key (group in Edje) within the file
4421     *
4422     * @ingroup Bg
4423     */
4424    EAPI void          elm_bg_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
4425
4426    /**
4427     * Set the option used for the background image
4428     *
4429     * @param obj The bg object
4430     * @param option The desired background option (TILE, SCALE)
4431     *
4432     * This sets the option used for manipulating the display of the background
4433     * image. The image can be tiled or scaled.
4434     *
4435     * @ingroup Bg
4436     */
4437    EAPI void          elm_bg_option_set(Evas_Object *obj, Elm_Bg_Option option) EINA_ARG_NONNULL(1);
4438
4439    /**
4440     * Get the option used for the background image
4441     *
4442     * @param obj The bg object
4443     * @return The desired background option (CENTER, SCALE, STRETCH or TILE)
4444     *
4445     * @ingroup Bg
4446     */
4447    EAPI Elm_Bg_Option elm_bg_option_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4448    /**
4449     * Set the option used for the background color
4450     *
4451     * @param obj The bg object
4452     * @param r
4453     * @param g
4454     * @param b
4455     *
4456     * This sets the color used for the background rectangle. Its range goes
4457     * from 0 to 255.
4458     *
4459     * @ingroup Bg
4460     */
4461    EAPI void          elm_bg_color_set(Evas_Object *obj, int r, int g, int b) EINA_ARG_NONNULL(1);
4462    /**
4463     * Get the option used for the background color
4464     *
4465     * @param obj The bg object
4466     * @param r
4467     * @param g
4468     * @param b
4469     *
4470     * @ingroup Bg
4471     */
4472    EAPI void          elm_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b) EINA_ARG_NONNULL(1);
4473
4474    /**
4475     * Set the overlay object used for the background object.
4476     *
4477     * @param obj The bg object
4478     * @param overlay The overlay object
4479     *
4480     * This provides a way for elm_bg to have an 'overlay' that will be on top
4481     * of the bg. Once the over object is set, a previously set one will be
4482     * deleted, even if you set the new one to NULL. If you want to keep that
4483     * old content object, use the elm_bg_overlay_unset() function.
4484     *
4485     * @ingroup Bg
4486     */
4487
4488    EAPI void          elm_bg_overlay_set(Evas_Object *obj, Evas_Object *overlay) EINA_ARG_NONNULL(1);
4489
4490    /**
4491     * Get the overlay object used for the background object.
4492     *
4493     * @param obj The bg object
4494     * @return The content that is being used
4495     *
4496     * Return the content object which is set for this widget
4497     *
4498     * @ingroup Bg
4499     */
4500    EAPI Evas_Object  *elm_bg_overlay_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4501
4502    /**
4503     * Get the overlay object used for the background object.
4504     *
4505     * @param obj The bg object
4506     * @return The content that was being used
4507     *
4508     * Unparent and return the overlay object which was set for this widget
4509     *
4510     * @ingroup Bg
4511     */
4512    EAPI Evas_Object  *elm_bg_overlay_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4513
4514    /**
4515     * Set the size of the pixmap representation of the image.
4516     *
4517     * This option just makes sense if an image is going to be set in the bg.
4518     *
4519     * @param obj The bg object
4520     * @param w The new width of the image pixmap representation.
4521     * @param h The new height of the image pixmap representation.
4522     *
4523     * This function sets a new size for pixmap representation of the given bg
4524     * image. It allows the image to be loaded already in the specified size,
4525     * reducing the memory usage and load time when loading a big image with load
4526     * size set to a smaller size.
4527     *
4528     * NOTE: this is just a hint, the real size of the pixmap may differ
4529     * depending on the type of image being loaded, being bigger than requested.
4530     *
4531     * @ingroup Bg
4532     */
4533    EAPI void          elm_bg_load_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
4534    /* smart callbacks called:
4535     */
4536
4537    /**
4538     * @defgroup Icon Icon
4539     *
4540     * @image html img/widget/icon/preview-00.png
4541     * @image latex img/widget/icon/preview-00.eps
4542     *
4543     * An object that provides standard icon images (delete, edit, arrows, etc.)
4544     * or a custom file (PNG, JPG, EDJE, etc.) used for an icon.
4545     *
4546     * The icon image requested can be in the elementary theme, or in the
4547     * freedesktop.org paths. It's possible to set the order of preference from
4548     * where the image will be used.
4549     *
4550     * This API is very similar to @ref Image, but with ready to use images.
4551     *
4552     * Default images provided by the theme are described below.
4553     *
4554     * The first list contains icons that were first intended to be used in
4555     * toolbars, but can be used in many other places too:
4556     * @li home
4557     * @li close
4558     * @li apps
4559     * @li arrow_up
4560     * @li arrow_down
4561     * @li arrow_left
4562     * @li arrow_right
4563     * @li chat
4564     * @li clock
4565     * @li delete
4566     * @li edit
4567     * @li refresh
4568     * @li folder
4569     * @li file
4570     *
4571     * Now some icons that were designed to be used in menus (but again, you can
4572     * use them anywhere else):
4573     * @li menu/home
4574     * @li menu/close
4575     * @li menu/apps
4576     * @li menu/arrow_up
4577     * @li menu/arrow_down
4578     * @li menu/arrow_left
4579     * @li menu/arrow_right
4580     * @li menu/chat
4581     * @li menu/clock
4582     * @li menu/delete
4583     * @li menu/edit
4584     * @li menu/refresh
4585     * @li menu/folder
4586     * @li menu/file
4587     *
4588     * And here we have some media player specific icons:
4589     * @li media_player/forward
4590     * @li media_player/info
4591     * @li media_player/next
4592     * @li media_player/pause
4593     * @li media_player/play
4594     * @li media_player/prev
4595     * @li media_player/rewind
4596     * @li media_player/stop
4597     *
4598     * Signals that you can add callbacks for are:
4599     *
4600     * "clicked" - This is called when a user has clicked the icon
4601     *
4602     * An example of usage for this API follows:
4603     * @li @ref tutorial_icon
4604     */
4605
4606    /**
4607     * @addtogroup Icon
4608     * @{
4609     */
4610
4611    typedef enum _Elm_Icon_Type
4612      {
4613         ELM_ICON_NONE,
4614         ELM_ICON_FILE,
4615         ELM_ICON_STANDARD
4616      } Elm_Icon_Type;
4617    /**
4618     * @enum _Elm_Icon_Lookup_Order
4619     * @typedef Elm_Icon_Lookup_Order
4620     *
4621     * Lookup order used by elm_icon_standard_set(). Should look for icons in the
4622     * theme, FDO paths, or both?
4623     *
4624     * @ingroup Icon
4625     */
4626    typedef enum _Elm_Icon_Lookup_Order
4627      {
4628         ELM_ICON_LOOKUP_FDO_THEME, /**< icon look up order: freedesktop, theme */
4629         ELM_ICON_LOOKUP_THEME_FDO, /**< icon look up order: theme, freedesktop */
4630         ELM_ICON_LOOKUP_FDO,       /**< icon look up order: freedesktop */
4631         ELM_ICON_LOOKUP_THEME      /**< icon look up order: theme */
4632      } Elm_Icon_Lookup_Order;
4633
4634    /**
4635     * Add a new icon object to the parent.
4636     *
4637     * @param parent The parent object
4638     * @return The new object or NULL if it cannot be created
4639     *
4640     * @see elm_icon_file_set()
4641     *
4642     * @ingroup Icon
4643     */
4644    EAPI Evas_Object          *elm_icon_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4645    /**
4646     * Set the file that will be used as icon.
4647     *
4648     * @param obj The icon object
4649     * @param file The path to file that will be used as icon image
4650     * @param group The group that the icon belongs to an edje file
4651     *
4652     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4653     *
4654     * @note The icon image set by this function can be changed by
4655     * elm_icon_standard_set().
4656     *
4657     * @see elm_icon_file_get()
4658     *
4659     * @ingroup Icon
4660     */
4661    EAPI Eina_Bool             elm_icon_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
4662    /**
4663     * Set a location in memory to be used as an icon
4664     *
4665     * @param obj The icon object
4666     * @param img The binary data that will be used as an image
4667     * @param size The size of binary data @p img
4668     * @param format Optional format of @p img to pass to the image loader
4669     * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
4670     *
4671     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4672     *
4673     * @note The icon image set by this function can be changed by
4674     * elm_icon_standard_set().
4675     *
4676     * @ingroup Icon
4677     */
4678    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);
4679    /**
4680     * Get the file that will be used as icon.
4681     *
4682     * @param obj The icon object
4683     * @param file The path to file that will be used as the icon image
4684     * @param group The group that the icon belongs to, in edje file
4685     *
4686     * @see elm_icon_file_set()
4687     *
4688     * @ingroup Icon
4689     */
4690    EAPI void                  elm_icon_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
4691    EAPI void                  elm_icon_thumb_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
4692    /**
4693     * Set the icon by icon standards names.
4694     *
4695     * @param obj The icon object
4696     * @param name The icon name
4697     *
4698     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4699     *
4700     * For example, freedesktop.org defines standard icon names such as "home",
4701     * "network", etc. There can be different icon sets to match those icon
4702     * keys. The @p name given as parameter is one of these "keys", and will be
4703     * used to look in the freedesktop.org paths and elementary theme. One can
4704     * change the lookup order with elm_icon_order_lookup_set().
4705     *
4706     * If name is not found in any of the expected locations and it is the
4707     * absolute path of an image file, this image will be used.
4708     *
4709     * @note The icon image set by this function can be changed by
4710     * elm_icon_file_set().
4711     *
4712     * @see elm_icon_standard_get()
4713     * @see elm_icon_file_set()
4714     *
4715     * @ingroup Icon
4716     */
4717    EAPI Eina_Bool             elm_icon_standard_set(Evas_Object *obj, const char *name) EINA_ARG_NONNULL(1);
4718    /**
4719     * Get the icon name set by icon standard names.
4720     *
4721     * @param obj The icon object
4722     * @return The icon name
4723     *
4724     * If the icon image was set using elm_icon_file_set() instead of
4725     * elm_icon_standard_set(), then this function will return @c NULL.
4726     *
4727     * @see elm_icon_standard_set()
4728     *
4729     * @ingroup Icon
4730     */
4731    EAPI const char           *elm_icon_standard_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4732    /**
4733     * Set the smooth scaling for an icon object.
4734     *
4735     * @param obj The icon object
4736     * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
4737     * otherwise. Default is @c EINA_TRUE.
4738     *
4739     * Set the scaling algorithm to be used when scaling the icon image. Smooth
4740     * scaling provides a better resulting image, but is slower.
4741     *
4742     * The smooth scaling should be disabled when making animations that change
4743     * the icon size, since they will be faster. Animations that don't require
4744     * resizing of the icon can keep the smooth scaling enabled (even if the icon
4745     * is already scaled, since the scaled icon image will be cached).
4746     *
4747     * @see elm_icon_smooth_get()
4748     *
4749     * @ingroup Icon
4750     */
4751    EAPI void                  elm_icon_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
4752    /**
4753     * Get whether smooth scaling is enabled for an icon object.
4754     *
4755     * @param obj The icon object
4756     * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
4757     *
4758     * @see elm_icon_smooth_set()
4759     *
4760     * @ingroup Icon
4761     */
4762    EAPI Eina_Bool             elm_icon_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4763    /**
4764     * Disable scaling of this object.
4765     *
4766     * @param obj The icon object.
4767     * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
4768     * otherwise. Default is @c EINA_FALSE.
4769     *
4770     * This function disables scaling of the icon object through the function
4771     * elm_object_scale_set(). However, this does not affect the object
4772     * size/resize in any way. For that effect, take a look at
4773     * elm_icon_scale_set().
4774     *
4775     * @see elm_icon_no_scale_get()
4776     * @see elm_icon_scale_set()
4777     * @see elm_object_scale_set()
4778     *
4779     * @ingroup Icon
4780     */
4781    EAPI void                  elm_icon_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
4782    /**
4783     * Get whether scaling is disabled on the object.
4784     *
4785     * @param obj The icon object
4786     * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
4787     *
4788     * @see elm_icon_no_scale_set()
4789     *
4790     * @ingroup Icon
4791     */
4792    EAPI Eina_Bool             elm_icon_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4793    /**
4794     * Set if the object is (up/down) resizable.
4795     *
4796     * @param obj The icon object
4797     * @param scale_up A bool to set if the object is resizable up. Default is
4798     * @c EINA_TRUE.
4799     * @param scale_down A bool to set if the object is resizable down. Default
4800     * is @c EINA_TRUE.
4801     *
4802     * This function limits the icon object resize ability. If @p scale_up is set to
4803     * @c EINA_FALSE, the object can't have its height or width resized to a value
4804     * higher than the original icon size. Same is valid for @p scale_down.
4805     *
4806     * @see elm_icon_scale_get()
4807     *
4808     * @ingroup Icon
4809     */
4810    EAPI void                  elm_icon_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
4811    /**
4812     * Get if the object is (up/down) resizable.
4813     *
4814     * @param obj The icon object
4815     * @param scale_up A bool to set if the object is resizable up
4816     * @param scale_down A bool to set if the object is resizable down
4817     *
4818     * @see elm_icon_scale_set()
4819     *
4820     * @ingroup Icon
4821     */
4822    EAPI void                  elm_icon_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
4823    /**
4824     * Get the object's image size
4825     *
4826     * @param obj The icon object
4827     * @param w A pointer to store the width in
4828     * @param h A pointer to store the height in
4829     *
4830     * @ingroup Icon
4831     */
4832    EAPI void                  elm_icon_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
4833    /**
4834     * Set if the icon fill the entire object area.
4835     *
4836     * @param obj The icon object
4837     * @param fill_outside @c EINA_TRUE if the object is filled outside,
4838     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
4839     *
4840     * When the icon object is resized to a different aspect ratio from the
4841     * original icon image, the icon image will still keep its aspect. This flag
4842     * tells how the image should fill the object's area. They are: keep the
4843     * entire icon inside the limits of height and width of the object (@p
4844     * fill_outside is @c EINA_FALSE) or let the extra width or height go outside
4845     * of the object, and the icon will fill the entire object (@p fill_outside
4846     * is @c EINA_TRUE).
4847     *
4848     * @note Unlike @ref Image, there's no option in icon to set the aspect ratio
4849     * retain property to false. Thus, the icon image will always keep its
4850     * original aspect ratio.
4851     *
4852     * @see elm_icon_fill_outside_get()
4853     * @see elm_image_fill_outside_set()
4854     *
4855     * @ingroup Icon
4856     */
4857    EAPI void                  elm_icon_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
4858    /**
4859     * Get if the object is filled outside.
4860     *
4861     * @param obj The icon object
4862     * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
4863     *
4864     * @see elm_icon_fill_outside_set()
4865     *
4866     * @ingroup Icon
4867     */
4868    EAPI Eina_Bool             elm_icon_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4869    /**
4870     * Set the prescale size for the icon.
4871     *
4872     * @param obj The icon object
4873     * @param size The prescale size. This value is used for both width and
4874     * height.
4875     *
4876     * This function sets a new size for pixmap representation of the given
4877     * icon. It allows the icon to be loaded already in the specified size,
4878     * reducing the memory usage and load time when loading a big icon with load
4879     * size set to a smaller size.
4880     *
4881     * It's equivalent to the elm_bg_load_size_set() function for bg.
4882     *
4883     * @note this is just a hint, the real size of the pixmap may differ
4884     * depending on the type of icon being loaded, being bigger than requested.
4885     *
4886     * @see elm_icon_prescale_get()
4887     * @see elm_bg_load_size_set()
4888     *
4889     * @ingroup Icon
4890     */
4891    EAPI void                  elm_icon_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
4892    /**
4893     * Get the prescale size for the icon.
4894     *
4895     * @param obj The icon object
4896     * @return The prescale size
4897     *
4898     * @see elm_icon_prescale_set()
4899     *
4900     * @ingroup Icon
4901     */
4902    EAPI int                   elm_icon_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4903    /**
4904     * Sets the icon lookup order used by elm_icon_standard_set().
4905     *
4906     * @param obj The icon object
4907     * @param order The icon lookup order (can be one of
4908     * ELM_ICON_LOOKUP_FDO_THEME, ELM_ICON_LOOKUP_THEME_FDO, ELM_ICON_LOOKUP_FDO
4909     * or ELM_ICON_LOOKUP_THEME)
4910     *
4911     * @see elm_icon_order_lookup_get()
4912     * @see Elm_Icon_Lookup_Order
4913     *
4914     * @ingroup Icon
4915     */
4916    EAPI void                  elm_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
4917    /**
4918     * Gets the icon lookup order.
4919     *
4920     * @param obj The icon object
4921     * @return The icon lookup order
4922     *
4923     * @see elm_icon_order_lookup_set()
4924     * @see Elm_Icon_Lookup_Order
4925     *
4926     * @ingroup Icon
4927     */
4928    EAPI Elm_Icon_Lookup_Order elm_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4929    /**
4930     * Get if the icon supports animation or not.
4931     *
4932     * @param obj The icon object
4933     * @return @c EINA_TRUE if the icon supports animation,
4934     *         @c EINA_FALSE otherwise.
4935     *
4936     * Return if this elm icon's image can be animated. Currently Evas only
4937     * supports gif animation. If the return value is EINA_FALSE, other
4938     * elm_icon_animated_XXX APIs won't work.
4939     * @ingroup Icon
4940     */
4941    EAPI Eina_Bool             elm_icon_anim_available_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4942    /**
4943     * Set animation mode of the icon.
4944     *
4945     * @param obj The icon object
4946     * @param anim @c EINA_TRUE if the object do animation job,
4947     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
4948     *
4949     * Since the default animation mode is set to EINA_FALSE, 
4950     * the icon is shown without animation.
4951     * This might be desirable when the application developer wants to show
4952     * a snapshot of the animated icon.
4953     * Set it to EINA_TRUE when the icon needs to be animated.
4954     * @ingroup Icon
4955     */
4956    EAPI void                  elm_icon_anim_set(Evas_Object *obj, Eina_Bool anim) EINA_ARG_NONNULL(1);
4957    /**
4958     * Get animation mode of the icon.
4959     *
4960     * @param obj The icon object
4961     * @return The animation mode of the icon object
4962     * @see elm_icon_animated_set
4963     * @ingroup Icon
4964     */
4965    EAPI Eina_Bool             elm_icon_anim_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4966    /**
4967     * Set animation play mode of the icon.
4968     *
4969     * @param obj The icon object
4970     * @param play @c EINA_TRUE the object play animation images,
4971     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
4972     *
4973     * To play elm icon's animation, set play to EINA_TURE.
4974     * For example, you make gif player using this set/get API and click event.
4975     *
4976     * 1. Click event occurs
4977     * 2. Check play flag using elm_icon_animaged_play_get
4978     * 3. If elm icon was playing, set play to EINA_FALSE.
4979     *    Then animation will be stopped and vice versa
4980     * @ingroup Icon
4981     */
4982    EAPI void                  elm_icon_anim_play_set(Evas_Object *obj, Eina_Bool play) EINA_ARG_NONNULL(1);
4983    /**
4984     * Get animation play mode of the icon.
4985     *
4986     * @param obj The icon object
4987     * @return The play mode of the icon object
4988     *
4989     * @see elm_icon_animated_play_get
4990     * @ingroup Icon
4991     */
4992    EAPI Eina_Bool             elm_icon_anim_play_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4993
4994    /**
4995     * @}
4996     */
4997
4998    /**
4999     * @defgroup Image Image
5000     *
5001     * @image html img/widget/image/preview-00.png
5002     * @image latex img/widget/image/preview-00.eps
5003
5004     *
5005     * An object that allows one to load an image file to it. It can be used
5006     * anywhere like any other elementary widget.
5007     *
5008     * This widget provides most of the functionality provided from @ref Bg or @ref
5009     * Icon, but with a slightly different API (use the one that fits better your
5010     * needs).
5011     *
5012     * The features not provided by those two other image widgets are:
5013     * @li allowing to get the basic @c Evas_Object with elm_image_object_get();
5014     * @li change the object orientation with elm_image_orient_set();
5015     * @li and turning the image editable with elm_image_editable_set().
5016     *
5017     * Signals that you can add callbacks for are:
5018     *
5019     * @li @c "clicked" - This is called when a user has clicked the image
5020     *
5021     * An example of usage for this API follows:
5022     * @li @ref tutorial_image
5023     */
5024
5025    /**
5026     * @addtogroup Image
5027     * @{
5028     */
5029
5030    /**
5031     * @enum _Elm_Image_Orient
5032     * @typedef Elm_Image_Orient
5033     *
5034     * Possible orientation options for elm_image_orient_set().
5035     *
5036     * @image html elm_image_orient_set.png
5037     * @image latex elm_image_orient_set.eps width=\textwidth
5038     *
5039     * @ingroup Image
5040     */
5041    typedef enum _Elm_Image_Orient
5042      {
5043         ELM_IMAGE_ORIENT_NONE, /**< no orientation change */
5044         ELM_IMAGE_ROTATE_90_CW, /**< rotate 90 degrees clockwise */
5045         ELM_IMAGE_ROTATE_180_CW, /**< rotate 180 degrees clockwise */
5046         ELM_IMAGE_ROTATE_90_CCW, /**< rotate 90 degrees counter-clockwise (i.e. 270 degrees clockwise) */
5047         ELM_IMAGE_FLIP_HORIZONTAL, /**< flip image horizontally */
5048         ELM_IMAGE_FLIP_VERTICAL, /**< flip image vertically */
5049         ELM_IMAGE_FLIP_TRANSPOSE, /**< flip the image along the y = (side - x) line*/
5050         ELM_IMAGE_FLIP_TRANSVERSE /**< flip the image along the y = x line */
5051      } Elm_Image_Orient;
5052
5053    /**
5054     * Add a new image to the parent.
5055     *
5056     * @param parent The parent object
5057     * @return The new object or NULL if it cannot be created
5058     *
5059     * @see elm_image_file_set()
5060     *
5061     * @ingroup Image
5062     */
5063    EAPI Evas_Object     *elm_image_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5064    /**
5065     * Set the file that will be used as image.
5066     *
5067     * @param obj The image object
5068     * @param file The path to file that will be used as image
5069     * @param group The group that the image belongs in edje file (if it's an
5070     * edje image)
5071     *
5072     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5073     *
5074     * @see elm_image_file_get()
5075     *
5076     * @ingroup Image
5077     */
5078    EAPI Eina_Bool        elm_image_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
5079    /**
5080     * Get the file that will be used as image.
5081     *
5082     * @param obj The image object
5083     * @param file The path to file
5084     * @param group The group that the image belongs in edje file
5085     *
5086     * @see elm_image_file_set()
5087     *
5088     * @ingroup Image
5089     */
5090    EAPI void             elm_image_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
5091    /**
5092     * Set the smooth effect for an image.
5093     *
5094     * @param obj The image object
5095     * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
5096     * otherwise. Default is @c EINA_TRUE.
5097     *
5098     * Set the scaling algorithm to be used when scaling the image. Smooth
5099     * scaling provides a better resulting image, but is slower.
5100     *
5101     * The smooth scaling should be disabled when making animations that change
5102     * the image size, since it will be faster. Animations that don't require
5103     * resizing of the image can keep the smooth scaling enabled (even if the
5104     * image is already scaled, since the scaled image will be cached).
5105     *
5106     * @see elm_image_smooth_get()
5107     *
5108     * @ingroup Image
5109     */
5110    EAPI void             elm_image_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
5111    /**
5112     * Get the smooth effect for an image.
5113     *
5114     * @param obj The image object
5115     * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
5116     *
5117     * @see elm_image_smooth_get()
5118     *
5119     * @ingroup Image
5120     */
5121    EAPI Eina_Bool        elm_image_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5122
5123    /**
5124     * Gets the current size of the image.
5125     *
5126     * @param obj The image object.
5127     * @param w Pointer to store width, or NULL.
5128     * @param h Pointer to store height, or NULL.
5129     *
5130     * This is the real size of the image, not the size of the object.
5131     *
5132     * On error, neither w or h will be written.
5133     *
5134     * @ingroup Image
5135     */
5136    EAPI void             elm_image_object_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
5137    /**
5138     * Disable scaling of this object.
5139     *
5140     * @param obj The image object.
5141     * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
5142     * otherwise. Default is @c EINA_FALSE.
5143     *
5144     * This function disables scaling of the elm_image widget through the
5145     * function elm_object_scale_set(). However, this does not affect the widget
5146     * size/resize in any way. For that effect, take a look at
5147     * elm_image_scale_set().
5148     *
5149     * @see elm_image_no_scale_get()
5150     * @see elm_image_scale_set()
5151     * @see elm_object_scale_set()
5152     *
5153     * @ingroup Image
5154     */
5155    EAPI void             elm_image_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
5156    /**
5157     * Get whether scaling is disabled on the object.
5158     *
5159     * @param obj The image object
5160     * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
5161     *
5162     * @see elm_image_no_scale_set()
5163     *
5164     * @ingroup Image
5165     */
5166    EAPI Eina_Bool        elm_image_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5167    /**
5168     * Set if the object is (up/down) resizable.
5169     *
5170     * @param obj The image object
5171     * @param scale_up A bool to set if the object is resizable up. Default is
5172     * @c EINA_TRUE.
5173     * @param scale_down A bool to set if the object is resizable down. Default
5174     * is @c EINA_TRUE.
5175     *
5176     * This function limits the image resize ability. If @p scale_up is set to
5177     * @c EINA_FALSE, the object can't have its height or width resized to a value
5178     * higher than the original image size. Same is valid for @p scale_down.
5179     *
5180     * @see elm_image_scale_get()
5181     *
5182     * @ingroup Image
5183     */
5184    EAPI void             elm_image_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
5185    /**
5186     * Get if the object is (up/down) resizable.
5187     *
5188     * @param obj The image object
5189     * @param scale_up A bool to set if the object is resizable up
5190     * @param scale_down A bool to set if the object is resizable down
5191     *
5192     * @see elm_image_scale_set()
5193     *
5194     * @ingroup Image
5195     */
5196    EAPI void             elm_image_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
5197    /**
5198     * Set if the image fills the entire object area, when keeping the aspect ratio.
5199     *
5200     * @param obj The image object
5201     * @param fill_outside @c EINA_TRUE if the object is filled outside,
5202     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5203     *
5204     * When the image should keep its aspect ratio even if resized to another
5205     * aspect ratio, there are two possibilities to resize it: keep the entire
5206     * image inside the limits of height and width of the object (@p fill_outside
5207     * is @c EINA_FALSE) or let the extra width or height go outside of the object,
5208     * and the image will fill the entire object (@p fill_outside is @c EINA_TRUE).
5209     *
5210     * @note This option will have no effect if
5211     * elm_image_aspect_ratio_retained_set() is set to @c EINA_FALSE.
5212     *
5213     * @see elm_image_fill_outside_get()
5214     * @see elm_image_aspect_ratio_retained_set()
5215     *
5216     * @ingroup Image
5217     */
5218    EAPI void             elm_image_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
5219    /**
5220     * Get if the object is filled outside
5221     *
5222     * @param obj The image object
5223     * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
5224     *
5225     * @see elm_image_fill_outside_set()
5226     *
5227     * @ingroup Image
5228     */
5229    EAPI Eina_Bool        elm_image_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5230    /**
5231     * Set the prescale size for the image
5232     *
5233     * @param obj The image object
5234     * @param size The prescale size. This value is used for both width and
5235     * height.
5236     *
5237     * This function sets a new size for pixmap representation of the given
5238     * image. It allows the image to be loaded already in the specified size,
5239     * reducing the memory usage and load time when loading a big image with load
5240     * size set to a smaller size.
5241     *
5242     * It's equivalent to the elm_bg_load_size_set() function for bg.
5243     *
5244     * @note this is just a hint, the real size of the pixmap may differ
5245     * depending on the type of image being loaded, being bigger than requested.
5246     *
5247     * @see elm_image_prescale_get()
5248     * @see elm_bg_load_size_set()
5249     *
5250     * @ingroup Image
5251     */
5252    EAPI void             elm_image_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
5253    /**
5254     * Get the prescale size for the image
5255     *
5256     * @param obj The image object
5257     * @return The prescale size
5258     *
5259     * @see elm_image_prescale_set()
5260     *
5261     * @ingroup Image
5262     */
5263    EAPI int              elm_image_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5264    /**
5265     * Set the image orientation.
5266     *
5267     * @param obj The image object
5268     * @param orient The image orientation @ref Elm_Image_Orient
5269     *  Default is #ELM_IMAGE_ORIENT_NONE.
5270     *
5271     * This function allows to rotate or flip the given image.
5272     *
5273     * @see elm_image_orient_get()
5274     * @see @ref Elm_Image_Orient
5275     *
5276     * @ingroup Image
5277     */
5278    EAPI void             elm_image_orient_set(Evas_Object *obj, Elm_Image_Orient orient) EINA_ARG_NONNULL(1);
5279    /**
5280     * Get the image orientation.
5281     *
5282     * @param obj The image object
5283     * @return The image orientation @ref Elm_Image_Orient
5284     *
5285     * @see elm_image_orient_set()
5286     * @see @ref Elm_Image_Orient
5287     *
5288     * @ingroup Image
5289     */
5290    EAPI Elm_Image_Orient elm_image_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5291    /**
5292     * Make the image 'editable'.
5293     *
5294     * @param obj Image object.
5295     * @param set Turn on or off editability. Default is @c EINA_FALSE.
5296     *
5297     * This means the image is a valid drag target for drag and drop, and can be
5298     * cut or pasted too.
5299     *
5300     * @ingroup Image
5301     */
5302    EAPI void             elm_image_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
5303    /**
5304     * Check if the image 'editable'.
5305     *
5306     * @param obj Image object.
5307     * @return Editability.
5308     *
5309     * A return value of EINA_TRUE means the image is a valid drag target
5310     * for drag and drop, and can be cut or pasted too.
5311     *
5312     * @ingroup Image
5313     */
5314    EAPI Eina_Bool        elm_image_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5315    /**
5316     * Get the basic Evas_Image object from this object (widget).
5317     *
5318     * @param obj The image object to get the inlined image from
5319     * @return The inlined image object, or NULL if none exists
5320     *
5321     * This function allows one to get the underlying @c Evas_Object of type
5322     * Image from this elementary widget. It can be useful to do things like get
5323     * the pixel data, save the image to a file, etc.
5324     *
5325     * @note Be careful to not manipulate it, as it is under control of
5326     * elementary.
5327     *
5328     * @ingroup Image
5329     */
5330    EAPI Evas_Object     *elm_image_object_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5331    /**
5332     * Set whether the original aspect ratio of the image should be kept on resize.
5333     *
5334     * @param obj The image object.
5335     * @param retained @c EINA_TRUE if the image should retain the aspect,
5336     * @c EINA_FALSE otherwise.
5337     *
5338     * The original aspect ratio (width / height) of the image is usually
5339     * distorted to match the object's size. Enabling this option will retain
5340     * this original aspect, and the way that the image is fit into the object's
5341     * area depends on the option set by elm_image_fill_outside_set().
5342     *
5343     * @see elm_image_aspect_ratio_retained_get()
5344     * @see elm_image_fill_outside_set()
5345     *
5346     * @ingroup Image
5347     */
5348    EAPI void             elm_image_aspect_ratio_retained_set(Evas_Object *obj, Eina_Bool retained) EINA_ARG_NONNULL(1);
5349    /**
5350     * Get if the object retains the original aspect ratio.
5351     *
5352     * @param obj The image object.
5353     * @return @c EINA_TRUE if the object keeps the original aspect, @c EINA_FALSE
5354     * otherwise.
5355     *
5356     * @ingroup Image
5357     */
5358    EAPI Eina_Bool        elm_image_aspect_ratio_retained_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5359
5360    /**
5361     * @}
5362     */
5363
5364    /* glview */
5365    typedef void (*Elm_GLView_Func_Cb)(Evas_Object *obj);
5366
5367    /* old API compatibility */
5368    typedef Elm_GLView_Func_Cb Elm_GLView_Func;
5369
5370    typedef enum _Elm_GLView_Mode
5371      {
5372         ELM_GLVIEW_ALPHA   = 1,
5373         ELM_GLVIEW_DEPTH   = 2,
5374         ELM_GLVIEW_STENCIL = 4
5375      } Elm_GLView_Mode;
5376
5377    /**
5378     * Defines a policy for the glview resizing.
5379     *
5380     * @note Default is ELM_GLVIEW_RESIZE_POLICY_RECREATE
5381     */
5382    typedef enum _Elm_GLView_Resize_Policy
5383      {
5384         ELM_GLVIEW_RESIZE_POLICY_RECREATE = 1,      /**< Resize the internal surface along with the image */
5385         ELM_GLVIEW_RESIZE_POLICY_SCALE    = 2       /**< Only reize the internal image and not the surface */
5386      } Elm_GLView_Resize_Policy;
5387
5388    typedef enum _Elm_GLView_Render_Policy
5389      {
5390         ELM_GLVIEW_RENDER_POLICY_ON_DEMAND = 1,     /**< Render only when there is a need for redrawing */
5391         ELM_GLVIEW_RENDER_POLICY_ALWAYS    = 2      /**< Render always even when it is not visible */
5392      } Elm_GLView_Render_Policy;
5393
5394    /**
5395     * @defgroup GLView
5396     *
5397     * A simple GLView widget that allows GL rendering.
5398     *
5399     * Signals that you can add callbacks for are:
5400     *
5401     * @{
5402     */
5403
5404    /**
5405     * Add a new glview to the parent
5406     *
5407     * @param parent The parent object
5408     * @return The new object or NULL if it cannot be created
5409     *
5410     * @ingroup GLView
5411     */
5412    EAPI Evas_Object     *elm_glview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5413
5414    /**
5415     * Sets the size of the glview
5416     *
5417     * @param obj The glview object
5418     * @param width width of the glview object
5419     * @param height height of the glview object
5420     *
5421     * @ingroup GLView
5422     */
5423    EAPI void             elm_glview_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
5424
5425    /**
5426     * Gets the size of the glview.
5427     *
5428     * @param obj The glview object
5429     * @param width width of the glview object
5430     * @param height height of the glview object
5431     *
5432     * Note that this function returns the actual image size of the
5433     * glview.  This means that when the scale policy is set to
5434     * ELM_GLVIEW_RESIZE_POLICY_SCALE, it'll return the non-scaled
5435     * size.
5436     *
5437     * @ingroup GLView
5438     */
5439    EAPI void             elm_glview_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
5440
5441    /**
5442     * Gets the gl api struct for gl rendering
5443     *
5444     * @param obj The glview object
5445     * @return The api object or NULL if it cannot be created
5446     *
5447     * @ingroup GLView
5448     */
5449    EAPI Evas_GL_API     *elm_glview_gl_api_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5450
5451    /**
5452     * Set the mode of the GLView. Supports Three simple modes.
5453     *
5454     * @param obj The glview object
5455     * @param mode The mode Options OR'ed enabling Alpha, Depth, Stencil.
5456     * @return True if set properly.
5457     *
5458     * @ingroup GLView
5459     */
5460    EAPI Eina_Bool        elm_glview_mode_set(Evas_Object *obj, Elm_GLView_Mode mode) EINA_ARG_NONNULL(1);
5461
5462    /**
5463     * Set the resize policy for the glview object.
5464     *
5465     * @param obj The glview object.
5466     * @param policy The scaling policy.
5467     *
5468     * By default, the resize policy is set to
5469     * ELM_GLVIEW_RESIZE_POLICY_RECREATE.  When resize is called it
5470     * destroys the previous surface and recreates the newly specified
5471     * size. If the policy is set to ELM_GLVIEW_RESIZE_POLICY_SCALE,
5472     * however, glview only scales the image object and not the underlying
5473     * GL Surface.
5474     *
5475     * @ingroup GLView
5476     */
5477    EAPI Eina_Bool        elm_glview_resize_policy_set(Evas_Object *obj, Elm_GLView_Resize_Policy policy) EINA_ARG_NONNULL(1);
5478
5479    /**
5480     * Set the render policy for the glview object.
5481     *
5482     * @param obj The glview object.
5483     * @param policy The render policy.
5484     *
5485     * By default, the render policy is set to
5486     * ELM_GLVIEW_RENDER_POLICY_ON_DEMAND.  This policy is set such
5487     * that during the render loop, glview is only redrawn if it needs
5488     * to be redrawn. (i.e. When it is visible) If the policy is set to
5489     * ELM_GLVIEWW_RENDER_POLICY_ALWAYS, it redraws regardless of
5490     * whether it is visible/need redrawing or not.
5491     *
5492     * @ingroup GLView
5493     */
5494    EAPI Eina_Bool        elm_glview_render_policy_set(Evas_Object *obj, Elm_GLView_Render_Policy policy) EINA_ARG_NONNULL(1);
5495
5496    /**
5497     * Set the init function that runs once in the main loop.
5498     *
5499     * @param obj The glview object.
5500     * @param func The init function to be registered.
5501     *
5502     * The registered init function gets called once during the render loop.
5503     *
5504     * @ingroup GLView
5505     */
5506    EAPI void             elm_glview_init_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5507
5508    /**
5509     * Set the render function that runs in the main loop.
5510     *
5511     * @param obj The glview object.
5512     * @param func The delete function to be registered.
5513     *
5514     * The registered del function gets called when GLView object is deleted.
5515     *
5516     * @ingroup GLView
5517     */
5518    EAPI void             elm_glview_del_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5519
5520    /**
5521     * Set the resize function that gets called when resize happens.
5522     *
5523     * @param obj The glview object.
5524     * @param func The resize function to be registered.
5525     *
5526     * @ingroup GLView
5527     */
5528    EAPI void             elm_glview_resize_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5529
5530    /**
5531     * Set the render function that runs in the main loop.
5532     *
5533     * @param obj The glview object.
5534     * @param func The render function to be registered.
5535     *
5536     * @ingroup GLView
5537     */
5538    EAPI void             elm_glview_render_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5539
5540    /**
5541     * Notifies that there has been changes in the GLView.
5542     *
5543     * @param obj The glview object.
5544     *
5545     * @ingroup GLView
5546     */
5547    EAPI void             elm_glview_changed_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
5548
5549    /**
5550     * @}
5551     */
5552
5553    /* box */
5554    /**
5555     * @defgroup Box Box
5556     *
5557     * @image html img/widget/box/preview-00.png
5558     * @image latex img/widget/box/preview-00.eps width=\textwidth
5559     *
5560     * @image html img/box.png
5561     * @image latex img/box.eps width=\textwidth
5562     *
5563     * A box arranges objects in a linear fashion, governed by a layout function
5564     * that defines the details of this arrangement.
5565     *
5566     * By default, the box will use an internal function to set the layout to
5567     * a single row, either vertical or horizontal. This layout is affected
5568     * by a number of parameters, such as the homogeneous flag set by
5569     * elm_box_homogeneous_set(), the values given by elm_box_padding_set() and
5570     * elm_box_align_set() and the hints set to each object in the box.
5571     *
5572     * For this default layout, it's possible to change the orientation with
5573     * elm_box_horizontal_set(). The box will start in the vertical orientation,
5574     * placing its elements ordered from top to bottom. When horizontal is set,
5575     * the order will go from left to right. If the box is set to be
5576     * homogeneous, every object in it will be assigned the same space, that
5577     * of the largest object. Padding can be used to set some spacing between
5578     * the cell given to each object. The alignment of the box, set with
5579     * elm_box_align_set(), determines how the bounding box of all the elements
5580     * will be placed within the space given to the box widget itself.
5581     *
5582     * The size hints of each object also affect how they are placed and sized
5583     * within the box. evas_object_size_hint_min_set() will give the minimum
5584     * size the object can have, and the box will use it as the basis for all
5585     * latter calculations. Elementary widgets set their own minimum size as
5586     * needed, so there's rarely any need to use it manually.
5587     *
5588     * evas_object_size_hint_weight_set(), when not in homogeneous mode, is
5589     * used to tell whether the object will be allocated the minimum size it
5590     * needs or if the space given to it should be expanded. It's important
5591     * to realize that expanding the size given to the object is not the same
5592     * thing as resizing the object. It could very well end being a small
5593     * widget floating in a much larger empty space. If not set, the weight
5594     * for objects will normally be 0.0 for both axis, meaning the widget will
5595     * not be expanded. To take as much space possible, set the weight to
5596     * EVAS_HINT_EXPAND (defined to 1.0) for the desired axis to expand.
5597     *
5598     * Besides how much space each object is allocated, it's possible to control
5599     * how the widget will be placed within that space using
5600     * evas_object_size_hint_align_set(). By default, this value will be 0.5
5601     * for both axis, meaning the object will be centered, but any value from
5602     * 0.0 (left or top, for the @c x and @c y axis, respectively) to 1.0
5603     * (right or bottom) can be used. The special value EVAS_HINT_FILL, which
5604     * is -1.0, means the object will be resized to fill the entire space it
5605     * was allocated.
5606     *
5607     * In addition, customized functions to define the layout can be set, which
5608     * allow the application developer to organize the objects within the box
5609     * in any number of ways.
5610     *
5611     * The special elm_box_layout_transition() function can be used
5612     * to switch from one layout to another, animating the motion of the
5613     * children of the box.
5614     *
5615     * @note Objects should not be added to box objects using _add() calls.
5616     *
5617     * Some examples on how to use boxes follow:
5618     * @li @ref box_example_01
5619     * @li @ref box_example_02
5620     *
5621     * @{
5622     */
5623    /**
5624     * @typedef Elm_Box_Transition
5625     *
5626     * Opaque handler containing the parameters to perform an animated
5627     * transition of the layout the box uses.
5628     *
5629     * @see elm_box_transition_new()
5630     * @see elm_box_layout_set()
5631     * @see elm_box_layout_transition()
5632     */
5633    typedef struct _Elm_Box_Transition Elm_Box_Transition;
5634
5635    /**
5636     * Add a new box to the parent
5637     *
5638     * By default, the box will be in vertical mode and non-homogeneous.
5639     *
5640     * @param parent The parent object
5641     * @return The new object or NULL if it cannot be created
5642     */
5643    EAPI Evas_Object        *elm_box_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5644    /**
5645     * Set the horizontal orientation
5646     *
5647     * By default, box object arranges their contents vertically from top to
5648     * bottom.
5649     * By calling this function with @p horizontal as EINA_TRUE, the box will
5650     * become horizontal, arranging contents from left to right.
5651     *
5652     * @note This flag is ignored if a custom layout function is set.
5653     *
5654     * @param obj The box object
5655     * @param horizontal The horizontal flag (EINA_TRUE = horizontal,
5656     * EINA_FALSE = vertical)
5657     */
5658    EAPI void                elm_box_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
5659    /**
5660     * Get the horizontal orientation
5661     *
5662     * @param obj The box object
5663     * @return EINA_TRUE if the box is set to horizintal mode, EINA_FALSE otherwise
5664     */
5665    EAPI Eina_Bool           elm_box_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5666    /**
5667     * Set the box to arrange its children homogeneously
5668     *
5669     * If enabled, homogeneous layout makes all items the same size, according
5670     * to the size of the largest of its children.
5671     *
5672     * @note This flag is ignored if a custom layout function is set.
5673     *
5674     * @param obj The box object
5675     * @param homogeneous The homogeneous flag
5676     */
5677    EAPI void                elm_box_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
5678    /**
5679     * Get whether the box is using homogeneous mode or not
5680     *
5681     * @param obj The box object
5682     * @return EINA_TRUE if it's homogeneous, EINA_FALSE otherwise
5683     */
5684    EAPI Eina_Bool           elm_box_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5685    EINA_DEPRECATED EAPI void elm_box_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
5686    EINA_DEPRECATED EAPI Eina_Bool elm_box_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5687    /**
5688     * Add an object to the beginning of the pack list
5689     *
5690     * Pack @p subobj into the box @p obj, placing it first in the list of
5691     * children objects. The actual position the object will get on screen
5692     * depends on the layout used. If no custom layout is set, it will be at
5693     * the top or left, depending if the box is vertical or horizontal,
5694     * respectively.
5695     *
5696     * @param obj The box object
5697     * @param subobj The object to add to the box
5698     *
5699     * @see elm_box_pack_end()
5700     * @see elm_box_pack_before()
5701     * @see elm_box_pack_after()
5702     * @see elm_box_unpack()
5703     * @see elm_box_unpack_all()
5704     * @see elm_box_clear()
5705     */
5706    EAPI void                elm_box_pack_start(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5707    /**
5708     * Add an object at the end of the pack list
5709     *
5710     * Pack @p subobj into the box @p obj, placing it last in the list of
5711     * children objects. The actual position the object will get on screen
5712     * depends on the layout used. If no custom layout is set, it will be at
5713     * the bottom or right, depending if the box is vertical or horizontal,
5714     * respectively.
5715     *
5716     * @param obj The box object
5717     * @param subobj The object to add to the box
5718     *
5719     * @see elm_box_pack_start()
5720     * @see elm_box_pack_before()
5721     * @see elm_box_pack_after()
5722     * @see elm_box_unpack()
5723     * @see elm_box_unpack_all()
5724     * @see elm_box_clear()
5725     */
5726    EAPI void                elm_box_pack_end(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5727    /**
5728     * Adds an object to the box before the indicated object
5729     *
5730     * This will add the @p subobj to the box indicated before the object
5731     * indicated with @p before. If @p before is not already in the box, results
5732     * are undefined. Before means either to the left of the indicated object or
5733     * above it depending on orientation.
5734     *
5735     * @param obj The box object
5736     * @param subobj The object to add to the box
5737     * @param before The object before which to add it
5738     *
5739     * @see elm_box_pack_start()
5740     * @see elm_box_pack_end()
5741     * @see elm_box_pack_after()
5742     * @see elm_box_unpack()
5743     * @see elm_box_unpack_all()
5744     * @see elm_box_clear()
5745     */
5746    EAPI void                elm_box_pack_before(Evas_Object *obj, Evas_Object *subobj, Evas_Object *before) EINA_ARG_NONNULL(1);
5747    /**
5748     * Adds an object to the box after the indicated object
5749     *
5750     * This will add the @p subobj to the box indicated after the object
5751     * indicated with @p after. If @p after is not already in the box, results
5752     * are undefined. After means either to the right of the indicated object or
5753     * below it depending on orientation.
5754     *
5755     * @param obj The box object
5756     * @param subobj The object to add to the box
5757     * @param after The object after which to add it
5758     *
5759     * @see elm_box_pack_start()
5760     * @see elm_box_pack_end()
5761     * @see elm_box_pack_before()
5762     * @see elm_box_unpack()
5763     * @see elm_box_unpack_all()
5764     * @see elm_box_clear()
5765     */
5766    EAPI void                elm_box_pack_after(Evas_Object *obj, Evas_Object *subobj, Evas_Object *after) EINA_ARG_NONNULL(1);
5767    /**
5768     * Clear the box of all children
5769     *
5770     * Remove all the elements contained by the box, deleting the respective
5771     * objects.
5772     *
5773     * @param obj The box object
5774     *
5775     * @see elm_box_unpack()
5776     * @see elm_box_unpack_all()
5777     */
5778    EAPI void                elm_box_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
5779    /**
5780     * Unpack a box item
5781     *
5782     * Remove the object given by @p subobj from the box @p obj without
5783     * deleting it.
5784     *
5785     * @param obj The box object
5786     *
5787     * @see elm_box_unpack_all()
5788     * @see elm_box_clear()
5789     */
5790    EAPI void                elm_box_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5791    /**
5792     * Remove all items from the box, without deleting them
5793     *
5794     * Clear the box from all children, but don't delete the respective objects.
5795     * If no other references of the box children exist, the objects will never
5796     * be deleted, and thus the application will leak the memory. Make sure
5797     * when using this function that you hold a reference to all the objects
5798     * in the box @p obj.
5799     *
5800     * @param obj The box object
5801     *
5802     * @see elm_box_clear()
5803     * @see elm_box_unpack()
5804     */
5805    EAPI void                elm_box_unpack_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
5806    /**
5807     * Retrieve a list of the objects packed into the box
5808     *
5809     * Returns a new @c Eina_List with a pointer to @c Evas_Object in its nodes.
5810     * The order of the list corresponds to the packing order the box uses.
5811     *
5812     * You must free this list with eina_list_free() once you are done with it.
5813     *
5814     * @param obj The box object
5815     */
5816    EAPI const Eina_List    *elm_box_children_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5817    /**
5818     * Set the space (padding) between the box's elements.
5819     *
5820     * Extra space in pixels that will be added between a box child and its
5821     * neighbors after its containing cell has been calculated. This padding
5822     * is set for all elements in the box, besides any possible padding that
5823     * individual elements may have through their size hints.
5824     *
5825     * @param obj The box object
5826     * @param horizontal The horizontal space between elements
5827     * @param vertical The vertical space between elements
5828     */
5829    EAPI void                elm_box_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
5830    /**
5831     * Get the space (padding) between the box's elements.
5832     *
5833     * @param obj The box object
5834     * @param horizontal The horizontal space between elements
5835     * @param vertical The vertical space between elements
5836     *
5837     * @see elm_box_padding_set()
5838     */
5839    EAPI void                elm_box_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
5840    /**
5841     * Set the alignment of the whole bouding box of contents.
5842     *
5843     * Sets how the bounding box containing all the elements of the box, after
5844     * their sizes and position has been calculated, will be aligned within
5845     * the space given for the whole box widget.
5846     *
5847     * @param obj The box object
5848     * @param horizontal The horizontal alignment of elements
5849     * @param vertical The vertical alignment of elements
5850     */
5851    EAPI void                elm_box_align_set(Evas_Object *obj, double horizontal, double vertical) EINA_ARG_NONNULL(1);
5852    /**
5853     * Get the alignment of the whole bouding box of contents.
5854     *
5855     * @param obj The box object
5856     * @param horizontal The horizontal alignment of elements
5857     * @param vertical The vertical alignment of elements
5858     *
5859     * @see elm_box_align_set()
5860     */
5861    EAPI void                elm_box_align_get(const Evas_Object *obj, double *horizontal, double *vertical) EINA_ARG_NONNULL(1);
5862
5863    /**
5864     * Set the layout defining function to be used by the box
5865     *
5866     * Whenever anything changes that requires the box in @p obj to recalculate
5867     * the size and position of its elements, the function @p cb will be called
5868     * to determine what the layout of the children will be.
5869     *
5870     * Once a custom function is set, everything about the children layout
5871     * is defined by it. The flags set by elm_box_horizontal_set() and
5872     * elm_box_homogeneous_set() no longer have any meaning, and the values
5873     * given by elm_box_padding_set() and elm_box_align_set() are up to this
5874     * layout function to decide if they are used and how. These last two
5875     * will be found in the @c priv parameter, of type @c Evas_Object_Box_Data,
5876     * passed to @p cb. The @c Evas_Object the function receives is not the
5877     * Elementary widget, but the internal Evas Box it uses, so none of the
5878     * functions described here can be used on it.
5879     *
5880     * Any of the layout functions in @c Evas can be used here, as well as the
5881     * special elm_box_layout_transition().
5882     *
5883     * The final @p data argument received by @p cb is the same @p data passed
5884     * here, and the @p free_data function will be called to free it
5885     * whenever the box is destroyed or another layout function is set.
5886     *
5887     * Setting @p cb to NULL will revert back to the default layout function.
5888     *
5889     * @param obj The box object
5890     * @param cb The callback function used for layout
5891     * @param data Data that will be passed to layout function
5892     * @param free_data Function called to free @p data
5893     *
5894     * @see elm_box_layout_transition()
5895     */
5896    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);
5897    /**
5898     * Special layout function that animates the transition from one layout to another
5899     *
5900     * Normally, when switching the layout function for a box, this will be
5901     * reflected immediately on screen on the next render, but it's also
5902     * possible to do this through an animated transition.
5903     *
5904     * This is done by creating an ::Elm_Box_Transition and setting the box
5905     * layout to this function.
5906     *
5907     * For example:
5908     * @code
5909     * Elm_Box_Transition *t = elm_box_transition_new(1.0,
5910     *                            evas_object_box_layout_vertical, // start
5911     *                            NULL, // data for initial layout
5912     *                            NULL, // free function for initial data
5913     *                            evas_object_box_layout_horizontal, // end
5914     *                            NULL, // data for final layout
5915     *                            NULL, // free function for final data
5916     *                            anim_end, // will be called when animation ends
5917     *                            NULL); // data for anim_end function\
5918     * elm_box_layout_set(box, elm_box_layout_transition, t,
5919     *                    elm_box_transition_free);
5920     * @endcode
5921     *
5922     * @note This function can only be used with elm_box_layout_set(). Calling
5923     * it directly will not have the expected results.
5924     *
5925     * @see elm_box_transition_new
5926     * @see elm_box_transition_free
5927     * @see elm_box_layout_set
5928     */
5929    EAPI void                elm_box_layout_transition(Evas_Object *obj, Evas_Object_Box_Data *priv, void *data);
5930    /**
5931     * Create a new ::Elm_Box_Transition to animate the switch of layouts
5932     *
5933     * If you want to animate the change from one layout to another, you need
5934     * to set the layout function of the box to elm_box_layout_transition(),
5935     * passing as user data to it an instance of ::Elm_Box_Transition with the
5936     * necessary information to perform this animation. The free function to
5937     * set for the layout is elm_box_transition_free().
5938     *
5939     * The parameters to create an ::Elm_Box_Transition sum up to how long
5940     * will it be, in seconds, a layout function to describe the initial point,
5941     * another for the final position of the children and one function to be
5942     * called when the whole animation ends. This last function is useful to
5943     * set the definitive layout for the box, usually the same as the end
5944     * layout for the animation, but could be used to start another transition.
5945     *
5946     * @param start_layout The layout function that will be used to start the animation
5947     * @param start_layout_data The data to be passed the @p start_layout function
5948     * @param start_layout_free_data Function to free @p start_layout_data
5949     * @param end_layout The layout function that will be used to end the animation
5950     * @param end_layout_free_data The data to be passed the @p end_layout function
5951     * @param end_layout_free_data Function to free @p end_layout_data
5952     * @param transition_end_cb Callback function called when animation ends
5953     * @param transition_end_data Data to be passed to @p transition_end_cb
5954     * @return An instance of ::Elm_Box_Transition
5955     *
5956     * @see elm_box_transition_new
5957     * @see elm_box_layout_transition
5958     */
5959    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);
5960    /**
5961     * Free a Elm_Box_Transition instance created with elm_box_transition_new().
5962     *
5963     * This function is mostly useful as the @c free_data parameter in
5964     * elm_box_layout_set() when elm_box_layout_transition().
5965     *
5966     * @param data The Elm_Box_Transition instance to be freed.
5967     *
5968     * @see elm_box_transition_new
5969     * @see elm_box_layout_transition
5970     */
5971    EAPI void                elm_box_transition_free(void *data);
5972    /**
5973     * @}
5974     */
5975
5976    /* button */
5977    /**
5978     * @defgroup Button Button
5979     *
5980     * @image html img/widget/button/preview-00.png
5981     * @image latex img/widget/button/preview-00.eps
5982     * @image html img/widget/button/preview-01.png
5983     * @image latex img/widget/button/preview-01.eps
5984     * @image html img/widget/button/preview-02.png
5985     * @image latex img/widget/button/preview-02.eps
5986     *
5987     * This is a push-button. Press it and run some function. It can contain
5988     * a simple label and icon object and it also has an autorepeat feature.
5989     *
5990     * This widgets emits the following signals:
5991     * @li "clicked": the user clicked the button (press/release).
5992     * @li "repeated": the user pressed the button without releasing it.
5993     * @li "pressed": button was pressed.
5994     * @li "unpressed": button was released after being pressed.
5995     * In all three cases, the @c event parameter of the callback will be
5996     * @c NULL.
5997     *
5998     * Also, defined in the default theme, the button has the following styles
5999     * available:
6000     * @li default: a normal button.
6001     * @li anchor: Like default, but the button fades away when the mouse is not
6002     * over it, leaving only the text or icon.
6003     * @li hoversel_vertical: Internally used by @ref Hoversel to give a
6004     * continuous look across its options.
6005     * @li hoversel_vertical_entry: Another internal for @ref Hoversel.
6006     *
6007     * Follow through a complete example @ref button_example_01 "here".
6008     * @{
6009     */
6010
6011    typedef enum
6012      {
6013         UIControlStateDefault,
6014         UIControlStateHighlighted,
6015         UIControlStateDisabled,
6016         UIControlStateFocused,
6017         UIControlStateReserved
6018      } UIControlState;
6019
6020    /**
6021     * Add a new button to the parent's canvas
6022     *
6023     * @param parent The parent object
6024     * @return The new object or NULL if it cannot be created
6025     */
6026    EAPI Evas_Object *elm_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6027    /**
6028     * Set the label used in the button
6029     *
6030     * The passed @p label can be NULL to clean any existing text in it and
6031     * leave the button as an icon only object.
6032     *
6033     * @param obj The button object
6034     * @param label The text will be written on the button
6035     * @deprecated use elm_object_text_set() instead.
6036     */
6037    EINA_DEPRECATED EAPI void         elm_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6038    /**
6039     * Get the label set for the button
6040     *
6041     * The string returned is an internal pointer and should not be freed or
6042     * altered. It will also become invalid when the button is destroyed.
6043     * The string returned, if not NULL, is a stringshare, so if you need to
6044     * keep it around even after the button is destroyed, you can use
6045     * eina_stringshare_ref().
6046     *
6047     * @param obj The button object
6048     * @return The text set to the label, or NULL if nothing is set
6049     * @deprecated use elm_object_text_set() instead.
6050     */
6051    EINA_DEPRECATED EAPI const char  *elm_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6052    /**
6053     * Set the label for each state of button
6054     *
6055     * The passed @p label can be NULL to clean any existing text in it and
6056     * leave the button as an icon only object for the state.
6057     *
6058     * @param obj The button object
6059     * @param label The text will be written on the button
6060     * @param state The state of button
6061     *
6062     * @ingroup Button
6063     */
6064    EINA_DEPRECATED EAPI void         elm_button_label_set_for_state(Evas_Object *obj, const char *label, UIControlState state) EINA_ARG_NONNULL(1);
6065    /**
6066     * Get the label of button for each state
6067     *
6068     * The string returned is an internal pointer and should not be freed or
6069     * altered. It will also become invalid when the button is destroyed.
6070     * The string returned, if not NULL, is a stringshare, so if you need to
6071     * keep it around even after the button is destroyed, you can use
6072     * eina_stringshare_ref().
6073     *
6074     * @param obj The button object
6075     * @param state The state of button
6076     * @return The title of button for state
6077     *
6078     * @ingroup Button
6079     */
6080    EINA_DEPRECATED EAPI const char  *elm_button_label_get_for_state(const Evas_Object *obj, UIControlState state) EINA_ARG_NONNULL(1);
6081    /**
6082     * Set the icon used for the button
6083     *
6084     * Setting a new icon will delete any other that was previously set, making
6085     * any reference to them invalid. If you need to maintain the previous
6086     * object alive, unset it first with elm_button_icon_unset().
6087     *
6088     * @param obj The button object
6089     * @param icon The icon object for the button
6090     */
6091    EAPI void         elm_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6092    /**
6093     * Get the icon used for the button
6094     *
6095     * Return the icon object which is set for this widget. If the button is
6096     * destroyed or another icon is set, the returned object will be deleted
6097     * and any reference to it will be invalid.
6098     *
6099     * @param obj The button object
6100     * @return The icon object that is being used
6101     *
6102     * @see elm_button_icon_unset()
6103     */
6104    EAPI Evas_Object *elm_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6105    /**
6106     * Remove the icon set without deleting it and return the object
6107     *
6108     * This function drops the reference the button holds of the icon object
6109     * and returns this last object. It is used in case you want to remove any
6110     * icon, or set another one, without deleting the actual object. The button
6111     * will be left without an icon set.
6112     *
6113     * @param obj The button object
6114     * @return The icon object that was being used
6115     */
6116    EAPI Evas_Object *elm_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6117    /**
6118     * Turn on/off the autorepeat event generated when the button is kept pressed
6119     *
6120     * When off, no autorepeat is performed and buttons emit a normal @c clicked
6121     * signal when they are clicked.
6122     *
6123     * When on, keeping a button pressed will continuously emit a @c repeated
6124     * signal until the button is released. The time it takes until it starts
6125     * emitting the signal is given by
6126     * elm_button_autorepeat_initial_timeout_set(), and the time between each
6127     * new emission by elm_button_autorepeat_gap_timeout_set().
6128     *
6129     * @param obj The button object
6130     * @param on  A bool to turn on/off the event
6131     */
6132    EAPI void         elm_button_autorepeat_set(Evas_Object *obj, Eina_Bool on) EINA_ARG_NONNULL(1);
6133    /**
6134     * Get whether the autorepeat feature is enabled
6135     *
6136     * @param obj The button object
6137     * @return EINA_TRUE if autorepeat is on, EINA_FALSE otherwise
6138     *
6139     * @see elm_button_autorepeat_set()
6140     */
6141    EAPI Eina_Bool    elm_button_autorepeat_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6142    /**
6143     * Set the initial timeout before the autorepeat event is generated
6144     *
6145     * Sets the timeout, in seconds, since the button is pressed until the
6146     * first @c repeated signal is emitted. If @p t is 0.0 or less, there
6147     * won't be any delay and the even will be fired the moment the button is
6148     * pressed.
6149     *
6150     * @param obj The button object
6151     * @param t   Timeout in seconds
6152     *
6153     * @see elm_button_autorepeat_set()
6154     * @see elm_button_autorepeat_gap_timeout_set()
6155     */
6156    EAPI void         elm_button_autorepeat_initial_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
6157    /**
6158     * Get the initial timeout before the autorepeat event is generated
6159     *
6160     * @param obj The button object
6161     * @return Timeout in seconds
6162     *
6163     * @see elm_button_autorepeat_initial_timeout_set()
6164     */
6165    EAPI double       elm_button_autorepeat_initial_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6166    /**
6167     * Set the interval between each generated autorepeat event
6168     *
6169     * After the first @c repeated event is fired, all subsequent ones will
6170     * follow after a delay of @p t seconds for each.
6171     *
6172     * @param obj The button object
6173     * @param t   Interval in seconds
6174     *
6175     * @see elm_button_autorepeat_initial_timeout_set()
6176     */
6177    EAPI void         elm_button_autorepeat_gap_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
6178    /**
6179     * Get the interval between each generated autorepeat event
6180     *
6181     * @param obj The button object
6182     * @return Interval in seconds
6183     */
6184    EAPI double       elm_button_autorepeat_gap_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6185    /**
6186     * @}
6187     */
6188
6189    /**
6190     * @defgroup File_Selector_Button File Selector Button
6191     *
6192     * @image html img/widget/fileselector_button/preview-00.png
6193     * @image latex img/widget/fileselector_button/preview-00.eps
6194     * @image html img/widget/fileselector_button/preview-01.png
6195     * @image latex img/widget/fileselector_button/preview-01.eps
6196     * @image html img/widget/fileselector_button/preview-02.png
6197     * @image latex img/widget/fileselector_button/preview-02.eps
6198     *
6199     * This is a button that, when clicked, creates an Elementary
6200     * window (or inner window) <b> with a @ref Fileselector "file
6201     * selector widget" within</b>. When a file is chosen, the (inner)
6202     * window is closed and the button emits a signal having the
6203     * selected file as it's @c event_info.
6204     *
6205     * This widget encapsulates operations on its internal file
6206     * selector on its own API. There is less control over its file
6207     * selector than that one would have instatiating one directly.
6208     *
6209     * The following styles are available for this button:
6210     * @li @c "default"
6211     * @li @c "anchor"
6212     * @li @c "hoversel_vertical"
6213     * @li @c "hoversel_vertical_entry"
6214     *
6215     * Smart callbacks one can register to:
6216     * - @c "file,chosen" - the user has selected a path, whose string
6217     *   pointer comes as the @c event_info data (a stringshared
6218     *   string)
6219     *
6220     * Here is an example on its usage:
6221     * @li @ref fileselector_button_example
6222     *
6223     * @see @ref File_Selector_Entry for a similar widget.
6224     * @{
6225     */
6226
6227    /**
6228     * Add a new file selector button widget to the given parent
6229     * Elementary (container) object
6230     *
6231     * @param parent The parent object
6232     * @return a new file selector button widget handle or @c NULL, on
6233     * errors
6234     */
6235    EAPI Evas_Object *elm_fileselector_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6236
6237    /**
6238     * Set the label for a given file selector button widget
6239     *
6240     * @param obj The file selector button widget
6241     * @param label The text label to be displayed on @p obj
6242     *
6243     * @deprecated use elm_object_text_set() instead.
6244     */
6245    EINA_DEPRECATED EAPI void         elm_fileselector_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6246
6247    /**
6248     * Get the label set for a given file selector button widget
6249     *
6250     * @param obj The file selector button widget
6251     * @return The button label
6252     *
6253     * @deprecated use elm_object_text_set() instead.
6254     */
6255    EINA_DEPRECATED EAPI const char  *elm_fileselector_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6256
6257    /**
6258     * Set the icon on a given file selector button widget
6259     *
6260     * @param obj The file selector button widget
6261     * @param icon The icon object for the button
6262     *
6263     * Once the icon object is set, a previously set one will be
6264     * deleted. If you want to keep the latter, use the
6265     * elm_fileselector_button_icon_unset() function.
6266     *
6267     * @see elm_fileselector_button_icon_get()
6268     */
6269    EAPI void         elm_fileselector_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6270
6271    /**
6272     * Get the icon set for a given file selector button widget
6273     *
6274     * @param obj The file selector button widget
6275     * @return The icon object currently set on @p obj or @c NULL, if
6276     * none is
6277     *
6278     * @see elm_fileselector_button_icon_set()
6279     */
6280    EAPI Evas_Object *elm_fileselector_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6281
6282    /**
6283     * Unset the icon used in a given file selector button widget
6284     *
6285     * @param obj The file selector button widget
6286     * @return The icon object that was being used on @p obj or @c
6287     * NULL, on errors
6288     *
6289     * Unparent and return the icon object which was set for this
6290     * widget.
6291     *
6292     * @see elm_fileselector_button_icon_set()
6293     */
6294    EAPI Evas_Object *elm_fileselector_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6295
6296    /**
6297     * Set the title for a given file selector button widget's window
6298     *
6299     * @param obj The file selector button widget
6300     * @param title The title string
6301     *
6302     * This will change the window's title, when the file selector pops
6303     * out after a click on the button. Those windows have the default
6304     * (unlocalized) value of @c "Select a file" as titles.
6305     *
6306     * @note It will only take any effect if the file selector
6307     * button widget is @b not under "inwin mode".
6308     *
6309     * @see elm_fileselector_button_window_title_get()
6310     */
6311    EAPI void         elm_fileselector_button_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
6312
6313    /**
6314     * Get the title set for a given file selector button widget's
6315     * window
6316     *
6317     * @param obj The file selector button widget
6318     * @return Title of the file selector button's window
6319     *
6320     * @see elm_fileselector_button_window_title_get() for more details
6321     */
6322    EAPI const char  *elm_fileselector_button_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6323
6324    /**
6325     * Set the size of a given file selector button widget's window,
6326     * holding the file selector itself.
6327     *
6328     * @param obj The file selector button widget
6329     * @param width The window's width
6330     * @param height The window's height
6331     *
6332     * @note it will only take any effect if the file selector button
6333     * widget is @b not under "inwin mode". The default size for the
6334     * window (when applicable) is 400x400 pixels.
6335     *
6336     * @see elm_fileselector_button_window_size_get()
6337     */
6338    EAPI void         elm_fileselector_button_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6339
6340    /**
6341     * Get the size of a given file selector button widget's window,
6342     * holding the file selector itself.
6343     *
6344     * @param obj The file selector button widget
6345     * @param width Pointer into which to store the width value
6346     * @param height Pointer into which to store the height value
6347     *
6348     * @note Use @c NULL pointers on the size values you're not
6349     * interested in: they'll be ignored by the function.
6350     *
6351     * @see elm_fileselector_button_window_size_set(), for more details
6352     */
6353    EAPI void         elm_fileselector_button_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6354
6355    /**
6356     * Set the initial file system path for a given file selector
6357     * button widget
6358     *
6359     * @param obj The file selector button widget
6360     * @param path The path string
6361     *
6362     * It must be a <b>directory</b> path, which will have the contents
6363     * displayed initially in the file selector's view, when invoked
6364     * from @p obj. The default initial path is the @c "HOME"
6365     * environment variable's value.
6366     *
6367     * @see elm_fileselector_button_path_get()
6368     */
6369    EAPI void         elm_fileselector_button_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6370
6371    /**
6372     * Get the initial file system path set for a given file selector
6373     * button widget
6374     *
6375     * @param obj The file selector button widget
6376     * @return path The path string
6377     *
6378     * @see elm_fileselector_button_path_set() for more details
6379     */
6380    EAPI const char  *elm_fileselector_button_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6381
6382    /**
6383     * Enable/disable a tree view in the given file selector button
6384     * widget's internal file selector
6385     *
6386     * @param obj The file selector button widget
6387     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
6388     * disable
6389     *
6390     * This has the same effect as elm_fileselector_expandable_set(),
6391     * but now applied to a file selector button's internal file
6392     * selector.
6393     *
6394     * @note There's no way to put a file selector button's internal
6395     * file selector in "grid mode", as one may do with "pure" file
6396     * selectors.
6397     *
6398     * @see elm_fileselector_expandable_get()
6399     */
6400    EAPI void         elm_fileselector_button_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6401
6402    /**
6403     * Get whether tree view is enabled for the given file selector
6404     * button widget's internal file selector
6405     *
6406     * @param obj The file selector button widget
6407     * @return @c EINA_TRUE if @p obj widget's internal file selector
6408     * is in tree view, @c EINA_FALSE otherwise (and or errors)
6409     *
6410     * @see elm_fileselector_expandable_set() for more details
6411     */
6412    EAPI Eina_Bool    elm_fileselector_button_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6413
6414    /**
6415     * Set whether a given file selector button widget's internal file
6416     * selector is to display folders only or the directory contents,
6417     * as well.
6418     *
6419     * @param obj The file selector button widget
6420     * @param only @c EINA_TRUE to make @p obj widget's internal file
6421     * selector only display directories, @c EINA_FALSE to make files
6422     * to be displayed in it too
6423     *
6424     * This has the same effect as elm_fileselector_folder_only_set(),
6425     * but now applied to a file selector button's internal file
6426     * selector.
6427     *
6428     * @see elm_fileselector_folder_only_get()
6429     */
6430    EAPI void         elm_fileselector_button_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6431
6432    /**
6433     * Get whether a given file selector button widget's internal file
6434     * selector is displaying folders only or the directory contents,
6435     * as well.
6436     *
6437     * @param obj The file selector button widget
6438     * @return @c EINA_TRUE if @p obj widget's internal file
6439     * selector is only displaying directories, @c EINA_FALSE if files
6440     * are being displayed in it too (and on errors)
6441     *
6442     * @see elm_fileselector_button_folder_only_set() for more details
6443     */
6444    EAPI Eina_Bool    elm_fileselector_button_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6445
6446    /**
6447     * Enable/disable the file name entry box where the user can type
6448     * in a name for a file, in a given file selector button widget's
6449     * internal file selector.
6450     *
6451     * @param obj The file selector button widget
6452     * @param is_save @c EINA_TRUE to make @p obj widget's internal
6453     * file selector a "saving dialog", @c EINA_FALSE otherwise
6454     *
6455     * This has the same effect as elm_fileselector_is_save_set(),
6456     * but now applied to a file selector button's internal file
6457     * selector.
6458     *
6459     * @see elm_fileselector_is_save_get()
6460     */
6461    EAPI void         elm_fileselector_button_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6462
6463    /**
6464     * Get whether the given file selector button widget's internal
6465     * file selector is in "saving dialog" mode
6466     *
6467     * @param obj The file selector button widget
6468     * @return @c EINA_TRUE, if @p obj widget's internal file selector
6469     * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
6470     * errors)
6471     *
6472     * @see elm_fileselector_button_is_save_set() for more details
6473     */
6474    EAPI Eina_Bool    elm_fileselector_button_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6475
6476    /**
6477     * Set whether a given file selector button widget's internal file
6478     * selector will raise an Elementary "inner window", instead of a
6479     * dedicated Elementary window. By default, it won't.
6480     *
6481     * @param obj The file selector button widget
6482     * @param value @c EINA_TRUE to make it use an inner window, @c
6483     * EINA_TRUE to make it use a dedicated window
6484     *
6485     * @see elm_win_inwin_add() for more information on inner windows
6486     * @see elm_fileselector_button_inwin_mode_get()
6487     */
6488    EAPI void         elm_fileselector_button_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6489
6490    /**
6491     * Get whether a given file selector button widget's internal file
6492     * selector will raise an Elementary "inner window", instead of a
6493     * dedicated Elementary window.
6494     *
6495     * @param obj The file selector button widget
6496     * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
6497     * if it will use a dedicated window
6498     *
6499     * @see elm_fileselector_button_inwin_mode_set() for more details
6500     */
6501    EAPI Eina_Bool    elm_fileselector_button_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6502
6503    /**
6504     * @}
6505     */
6506
6507     /**
6508     * @defgroup File_Selector_Entry File Selector Entry
6509     *
6510     * @image html img/widget/fileselector_entry/preview-00.png
6511     * @image latex img/widget/fileselector_entry/preview-00.eps
6512     *
6513     * This is an entry made to be filled with or display a <b>file
6514     * system path string</b>. Besides the entry itself, the widget has
6515     * a @ref File_Selector_Button "file selector button" on its side,
6516     * which will raise an internal @ref Fileselector "file selector widget",
6517     * when clicked, for path selection aided by file system
6518     * navigation.
6519     *
6520     * This file selector may appear in an Elementary window or in an
6521     * inner window. When a file is chosen from it, the (inner) window
6522     * is closed and the selected file's path string is exposed both as
6523     * an smart event and as the new text on the entry.
6524     *
6525     * This widget encapsulates operations on its internal file
6526     * selector on its own API. There is less control over its file
6527     * selector than that one would have instatiating one directly.
6528     *
6529     * Smart callbacks one can register to:
6530     * - @c "changed" - The text within the entry was changed
6531     * - @c "activated" - The entry has had editing finished and
6532     *   changes are to be "committed"
6533     * - @c "press" - The entry has been clicked
6534     * - @c "longpressed" - The entry has been clicked (and held) for a
6535     *   couple seconds
6536     * - @c "clicked" - The entry has been clicked
6537     * - @c "clicked,double" - The entry has been double clicked
6538     * - @c "focused" - The entry has received focus
6539     * - @c "unfocused" - The entry has lost focus
6540     * - @c "selection,paste" - A paste action has occurred on the
6541     *   entry
6542     * - @c "selection,copy" - A copy action has occurred on the entry
6543     * - @c "selection,cut" - A cut action has occurred on the entry
6544     * - @c "unpressed" - The file selector entry's button was released
6545     *   after being pressed.
6546     * - @c "file,chosen" - The user has selected a path via the file
6547     *   selector entry's internal file selector, whose string pointer
6548     *   comes as the @c event_info data (a stringshared string)
6549     *
6550     * Here is an example on its usage:
6551     * @li @ref fileselector_entry_example
6552     *
6553     * @see @ref File_Selector_Button for a similar widget.
6554     * @{
6555     */
6556
6557    /**
6558     * Add a new file selector entry widget to the given parent
6559     * Elementary (container) object
6560     *
6561     * @param parent The parent object
6562     * @return a new file selector entry widget handle or @c NULL, on
6563     * errors
6564     */
6565    EAPI Evas_Object *elm_fileselector_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6566
6567    /**
6568     * Set the label for a given file selector entry widget's button
6569     *
6570     * @param obj The file selector entry widget
6571     * @param label The text label to be displayed on @p obj widget's
6572     * button
6573     *
6574     * @deprecated use elm_object_text_set() instead.
6575     */
6576    EINA_DEPRECATED EAPI void         elm_fileselector_entry_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6577
6578    /**
6579     * Get the label set for a given file selector entry widget's button
6580     *
6581     * @param obj The file selector entry widget
6582     * @return The widget button's label
6583     *
6584     * @deprecated use elm_object_text_set() instead.
6585     */
6586    EINA_DEPRECATED EAPI const char  *elm_fileselector_entry_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6587
6588    /**
6589     * Set the icon on a given file selector entry widget's button
6590     *
6591     * @param obj The file selector entry widget
6592     * @param icon The icon object for the entry's button
6593     *
6594     * Once the icon object is set, a previously set one will be
6595     * deleted. If you want to keep the latter, use the
6596     * elm_fileselector_entry_button_icon_unset() function.
6597     *
6598     * @see elm_fileselector_entry_button_icon_get()
6599     */
6600    EAPI void         elm_fileselector_entry_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6601
6602    /**
6603     * Get the icon set for a given file selector entry widget's button
6604     *
6605     * @param obj The file selector entry widget
6606     * @return The icon object currently set on @p obj widget's button
6607     * or @c NULL, if none is
6608     *
6609     * @see elm_fileselector_entry_button_icon_set()
6610     */
6611    EAPI Evas_Object *elm_fileselector_entry_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6612
6613    /**
6614     * Unset the icon used in a given file selector entry widget's
6615     * button
6616     *
6617     * @param obj The file selector entry widget
6618     * @return The icon object that was being used on @p obj widget's
6619     * button or @c NULL, on errors
6620     *
6621     * Unparent and return the icon object which was set for this
6622     * widget's button.
6623     *
6624     * @see elm_fileselector_entry_button_icon_set()
6625     */
6626    EAPI Evas_Object *elm_fileselector_entry_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6627
6628    /**
6629     * Set the title for a given file selector entry widget's window
6630     *
6631     * @param obj The file selector entry widget
6632     * @param title The title string
6633     *
6634     * This will change the window's title, when the file selector pops
6635     * out after a click on the entry's button. Those windows have the
6636     * default (unlocalized) value of @c "Select a file" as titles.
6637     *
6638     * @note It will only take any effect if the file selector
6639     * entry widget is @b not under "inwin mode".
6640     *
6641     * @see elm_fileselector_entry_window_title_get()
6642     */
6643    EAPI void         elm_fileselector_entry_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
6644
6645    /**
6646     * Get the title set for a given file selector entry widget's
6647     * window
6648     *
6649     * @param obj The file selector entry widget
6650     * @return Title of the file selector entry's window
6651     *
6652     * @see elm_fileselector_entry_window_title_get() for more details
6653     */
6654    EAPI const char  *elm_fileselector_entry_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6655
6656    /**
6657     * Set the size of a given file selector entry widget's window,
6658     * holding the file selector itself.
6659     *
6660     * @param obj The file selector entry widget
6661     * @param width The window's width
6662     * @param height The window's height
6663     *
6664     * @note it will only take any effect if the file selector entry
6665     * widget is @b not under "inwin mode". The default size for the
6666     * window (when applicable) is 400x400 pixels.
6667     *
6668     * @see elm_fileselector_entry_window_size_get()
6669     */
6670    EAPI void         elm_fileselector_entry_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6671
6672    /**
6673     * Get the size of a given file selector entry widget's window,
6674     * holding the file selector itself.
6675     *
6676     * @param obj The file selector entry widget
6677     * @param width Pointer into which to store the width value
6678     * @param height Pointer into which to store the height value
6679     *
6680     * @note Use @c NULL pointers on the size values you're not
6681     * interested in: they'll be ignored by the function.
6682     *
6683     * @see elm_fileselector_entry_window_size_set(), for more details
6684     */
6685    EAPI void         elm_fileselector_entry_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6686
6687    /**
6688     * Set the initial file system path and the entry's path string for
6689     * a given file selector entry widget
6690     *
6691     * @param obj The file selector entry widget
6692     * @param path The path string
6693     *
6694     * It must be a <b>directory</b> path, which will have the contents
6695     * displayed initially in the file selector's view, when invoked
6696     * from @p obj. The default initial path is the @c "HOME"
6697     * environment variable's value.
6698     *
6699     * @see elm_fileselector_entry_path_get()
6700     */
6701    EAPI void         elm_fileselector_entry_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6702
6703    /**
6704     * Get the entry's path string for a given file selector entry
6705     * widget
6706     *
6707     * @param obj The file selector entry widget
6708     * @return path The path string
6709     *
6710     * @see elm_fileselector_entry_path_set() for more details
6711     */
6712    EAPI const char  *elm_fileselector_entry_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6713
6714    /**
6715     * Enable/disable a tree view in the given file selector entry
6716     * widget's internal file selector
6717     *
6718     * @param obj The file selector entry widget
6719     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
6720     * disable
6721     *
6722     * This has the same effect as elm_fileselector_expandable_set(),
6723     * but now applied to a file selector entry's internal file
6724     * selector.
6725     *
6726     * @note There's no way to put a file selector entry's internal
6727     * file selector in "grid mode", as one may do with "pure" file
6728     * selectors.
6729     *
6730     * @see elm_fileselector_expandable_get()
6731     */
6732    EAPI void         elm_fileselector_entry_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6733
6734    /**
6735     * Get whether tree view is enabled for the given file selector
6736     * entry widget's internal file selector
6737     *
6738     * @param obj The file selector entry widget
6739     * @return @c EINA_TRUE if @p obj widget's internal file selector
6740     * is in tree view, @c EINA_FALSE otherwise (and or errors)
6741     *
6742     * @see elm_fileselector_expandable_set() for more details
6743     */
6744    EAPI Eina_Bool    elm_fileselector_entry_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6745
6746    /**
6747     * Set whether a given file selector entry widget's internal file
6748     * selector is to display folders only or the directory contents,
6749     * as well.
6750     *
6751     * @param obj The file selector entry widget
6752     * @param only @c EINA_TRUE to make @p obj widget's internal file
6753     * selector only display directories, @c EINA_FALSE to make files
6754     * to be displayed in it too
6755     *
6756     * This has the same effect as elm_fileselector_folder_only_set(),
6757     * but now applied to a file selector entry's internal file
6758     * selector.
6759     *
6760     * @see elm_fileselector_folder_only_get()
6761     */
6762    EAPI void         elm_fileselector_entry_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6763
6764    /**
6765     * Get whether a given file selector entry widget's internal file
6766     * selector is displaying folders only or the directory contents,
6767     * as well.
6768     *
6769     * @param obj The file selector entry widget
6770     * @return @c EINA_TRUE if @p obj widget's internal file
6771     * selector is only displaying directories, @c EINA_FALSE if files
6772     * are being displayed in it too (and on errors)
6773     *
6774     * @see elm_fileselector_entry_folder_only_set() for more details
6775     */
6776    EAPI Eina_Bool    elm_fileselector_entry_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6777
6778    /**
6779     * Enable/disable the file name entry box where the user can type
6780     * in a name for a file, in a given file selector entry widget's
6781     * internal file selector.
6782     *
6783     * @param obj The file selector entry widget
6784     * @param is_save @c EINA_TRUE to make @p obj widget's internal
6785     * file selector a "saving dialog", @c EINA_FALSE otherwise
6786     *
6787     * This has the same effect as elm_fileselector_is_save_set(),
6788     * but now applied to a file selector entry's internal file
6789     * selector.
6790     *
6791     * @see elm_fileselector_is_save_get()
6792     */
6793    EAPI void         elm_fileselector_entry_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6794
6795    /**
6796     * Get whether the given file selector entry widget's internal
6797     * file selector is in "saving dialog" mode
6798     *
6799     * @param obj The file selector entry widget
6800     * @return @c EINA_TRUE, if @p obj widget's internal file selector
6801     * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
6802     * errors)
6803     *
6804     * @see elm_fileselector_entry_is_save_set() for more details
6805     */
6806    EAPI Eina_Bool    elm_fileselector_entry_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6807
6808    /**
6809     * Set whether a given file selector entry widget's internal file
6810     * selector will raise an Elementary "inner window", instead of a
6811     * dedicated Elementary window. By default, it won't.
6812     *
6813     * @param obj The file selector entry widget
6814     * @param value @c EINA_TRUE to make it use an inner window, @c
6815     * EINA_TRUE to make it use a dedicated window
6816     *
6817     * @see elm_win_inwin_add() for more information on inner windows
6818     * @see elm_fileselector_entry_inwin_mode_get()
6819     */
6820    EAPI void         elm_fileselector_entry_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6821
6822    /**
6823     * Get whether a given file selector entry widget's internal file
6824     * selector will raise an Elementary "inner window", instead of a
6825     * dedicated Elementary window.
6826     *
6827     * @param obj The file selector entry widget
6828     * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
6829     * if it will use a dedicated window
6830     *
6831     * @see elm_fileselector_entry_inwin_mode_set() for more details
6832     */
6833    EAPI Eina_Bool    elm_fileselector_entry_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6834
6835    /**
6836     * Set the initial file system path for a given file selector entry
6837     * widget
6838     *
6839     * @param obj The file selector entry widget
6840     * @param path The path string
6841     *
6842     * It must be a <b>directory</b> path, which will have the contents
6843     * displayed initially in the file selector's view, when invoked
6844     * from @p obj. The default initial path is the @c "HOME"
6845     * environment variable's value.
6846     *
6847     * @see elm_fileselector_entry_path_get()
6848     */
6849    EAPI void         elm_fileselector_entry_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6850
6851    /**
6852     * Get the parent directory's path to the latest file selection on
6853     * a given filer selector entry widget
6854     *
6855     * @param obj The file selector object
6856     * @return The (full) path of the directory of the last selection
6857     * on @p obj widget, a @b stringshared string
6858     *
6859     * @see elm_fileselector_entry_path_set()
6860     */
6861    EAPI const char  *elm_fileselector_entry_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6862
6863    /**
6864     * @}
6865     */
6866
6867    /**
6868     * @defgroup Scroller Scroller
6869     *
6870     * A scroller holds a single object and "scrolls it around". This means that
6871     * it allows the user to use a scrollbar (or a finger) to drag the viewable
6872     * region around, allowing to move through a much larger object that is
6873     * contained in the scroller. The scroller will always have a small minimum
6874     * size by default as it won't be limited by the contents of the scroller.
6875     *
6876     * Signals that you can add callbacks for are:
6877     * @li "edge,left" - the left edge of the content has been reached
6878     * @li "edge,right" - the right edge of the content has been reached
6879     * @li "edge,top" - the top edge of the content has been reached
6880     * @li "edge,bottom" - the bottom edge of the content has been reached
6881     * @li "scroll" - the content has been scrolled (moved)
6882     * @li "scroll,anim,start" - scrolling animation has started
6883     * @li "scroll,anim,stop" - scrolling animation has stopped
6884     * @li "scroll,drag,start" - dragging the contents around has started
6885     * @li "scroll,drag,stop" - dragging the contents around has stopped
6886     * @note The "scroll,anim,*" and "scroll,drag,*" signals are only emitted by
6887     * user intervetion.
6888     *
6889     * @note When Elemementary is in embedded mode the scrollbars will not be
6890     * dragable, they appear merely as indicators of how much has been scrolled.
6891     * @note When Elementary is in desktop mode the thumbscroll(a.k.a.
6892     * fingerscroll) won't work.
6893     *
6894     * To set/get/unset the content of the panel, you can use
6895     * elm_object_content_set/get/unset APIs.
6896     * Once the content object is set, a previously set one will be deleted.
6897     * If you want to keep that old content object, use the
6898     * elm_object_content_unset() function
6899     *
6900     * In @ref tutorial_scroller you'll find an example of how to use most of
6901     * this API.
6902     * @{
6903     */
6904    /**
6905     * @brief Type that controls when scrollbars should appear.
6906     *
6907     * @see elm_scroller_policy_set()
6908     */
6909    typedef enum _Elm_Scroller_Policy
6910      {
6911         ELM_SCROLLER_POLICY_AUTO = 0, /**< Show scrollbars as needed */
6912         ELM_SCROLLER_POLICY_ON, /**< Always show scrollbars */
6913         ELM_SCROLLER_POLICY_OFF, /**< Never show scrollbars */
6914         ELM_SCROLLER_POLICY_LAST
6915      } Elm_Scroller_Policy;
6916    /**
6917     * @brief Add a new scroller to the parent
6918     *
6919     * @param parent The parent object
6920     * @return The new object or NULL if it cannot be created
6921     */
6922    EAPI Evas_Object *elm_scroller_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6923    /**
6924     * @brief Set the content of the scroller widget (the object to be scrolled around).
6925     *
6926     * @param obj The scroller object
6927     * @param content The new content object
6928     *
6929     * Once the content object is set, a previously set one will be deleted.
6930     * If you want to keep that old content object, use the
6931     * elm_scroller_content_unset() function.
6932     * @deprecated See elm_object_content_set()
6933     */
6934    EAPI void         elm_scroller_content_set(Evas_Object *obj, Evas_Object *child) EINA_ARG_NONNULL(1);
6935    /**
6936     * @brief Get the content of the scroller widget
6937     *
6938     * @param obj The slider object
6939     * @return The content that is being used
6940     *
6941     * Return the content object which is set for this widget
6942     *
6943     * @see elm_scroller_content_set()
6944     * @deprecated use elm_object_content_get() instead.
6945     */
6946    EAPI Evas_Object *elm_scroller_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6947    /**
6948     * @brief Unset the content of the scroller widget
6949     *
6950     * @param obj The slider object
6951     * @return The content that was being used
6952     *
6953     * Unparent and return the content object which was set for this widget
6954     *
6955     * @see elm_scroller_content_set()
6956     * @deprecated use elm_object_content_unset() instead.
6957     */
6958    EAPI Evas_Object *elm_scroller_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6959    /**
6960     * @brief Set custom theme elements for the scroller
6961     *
6962     * @param obj The scroller object
6963     * @param widget The widget name to use (default is "scroller")
6964     * @param base The base name to use (default is "base")
6965     */
6966    EAPI void         elm_scroller_custom_widget_base_theme_set(Evas_Object *obj, const char *widget, const char *base) EINA_ARG_NONNULL(1, 2, 3);
6967    /**
6968     * @brief Make the scroller minimum size limited to the minimum size of the content
6969     *
6970     * @param obj The scroller object
6971     * @param w Enable limiting minimum size horizontally
6972     * @param h Enable limiting minimum size vertically
6973     *
6974     * By default the scroller will be as small as its design allows,
6975     * irrespective of its content. This will make the scroller minimum size the
6976     * right size horizontally and/or vertically to perfectly fit its content in
6977     * that direction.
6978     */
6979    EAPI void         elm_scroller_content_min_limit(Evas_Object *obj, Eina_Bool w, Eina_Bool h) EINA_ARG_NONNULL(1);
6980    /**
6981     * @brief Show a specific virtual region within the scroller content object
6982     *
6983     * @param obj The scroller object
6984     * @param x X coordinate of the region
6985     * @param y Y coordinate of the region
6986     * @param w Width of the region
6987     * @param h Height of the region
6988     *
6989     * This will ensure all (or part if it does not fit) of the designated
6990     * region in the virtual content object (0, 0 starting at the top-left of the
6991     * virtual content object) is shown within the scroller.
6992     */
6993    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);
6994    /**
6995     * @brief Set the scrollbar visibility policy
6996     *
6997     * @param obj The scroller object
6998     * @param policy_h Horizontal scrollbar policy
6999     * @param policy_v Vertical scrollbar policy
7000     *
7001     * This sets the scrollbar visibility policy for the given scroller.
7002     * ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is
7003     * needed, and otherwise kept hidden. ELM_SCROLLER_POLICY_ON turns it on all
7004     * the time, and ELM_SCROLLER_POLICY_OFF always keeps it off. This applies
7005     * respectively for the horizontal and vertical scrollbars.
7006     */
7007    EAPI void         elm_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
7008    /**
7009     * @brief Gets scrollbar visibility policy
7010     *
7011     * @param obj The scroller object
7012     * @param policy_h Horizontal scrollbar policy
7013     * @param policy_v Vertical scrollbar policy
7014     *
7015     * @see elm_scroller_policy_set()
7016     */
7017    EAPI void         elm_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v) EINA_ARG_NONNULL(1);
7018    /**
7019     * @brief Get the currently visible content region
7020     *
7021     * @param obj The scroller object
7022     * @param x X coordinate of the region
7023     * @param y Y coordinate of the region
7024     * @param w Width of the region
7025     * @param h Height of the region
7026     *
7027     * This gets the current region in the content object that is visible through
7028     * the scroller. The region co-ordinates are returned in the @p x, @p y, @p
7029     * w, @p h values pointed to.
7030     *
7031     * @note All coordinates are relative to the content.
7032     *
7033     * @see elm_scroller_region_show()
7034     */
7035    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);
7036    /**
7037     * @brief Get the size of the content object
7038     *
7039     * @param obj The scroller object
7040     * @param w Width of the content object.
7041     * @param h Height of the content object.
7042     *
7043     * This gets the size of the content object of the scroller.
7044     */
7045    EAPI void         elm_scroller_child_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
7046    /**
7047     * @brief Set bouncing behavior
7048     *
7049     * @param obj The scroller object
7050     * @param h_bounce Allow bounce horizontally
7051     * @param v_bounce Allow bounce vertically
7052     *
7053     * When scrolling, the scroller may "bounce" when reaching an edge of the
7054     * content object. This is a visual way to indicate the end has been reached.
7055     * This is enabled by default for both axis. This API will set if it is enabled
7056     * for the given axis with the boolean parameters for each axis.
7057     */
7058    EAPI void         elm_scroller_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
7059    /**
7060     * @brief Get the bounce behaviour
7061     *
7062     * @param obj The Scroller object
7063     * @param h_bounce Will the scroller bounce horizontally or not
7064     * @param v_bounce Will the scroller bounce vertically or not
7065     *
7066     * @see elm_scroller_bounce_set()
7067     */
7068    EAPI void         elm_scroller_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
7069    /**
7070     * @brief Set scroll page size relative to viewport size.
7071     *
7072     * @param obj The scroller object
7073     * @param h_pagerel The horizontal page relative size
7074     * @param v_pagerel The vertical page relative size
7075     *
7076     * The scroller is capable of limiting scrolling by the user to "pages". That
7077     * is to jump by and only show a "whole page" at a time as if the continuous
7078     * area of the scroller content is split into page sized pieces. This sets
7079     * the size of a page relative to the viewport of the scroller. 1.0 is "1
7080     * viewport" is size (horizontally or vertically). 0.0 turns it off in that
7081     * axis. This is mutually exclusive with page size
7082     * (see elm_scroller_page_size_set()  for more information). Likewise 0.5
7083     * is "half a viewport". Sane usable values are normally between 0.0 and 1.0
7084     * including 1.0. If you only want 1 axis to be page "limited", use 0.0 for
7085     * the other axis.
7086     */
7087    EAPI void         elm_scroller_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
7088    /**
7089     * @brief Set scroll page size.
7090     *
7091     * @param obj The scroller object
7092     * @param h_pagesize The horizontal page size
7093     * @param v_pagesize The vertical page size
7094     *
7095     * This sets the page size to an absolute fixed value, with 0 turning it off
7096     * for that axis.
7097     *
7098     * @see elm_scroller_page_relative_set()
7099     */
7100    EAPI void         elm_scroller_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
7101    /**
7102     * @brief Show a specific virtual region within the scroller content object.
7103     *
7104     * @param obj The scroller object
7105     * @param x X coordinate of the region
7106     * @param y Y coordinate of the region
7107     * @param w Width of the region
7108     * @param h Height of the region
7109     *
7110     * This will ensure all (or part if it does not fit) of the designated
7111     * region in the virtual content object (0, 0 starting at the top-left of the
7112     * virtual content object) is shown within the scroller. Unlike
7113     * elm_scroller_region_show(), this allow the scroller to "smoothly slide"
7114     * to this location (if configuration in general calls for transitions). It
7115     * may not jump immediately to the new location and make take a while and
7116     * show other content along the way.
7117     *
7118     * @see elm_scroller_region_show()
7119     */
7120    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);
7121    /**
7122     * @brief Set event propagation on a scroller
7123     *
7124     * @param obj The scroller object
7125     * @param propagation If propagation is enabled or not
7126     *
7127     * This enables or disabled event propagation from the scroller content to
7128     * the scroller and its parent. By default event propagation is disabled.
7129     */
7130    EAPI void         elm_scroller_propagate_events_set(Evas_Object *obj, Eina_Bool propagation) EINA_ARG_NONNULL(1);
7131    /**
7132     * @brief Get event propagation for a scroller
7133     *
7134     * @param obj The scroller object
7135     * @return The propagation state
7136     *
7137     * This gets the event propagation for a scroller.
7138     *
7139     * @see elm_scroller_propagate_events_set()
7140     */
7141    EAPI Eina_Bool    elm_scroller_propagate_events_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7142    /**
7143     * @brief Set scrolling gravity on a scroller
7144     *
7145     * @param obj The scroller object
7146     * @param x The scrolling horizontal gravity
7147     * @param y The scrolling vertical gravity
7148     *
7149     * The gravity, defines how the scroller will adjust its view
7150     * when the size of the scroller contents increase.
7151     *
7152     * The scroller will adjust the view to glue itself as follows.
7153     *
7154     *  x=0.0, for showing the left most region of the content.
7155     *  x=1.0, for showing the right most region of the content.
7156     *  y=0.0, for showing the bottom most region of the content.
7157     *  y=1.0, for showing the top most region of the content.
7158     *
7159     * Default values for x and y are 0.0
7160     */
7161    EAPI void         elm_scroller_gravity_set(Evas_Object *obj, double x, double y) EINA_ARG_NONNULL(1);
7162    /**
7163     * @brief Get scrolling gravity values for a scroller
7164     *
7165     * @param obj The scroller object
7166     * @param x The scrolling horizontal gravity
7167     * @param y The scrolling vertical gravity
7168     *
7169     * This gets gravity values for a scroller.
7170     *
7171     * @see elm_scroller_gravity_set()
7172     *
7173     */
7174    EAPI void         elm_scroller_gravity_get(const Evas_Object *obj, double *x, double *y) EINA_ARG_NONNULL(1);
7175    /**
7176     * @}
7177     */
7178
7179    /**
7180     * @defgroup Label Label
7181     *
7182     * @image html img/widget/label/preview-00.png
7183     * @image latex img/widget/label/preview-00.eps
7184     *
7185     * @brief Widget to display text, with simple html-like markup.
7186     *
7187     * The Label widget @b doesn't allow text to overflow its boundaries, if the
7188     * text doesn't fit the geometry of the label it will be ellipsized or be
7189     * cut. Elementary provides several themes for this widget:
7190     * @li default - No animation
7191     * @li marker - Centers the text in the label and make it bold by default
7192     * @li slide_long - The entire text appears from the right of the screen and
7193     * slides until it disappears in the left of the screen(reappering on the
7194     * right again).
7195     * @li slide_short - The text appears in the left of the label and slides to
7196     * the right to show the overflow. When all of the text has been shown the
7197     * position is reset.
7198     * @li slide_bounce - The text appears in the left of the label and slides to
7199     * the right to show the overflow. When all of the text has been shown the
7200     * animation reverses, moving the text to the left.
7201     *
7202     * Custom themes can of course invent new markup tags and style them any way
7203     * they like.
7204     *
7205     * The following signals may be emitted by the label widget:
7206     * @li "language,changed": The program's language changed.
7207     *
7208     * See @ref tutorial_label for a demonstration of how to use a label widget.
7209     * @{
7210     */
7211    /**
7212     * @brief Add a new label to the parent
7213     *
7214     * @param parent The parent object
7215     * @return The new object or NULL if it cannot be created
7216     */
7217    EAPI Evas_Object *elm_label_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7218    /**
7219     * @brief Set the label on the label object
7220     *
7221     * @param obj The label object
7222     * @param label The label will be used on the label object
7223     * @deprecated See elm_object_text_set()
7224     */
7225    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 */
7226    /**
7227     * @brief Get the label used on the label object
7228     *
7229     * @param obj The label object
7230     * @return The string inside the label
7231     * @deprecated See elm_object_text_get()
7232     */
7233    EINA_DEPRECATED EAPI const char *elm_label_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1); /* deprecated, use elm_object_text_get instead */
7234    /**
7235     * @brief Set the wrapping behavior of the label
7236     *
7237     * @param obj The label object
7238     * @param wrap To wrap text or not
7239     *
7240     * By default no wrapping is done. Possible values for @p wrap are:
7241     * @li ELM_WRAP_NONE - No wrapping
7242     * @li ELM_WRAP_CHAR - wrap between characters
7243     * @li ELM_WRAP_WORD - wrap between words
7244     * @li ELM_WRAP_MIXED - Word wrap, and if that fails, char wrap
7245     */
7246    EAPI void         elm_label_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
7247    /**
7248     * @brief Get the wrapping behavior of the label
7249     *
7250     * @param obj The label object
7251     * @return Wrap type
7252     *
7253     * @see elm_label_line_wrap_set()
7254     */
7255    EAPI Elm_Wrap_Type elm_label_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7256    /**
7257     * @brief Set wrap width of the label
7258     *
7259     * @param obj The label object
7260     * @param w The wrap width in pixels at a minimum where words need to wrap
7261     *
7262     * This function sets the maximum width size hint of the label.
7263     *
7264     * @warning This is only relevant if the label is inside a container.
7265     */
7266    EAPI void         elm_label_wrap_width_set(Evas_Object *obj, Evas_Coord w) EINA_ARG_NONNULL(1);
7267    /**
7268     * @brief Get wrap width of the label
7269     *
7270     * @param obj The label object
7271     * @return The wrap width in pixels at a minimum where words need to wrap
7272     *
7273     * @see elm_label_wrap_width_set()
7274     */
7275    EAPI Evas_Coord   elm_label_wrap_width_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7276    /**
7277     * @brief Set wrap height of the label
7278     *
7279     * @param obj The label object
7280     * @param h The wrap height in pixels at a minimum where words need to wrap
7281     *
7282     * This function sets the maximum height size hint of the label.
7283     *
7284     * @warning This is only relevant if the label is inside a container.
7285     */
7286    EAPI void         elm_label_wrap_height_set(Evas_Object *obj, Evas_Coord h) EINA_ARG_NONNULL(1);
7287    /**
7288     * @brief get wrap width of the label
7289     *
7290     * @param obj The label object
7291     * @return The wrap height in pixels at a minimum where words need to wrap
7292     */
7293    EAPI Evas_Coord   elm_label_wrap_height_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7294    /**
7295     * @brief Set the font size on the label object.
7296     *
7297     * @param obj The label object
7298     * @param size font size
7299     *
7300     * @warning NEVER use this. It is for hyper-special cases only. use styles
7301     * instead. e.g. "big", "medium", "small" - or better name them by use:
7302     * "title", "footnote", "quote" etc.
7303     */
7304    EAPI void         elm_label_fontsize_set(Evas_Object *obj, int fontsize) EINA_ARG_NONNULL(1);
7305    /**
7306     * @brief Set the text color on the label object
7307     *
7308     * @param obj The label object
7309     * @param r Red property background color of The label object
7310     * @param g Green property background color of The label object
7311     * @param b Blue property background color of The label object
7312     * @param a Alpha property background color of The label object
7313     *
7314     * @warning NEVER use this. It is for hyper-special cases only. use styles
7315     * instead. e.g. "big", "medium", "small" - or better name them by use:
7316     * "title", "footnote", "quote" etc.
7317     */
7318    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);
7319    /**
7320     * @brief Set the text align on the label object
7321     *
7322     * @param obj The label object
7323     * @param align align mode ("left", "center", "right")
7324     *
7325     * @warning NEVER use this. It is for hyper-special cases only. use styles
7326     * instead. e.g. "big", "medium", "small" - or better name them by use:
7327     * "title", "footnote", "quote" etc.
7328     */
7329    EAPI void         elm_label_text_align_set(Evas_Object *obj, const char *alignmode) EINA_ARG_NONNULL(1);
7330    /**
7331     * @brief Set background color of the label
7332     *
7333     * @param obj The label object
7334     * @param r Red property background color of The label object
7335     * @param g Green property background color of The label object
7336     * @param b Blue property background color of The label object
7337     * @param a Alpha property background alpha of The label object
7338     *
7339     * @warning NEVER use this. It is for hyper-special cases only. use styles
7340     * instead. e.g. "big", "medium", "small" - or better name them by use:
7341     * "title", "footnote", "quote" etc.
7342     */
7343    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);
7344    /**
7345     * @brief Set the ellipsis behavior of the label
7346     *
7347     * @param obj The label object
7348     * @param ellipsis To ellipsis text or not
7349     *
7350     * If set to true and the text doesn't fit in the label an ellipsis("...")
7351     * will be shown at the end of the widget.
7352     *
7353     * @warning This doesn't work with slide(elm_label_slide_set()) or if the
7354     * choosen wrap method was ELM_WRAP_WORD.
7355     */
7356    EAPI void         elm_label_ellipsis_set(Evas_Object *obj, Eina_Bool ellipsis) EINA_ARG_NONNULL(1);
7357    EINA_DEPRECATED EAPI void elm_label_wrap_mode_set(Evas_Object *obj, Eina_Bool wrapmode) EINA_ARG_NONNULL(1);
7358    /**
7359     * @brief Set the text slide of the label
7360     *
7361     * @param obj The label object
7362     * @param slide To start slide or stop
7363     *
7364     * If set to true, the text of the label will slide/scroll through the length of
7365     * label.
7366     *
7367     * @warning This only works with the themes "slide_short", "slide_long" and
7368     * "slide_bounce".
7369     */
7370    EAPI void         elm_label_slide_set(Evas_Object *obj, Eina_Bool slide) EINA_ARG_NONNULL(1);
7371    /**
7372     * @brief Get the text slide mode of the label
7373     *
7374     * @param obj The label object
7375     * @return slide slide mode value
7376     *
7377     * @see elm_label_slide_set()
7378     */
7379    EAPI Eina_Bool    elm_label_slide_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
7380    /**
7381     * @brief Set the slide duration(speed) of the label
7382     *
7383     * @param obj The label object
7384     * @return The duration in seconds in moving text from slide begin position
7385     * to slide end position
7386     */
7387    EAPI void         elm_label_slide_duration_set(Evas_Object *obj, double duration) EINA_ARG_NONNULL(1);
7388    /**
7389     * @brief Get the slide duration(speed) of the label
7390     *
7391     * @param obj The label object
7392     * @return The duration time in moving text from slide begin position to slide end position
7393     *
7394     * @see elm_label_slide_duration_set()
7395     */
7396    EAPI double       elm_label_slide_duration_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
7397    /**
7398     * @}
7399     */
7400
7401    /**
7402     * @defgroup Toggle Toggle
7403     *
7404     * @image html img/widget/toggle/preview-00.png
7405     * @image latex img/widget/toggle/preview-00.eps
7406     *
7407     * @brief A toggle is a slider which can be used to toggle between
7408     * two values.  It has two states: on and off.
7409     *
7410     * This widget is deprecated. Please use elm_check_add() instead using the
7411     * toggle style like:
7412     * 
7413     * @code
7414     * obj = elm_check_add(parent);
7415     * elm_object_style_set(obj, "toggle");
7416     * elm_object_text_part_set(obj, "on", "ON");
7417     * elm_object_text_part_set(obj, "off", "OFF");
7418     * @endcode
7419     * 
7420     * Signals that you can add callbacks for are:
7421     * @li "changed" - Whenever the toggle value has been changed.  Is not called
7422     *                 until the toggle is released by the cursor (assuming it
7423     *                 has been triggered by the cursor in the first place).
7424     *
7425     * @ref tutorial_toggle show how to use a toggle.
7426     * @{
7427     */
7428    /**
7429     * @brief Add a toggle to @p parent.
7430     *
7431     * @param parent The parent object
7432     *
7433     * @return The toggle object
7434     */
7435    EAPI Evas_Object *elm_toggle_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7436    /**
7437     * @brief Sets the label to be displayed with the toggle.
7438     *
7439     * @param obj The toggle object
7440     * @param label The label to be displayed
7441     *
7442     * @deprecated use elm_object_text_set() instead.
7443     */
7444    EINA_DEPRECATED EAPI void         elm_toggle_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7445    /**
7446     * @brief Gets the label of the toggle
7447     *
7448     * @param obj  toggle object
7449     * @return The label of the toggle
7450     *
7451     * @deprecated use elm_object_text_get() instead.
7452     */
7453    EINA_DEPRECATED EAPI const char  *elm_toggle_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7454    /**
7455     * @brief Set the icon used for the toggle
7456     *
7457     * @param obj The toggle object
7458     * @param icon The icon object for the button
7459     *
7460     * Once the icon object is set, a previously set one will be deleted
7461     * If you want to keep that old content object, use the
7462     * elm_toggle_icon_unset() function.
7463     *
7464     * @deprecated use elm_object_content_set() instead.
7465     */
7466    EAPI void         elm_toggle_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
7467    /**
7468     * @brief Get the icon used for the toggle
7469     *
7470     * @param obj The toggle object
7471     * @return The icon object that is being used
7472     *
7473     * Return the icon object which is set for this widget.
7474     *
7475     * @see elm_toggle_icon_set()
7476     *
7477     * @deprecated use elm_object_content_get() instead.
7478     */
7479    EAPI Evas_Object *elm_toggle_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7480    /**
7481     * @brief Unset the icon used for the toggle
7482     *
7483     * @param obj The toggle object
7484     * @return The icon object that was being used
7485     *
7486     * Unparent and return the icon object which was set for this widget.
7487     *
7488     * @see elm_toggle_icon_set()
7489     *
7490     * @deprecated use elm_object_content_unset() instead.
7491     */
7492    EAPI Evas_Object *elm_toggle_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7493    /**
7494     * @brief Sets the labels to be associated with the on and off states of the toggle.
7495     *
7496     * @param obj The toggle object
7497     * @param onlabel The label displayed when the toggle is in the "on" state
7498     * @param offlabel The label displayed when the toggle is in the "off" state
7499     *
7500     * @deprecated use elm_object_text_part_set() for "on" and "off" parts
7501     * instead.
7502     */
7503    EAPI void         elm_toggle_states_labels_set(Evas_Object *obj, const char *onlabel, const char *offlabel) EINA_ARG_NONNULL(1);
7504    /**
7505     * @brief Gets the labels associated with the on and off states of the
7506     * toggle.
7507     *
7508     * @param obj The toggle object
7509     * @param onlabel A char** to place the onlabel of @p obj into
7510     * @param offlabel A char** to place the offlabel of @p obj into
7511     *
7512     * @deprecated use elm_object_text_part_get() for "on" and "off" parts
7513     * instead.
7514     */
7515    EAPI void         elm_toggle_states_labels_get(const Evas_Object *obj, const char **onlabel, const char **offlabel) EINA_ARG_NONNULL(1);
7516    /**
7517     * @brief Sets the state of the toggle to @p state.
7518     *
7519     * @param obj The toggle object
7520     * @param state The state of @p obj
7521     *
7522     * @deprecated use elm_check_state_set() instead.
7523     */
7524    EAPI void         elm_toggle_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
7525    /**
7526     * @brief Gets the state of the toggle to @p state.
7527     *
7528     * @param obj The toggle object
7529     * @return The state of @p obj
7530     *
7531     * @deprecated use elm_check_state_get() instead.
7532     */
7533    EAPI Eina_Bool    elm_toggle_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7534    /**
7535     * @brief Sets the state pointer of the toggle to @p statep.
7536     *
7537     * @param obj The toggle object
7538     * @param statep The state pointer of @p obj
7539     *
7540     * @deprecated use elm_check_state_pointer_set() instead.
7541     */
7542    EAPI void         elm_toggle_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
7543    /**
7544     * @}
7545     */
7546
7547    /**
7548     * @page tutorial_frame Frame example
7549     * @dontinclude frame_example_01.c
7550     *
7551     * In this example we are going to create 4 Frames with different styles and
7552     * add a rectangle of different color in each.
7553     *
7554     * We start we the usual setup code:
7555     * @until show(bg)
7556     *
7557     * And then create one rectangle:
7558     * @until show
7559     *
7560     * To add it in our first frame, which since it doesn't have it's style
7561     * specifically set uses the default style:
7562     * @until show
7563     *
7564     * And then create another rectangle:
7565     * @until show
7566     *
7567     * To add it in our second frame, which uses the "pad_small" style, note that
7568     * even tough we are setting a text for this frame it won't be show, only the
7569     * default style shows the Frame's title:
7570     * @until show
7571     * @note The "pad_small", "pad_medium", "pad_large" and "pad_huge" styles are
7572     * very similar, their only difference is the size of the empty area around
7573     * the content of the frame.
7574     *
7575     * And then create yet another rectangle:
7576     * @until show
7577     *
7578     * To add it in our third frame, which uses the "outdent_top" style, note
7579     * that even tough we are setting a text for this frame it won't be show,
7580     * only the default style shows the Frame's title:
7581     * @until show
7582     *
7583     * And then create one last rectangle:
7584     * @until show
7585     *
7586     * To add it in our fourth and final frame, which uses the "outdent_bottom"
7587     * style, note that even tough we are setting a text for this frame it won't
7588     * be show, only the default style shows the Frame's title:
7589     * @until show
7590     *
7591     * And now we are left with just some more setup code:
7592     * @until ELM_MAIN()
7593     *
7594     * Our example will look like this:
7595     * @image html screenshots/frame_example_01.png
7596     * @image latex screenshots/frame_example_01.eps
7597     *
7598     * @example frame_example_01.c
7599     */
7600    /**
7601     * @defgroup Frame Frame
7602     *
7603     * @brief Frame is a widget that holds some content and has a title.
7604     *
7605     * The default look is a frame with a title, but Frame supports multple
7606     * styles:
7607     * @li default
7608     * @li pad_small
7609     * @li pad_medium
7610     * @li pad_large
7611     * @li pad_huge
7612     * @li outdent_top
7613     * @li outdent_bottom
7614     *
7615     * Of all this styles only default shows the title. Frame emits no signals.
7616     *
7617     * For a detailed example see the @ref tutorial_frame.
7618     *
7619     * @{
7620     */
7621    /**
7622     * @brief Add a new frame to the parent
7623     *
7624     * @param parent The parent object
7625     * @return The new object or NULL if it cannot be created
7626     */
7627    EAPI Evas_Object *elm_frame_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7628    /**
7629     * @brief Set the frame label
7630     *
7631     * @param obj The frame object
7632     * @param label The label of this frame object
7633     *
7634     * @deprecated use elm_object_text_set() instead.
7635     */
7636    EINA_DEPRECATED EAPI void         elm_frame_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7637    /**
7638     * @brief Get the frame label
7639     *
7640     * @param obj The frame object
7641     *
7642     * @return The label of this frame objet or NULL if unable to get frame
7643     *
7644     * @deprecated use elm_object_text_get() instead.
7645     */
7646    EINA_DEPRECATED EAPI const char  *elm_frame_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7647    /**
7648     * @brief Set the content of the frame widget
7649     *
7650     * Once the content object is set, a previously set one will be deleted.
7651     * If you want to keep that old content object, use the
7652     * elm_frame_content_unset() function.
7653     *
7654     * @param obj The frame object
7655     * @param content The content will be filled in this frame object
7656     */
7657    EAPI void         elm_frame_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
7658    /**
7659     * @brief Get the content of the frame widget
7660     *
7661     * Return the content object which is set for this widget
7662     *
7663     * @param obj The frame object
7664     * @return The content that is being used
7665     */
7666    EAPI Evas_Object *elm_frame_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7667    /**
7668     * @brief Unset the content of the frame widget
7669     *
7670     * Unparent and return the content object which was set for this widget
7671     *
7672     * @param obj The frame object
7673     * @return The content that was being used
7674     */
7675    EAPI Evas_Object *elm_frame_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7676    /**
7677     * @}
7678     */
7679
7680    /**
7681     * @defgroup Table Table
7682     *
7683     * A container widget to arrange other widgets in a table where items can
7684     * also span multiple columns or rows - even overlap (and then be raised or
7685     * lowered accordingly to adjust stacking if they do overlap).
7686     *
7687     * For a Table widget the row/column count is not fixed.
7688     * The table widget adjusts itself when subobjects are added to it dynamically.
7689     *
7690     * The followin are examples of how to use a table:
7691     * @li @ref tutorial_table_01
7692     * @li @ref tutorial_table_02
7693     *
7694     * @{
7695     */
7696    /**
7697     * @brief Add a new table to the parent
7698     *
7699     * @param parent The parent object
7700     * @return The new object or NULL if it cannot be created
7701     */
7702    EAPI Evas_Object *elm_table_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7703    /**
7704     * @brief Set the homogeneous layout in the table
7705     *
7706     * @param obj The layout object
7707     * @param homogeneous A boolean to set if the layout is homogeneous in the
7708     * table (EINA_TRUE = homogeneous,  EINA_FALSE = no homogeneous)
7709     */
7710    EAPI void         elm_table_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
7711    /**
7712     * @brief Get the current table homogeneous mode.
7713     *
7714     * @param obj The table object
7715     * @return A boolean to indicating if the layout is homogeneous in the table
7716     * (EINA_TRUE = homogeneous,  EINA_FALSE = no homogeneous)
7717     */
7718    EAPI Eina_Bool    elm_table_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7719    /**
7720     * @warning <b>Use elm_table_homogeneous_set() instead</b>
7721     */
7722    EINA_DEPRECATED EAPI void elm_table_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
7723    /**
7724     * @warning <b>Use elm_table_homogeneous_get() instead</b>
7725     */
7726    EINA_DEPRECATED EAPI Eina_Bool elm_table_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7727    /**
7728     * @brief Set padding between cells.
7729     *
7730     * @param obj The layout object.
7731     * @param horizontal set the horizontal padding.
7732     * @param vertical set the vertical padding.
7733     *
7734     * Default value is 0.
7735     */
7736    EAPI void         elm_table_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
7737    /**
7738     * @brief Get padding between cells.
7739     *
7740     * @param obj The layout object.
7741     * @param horizontal set the horizontal padding.
7742     * @param vertical set the vertical padding.
7743     */
7744    EAPI void         elm_table_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
7745    /**
7746     * @brief Add a subobject on the table with the coordinates passed
7747     *
7748     * @param obj The table object
7749     * @param subobj The subobject to be added to the table
7750     * @param x Row number
7751     * @param y Column number
7752     * @param w rowspan
7753     * @param h colspan
7754     *
7755     * @note All positioning inside the table is relative to rows and columns, so
7756     * a value of 0 for x and y, means the top left cell of the table, and a
7757     * value of 1 for w and h means @p subobj only takes that 1 cell.
7758     */
7759    EAPI void         elm_table_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
7760    /**
7761     * @brief Remove child from table.
7762     *
7763     * @param obj The table object
7764     * @param subobj The subobject
7765     */
7766    EAPI void         elm_table_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
7767    /**
7768     * @brief Faster way to remove all child objects from a table object.
7769     *
7770     * @param obj The table object
7771     * @param clear If true, will delete children, else just remove from table.
7772     */
7773    EAPI void         elm_table_clear(Evas_Object *obj, Eina_Bool clear) EINA_ARG_NONNULL(1);
7774    /**
7775     * @brief Set the packing location of an existing child of the table
7776     *
7777     * @param subobj The subobject to be modified in the table
7778     * @param x Row number
7779     * @param y Column number
7780     * @param w rowspan
7781     * @param h colspan
7782     *
7783     * Modifies the position of an object already in the table.
7784     *
7785     * @note All positioning inside the table is relative to rows and columns, so
7786     * a value of 0 for x and y, means the top left cell of the table, and a
7787     * value of 1 for w and h means @p subobj only takes that 1 cell.
7788     */
7789    EAPI void         elm_table_pack_set(Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
7790    /**
7791     * @brief Get the packing location of an existing child of the table
7792     *
7793     * @param subobj The subobject to be modified in the table
7794     * @param x Row number
7795     * @param y Column number
7796     * @param w rowspan
7797     * @param h colspan
7798     *
7799     * @see elm_table_pack_set()
7800     */
7801    EAPI void         elm_table_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
7802    /**
7803     * @}
7804     */
7805
7806    /**
7807     * @defgroup Gengrid Gengrid (Generic grid)
7808     *
7809     * This widget aims to position objects in a grid layout while
7810     * actually creating and rendering only the visible ones, using the
7811     * same idea as the @ref Genlist "genlist": the user defines a @b
7812     * class for each item, specifying functions that will be called at
7813     * object creation, deletion, etc. When those items are selected by
7814     * the user, a callback function is issued. Users may interact with
7815     * a gengrid via the mouse (by clicking on items to select them and
7816     * clicking on the grid's viewport and swiping to pan the whole
7817     * view) or via the keyboard, navigating through item with the
7818     * arrow keys.
7819     *
7820     * @section Gengrid_Layouts Gengrid layouts
7821     *
7822     * Gengrid may layout its items in one of two possible layouts:
7823     * - horizontal or
7824     * - vertical.
7825     *
7826     * When in "horizontal mode", items will be placed in @b columns,
7827     * from top to bottom and, when the space for a column is filled,
7828     * another one is started on the right, thus expanding the grid
7829     * horizontally, making for horizontal scrolling. When in "vertical
7830     * mode" , though, items will be placed in @b rows, from left to
7831     * right and, when the space for a row is filled, another one is
7832     * started below, thus expanding the grid vertically (and making
7833     * for vertical scrolling).
7834     *
7835     * @section Gengrid_Items Gengrid items
7836     *
7837     * An item in a gengrid can have 0 or more text labels (they can be
7838     * regular text or textblock Evas objects - that's up to the style
7839     * to determine), 0 or more icons (which are simply objects
7840     * swallowed into the gengrid item's theming Edje object) and 0 or
7841     * more <b>boolean states</b>, which have the behavior left to the
7842     * user to define. The Edje part names for each of these properties
7843     * will be looked up, in the theme file for the gengrid, under the
7844     * Edje (string) data items named @c "labels", @c "icons" and @c
7845     * "states", respectively. For each of those properties, if more
7846     * than one part is provided, they must have names listed separated
7847     * by spaces in the data fields. For the default gengrid item
7848     * theme, we have @b one label part (@c "elm.text"), @b two icon
7849     * parts (@c "elm.swalllow.icon" and @c "elm.swallow.end") and @b
7850     * no state parts.
7851     *
7852     * A gengrid item may be at one of several styles. Elementary
7853     * provides one by default - "default", but this can be extended by
7854     * system or application custom themes/overlays/extensions (see
7855     * @ref Theme "themes" for more details).
7856     *
7857     * @section Gengrid_Item_Class Gengrid item classes
7858     *
7859     * In order to have the ability to add and delete items on the fly,
7860     * gengrid implements a class (callback) system where the
7861     * application provides a structure with information about that
7862     * type of item (gengrid may contain multiple different items with
7863     * different classes, states and styles). Gengrid will call the
7864     * functions in this struct (methods) when an item is "realized"
7865     * (i.e., created dynamically, while the user is scrolling the
7866     * grid). All objects will simply be deleted when no longer needed
7867     * with evas_object_del(). The #Elm_GenGrid_Item_Class structure
7868     * contains the following members:
7869     * - @c item_style - This is a constant string and simply defines
7870     * the name of the item style. It @b must be specified and the
7871     * default should be @c "default".
7872     * - @c func.label_get - This function is called when an item
7873     * object is actually created. The @c data parameter will point to
7874     * the same data passed to elm_gengrid_item_append() and related
7875     * item creation functions. The @c obj parameter is the gengrid
7876     * object itself, while the @c part one is the name string of one
7877     * of the existing text parts in the Edje group implementing the
7878     * item's theme. This function @b must return a strdup'()ed string,
7879     * as the caller will free() it when done. See
7880     * #Elm_Gengrid_Item_Label_Get_Cb.
7881     * - @c func.content_get - This function is called when an item object
7882     * is actually created. The @c data parameter will point to the
7883     * same data passed to elm_gengrid_item_append() and related item
7884     * creation functions. The @c obj parameter is the gengrid object
7885     * itself, while the @c part one is the name string of one of the
7886     * existing (content) swallow parts in the Edje group implementing the
7887     * item's theme. It must return @c NULL, when no content is desired,
7888     * or a valid object handle, otherwise. The object will be deleted
7889     * by the gengrid on its deletion or when the item is "unrealized".
7890     * See #Elm_Gengrid_Item_Content_Get_Cb.
7891     * - @c func.state_get - This function is called when an item
7892     * object is actually created. The @c data parameter will point to
7893     * the same data passed to elm_gengrid_item_append() and related
7894     * item creation functions. The @c obj parameter is the gengrid
7895     * object itself, while the @c part one is the name string of one
7896     * of the state parts in the Edje group implementing the item's
7897     * theme. Return @c EINA_FALSE for false/off or @c EINA_TRUE for
7898     * true/on. Gengrids will emit a signal to its theming Edje object
7899     * with @c "elm,state,XXX,active" and @c "elm" as "emission" and
7900     * "source" arguments, respectively, when the state is true (the
7901     * default is false), where @c XXX is the name of the (state) part.
7902     * See #Elm_Gengrid_Item_State_Get_Cb.
7903     * - @c func.del - This is called when elm_gengrid_item_del() is
7904     * called on an item or elm_gengrid_clear() is called on the
7905     * gengrid. This is intended for use when gengrid items are
7906     * deleted, so any data attached to the item (e.g. its data
7907     * parameter on creation) can be deleted. See #Elm_Gengrid_Item_Del_Cb.
7908     *
7909     * @section Gengrid_Usage_Hints Usage hints
7910     *
7911     * If the user wants to have multiple items selected at the same
7912     * time, elm_gengrid_multi_select_set() will permit it. If the
7913     * gengrid is single-selection only (the default), then
7914     * elm_gengrid_select_item_get() will return the selected item or
7915     * @c NULL, if none is selected. If the gengrid is under
7916     * multi-selection, then elm_gengrid_selected_items_get() will
7917     * return a list (that is only valid as long as no items are
7918     * modified (added, deleted, selected or unselected) of child items
7919     * on a gengrid.
7920     *
7921     * If an item changes (internal (boolean) state, label or content 
7922     * changes), then use elm_gengrid_item_update() to have gengrid
7923     * update the item with the new state. A gengrid will re-"realize"
7924     * the item, thus calling the functions in the
7925     * #Elm_Gengrid_Item_Class set for that item.
7926     *
7927     * To programmatically (un)select an item, use
7928     * elm_gengrid_item_selected_set(). To get its selected state use
7929     * elm_gengrid_item_selected_get(). To make an item disabled
7930     * (unable to be selected and appear differently) use
7931     * elm_gengrid_item_disabled_set() to set this and
7932     * elm_gengrid_item_disabled_get() to get the disabled state.
7933     *
7934     * Grid cells will only have their selection smart callbacks called
7935     * when firstly getting selected. Any further clicks will do
7936     * nothing, unless you enable the "always select mode", with
7937     * elm_gengrid_always_select_mode_set(), thus making every click to
7938     * issue selection callbacks. elm_gengrid_no_select_mode_set() will
7939     * turn off the ability to select items entirely in the widget and
7940     * they will neither appear selected nor call the selection smart
7941     * callbacks.
7942     *
7943     * Remember that you can create new styles and add your own theme
7944     * augmentation per application with elm_theme_extension_add(). If
7945     * you absolutely must have a specific style that overrides any
7946     * theme the user or system sets up you can use
7947     * elm_theme_overlay_add() to add such a file.
7948     *
7949     * @section Gengrid_Smart_Events Gengrid smart events
7950     *
7951     * Smart events that you can add callbacks for are:
7952     * - @c "activated" - The user has double-clicked or pressed
7953     *   (enter|return|spacebar) on an item. The @c event_info parameter
7954     *   is the gengrid item that was activated.
7955     * - @c "clicked,double" - The user has double-clicked an item.
7956     *   The @c event_info parameter is the gengrid item that was double-clicked.
7957     * - @c "longpressed" - This is called when the item is pressed for a certain
7958     *   amount of time. By default it's 1 second.
7959     * - @c "selected" - The user has made an item selected. The
7960     *   @c event_info parameter is the gengrid item that was selected.
7961     * - @c "unselected" - The user has made an item unselected. The
7962     *   @c event_info parameter is the gengrid item that was unselected.
7963     * - @c "realized" - This is called when the item in the gengrid
7964     *   has its implementing Evas object instantiated, de facto. @c
7965     *   event_info is the gengrid item that was created. The object
7966     *   may be deleted at any time, so it is highly advised to the
7967     *   caller @b not to use the object pointer returned from
7968     *   elm_gengrid_item_object_get(), because it may point to freed
7969     *   objects.
7970     * - @c "unrealized" - This is called when the implementing Evas
7971     *   object for this item is deleted. @c event_info is the gengrid
7972     *   item that was deleted.
7973     * - @c "changed" - Called when an item is added, removed, resized
7974     *   or moved and when the gengrid is resized or gets "horizontal"
7975     *   property changes.
7976     * - @c "scroll,anim,start" - This is called when scrolling animation has
7977     *   started.
7978     * - @c "scroll,anim,stop" - This is called when scrolling animation has
7979     *   stopped.
7980     * - @c "drag,start,up" - Called when the item in the gengrid has
7981     *   been dragged (not scrolled) up.
7982     * - @c "drag,start,down" - Called when the item in the gengrid has
7983     *   been dragged (not scrolled) down.
7984     * - @c "drag,start,left" - Called when the item in the gengrid has
7985     *   been dragged (not scrolled) left.
7986     * - @c "drag,start,right" - Called when the item in the gengrid has
7987     *   been dragged (not scrolled) right.
7988     * - @c "drag,stop" - Called when the item in the gengrid has
7989     *   stopped being dragged.
7990     * - @c "drag" - Called when the item in the gengrid is being
7991     *   dragged.
7992     * - @c "scroll" - called when the content has been scrolled
7993     *   (moved).
7994     * - @c "scroll,drag,start" - called when dragging the content has
7995     *   started.
7996     * - @c "scroll,drag,stop" - called when dragging the content has
7997     *   stopped.
7998     * - @c "edge,top" - This is called when the gengrid is scrolled until
7999     *   the top edge.
8000     * - @c "edge,bottom" - This is called when the gengrid is scrolled
8001     *   until the bottom edge.
8002     * - @c "edge,left" - This is called when the gengrid is scrolled
8003     *   until the left edge.
8004     * - @c "edge,right" - This is called when the gengrid is scrolled
8005     *   until the right edge.
8006     *
8007     * List of gengrid examples:
8008     * @li @ref gengrid_example
8009     */
8010
8011    /**
8012     * @addtogroup Gengrid
8013     * @{
8014     */
8015
8016    typedef struct _Elm_Gengrid_Item_Class Elm_Gengrid_Item_Class; /**< Gengrid item class definition structs */
8017    typedef struct _Elm_Gengrid_Item Elm_Gengrid_Item; /**< Gengrid item handles */
8018    typedef struct _Elm_Gengrid_Item_Class_Func Elm_Gengrid_Item_Class_Func; /**< Class functions for gengrid item classes. */
8019    typedef char        *(*Elm_Gengrid_Item_Label_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< Label fetching class function for gengrid item classes. */
8020    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. */
8021    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. */
8022    typedef void         (*Elm_Gengrid_Item_Del_Cb)      (void *data, Evas_Object *obj); /**< Deletion class function for gengrid item classes. */
8023
8024    /* temporary compatibility code */
8025    typedef Elm_Gengrid_Item_Label_Get_Cb GridItemLabelGetFunc EINA_DEPRECATED;
8026    typedef Elm_Gengrid_Item_Content_Get_Cb GridItemIconGetFunc EINA_DEPRECATED;
8027    typedef Elm_Gengrid_Item_State_Get_Cb GridItemStateGetFunc EINA_DEPRECATED;
8028    typedef Elm_Gengrid_Item_Del_Cb GridItemDelFunc EINA_DEPRECATED;
8029
8030    /**
8031     * @struct _Elm_Gengrid_Item_Class
8032     *
8033     * Gengrid item class definition. See @ref Gengrid_Item_Class for
8034     * field details.
8035     */
8036    struct _Elm_Gengrid_Item_Class
8037      {
8038         const char             *item_style;
8039         struct _Elm_Gengrid_Item_Class_Func
8040           {
8041              Elm_Gengrid_Item_Label_Get_Cb label_get;
8042              Elm_Gengrid_Item_Content_Get_Cb icon_get;
8043              Elm_Gengrid_Item_State_Get_Cb state_get;
8044              Elm_Gengrid_Item_Del_Cb       del;
8045           } func;
8046      }; /**< #Elm_Gengrid_Item_Class member definitions */
8047    /**
8048     * Add a new gengrid widget to the given parent Elementary
8049     * (container) object
8050     *
8051     * @param parent The parent object
8052     * @return a new gengrid widget handle or @c NULL, on errors
8053     *
8054     * This function inserts a new gengrid widget on the canvas.
8055     *
8056     * @see elm_gengrid_item_size_set()
8057     * @see elm_gengrid_group_item_size_set()
8058     * @see elm_gengrid_horizontal_set()
8059     * @see elm_gengrid_item_append()
8060     * @see elm_gengrid_item_del()
8061     * @see elm_gengrid_clear()
8062     *
8063     * @ingroup Gengrid
8064     */
8065    EAPI Evas_Object       *elm_gengrid_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
8066
8067    /**
8068     * Set the size for the items of a given gengrid widget
8069     *
8070     * @param obj The gengrid object.
8071     * @param w The items' width.
8072     * @param h The items' height;
8073     *
8074     * A gengrid, after creation, has still no information on the size
8075     * to give to each of its cells. So, you most probably will end up
8076     * with squares one @ref Fingers "finger" wide, the default
8077     * size. Use this function to force a custom size for you items,
8078     * making them as big as you wish.
8079     *
8080     * @see elm_gengrid_item_size_get()
8081     *
8082     * @ingroup Gengrid
8083     */
8084    EAPI void               elm_gengrid_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
8085
8086    /**
8087     * Get the size set for the items of a given gengrid widget
8088     *
8089     * @param obj The gengrid object.
8090     * @param w Pointer to a variable where to store the items' width.
8091     * @param h Pointer to a variable where to store the items' height.
8092     *
8093     * @note Use @c NULL pointers on the size values you're not
8094     * interested in: they'll be ignored by the function.
8095     *
8096     * @see elm_gengrid_item_size_get() for more details
8097     *
8098     * @ingroup Gengrid
8099     */
8100    EAPI void               elm_gengrid_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
8101
8102    /**
8103     * Set the items grid's alignment within a given gengrid widget
8104     *
8105     * @param obj The gengrid object.
8106     * @param align_x Alignment in the horizontal axis (0 <= align_x <= 1).
8107     * @param align_y Alignment in the vertical axis (0 <= align_y <= 1).
8108     *
8109     * This sets the alignment of the whole grid of items of a gengrid
8110     * within its given viewport. By default, those values are both
8111     * 0.5, meaning that the gengrid will have its items grid placed
8112     * exactly in the middle of its viewport.
8113     *
8114     * @note If given alignment values are out of the cited ranges,
8115     * they'll be changed to the nearest boundary values on the valid
8116     * ranges.
8117     *
8118     * @see elm_gengrid_align_get()
8119     *
8120     * @ingroup Gengrid
8121     */
8122    EAPI void               elm_gengrid_align_set(Evas_Object *obj, double align_x, double align_y) EINA_ARG_NONNULL(1);
8123
8124    /**
8125     * Get the items grid's alignment values within a given gengrid
8126     * widget
8127     *
8128     * @param obj The gengrid object.
8129     * @param align_x Pointer to a variable where to store the
8130     * horizontal alignment.
8131     * @param align_y Pointer to a variable where to store the vertical
8132     * alignment.
8133     *
8134     * @note Use @c NULL pointers on the alignment values you're not
8135     * interested in: they'll be ignored by the function.
8136     *
8137     * @see elm_gengrid_align_set() for more details
8138     *
8139     * @ingroup Gengrid
8140     */
8141    EAPI void               elm_gengrid_align_get(const Evas_Object *obj, double *align_x, double *align_y) EINA_ARG_NONNULL(1);
8142
8143    /**
8144     * Set whether a given gengrid widget is or not able have items
8145     * @b reordered
8146     *
8147     * @param obj The gengrid object
8148     * @param reorder_mode Use @c EINA_TRUE to turn reoderding on,
8149     * @c EINA_FALSE to turn it off
8150     *
8151     * If a gengrid is set to allow reordering, a click held for more
8152     * than 0.5 over a given item will highlight it specially,
8153     * signalling the gengrid has entered the reordering state. From
8154     * that time on, the user will be able to, while still holding the
8155     * mouse button down, move the item freely in the gengrid's
8156     * viewport, replacing to said item to the locations it goes to.
8157     * The replacements will be animated and, whenever the user
8158     * releases the mouse button, the item being replaced gets a new
8159     * definitive place in the grid.
8160     *
8161     * @see elm_gengrid_reorder_mode_get()
8162     *
8163     * @ingroup Gengrid
8164     */
8165    EAPI void               elm_gengrid_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
8166
8167    /**
8168     * Get whether a given gengrid widget is or not able have items
8169     * @b reordered
8170     *
8171     * @param obj The gengrid object
8172     * @return @c EINA_TRUE, if reoderding is on, @c EINA_FALSE if it's
8173     * off
8174     *
8175     * @see elm_gengrid_reorder_mode_set() for more details
8176     *
8177     * @ingroup Gengrid
8178     */
8179    EAPI Eina_Bool          elm_gengrid_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8180
8181    /**
8182     * Append a new item in a given gengrid widget.
8183     *
8184     * @param obj The gengrid object.
8185     * @param gic The item class for the item.
8186     * @param data The item data.
8187     * @param func Convenience function called when the item is
8188     * selected.
8189     * @param func_data Data to be passed to @p func.
8190     * @return A handle to the item added or @c NULL, on errors.
8191     *
8192     * This adds an item to the beginning of the gengrid.
8193     *
8194     * @see elm_gengrid_item_prepend()
8195     * @see elm_gengrid_item_insert_before()
8196     * @see elm_gengrid_item_insert_after()
8197     * @see elm_gengrid_item_del()
8198     *
8199     * @ingroup Gengrid
8200     */
8201    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);
8202
8203    /**
8204     * Prepend a new item in a given gengrid widget.
8205     *
8206     * @param obj The gengrid object.
8207     * @param gic The item class for the item.
8208     * @param data The item data.
8209     * @param func Convenience function called when the item is
8210     * selected.
8211     * @param func_data Data to be passed to @p func.
8212     * @return A handle to the item added or @c NULL, on errors.
8213     *
8214     * This adds an item to the end of the gengrid.
8215     *
8216     * @see elm_gengrid_item_append()
8217     * @see elm_gengrid_item_insert_before()
8218     * @see elm_gengrid_item_insert_after()
8219     * @see elm_gengrid_item_del()
8220     *
8221     * @ingroup Gengrid
8222     */
8223    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);
8224
8225    /**
8226     * Insert an item before another in a gengrid widget
8227     *
8228     * @param obj The gengrid object.
8229     * @param gic The item class for the item.
8230     * @param data The item data.
8231     * @param relative The item to place this new one before.
8232     * @param func Convenience function called when the item is
8233     * selected.
8234     * @param func_data Data to be passed to @p func.
8235     * @return A handle to the item added or @c NULL, on errors.
8236     *
8237     * This inserts an item before another in the gengrid.
8238     *
8239     * @see elm_gengrid_item_append()
8240     * @see elm_gengrid_item_prepend()
8241     * @see elm_gengrid_item_insert_after()
8242     * @see elm_gengrid_item_del()
8243     *
8244     * @ingroup Gengrid
8245     */
8246    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);
8247
8248    /**
8249     * Insert an item after another in a gengrid widget
8250     *
8251     * @param obj The gengrid object.
8252     * @param gic The item class for the item.
8253     * @param data The item data.
8254     * @param relative The item to place this new one after.
8255     * @param func Convenience function called when the item is
8256     * selected.
8257     * @param func_data Data to be passed to @p func.
8258     * @return A handle to the item added or @c NULL, on errors.
8259     *
8260     * This inserts an item after another in the gengrid.
8261     *
8262     * @see elm_gengrid_item_append()
8263     * @see elm_gengrid_item_prepend()
8264     * @see elm_gengrid_item_insert_after()
8265     * @see elm_gengrid_item_del()
8266     *
8267     * @ingroup Gengrid
8268     */
8269    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);
8270
8271    /**
8272     * Insert an item in a gengrid widget using a user-defined sort function.
8273     *
8274     * @param obj The gengrid object.
8275     * @param gic The item class for the item.
8276     * @param data The item data.
8277     * @param comp User defined comparison function that defines the sort order based on
8278     * Elm_Gen_Item and its data param.
8279     * @param func Convenience function called when the item is selected.
8280     * @param func_data Data to be passed to @p func.
8281     * @return A handle to the item added or @c NULL, on errors.
8282     *
8283     * This inserts an item in the gengrid based on user defined comparison function.
8284     *
8285     * @see elm_gengrid_item_append()
8286     * @see elm_gengrid_item_prepend()
8287     * @see elm_gengrid_item_insert_after()
8288     * @see elm_gengrid_item_del()
8289     * @see elm_gengrid_item_direct_sorted_insert()
8290     *
8291     * @ingroup Gengrid
8292     */
8293    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);
8294
8295    /**
8296     * Insert an item in a gengrid widget using a user-defined sort function.
8297     *
8298     * @param obj The gengrid object.
8299     * @param gic The item class for the item.
8300     * @param data The item data.
8301     * @param comp User defined comparison function that defines the sort order based on
8302     * Elm_Gen_Item.
8303     * @param func Convenience function called when the item is selected.
8304     * @param func_data Data to be passed to @p func.
8305     * @return A handle to the item added or @c NULL, on errors.
8306     *
8307     * This inserts an item in the gengrid based on user defined comparison function.
8308     *
8309     * @see elm_gengrid_item_append()
8310     * @see elm_gengrid_item_prepend()
8311     * @see elm_gengrid_item_insert_after()
8312     * @see elm_gengrid_item_del()
8313     * @see elm_gengrid_item_sorted_insert()
8314     *
8315     * @ingroup Gengrid
8316     */
8317    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);
8318
8319    /**
8320     * Set whether items on a given gengrid widget are to get their
8321     * selection callbacks issued for @b every subsequent selection
8322     * click on them or just for the first click.
8323     *
8324     * @param obj The gengrid object
8325     * @param always_select @c EINA_TRUE to make items "always
8326     * selected", @c EINA_FALSE, otherwise
8327     *
8328     * By default, grid items will only call their selection callback
8329     * function when firstly getting selected, any subsequent further
8330     * clicks will do nothing. With this call, you make those
8331     * subsequent clicks also to issue the selection callbacks.
8332     *
8333     * @note <b>Double clicks</b> will @b always be reported on items.
8334     *
8335     * @see elm_gengrid_always_select_mode_get()
8336     *
8337     * @ingroup Gengrid
8338     */
8339    EAPI void               elm_gengrid_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
8340
8341    /**
8342     * Get whether items on a given gengrid widget have their selection
8343     * callbacks issued for @b every subsequent selection click on them
8344     * or just for the first click.
8345     *
8346     * @param obj The gengrid object.
8347     * @return @c EINA_TRUE if the gengrid items are "always selected",
8348     * @c EINA_FALSE, otherwise
8349     *
8350     * @see elm_gengrid_always_select_mode_set() for more details
8351     *
8352     * @ingroup Gengrid
8353     */
8354    EAPI Eina_Bool          elm_gengrid_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8355
8356    /**
8357     * Set whether items on a given gengrid widget can be selected or not.
8358     *
8359     * @param obj The gengrid object
8360     * @param no_select @c EINA_TRUE to make items selectable,
8361     * @c EINA_FALSE otherwise
8362     *
8363     * This will make items in @p obj selectable or not. In the latter
8364     * case, any user interaction on the gengrid items will neither make
8365     * them appear selected nor them call their selection callback
8366     * functions.
8367     *
8368     * @see elm_gengrid_no_select_mode_get()
8369     *
8370     * @ingroup Gengrid
8371     */
8372    EAPI void               elm_gengrid_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
8373
8374    /**
8375     * Get whether items on a given gengrid widget can be selected or
8376     * not.
8377     *
8378     * @param obj The gengrid object
8379     * @return @c EINA_TRUE, if items are selectable, @c EINA_FALSE
8380     * otherwise
8381     *
8382     * @see elm_gengrid_no_select_mode_set() for more details
8383     *
8384     * @ingroup Gengrid
8385     */
8386    EAPI Eina_Bool          elm_gengrid_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8387
8388    /**
8389     * Enable or disable multi-selection in a given gengrid widget
8390     *
8391     * @param obj The gengrid object.
8392     * @param multi @c EINA_TRUE, to enable multi-selection,
8393     * @c EINA_FALSE to disable it.
8394     *
8395     * Multi-selection is the ability to have @b more than one
8396     * item selected, on a given gengrid, simultaneously. When it is
8397     * enabled, a sequence of clicks on different items will make them
8398     * all selected, progressively. A click on an already selected item
8399     * will unselect it. If interacting via the keyboard,
8400     * multi-selection is enabled while holding the "Shift" key.
8401     *
8402     * @note By default, multi-selection is @b disabled on gengrids
8403     *
8404     * @see elm_gengrid_multi_select_get()
8405     *
8406     * @ingroup Gengrid
8407     */
8408    EAPI void               elm_gengrid_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
8409
8410    /**
8411     * Get whether multi-selection is enabled or disabled for a given
8412     * gengrid widget
8413     *
8414     * @param obj The gengrid object.
8415     * @return @c EINA_TRUE, if multi-selection is enabled, @c
8416     * EINA_FALSE otherwise
8417     *
8418     * @see elm_gengrid_multi_select_set() for more details
8419     *
8420     * @ingroup Gengrid
8421     */
8422    EAPI Eina_Bool          elm_gengrid_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8423
8424    /**
8425     * Enable or disable bouncing effect for a given gengrid widget
8426     *
8427     * @param obj The gengrid object
8428     * @param h_bounce @c EINA_TRUE, to enable @b horizontal bouncing,
8429     * @c EINA_FALSE to disable it
8430     * @param v_bounce @c EINA_TRUE, to enable @b vertical bouncing,
8431     * @c EINA_FALSE to disable it
8432     *
8433     * The bouncing effect occurs whenever one reaches the gengrid's
8434     * edge's while panning it -- it will scroll past its limits a
8435     * little bit and return to the edge again, in a animated for,
8436     * automatically.
8437     *
8438     * @note By default, gengrids have bouncing enabled on both axis
8439     *
8440     * @see elm_gengrid_bounce_get()
8441     *
8442     * @ingroup Gengrid
8443     */
8444    EAPI void               elm_gengrid_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
8445
8446    /**
8447     * Get whether bouncing effects are enabled or disabled, for a
8448     * given gengrid widget, on each axis
8449     *
8450     * @param obj The gengrid object
8451     * @param h_bounce Pointer to a variable where to store the
8452     * horizontal bouncing flag.
8453     * @param v_bounce Pointer to a variable where to store the
8454     * vertical bouncing flag.
8455     *
8456     * @see elm_gengrid_bounce_set() for more details
8457     *
8458     * @ingroup Gengrid
8459     */
8460    EAPI void               elm_gengrid_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
8461
8462    /**
8463     * Set a given gengrid widget's scrolling page size, relative to
8464     * its viewport size.
8465     *
8466     * @param obj The gengrid object
8467     * @param h_pagerel The horizontal page (relative) size
8468     * @param v_pagerel The vertical page (relative) size
8469     *
8470     * The gengrid's scroller is capable of binding scrolling by the
8471     * user to "pages". It means that, while scrolling and, specially
8472     * after releasing the mouse button, the grid will @b snap to the
8473     * nearest displaying page's area. When page sizes are set, the
8474     * grid's continuous content area is split into (equal) page sized
8475     * pieces.
8476     *
8477     * This function sets the size of a page <b>relatively to the
8478     * viewport dimensions</b> of the gengrid, for each axis. A value
8479     * @c 1.0 means "the exact viewport's size", in that axis, while @c
8480     * 0.0 turns paging off in that axis. Likewise, @c 0.5 means "half
8481     * a viewport". Sane usable values are, than, between @c 0.0 and @c
8482     * 1.0. Values beyond those will make it behave behave
8483     * inconsistently. If you only want one axis to snap to pages, use
8484     * the value @c 0.0 for the other one.
8485     *
8486     * There is a function setting page size values in @b absolute
8487     * values, too -- elm_gengrid_page_size_set(). Naturally, its use
8488     * is mutually exclusive to this one.
8489     *
8490     * @see elm_gengrid_page_relative_get()
8491     *
8492     * @ingroup Gengrid
8493     */
8494    EAPI void               elm_gengrid_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
8495
8496    /**
8497     * Get a given gengrid widget's scrolling page size, relative to
8498     * its viewport size.
8499     *
8500     * @param obj The gengrid object
8501     * @param h_pagerel Pointer to a variable where to store the
8502     * horizontal page (relative) size
8503     * @param v_pagerel Pointer to a variable where to store the
8504     * vertical page (relative) size
8505     *
8506     * @see elm_gengrid_page_relative_set() for more details
8507     *
8508     * @ingroup Gengrid
8509     */
8510    EAPI void               elm_gengrid_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel) EINA_ARG_NONNULL(1);
8511
8512    /**
8513     * Set a given gengrid widget's scrolling page size
8514     *
8515     * @param obj The gengrid object
8516     * @param h_pagerel The horizontal page size, in pixels
8517     * @param v_pagerel The vertical page size, in pixels
8518     *
8519     * The gengrid's scroller is capable of binding scrolling by the
8520     * user to "pages". It means that, while scrolling and, specially
8521     * after releasing the mouse button, the grid will @b snap to the
8522     * nearest displaying page's area. When page sizes are set, the
8523     * grid's continuous content area is split into (equal) page sized
8524     * pieces.
8525     *
8526     * This function sets the size of a page of the gengrid, in pixels,
8527     * for each axis. Sane usable values are, between @c 0 and the
8528     * dimensions of @p obj, for each axis. Values beyond those will
8529     * make it behave behave inconsistently. If you only want one axis
8530     * to snap to pages, use the value @c 0 for the other one.
8531     *
8532     * There is a function setting page size values in @b relative
8533     * values, too -- elm_gengrid_page_relative_set(). Naturally, its
8534     * use is mutually exclusive to this one.
8535     *
8536     * @ingroup Gengrid
8537     */
8538    EAPI void               elm_gengrid_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
8539
8540    /**
8541     * Set the direction in which a given gengrid widget will expand while
8542     * placing its items.
8543     *
8544     * @param obj The gengrid object.
8545     * @param setting @c EINA_TRUE to make the gengrid expand
8546     * horizontally, @c EINA_FALSE to expand vertically.
8547     *
8548     * When in "horizontal mode" (@c EINA_TRUE), items will be placed
8549     * in @b columns, from top to bottom and, when the space for a
8550     * column is filled, another one is started on the right, thus
8551     * expanding the grid horizontally. When in "vertical mode"
8552     * (@c EINA_FALSE), though, items will be placed in @b rows, from left
8553     * to right and, when the space for a row is filled, another one is
8554     * started below, thus expanding the grid vertically.
8555     *
8556     * @see elm_gengrid_horizontal_get()
8557     *
8558     * @ingroup Gengrid
8559     */
8560    EAPI void               elm_gengrid_horizontal_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
8561
8562    /**
8563     * Get for what direction a given gengrid widget will expand while
8564     * placing its items.
8565     *
8566     * @param obj The gengrid object.
8567     * @return @c EINA_TRUE, if @p obj is set to expand horizontally,
8568     * @c EINA_FALSE if it's set to expand vertically.
8569     *
8570     * @see elm_gengrid_horizontal_set() for more detais
8571     *
8572     * @ingroup Gengrid
8573     */
8574    EAPI Eina_Bool          elm_gengrid_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8575
8576    /**
8577     * Get the first item in a given gengrid widget
8578     *
8579     * @param obj The gengrid object
8580     * @return The first item's handle or @c NULL, if there are no
8581     * items in @p obj (and on errors)
8582     *
8583     * This returns the first item in the @p obj's internal list of
8584     * items.
8585     *
8586     * @see elm_gengrid_last_item_get()
8587     *
8588     * @ingroup Gengrid
8589     */
8590    EAPI Elm_Gengrid_Item  *elm_gengrid_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8591
8592    /**
8593     * Get the last item in a given gengrid widget
8594     *
8595     * @param obj The gengrid object
8596     * @return The last item's handle or @c NULL, if there are no
8597     * items in @p obj (and on errors)
8598     *
8599     * This returns the last item in the @p obj's internal list of
8600     * items.
8601     *
8602     * @see elm_gengrid_first_item_get()
8603     *
8604     * @ingroup Gengrid
8605     */
8606    EAPI Elm_Gengrid_Item  *elm_gengrid_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8607
8608    /**
8609     * Get the @b next item in a gengrid widget's internal list of items,
8610     * given a handle to one of those items.
8611     *
8612     * @param item The gengrid item to fetch next from
8613     * @return The item after @p item, or @c NULL if there's none (and
8614     * on errors)
8615     *
8616     * This returns the item placed after the @p item, on the container
8617     * gengrid.
8618     *
8619     * @see elm_gengrid_item_prev_get()
8620     *
8621     * @ingroup Gengrid
8622     */
8623    EAPI Elm_Gengrid_Item  *elm_gengrid_item_next_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8624
8625    /**
8626     * Get the @b previous item in a gengrid widget's internal list of items,
8627     * given a handle to one of those items.
8628     *
8629     * @param item The gengrid item to fetch previous from
8630     * @return The item before @p item, or @c NULL if there's none (and
8631     * on errors)
8632     *
8633     * This returns the item placed before the @p item, on the container
8634     * gengrid.
8635     *
8636     * @see elm_gengrid_item_next_get()
8637     *
8638     * @ingroup Gengrid
8639     */
8640    EAPI Elm_Gengrid_Item  *elm_gengrid_item_prev_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8641
8642    /**
8643     * Get the gengrid object's handle which contains a given gengrid
8644     * item
8645     *
8646     * @param item The item to fetch the container from
8647     * @return The gengrid (parent) object
8648     *
8649     * This returns the gengrid object itself that an item belongs to.
8650     *
8651     * @ingroup Gengrid
8652     */
8653    EAPI Evas_Object       *elm_gengrid_item_gengrid_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8654
8655    /**
8656     * Remove a gengrid item from its parent, deleting it.
8657     *
8658     * @param item The item to be removed.
8659     * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
8660     *
8661     * @see elm_gengrid_clear(), to remove all items in a gengrid at
8662     * once.
8663     *
8664     * @ingroup Gengrid
8665     */
8666    EAPI void               elm_gengrid_item_del(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8667
8668    /**
8669     * Update the contents of a given gengrid item
8670     *
8671     * @param item The gengrid item
8672     *
8673     * This updates an item by calling all the item class functions
8674     * again to get the contents, labels and states. Use this when the
8675     * original item data has changed and you want the changes to be
8676     * reflected.
8677     *
8678     * @ingroup Gengrid
8679     */
8680    EAPI void               elm_gengrid_item_update(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8681
8682    /**
8683     * Get the Gengrid Item class for the given Gengrid Item.
8684     *
8685     * @param item The gengrid item
8686     *
8687     * This returns the Gengrid_Item_Class for the given item. It can be used to examine
8688     * the function pointers and item_style.
8689     *
8690     * @ingroup Gengrid
8691     */
8692    EAPI const Elm_Gengrid_Item_Class *elm_gengrid_item_item_class_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8693
8694    /**
8695     * Get the Gengrid Item class for the given Gengrid Item.
8696     *
8697     * This sets the Gengrid_Item_Class for the given item. It can be used to examine
8698     * the function pointers and item_style.
8699     *
8700     * @param item The gengrid item
8701     * @param gic The gengrid item class describing the function pointers and the item style.
8702     *
8703     * @ingroup Gengrid
8704     */
8705    EAPI void               elm_gengrid_item_item_class_set(Elm_Gengrid_Item *item, const Elm_Gengrid_Item_Class *gic) EINA_ARG_NONNULL(1, 2);
8706
8707    /**
8708     * Return the data associated to a given gengrid item
8709     *
8710     * @param item The gengrid item.
8711     * @return the data associated with this item.
8712     *
8713     * This returns the @c data value passed on the
8714     * elm_gengrid_item_append() and related item addition calls.
8715     *
8716     * @see elm_gengrid_item_append()
8717     * @see elm_gengrid_item_data_set()
8718     *
8719     * @ingroup Gengrid
8720     */
8721    EAPI void              *elm_gengrid_item_data_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8722
8723    /**
8724     * Set the data associated with a given gengrid item
8725     *
8726     * @param item The gengrid item
8727     * @param data The data pointer to set on it
8728     *
8729     * This @b overrides the @c data value passed on the
8730     * elm_gengrid_item_append() and related item addition calls. This
8731     * function @b won't call elm_gengrid_item_update() automatically,
8732     * so you'd issue it afterwards if you want to have the item
8733     * updated to reflect the new data.
8734     *
8735     * @see elm_gengrid_item_data_get()
8736     * @see elm_gengrid_item_update()
8737     *
8738     * @ingroup Gengrid
8739     */
8740    EAPI void               elm_gengrid_item_data_set(Elm_Gengrid_Item *item, const void *data) EINA_ARG_NONNULL(1);
8741
8742    /**
8743     * Get a given gengrid item's position, relative to the whole
8744     * gengrid's grid area.
8745     *
8746     * @param item The Gengrid item.
8747     * @param x Pointer to variable to store the item's <b>row number</b>.
8748     * @param y Pointer to variable to store the item's <b>column number</b>.
8749     *
8750     * This returns the "logical" position of the item within the
8751     * gengrid. For example, @c (0, 1) would stand for first row,
8752     * second column.
8753     *
8754     * @ingroup Gengrid
8755     */
8756    EAPI void               elm_gengrid_item_pos_get(const Elm_Gengrid_Item *item, unsigned int *x, unsigned int *y) EINA_ARG_NONNULL(1);
8757
8758    /**
8759     * Set whether a given gengrid item is selected or not
8760     *
8761     * @param item The gengrid item
8762     * @param selected Use @c EINA_TRUE, to make it selected, @c
8763     * EINA_FALSE to make it unselected
8764     *
8765     * This sets the selected state of an item. If multi-selection is
8766     * not enabled on the containing gengrid and @p selected is @c
8767     * EINA_TRUE, any other previously selected items will get
8768     * unselected in favor of this new one.
8769     *
8770     * @see elm_gengrid_item_selected_get()
8771     *
8772     * @ingroup Gengrid
8773     */
8774    EAPI void               elm_gengrid_item_selected_set(Elm_Gengrid_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
8775
8776    /**
8777     * Get whether a given gengrid item is selected or not
8778     *
8779     * @param item The gengrid item
8780     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
8781     *
8782     * This API returns EINA_TRUE for all the items selected in multi-select mode as well.
8783     *
8784     * @see elm_gengrid_item_selected_set() for more details
8785     *
8786     * @ingroup Gengrid
8787     */
8788    EAPI Eina_Bool          elm_gengrid_item_selected_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8789
8790    /**
8791     * Get the real Evas object created to implement the view of a
8792     * given gengrid item
8793     *
8794     * @param item The gengrid item.
8795     * @return the Evas object implementing this item's view.
8796     *
8797     * This returns the actual Evas object used to implement the
8798     * specified gengrid item's view. This may be @c NULL, as it may
8799     * not have been created or may have been deleted, at any time, by
8800     * the gengrid. <b>Do not modify this object</b> (move, resize,
8801     * show, hide, etc.), as the gengrid is controlling it. This
8802     * function is for querying, emitting custom signals or hooking
8803     * lower level callbacks for events on that object. Do not delete
8804     * this object under any circumstances.
8805     *
8806     * @see elm_gengrid_item_data_get()
8807     *
8808     * @ingroup Gengrid
8809     */
8810    EAPI const Evas_Object *elm_gengrid_item_object_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8811
8812    /**
8813     * Show the portion of a gengrid's internal grid containing a given
8814     * item, @b immediately.
8815     *
8816     * @param item The item to display
8817     *
8818     * This causes gengrid to @b redraw its viewport's contents to the
8819     * region contining the given @p item item, if it is not fully
8820     * visible.
8821     *
8822     * @see elm_gengrid_item_bring_in()
8823     *
8824     * @ingroup Gengrid
8825     */
8826    EAPI void               elm_gengrid_item_show(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8827
8828    /**
8829     * Animatedly bring in, to the visible area of a gengrid, a given
8830     * item on it.
8831     *
8832     * @param item The gengrid item to display
8833     *
8834     * This causes gengrid to jump to the given @p item and show
8835     * it (by scrolling), if it is not fully visible. This will use
8836     * animation to do so and take a period of time to complete.
8837     *
8838     * @see elm_gengrid_item_show()
8839     *
8840     * @ingroup Gengrid
8841     */
8842    EAPI void               elm_gengrid_item_bring_in(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8843
8844    /**
8845     * Set whether a given gengrid item is disabled or not.
8846     *
8847     * @param item The gengrid item
8848     * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
8849     * to enable it back.
8850     *
8851     * A disabled item cannot be selected or unselected. It will also
8852     * change its appearance, to signal the user it's disabled.
8853     *
8854     * @see elm_gengrid_item_disabled_get()
8855     *
8856     * @ingroup Gengrid
8857     */
8858    EAPI void               elm_gengrid_item_disabled_set(Elm_Gengrid_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
8859
8860    /**
8861     * Get whether a given gengrid item is disabled or not.
8862     *
8863     * @param item The gengrid item
8864     * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
8865     * (and on errors).
8866     *
8867     * @see elm_gengrid_item_disabled_set() for more details
8868     *
8869     * @ingroup Gengrid
8870     */
8871    EAPI Eina_Bool          elm_gengrid_item_disabled_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8872
8873    /**
8874     * Set the text to be shown in a given gengrid item's tooltips.
8875     *
8876     * @param item The gengrid item
8877     * @param text The text to set in the content
8878     *
8879     * This call will setup the text to be used as tooltip to that item
8880     * (analogous to elm_object_tooltip_text_set(), but being item
8881     * tooltips with higher precedence than object tooltips). It can
8882     * have only one tooltip at a time, so any previous tooltip data
8883     * will get removed.
8884     *
8885     * @ingroup Gengrid
8886     */
8887    EAPI void               elm_gengrid_item_tooltip_text_set(Elm_Gengrid_Item *item, const char *text) EINA_ARG_NONNULL(1);
8888
8889    /**
8890     * Set the content to be shown in a given gengrid item's tooltip
8891     *
8892     * @param item The gengrid item.
8893     * @param func The function returning the tooltip contents.
8894     * @param data What to provide to @a func as callback data/context.
8895     * @param del_cb Called when data is not needed anymore, either when
8896     *        another callback replaces @p func, the tooltip is unset with
8897     *        elm_gengrid_item_tooltip_unset() or the owner @p item
8898     *        dies. This callback receives as its first parameter the
8899     *        given @p data, being @c event_info the item handle.
8900     *
8901     * This call will setup the tooltip's contents to @p item
8902     * (analogous to elm_object_tooltip_content_cb_set(), but being
8903     * item tooltips with higher precedence than object tooltips). It
8904     * can have only one tooltip at a time, so any previous tooltip
8905     * content will get removed. @p func (with @p data) will be called
8906     * every time Elementary needs to show the tooltip and it should
8907     * return a valid Evas object, which will be fully managed by the
8908     * tooltip system, getting deleted when the tooltip is gone.
8909     *
8910     * @ingroup Gengrid
8911     */
8912    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);
8913
8914    /**
8915     * Unset a tooltip from a given gengrid item
8916     *
8917     * @param item gengrid item to remove a previously set tooltip from.
8918     *
8919     * This call removes any tooltip set on @p item. The callback
8920     * provided as @c del_cb to
8921     * elm_gengrid_item_tooltip_content_cb_set() will be called to
8922     * notify it is not used anymore (and have resources cleaned, if
8923     * need be).
8924     *
8925     * @see elm_gengrid_item_tooltip_content_cb_set()
8926     *
8927     * @ingroup Gengrid
8928     */
8929    EAPI void               elm_gengrid_item_tooltip_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8930
8931    /**
8932     * Set a different @b style for a given gengrid item's tooltip.
8933     *
8934     * @param item gengrid item with tooltip set
8935     * @param style the <b>theme style</b> to use on tooltips (e.g. @c
8936     * "default", @c "transparent", etc)
8937     *
8938     * Tooltips can have <b>alternate styles</b> to be displayed on,
8939     * which are defined by the theme set on Elementary. This function
8940     * works analogously as elm_object_tooltip_style_set(), but here
8941     * applied only to gengrid item objects. The default style for
8942     * tooltips is @c "default".
8943     *
8944     * @note before you set a style you should define a tooltip with
8945     *       elm_gengrid_item_tooltip_content_cb_set() or
8946     *       elm_gengrid_item_tooltip_text_set()
8947     *
8948     * @see elm_gengrid_item_tooltip_style_get()
8949     *
8950     * @ingroup Gengrid
8951     */
8952    EAPI void               elm_gengrid_item_tooltip_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
8953
8954    /**
8955     * Get the style set a given gengrid item's tooltip.
8956     *
8957     * @param item gengrid item with tooltip already set on.
8958     * @return style the theme style in use, which defaults to
8959     *         "default". If the object does not have a tooltip set,
8960     *         then @c NULL is returned.
8961     *
8962     * @see elm_gengrid_item_tooltip_style_set() for more details
8963     *
8964     * @ingroup Gengrid
8965     */
8966    EAPI const char        *elm_gengrid_item_tooltip_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8967    /**
8968     * Set the type of mouse pointer/cursor decoration to be shown,
8969     * when the mouse pointer is over the given gengrid widget item
8970     *
8971     * @param item gengrid item to customize cursor on
8972     * @param cursor the cursor type's name
8973     *
8974     * This function works analogously as elm_object_cursor_set(), but
8975     * here the cursor's changing area is restricted to the item's
8976     * area, and not the whole widget's. Note that that item cursors
8977     * have precedence over widget cursors, so that a mouse over @p
8978     * item will always show cursor @p type.
8979     *
8980     * If this function is called twice for an object, a previously set
8981     * cursor will be unset on the second call.
8982     *
8983     * @see elm_object_cursor_set()
8984     * @see elm_gengrid_item_cursor_get()
8985     * @see elm_gengrid_item_cursor_unset()
8986     *
8987     * @ingroup Gengrid
8988     */
8989    EAPI void               elm_gengrid_item_cursor_set(Elm_Gengrid_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
8990
8991    /**
8992     * Get the type of mouse pointer/cursor decoration set to be shown,
8993     * when the mouse pointer is over the given gengrid widget item
8994     *
8995     * @param item gengrid item with custom cursor set
8996     * @return the cursor type's name or @c NULL, if no custom cursors
8997     * were set to @p item (and on errors)
8998     *
8999     * @see elm_object_cursor_get()
9000     * @see elm_gengrid_item_cursor_set() for more details
9001     * @see elm_gengrid_item_cursor_unset()
9002     *
9003     * @ingroup Gengrid
9004     */
9005    EAPI const char        *elm_gengrid_item_cursor_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9006
9007    /**
9008     * Unset any custom mouse pointer/cursor decoration set to be
9009     * shown, when the mouse pointer is over the given gengrid widget
9010     * item, thus making it show the @b default cursor again.
9011     *
9012     * @param item a gengrid item
9013     *
9014     * Use this call to undo any custom settings on this item's cursor
9015     * decoration, bringing it back to defaults (no custom style set).
9016     *
9017     * @see elm_object_cursor_unset()
9018     * @see elm_gengrid_item_cursor_set() for more details
9019     *
9020     * @ingroup Gengrid
9021     */
9022    EAPI void               elm_gengrid_item_cursor_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9023
9024    /**
9025     * Set a different @b style for a given custom cursor set for a
9026     * gengrid item.
9027     *
9028     * @param item gengrid item with custom cursor set
9029     * @param style the <b>theme style</b> to use (e.g. @c "default",
9030     * @c "transparent", etc)
9031     *
9032     * This function only makes sense when one is using custom mouse
9033     * cursor decorations <b>defined in a theme file</b> , which can
9034     * have, given a cursor name/type, <b>alternate styles</b> on
9035     * it. It works analogously as elm_object_cursor_style_set(), but
9036     * here applied only to gengrid item objects.
9037     *
9038     * @warning Before you set a cursor style you should have defined a
9039     *       custom cursor previously on the item, with
9040     *       elm_gengrid_item_cursor_set()
9041     *
9042     * @see elm_gengrid_item_cursor_engine_only_set()
9043     * @see elm_gengrid_item_cursor_style_get()
9044     *
9045     * @ingroup Gengrid
9046     */
9047    EAPI void               elm_gengrid_item_cursor_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
9048
9049    /**
9050     * Get the current @b style set for a given gengrid item's custom
9051     * cursor
9052     *
9053     * @param item gengrid item with custom cursor set.
9054     * @return style the cursor style in use. If the object does not
9055     *         have a cursor set, then @c NULL is returned.
9056     *
9057     * @see elm_gengrid_item_cursor_style_set() for more details
9058     *
9059     * @ingroup Gengrid
9060     */
9061    EAPI const char        *elm_gengrid_item_cursor_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9062
9063    /**
9064     * Set if the (custom) cursor for a given gengrid item should be
9065     * searched in its theme, also, or should only rely on the
9066     * rendering engine.
9067     *
9068     * @param item item with custom (custom) cursor already set on
9069     * @param engine_only Use @c EINA_TRUE to have cursors looked for
9070     * only on those provided by the rendering engine, @c EINA_FALSE to
9071     * have them searched on the widget's theme, as well.
9072     *
9073     * @note This call is of use only if you've set a custom cursor
9074     * for gengrid items, with elm_gengrid_item_cursor_set().
9075     *
9076     * @note By default, cursors will only be looked for between those
9077     * provided by the rendering engine.
9078     *
9079     * @ingroup Gengrid
9080     */
9081    EAPI void               elm_gengrid_item_cursor_engine_only_set(Elm_Gengrid_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
9082
9083    /**
9084     * Get if the (custom) cursor for a given gengrid item is being
9085     * searched in its theme, also, or is only relying on the rendering
9086     * engine.
9087     *
9088     * @param item a gengrid item
9089     * @return @c EINA_TRUE, if cursors are being looked for only on
9090     * those provided by the rendering engine, @c EINA_FALSE if they
9091     * are being searched on the widget's theme, as well.
9092     *
9093     * @see elm_gengrid_item_cursor_engine_only_set(), for more details
9094     *
9095     * @ingroup Gengrid
9096     */
9097    EAPI Eina_Bool          elm_gengrid_item_cursor_engine_only_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9098
9099    /**
9100     * Remove all items from a given gengrid widget
9101     *
9102     * @param obj The gengrid object.
9103     *
9104     * This removes (and deletes) all items in @p obj, leaving it
9105     * empty.
9106     *
9107     * @see elm_gengrid_item_del(), to remove just one item.
9108     *
9109     * @ingroup Gengrid
9110     */
9111    EAPI void               elm_gengrid_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
9112
9113    /**
9114     * Get the selected item in a given gengrid widget
9115     *
9116     * @param obj The gengrid object.
9117     * @return The selected item's handleor @c NULL, if none is
9118     * selected at the moment (and on errors)
9119     *
9120     * This returns the selected item in @p obj. If multi selection is
9121     * enabled on @p obj (@see elm_gengrid_multi_select_set()), only
9122     * the first item in the list is selected, which might not be very
9123     * useful. For that case, see elm_gengrid_selected_items_get().
9124     *
9125     * @ingroup Gengrid
9126     */
9127    EAPI Elm_Gengrid_Item  *elm_gengrid_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9128
9129    /**
9130     * Get <b>a list</b> of selected items in a given gengrid
9131     *
9132     * @param obj The gengrid object.
9133     * @return The list of selected items or @c NULL, if none is
9134     * selected at the moment (and on errors)
9135     *
9136     * This returns a list of the selected items, in the order that
9137     * they appear in the grid. This list is only valid as long as no
9138     * more items are selected or unselected (or unselected implictly
9139     * by deletion). The list contains #Elm_Gengrid_Item pointers as
9140     * data, naturally.
9141     *
9142     * @see elm_gengrid_selected_item_get()
9143     *
9144     * @ingroup Gengrid
9145     */
9146    EAPI const Eina_List   *elm_gengrid_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9147
9148    /**
9149     * @}
9150     */
9151
9152    /**
9153     * @defgroup Clock Clock
9154     *
9155     * @image html img/widget/clock/preview-00.png
9156     * @image latex img/widget/clock/preview-00.eps
9157     *
9158     * This is a @b digital clock widget. In its default theme, it has a
9159     * vintage "flipping numbers clock" appearance, which will animate
9160     * sheets of individual algarisms individually as time goes by.
9161     *
9162     * A newly created clock will fetch system's time (already
9163     * considering local time adjustments) to start with, and will tick
9164     * accondingly. It may or may not show seconds.
9165     *
9166     * Clocks have an @b edition mode. When in it, the sheets will
9167     * display extra arrow indications on the top and bottom and the
9168     * user may click on them to raise or lower the time values. After
9169     * it's told to exit edition mode, it will keep ticking with that
9170     * new time set (it keeps the difference from local time).
9171     *
9172     * Also, when under edition mode, user clicks on the cited arrows
9173     * which are @b held for some time will make the clock to flip the
9174     * sheet, thus editing the time, continuosly and automatically for
9175     * the user. The interval between sheet flips will keep growing in
9176     * time, so that it helps the user to reach a time which is distant
9177     * from the one set.
9178     *
9179     * The time display is, by default, in military mode (24h), but an
9180     * am/pm indicator may be optionally shown, too, when it will
9181     * switch to 12h.
9182     *
9183     * Smart callbacks one can register to:
9184     * - "changed" - the clock's user changed the time
9185     *
9186     * Here is an example on its usage:
9187     * @li @ref clock_example
9188     */
9189
9190    /**
9191     * @addtogroup Clock
9192     * @{
9193     */
9194
9195    /**
9196     * Identifiers for which clock digits should be editable, when a
9197     * clock widget is in edition mode. Values may be ORed together to
9198     * make a mask, naturally.
9199     *
9200     * @see elm_clock_edit_set()
9201     * @see elm_clock_digit_edit_set()
9202     */
9203    typedef enum _Elm_Clock_Digedit
9204      {
9205         ELM_CLOCK_NONE         = 0, /**< Default value. Means that all digits are editable, when in edition mode. */
9206         ELM_CLOCK_HOUR_DECIMAL = 1 << 0, /**< Decimal algarism of hours value should be editable */
9207         ELM_CLOCK_HOUR_UNIT    = 1 << 1, /**< Unit algarism of hours value should be editable */
9208         ELM_CLOCK_MIN_DECIMAL  = 1 << 2, /**< Decimal algarism of minutes value should be editable */
9209         ELM_CLOCK_MIN_UNIT     = 1 << 3, /**< Unit algarism of minutes value should be editable */
9210         ELM_CLOCK_SEC_DECIMAL  = 1 << 4, /**< Decimal algarism of seconds value should be editable */
9211         ELM_CLOCK_SEC_UNIT     = 1 << 5, /**< Unit algarism of seconds value should be editable */
9212         ELM_CLOCK_ALL          = (1 << 6) - 1 /**< All digits should be editable */
9213      } Elm_Clock_Digedit;
9214
9215    /**
9216     * Add a new clock widget to the given parent Elementary
9217     * (container) object
9218     *
9219     * @param parent The parent object
9220     * @return a new clock widget handle or @c NULL, on errors
9221     *
9222     * This function inserts a new clock widget on the canvas.
9223     *
9224     * @ingroup Clock
9225     */
9226    EAPI Evas_Object      *elm_clock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9227
9228    /**
9229     * Set a clock widget's time, programmatically
9230     *
9231     * @param obj The clock widget object
9232     * @param hrs The hours to set
9233     * @param min The minutes to set
9234     * @param sec The secondes to set
9235     *
9236     * This function updates the time that is showed by the clock
9237     * widget.
9238     *
9239     *  Values @b must be set within the following ranges:
9240     * - 0 - 23, for hours
9241     * - 0 - 59, for minutes
9242     * - 0 - 59, for seconds,
9243     *
9244     * even if the clock is not in "military" mode.
9245     *
9246     * @warning The behavior for values set out of those ranges is @b
9247     * undefined.
9248     *
9249     * @ingroup Clock
9250     */
9251    EAPI void              elm_clock_time_set(Evas_Object *obj, int hrs, int min, int sec) EINA_ARG_NONNULL(1);
9252
9253    /**
9254     * Get a clock widget's time values
9255     *
9256     * @param obj The clock object
9257     * @param[out] hrs Pointer to the variable to get the hours value
9258     * @param[out] min Pointer to the variable to get the minutes value
9259     * @param[out] sec Pointer to the variable to get the seconds value
9260     *
9261     * This function gets the time set for @p obj, returning
9262     * it on the variables passed as the arguments to function
9263     *
9264     * @note Use @c NULL pointers on the time values you're not
9265     * interested in: they'll be ignored by the function.
9266     *
9267     * @ingroup Clock
9268     */
9269    EAPI void              elm_clock_time_get(const Evas_Object *obj, int *hrs, int *min, int *sec) EINA_ARG_NONNULL(1);
9270
9271    /**
9272     * Set whether a given clock widget is under <b>edition mode</b> or
9273     * under (default) displaying-only mode.
9274     *
9275     * @param obj The clock object
9276     * @param edit @c EINA_TRUE to put it in edition, @c EINA_FALSE to
9277     * put it back to "displaying only" mode
9278     *
9279     * This function makes a clock's time to be editable or not <b>by
9280     * user interaction</b>. When in edition mode, clocks @b stop
9281     * ticking, until one brings them back to canonical mode. The
9282     * elm_clock_digit_edit_set() function will influence which digits
9283     * of the clock will be editable. By default, all of them will be
9284     * (#ELM_CLOCK_NONE).
9285     *
9286     * @note am/pm sheets, if being shown, will @b always be editable
9287     * under edition mode.
9288     *
9289     * @see elm_clock_edit_get()
9290     *
9291     * @ingroup Clock
9292     */
9293    EAPI void              elm_clock_edit_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
9294
9295    /**
9296     * Retrieve whether a given clock widget is under <b>edition
9297     * mode</b> or under (default) displaying-only mode.
9298     *
9299     * @param obj The clock object
9300     * @param edit @c EINA_TRUE, if it's in edition mode, @c EINA_FALSE
9301     * otherwise
9302     *
9303     * This function retrieves whether the clock's time can be edited
9304     * or not by user interaction.
9305     *
9306     * @see elm_clock_edit_set() for more details
9307     *
9308     * @ingroup Clock
9309     */
9310    EAPI Eina_Bool         elm_clock_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9311
9312    /**
9313     * Set what digits of the given clock widget should be editable
9314     * when in edition mode.
9315     *
9316     * @param obj The clock object
9317     * @param digedit Bit mask indicating the digits to be editable
9318     * (values in #Elm_Clock_Digedit).
9319     *
9320     * If the @p digedit param is #ELM_CLOCK_NONE, editing will be
9321     * disabled on @p obj (same effect as elm_clock_edit_set(), with @c
9322     * EINA_FALSE).
9323     *
9324     * @see elm_clock_digit_edit_get()
9325     *
9326     * @ingroup Clock
9327     */
9328    EAPI void              elm_clock_digit_edit_set(Evas_Object *obj, Elm_Clock_Digedit digedit) EINA_ARG_NONNULL(1);
9329
9330    /**
9331     * Retrieve what digits of the given clock widget should be
9332     * editable when in edition mode.
9333     *
9334     * @param obj The clock object
9335     * @return Bit mask indicating the digits to be editable
9336     * (values in #Elm_Clock_Digedit).
9337     *
9338     * @see elm_clock_digit_edit_set() for more details
9339     *
9340     * @ingroup Clock
9341     */
9342    EAPI Elm_Clock_Digedit elm_clock_digit_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9343
9344    /**
9345     * Set if the given clock widget must show hours in military or
9346     * am/pm mode
9347     *
9348     * @param obj The clock object
9349     * @param am_pm @c EINA_TRUE to put it in am/pm mode, @c EINA_FALSE
9350     * to military mode
9351     *
9352     * This function sets if the clock must show hours in military or
9353     * am/pm mode. In some countries like Brazil the military mode
9354     * (00-24h-format) is used, in opposition to the USA, where the
9355     * am/pm mode is more commonly used.
9356     *
9357     * @see elm_clock_show_am_pm_get()
9358     *
9359     * @ingroup Clock
9360     */
9361    EAPI void              elm_clock_show_am_pm_set(Evas_Object *obj, Eina_Bool am_pm) EINA_ARG_NONNULL(1);
9362
9363    /**
9364     * Get if the given clock widget shows hours in military or am/pm
9365     * mode
9366     *
9367     * @param obj The clock object
9368     * @return @c EINA_TRUE, if in am/pm mode, @c EINA_FALSE if in
9369     * military
9370     *
9371     * This function gets if the clock shows hours in military or am/pm
9372     * mode.
9373     *
9374     * @see elm_clock_show_am_pm_set() for more details
9375     *
9376     * @ingroup Clock
9377     */
9378    EAPI Eina_Bool         elm_clock_show_am_pm_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9379
9380    /**
9381     * Set if the given clock widget must show time with seconds or not
9382     *
9383     * @param obj The clock object
9384     * @param seconds @c EINA_TRUE to show seconds, @c EINA_FALSE otherwise
9385     *
9386     * This function sets if the given clock must show or not elapsed
9387     * seconds. By default, they are @b not shown.
9388     *
9389     * @see elm_clock_show_seconds_get()
9390     *
9391     * @ingroup Clock
9392     */
9393    EAPI void              elm_clock_show_seconds_set(Evas_Object *obj, Eina_Bool seconds) EINA_ARG_NONNULL(1);
9394
9395    /**
9396     * Get whether the given clock widget is showing time with seconds
9397     * or not
9398     *
9399     * @param obj The clock object
9400     * @return @c EINA_TRUE if it's showing seconds, @c EINA_FALSE otherwise
9401     *
9402     * This function gets whether @p obj is showing or not the elapsed
9403     * seconds.
9404     *
9405     * @see elm_clock_show_seconds_set()
9406     *
9407     * @ingroup Clock
9408     */
9409    EAPI Eina_Bool         elm_clock_show_seconds_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9410
9411    /**
9412     * Set the interval on time updates for an user mouse button hold
9413     * on clock widgets' time edition.
9414     *
9415     * @param obj The clock object
9416     * @param interval The (first) interval value in seconds
9417     *
9418     * This interval value is @b decreased while the user holds the
9419     * mouse pointer either incrementing or decrementing a given the
9420     * clock digit's value.
9421     *
9422     * This helps the user to get to a given time distant from the
9423     * current one easier/faster, as it will start to flip quicker and
9424     * quicker on mouse button holds.
9425     *
9426     * The calculation for the next flip interval value, starting from
9427     * the one set with this call, is the previous interval divided by
9428     * 1.05, so it decreases a little bit.
9429     *
9430     * The default starting interval value for automatic flips is
9431     * @b 0.85 seconds.
9432     *
9433     * @see elm_clock_interval_get()
9434     *
9435     * @ingroup Clock
9436     */
9437    EAPI void              elm_clock_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
9438
9439    /**
9440     * Get the interval on time updates for an user mouse button hold
9441     * on clock widgets' time edition.
9442     *
9443     * @param obj The clock object
9444     * @return The (first) interval value, in seconds, set on it
9445     *
9446     * @see elm_clock_interval_set() for more details
9447     *
9448     * @ingroup Clock
9449     */
9450    EAPI double            elm_clock_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9451
9452    /**
9453     * @}
9454     */
9455
9456    /**
9457     * @defgroup Layout Layout
9458     *
9459     * @image html img/widget/layout/preview-00.png
9460     * @image latex img/widget/layout/preview-00.eps width=\textwidth
9461     *
9462     * @image html img/layout-predefined.png
9463     * @image latex img/layout-predefined.eps width=\textwidth
9464     *
9465     * This is a container widget that takes a standard Edje design file and
9466     * wraps it very thinly in a widget.
9467     *
9468     * An Edje design (theme) file has a very wide range of possibilities to
9469     * describe the behavior of elements added to the Layout. Check out the Edje
9470     * documentation and the EDC reference to get more information about what can
9471     * be done with Edje.
9472     *
9473     * Just like @ref List, @ref Box, and other container widgets, any
9474     * object added to the Layout will become its child, meaning that it will be
9475     * deleted if the Layout is deleted, move if the Layout is moved, and so on.
9476     *
9477     * The Layout widget can contain as many Contents, Boxes or Tables as
9478     * described in its theme file. For instance, objects can be added to
9479     * different Tables by specifying the respective Table part names. The same
9480     * is valid for Content and Box.
9481     *
9482     * The objects added as child of the Layout will behave as described in the
9483     * part description where they were added. There are 3 possible types of
9484     * parts where a child can be added:
9485     *
9486     * @section secContent Content (SWALLOW part)
9487     *
9488     * Only one object can be added to the @c SWALLOW part (but you still can
9489     * have many @c SWALLOW parts and one object on each of them). Use the @c
9490     * elm_object_content_set/get/unset functions to set, retrieve and unset 
9491     * objects as content of the @c SWALLOW. After being set to this part, the 
9492     * object size, position, visibility, clipping and other description 
9493     * properties will be totally controled by the description of the given part 
9494     * (inside the Edje theme file).
9495     *
9496     * One can use @c evas_object_size_hint_* functions on the child to have some
9497     * kind of control over its behavior, but the resulting behavior will still
9498     * depend heavily on the @c SWALLOW part description.
9499     *
9500     * The Edje theme also can change the part description, based on signals or
9501     * scripts running inside the theme. This change can also be animated. All of
9502     * this will affect the child object set as content accordingly. The object
9503     * size will be changed if the part size is changed, it will animate move if
9504     * the part is moving, and so on.
9505     *
9506     * The following picture demonstrates a Layout widget with a child object
9507     * added to its @c SWALLOW:
9508     *
9509     * @image html layout_swallow.png
9510     * @image latex layout_swallow.eps width=\textwidth
9511     *
9512     * @section secBox Box (BOX part)
9513     *
9514     * An Edje @c BOX part is very similar to the Elementary @ref Box widget. It
9515     * allows one to add objects to the box and have them distributed along its
9516     * area, accordingly to the specified @a layout property (now by @a layout we
9517     * mean the chosen layouting design of the Box, not the Layout widget
9518     * itself).
9519     *
9520     * A similar effect for having a box with its position, size and other things
9521     * controled by the Layout theme would be to create an Elementary @ref Box
9522     * widget and add it as a Content in the @c SWALLOW part.
9523     *
9524     * The main difference of using the Layout Box is that its behavior, the box
9525     * properties like layouting format, padding, align, etc. will be all
9526     * controled by the theme. This means, for example, that a signal could be
9527     * sent to the Layout theme (with elm_object_signal_emit()) and the theme
9528     * handled the signal by changing the box padding, or align, or both. Using
9529     * the Elementary @ref Box widget is not necessarily harder or easier, it
9530     * just depends on the circunstances and requirements.
9531     *
9532     * The Layout Box can be used through the @c elm_layout_box_* set of
9533     * functions.
9534     *
9535     * The following picture demonstrates a Layout widget with many child objects
9536     * added to its @c BOX part:
9537     *
9538     * @image html layout_box.png
9539     * @image latex layout_box.eps width=\textwidth
9540     *
9541     * @section secTable Table (TABLE part)
9542     *
9543     * Just like the @ref secBox, the Layout Table is very similar to the
9544     * Elementary @ref Table widget. It allows one to add objects to the Table
9545     * specifying the row and column where the object should be added, and any
9546     * column or row span if necessary.
9547     *
9548     * Again, we could have this design by adding a @ref Table widget to the @c
9549     * SWALLOW part using elm_object_content_part_set(). The same difference happens
9550     * here when choosing to use the Layout Table (a @c TABLE part) instead of
9551     * the @ref Table plus @c SWALLOW part. It's just a matter of convenience.
9552     *
9553     * The Layout Table can be used through the @c elm_layout_table_* set of
9554     * functions.
9555     *
9556     * The following picture demonstrates a Layout widget with many child objects
9557     * added to its @c TABLE part:
9558     *
9559     * @image html layout_table.png
9560     * @image latex layout_table.eps width=\textwidth
9561     *
9562     * @section secPredef Predefined Layouts
9563     *
9564     * Another interesting thing about the Layout widget is that it offers some
9565     * predefined themes that come with the default Elementary theme. These
9566     * themes can be set by the call elm_layout_theme_set(), and provide some
9567     * basic functionality depending on the theme used.
9568     *
9569     * Most of them already send some signals, some already provide a toolbar or
9570     * back and next buttons.
9571     *
9572     * These are available predefined theme layouts. All of them have class = @c
9573     * layout, group = @c application, and style = one of the following options:
9574     *
9575     * @li @c toolbar-content - application with toolbar and main content area
9576     * @li @c toolbar-content-back - application with toolbar and main content
9577     * area with a back button and title area
9578     * @li @c toolbar-content-back-next - application with toolbar and main
9579     * content area with a back and next buttons and title area
9580     * @li @c content-back - application with a main content area with a back
9581     * button and title area
9582     * @li @c content-back-next - application with a main content area with a
9583     * back and next buttons and title area
9584     * @li @c toolbar-vbox - application with toolbar and main content area as a
9585     * vertical box
9586     * @li @c toolbar-table - application with toolbar and main content area as a
9587     * table
9588     *
9589     * @section secExamples Examples
9590     *
9591     * Some examples of the Layout widget can be found here:
9592     * @li @ref layout_example_01
9593     * @li @ref layout_example_02
9594     * @li @ref layout_example_03
9595     * @li @ref layout_example_edc
9596     *
9597     */
9598
9599    /**
9600     * Add a new layout to the parent
9601     *
9602     * @param parent The parent object
9603     * @return The new object or NULL if it cannot be created
9604     *
9605     * @see elm_layout_file_set()
9606     * @see elm_layout_theme_set()
9607     *
9608     * @ingroup Layout
9609     */
9610    EAPI Evas_Object       *elm_layout_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9611    /**
9612     * Set the file that will be used as layout
9613     *
9614     * @param obj The layout object
9615     * @param file The path to file (edj) that will be used as layout
9616     * @param group The group that the layout belongs in edje file
9617     *
9618     * @return (1 = success, 0 = error)
9619     *
9620     * @ingroup Layout
9621     */
9622    EAPI Eina_Bool          elm_layout_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
9623    /**
9624     * Set the edje group from the elementary theme that will be used as layout
9625     *
9626     * @param obj The layout object
9627     * @param clas the clas of the group
9628     * @param group the group
9629     * @param style the style to used
9630     *
9631     * @return (1 = success, 0 = error)
9632     *
9633     * @ingroup Layout
9634     */
9635    EAPI Eina_Bool          elm_layout_theme_set(Evas_Object *obj, const char *clas, const char *group, const char *style) EINA_ARG_NONNULL(1);
9636    /**
9637     * Set the layout content.
9638     *
9639     * @param obj The layout object
9640     * @param swallow The swallow part name in the edje file
9641     * @param content The child that will be added in this layout object
9642     *
9643     * Once the content object is set, a previously set one will be deleted.
9644     * If you want to keep that old content object, use the
9645     * elm_object_content_part_unset() function.
9646     *
9647     * @note In an Edje theme, the part used as a content container is called @c
9648     * SWALLOW. This is why the parameter name is called @p swallow, but it is
9649     * expected to be a part name just like the second parameter of
9650     * elm_layout_box_append().
9651     *
9652     * @see elm_layout_box_append()
9653     * @see elm_object_content_part_get()
9654     * @see elm_object_content_part_unset()
9655     * @see @ref secBox
9656     *
9657     * @ingroup Layout
9658     */
9659    EAPI void               elm_layout_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
9660    /**
9661     * Get the child object in the given content part.
9662     *
9663     * @param obj The layout object
9664     * @param swallow The SWALLOW part to get its content
9665     *
9666     * @return The swallowed object or NULL if none or an error occurred
9667     *
9668     * @see elm_object_content_part_set()
9669     *
9670     * @ingroup Layout
9671     */
9672    EAPI Evas_Object       *elm_layout_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
9673    /**
9674     * Unset the layout content.
9675     *
9676     * @param obj The layout object
9677     * @param swallow The swallow part name in the edje file
9678     * @return The content that was being used
9679     *
9680     * Unparent and return the content object which was set for this part.
9681     *
9682     * @see elm_object_content_part_set()
9683     *
9684     * @ingroup Layout
9685     */
9686    EAPI Evas_Object       *elm_layout_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
9687    /**
9688     * Set the text of the given part
9689     *
9690     * @param obj The layout object
9691     * @param part The TEXT part where to set the text
9692     * @param text The text to set
9693     *
9694     * @ingroup Layout
9695     * @deprecated use elm_object_text_* instead.
9696     */
9697    EINA_DEPRECATED EAPI void               elm_layout_text_set(Evas_Object *obj, const char *part, const char *text) EINA_ARG_NONNULL(1);
9698    /**
9699     * Get the text set in the given part
9700     *
9701     * @param obj The layout object
9702     * @param part The TEXT part to retrieve the text off
9703     *
9704     * @return The text set in @p part
9705     *
9706     * @ingroup Layout
9707     * @deprecated use elm_object_text_* instead.
9708     */
9709    EINA_DEPRECATED EAPI const char        *elm_layout_text_get(const Evas_Object *obj, const char *part) EINA_ARG_NONNULL(1);
9710    /**
9711     * Append child to layout box part.
9712     *
9713     * @param obj the layout object
9714     * @param part the box part to which the object will be appended.
9715     * @param child the child object to append to box.
9716     *
9717     * Once the object is appended, it will become child of the layout. Its
9718     * lifetime will be bound to the layout, whenever the layout dies the child
9719     * will be deleted automatically. One should use elm_layout_box_remove() to
9720     * make this layout forget about the object.
9721     *
9722     * @see elm_layout_box_prepend()
9723     * @see elm_layout_box_insert_before()
9724     * @see elm_layout_box_insert_at()
9725     * @see elm_layout_box_remove()
9726     *
9727     * @ingroup Layout
9728     */
9729    EAPI void               elm_layout_box_append(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
9730    /**
9731     * Prepend child to layout box part.
9732     *
9733     * @param obj the layout object
9734     * @param part the box part to prepend.
9735     * @param child the child object to prepend to box.
9736     *
9737     * Once the object is prepended, it will become child of the layout. Its
9738     * lifetime will be bound to the layout, whenever the layout dies the child
9739     * will be deleted automatically. One should use elm_layout_box_remove() to
9740     * make this layout forget about the object.
9741     *
9742     * @see elm_layout_box_append()
9743     * @see elm_layout_box_insert_before()
9744     * @see elm_layout_box_insert_at()
9745     * @see elm_layout_box_remove()
9746     *
9747     * @ingroup Layout
9748     */
9749    EAPI void               elm_layout_box_prepend(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
9750    /**
9751     * Insert child to layout box part before a reference object.
9752     *
9753     * @param obj the layout object
9754     * @param part the box part to insert.
9755     * @param child the child object to insert into box.
9756     * @param reference another reference object to insert before in box.
9757     *
9758     * Once the object is inserted, it will become child of the layout. Its
9759     * lifetime will be bound to the layout, whenever the layout dies the child
9760     * will be deleted automatically. One should use elm_layout_box_remove() to
9761     * make this layout forget about the object.
9762     *
9763     * @see elm_layout_box_append()
9764     * @see elm_layout_box_prepend()
9765     * @see elm_layout_box_insert_before()
9766     * @see elm_layout_box_remove()
9767     *
9768     * @ingroup Layout
9769     */
9770    EAPI void               elm_layout_box_insert_before(Evas_Object *obj, const char *part, Evas_Object *child, const Evas_Object *reference) EINA_ARG_NONNULL(1);
9771    /**
9772     * Insert child to layout box part at a given position.
9773     *
9774     * @param obj the layout object
9775     * @param part the box part to insert.
9776     * @param child the child object to insert into box.
9777     * @param pos the numeric position >=0 to insert the child.
9778     *
9779     * Once the object is inserted, it will become child of the layout. Its
9780     * lifetime will be bound to the layout, whenever the layout dies the child
9781     * will be deleted automatically. One should use elm_layout_box_remove() to
9782     * make this layout forget about the object.
9783     *
9784     * @see elm_layout_box_append()
9785     * @see elm_layout_box_prepend()
9786     * @see elm_layout_box_insert_before()
9787     * @see elm_layout_box_remove()
9788     *
9789     * @ingroup Layout
9790     */
9791    EAPI void               elm_layout_box_insert_at(Evas_Object *obj, const char *part, Evas_Object *child, unsigned int pos) EINA_ARG_NONNULL(1);
9792    /**
9793     * Remove a child of the given part box.
9794     *
9795     * @param obj The layout object
9796     * @param part The box part name to remove child.
9797     * @param child The object to remove from box.
9798     * @return The object that was being used, or NULL if not found.
9799     *
9800     * The object will be removed from the box part and its lifetime will
9801     * not be handled by the layout anymore. This is equivalent to
9802     * elm_object_content_part_unset() for box.
9803     *
9804     * @see elm_layout_box_append()
9805     * @see elm_layout_box_remove_all()
9806     *
9807     * @ingroup Layout
9808     */
9809    EAPI Evas_Object       *elm_layout_box_remove(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1, 2, 3);
9810    /**
9811     * Remove all child of the given part box.
9812     *
9813     * @param obj The layout object
9814     * @param part The box part name to remove child.
9815     * @param clear If EINA_TRUE, then all objects will be deleted as
9816     *        well, otherwise they will just be removed and will be
9817     *        dangling on the canvas.
9818     *
9819     * The objects will be removed from the box part and their lifetime will
9820     * not be handled by the layout anymore. This is equivalent to
9821     * elm_layout_box_remove() for all box children.
9822     *
9823     * @see elm_layout_box_append()
9824     * @see elm_layout_box_remove()
9825     *
9826     * @ingroup Layout
9827     */
9828    EAPI void               elm_layout_box_remove_all(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
9829    /**
9830     * Insert child to layout table part.
9831     *
9832     * @param obj the layout object
9833     * @param part the box part to pack child.
9834     * @param child_obj the child object to pack into table.
9835     * @param col the column to which the child should be added. (>= 0)
9836     * @param row the row to which the child should be added. (>= 0)
9837     * @param colspan how many columns should be used to store this object. (>=
9838     *        1)
9839     * @param rowspan how many rows should be used to store this object. (>= 1)
9840     *
9841     * Once the object is inserted, it will become child of the table. Its
9842     * lifetime will be bound to the layout, and whenever the layout dies the
9843     * child will be deleted automatically. One should use
9844     * elm_layout_table_remove() to make this layout forget about the object.
9845     *
9846     * If @p colspan or @p rowspan are bigger than 1, that object will occupy
9847     * more space than a single cell. For instance, the following code:
9848     * @code
9849     * elm_layout_table_pack(layout, "table_part", child, 0, 1, 3, 1);
9850     * @endcode
9851     *
9852     * Would result in an object being added like the following picture:
9853     *
9854     * @image html layout_colspan.png
9855     * @image latex layout_colspan.eps width=\textwidth
9856     *
9857     * @see elm_layout_table_unpack()
9858     * @see elm_layout_table_clear()
9859     *
9860     * @ingroup Layout
9861     */
9862    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);
9863    /**
9864     * Unpack (remove) a child of the given part table.
9865     *
9866     * @param obj The layout object
9867     * @param part The table part name to remove child.
9868     * @param child_obj The object to remove from table.
9869     * @return The object that was being used, or NULL if not found.
9870     *
9871     * The object will be unpacked from the table part and its lifetime
9872     * will not be handled by the layout anymore. This is equivalent to
9873     * elm_object_content_part_unset() for table.
9874     *
9875     * @see elm_layout_table_pack()
9876     * @see elm_layout_table_clear()
9877     *
9878     * @ingroup Layout
9879     */
9880    EAPI Evas_Object       *elm_layout_table_unpack(Evas_Object *obj, const char *part, Evas_Object *child_obj) EINA_ARG_NONNULL(1, 2, 3);
9881    /**
9882     * Remove all child of the given part table.
9883     *
9884     * @param obj The layout object
9885     * @param part The table part name to remove child.
9886     * @param clear If EINA_TRUE, then all objects will be deleted as
9887     *        well, otherwise they will just be removed and will be
9888     *        dangling on the canvas.
9889     *
9890     * The objects will be removed from the table part and their lifetime will
9891     * not be handled by the layout anymore. This is equivalent to
9892     * elm_layout_table_unpack() for all table children.
9893     *
9894     * @see elm_layout_table_pack()
9895     * @see elm_layout_table_unpack()
9896     *
9897     * @ingroup Layout
9898     */
9899    EAPI void               elm_layout_table_clear(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
9900    /**
9901     * Get the edje layout
9902     *
9903     * @param obj The layout object
9904     *
9905     * @return A Evas_Object with the edje layout settings loaded
9906     * with function elm_layout_file_set
9907     *
9908     * This returns the edje object. It is not expected to be used to then
9909     * swallow objects via edje_object_part_swallow() for example. Use
9910     * elm_object_content_part_set() instead so child object handling and sizing is
9911     * done properly.
9912     *
9913     * @note This function should only be used if you really need to call some
9914     * low level Edje function on this edje object. All the common stuff (setting
9915     * text, emitting signals, hooking callbacks to signals, etc.) can be done
9916     * with proper elementary functions.
9917     *
9918     * @see elm_object_signal_callback_add()
9919     * @see elm_object_signal_emit()
9920     * @see elm_object_text_part_set()
9921     * @see elm_object_content_part_set()
9922     * @see elm_layout_box_append()
9923     * @see elm_layout_table_pack()
9924     * @see elm_layout_data_get()
9925     *
9926     * @ingroup Layout
9927     */
9928    EAPI Evas_Object       *elm_layout_edje_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9929    /**
9930     * Get the edje data from the given layout
9931     *
9932     * @param obj The layout object
9933     * @param key The data key
9934     *
9935     * @return The edje data string
9936     *
9937     * This function fetches data specified inside the edje theme of this layout.
9938     * This function return NULL if data is not found.
9939     *
9940     * In EDC this comes from a data block within the group block that @p
9941     * obj was loaded from. E.g.
9942     *
9943     * @code
9944     * collections {
9945     *   group {
9946     *     name: "a_group";
9947     *     data {
9948     *       item: "key1" "value1";
9949     *       item: "key2" "value2";
9950     *     }
9951     *   }
9952     * }
9953     * @endcode
9954     *
9955     * @ingroup Layout
9956     */
9957    EAPI const char        *elm_layout_data_get(const Evas_Object *obj, const char *key) EINA_ARG_NONNULL(1, 2);
9958    /**
9959     * Eval sizing
9960     *
9961     * @param obj The layout object
9962     *
9963     * Manually forces a sizing re-evaluation. This is useful when the minimum
9964     * size required by the edje theme of this layout has changed. The change on
9965     * the minimum size required by the edje theme is not immediately reported to
9966     * the elementary layout, so one needs to call this function in order to tell
9967     * the widget (layout) that it needs to reevaluate its own size.
9968     *
9969     * The minimum size of the theme is calculated based on minimum size of
9970     * parts, the size of elements inside containers like box and table, etc. All
9971     * of this can change due to state changes, and that's when this function
9972     * should be called.
9973     *
9974     * Also note that a standard signal of "size,eval" "elm" emitted from the
9975     * edje object will cause this to happen too.
9976     *
9977     * @ingroup Layout
9978     */
9979    EAPI void               elm_layout_sizing_eval(Evas_Object *obj) EINA_ARG_NONNULL(1);
9980
9981    /**
9982     * Sets a specific cursor for an edje part.
9983     *
9984     * @param obj The layout object.
9985     * @param part_name a part from loaded edje group.
9986     * @param cursor cursor name to use, see Elementary_Cursor.h
9987     *
9988     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
9989     *         part not exists or it has "mouse_events: 0".
9990     *
9991     * @ingroup Layout
9992     */
9993    EAPI Eina_Bool          elm_layout_part_cursor_set(Evas_Object *obj, const char *part_name, const char *cursor) EINA_ARG_NONNULL(1, 2);
9994
9995    /**
9996     * Get the cursor to be shown when mouse is over an edje part
9997     *
9998     * @param obj The layout object.
9999     * @param part_name a part from loaded edje group.
10000     * @return the cursor name.
10001     *
10002     * @ingroup Layout
10003     */
10004    EAPI const char        *elm_layout_part_cursor_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10005
10006    /**
10007     * Unsets a cursor previously set with elm_layout_part_cursor_set().
10008     *
10009     * @param obj The layout object.
10010     * @param part_name a part from loaded edje group, that had a cursor set
10011     *        with elm_layout_part_cursor_set().
10012     *
10013     * @ingroup Layout
10014     */
10015    EAPI void               elm_layout_part_cursor_unset(Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10016
10017    /**
10018     * Sets a specific cursor style for an edje part.
10019     *
10020     * @param obj The layout object.
10021     * @param part_name a part from loaded edje group.
10022     * @param style the theme style to use (default, transparent, ...)
10023     *
10024     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
10025     *         part not exists or it did not had a cursor set.
10026     *
10027     * @ingroup Layout
10028     */
10029    EAPI Eina_Bool          elm_layout_part_cursor_style_set(Evas_Object *obj, const char *part_name, const char *style) EINA_ARG_NONNULL(1, 2);
10030
10031    /**
10032     * Gets a specific cursor style for an edje part.
10033     *
10034     * @param obj The layout object.
10035     * @param part_name a part from loaded edje group.
10036     *
10037     * @return the theme style in use, defaults to "default". If the
10038     *         object does not have a cursor set, then NULL is returned.
10039     *
10040     * @ingroup Layout
10041     */
10042    EAPI const char        *elm_layout_part_cursor_style_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10043
10044    /**
10045     * Sets if the cursor set should be searched on the theme or should use
10046     * the provided by the engine, only.
10047     *
10048     * @note before you set if should look on theme you should define a
10049     * cursor with elm_layout_part_cursor_set(). By default it will only
10050     * look for cursors provided by the engine.
10051     *
10052     * @param obj The layout object.
10053     * @param part_name a part from loaded edje group.
10054     * @param engine_only if cursors should be just provided by the engine
10055     *        or should also search on widget's theme as well
10056     *
10057     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
10058     *         part not exists or it did not had a cursor set.
10059     *
10060     * @ingroup Layout
10061     */
10062    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);
10063
10064    /**
10065     * Gets a specific cursor engine_only for an edje part.
10066     *
10067     * @param obj The layout object.
10068     * @param part_name a part from loaded edje group.
10069     *
10070     * @return whenever the cursor is just provided by engine or also from theme.
10071     *
10072     * @ingroup Layout
10073     */
10074    EAPI Eina_Bool          elm_layout_part_cursor_engine_only_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10075
10076 /**
10077  * @def elm_layout_icon_set
10078  * Convienience macro to set the icon object in a layout that follows the
10079  * Elementary naming convention for its parts.
10080  *
10081  * @ingroup Layout
10082  */
10083 #define elm_layout_icon_set(_ly, _obj) \
10084   do { \
10085     const char *sig; \
10086     elm_layout_content_set((_ly), "elm.swallow.icon", (_obj)); \
10087     if ((_obj)) sig = "elm,state,icon,visible"; \
10088     else sig = "elm,state,icon,hidden"; \
10089     elm_object_signal_emit((_ly), sig, "elm"); \
10090   } while (0)
10091
10092 /**
10093  * @def elm_layout_icon_get
10094  * Convienience macro to get the icon object from a layout that follows the
10095  * Elementary naming convention for its parts.
10096  *
10097  * @ingroup Layout
10098  */
10099 #define elm_layout_icon_get(_ly) \
10100   elm_layout_content_get((_ly), "elm.swallow.icon")
10101
10102 /**
10103  * @def elm_layout_end_set
10104  * Convienience macro to set the end object in a layout that follows the
10105  * Elementary naming convention for its parts.
10106  *
10107  * @ingroup Layout
10108  */
10109 #define elm_layout_end_set(_ly, _obj) \
10110   do { \
10111     const char *sig; \
10112     elm_layout_content_set((_ly), "elm.swallow.end", (_obj)); \
10113     if ((_obj)) sig = "elm,state,end,visible"; \
10114     else sig = "elm,state,end,hidden"; \
10115     elm_object_signal_emit((_ly), sig, "elm"); \
10116   } while (0)
10117
10118 /**
10119  * @def elm_layout_end_get
10120  * Convienience macro to get the end object in a layout that follows the
10121  * Elementary naming convention for its parts.
10122  *
10123  * @ingroup Layout
10124  */
10125 #define elm_layout_end_get(_ly) \
10126   elm_layout_content_get((_ly), "elm.swallow.end")
10127
10128 /**
10129  * @def elm_layout_label_set
10130  * Convienience macro to set the label in a layout that follows the
10131  * Elementary naming convention for its parts.
10132  *
10133  * @ingroup Layout
10134  * @deprecated use elm_object_text_* instead.
10135  */
10136 #define elm_layout_label_set(_ly, _txt) \
10137   elm_layout_text_set((_ly), "elm.text", (_txt))
10138
10139 /**
10140  * @def elm_layout_label_get
10141  * Convenience macro to get the label in a layout that follows the
10142  * Elementary naming convention for its parts.
10143  *
10144  * @ingroup Layout
10145  * @deprecated use elm_object_text_* instead.
10146  */
10147 #define elm_layout_label_get(_ly) \
10148   elm_layout_text_get((_ly), "elm.text")
10149
10150    /* smart callbacks called:
10151     * "theme,changed" - when elm theme is changed.
10152     */
10153
10154    /**
10155     * @defgroup Notify Notify
10156     *
10157     * @image html img/widget/notify/preview-00.png
10158     * @image latex img/widget/notify/preview-00.eps
10159     *
10160     * Display a container in a particular region of the parent(top, bottom,
10161     * etc).  A timeout can be set to automatically hide the notify. This is so
10162     * that, after an evas_object_show() on a notify object, if a timeout was set
10163     * on it, it will @b automatically get hidden after that time.
10164     *
10165     * Signals that you can add callbacks for are:
10166     * @li "timeout" - when timeout happens on notify and it's hidden
10167     * @li "block,clicked" - when a click outside of the notify happens
10168     *
10169     * Default contents parts of the notify widget that you can use for are:
10170     * @li "elm.swallow.content" - A content of the notify
10171     *
10172     * @ref tutorial_notify show usage of the API.
10173     *
10174     * @{
10175     */
10176    /**
10177     * @brief Possible orient values for notify.
10178     *
10179     * This values should be used in conjunction to elm_notify_orient_set() to
10180     * set the position in which the notify should appear(relative to its parent)
10181     * and in conjunction with elm_notify_orient_get() to know where the notify
10182     * is appearing.
10183     */
10184    typedef enum _Elm_Notify_Orient
10185      {
10186         ELM_NOTIFY_ORIENT_TOP, /**< Notify should appear in the top of parent, default */
10187         ELM_NOTIFY_ORIENT_CENTER, /**< Notify should appear in the center of parent */
10188         ELM_NOTIFY_ORIENT_BOTTOM, /**< Notify should appear in the bottom of parent */
10189         ELM_NOTIFY_ORIENT_LEFT, /**< Notify should appear in the left of parent */
10190         ELM_NOTIFY_ORIENT_RIGHT, /**< Notify should appear in the right of parent */
10191         ELM_NOTIFY_ORIENT_TOP_LEFT, /**< Notify should appear in the top left of parent */
10192         ELM_NOTIFY_ORIENT_TOP_RIGHT, /**< Notify should appear in the top right of parent */
10193         ELM_NOTIFY_ORIENT_BOTTOM_LEFT, /**< Notify should appear in the bottom left of parent */
10194         ELM_NOTIFY_ORIENT_BOTTOM_RIGHT, /**< Notify should appear in the bottom right of parent */
10195         ELM_NOTIFY_ORIENT_LAST /**< Sentinel value, @b don't use */
10196      } Elm_Notify_Orient;
10197    /**
10198     * @brief Add a new notify to the parent
10199     *
10200     * @param parent The parent object
10201     * @return The new object or NULL if it cannot be created
10202     */
10203    EAPI Evas_Object      *elm_notify_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10204    /**
10205     * @brief Set the content of the notify widget
10206     *
10207     * @param obj The notify object
10208     * @param content The content will be filled in this notify object
10209     *
10210     * Once the content object is set, a previously set one will be deleted. If
10211     * you want to keep that old content object, use the
10212     * elm_notify_content_unset() function.
10213     */
10214    EAPI void              elm_notify_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
10215    /**
10216     * @brief Unset the content of the notify widget
10217     *
10218     * @param obj The notify object
10219     * @return The content that was being used
10220     *
10221     * Unparent and return the content object which was set for this widget
10222     *
10223     * @see elm_notify_content_set()
10224     */
10225    EAPI Evas_Object      *elm_notify_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
10226    /**
10227     * @brief Return the content of the notify widget
10228     *
10229     * @param obj The notify object
10230     * @return The content that is being used
10231     *
10232     * @see elm_notify_content_set()
10233     */
10234    EAPI Evas_Object      *elm_notify_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10235    /**
10236     * @brief Set the notify parent
10237     *
10238     * @param obj The notify object
10239     * @param content The new parent
10240     *
10241     * Once the parent object is set, a previously set one will be disconnected
10242     * and replaced.
10243     */
10244    EAPI void              elm_notify_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
10245    /**
10246     * @brief Get the notify parent
10247     *
10248     * @param obj The notify object
10249     * @return The parent
10250     *
10251     * @see elm_notify_parent_set()
10252     */
10253    EAPI Evas_Object      *elm_notify_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10254    /**
10255     * @brief Set the orientation
10256     *
10257     * @param obj The notify object
10258     * @param orient The new orientation
10259     *
10260     * Sets the position in which the notify will appear in its parent.
10261     *
10262     * @see @ref Elm_Notify_Orient for possible values.
10263     */
10264    EAPI void              elm_notify_orient_set(Evas_Object *obj, Elm_Notify_Orient orient) EINA_ARG_NONNULL(1);
10265    /**
10266     * @brief Return the orientation
10267     * @param obj The notify object
10268     * @return The orientation of the notification
10269     *
10270     * @see elm_notify_orient_set()
10271     * @see Elm_Notify_Orient
10272     */
10273    EAPI Elm_Notify_Orient elm_notify_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10274    /**
10275     * @brief Set the time interval after which the notify window is going to be
10276     * hidden.
10277     *
10278     * @param obj The notify object
10279     * @param time The timeout in seconds
10280     *
10281     * This function sets a timeout and starts the timer controlling when the
10282     * notify is hidden. Since calling evas_object_show() on a notify restarts
10283     * the timer controlling when the notify is hidden, setting this before the
10284     * notify is shown will in effect mean starting the timer when the notify is
10285     * shown.
10286     *
10287     * @note Set a value <= 0.0 to disable a running timer.
10288     *
10289     * @note If the value > 0.0 and the notify is previously visible, the
10290     * timer will be started with this value, canceling any running timer.
10291     */
10292    EAPI void              elm_notify_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
10293    /**
10294     * @brief Return the timeout value (in seconds)
10295     * @param obj the notify object
10296     *
10297     * @see elm_notify_timeout_set()
10298     */
10299    EAPI double            elm_notify_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10300    /**
10301     * @brief Sets whether events should be passed to by a click outside
10302     * its area.
10303     *
10304     * @param obj The notify object
10305     * @param repeats EINA_TRUE Events are repeats, else no
10306     *
10307     * When true if the user clicks outside the window the events will be caught
10308     * by the others widgets, else the events are blocked.
10309     *
10310     * @note The default value is EINA_TRUE.
10311     */
10312    EAPI void              elm_notify_repeat_events_set(Evas_Object *obj, Eina_Bool repeat) EINA_ARG_NONNULL(1);
10313    /**
10314     * @brief Return true if events are repeat below the notify object
10315     * @param obj the notify object
10316     *
10317     * @see elm_notify_repeat_events_set()
10318     */
10319    EAPI Eina_Bool         elm_notify_repeat_events_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10320    /**
10321     * @}
10322     */
10323
10324    /**
10325     * @defgroup Hover Hover
10326     *
10327     * @image html img/widget/hover/preview-00.png
10328     * @image latex img/widget/hover/preview-00.eps
10329     *
10330     * A Hover object will hover over its @p parent object at the @p target
10331     * location. Anything in the background will be given a darker coloring to
10332     * indicate that the hover object is on top (at the default theme). When the
10333     * hover is clicked it is dismissed(hidden), if the contents of the hover are
10334     * clicked that @b doesn't cause the hover to be dismissed.
10335     *
10336     * A Hover object has two parents. One parent that owns it during creation
10337     * and the other parent being the one over which the hover object spans.
10338     *
10339     *
10340     * @note The hover object will take up the entire space of @p target
10341     * object.
10342     *
10343     * Elementary has the following styles for the hover widget:
10344     * @li default
10345     * @li popout
10346     * @li menu
10347     * @li hoversel_vertical
10348     *
10349     * The following are the available position for content:
10350     * @li left
10351     * @li top-left
10352     * @li top
10353     * @li top-right
10354     * @li right
10355     * @li bottom-right
10356     * @li bottom
10357     * @li bottom-left
10358     * @li middle
10359     * @li smart
10360     *
10361     * Signals that you can add callbacks for are:
10362     * @li "clicked" - the user clicked the empty space in the hover to dismiss
10363     * @li "smart,changed" - a content object placed under the "smart"
10364     *                   policy was replaced to a new slot direction.
10365     *
10366     * See @ref tutorial_hover for more information.
10367     *
10368     * @{
10369     */
10370    typedef enum _Elm_Hover_Axis
10371      {
10372         ELM_HOVER_AXIS_NONE, /**< ELM_HOVER_AXIS_NONE -- no prefered orientation */
10373         ELM_HOVER_AXIS_HORIZONTAL, /**< ELM_HOVER_AXIS_HORIZONTAL -- horizontal */
10374         ELM_HOVER_AXIS_VERTICAL, /**< ELM_HOVER_AXIS_VERTICAL -- vertical */
10375         ELM_HOVER_AXIS_BOTH /**< ELM_HOVER_AXIS_BOTH -- both */
10376      } Elm_Hover_Axis;
10377    /**
10378     * @brief Adds a hover object to @p parent
10379     *
10380     * @param parent The parent object
10381     * @return The hover object or NULL if one could not be created
10382     */
10383    EAPI Evas_Object *elm_hover_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10384    /**
10385     * @brief Sets the target object for the hover.
10386     *
10387     * @param obj The hover object
10388     * @param target The object to center the hover onto. The hover
10389     *
10390     * This function will cause the hover to be centered on the target object.
10391     */
10392    EAPI void         elm_hover_target_set(Evas_Object *obj, Evas_Object *target) EINA_ARG_NONNULL(1);
10393    /**
10394     * @brief Gets the target object for the hover.
10395     *
10396     * @param obj The hover object
10397     * @param parent The object to locate the hover over.
10398     *
10399     * @see elm_hover_target_set()
10400     */
10401    EAPI Evas_Object *elm_hover_target_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10402    /**
10403     * @brief Sets the parent object for the hover.
10404     *
10405     * @param obj The hover object
10406     * @param parent The object to locate the hover over.
10407     *
10408     * This function will cause the hover to take up the entire space that the
10409     * parent object fills.
10410     */
10411    EAPI void         elm_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
10412    /**
10413     * @brief Gets the parent object for the hover.
10414     *
10415     * @param obj The hover object
10416     * @return The parent object to locate the hover over.
10417     *
10418     * @see elm_hover_parent_set()
10419     */
10420    EAPI Evas_Object *elm_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10421    /**
10422     * @brief Sets the content of the hover object and the direction in which it
10423     * will pop out.
10424     *
10425     * @param obj The hover object
10426     * @param swallow The direction that the object will be displayed
10427     * at. Accepted values are "left", "top-left", "top", "top-right",
10428     * "right", "bottom-right", "bottom", "bottom-left", "middle" and
10429     * "smart".
10430     * @param content The content to place at @p swallow
10431     *
10432     * Once the content object is set for a given direction, a previously
10433     * set one (on the same direction) will be deleted. If you want to
10434     * keep that old content object, use the elm_hover_content_unset()
10435     * function.
10436     *
10437     * All directions may have contents at the same time, except for
10438     * "smart". This is a special placement hint and its use case
10439     * independs of the calculations coming from
10440     * elm_hover_best_content_location_get(). Its use is for cases when
10441     * one desires only one hover content, but with a dinamic special
10442     * placement within the hover area. The content's geometry, whenever
10443     * it changes, will be used to decide on a best location not
10444     * extrapolating the hover's parent object view to show it in (still
10445     * being the hover's target determinant of its medium part -- move and
10446     * resize it to simulate finger sizes, for example). If one of the
10447     * directions other than "smart" are used, a previously content set
10448     * using it will be deleted, and vice-versa.
10449     */
10450    EAPI void         elm_hover_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
10451    /**
10452     * @brief Get the content of the hover object, in a given direction.
10453     *
10454     * Return the content object which was set for this widget in the
10455     * @p swallow direction.
10456     *
10457     * @param obj The hover object
10458     * @param swallow The direction that the object was display at.
10459     * @return The content that was being used
10460     *
10461     * @see elm_hover_content_set()
10462     */
10463    EAPI Evas_Object *elm_hover_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10464    /**
10465     * @brief Unset the content of the hover object, in a given direction.
10466     *
10467     * Unparent and return the content object set at @p swallow direction.
10468     *
10469     * @param obj The hover object
10470     * @param swallow The direction that the object was display at.
10471     * @return The content that was being used.
10472     *
10473     * @see elm_hover_content_set()
10474     */
10475    EAPI Evas_Object *elm_hover_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10476    /**
10477     * @brief Returns the best swallow location for content in the hover.
10478     *
10479     * @param obj The hover object
10480     * @param pref_axis The preferred orientation axis for the hover object to use
10481     * @return The edje location to place content into the hover or @c
10482     *         NULL, on errors.
10483     *
10484     * Best is defined here as the location at which there is the most available
10485     * space.
10486     *
10487     * @p pref_axis may be one of
10488     * - @c ELM_HOVER_AXIS_NONE -- no prefered orientation
10489     * - @c ELM_HOVER_AXIS_HORIZONTAL -- horizontal
10490     * - @c ELM_HOVER_AXIS_VERTICAL -- vertical
10491     * - @c ELM_HOVER_AXIS_BOTH -- both
10492     *
10493     * If ELM_HOVER_AXIS_HORIZONTAL is choosen the returned position will
10494     * nescessarily be along the horizontal axis("left" or "right"). If
10495     * ELM_HOVER_AXIS_VERTICAL is choosen the returned position will nescessarily
10496     * be along the vertical axis("top" or "bottom"). Chossing
10497     * ELM_HOVER_AXIS_BOTH or ELM_HOVER_AXIS_NONE has the same effect and the
10498     * returned position may be in either axis.
10499     *
10500     * @see elm_hover_content_set()
10501     */
10502    EAPI const char  *elm_hover_best_content_location_get(const Evas_Object *obj, Elm_Hover_Axis pref_axis) EINA_ARG_NONNULL(1);
10503    /**
10504     * @}
10505     */
10506
10507    /* entry */
10508    /**
10509     * @defgroup Entry Entry
10510     *
10511     * @image html img/widget/entry/preview-00.png
10512     * @image latex img/widget/entry/preview-00.eps width=\textwidth
10513     * @image html img/widget/entry/preview-01.png
10514     * @image latex img/widget/entry/preview-01.eps width=\textwidth
10515     * @image html img/widget/entry/preview-02.png
10516     * @image latex img/widget/entry/preview-02.eps width=\textwidth
10517     * @image html img/widget/entry/preview-03.png
10518     * @image latex img/widget/entry/preview-03.eps width=\textwidth
10519     *
10520     * An entry is a convenience widget which shows a box that the user can
10521     * enter text into. Entries by default don't scroll, so they grow to
10522     * accomodate the entire text, resizing the parent window as needed. This
10523     * can be changed with the elm_entry_scrollable_set() function.
10524     *
10525     * They can also be single line or multi line (the default) and when set
10526     * to multi line mode they support text wrapping in any of the modes
10527     * indicated by #Elm_Wrap_Type.
10528     *
10529     * Other features include password mode, filtering of inserted text with
10530     * elm_entry_text_filter_append() and related functions, inline "items" and
10531     * formatted markup text.
10532     *
10533     * @section entry-markup Formatted text
10534     *
10535     * The markup tags supported by the Entry are defined by the theme, but
10536     * even when writing new themes or extensions it's a good idea to stick to
10537     * a sane default, to maintain coherency and avoid application breakages.
10538     * Currently defined by the default theme are the following tags:
10539     * @li \<br\>: Inserts a line break.
10540     * @li \<ps\>: Inserts a paragraph separator. This is preferred over line
10541     * breaks.
10542     * @li \<tab\>: Inserts a tab.
10543     * @li \<em\>...\</em\>: Emphasis. Sets the @em oblique style for the
10544     * enclosed text.
10545     * @li \<b\>...\</b\>: Sets the @b bold style for the enclosed text.
10546     * @li \<link\>...\</link\>: Underlines the enclosed text.
10547     * @li \<hilight\>...\</hilight\>: Hilights the enclosed text.
10548     *
10549     * @section entry-special Special markups
10550     *
10551     * Besides those used to format text, entries support two special markup
10552     * tags used to insert clickable portions of text or items inlined within
10553     * the text.
10554     *
10555     * @subsection entry-anchors Anchors
10556     *
10557     * Anchors are similar to HTML anchors. Text can be surrounded by \<a\> and
10558     * \</a\> tags and an event will be generated when this text is clicked,
10559     * like this:
10560     *
10561     * @code
10562     * This text is outside <a href=anc-01>but this one is an anchor</a>
10563     * @endcode
10564     *
10565     * The @c href attribute in the opening tag gives the name that will be
10566     * used to identify the anchor and it can be any valid utf8 string.
10567     *
10568     * When an anchor is clicked, an @c "anchor,clicked" signal is emitted with
10569     * an #Elm_Entry_Anchor_Info in the @c event_info parameter for the
10570     * callback function. The same applies for "anchor,in" (mouse in), "anchor,out"
10571     * (mouse out), "anchor,down" (mouse down), and "anchor,up" (mouse up) events on
10572     * an anchor.
10573     *
10574     * @subsection entry-items Items
10575     *
10576     * Inlined in the text, any other @c Evas_Object can be inserted by using
10577     * \<item\> tags this way:
10578     *
10579     * @code
10580     * <item size=16x16 vsize=full href=emoticon/haha></item>
10581     * @endcode
10582     *
10583     * Just like with anchors, the @c href identifies each item, but these need,
10584     * in addition, to indicate their size, which is done using any one of
10585     * @c size, @c absize or @c relsize attributes. These attributes take their
10586     * value in the WxH format, where W is the width and H the height of the
10587     * item.
10588     *
10589     * @li absize: Absolute pixel size for the item. Whatever value is set will
10590     * be the item's size regardless of any scale value the object may have
10591     * been set to. The final line height will be adjusted to fit larger items.
10592     * @li size: Similar to @c absize, but it's adjusted to the scale value set
10593     * for the object.
10594     * @li relsize: Size is adjusted for the item to fit within the current
10595     * line height.
10596     *
10597     * Besides their size, items are specificed a @c vsize value that affects
10598     * how their final size and position are calculated. The possible values
10599     * are:
10600     * @li ascent: Item will be placed within the line's baseline and its
10601     * ascent. That is, the height between the line where all characters are
10602     * positioned and the highest point in the line. For @c size and @c absize
10603     * items, the descent value will be added to the total line height to make
10604     * them fit. @c relsize items will be adjusted to fit within this space.
10605     * @li full: Items will be placed between the descent and ascent, or the
10606     * lowest point in the line and its highest.
10607     *
10608     * The next image shows different configurations of items and how they
10609     * are the previously mentioned options affect their sizes. In all cases,
10610     * the green line indicates the ascent, blue for the baseline and red for
10611     * the descent.
10612     *
10613     * @image html entry_item.png
10614     * @image latex entry_item.eps width=\textwidth
10615     *
10616     * And another one to show how size differs from absize. In the first one,
10617     * the scale value is set to 1.0, while the second one is using one of 2.0.
10618     *
10619     * @image html entry_item_scale.png
10620     * @image latex entry_item_scale.eps width=\textwidth
10621     *
10622     * After the size for an item is calculated, the entry will request an
10623     * object to place in its space. For this, the functions set with
10624     * elm_entry_item_provider_append() and related functions will be called
10625     * in order until one of them returns a @c non-NULL value. If no providers
10626     * are available, or all of them return @c NULL, then the entry falls back
10627     * to one of the internal defaults, provided the name matches with one of
10628     * them.
10629     *
10630     * All of the following are currently supported:
10631     *
10632     * - emoticon/angry
10633     * - emoticon/angry-shout
10634     * - emoticon/crazy-laugh
10635     * - emoticon/evil-laugh
10636     * - emoticon/evil
10637     * - emoticon/goggle-smile
10638     * - emoticon/grumpy
10639     * - emoticon/grumpy-smile
10640     * - emoticon/guilty
10641     * - emoticon/guilty-smile
10642     * - emoticon/haha
10643     * - emoticon/half-smile
10644     * - emoticon/happy-panting
10645     * - emoticon/happy
10646     * - emoticon/indifferent
10647     * - emoticon/kiss
10648     * - emoticon/knowing-grin
10649     * - emoticon/laugh
10650     * - emoticon/little-bit-sorry
10651     * - emoticon/love-lots
10652     * - emoticon/love
10653     * - emoticon/minimal-smile
10654     * - emoticon/not-happy
10655     * - emoticon/not-impressed
10656     * - emoticon/omg
10657     * - emoticon/opensmile
10658     * - emoticon/smile
10659     * - emoticon/sorry
10660     * - emoticon/squint-laugh
10661     * - emoticon/surprised
10662     * - emoticon/suspicious
10663     * - emoticon/tongue-dangling
10664     * - emoticon/tongue-poke
10665     * - emoticon/uh
10666     * - emoticon/unhappy
10667     * - emoticon/very-sorry
10668     * - emoticon/what
10669     * - emoticon/wink
10670     * - emoticon/worried
10671     * - emoticon/wtf
10672     *
10673     * Alternatively, an item may reference an image by its path, using
10674     * the URI form @c file:///path/to/an/image.png and the entry will then
10675     * use that image for the item.
10676     *
10677     * @section entry-files Loading and saving files
10678     *
10679     * Entries have convinience functions to load text from a file and save
10680     * changes back to it after a short delay. The automatic saving is enabled
10681     * by default, but can be disabled with elm_entry_autosave_set() and files
10682     * can be loaded directly as plain text or have any markup in them
10683     * recognized. See elm_entry_file_set() for more details.
10684     *
10685     * @section entry-signals Emitted signals
10686     *
10687     * This widget emits the following signals:
10688     *
10689     * @li "changed": The text within the entry was changed.
10690     * @li "changed,user": The text within the entry was changed because of user interaction.
10691     * @li "activated": The enter key was pressed on a single line entry.
10692     * @li "press": A mouse button has been pressed on the entry.
10693     * @li "longpressed": A mouse button has been pressed and held for a couple
10694     * seconds.
10695     * @li "clicked": The entry has been clicked (mouse press and release).
10696     * @li "clicked,double": The entry has been double clicked.
10697     * @li "clicked,triple": The entry has been triple clicked.
10698     * @li "focused": The entry has received focus.
10699     * @li "unfocused": The entry has lost focus.
10700     * @li "selection,paste": A paste of the clipboard contents was requested.
10701     * @li "selection,copy": A copy of the selected text into the clipboard was
10702     * requested.
10703     * @li "selection,cut": A cut of the selected text into the clipboard was
10704     * requested.
10705     * @li "selection,start": A selection has begun and no previous selection
10706     * existed.
10707     * @li "selection,changed": The current selection has changed.
10708     * @li "selection,cleared": The current selection has been cleared.
10709     * @li "cursor,changed": The cursor has changed position.
10710     * @li "anchor,clicked": An anchor has been clicked. The event_info
10711     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10712     * @li "anchor,in": Mouse cursor has moved into an anchor. The event_info
10713     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10714     * @li "anchor,out": Mouse cursor has moved out of an anchor. The event_info
10715     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10716     * @li "anchor,up": Mouse button has been unpressed on an anchor. The event_info
10717     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10718     * @li "anchor,down": Mouse button has been pressed on an anchor. The event_info
10719     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10720     * @li "preedit,changed": The preedit string has changed.
10721     * @li "language,changed": Program language changed.
10722     *
10723     * @section entry-examples
10724     *
10725     * An overview of the Entry API can be seen in @ref entry_example_01
10726     *
10727     * @{
10728     */
10729    /**
10730     * @typedef Elm_Entry_Anchor_Info
10731     *
10732     * The info sent in the callback for the "anchor,clicked" signals emitted
10733     * by entries.
10734     */
10735    typedef struct _Elm_Entry_Anchor_Info Elm_Entry_Anchor_Info;
10736    /**
10737     * @struct _Elm_Entry_Anchor_Info
10738     *
10739     * The info sent in the callback for the "anchor,clicked" signals emitted
10740     * by entries.
10741     */
10742    struct _Elm_Entry_Anchor_Info
10743      {
10744         const char *name; /**< The name of the anchor, as stated in its href */
10745         int         button; /**< The mouse button used to click on it */
10746         Evas_Coord  x, /**< Anchor geometry, relative to canvas */
10747                     y, /**< Anchor geometry, relative to canvas */
10748                     w, /**< Anchor geometry, relative to canvas */
10749                     h; /**< Anchor geometry, relative to canvas */
10750      };
10751    /**
10752     * @typedef Elm_Entry_Filter_Cb
10753     * This callback type is used by entry filters to modify text.
10754     * @param data The data specified as the last param when adding the filter
10755     * @param entry The entry object
10756     * @param text A pointer to the location of the text being filtered. This data can be modified,
10757     * but any additional allocations must be managed by the user.
10758     * @see elm_entry_text_filter_append
10759     * @see elm_entry_text_filter_prepend
10760     */
10761    typedef void (*Elm_Entry_Filter_Cb)(void *data, Evas_Object *entry, char **text);
10762
10763    /**
10764     * This adds an entry to @p parent object.
10765     *
10766     * By default, entries are:
10767     * @li not scrolled
10768     * @li multi-line
10769     * @li word wrapped
10770     * @li autosave is enabled
10771     *
10772     * @param parent The parent object
10773     * @return The new object or NULL if it cannot be created
10774     */
10775    EAPI Evas_Object *elm_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10776    /**
10777     * Sets the entry to single line mode.
10778     *
10779     * In single line mode, entries don't ever wrap when the text reaches the
10780     * edge, and instead they keep growing horizontally. Pressing the @c Enter
10781     * key will generate an @c "activate" event instead of adding a new line.
10782     *
10783     * When @p single_line is @c EINA_FALSE, line wrapping takes effect again
10784     * and pressing enter will break the text into a different line
10785     * without generating any events.
10786     *
10787     * @param obj The entry object
10788     * @param single_line If true, the text in the entry
10789     * will be on a single line.
10790     */
10791    EAPI void         elm_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
10792    /**
10793     * Gets whether the entry is set to be single line.
10794     *
10795     * @param obj The entry object
10796     * @return single_line If true, the text in the entry is set to display
10797     * on a single line.
10798     *
10799     * @see elm_entry_single_line_set()
10800     */
10801    EAPI Eina_Bool    elm_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10802    /**
10803     * Sets the entry to password mode.
10804     *
10805     * In password mode, entries are implicitly single line and the display of
10806     * any text in them is replaced with asterisks (*).
10807     *
10808     * @param obj The entry object
10809     * @param password If true, password mode is enabled.
10810     */
10811    EAPI void         elm_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
10812    /**
10813     * Gets whether the entry is set to password mode.
10814     *
10815     * @param obj The entry object
10816     * @return If true, the entry is set to display all characters
10817     * as asterisks (*).
10818     *
10819     * @see elm_entry_password_set()
10820     */
10821    EAPI Eina_Bool    elm_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10822    /**
10823     * This sets the text displayed within the entry to @p entry.
10824     *
10825     * @param obj The entry object
10826     * @param entry The text to be displayed
10827     *
10828     * @deprecated Use elm_object_text_set() instead.
10829     * @note Using this function bypasses text filters
10830     */
10831    EAPI void         elm_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
10832    /**
10833     * This returns the text currently shown in object @p entry.
10834     * See also elm_entry_entry_set().
10835     *
10836     * @param obj The entry object
10837     * @return The currently displayed text or NULL on failure
10838     *
10839     * @deprecated Use elm_object_text_get() instead.
10840     */
10841    EAPI const char  *elm_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10842    /**
10843     * Appends @p entry to the text of the entry.
10844     *
10845     * Adds the text in @p entry to the end of any text already present in the
10846     * widget.
10847     *
10848     * The appended text is subject to any filters set for the widget.
10849     *
10850     * @param obj The entry object
10851     * @param entry The text to be displayed
10852     *
10853     * @see elm_entry_text_filter_append()
10854     */
10855    EAPI void         elm_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
10856    /**
10857     * Gets whether the entry is empty.
10858     *
10859     * Empty means no text at all. If there are any markup tags, like an item
10860     * tag for which no provider finds anything, and no text is displayed, this
10861     * function still returns EINA_FALSE.
10862     *
10863     * @param obj The entry object
10864     * @return EINA_TRUE if the entry is empty, EINA_FALSE otherwise.
10865     */
10866    EAPI Eina_Bool    elm_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10867    /**
10868     * Gets any selected text within the entry.
10869     *
10870     * If there's any selected text in the entry, this function returns it as
10871     * a string in markup format. NULL is returned if no selection exists or
10872     * if an error occurred.
10873     *
10874     * The returned value points to an internal string and should not be freed
10875     * or modified in any way. If the @p entry object is deleted or its
10876     * contents are changed, the returned pointer should be considered invalid.
10877     *
10878     * @param obj The entry object
10879     * @return The selected text within the entry or NULL on failure
10880     */
10881    EAPI const char  *elm_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10882    /**
10883     * Inserts the given text into the entry at the current cursor position.
10884     *
10885     * This inserts text at the cursor position as if it was typed
10886     * by the user (note that this also allows markup which a user
10887     * can't just "type" as it would be converted to escaped text, so this
10888     * call can be used to insert things like emoticon items or bold push/pop
10889     * tags, other font and color change tags etc.)
10890     *
10891     * If any selection exists, it will be replaced by the inserted text.
10892     *
10893     * The inserted text is subject to any filters set for the widget.
10894     *
10895     * @param obj The entry object
10896     * @param entry The text to insert
10897     *
10898     * @see elm_entry_text_filter_append()
10899     */
10900    EAPI void         elm_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
10901    /**
10902     * Set the line wrap type to use on multi-line entries.
10903     *
10904     * Sets the wrap type used by the entry to any of the specified in
10905     * #Elm_Wrap_Type. This tells how the text will be implicitly cut into a new
10906     * line (without inserting a line break or paragraph separator) when it
10907     * reaches the far edge of the widget.
10908     *
10909     * Note that this only makes sense for multi-line entries. A widget set
10910     * to be single line will never wrap.
10911     *
10912     * @param obj The entry object
10913     * @param wrap The wrap mode to use. See #Elm_Wrap_Type for details on them
10914     */
10915    EAPI void         elm_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
10916    EINA_DEPRECATED EAPI void         elm_entry_line_char_wrap_set(Evas_Object *obj, Eina_Bool wrap) EINA_ARG_NONNULL(1);
10917    /**
10918     * Gets the wrap mode the entry was set to use.
10919     *
10920     * @param obj The entry object
10921     * @return Wrap type
10922     *
10923     * @see also elm_entry_line_wrap_set()
10924     */
10925    EAPI Elm_Wrap_Type elm_entry_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10926    /**
10927     * Sets if the entry is to be editable or not.
10928     *
10929     * By default, entries are editable and when focused, any text input by the
10930     * user will be inserted at the current cursor position. But calling this
10931     * function with @p editable as EINA_FALSE will prevent the user from
10932     * inputting text into the entry.
10933     *
10934     * The only way to change the text of a non-editable entry is to use
10935     * elm_object_text_set(), elm_entry_entry_insert() and other related
10936     * functions.
10937     *
10938     * @param obj The entry object
10939     * @param editable If EINA_TRUE, user input will be inserted in the entry,
10940     * if not, the entry is read-only and no user input is allowed.
10941     */
10942    EAPI void         elm_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
10943    /**
10944     * Gets whether the entry is editable or not.
10945     *
10946     * @param obj The entry object
10947     * @return If true, the entry is editable by the user.
10948     * If false, it is not editable by the user
10949     *
10950     * @see elm_entry_editable_set()
10951     */
10952    EAPI Eina_Bool    elm_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10953    /**
10954     * This drops any existing text selection within the entry.
10955     *
10956     * @param obj The entry object
10957     */
10958    EAPI void         elm_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
10959    /**
10960     * This selects all text within the entry.
10961     *
10962     * @param obj The entry object
10963     */
10964    EAPI void         elm_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
10965    /**
10966     * This moves the cursor one place to the right within the entry.
10967     *
10968     * @param obj The entry object
10969     * @return EINA_TRUE upon success, EINA_FALSE upon failure
10970     */
10971    EAPI Eina_Bool    elm_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
10972    /**
10973     * This moves the cursor one place to the left within the entry.
10974     *
10975     * @param obj The entry object
10976     * @return EINA_TRUE upon success, EINA_FALSE upon failure
10977     */
10978    EAPI Eina_Bool    elm_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
10979    /**
10980     * This moves the cursor one line up within the entry.
10981     *
10982     * @param obj The entry object
10983     * @return EINA_TRUE upon success, EINA_FALSE upon failure
10984     */
10985    EAPI Eina_Bool    elm_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
10986    /**
10987     * This moves the cursor one line down within the entry.
10988     *
10989     * @param obj The entry object
10990     * @return EINA_TRUE upon success, EINA_FALSE upon failure
10991     */
10992    EAPI Eina_Bool    elm_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
10993    /**
10994     * This moves the cursor to the beginning of the entry.
10995     *
10996     * @param obj The entry object
10997     */
10998    EAPI void         elm_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
10999    /**
11000     * This moves the cursor to the end of the entry.
11001     *
11002     * @param obj The entry object
11003     */
11004    EAPI void         elm_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
11005    /**
11006     * This moves the cursor to the beginning of the current line.
11007     *
11008     * @param obj The entry object
11009     */
11010    EAPI void         elm_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
11011    /**
11012     * This moves the cursor to the end of the current line.
11013     *
11014     * @param obj The entry object
11015     */
11016    EAPI void         elm_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
11017    /**
11018     * This begins a selection within the entry as though
11019     * the user were holding down the mouse button to make a selection.
11020     *
11021     * @param obj The entry object
11022     */
11023    EAPI void         elm_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
11024    /**
11025     * This ends a selection within the entry as though
11026     * the user had just released the mouse button while making a selection.
11027     *
11028     * @param obj The entry object
11029     */
11030    EAPI void         elm_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
11031    /**
11032     * Gets whether a format node exists at the current cursor position.
11033     *
11034     * A format node is anything that defines how the text is rendered. It can
11035     * be a visible format node, such as a line break or a paragraph separator,
11036     * or an invisible one, such as bold begin or end tag.
11037     * This function returns whether any format node exists at the current
11038     * cursor position.
11039     *
11040     * @param obj The entry object
11041     * @return EINA_TRUE if the current cursor position contains a format node,
11042     * EINA_FALSE otherwise.
11043     *
11044     * @see elm_entry_cursor_is_visible_format_get()
11045     */
11046    EAPI Eina_Bool    elm_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11047    /**
11048     * Gets if the current cursor position holds a visible format node.
11049     *
11050     * @param obj The entry object
11051     * @return EINA_TRUE if the current cursor is a visible format, EINA_FALSE
11052     * if it's an invisible one or no format exists.
11053     *
11054     * @see elm_entry_cursor_is_format_get()
11055     */
11056    EAPI Eina_Bool    elm_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11057    /**
11058     * Gets the character pointed by the cursor at its current position.
11059     *
11060     * This function returns a string with the utf8 character stored at the
11061     * current cursor position.
11062     * Only the text is returned, any format that may exist will not be part
11063     * of the return value.
11064     *
11065     * @param obj The entry object
11066     * @return The text pointed by the cursors.
11067     */
11068    EAPI const char  *elm_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11069    /**
11070     * This function returns the geometry of the cursor.
11071     *
11072     * It's useful if you want to draw something on the cursor (or where it is),
11073     * or for example in the case of scrolled entry where you want to show the
11074     * cursor.
11075     *
11076     * @param obj The entry object
11077     * @param x returned geometry
11078     * @param y returned geometry
11079     * @param w returned geometry
11080     * @param h returned geometry
11081     * @return EINA_TRUE upon success, EINA_FALSE upon failure
11082     */
11083    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);
11084    /**
11085     * Sets the cursor position in the entry to the given value
11086     *
11087     * The value in @p pos is the index of the character position within the
11088     * contents of the string as returned by elm_entry_cursor_pos_get().
11089     *
11090     * @param obj The entry object
11091     * @param pos The position of the cursor
11092     */
11093    EAPI void         elm_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
11094    /**
11095     * Retrieves the current position of the cursor in the entry
11096     *
11097     * @param obj The entry object
11098     * @return The cursor position
11099     */
11100    EAPI int          elm_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11101    /**
11102     * This executes a "cut" action on the selected text in the entry.
11103     *
11104     * @param obj The entry object
11105     */
11106    EAPI void         elm_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
11107    /**
11108     * This executes a "copy" action on the selected text in the entry.
11109     *
11110     * @param obj The entry object
11111     */
11112    EAPI void         elm_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
11113    /**
11114     * This executes a "paste" action in the entry.
11115     *
11116     * @param obj The entry object
11117     */
11118    EAPI void         elm_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
11119    /**
11120     * This clears and frees the items in a entry's contextual (longpress)
11121     * menu.
11122     *
11123     * @param obj The entry object
11124     *
11125     * @see elm_entry_context_menu_item_add()
11126     */
11127    EAPI void         elm_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
11128    /**
11129     * This adds an item to the entry's contextual menu.
11130     *
11131     * A longpress on an entry will make the contextual menu show up, if this
11132     * hasn't been disabled with elm_entry_context_menu_disabled_set().
11133     * By default, this menu provides a few options like enabling selection mode,
11134     * which is useful on embedded devices that need to be explicit about it,
11135     * and when a selection exists it also shows the copy and cut actions.
11136     *
11137     * With this function, developers can add other options to this menu to
11138     * perform any action they deem necessary.
11139     *
11140     * @param obj The entry object
11141     * @param label The item's text label
11142     * @param icon_file The item's icon file
11143     * @param icon_type The item's icon type
11144     * @param func The callback to execute when the item is clicked
11145     * @param data The data to associate with the item for related functions
11146     */
11147    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);
11148    /**
11149     * This disables the entry's contextual (longpress) menu.
11150     *
11151     * @param obj The entry object
11152     * @param disabled If true, the menu is disabled
11153     */
11154    EAPI void         elm_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
11155    /**
11156     * This returns whether the entry's contextual (longpress) menu is
11157     * disabled.
11158     *
11159     * @param obj The entry object
11160     * @return If true, the menu is disabled
11161     */
11162    EAPI Eina_Bool    elm_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11163    /**
11164     * This appends a custom item provider to the list for that entry
11165     *
11166     * This appends the given callback. The list is walked from beginning to end
11167     * with each function called given the item href string in the text. If the
11168     * function returns an object handle other than NULL (it should create an
11169     * object to do this), then this object is used to replace that item. If
11170     * not the next provider is called until one provides an item object, or the
11171     * default provider in entry does.
11172     *
11173     * @param obj The entry object
11174     * @param func The function called to provide the item object
11175     * @param data The data passed to @p func
11176     *
11177     * @see @ref entry-items
11178     */
11179    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);
11180    /**
11181     * This prepends a custom item provider to the list for that entry
11182     *
11183     * This prepends the given callback. See elm_entry_item_provider_append() for
11184     * more information
11185     *
11186     * @param obj The entry object
11187     * @param func The function called to provide the item object
11188     * @param data The data passed to @p func
11189     */
11190    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);
11191    /**
11192     * This removes a custom item provider to the list for that entry
11193     *
11194     * This removes the given callback. See elm_entry_item_provider_append() for
11195     * more information
11196     *
11197     * @param obj The entry object
11198     * @param func The function called to provide the item object
11199     * @param data The data passed to @p func
11200     */
11201    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);
11202    /**
11203     * Append a filter function for text inserted in the entry
11204     *
11205     * Append the given callback to the list. This functions will be called
11206     * whenever any text is inserted into the entry, with the text to be inserted
11207     * as a parameter. The callback function is free to alter the text in any way
11208     * it wants, but it must remember to free the given pointer and update it.
11209     * If the new text is to be discarded, the function can free it and set its
11210     * text parameter to NULL. This will also prevent any following filters from
11211     * being called.
11212     *
11213     * @param obj The entry object
11214     * @param func The function to use as text filter
11215     * @param data User data to pass to @p func
11216     */
11217    EAPI void         elm_entry_text_filter_append(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11218    /**
11219     * Prepend a filter function for text insdrted in the entry
11220     *
11221     * Prepend the given callback to the list. See elm_entry_text_filter_append()
11222     * for more information
11223     *
11224     * @param obj The entry object
11225     * @param func The function to use as text filter
11226     * @param data User data to pass to @p func
11227     */
11228    EAPI void         elm_entry_text_filter_prepend(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11229    /**
11230     * Remove a filter from the list
11231     *
11232     * Removes the given callback from the filter list. See
11233     * elm_entry_text_filter_append() for more information.
11234     *
11235     * @param obj The entry object
11236     * @param func The filter function to remove
11237     * @param data The user data passed when adding the function
11238     */
11239    EAPI void         elm_entry_text_filter_remove(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11240    /**
11241     * This converts a markup (HTML-like) string into UTF-8.
11242     *
11243     * The returned string is a malloc'ed buffer and it should be freed when
11244     * not needed anymore.
11245     *
11246     * @param s The string (in markup) to be converted
11247     * @return The converted string (in UTF-8). It should be freed.
11248     */
11249    EAPI char        *elm_entry_markup_to_utf8(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
11250    /**
11251     * This converts a UTF-8 string into markup (HTML-like).
11252     *
11253     * The returned string is a malloc'ed buffer and it should be freed when
11254     * not needed anymore.
11255     *
11256     * @param s The string (in UTF-8) to be converted
11257     * @return The converted string (in markup). It should be freed.
11258     */
11259    EAPI char        *elm_entry_utf8_to_markup(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
11260    /**
11261     * This sets the file (and implicitly loads it) for the text to display and
11262     * then edit. All changes are written back to the file after a short delay if
11263     * the entry object is set to autosave (which is the default).
11264     *
11265     * If the entry had any other file set previously, any changes made to it
11266     * will be saved if the autosave feature is enabled, otherwise, the file
11267     * will be silently discarded and any non-saved changes will be lost.
11268     *
11269     * @param obj The entry object
11270     * @param file The path to the file to load and save
11271     * @param format The file format
11272     */
11273    EAPI void         elm_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
11274    /**
11275     * Gets the file being edited by the entry.
11276     *
11277     * This function can be used to retrieve any file set on the entry for
11278     * edition, along with the format used to load and save it.
11279     *
11280     * @param obj The entry object
11281     * @param file The path to the file to load and save
11282     * @param format The file format
11283     */
11284    EAPI void         elm_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
11285    /**
11286     * This function writes any changes made to the file set with
11287     * elm_entry_file_set()
11288     *
11289     * @param obj The entry object
11290     */
11291    EAPI void         elm_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
11292    /**
11293     * This sets the entry object to 'autosave' the loaded text file or not.
11294     *
11295     * @param obj The entry object
11296     * @param autosave Autosave the loaded file or not
11297     *
11298     * @see elm_entry_file_set()
11299     */
11300    EAPI void         elm_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
11301    /**
11302     * This gets the entry object's 'autosave' status.
11303     *
11304     * @param obj The entry object
11305     * @return Autosave the loaded file or not
11306     *
11307     * @see elm_entry_file_set()
11308     */
11309    EAPI Eina_Bool    elm_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11310    /**
11311     * Control pasting of text and images for the widget.
11312     *
11313     * Normally the entry allows both text and images to be pasted.  By setting
11314     * textonly to be true, this prevents images from being pasted.
11315     *
11316     * Note this only changes the behaviour of text.
11317     *
11318     * @param obj The entry object
11319     * @param textonly paste mode - EINA_TRUE is text only, EINA_FALSE is
11320     * text+image+other.
11321     */
11322    EAPI void         elm_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
11323    /**
11324     * Getting elm_entry text paste/drop mode.
11325     *
11326     * In textonly mode, only text may be pasted or dropped into the widget.
11327     *
11328     * @param obj The entry object
11329     * @return If the widget only accepts text from pastes.
11330     */
11331    EAPI Eina_Bool    elm_entry_cnp_textonly_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11332    /**
11333     * Enable or disable scrolling in entry
11334     *
11335     * Normally the entry is not scrollable unless you enable it with this call.
11336     *
11337     * @param obj The entry object
11338     * @param scroll EINA_TRUE if it is to be scrollable, EINA_FALSE otherwise
11339     */
11340    EAPI void         elm_entry_scrollable_set(Evas_Object *obj, Eina_Bool scroll);
11341    /**
11342     * Get the scrollable state of the entry
11343     *
11344     * Normally the entry is not scrollable. This gets the scrollable state
11345     * of the entry. See elm_entry_scrollable_set() for more information.
11346     *
11347     * @param obj The entry object
11348     * @return The scrollable state
11349     */
11350    EAPI Eina_Bool    elm_entry_scrollable_get(const Evas_Object *obj);
11351    /**
11352     * This sets a widget to be displayed to the left of a scrolled entry.
11353     *
11354     * @param obj The scrolled entry object
11355     * @param icon The widget to display on the left side of the scrolled
11356     * entry.
11357     *
11358     * @note A previously set widget will be destroyed.
11359     * @note If the object being set does not have minimum size hints set,
11360     * it won't get properly displayed.
11361     *
11362     * @see elm_entry_end_set()
11363     */
11364    EAPI void         elm_entry_icon_set(Evas_Object *obj, Evas_Object *icon);
11365    /**
11366     * Gets the leftmost widget of the scrolled entry. This object is
11367     * owned by the scrolled entry and should not be modified.
11368     *
11369     * @param obj The scrolled entry object
11370     * @return the left widget inside the scroller
11371     */
11372    EAPI Evas_Object *elm_entry_icon_get(const Evas_Object *obj);
11373    /**
11374     * Unset the leftmost widget of the scrolled entry, unparenting and
11375     * returning it.
11376     *
11377     * @param obj The scrolled entry object
11378     * @return the previously set icon sub-object of this entry, on
11379     * success.
11380     *
11381     * @see elm_entry_icon_set()
11382     */
11383    EAPI Evas_Object *elm_entry_icon_unset(Evas_Object *obj);
11384    /**
11385     * Sets the visibility of the left-side widget of the scrolled entry,
11386     * set by elm_entry_icon_set().
11387     *
11388     * @param obj The scrolled entry object
11389     * @param setting EINA_TRUE if the object should be displayed,
11390     * EINA_FALSE if not.
11391     */
11392    EAPI void         elm_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting);
11393    /**
11394     * This sets a widget to be displayed to the end of a scrolled entry.
11395     *
11396     * @param obj The scrolled entry object
11397     * @param end The widget to display on the right side of the scrolled
11398     * entry.
11399     *
11400     * @note A previously set widget will be destroyed.
11401     * @note If the object being set does not have minimum size hints set,
11402     * it won't get properly displayed.
11403     *
11404     * @see elm_entry_icon_set
11405     */
11406    EAPI void         elm_entry_end_set(Evas_Object *obj, Evas_Object *end);
11407    /**
11408     * Gets the endmost widget of the scrolled entry. This object is owned
11409     * by the scrolled entry and should not be modified.
11410     *
11411     * @param obj The scrolled entry object
11412     * @return the right widget inside the scroller
11413     */
11414    EAPI Evas_Object *elm_entry_end_get(const Evas_Object *obj);
11415    /**
11416     * Unset the endmost widget of the scrolled entry, unparenting and
11417     * returning it.
11418     *
11419     * @param obj The scrolled entry object
11420     * @return the previously set icon sub-object of this entry, on
11421     * success.
11422     *
11423     * @see elm_entry_icon_set()
11424     */
11425    EAPI Evas_Object *elm_entry_end_unset(Evas_Object *obj);
11426    /**
11427     * Sets the visibility of the end widget of the scrolled entry, set by
11428     * elm_entry_end_set().
11429     *
11430     * @param obj The scrolled entry object
11431     * @param setting EINA_TRUE if the object should be displayed,
11432     * EINA_FALSE if not.
11433     */
11434    EAPI void         elm_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting);
11435    /**
11436     * This sets the scrolled entry's scrollbar policy (ie. enabling/disabling
11437     * them).
11438     *
11439     * Setting an entry to single-line mode with elm_entry_single_line_set()
11440     * will automatically disable the display of scrollbars when the entry
11441     * moves inside its scroller.
11442     *
11443     * @param obj The scrolled entry object
11444     * @param h The horizontal scrollbar policy to apply
11445     * @param v The vertical scrollbar policy to apply
11446     */
11447    EAPI void         elm_entry_scrollbar_policy_set(Evas_Object *obj, Elm_Scroller_Policy h, Elm_Scroller_Policy v);
11448    /**
11449     * This enables/disables bouncing within the entry.
11450     *
11451     * This function sets whether the entry will bounce when scrolling reaches
11452     * the end of the contained entry.
11453     *
11454     * @param obj The scrolled entry object
11455     * @param h The horizontal bounce state
11456     * @param v The vertical bounce state
11457     */
11458    EAPI void         elm_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
11459    /**
11460     * Get the bounce mode
11461     *
11462     * @param obj The Entry object
11463     * @param h_bounce Allow bounce horizontally
11464     * @param v_bounce Allow bounce vertically
11465     */
11466    EAPI void         elm_entry_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
11467
11468    /* pre-made filters for entries */
11469    /**
11470     * @typedef Elm_Entry_Filter_Limit_Size
11471     *
11472     * Data for the elm_entry_filter_limit_size() entry filter.
11473     */
11474    typedef struct _Elm_Entry_Filter_Limit_Size Elm_Entry_Filter_Limit_Size;
11475    /**
11476     * @struct _Elm_Entry_Filter_Limit_Size
11477     *
11478     * Data for the elm_entry_filter_limit_size() entry filter.
11479     */
11480    struct _Elm_Entry_Filter_Limit_Size
11481      {
11482         int max_char_count; /**< The maximum number of characters allowed. */
11483         int max_byte_count; /**< The maximum number of bytes allowed*/
11484      };
11485    /**
11486     * Filter inserted text based on user defined character and byte limits
11487     *
11488     * Add this filter to an entry to limit the characters that it will accept
11489     * based the the contents of the provided #Elm_Entry_Filter_Limit_Size.
11490     * The funtion works on the UTF-8 representation of the string, converting
11491     * it from the set markup, thus not accounting for any format in it.
11492     *
11493     * The user must create an #Elm_Entry_Filter_Limit_Size structure and pass
11494     * it as data when setting the filter. In it, it's possible to set limits
11495     * by character count or bytes (any of them is disabled if 0), and both can
11496     * be set at the same time. In that case, it first checks for characters,
11497     * then bytes.
11498     *
11499     * The function will cut the inserted text in order to allow only the first
11500     * number of characters that are still allowed. The cut is made in
11501     * characters, even when limiting by bytes, in order to always contain
11502     * valid ones and avoid half unicode characters making it in.
11503     *
11504     * This filter, like any others, does not apply when setting the entry text
11505     * directly with elm_object_text_set() (or the deprecated
11506     * elm_entry_entry_set()).
11507     */
11508    EAPI void         elm_entry_filter_limit_size(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 2, 3);
11509    /**
11510     * @typedef Elm_Entry_Filter_Accept_Set
11511     *
11512     * Data for the elm_entry_filter_accept_set() entry filter.
11513     */
11514    typedef struct _Elm_Entry_Filter_Accept_Set Elm_Entry_Filter_Accept_Set;
11515    /**
11516     * @struct _Elm_Entry_Filter_Accept_Set
11517     *
11518     * Data for the elm_entry_filter_accept_set() entry filter.
11519     */
11520    struct _Elm_Entry_Filter_Accept_Set
11521      {
11522         const char *accepted; /**< Set of characters accepted in the entry. */
11523         const char *rejected; /**< Set of characters rejected from the entry. */
11524      };
11525    /**
11526     * Filter inserted text based on accepted or rejected sets of characters
11527     *
11528     * Add this filter to an entry to restrict the set of accepted characters
11529     * based on the sets in the provided #Elm_Entry_Filter_Accept_Set.
11530     * This structure contains both accepted and rejected sets, but they are
11531     * mutually exclusive.
11532     *
11533     * The @c accepted set takes preference, so if it is set, the filter will
11534     * only work based on the accepted characters, ignoring anything in the
11535     * @c rejected value. If @c accepted is @c NULL, then @c rejected is used.
11536     *
11537     * In both cases, the function filters by matching utf8 characters to the
11538     * raw markup text, so it can be used to remove formatting tags.
11539     *
11540     * This filter, like any others, does not apply when setting the entry text
11541     * directly with elm_object_text_set() (or the deprecated
11542     * elm_entry_entry_set()).
11543     */
11544    EAPI void         elm_entry_filter_accept_set(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 3);
11545    /**
11546     * Set the input panel layout of the entry
11547     *
11548     * @param obj The entry object
11549     * @param layout layout type
11550     */
11551    EAPI void elm_entry_input_panel_layout_set(Evas_Object *obj, Elm_Input_Panel_Layout layout) EINA_ARG_NONNULL(1);
11552    /**
11553     * Get the input panel layout of the entry
11554     *
11555     * @param obj The entry object
11556     * @return layout type
11557     *
11558     * @see elm_entry_input_panel_layout_set
11559     */
11560    EAPI Elm_Input_Panel_Layout elm_entry_input_panel_layout_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
11561    /**
11562     * Set the autocapitalization type on the immodule.
11563     *
11564     * @param obj The entry object
11565     * @param autocapital_type The type of autocapitalization
11566     */
11567    EAPI void         elm_entry_autocapital_type_set(Evas_Object *obj, Elm_Autocapital_Type autocapital_type) EINA_ARG_NONNULL(1);
11568    /**
11569     * Retrieve the autocapitalization type on the immodule.
11570     *
11571     * @param obj The entry object
11572     * @return autocapitalization type
11573     */
11574    EAPI Elm_Autocapital_Type elm_entry_autocapital_type_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
11575    /**
11576     * Sets the attribute to show the input panel automatically.
11577     *
11578     * @param obj The entry object
11579     * @param enabled If true, the input panel is appeared when entry is clicked or has a focus
11580     */
11581    EAPI void elm_entry_input_panel_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
11582    /**
11583     * Retrieve the attribute to show the input panel automatically.
11584     *
11585     * @param obj The entry object
11586     * @return EINA_TRUE if input panel will be appeared when the entry is clicked or has a focus, EINA_FALSE otherwise
11587     */
11588    EAPI Eina_Bool elm_entry_input_panel_enabled_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
11589
11590    EAPI void         elm_entry_background_color_set(Evas_Object *obj, unsigned int r, unsigned int g, unsigned int b, unsigned int a);
11591    EAPI void         elm_entry_autocapitalization_set(Evas_Object *obj, Eina_Bool autocap);
11592    EAPI void         elm_entry_autoperiod_set(Evas_Object *obj, Eina_Bool autoperiod);
11593    EAPI void         elm_entry_autoenable_returnkey_set(Evas_Object *obj, Eina_Bool on);
11594    EAPI Ecore_IMF_Context *elm_entry_imf_context_get(Evas_Object *obj);
11595    EAPI void         elm_entry_matchlist_set(Evas_Object *obj, Eina_List *match_list, Eina_Bool case_sensitive);
11596    EAPI void         elm_entry_magnifier_type_set(Evas_Object *obj, int type) EINA_ARG_NONNULL(1);
11597
11598    EINA_DEPRECATED EAPI void         elm_entry_wrap_width_set(Evas_Object *obj, Evas_Coord w);
11599    EINA_DEPRECATED EAPI Evas_Coord   elm_entry_wrap_width_get(const Evas_Object *obj);
11600    EINA_DEPRECATED EAPI void         elm_entry_fontsize_set(Evas_Object *obj, int fontsize);
11601    EINA_DEPRECATED EAPI void         elm_entry_text_color_set(Evas_Object *obj, unsigned int r, unsigned int g, unsigned int b, unsigned int a);
11602    EINA_DEPRECATED EAPI void         elm_entry_text_align_set(Evas_Object *obj, const char *alignmode);
11603
11604    /**
11605     * @}
11606     */
11607
11608    /* composite widgets - these basically put together basic widgets above
11609     * in convenient packages that do more than basic stuff */
11610
11611    /* anchorview */
11612    /**
11613     * @defgroup Anchorview Anchorview
11614     *
11615     * @image html img/widget/anchorview/preview-00.png
11616     * @image latex img/widget/anchorview/preview-00.eps
11617     *
11618     * Anchorview is for displaying text that contains markup with anchors
11619     * like <c>\<a href=1234\>something\</\></c> in it.
11620     *
11621     * Besides being styled differently, the anchorview widget provides the
11622     * necessary functionality so that clicking on these anchors brings up a
11623     * popup with user defined content such as "call", "add to contacts" or
11624     * "open web page". This popup is provided using the @ref Hover widget.
11625     *
11626     * This widget is very similar to @ref Anchorblock, so refer to that
11627     * widget for an example. The only difference Anchorview has is that the
11628     * widget is already provided with scrolling functionality, so if the
11629     * text set to it is too large to fit in the given space, it will scroll,
11630     * whereas the @ref Anchorblock widget will keep growing to ensure all the
11631     * text can be displayed.
11632     *
11633     * This widget emits the following signals:
11634     * @li "anchor,clicked": will be called when an anchor is clicked. The
11635     * @p event_info parameter on the callback will be a pointer of type
11636     * ::Elm_Entry_Anchorview_Info.
11637     *
11638     * See @ref Anchorblock for an example on how to use both of them.
11639     *
11640     * @see Anchorblock
11641     * @see Entry
11642     * @see Hover
11643     *
11644     * @{
11645     */
11646    /**
11647     * @typedef Elm_Entry_Anchorview_Info
11648     *
11649     * The info sent in the callback for "anchor,clicked" signals emitted by
11650     * the Anchorview widget.
11651     */
11652    typedef struct _Elm_Entry_Anchorview_Info Elm_Entry_Anchorview_Info;
11653    /**
11654     * @struct _Elm_Entry_Anchorview_Info
11655     *
11656     * The info sent in the callback for "anchor,clicked" signals emitted by
11657     * the Anchorview widget.
11658     */
11659    struct _Elm_Entry_Anchorview_Info
11660      {
11661         const char     *name; /**< Name of the anchor, as indicated in its href
11662                                    attribute */
11663         int             button; /**< The mouse button used to click on it */
11664         Evas_Object    *hover; /**< The hover object to use for the popup */
11665         struct {
11666              Evas_Coord    x, y, w, h;
11667         } anchor, /**< Geometry selection of text used as anchor */
11668           hover_parent; /**< Geometry of the object used as parent by the
11669                              hover */
11670         Eina_Bool       hover_left : 1; /**< Hint indicating if there's space
11671                                              for content on the left side of
11672                                              the hover. Before calling the
11673                                              callback, the widget will make the
11674                                              necessary calculations to check
11675                                              which sides are fit to be set with
11676                                              content, based on the position the
11677                                              hover is activated and its distance
11678                                              to the edges of its parent object
11679                                              */
11680         Eina_Bool       hover_right : 1; /**< Hint indicating content fits on
11681                                               the right side of the hover.
11682                                               See @ref hover_left */
11683         Eina_Bool       hover_top : 1; /**< Hint indicating content fits on top
11684                                             of the hover. See @ref hover_left */
11685         Eina_Bool       hover_bottom : 1; /**< Hint indicating content fits
11686                                                below the hover. See @ref
11687                                                hover_left */
11688      };
11689    /**
11690     * Add a new Anchorview object
11691     *
11692     * @param parent The parent object
11693     * @return The new object or NULL if it cannot be created
11694     */
11695    EAPI Evas_Object *elm_anchorview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11696    /**
11697     * Set the text to show in the anchorview
11698     *
11699     * Sets the text of the anchorview to @p text. This text can include markup
11700     * format tags, including <c>\<a href=anchorname\></c> to begin a segment of
11701     * text that will be specially styled and react to click events, ended with
11702     * either of \</a\> or \</\>. When clicked, the anchor will emit an
11703     * "anchor,clicked" signal that you can attach a callback to with
11704     * evas_object_smart_callback_add(). The name of the anchor given in the
11705     * event info struct will be the one set in the href attribute, in this
11706     * case, anchorname.
11707     *
11708     * Other markup can be used to style the text in different ways, but it's
11709     * up to the style defined in the theme which tags do what.
11710     * @deprecated use elm_object_text_set() instead.
11711     */
11712    EINA_DEPRECATED EAPI void         elm_anchorview_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
11713    /**
11714     * Get the markup text set for the anchorview
11715     *
11716     * Retrieves the text set on the anchorview, with markup tags included.
11717     *
11718     * @param obj The anchorview object
11719     * @return The markup text set or @c NULL if nothing was set or an error
11720     * occurred
11721     * @deprecated use elm_object_text_set() instead.
11722     */
11723    EINA_DEPRECATED EAPI const char  *elm_anchorview_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11724    /**
11725     * Set the parent of the hover popup
11726     *
11727     * Sets the parent object to use by the hover created by the anchorview
11728     * when an anchor is clicked. See @ref Hover for more details on this.
11729     * If no parent is set, the same anchorview object will be used.
11730     *
11731     * @param obj The anchorview object
11732     * @param parent The object to use as parent for the hover
11733     */
11734    EAPI void         elm_anchorview_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
11735    /**
11736     * Get the parent of the hover popup
11737     *
11738     * Get the object used as parent for the hover created by the anchorview
11739     * widget. See @ref Hover for more details on this.
11740     *
11741     * @param obj The anchorview object
11742     * @return The object used as parent for the hover, NULL if none is set.
11743     */
11744    EAPI Evas_Object *elm_anchorview_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11745    /**
11746     * Set the style that the hover should use
11747     *
11748     * When creating the popup hover, anchorview will request that it's
11749     * themed according to @p style.
11750     *
11751     * @param obj The anchorview object
11752     * @param style The style to use for the underlying hover
11753     *
11754     * @see elm_object_style_set()
11755     */
11756    EAPI void         elm_anchorview_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
11757    /**
11758     * Get the style that the hover should use
11759     *
11760     * Get the style the hover created by anchorview will use.
11761     *
11762     * @param obj The anchorview object
11763     * @return The style to use by the hover. NULL means the default is used.
11764     *
11765     * @see elm_object_style_set()
11766     */
11767    EAPI const char  *elm_anchorview_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11768    /**
11769     * Ends the hover popup in the anchorview
11770     *
11771     * When an anchor is clicked, the anchorview widget will create a hover
11772     * object to use as a popup with user provided content. This function
11773     * terminates this popup, returning the anchorview to its normal state.
11774     *
11775     * @param obj The anchorview object
11776     */
11777    EAPI void         elm_anchorview_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
11778    /**
11779     * Set bouncing behaviour when the scrolled content reaches an edge
11780     *
11781     * Tell the internal scroller object whether it should bounce or not
11782     * when it reaches the respective edges for each axis.
11783     *
11784     * @param obj The anchorview object
11785     * @param h_bounce Whether to bounce or not in the horizontal axis
11786     * @param v_bounce Whether to bounce or not in the vertical axis
11787     *
11788     * @see elm_scroller_bounce_set()
11789     */
11790    EAPI void         elm_anchorview_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
11791    /**
11792     * Get the set bouncing behaviour of the internal scroller
11793     *
11794     * Get whether the internal scroller should bounce when the edge of each
11795     * axis is reached scrolling.
11796     *
11797     * @param obj The anchorview object
11798     * @param h_bounce Pointer where to store the bounce state of the horizontal
11799     *                 axis
11800     * @param v_bounce Pointer where to store the bounce state of the vertical
11801     *                 axis
11802     *
11803     * @see elm_scroller_bounce_get()
11804     */
11805    EAPI void         elm_anchorview_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
11806    /**
11807     * Appends a custom item provider to the given anchorview
11808     *
11809     * Appends the given function to the list of items providers. This list is
11810     * called, one function at a time, with the given @p data pointer, the
11811     * anchorview object and, in the @p item parameter, the item name as
11812     * referenced in its href string. Following functions in the list will be
11813     * called in order until one of them returns something different to NULL,
11814     * which should be an Evas_Object which will be used in place of the item
11815     * element.
11816     *
11817     * Items in the markup text take the form \<item relsize=16x16 vsize=full
11818     * href=item/name\>\</item\>
11819     *
11820     * @param obj The anchorview object
11821     * @param func The function to add to the list of providers
11822     * @param data User data that will be passed to the callback function
11823     *
11824     * @see elm_entry_item_provider_append()
11825     */
11826    EAPI void         elm_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);
11827    /**
11828     * Prepend a custom item provider to the given anchorview
11829     *
11830     * Like elm_anchorview_item_provider_append(), but it adds the function
11831     * @p func to the beginning of the list, instead of the end.
11832     *
11833     * @param obj The anchorview object
11834     * @param func The function to add to the list of providers
11835     * @param data User data that will be passed to the callback function
11836     */
11837    EAPI void         elm_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);
11838    /**
11839     * Remove a custom item provider from the list of the given anchorview
11840     *
11841     * Removes the function and data pairing that matches @p func and @p data.
11842     * That is, unless the same function and same user data are given, the
11843     * function will not be removed from the list. This allows us to add the
11844     * same callback several times, with different @p data pointers and be
11845     * able to remove them later without conflicts.
11846     *
11847     * @param obj The anchorview object
11848     * @param func The function to remove from the list
11849     * @param data The data matching the function to remove from the list
11850     */
11851    EAPI void         elm_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);
11852    /**
11853     * @}
11854     */
11855
11856    /* anchorblock */
11857    /**
11858     * @defgroup Anchorblock Anchorblock
11859     *
11860     * @image html img/widget/anchorblock/preview-00.png
11861     * @image latex img/widget/anchorblock/preview-00.eps
11862     *
11863     * Anchorblock is for displaying text that contains markup with anchors
11864     * like <c>\<a href=1234\>something\</\></c> in it.
11865     *
11866     * Besides being styled differently, the anchorblock widget provides the
11867     * necessary functionality so that clicking on these anchors brings up a
11868     * popup with user defined content such as "call", "add to contacts" or
11869     * "open web page". This popup is provided using the @ref Hover widget.
11870     *
11871     * This widget emits the following signals:
11872     * @li "anchor,clicked": will be called when an anchor is clicked. The
11873     * @p event_info parameter on the callback will be a pointer of type
11874     * ::Elm_Entry_Anchorblock_Info.
11875     *
11876     * @see Anchorview
11877     * @see Entry
11878     * @see Hover
11879     *
11880     * Since examples are usually better than plain words, we might as well
11881     * try @ref tutorial_anchorblock_example "one".
11882     */
11883    /**
11884     * @addtogroup Anchorblock
11885     * @{
11886     */
11887    /**
11888     * @typedef Elm_Entry_Anchorblock_Info
11889     *
11890     * The info sent in the callback for "anchor,clicked" signals emitted by
11891     * the Anchorblock widget.
11892     */
11893    typedef struct _Elm_Entry_Anchorblock_Info Elm_Entry_Anchorblock_Info;
11894    /**
11895     * @struct _Elm_Entry_Anchorblock_Info
11896     *
11897     * The info sent in the callback for "anchor,clicked" signals emitted by
11898     * the Anchorblock widget.
11899     */
11900    struct _Elm_Entry_Anchorblock_Info
11901      {
11902         const char     *name; /**< Name of the anchor, as indicated in its href
11903                                    attribute */
11904         int             button; /**< The mouse button used to click on it */
11905         Evas_Object    *hover; /**< The hover object to use for the popup */
11906         struct {
11907              Evas_Coord    x, y, w, h;
11908         } anchor, /**< Geometry selection of text used as anchor */
11909           hover_parent; /**< Geometry of the object used as parent by the
11910                              hover */
11911         Eina_Bool       hover_left : 1; /**< Hint indicating if there's space
11912                                              for content on the left side of
11913                                              the hover. Before calling the
11914                                              callback, the widget will make the
11915                                              necessary calculations to check
11916                                              which sides are fit to be set with
11917                                              content, based on the position the
11918                                              hover is activated and its distance
11919                                              to the edges of its parent object
11920                                              */
11921         Eina_Bool       hover_right : 1; /**< Hint indicating content fits on
11922                                               the right side of the hover.
11923                                               See @ref hover_left */
11924         Eina_Bool       hover_top : 1; /**< Hint indicating content fits on top
11925                                             of the hover. See @ref hover_left */
11926         Eina_Bool       hover_bottom : 1; /**< Hint indicating content fits
11927                                                below the hover. See @ref
11928                                                hover_left */
11929      };
11930    /**
11931     * Add a new Anchorblock object
11932     *
11933     * @param parent The parent object
11934     * @return The new object or NULL if it cannot be created
11935     */
11936    EAPI Evas_Object *elm_anchorblock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11937    /**
11938     * Set the text to show in the anchorblock
11939     *
11940     * Sets the text of the anchorblock to @p text. This text can include markup
11941     * format tags, including <c>\<a href=anchorname\></a></c> to begin a segment
11942     * of text that will be specially styled and react to click events, ended
11943     * with either of \</a\> or \</\>. When clicked, the anchor will emit an
11944     * "anchor,clicked" signal that you can attach a callback to with
11945     * evas_object_smart_callback_add(). The name of the anchor given in the
11946     * event info struct will be the one set in the href attribute, in this
11947     * case, anchorname.
11948     *
11949     * Other markup can be used to style the text in different ways, but it's
11950     * up to the style defined in the theme which tags do what.
11951     * @deprecated use elm_object_text_set() instead.
11952     */
11953    EINA_DEPRECATED EAPI void         elm_anchorblock_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
11954    /**
11955     * Get the markup text set for the anchorblock
11956     *
11957     * Retrieves the text set on the anchorblock, with markup tags included.
11958     *
11959     * @param obj The anchorblock object
11960     * @return The markup text set or @c NULL if nothing was set or an error
11961     * occurred
11962     * @deprecated use elm_object_text_set() instead.
11963     */
11964    EINA_DEPRECATED EAPI const char  *elm_anchorblock_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11965    /**
11966     * Set the parent of the hover popup
11967     *
11968     * Sets the parent object to use by the hover created by the anchorblock
11969     * when an anchor is clicked. See @ref Hover for more details on this.
11970     *
11971     * @param obj The anchorblock object
11972     * @param parent The object to use as parent for the hover
11973     */
11974    EAPI void         elm_anchorblock_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
11975    /**
11976     * Get the parent of the hover popup
11977     *
11978     * Get the object used as parent for the hover created by the anchorblock
11979     * widget. See @ref Hover for more details on this.
11980     * If no parent is set, the same anchorblock object will be used.
11981     *
11982     * @param obj The anchorblock object
11983     * @return The object used as parent for the hover, NULL if none is set.
11984     */
11985    EAPI Evas_Object *elm_anchorblock_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11986    /**
11987     * Set the style that the hover should use
11988     *
11989     * When creating the popup hover, anchorblock will request that it's
11990     * themed according to @p style.
11991     *
11992     * @param obj The anchorblock object
11993     * @param style The style to use for the underlying hover
11994     *
11995     * @see elm_object_style_set()
11996     */
11997    EAPI void         elm_anchorblock_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
11998    /**
11999     * Get the style that the hover should use
12000     *
12001     * Get the style, the hover created by anchorblock will use.
12002     *
12003     * @param obj The anchorblock object
12004     * @return The style to use by the hover. NULL means the default is used.
12005     *
12006     * @see elm_object_style_set()
12007     */
12008    EAPI const char  *elm_anchorblock_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12009    /**
12010     * Ends the hover popup in the anchorblock
12011     *
12012     * When an anchor is clicked, the anchorblock widget will create a hover
12013     * object to use as a popup with user provided content. This function
12014     * terminates this popup, returning the anchorblock to its normal state.
12015     *
12016     * @param obj The anchorblock object
12017     */
12018    EAPI void         elm_anchorblock_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
12019    /**
12020     * Appends a custom item provider to the given anchorblock
12021     *
12022     * Appends the given function to the list of items providers. This list is
12023     * called, one function at a time, with the given @p data pointer, the
12024     * anchorblock object and, in the @p item parameter, the item name as
12025     * referenced in its href string. Following functions in the list will be
12026     * called in order until one of them returns something different to NULL,
12027     * which should be an Evas_Object which will be used in place of the item
12028     * element.
12029     *
12030     * Items in the markup text take the form \<item relsize=16x16 vsize=full
12031     * href=item/name\>\</item\>
12032     *
12033     * @param obj The anchorblock object
12034     * @param func The function to add to the list of providers
12035     * @param data User data that will be passed to the callback function
12036     *
12037     * @see elm_entry_item_provider_append()
12038     */
12039    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);
12040    /**
12041     * Prepend a custom item provider to the given anchorblock
12042     *
12043     * Like elm_anchorblock_item_provider_append(), but it adds the function
12044     * @p func to the beginning of the list, instead of the end.
12045     *
12046     * @param obj The anchorblock object
12047     * @param func The function to add to the list of providers
12048     * @param data User data that will be passed to the callback function
12049     */
12050    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);
12051    /**
12052     * Remove a custom item provider from the list of the given anchorblock
12053     *
12054     * Removes the function and data pairing that matches @p func and @p data.
12055     * That is, unless the same function and same user data are given, the
12056     * function will not be removed from the list. This allows us to add the
12057     * same callback several times, with different @p data pointers and be
12058     * able to remove them later without conflicts.
12059     *
12060     * @param obj The anchorblock object
12061     * @param func The function to remove from the list
12062     * @param data The data matching the function to remove from the list
12063     */
12064    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);
12065    /**
12066     * @}
12067     */
12068
12069    /**
12070     * @defgroup Bubble Bubble
12071     *
12072     * @image html img/widget/bubble/preview-00.png
12073     * @image latex img/widget/bubble/preview-00.eps
12074     * @image html img/widget/bubble/preview-01.png
12075     * @image latex img/widget/bubble/preview-01.eps
12076     * @image html img/widget/bubble/preview-02.png
12077     * @image latex img/widget/bubble/preview-02.eps
12078     *
12079     * @brief The Bubble is a widget to show text similar to how speech is
12080     * represented in comics.
12081     *
12082     * The bubble widget contains 5 important visual elements:
12083     * @li The frame is a rectangle with rounded edjes and an "arrow".
12084     * @li The @p icon is an image to which the frame's arrow points to.
12085     * @li The @p label is a text which appears to the right of the icon if the
12086     * corner is "top_left" or "bottom_left" and is right aligned to the frame
12087     * otherwise.
12088     * @li The @p info is a text which appears to the right of the label. Info's
12089     * font is of a ligther color than label.
12090     * @li The @p content is an evas object that is shown inside the frame.
12091     *
12092     * The position of the arrow, icon, label and info depends on which corner is
12093     * selected. The four available corners are:
12094     * @li "top_left" - Default
12095     * @li "top_right"
12096     * @li "bottom_left"
12097     * @li "bottom_right"
12098     *
12099     * Signals that you can add callbacks for are:
12100     * @li "clicked" - This is called when a user has clicked the bubble.
12101     *
12102     * For an example of using a buble see @ref bubble_01_example_page "this".
12103     *
12104     * @{
12105     */
12106    /**
12107     * Add a new bubble to the parent
12108     *
12109     * @param parent The parent object
12110     * @return The new object or NULL if it cannot be created
12111     *
12112     * This function adds a text bubble to the given parent evas object.
12113     */
12114    EAPI Evas_Object *elm_bubble_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12115    /**
12116     * Set the label of the bubble
12117     *
12118     * @param obj The bubble object
12119     * @param label The string to set in the label
12120     *
12121     * This function sets the title of the bubble. Where this appears depends on
12122     * the selected corner.
12123     * @deprecated use elm_object_text_set() instead.
12124     */
12125    EINA_DEPRECATED EAPI void         elm_bubble_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
12126    /**
12127     * Get the label of the bubble
12128     *
12129     * @param obj The bubble object
12130     * @return The string of set in the label
12131     *
12132     * This function gets the title of the bubble.
12133     * @deprecated use elm_object_text_get() instead.
12134     */
12135    EINA_DEPRECATED EAPI const char  *elm_bubble_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12136    /**
12137     * Set the info of the bubble
12138     *
12139     * @param obj The bubble object
12140     * @param info The given info about the bubble
12141     *
12142     * This function sets the info of the bubble. Where this appears depends on
12143     * the selected corner.
12144     * @deprecated use elm_object_text_part_set() instead. (with "info" as the parameter).
12145     */
12146    EINA_DEPRECATED EAPI void         elm_bubble_info_set(Evas_Object *obj, const char *info) EINA_ARG_NONNULL(1);
12147    /**
12148     * Get the info of the bubble
12149     *
12150     * @param obj The bubble object
12151     *
12152     * @return The "info" string of the bubble
12153     *
12154     * This function gets the info text.
12155     * @deprecated use elm_object_text_part_get() instead. (with "info" as the parameter).
12156     */
12157    EINA_DEPRECATED EAPI const char  *elm_bubble_info_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12158    /**
12159     * Set the content to be shown in the bubble
12160     *
12161     * Once the content object is set, a previously set one will be deleted.
12162     * If you want to keep the old content object, use the
12163     * elm_bubble_content_unset() function.
12164     *
12165     * @param obj The bubble object
12166     * @param content The given content of the bubble
12167     *
12168     * This function sets the content shown on the middle of the bubble.
12169     */
12170    EAPI void         elm_bubble_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
12171    /**
12172     * Get the content shown in the bubble
12173     *
12174     * Return the content object which is set for this widget.
12175     *
12176     * @param obj The bubble object
12177     * @return The content that is being used
12178     */
12179    EAPI Evas_Object *elm_bubble_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12180    /**
12181     * Unset the content shown in the bubble
12182     *
12183     * Unparent and return the content object which was set for this widget.
12184     *
12185     * @param obj The bubble object
12186     * @return The content that was being used
12187     */
12188    EAPI Evas_Object *elm_bubble_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12189    /**
12190     * Set the icon of the bubble
12191     *
12192     * Once the icon object is set, a previously set one will be deleted.
12193     * If you want to keep the old content object, use the
12194     * elm_icon_content_unset() function.
12195     *
12196     * @param obj The bubble object
12197     * @param icon The given icon for the bubble
12198     */
12199    EAPI void         elm_bubble_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
12200    /**
12201     * Get the icon of the bubble
12202     *
12203     * @param obj The bubble object
12204     * @return The icon for the bubble
12205     *
12206     * This function gets the icon shown on the top left of bubble.
12207     */
12208    EAPI Evas_Object *elm_bubble_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12209    /**
12210     * Unset the icon of the bubble
12211     *
12212     * Unparent and return the icon object which was set for this widget.
12213     *
12214     * @param obj The bubble object
12215     * @return The icon that was being used
12216     */
12217    EAPI Evas_Object *elm_bubble_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12218    /**
12219     * Set the corner of the bubble
12220     *
12221     * @param obj The bubble object.
12222     * @param corner The given corner for the bubble.
12223     *
12224     * This function sets the corner of the bubble. The corner will be used to
12225     * determine where the arrow in the frame points to and where label, icon and
12226     * info are shown.
12227     *
12228     * Possible values for corner are:
12229     * @li "top_left" - Default
12230     * @li "top_right"
12231     * @li "bottom_left"
12232     * @li "bottom_right"
12233     */
12234    EAPI void         elm_bubble_corner_set(Evas_Object *obj, const char *corner) EINA_ARG_NONNULL(1, 2);
12235    /**
12236     * Get the corner of the bubble
12237     *
12238     * @param obj The bubble object.
12239     * @return The given corner for the bubble.
12240     *
12241     * This function gets the selected corner of the bubble.
12242     */
12243    EAPI const char  *elm_bubble_corner_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12244
12245    EINA_DEPRECATED EAPI void         elm_bubble_sweep_layout_set(Evas_Object *obj, Evas_Object *sweep) EINA_ARG_NONNULL(1);
12246    EINA_DEPRECATED EAPI Evas_Object *elm_bubble_sweep_layout_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12247
12248    /**
12249     * @}
12250     */
12251
12252    /**
12253     * @defgroup Photo Photo
12254     *
12255     * For displaying the photo of a person (contact). Simple, yet
12256     * with a very specific purpose.
12257     *
12258     * Signals that you can add callbacks for are:
12259     *
12260     * "clicked" - This is called when a user has clicked the photo
12261     * "drag,start" - Someone started dragging the image out of the object
12262     * "drag,end" - Dragged item was dropped (somewhere)
12263     *
12264     * @{
12265     */
12266
12267    /**
12268     * Add a new photo to the parent
12269     *
12270     * @param parent The parent object
12271     * @return The new object or NULL if it cannot be created
12272     *
12273     * @ingroup Photo
12274     */
12275    EAPI Evas_Object *elm_photo_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12276
12277    /**
12278     * Set the file that will be used as photo
12279     *
12280     * @param obj The photo object
12281     * @param file The path to file that will be used as photo
12282     *
12283     * @return (1 = success, 0 = error)
12284     *
12285     * @ingroup Photo
12286     */
12287    EAPI Eina_Bool    elm_photo_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
12288
12289    /**
12290     * Set the size that will be used on the photo
12291     *
12292     * @param obj The photo object
12293     * @param size The size that the photo will be
12294     *
12295     * @ingroup Photo
12296     */
12297    EAPI void         elm_photo_size_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
12298
12299    /**
12300     * Set if the photo should be completely visible or not.
12301     *
12302     * @param obj The photo object
12303     * @param fill if true the photo will be completely visible
12304     *
12305     * @ingroup Photo
12306     */
12307    EAPI void         elm_photo_fill_inside_set(Evas_Object *obj, Eina_Bool fill) EINA_ARG_NONNULL(1);
12308
12309    /**
12310     * Set editability of the photo.
12311     *
12312     * An editable photo can be dragged to or from, and can be cut or
12313     * pasted too.  Note that pasting an image or dropping an item on
12314     * the image will delete the existing content.
12315     *
12316     * @param obj The photo object.
12317     * @param set To set of clear editablity.
12318     */
12319    EAPI void         elm_photo_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
12320
12321    /**
12322     * @}
12323     */
12324
12325    /* gesture layer */
12326    /**
12327     * @defgroup Elm_Gesture_Layer Gesture Layer
12328     * Gesture Layer Usage:
12329     *
12330     * Use Gesture Layer to detect gestures.
12331     * The advantage is that you don't have to implement
12332     * gesture detection, just set callbacks of gesture state.
12333     * By using gesture layer we make standard interface.
12334     *
12335     * In order to use Gesture Layer you start with @ref elm_gesture_layer_add
12336     * with a parent object parameter.
12337     * Next 'activate' gesture layer with a @ref elm_gesture_layer_attach
12338     * call. Usually with same object as target (2nd parameter).
12339     *
12340     * Now you need to tell gesture layer what gestures you follow.
12341     * This is done with @ref elm_gesture_layer_cb_set call.
12342     * By setting the callback you actually saying to gesture layer:
12343     * I would like to know when the gesture @ref Elm_Gesture_Types
12344     * switches to state @ref Elm_Gesture_State.
12345     *
12346     * Next, you need to implement the actual action that follows the input
12347     * in your callback.
12348     *
12349     * Note that if you like to stop being reported about a gesture, just set
12350     * all callbacks referring this gesture to NULL.
12351     * (again with @ref elm_gesture_layer_cb_set)
12352     *
12353     * The information reported by gesture layer to your callback is depending
12354     * on @ref Elm_Gesture_Types:
12355     * @ref Elm_Gesture_Taps_Info is the info reported for tap gestures:
12356     * @ref ELM_GESTURE_N_TAPS, @ref ELM_GESTURE_N_LONG_TAPS,
12357     * @ref ELM_GESTURE_N_DOUBLE_TAPS, @ref ELM_GESTURE_N_TRIPLE_TAPS.
12358     *
12359     * @ref Elm_Gesture_Momentum_Info is info reported for momentum gestures:
12360     * @ref ELM_GESTURE_MOMENTUM.
12361     *
12362     * @ref Elm_Gesture_Line_Info is the info reported for line gestures:
12363     * (this also contains @ref Elm_Gesture_Momentum_Info internal structure)
12364     * @ref ELM_GESTURE_N_LINES, @ref ELM_GESTURE_N_FLICKS.
12365     * Note that we consider a flick as a line-gesture that should be completed
12366     * in flick-time-limit as defined in @ref Config.
12367     *
12368     * @ref Elm_Gesture_Zoom_Info is the info reported for @ref ELM_GESTURE_ZOOM gesture.
12369     *
12370     * @ref Elm_Gesture_Rotate_Info is the info reported for @ref ELM_GESTURE_ROTATE gesture.
12371     *
12372     *
12373     * Gesture Layer Tweaks:
12374     *
12375     * Note that line, flick, gestures can start without the need to remove fingers from surface.
12376     * When user fingers rests on same-spot gesture is ended and starts again when fingers moved.
12377     *
12378     * Setting glayer_continues_enable to false in @ref Config will change this behavior
12379     * so gesture starts when user touches (a *DOWN event) touch-surface
12380     * and ends when no fingers touches surface (a *UP event).
12381     */
12382
12383    /**
12384     * @enum _Elm_Gesture_Types
12385     * Enum of supported gesture types.
12386     * @ingroup Elm_Gesture_Layer
12387     */
12388    enum _Elm_Gesture_Types
12389      {
12390         ELM_GESTURE_FIRST = 0,
12391
12392         ELM_GESTURE_N_TAPS, /**< N fingers single taps */
12393         ELM_GESTURE_N_LONG_TAPS, /**< N fingers single long-taps */
12394         ELM_GESTURE_N_DOUBLE_TAPS, /**< N fingers double-single taps */
12395         ELM_GESTURE_N_TRIPLE_TAPS, /**< N fingers triple-single taps */
12396
12397         ELM_GESTURE_MOMENTUM, /**< Reports momentum in the dircetion of move */
12398
12399         ELM_GESTURE_N_LINES, /**< N fingers line gesture */
12400         ELM_GESTURE_N_FLICKS, /**< N fingers flick gesture */
12401
12402         ELM_GESTURE_ZOOM, /**< Zoom */
12403         ELM_GESTURE_ROTATE, /**< Rotate */
12404
12405         ELM_GESTURE_LAST
12406      };
12407
12408    /**
12409     * @typedef Elm_Gesture_Types
12410     * gesture types enum
12411     * @ingroup Elm_Gesture_Layer
12412     */
12413    typedef enum _Elm_Gesture_Types Elm_Gesture_Types;
12414
12415    /**
12416     * @enum _Elm_Gesture_State
12417     * Enum of gesture states.
12418     * @ingroup Elm_Gesture_Layer
12419     */
12420    enum _Elm_Gesture_State
12421      {
12422         ELM_GESTURE_STATE_UNDEFINED = -1, /**< Gesture not STARTed */
12423         ELM_GESTURE_STATE_START,          /**< Gesture STARTed     */
12424         ELM_GESTURE_STATE_MOVE,           /**< Gesture is ongoing  */
12425         ELM_GESTURE_STATE_END,            /**< Gesture completed   */
12426         ELM_GESTURE_STATE_ABORT    /**< Onging gesture was ABORTed */
12427      };
12428
12429    /**
12430     * @typedef Elm_Gesture_State
12431     * gesture states enum
12432     * @ingroup Elm_Gesture_Layer
12433     */
12434    typedef enum _Elm_Gesture_State Elm_Gesture_State;
12435
12436    /**
12437     * @struct _Elm_Gesture_Taps_Info
12438     * Struct holds taps info for user
12439     * @ingroup Elm_Gesture_Layer
12440     */
12441    struct _Elm_Gesture_Taps_Info
12442      {
12443         Evas_Coord x, y;         /**< Holds center point between fingers */
12444         unsigned int n;          /**< Number of fingers tapped           */
12445         unsigned int timestamp;  /**< event timestamp       */
12446      };
12447
12448    /**
12449     * @typedef Elm_Gesture_Taps_Info
12450     * holds taps info for user
12451     * @ingroup Elm_Gesture_Layer
12452     */
12453    typedef struct _Elm_Gesture_Taps_Info Elm_Gesture_Taps_Info;
12454
12455    /**
12456     * @struct _Elm_Gesture_Momentum_Info
12457     * Struct holds momentum info for user
12458     * x1 and y1 are not necessarily in sync
12459     * x1 holds x value of x direction starting point
12460     * and same holds for y1.
12461     * This is noticeable when doing V-shape movement
12462     * @ingroup Elm_Gesture_Layer
12463     */
12464    struct _Elm_Gesture_Momentum_Info
12465      {  /* Report line ends, timestamps, and momentum computed        */
12466         Evas_Coord x1; /**< Final-swipe direction starting point on X */
12467         Evas_Coord y1; /**< Final-swipe direction starting point on Y */
12468         Evas_Coord x2; /**< Final-swipe direction ending point on X   */
12469         Evas_Coord y2; /**< Final-swipe direction ending point on Y   */
12470
12471         unsigned int tx; /**< Timestamp of start of final x-swipe */
12472         unsigned int ty; /**< Timestamp of start of final y-swipe */
12473
12474         Evas_Coord mx; /**< Momentum on X */
12475         Evas_Coord my; /**< Momentum on Y */
12476
12477         unsigned int n;  /**< Number of fingers */
12478      };
12479
12480    /**
12481     * @typedef Elm_Gesture_Momentum_Info
12482     * holds momentum info for user
12483     * @ingroup Elm_Gesture_Layer
12484     */
12485     typedef struct _Elm_Gesture_Momentum_Info Elm_Gesture_Momentum_Info;
12486
12487    /**
12488     * @struct _Elm_Gesture_Line_Info
12489     * Struct holds line info for user
12490     * @ingroup Elm_Gesture_Layer
12491     */
12492    struct _Elm_Gesture_Line_Info
12493      {  /* Report line ends, timestamps, and momentum computed      */
12494         Elm_Gesture_Momentum_Info momentum; /**< Line momentum info */
12495         /* FIXME should be radians, bot degrees */
12496         double angle;              /**< Angle (direction) of lines  */
12497      };
12498
12499    /**
12500     * @typedef Elm_Gesture_Line_Info
12501     * Holds line info for user
12502     * @ingroup Elm_Gesture_Layer
12503     */
12504     typedef struct  _Elm_Gesture_Line_Info Elm_Gesture_Line_Info;
12505
12506    /**
12507     * @struct _Elm_Gesture_Zoom_Info
12508     * Struct holds zoom info for user
12509     * @ingroup Elm_Gesture_Layer
12510     */
12511    struct _Elm_Gesture_Zoom_Info
12512      {
12513         Evas_Coord x, y;       /**< Holds zoom center point reported to user  */
12514         Evas_Coord radius; /**< Holds radius between fingers reported to user */
12515         double zoom;            /**< Zoom value: 1.0 means no zoom             */
12516         double momentum;        /**< Zoom momentum: zoom growth per second (NOT YET SUPPORTED) */
12517      };
12518
12519    /**
12520     * @typedef Elm_Gesture_Zoom_Info
12521     * Holds zoom info for user
12522     * @ingroup Elm_Gesture_Layer
12523     */
12524    typedef struct _Elm_Gesture_Zoom_Info Elm_Gesture_Zoom_Info;
12525
12526    /**
12527     * @struct _Elm_Gesture_Rotate_Info
12528     * Struct holds rotation info for user
12529     * @ingroup Elm_Gesture_Layer
12530     */
12531    struct _Elm_Gesture_Rotate_Info
12532      {
12533         Evas_Coord x, y;   /**< Holds zoom center point reported to user      */
12534         Evas_Coord radius; /**< Holds radius between fingers reported to user */
12535         double base_angle; /**< Holds start-angle */
12536         double angle;      /**< Rotation value: 0.0 means no rotation         */
12537         double momentum;   /**< Rotation momentum: rotation done per second (NOT YET SUPPORTED) */
12538      };
12539
12540    /**
12541     * @typedef Elm_Gesture_Rotate_Info
12542     * Holds rotation info for user
12543     * @ingroup Elm_Gesture_Layer
12544     */
12545    typedef struct _Elm_Gesture_Rotate_Info Elm_Gesture_Rotate_Info;
12546
12547    /**
12548     * @typedef Elm_Gesture_Event_Cb
12549     * User callback used to stream gesture info from gesture layer
12550     * @param data user data
12551     * @param event_info gesture report info
12552     * Returns a flag field to be applied on the causing event.
12553     * You should probably return EVAS_EVENT_FLAG_ON_HOLD if your widget acted
12554     * upon the event, in an irreversible way.
12555     *
12556     * @ingroup Elm_Gesture_Layer
12557     */
12558    typedef Evas_Event_Flags (*Elm_Gesture_Event_Cb) (void *data, void *event_info);
12559
12560    /**
12561     * Use function to set callbacks to be notified about
12562     * change of state of gesture.
12563     * When a user registers a callback with this function
12564     * this means this gesture has to be tested.
12565     *
12566     * When ALL callbacks for a gesture are set to NULL
12567     * it means user isn't interested in gesture-state
12568     * and it will not be tested.
12569     *
12570     * @param obj Pointer to gesture-layer.
12571     * @param idx The gesture you would like to track its state.
12572     * @param cb callback function pointer.
12573     * @param cb_type what event this callback tracks: START, MOVE, END, ABORT.
12574     * @param data user info to be sent to callback (usually, Smart Data)
12575     *
12576     * @ingroup Elm_Gesture_Layer
12577     */
12578    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);
12579
12580    /**
12581     * Call this function to get repeat-events settings.
12582     *
12583     * @param obj Pointer to gesture-layer.
12584     *
12585     * @return repeat events settings.
12586     * @see elm_gesture_layer_hold_events_set()
12587     * @ingroup Elm_Gesture_Layer
12588     */
12589    EAPI Eina_Bool elm_gesture_layer_hold_events_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
12590
12591    /**
12592     * This function called in order to make gesture-layer repeat events.
12593     * Set this of you like to get the raw events only if gestures were not detected.
12594     * Clear this if you like gesture layer to fwd events as testing gestures.
12595     *
12596     * @param obj Pointer to gesture-layer.
12597     * @param r Repeat: TRUE/FALSE
12598     *
12599     * @ingroup Elm_Gesture_Layer
12600     */
12601    EAPI void elm_gesture_layer_hold_events_set(Evas_Object *obj, Eina_Bool r) EINA_ARG_NONNULL(1);
12602
12603    /**
12604     * This function sets step-value for zoom action.
12605     * Set step to any positive value.
12606     * Cancel step setting by setting to 0.0
12607     *
12608     * @param obj Pointer to gesture-layer.
12609     * @param s new zoom step value.
12610     *
12611     * @ingroup Elm_Gesture_Layer
12612     */
12613    EAPI void elm_gesture_layer_zoom_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
12614
12615    /**
12616     * This function sets step-value for rotate action.
12617     * Set step to any positive value.
12618     * Cancel step setting by setting to 0.0
12619     *
12620     * @param obj Pointer to gesture-layer.
12621     * @param s new roatate step value.
12622     *
12623     * @ingroup Elm_Gesture_Layer
12624     */
12625    EAPI void elm_gesture_layer_rotate_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
12626
12627    /**
12628     * This function called to attach gesture-layer to an Evas_Object.
12629     * @param obj Pointer to gesture-layer.
12630     * @param t Pointer to underlying object (AKA Target)
12631     *
12632     * @return TRUE, FALSE on success, failure.
12633     *
12634     * @ingroup Elm_Gesture_Layer
12635     */
12636    EAPI Eina_Bool elm_gesture_layer_attach(Evas_Object *obj, Evas_Object *t) EINA_ARG_NONNULL(1, 2);
12637
12638    /**
12639     * Call this function to construct a new gesture-layer object.
12640     * This does not activate the gesture layer. You have to
12641     * call elm_gesture_layer_attach in order to 'activate' gesture-layer.
12642     *
12643     * @param parent the parent object.
12644     *
12645     * @return Pointer to new gesture-layer object.
12646     *
12647     * @ingroup Elm_Gesture_Layer
12648     */
12649    EAPI Evas_Object *elm_gesture_layer_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12650
12651    /**
12652     * @defgroup Thumb Thumb
12653     *
12654     * @image html img/widget/thumb/preview-00.png
12655     * @image latex img/widget/thumb/preview-00.eps
12656     *
12657     * A thumb object is used for displaying the thumbnail of an image or video.
12658     * You must have compiled Elementary with Ethumb_Client support and the DBus
12659     * service must be present and auto-activated in order to have thumbnails to
12660     * be generated.
12661     *
12662     * Once the thumbnail object becomes visible, it will check if there is a
12663     * previously generated thumbnail image for the file set on it. If not, it
12664     * will start generating this thumbnail.
12665     *
12666     * Different config settings will cause different thumbnails to be generated
12667     * even on the same file.
12668     *
12669     * Generated thumbnails are stored under @c $HOME/.thumbnails/. Check the
12670     * Ethumb documentation to change this path, and to see other configuration
12671     * options.
12672     *
12673     * Signals that you can add callbacks for are:
12674     *
12675     * - "clicked" - This is called when a user has clicked the thumb without dragging
12676     *             around.
12677     * - "clicked,double" - This is called when a user has double-clicked the thumb.
12678     * - "press" - This is called when a user has pressed down the thumb.
12679     * - "generate,start" - The thumbnail generation started.
12680     * - "generate,stop" - The generation process stopped.
12681     * - "generate,error" - The generation failed.
12682     * - "load,error" - The thumbnail image loading failed.
12683     *
12684     * available styles:
12685     * - default
12686     * - noframe
12687     *
12688     * An example of use of thumbnail:
12689     *
12690     * - @ref thumb_example_01
12691     */
12692
12693    /**
12694     * @addtogroup Thumb
12695     * @{
12696     */
12697
12698    /**
12699     * @enum _Elm_Thumb_Animation_Setting
12700     * @typedef Elm_Thumb_Animation_Setting
12701     *
12702     * Used to set if a video thumbnail is animating or not.
12703     *
12704     * @ingroup Thumb
12705     */
12706    typedef enum _Elm_Thumb_Animation_Setting
12707      {
12708         ELM_THUMB_ANIMATION_START = 0, /**< Play animation once */
12709         ELM_THUMB_ANIMATION_LOOP,      /**< Keep playing animation until stop is requested */
12710         ELM_THUMB_ANIMATION_STOP,      /**< Stop playing the animation */
12711         ELM_THUMB_ANIMATION_LAST
12712      } Elm_Thumb_Animation_Setting;
12713
12714    /**
12715     * Add a new thumb object to the parent.
12716     *
12717     * @param parent The parent object.
12718     * @return The new object or NULL if it cannot be created.
12719     *
12720     * @see elm_thumb_file_set()
12721     * @see elm_thumb_ethumb_client_get()
12722     *
12723     * @ingroup Thumb
12724     */
12725    EAPI Evas_Object                 *elm_thumb_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12726    /**
12727     * Reload thumbnail if it was generated before.
12728     *
12729     * @param obj The thumb object to reload
12730     *
12731     * This is useful if the ethumb client configuration changed, like its
12732     * size, aspect or any other property one set in the handle returned
12733     * by elm_thumb_ethumb_client_get().
12734     *
12735     * If the options didn't change, the thumbnail won't be generated again, but
12736     * the old one will still be used.
12737     *
12738     * @see elm_thumb_file_set()
12739     *
12740     * @ingroup Thumb
12741     */
12742    EAPI void                         elm_thumb_reload(Evas_Object *obj) EINA_ARG_NONNULL(1);
12743    /**
12744     * Set the file that will be used as thumbnail.
12745     *
12746     * @param obj The thumb object.
12747     * @param file The path to file that will be used as thumb.
12748     * @param key The key used in case of an EET file.
12749     *
12750     * The file can be an image or a video (in that case, acceptable extensions are:
12751     * avi, mp4, ogv, mov, mpg and wmv). To start the video animation, use the
12752     * function elm_thumb_animate().
12753     *
12754     * @see elm_thumb_file_get()
12755     * @see elm_thumb_reload()
12756     * @see elm_thumb_animate()
12757     *
12758     * @ingroup Thumb
12759     */
12760    EAPI void                         elm_thumb_file_set(Evas_Object *obj, const char *file, const char *key) EINA_ARG_NONNULL(1);
12761    /**
12762     * Get the image or video path and key used to generate the thumbnail.
12763     *
12764     * @param obj The thumb object.
12765     * @param file Pointer to filename.
12766     * @param key Pointer to key.
12767     *
12768     * @see elm_thumb_file_set()
12769     * @see elm_thumb_path_get()
12770     *
12771     * @ingroup Thumb
12772     */
12773    EAPI void                         elm_thumb_file_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
12774    /**
12775     * Get the path and key to the image or video generated by ethumb.
12776     *
12777     * One just need to make sure that the thumbnail was generated before getting
12778     * its path; otherwise, the path will be NULL. One way to do that is by asking
12779     * for the path when/after the "generate,stop" smart callback is called.
12780     *
12781     * @param obj The thumb object.
12782     * @param file Pointer to thumb path.
12783     * @param key Pointer to thumb key.
12784     *
12785     * @see elm_thumb_file_get()
12786     *
12787     * @ingroup Thumb
12788     */
12789    EAPI void                         elm_thumb_path_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
12790    /**
12791     * Set the animation state for the thumb object. If its content is an animated
12792     * video, you may start/stop the animation or tell it to play continuously and
12793     * looping.
12794     *
12795     * @param obj The thumb object.
12796     * @param setting The animation setting.
12797     *
12798     * @see elm_thumb_file_set()
12799     *
12800     * @ingroup Thumb
12801     */
12802    EAPI void                         elm_thumb_animate_set(Evas_Object *obj, Elm_Thumb_Animation_Setting s) EINA_ARG_NONNULL(1);
12803    /**
12804     * Get the animation state for the thumb object.
12805     *
12806     * @param obj The thumb object.
12807     * @return getting The animation setting or @c ELM_THUMB_ANIMATION_LAST,
12808     * on errors.
12809     *
12810     * @see elm_thumb_animate_set()
12811     *
12812     * @ingroup Thumb
12813     */
12814    EAPI Elm_Thumb_Animation_Setting  elm_thumb_animate_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12815    /**
12816     * Get the ethumb_client handle so custom configuration can be made.
12817     *
12818     * @return Ethumb_Client instance or NULL.
12819     *
12820     * This must be called before the objects are created to be sure no object is
12821     * visible and no generation started.
12822     *
12823     * Example of usage:
12824     *
12825     * @code
12826     * #include <Elementary.h>
12827     * #ifndef ELM_LIB_QUICKLAUNCH
12828     * EAPI_MAIN int
12829     * elm_main(int argc, char **argv)
12830     * {
12831     *    Ethumb_Client *client;
12832     *
12833     *    elm_need_ethumb();
12834     *
12835     *    // ... your code
12836     *
12837     *    client = elm_thumb_ethumb_client_get();
12838     *    if (!client)
12839     *      {
12840     *         ERR("could not get ethumb_client");
12841     *         return 1;
12842     *      }
12843     *    ethumb_client_size_set(client, 100, 100);
12844     *    ethumb_client_crop_align_set(client, 0.5, 0.5);
12845     *    // ... your code
12846     *
12847     *    // Create elm_thumb objects here
12848     *
12849     *    elm_run();
12850     *    elm_shutdown();
12851     *    return 0;
12852     * }
12853     * #endif
12854     * ELM_MAIN()
12855     * @endcode
12856     *
12857     * @note There's only one client handle for Ethumb, so once a configuration
12858     * change is done to it, any other request for thumbnails (for any thumbnail
12859     * object) will use that configuration. Thus, this configuration is global.
12860     *
12861     * @ingroup Thumb
12862     */
12863    EAPI void                        *elm_thumb_ethumb_client_get(void);
12864    /**
12865     * Get the ethumb_client connection state.
12866     *
12867     * @return EINA_TRUE if the client is connected to the server or EINA_FALSE
12868     * otherwise.
12869     */
12870    EAPI Eina_Bool                    elm_thumb_ethumb_client_connected(void);
12871    /**
12872     * Make the thumbnail 'editable'.
12873     *
12874     * @param obj Thumb object.
12875     * @param set Turn on or off editability. Default is @c EINA_FALSE.
12876     *
12877     * This means the thumbnail is a valid drag target for drag and drop, and can be
12878     * cut or pasted too.
12879     *
12880     * @see elm_thumb_editable_get()
12881     *
12882     * @ingroup Thumb
12883     */
12884    EAPI Eina_Bool                    elm_thumb_editable_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
12885    EAPI Eina_Bool                    elm_thumb_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12886    /**
12887     * Make the thumbnail 'editable'.
12888     *
12889     * @param obj Thumb object.
12890     * @return Editability.
12891     *
12892     * This means the thumbnail is a valid drag target for drag and drop, and can be
12893     * cut or pasted too.
12894     *
12895     * @see elm_thumb_editable_set()
12896     *
12897     * @ingroup Thumb
12898     */
12899    EAPI Eina_Bool                    elm_thumb_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12900
12901    /**
12902     * @}
12903     */
12904
12905 #if 0
12906    /**
12907     * @defgroup Web Web
12908     *
12909     * @image html img/widget/web/preview-00.png
12910     * @image latex img/widget/web/preview-00.eps
12911     *
12912     * A web object is used for displaying web pages (HTML/CSS/JS)
12913     * using WebKit-EFL. You must have compiled Elementary with
12914     * ewebkit support.
12915     *
12916     * Signals that you can add callbacks for are:
12917     * @li "download,request": A file download has been requested. Event info is
12918     * a pointer to a Elm_Web_Download
12919     * @li "editorclient,contents,changed": Editor client's contents changed
12920     * @li "editorclient,selection,changed": Editor client's selection changed
12921     * @li "frame,created": A new frame was created. Event info is an
12922     * Evas_Object which can be handled with WebKit's ewk_frame API
12923     * @li "icon,received": An icon was received by the main frame
12924     * @li "inputmethod,changed": Input method changed. Event info is an
12925     * Eina_Bool indicating whether it's enabled or not
12926     * @li "js,windowobject,clear": JS window object has been cleared
12927     * @li "link,hover,in": Mouse cursor is hovering over a link. Event info
12928     * is a char *link[2], where the first string contains the URL the link
12929     * points to, and the second one the title of the link
12930     * @li "link,hover,out": Mouse cursor left the link
12931     * @li "load,document,finished": Loading of a document finished. Event info
12932     * is the frame that finished loading
12933     * @li "load,error": Load failed. Event info is a pointer to
12934     * Elm_Web_Frame_Load_Error
12935     * @li "load,finished": Load finished. Event info is NULL on success, on
12936     * error it's a pointer to Elm_Web_Frame_Load_Error
12937     * @li "load,newwindow,show": A new window was created and is ready to be
12938     * shown
12939     * @li "load,progress": Overall load progress. Event info is a pointer to
12940     * a double containing a value between 0.0 and 1.0
12941     * @li "load,provisional": Started provisional load
12942     * @li "load,started": Loading of a document started
12943     * @li "menubar,visible,get": Queries if the menubar is visible. Event info
12944     * is a pointer to Eina_Bool where the callback should set EINA_TRUE if
12945     * the menubar is visible, or EINA_FALSE in case it's not
12946     * @li "menubar,visible,set": Informs menubar visibility. Event info is
12947     * an Eina_Bool indicating the visibility
12948     * @li "popup,created": A dropdown widget was activated, requesting its
12949     * popup menu to be created. Event info is a pointer to Elm_Web_Menu
12950     * @li "popup,willdelete": The web object is ready to destroy the popup
12951     * object created. Event info is a pointer to Elm_Web_Menu
12952     * @li "ready": Page is fully loaded
12953     * @li "scrollbars,visible,get": Queries visibility of scrollbars. Event
12954     * info is a pointer to Eina_Bool where the visibility state should be set
12955     * @li "scrollbars,visible,set": Informs scrollbars visibility. Event info
12956     * is an Eina_Bool with the visibility state set
12957     * @li "statusbar,text,set": Text of the statusbar changed. Even info is
12958     * a string with the new text
12959     * @li "statusbar,visible,get": Queries visibility of the status bar.
12960     * Event info is a pointer to Eina_Bool where the visibility state should be
12961     * set.
12962     * @li "statusbar,visible,set": Informs statusbar visibility. Event info is
12963     * an Eina_Bool with the visibility value
12964     * @li "title,changed": Title of the main frame changed. Event info is a
12965     * string with the new title
12966     * @li "toolbars,visible,get": Queries visibility of toolbars. Event info
12967     * is a pointer to Eina_Bool where the visibility state should be set
12968     * @li "toolbars,visible,set": Informs the visibility of toolbars. Event
12969     * info is an Eina_Bool with the visibility state
12970     * @li "tooltip,text,set": Show and set text of a tooltip. Event info is
12971     * a string with the text to show
12972     * @li "uri,changed": URI of the main frame changed. Event info is a string
12973     * with the new URI
12974     * @li "view,resized": The web object internal's view changed sized
12975     * @li "windows,close,request": A JavaScript request to close the current
12976     * window was requested
12977     * @li "zoom,animated,end": Animated zoom finished
12978     *
12979     * available styles:
12980     * - default
12981     *
12982     * An example of use of web:
12983     *
12984     * - @ref web_example_01 TBD
12985     */
12986
12987    /**
12988     * @addtogroup Web
12989     * @{
12990     */
12991
12992    /**
12993     * Structure used to report load errors.
12994     *
12995     * Load errors are reported as signal by elm_web. All the strings are
12996     * temporary references and should @b not be used after the signal
12997     * callback returns. If it's required, make copies with strdup() or
12998     * eina_stringshare_add() (they are not even guaranteed to be
12999     * stringshared, so must use eina_stringshare_add() and not
13000     * eina_stringshare_ref()).
13001     */
13002    typedef struct _Elm_Web_Frame_Load_Error Elm_Web_Frame_Load_Error;
13003    /**
13004     * Structure used to report load errors.
13005     *
13006     * Load errors are reported as signal by elm_web. All the strings are
13007     * temporary references and should @b not be used after the signal
13008     * callback returns. If it's required, make copies with strdup() or
13009     * eina_stringshare_add() (they are not even guaranteed to be
13010     * stringshared, so must use eina_stringshare_add() and not
13011     * eina_stringshare_ref()).
13012     */
13013    struct _Elm_Web_Frame_Load_Error
13014      {
13015         int code; /**< Numeric error code */
13016         Eina_Bool is_cancellation; /**< Error produced by cancelling a request */
13017         const char *domain; /**< Error domain name */
13018         const char *description; /**< Error description (already localized) */
13019         const char *failing_url; /**< The URL that failed to load */
13020         Evas_Object *frame; /**< Frame object that produced the error */
13021      };
13022
13023    /**
13024     * The possibles types that the items in a menu can be
13025     */
13026    typedef enum _Elm_Web_Menu_Item_Type
13027      {
13028         ELM_WEB_MENU_SEPARATOR,
13029         ELM_WEB_MENU_GROUP,
13030         ELM_WEB_MENU_OPTION
13031      } Elm_Web_Menu_Item_Type;
13032
13033    /**
13034     * Structure describing the items in a menu
13035     */
13036    typedef struct _Elm_Web_Menu_Item Elm_Web_Menu_Item;
13037    /**
13038     * Structure describing the items in a menu
13039     */
13040    struct _Elm_Web_Menu_Item
13041      {
13042         const char *text; /**< The text for the item */
13043         Elm_Web_Menu_Item_Type type; /**< The type of the item */
13044      };
13045
13046    /**
13047     * Structure describing the menu of a popup
13048     *
13049     * This structure will be passed as the @c event_info for the "popup,create"
13050     * signal, which is emitted when a dropdown menu is opened. Users wanting
13051     * to handle these popups by themselves should listen to this signal and
13052     * set the @c handled property of the struct to @c EINA_TRUE. Leaving this
13053     * property as @c EINA_FALSE means that the user will not handle the popup
13054     * and the default implementation will be used.
13055     *
13056     * When the popup is ready to be dismissed, a "popup,willdelete" signal
13057     * will be emitted to notify the user that it can destroy any objects and
13058     * free all data related to it.
13059     *
13060     * @see elm_web_popup_selected_set()
13061     * @see elm_web_popup_destroy()
13062     */
13063    typedef struct _Elm_Web_Menu Elm_Web_Menu;
13064    /**
13065     * Structure describing the menu of a popup
13066     *
13067     * This structure will be passed as the @c event_info for the "popup,create"
13068     * signal, which is emitted when a dropdown menu is opened. Users wanting
13069     * to handle these popups by themselves should listen to this signal and
13070     * set the @c handled property of the struct to @c EINA_TRUE. Leaving this
13071     * property as @c EINA_FALSE means that the user will not handle the popup
13072     * and the default implementation will be used.
13073     *
13074     * When the popup is ready to be dismissed, a "popup,willdelete" signal
13075     * will be emitted to notify the user that it can destroy any objects and
13076     * free all data related to it.
13077     *
13078     * @see elm_web_popup_selected_set()
13079     * @see elm_web_popup_destroy()
13080     */
13081    struct _Elm_Web_Menu
13082      {
13083         Eina_List *items; /**< List of #Elm_Web_Menu_Item */
13084         int x; /**< The X position of the popup, relative to the elm_web object */
13085         int y; /**< The Y position of the popup, relative to the elm_web object */
13086         int width; /**< Width of the popup menu */
13087         int height; /**< Height of the popup menu */
13088
13089         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. */
13090      };
13091
13092    typedef struct _Elm_Web_Download Elm_Web_Download;
13093    struct _Elm_Web_Download
13094      {
13095         const char *url;
13096      };
13097
13098    /**
13099     * Types of zoom available.
13100     */
13101    typedef enum _Elm_Web_Zoom_Mode
13102      {
13103         ELM_WEB_ZOOM_MODE_MANUAL = 0, /**< Zoom controled normally by elm_web_zoom_set */
13104         ELM_WEB_ZOOM_MODE_AUTO_FIT, /**< Zoom until content fits in web object */
13105         ELM_WEB_ZOOM_MODE_AUTO_FILL, /**< Zoom until content fills web object */
13106         ELM_WEB_ZOOM_MODE_LAST
13107      } Elm_Web_Zoom_Mode;
13108    /**
13109     * Opaque handler containing the features (such as statusbar, menubar, etc)
13110     * that are to be set on a newly requested window.
13111     */
13112    typedef struct _Elm_Web_Window_Features Elm_Web_Window_Features;
13113    /**
13114     * Callback type for the create_window hook.
13115     *
13116     * The function parameters are:
13117     * @li @p data User data pointer set when setting the hook function
13118     * @li @p obj The elm_web object requesting the new window
13119     * @li @p js Set to @c EINA_TRUE if the request was originated from
13120     * JavaScript. @c EINA_FALSE otherwise.
13121     * @li @p window_features A pointer of #Elm_Web_Window_Features indicating
13122     * the features requested for the new window.
13123     *
13124     * The returned value of the function should be the @c elm_web widget where
13125     * the request will be loaded. That is, if a new window or tab is created,
13126     * the elm_web widget in it should be returned, and @b NOT the window
13127     * object.
13128     * Returning @c NULL should cancel the request.
13129     *
13130     * @see elm_web_window_create_hook_set()
13131     */
13132    typedef Evas_Object *(*Elm_Web_Window_Open)(void *data, Evas_Object *obj, Eina_Bool js, const Elm_Web_Window_Features *window_features);
13133    /**
13134     * Callback type for the JS alert hook.
13135     *
13136     * The function parameters are:
13137     * @li @p data User data pointer set when setting the hook function
13138     * @li @p obj The elm_web object requesting the new window
13139     * @li @p message The message to show in the alert dialog
13140     *
13141     * The function should return the object representing the alert dialog.
13142     * Elm_Web will run a second main loop to handle the dialog and normal
13143     * flow of the application will be restored when the object is deleted, so
13144     * the user should handle the popup properly in order to delete the object
13145     * when the action is finished.
13146     * If the function returns @c NULL the popup will be ignored.
13147     *
13148     * @see elm_web_dialog_alert_hook_set()
13149     */
13150    typedef Evas_Object *(*Elm_Web_Dialog_Alert)(void *data, Evas_Object *obj, const char *message);
13151    /**
13152     * Callback type for the JS confirm hook.
13153     *
13154     * The function parameters are:
13155     * @li @p data User data pointer set when setting the hook function
13156     * @li @p obj The elm_web object requesting the new window
13157     * @li @p message The message to show in the confirm dialog
13158     * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
13159     * the user selected @c Ok, @c EINA_FALSE otherwise.
13160     *
13161     * The function should return the object representing the confirm dialog.
13162     * Elm_Web will run a second main loop to handle the dialog and normal
13163     * flow of the application will be restored when the object is deleted, so
13164     * the user should handle the popup properly in order to delete the object
13165     * when the action is finished.
13166     * If the function returns @c NULL the popup will be ignored.
13167     *
13168     * @see elm_web_dialog_confirm_hook_set()
13169     */
13170    typedef Evas_Object *(*Elm_Web_Dialog_Confirm)(void *data, Evas_Object *obj, const char *message, Eina_Bool *ret);
13171    /**
13172     * Callback type for the JS prompt hook.
13173     *
13174     * The function parameters are:
13175     * @li @p data User data pointer set when setting the hook function
13176     * @li @p obj The elm_web object requesting the new window
13177     * @li @p message The message to show in the prompt dialog
13178     * @li @p def_value The default value to present the user in the entry
13179     * @li @p value Pointer where to store the value given by the user. Must
13180     * be a malloc'ed string or @c NULL if the user cancelled the popup.
13181     * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
13182     * the user selected @c Ok, @c EINA_FALSE otherwise.
13183     *
13184     * The function should return the object representing the prompt dialog.
13185     * Elm_Web will run a second main loop to handle the dialog and normal
13186     * flow of the application will be restored when the object is deleted, so
13187     * the user should handle the popup properly in order to delete the object
13188     * when the action is finished.
13189     * If the function returns @c NULL the popup will be ignored.
13190     *
13191     * @see elm_web_dialog_prompt_hook_set()
13192     */
13193    typedef Evas_Object *(*Elm_Web_Dialog_Prompt)(void *data, Evas_Object *obj, const char *message, const char *def_value, char **value, Eina_Bool *ret);
13194    /**
13195     * Callback type for the JS file selector hook.
13196     *
13197     * The function parameters are:
13198     * @li @p data User data pointer set when setting the hook function
13199     * @li @p obj The elm_web object requesting the new window
13200     * @li @p allows_multiple @c EINA_TRUE if multiple files can be selected.
13201     * @li @p accept_types Mime types accepted
13202     * @li @p selected Pointer where to store the list of malloc'ed strings
13203     * containing the path to each file selected. Must be @c NULL if the file
13204     * dialog is cancelled
13205     * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
13206     * the user selected @c Ok, @c EINA_FALSE otherwise.
13207     *
13208     * The function should return the object representing the file selector
13209     * dialog.
13210     * Elm_Web will run a second main loop to handle the dialog and normal
13211     * flow of the application will be restored when the object is deleted, so
13212     * the user should handle the popup properly in order to delete the object
13213     * when the action is finished.
13214     * If the function returns @c NULL the popup will be ignored.
13215     *
13216     * @see elm_web_dialog_file selector_hook_set()
13217     */
13218    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);
13219    /**
13220     * Callback type for the JS console message hook.
13221     *
13222     * When a console message is added from JavaScript, any set function to the
13223     * console message hook will be called for the user to handle. There is no
13224     * default implementation of this hook.
13225     *
13226     * The function parameters are:
13227     * @li @p data User data pointer set when setting the hook function
13228     * @li @p obj The elm_web object that originated the message
13229     * @li @p message The message sent
13230     * @li @p line_number The line number
13231     * @li @p source_id Source id
13232     *
13233     * @see elm_web_console_message_hook_set()
13234     */
13235    typedef void (*Elm_Web_Console_Message)(void *data, Evas_Object *obj, const char *message, unsigned int line_number, const char *source_id);
13236    /**
13237     * Add a new web object to the parent.
13238     *
13239     * @param parent The parent object.
13240     * @return The new object or NULL if it cannot be created.
13241     *
13242     * @see elm_web_uri_set()
13243     * @see elm_web_webkit_view_get()
13244     */
13245    EAPI Evas_Object                 *elm_web_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13246
13247    /**
13248     * Get internal ewk_view object from web object.
13249     *
13250     * Elementary may not provide some low level features of EWebKit,
13251     * instead of cluttering the API with proxy methods we opted to
13252     * return the internal reference. Be careful using it as it may
13253     * interfere with elm_web behavior.
13254     *
13255     * @param obj The web object.
13256     * @return The internal ewk_view object or NULL if it does not
13257     *         exist. (Failure to create or Elementary compiled without
13258     *         ewebkit)
13259     *
13260     * @see elm_web_add()
13261     */
13262    EAPI Evas_Object                 *elm_web_webkit_view_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13263
13264    /**
13265     * Sets the function to call when a new window is requested
13266     *
13267     * This hook will be called when a request to create a new window is
13268     * issued from the web page loaded.
13269     * There is no default implementation for this feature, so leaving this
13270     * unset or passing @c NULL in @p func will prevent new windows from
13271     * opening.
13272     *
13273     * @param obj The web object where to set the hook function
13274     * @param func The hook function to be called when a window is requested
13275     * @param data User data
13276     */
13277    EAPI void                         elm_web_window_create_hook_set(Evas_Object *obj, Elm_Web_Window_Open func, void *data);
13278    /**
13279     * Sets the function to call when an alert dialog
13280     *
13281     * This hook will be called when a JavaScript alert dialog is requested.
13282     * If no function is set or @c NULL is passed in @p func, the default
13283     * implementation will take place.
13284     *
13285     * @param obj The web object where to set the hook function
13286     * @param func The callback function to be used
13287     * @param data User data
13288     *
13289     * @see elm_web_inwin_mode_set()
13290     */
13291    EAPI void                         elm_web_dialog_alert_hook_set(Evas_Object *obj, Elm_Web_Dialog_Alert func, void *data);
13292    /**
13293     * Sets the function to call when an confirm dialog
13294     *
13295     * This hook will be called when a JavaScript confirm dialog is requested.
13296     * If no function is set or @c NULL is passed in @p func, the default
13297     * implementation will take place.
13298     *
13299     * @param obj The web object where to set the hook function
13300     * @param func The callback function to be used
13301     * @param data User data
13302     *
13303     * @see elm_web_inwin_mode_set()
13304     */
13305    EAPI void                         elm_web_dialog_confirm_hook_set(Evas_Object *obj, Elm_Web_Dialog_Confirm func, void *data);
13306    /**
13307     * Sets the function to call when an prompt dialog
13308     *
13309     * This hook will be called when a JavaScript prompt dialog is requested.
13310     * If no function is set or @c NULL is passed in @p func, the default
13311     * implementation will take place.
13312     *
13313     * @param obj The web object where to set the hook function
13314     * @param func The callback function to be used
13315     * @param data User data
13316     *
13317     * @see elm_web_inwin_mode_set()
13318     */
13319    EAPI void                         elm_web_dialog_prompt_hook_set(Evas_Object *obj, Elm_Web_Dialog_Prompt func, void *data);
13320    /**
13321     * Sets the function to call when an file selector dialog
13322     *
13323     * This hook will be called when a JavaScript file selector dialog is
13324     * requested.
13325     * If no function is set or @c NULL is passed in @p func, the default
13326     * implementation will take place.
13327     *
13328     * @param obj The web object where to set the hook function
13329     * @param func The callback function to be used
13330     * @param data User data
13331     *
13332     * @see elm_web_inwin_mode_set()
13333     */
13334    EAPI void                         elm_web_dialog_file_selector_hook_set(Evas_Object *obj, Elm_Web_Dialog_File_Selector func, void *data);
13335    /**
13336     * Sets the function to call when a console message is emitted from JS
13337     *
13338     * This hook will be called when a console message is emitted from
13339     * JavaScript. There is no default implementation for this feature.
13340     *
13341     * @param obj The web object where to set the hook function
13342     * @param func The callback function to be used
13343     * @param data User data
13344     */
13345    EAPI void                         elm_web_console_message_hook_set(Evas_Object *obj, Elm_Web_Console_Message func, void *data);
13346    /**
13347     * Gets the status of the tab propagation
13348     *
13349     * @param obj The web object to query
13350     * @return EINA_TRUE if tab propagation is enabled, EINA_FALSE otherwise
13351     *
13352     * @see elm_web_tab_propagate_set()
13353     */
13354    EAPI Eina_Bool                    elm_web_tab_propagate_get(const Evas_Object *obj);
13355    /**
13356     * Sets whether to use tab propagation
13357     *
13358     * If tab propagation is enabled, whenever the user presses the Tab key,
13359     * Elementary will handle it and switch focus to the next widget.
13360     * The default value is disabled, where WebKit will handle the Tab key to
13361     * cycle focus though its internal objects, jumping to the next widget
13362     * only when that cycle ends.
13363     *
13364     * @param obj The web object
13365     * @param propagate Whether to propagate Tab keys to Elementary or not
13366     */
13367    EAPI void                         elm_web_tab_propagate_set(Evas_Object *obj, Eina_Bool propagate);
13368    /**
13369     * Sets the URI for the web object
13370     *
13371     * It must be a full URI, with resource included, in the form
13372     * http://www.enlightenment.org or file:///tmp/something.html
13373     *
13374     * @param obj The web object
13375     * @param uri The URI to set
13376     * @return EINA_TRUE if the URI could be, EINA_FALSE if an error occurred
13377     */
13378    EAPI Eina_Bool                    elm_web_uri_set(Evas_Object *obj, const char *uri);
13379    /**
13380     * Gets the current URI for the object
13381     *
13382     * The returned string must not be freed and is guaranteed to be
13383     * stringshared.
13384     *
13385     * @param obj The web object
13386     * @return A stringshared internal string with the current URI, or NULL on
13387     * failure
13388     */
13389    EAPI const char                  *elm_web_uri_get(const Evas_Object *obj);
13390    /**
13391     * Gets the current title
13392     *
13393     * The returned string must not be freed and is guaranteed to be
13394     * stringshared.
13395     *
13396     * @param obj The web object
13397     * @return A stringshared internal string with the current title, or NULL on
13398     * failure
13399     */
13400    EAPI const char                  *elm_web_title_get(const Evas_Object *obj);
13401    /**
13402     * Sets the background color to be used by the web object
13403     *
13404     * This is the color that will be used by default when the loaded page
13405     * does not set it's own. Color values are pre-multiplied.
13406     *
13407     * @param obj The web object
13408     * @param r Red component
13409     * @param g Green component
13410     * @param b Blue component
13411     * @param a Alpha component
13412     */
13413    EAPI void                         elm_web_bg_color_set(Evas_Object *obj, int r, int g, int b, int a);
13414    /**
13415     * Gets the background color to be used by the web object
13416     *
13417     * This is the color that will be used by default when the loaded page
13418     * does not set it's own. Color values are pre-multiplied.
13419     *
13420     * @param obj The web object
13421     * @param r Red component
13422     * @param g Green component
13423     * @param b Blue component
13424     * @param a Alpha component
13425     */
13426    EAPI void                         elm_web_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b, int *a);
13427    /**
13428     * Gets a copy of the currently selected text
13429     *
13430     * The string returned must be freed by the user when it's done with it.
13431     *
13432     * @param obj The web object
13433     * @return A newly allocated string, or NULL if nothing is selected or an
13434     * error occurred
13435     */
13436    EAPI char                        *elm_view_selection_get(const Evas_Object *obj);
13437    /**
13438     * Tells the web object which index in the currently open popup was selected
13439     *
13440     * When the user handles the popup creation from the "popup,created" signal,
13441     * it needs to tell the web object which item was selected by calling this
13442     * function with the index corresponding to the item.
13443     *
13444     * @param obj The web object
13445     * @param index The index selected
13446     *
13447     * @see elm_web_popup_destroy()
13448     */
13449    EAPI void                         elm_web_popup_selected_set(Evas_Object *obj, int index);
13450    /**
13451     * Dismisses an open dropdown popup
13452     *
13453     * When the popup from a dropdown widget is to be dismissed, either after
13454     * selecting an option or to cancel it, this function must be called, which
13455     * will later emit an "popup,willdelete" signal to notify the user that
13456     * any memory and objects related to this popup can be freed.
13457     *
13458     * @param obj The web object
13459     * @return EINA_TRUE if the menu was successfully destroyed, or EINA_FALSE
13460     * if there was no menu to destroy
13461     */
13462    EAPI Eina_Bool                    elm_web_popup_destroy(Evas_Object *obj);
13463    /**
13464     * Searches the given string in a document.
13465     *
13466     * @param obj The web object where to search the text
13467     * @param string String to search
13468     * @param case_sensitive If search should be case sensitive or not
13469     * @param forward If search is from cursor and on or backwards
13470     * @param wrap If search should wrap at the end
13471     *
13472     * @return @c EINA_TRUE if the given string was found, @c EINA_FALSE if not
13473     * or failure
13474     */
13475    EAPI Eina_Bool                    elm_web_text_search(const Evas_Object *obj, const char *string, Eina_Bool case_sensitive, Eina_Bool forward, Eina_Bool wrap);
13476    /**
13477     * Marks matches of the given string in a document.
13478     *
13479     * @param obj The web object where to search text
13480     * @param string String to match
13481     * @param case_sensitive If match should be case sensitive or not
13482     * @param highlight If matches should be highlighted
13483     * @param limit Maximum amount of matches, or zero to unlimited
13484     *
13485     * @return number of matched @a string
13486     */
13487    EAPI unsigned int                 elm_web_text_matches_mark(Evas_Object *obj, const char *string, Eina_Bool case_sensitive, Eina_Bool highlight, unsigned int limit);
13488    /**
13489     * Clears all marked matches in the document
13490     *
13491     * @param obj The web object
13492     *
13493     * @return EINA_TRUE on success, EINA_FALSE otherwise
13494     */
13495    EAPI Eina_Bool                    elm_web_text_matches_unmark_all(Evas_Object *obj);
13496    /**
13497     * Sets whether to highlight the matched marks
13498     *
13499     * If enabled, marks set with elm_web_text_matches_mark() will be
13500     * highlighted.
13501     *
13502     * @param obj The web object
13503     * @param highlight Whether to highlight the marks or not
13504     *
13505     * @return EINA_TRUE on success, EINA_FALSE otherwise
13506     */
13507    EAPI Eina_Bool                    elm_web_text_matches_highlight_set(Evas_Object *obj, Eina_Bool highlight);
13508    /**
13509     * Gets whether highlighting marks is enabled
13510     *
13511     * @param The web object
13512     *
13513     * @return EINA_TRUE is marks are set to be highlighted, EINA_FALSE
13514     * otherwise
13515     */
13516    EAPI Eina_Bool                    elm_web_text_matches_highlight_get(const Evas_Object *obj);
13517    /**
13518     * Gets the overall loading progress of the page
13519     *
13520     * Returns the estimated loading progress of the page, with a value between
13521     * 0.0 and 1.0. This is an estimated progress accounting for all the frames
13522     * included in the page.
13523     *
13524     * @param The web object
13525     *
13526     * @return A value between 0.0 and 1.0 indicating the progress, or -1.0 on
13527     * failure
13528     */
13529    EAPI double                       elm_web_load_progress_get(const Evas_Object *obj);
13530    /**
13531     * Stops loading the current page
13532     *
13533     * Cancels the loading of the current page in the web object. This will
13534     * cause a "load,error" signal to be emitted, with the is_cancellation
13535     * flag set to EINA_TRUE.
13536     *
13537     * @param obj The web object
13538     *
13539     * @return EINA_TRUE if the cancel was successful, EINA_FALSE otherwise
13540     */
13541    EAPI Eina_Bool                    elm_web_stop(Evas_Object *obj);
13542    /**
13543     * Requests a reload of the current document in the object
13544     *
13545     * @param obj The web object
13546     *
13547     * @return EINA_TRUE on success, EINA_FALSE otherwise
13548     */
13549    EAPI Eina_Bool                    elm_web_reload(Evas_Object *obj);
13550    /**
13551     * Requests a reload of the current document, avoiding any existing caches
13552     *
13553     * @param obj The web object
13554     *
13555     * @return EINA_TRUE on success, EINA_FALSE otherwise
13556     */
13557    EAPI Eina_Bool                    elm_web_reload_full(Evas_Object *obj);
13558    /**
13559     * Goes back one step in the browsing history
13560     *
13561     * This is equivalent to calling elm_web_object_navigate(obj, -1);
13562     *
13563     * @param obj The web object
13564     *
13565     * @return EINA_TRUE on success, EINA_FALSE otherwise
13566     *
13567     * @see elm_web_history_enable_set()
13568     * @see elm_web_back_possible()
13569     * @see elm_web_forward()
13570     * @see elm_web_navigate()
13571     */
13572    EAPI Eina_Bool                    elm_web_back(Evas_Object *obj);
13573    /**
13574     * Goes forward one step in the browsing history
13575     *
13576     * This is equivalent to calling elm_web_object_navigate(obj, 1);
13577     *
13578     * @param obj The web object
13579     *
13580     * @return EINA_TRUE on success, EINA_FALSE otherwise
13581     *
13582     * @see elm_web_history_enable_set()
13583     * @see elm_web_forward_possible()
13584     * @see elm_web_back()
13585     * @see elm_web_navigate()
13586     */
13587    EAPI Eina_Bool                    elm_web_forward(Evas_Object *obj);
13588    /**
13589     * Jumps the given number of steps in the browsing history
13590     *
13591     * The @p steps value can be a negative integer to back in history, or a
13592     * positive to move forward.
13593     *
13594     * @param obj The web object
13595     * @param steps The number of steps to jump
13596     *
13597     * @return EINA_TRUE on success, EINA_FALSE on error or if not enough
13598     * history exists to jump the given number of steps
13599     *
13600     * @see elm_web_history_enable_set()
13601     * @see elm_web_navigate_possible()
13602     * @see elm_web_back()
13603     * @see elm_web_forward()
13604     */
13605    EAPI Eina_Bool                    elm_web_navigate(Evas_Object *obj, int steps);
13606    /**
13607     * Queries whether it's possible to go back in history
13608     *
13609     * @param obj The web object
13610     *
13611     * @return EINA_TRUE if it's possible to back in history, EINA_FALSE
13612     * otherwise
13613     */
13614    EAPI Eina_Bool                    elm_web_back_possible(Evas_Object *obj);
13615    /**
13616     * Queries whether it's possible to go forward in history
13617     *
13618     * @param obj The web object
13619     *
13620     * @return EINA_TRUE if it's possible to forward in history, EINA_FALSE
13621     * otherwise
13622     */
13623    EAPI Eina_Bool                    elm_web_forward_possible(Evas_Object *obj);
13624    /**
13625     * Queries whether it's possible to jump the given number of steps
13626     *
13627     * The @p steps value can be a negative integer to back in history, or a
13628     * positive to move forward.
13629     *
13630     * @param obj The web object
13631     * @param steps The number of steps to check for
13632     *
13633     * @return EINA_TRUE if enough history exists to perform the given jump,
13634     * EINA_FALSE otherwise
13635     */
13636    EAPI Eina_Bool                    elm_web_navigate_possible(Evas_Object *obj, int steps);
13637    /**
13638     * Gets whether browsing history is enabled for the given object
13639     *
13640     * @param obj The web object
13641     *
13642     * @return EINA_TRUE if history is enabled, EINA_FALSE otherwise
13643     */
13644    EAPI Eina_Bool                    elm_web_history_enable_get(const Evas_Object *obj);
13645    /**
13646     * Enables or disables the browsing history
13647     *
13648     * @param obj The web object
13649     * @param enable Whether to enable or disable the browsing history
13650     */
13651    EAPI void                         elm_web_history_enable_set(Evas_Object *obj, Eina_Bool enable);
13652    /**
13653     * Sets the zoom level of the web object
13654     *
13655     * Zoom level matches the Webkit API, so 1.0 means normal zoom, with higher
13656     * values meaning zoom in and lower meaning zoom out. This function will
13657     * only affect the zoom level if the mode set with elm_web_zoom_mode_set()
13658     * is ::ELM_WEB_ZOOM_MODE_MANUAL.
13659     *
13660     * @param obj The web object
13661     * @param zoom The zoom level to set
13662     */
13663    EAPI void                         elm_web_zoom_set(Evas_Object *obj, double zoom);
13664    /**
13665     * Gets the current zoom level set on the web object
13666     *
13667     * Note that this is the zoom level set on the web object and not that
13668     * of the underlying Webkit one. In the ::ELM_WEB_ZOOM_MODE_MANUAL mode,
13669     * the two zoom levels should match, but for the other two modes the
13670     * Webkit zoom is calculated internally to match the chosen mode without
13671     * changing the zoom level set for the web object.
13672     *
13673     * @param obj The web object
13674     *
13675     * @return The zoom level set on the object
13676     */
13677    EAPI double                       elm_web_zoom_get(const Evas_Object *obj);
13678    /**
13679     * Sets the zoom mode to use
13680     *
13681     * The modes can be any of those defined in ::Elm_Web_Zoom_Mode, except
13682     * ::ELM_WEB_ZOOM_MODE_LAST. The default is ::ELM_WEB_ZOOM_MODE_MANUAL.
13683     *
13684     * ::ELM_WEB_ZOOM_MODE_MANUAL means the zoom level will be controlled
13685     * with the elm_web_zoom_set() function.
13686     * ::ELM_WEB_ZOOM_MODE_AUTO_FIT will calculate the needed zoom level to
13687     * make sure the entirety of the web object's contents are shown.
13688     * ::ELM_WEB_ZOOM_MODE_AUTO_FILL will calculate the needed zoom level to
13689     * fit the contents in the web object's size, without leaving any space
13690     * unused.
13691     *
13692     * @param obj The web object
13693     * @param mode The mode to set
13694     */
13695    EAPI void                         elm_web_zoom_mode_set(Evas_Object *obj, Elm_Web_Zoom_Mode mode);
13696    /**
13697     * Gets the currently set zoom mode
13698     *
13699     * @param obj The web object
13700     *
13701     * @return The current zoom mode set for the object, or
13702     * ::ELM_WEB_ZOOM_MODE_LAST on error
13703     */
13704    EAPI Elm_Web_Zoom_Mode            elm_web_zoom_mode_get(const Evas_Object *obj);
13705    /**
13706     * Shows the given region in the web object
13707     *
13708     * @param obj The web object
13709     * @param x The x coordinate of the region to show
13710     * @param y The y coordinate of the region to show
13711     * @param w The width of the region to show
13712     * @param h The height of the region to show
13713     */
13714    EAPI void                         elm_web_region_show(Evas_Object *obj, int x, int y, int w, int h);
13715    /**
13716     * Brings in the region to the visible area
13717     *
13718     * Like elm_web_region_show(), but it animates the scrolling of the object
13719     * to show the area
13720     *
13721     * @param obj The web object
13722     * @param x The x coordinate of the region to show
13723     * @param y The y coordinate of the region to show
13724     * @param w The width of the region to show
13725     * @param h The height of the region to show
13726     */
13727    EAPI void                         elm_web_region_bring_in(Evas_Object *obj, int x, int y, int w, int h);
13728    /**
13729     * Sets the default dialogs to use an Inwin instead of a normal window
13730     *
13731     * If set, then the default implementation for the JavaScript dialogs and
13732     * file selector will be opened in an Inwin. Otherwise they will use a
13733     * normal separated window.
13734     *
13735     * @param obj The web object
13736     * @param value EINA_TRUE to use Inwin, EINA_FALSE to use a normal window
13737     */
13738    EAPI void                         elm_web_inwin_mode_set(Evas_Object *obj, Eina_Bool value);
13739    /**
13740     * Gets whether Inwin mode is set for the current object
13741     *
13742     * @param obj The web object
13743     *
13744     * @return EINA_TRUE if Inwin mode is set, EINA_FALSE otherwise
13745     */
13746    EAPI Eina_Bool                    elm_web_inwin_mode_get(const Evas_Object *obj);
13747
13748    EAPI void                         elm_web_window_features_ref(Elm_Web_Window_Features *wf);
13749    EAPI void                         elm_web_window_features_unref(Elm_Web_Window_Features *wf);
13750    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);
13751    EAPI void                         elm_web_window_features_int_property_get(const Elm_Web_Window_Features *wf, int *x, int *y, int *w, int *h);
13752
13753    /**
13754     * @}
13755     */
13756 #endif
13757
13758    /**
13759     * @defgroup Hoversel Hoversel
13760     *
13761     * @image html img/widget/hoversel/preview-00.png
13762     * @image latex img/widget/hoversel/preview-00.eps
13763     *
13764     * A hoversel is a button that pops up a list of items (automatically
13765     * choosing the direction to display) that have a label and, optionally, an
13766     * icon to select from. It is a convenience widget to avoid the need to do
13767     * all the piecing together yourself. It is intended for a small number of
13768     * items in the hoversel menu (no more than 8), though is capable of many
13769     * more.
13770     *
13771     * Signals that you can add callbacks for are:
13772     * "clicked" - the user clicked the hoversel button and popped up the sel
13773     * "selected" - an item in the hoversel list is selected. event_info is the item
13774     * "dismissed" - the hover is dismissed
13775     *
13776     * See @ref tutorial_hoversel for an example.
13777     * @{
13778     */
13779    typedef struct _Elm_Hoversel_Item Elm_Hoversel_Item; /**< Item of Elm_Hoversel. Sub-type of Elm_Widget_Item */
13780    /**
13781     * @brief Add a new Hoversel object
13782     *
13783     * @param parent The parent object
13784     * @return The new object or NULL if it cannot be created
13785     */
13786    EAPI Evas_Object       *elm_hoversel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13787    /**
13788     * @brief This sets the hoversel to expand horizontally.
13789     *
13790     * @param obj The hoversel object
13791     * @param horizontal If true, the hover will expand horizontally to the
13792     * right.
13793     *
13794     * @note The initial button will display horizontally regardless of this
13795     * setting.
13796     */
13797    EAPI void               elm_hoversel_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
13798    /**
13799     * @brief This returns whether the hoversel is set to expand horizontally.
13800     *
13801     * @param obj The hoversel object
13802     * @return If true, the hover will expand horizontally to the right.
13803     *
13804     * @see elm_hoversel_horizontal_set()
13805     */
13806    EAPI Eina_Bool          elm_hoversel_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13807    /**
13808     * @brief Set the Hover parent
13809     *
13810     * @param obj The hoversel object
13811     * @param parent The parent to use
13812     *
13813     * Sets the hover parent object, the area that will be darkened when the
13814     * hoversel is clicked. Should probably be the window that the hoversel is
13815     * in. See @ref Hover objects for more information.
13816     */
13817    EAPI void               elm_hoversel_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
13818    /**
13819     * @brief Get the Hover parent
13820     *
13821     * @param obj The hoversel object
13822     * @return The used parent
13823     *
13824     * Gets the hover parent object.
13825     *
13826     * @see elm_hoversel_hover_parent_set()
13827     */
13828    EAPI Evas_Object       *elm_hoversel_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13829    /**
13830     * @brief Set the hoversel button label
13831     *
13832     * @param obj The hoversel object
13833     * @param label The label text.
13834     *
13835     * This sets the label of the button that is always visible (before it is
13836     * clicked and expanded).
13837     *
13838     * @deprecated elm_object_text_set()
13839     */
13840    EINA_DEPRECATED EAPI void               elm_hoversel_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
13841    /**
13842     * @brief Get the hoversel button label
13843     *
13844     * @param obj The hoversel object
13845     * @return The label text.
13846     *
13847     * @deprecated elm_object_text_get()
13848     */
13849    EINA_DEPRECATED EAPI const char        *elm_hoversel_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13850    /**
13851     * @brief Set the icon of the hoversel button
13852     *
13853     * @param obj The hoversel object
13854     * @param icon The icon object
13855     *
13856     * Sets the icon of the button that is always visible (before it is clicked
13857     * and expanded).  Once the icon object is set, a previously set one will be
13858     * deleted, if you want to keep that old content object, use the
13859     * elm_hoversel_icon_unset() function.
13860     *
13861     * @see elm_object_content_set() for the button widget
13862     */
13863    EAPI void               elm_hoversel_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
13864    /**
13865     * @brief Get the icon of the hoversel button
13866     *
13867     * @param obj The hoversel object
13868     * @return The icon object
13869     *
13870     * Get the icon of the button that is always visible (before it is clicked
13871     * and expanded). Also see elm_object_content_get() for the button widget.
13872     *
13873     * @see elm_hoversel_icon_set()
13874     */
13875    EAPI Evas_Object       *elm_hoversel_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13876    /**
13877     * @brief Get and unparent the icon of the hoversel button
13878     *
13879     * @param obj The hoversel object
13880     * @return The icon object that was being used
13881     *
13882     * Unparent and return the icon of the button that is always visible
13883     * (before it is clicked and expanded).
13884     *
13885     * @see elm_hoversel_icon_set()
13886     * @see elm_object_content_unset() for the button widget
13887     */
13888    EAPI Evas_Object       *elm_hoversel_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
13889    /**
13890     * @brief This triggers the hoversel popup from code, the same as if the user
13891     * had clicked the button.
13892     *
13893     * @param obj The hoversel object
13894     */
13895    EAPI void               elm_hoversel_hover_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
13896    /**
13897     * @brief This dismisses the hoversel popup as if the user had clicked
13898     * outside the hover.
13899     *
13900     * @param obj The hoversel object
13901     */
13902    EAPI void               elm_hoversel_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
13903    /**
13904     * @brief Returns whether the hoversel is expanded.
13905     *
13906     * @param obj The hoversel object
13907     * @return  This will return EINA_TRUE if the hoversel is expanded or
13908     * EINA_FALSE if it is not expanded.
13909     */
13910    EAPI Eina_Bool          elm_hoversel_expanded_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13911    /**
13912     * @brief This will remove all the children items from the hoversel.
13913     *
13914     * @param obj The hoversel object
13915     *
13916     * @warning Should @b not be called while the hoversel is active; use
13917     * elm_hoversel_expanded_get() to check first.
13918     *
13919     * @see elm_hoversel_item_del_cb_set()
13920     * @see elm_hoversel_item_del()
13921     */
13922    EAPI void               elm_hoversel_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
13923    /**
13924     * @brief Get the list of items within the given hoversel.
13925     *
13926     * @param obj The hoversel object
13927     * @return Returns a list of Elm_Hoversel_Item*
13928     *
13929     * @see elm_hoversel_item_add()
13930     */
13931    EAPI const Eina_List   *elm_hoversel_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13932    /**
13933     * @brief Add an item to the hoversel button
13934     *
13935     * @param obj The hoversel object
13936     * @param label The text label to use for the item (NULL if not desired)
13937     * @param icon_file An image file path on disk to use for the icon or standard
13938     * icon name (NULL if not desired)
13939     * @param icon_type The icon type if relevant
13940     * @param func Convenience function to call when this item is selected
13941     * @param data Data to pass to item-related functions
13942     * @return A handle to the item added.
13943     *
13944     * This adds an item to the hoversel to show when it is clicked. Note: if you
13945     * need to use an icon from an edje file then use
13946     * elm_hoversel_item_icon_set() right after the this function, and set
13947     * icon_file to NULL here.
13948     *
13949     * For more information on what @p icon_file and @p icon_type are see the
13950     * @ref Icon "icon documentation".
13951     */
13952    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);
13953    /**
13954     * @brief Delete an item from the hoversel
13955     *
13956     * @param item The item to delete
13957     *
13958     * This deletes the item from the hoversel (should not be called while the
13959     * hoversel is active; use elm_hoversel_expanded_get() to check first).
13960     *
13961     * @see elm_hoversel_item_add()
13962     * @see elm_hoversel_item_del_cb_set()
13963     */
13964    EAPI void               elm_hoversel_item_del(Elm_Hoversel_Item *item) EINA_ARG_NONNULL(1);
13965    /**
13966     * @brief Set the function to be called when an item from the hoversel is
13967     * freed.
13968     *
13969     * @param item The item to set the callback on
13970     * @param func The function called
13971     *
13972     * That function will receive these parameters:
13973     * @li void *item_data
13974     * @li Evas_Object *the_item_object
13975     * @li Elm_Hoversel_Item *the_object_struct
13976     *
13977     * @see elm_hoversel_item_add()
13978     */
13979    EAPI void               elm_hoversel_item_del_cb_set(Elm_Hoversel_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
13980    /**
13981     * @brief This returns the data pointer supplied with elm_hoversel_item_add()
13982     * that will be passed to associated function callbacks.
13983     *
13984     * @param item The item to get the data from
13985     * @return The data pointer set with elm_hoversel_item_add()
13986     *
13987     * @see elm_hoversel_item_add()
13988     */
13989    EAPI void              *elm_hoversel_item_data_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
13990    /**
13991     * @brief This returns the label text of the given hoversel item.
13992     *
13993     * @param item The item to get the label
13994     * @return The label text of the hoversel item
13995     *
13996     * @see elm_hoversel_item_add()
13997     */
13998    EAPI const char        *elm_hoversel_item_label_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
13999    /**
14000     * @brief This sets the icon for the given hoversel item.
14001     *
14002     * @param item The item to set the icon
14003     * @param icon_file An image file path on disk to use for the icon or standard
14004     * icon name
14005     * @param icon_group The edje group to use if @p icon_file is an edje file. Set this
14006     * to NULL if the icon is not an edje file
14007     * @param icon_type The icon type
14008     *
14009     * The icon can be loaded from the standard set, from an image file, or from
14010     * an edje file.
14011     *
14012     * @see elm_hoversel_item_add()
14013     */
14014    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);
14015    /**
14016     * @brief Get the icon object of the hoversel item
14017     *
14018     * @param item The item to get the icon from
14019     * @param icon_file The image file path on disk used for the icon or standard
14020     * icon name
14021     * @param icon_group The edje group used if @p icon_file is an edje file. NULL
14022     * if the icon is not an edje file
14023     * @param icon_type The icon type
14024     *
14025     * @see elm_hoversel_item_icon_set()
14026     * @see elm_hoversel_item_add()
14027     */
14028    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);
14029    /**
14030     * @}
14031     */
14032
14033    /**
14034     * @defgroup Toolbar Toolbar
14035     * @ingroup Elementary
14036     *
14037     * @image html img/widget/toolbar/preview-00.png
14038     * @image latex img/widget/toolbar/preview-00.eps width=\textwidth
14039     *
14040     * @image html img/toolbar.png
14041     * @image latex img/toolbar.eps width=\textwidth
14042     *
14043     * A toolbar is a widget that displays a list of items inside
14044     * a box. It can be scrollable, show a menu with items that don't fit
14045     * to toolbar size or even crop them.
14046     *
14047     * Only one item can be selected at a time.
14048     *
14049     * Items can have multiple states, or show menus when selected by the user.
14050     *
14051     * Smart callbacks one can listen to:
14052     * - "clicked" - when the user clicks on a toolbar item and becomes selected.
14053     * - "language,changed" - when the program language changes
14054     *
14055     * Available styles for it:
14056     * - @c "default"
14057     * - @c "transparent" - no background or shadow, just show the content
14058     *
14059     * List of examples:
14060     * @li @ref toolbar_example_01
14061     * @li @ref toolbar_example_02
14062     * @li @ref toolbar_example_03
14063     */
14064
14065    /**
14066     * @addtogroup Toolbar
14067     * @{
14068     */
14069
14070    /**
14071     * @enum _Elm_Toolbar_Shrink_Mode
14072     * @typedef Elm_Toolbar_Shrink_Mode
14073     *
14074     * Set toolbar's items display behavior, it can be scrollabel,
14075     * show a menu with exceeding items, or simply hide them.
14076     *
14077     * @note Default value is #ELM_TOOLBAR_SHRINK_MENU. It reads value
14078     * from elm config.
14079     *
14080     * Values <b> don't </b> work as bitmask, only one can be choosen.
14081     *
14082     * @see elm_toolbar_mode_shrink_set()
14083     * @see elm_toolbar_mode_shrink_get()
14084     *
14085     * @ingroup Toolbar
14086     */
14087    typedef enum _Elm_Toolbar_Shrink_Mode
14088      {
14089         ELM_TOOLBAR_SHRINK_NONE,   /**< Set toolbar minimun size to fit all the items. */
14090         ELM_TOOLBAR_SHRINK_HIDE,   /**< Hide exceeding items. */
14091         ELM_TOOLBAR_SHRINK_SCROLL, /**< Allow accessing exceeding items through a scroller. */
14092         ELM_TOOLBAR_SHRINK_MENU,   /**< Inserts a button to pop up a menu with exceeding items. */
14093      } Elm_Toolbar_Shrink_Mode;
14094
14095    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(). */
14096
14097    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(). */
14098
14099    /**
14100     * Add a new toolbar widget to the given parent Elementary
14101     * (container) object.
14102     *
14103     * @param parent The parent object.
14104     * @return a new toolbar widget handle or @c NULL, on errors.
14105     *
14106     * This function inserts a new toolbar widget on the canvas.
14107     *
14108     * @ingroup Toolbar
14109     */
14110    EAPI Evas_Object            *elm_toolbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14111
14112    /**
14113     * Set the icon size, in pixels, to be used by toolbar items.
14114     *
14115     * @param obj The toolbar object
14116     * @param icon_size The icon size in pixels
14117     *
14118     * @note Default value is @c 32. It reads value from elm config.
14119     *
14120     * @see elm_toolbar_icon_size_get()
14121     *
14122     * @ingroup Toolbar
14123     */
14124    EAPI void                    elm_toolbar_icon_size_set(Evas_Object *obj, int icon_size) EINA_ARG_NONNULL(1);
14125
14126    /**
14127     * Get the icon size, in pixels, to be used by toolbar items.
14128     *
14129     * @param obj The toolbar object.
14130     * @return The icon size in pixels.
14131     *
14132     * @see elm_toolbar_icon_size_set() for details.
14133     *
14134     * @ingroup Toolbar
14135     */
14136    EAPI int                     elm_toolbar_icon_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14137
14138    /**
14139     * Sets icon lookup order, for toolbar items' icons.
14140     *
14141     * @param obj The toolbar object.
14142     * @param order The icon lookup order.
14143     *
14144     * Icons added before calling this function will not be affected.
14145     * The default lookup order is #ELM_ICON_LOOKUP_THEME_FDO.
14146     *
14147     * @see elm_toolbar_icon_order_lookup_get()
14148     *
14149     * @ingroup Toolbar
14150     */
14151    EAPI void                    elm_toolbar_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
14152
14153    /**
14154     * Gets the icon lookup order.
14155     *
14156     * @param obj The toolbar object.
14157     * @return The icon lookup order.
14158     *
14159     * @see elm_toolbar_icon_order_lookup_set() for details.
14160     *
14161     * @ingroup Toolbar
14162     */
14163    EAPI Elm_Icon_Lookup_Order   elm_toolbar_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14164
14165    /**
14166     * Set whether the toolbar items' should be selected by the user or not.
14167     *
14168     * @param obj The toolbar object.
14169     * @param wrap @c EINA_TRUE to disable selection or @c EINA_FALSE to
14170     * enable it.
14171     *
14172     * This will turn off the ability to select items entirely and they will
14173     * neither appear selected nor emit selected signals. The clicked
14174     * callback function will still be called.
14175     *
14176     * Selection is enabled by default.
14177     *
14178     * @see elm_toolbar_no_select_mode_get().
14179     *
14180     * @ingroup Toolbar
14181     */
14182    EAPI void                    elm_toolbar_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
14183
14184    /**
14185     * Set whether the toolbar items' should be selected by the user or not.
14186     *
14187     * @param obj The toolbar object.
14188     * @return @c EINA_TRUE means items can be selected. @c EINA_FALSE indicates
14189     * they can't. If @p obj is @c NULL, @c EINA_FALSE is returned.
14190     *
14191     * @see elm_toolbar_no_select_mode_set() for details.
14192     *
14193     * @ingroup Toolbar
14194     */
14195    EAPI Eina_Bool               elm_toolbar_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14196
14197    /**
14198     * Append item to the toolbar.
14199     *
14200     * @param obj The toolbar object.
14201     * @param icon A string with icon name or the absolute path of an image file.
14202     * @param label The label of the item.
14203     * @param func The function to call when the item is clicked.
14204     * @param data The data to associate with the item for related callbacks.
14205     * @return The created item or @c NULL upon failure.
14206     *
14207     * A new item will be created and appended to the toolbar, i.e., will
14208     * be set as @b last item.
14209     *
14210     * Items created with this method can be deleted with
14211     * elm_toolbar_item_del().
14212     *
14213     * Associated @p data can be properly freed when item is deleted if a
14214     * callback function is set with elm_toolbar_item_del_cb_set().
14215     *
14216     * If a function is passed as argument, it will be called everytime this item
14217     * is selected, i.e., the user clicks over an unselected item.
14218     * If such function isn't needed, just passing
14219     * @c NULL as @p func is enough. The same should be done for @p data.
14220     *
14221     * Toolbar will load icon image from fdo or current theme.
14222     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14223     * If an absolute path is provided it will load it direct from a file.
14224     *
14225     * @see elm_toolbar_item_icon_set()
14226     * @see elm_toolbar_item_del()
14227     * @see elm_toolbar_item_del_cb_set()
14228     *
14229     * @ingroup Toolbar
14230     */
14231    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);
14232
14233    /**
14234     * Prepend item to the toolbar.
14235     *
14236     * @param obj The toolbar object.
14237     * @param icon A string with icon name or the absolute path of an image file.
14238     * @param label The label of the item.
14239     * @param func The function to call when the item is clicked.
14240     * @param data The data to associate with the item for related callbacks.
14241     * @return The created item or @c NULL upon failure.
14242     *
14243     * A new item will be created and prepended to the toolbar, i.e., will
14244     * be set as @b first item.
14245     *
14246     * Items created with this method can be deleted with
14247     * elm_toolbar_item_del().
14248     *
14249     * Associated @p data can be properly freed when item is deleted if a
14250     * callback function is set with elm_toolbar_item_del_cb_set().
14251     *
14252     * If a function is passed as argument, it will be called everytime this item
14253     * is selected, i.e., the user clicks over an unselected item.
14254     * If such function isn't needed, just passing
14255     * @c NULL as @p func is enough. The same should be done for @p data.
14256     *
14257     * Toolbar will load icon image from fdo or current theme.
14258     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14259     * If an absolute path is provided it will load it direct from a file.
14260     *
14261     * @see elm_toolbar_item_icon_set()
14262     * @see elm_toolbar_item_del()
14263     * @see elm_toolbar_item_del_cb_set()
14264     *
14265     * @ingroup Toolbar
14266     */
14267    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);
14268
14269    /**
14270     * Insert a new item into the toolbar object before item @p before.
14271     *
14272     * @param obj The toolbar object.
14273     * @param before The toolbar item to insert before.
14274     * @param icon A string with icon name or the absolute path of an image file.
14275     * @param label The label of the item.
14276     * @param func The function to call when the item is clicked.
14277     * @param data The data to associate with the item for related callbacks.
14278     * @return The created item or @c NULL upon failure.
14279     *
14280     * A new item will be created and added to the toolbar. Its position in
14281     * this toolbar will be just before item @p before.
14282     *
14283     * Items created with this method can be deleted with
14284     * elm_toolbar_item_del().
14285     *
14286     * Associated @p data can be properly freed when item is deleted if a
14287     * callback function is set with elm_toolbar_item_del_cb_set().
14288     *
14289     * If a function is passed as argument, it will be called everytime this item
14290     * is selected, i.e., the user clicks over an unselected item.
14291     * If such function isn't needed, just passing
14292     * @c NULL as @p func is enough. The same should be done for @p data.
14293     *
14294     * Toolbar will load icon image from fdo or current theme.
14295     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14296     * If an absolute path is provided it will load it direct from a file.
14297     *
14298     * @see elm_toolbar_item_icon_set()
14299     * @see elm_toolbar_item_del()
14300     * @see elm_toolbar_item_del_cb_set()
14301     *
14302     * @ingroup Toolbar
14303     */
14304    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);
14305
14306    /**
14307     * Insert a new item into the toolbar object after item @p after.
14308     *
14309     * @param obj The toolbar object.
14310     * @param after The toolbar item to insert after.
14311     * @param icon A string with icon name or the absolute path of an image file.
14312     * @param label The label of the item.
14313     * @param func The function to call when the item is clicked.
14314     * @param data The data to associate with the item for related callbacks.
14315     * @return The created item or @c NULL upon failure.
14316     *
14317     * A new item will be created and added to the toolbar. Its position in
14318     * this toolbar will be just after item @p after.
14319     *
14320     * Items created with this method can be deleted with
14321     * elm_toolbar_item_del().
14322     *
14323     * Associated @p data can be properly freed when item is deleted if a
14324     * callback function is set with elm_toolbar_item_del_cb_set().
14325     *
14326     * If a function is passed as argument, it will be called everytime this item
14327     * is selected, i.e., the user clicks over an unselected item.
14328     * If such function isn't needed, just passing
14329     * @c NULL as @p func is enough. The same should be done for @p data.
14330     *
14331     * Toolbar will load icon image from fdo or current theme.
14332     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14333     * If an absolute path is provided it will load it direct from a file.
14334     *
14335     * @see elm_toolbar_item_icon_set()
14336     * @see elm_toolbar_item_del()
14337     * @see elm_toolbar_item_del_cb_set()
14338     *
14339     * @ingroup Toolbar
14340     */
14341    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);
14342
14343    /**
14344     * Get the first item in the given toolbar widget's list of
14345     * items.
14346     *
14347     * @param obj The toolbar object
14348     * @return The first item or @c NULL, if it has no items (and on
14349     * errors)
14350     *
14351     * @see elm_toolbar_item_append()
14352     * @see elm_toolbar_last_item_get()
14353     *
14354     * @ingroup Toolbar
14355     */
14356    EAPI Elm_Toolbar_Item       *elm_toolbar_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14357
14358    /**
14359     * Get the last item in the given toolbar widget's list of
14360     * items.
14361     *
14362     * @param obj The toolbar object
14363     * @return The last item or @c NULL, if it has no items (and on
14364     * errors)
14365     *
14366     * @see elm_toolbar_item_prepend()
14367     * @see elm_toolbar_first_item_get()
14368     *
14369     * @ingroup Toolbar
14370     */
14371    EAPI Elm_Toolbar_Item       *elm_toolbar_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14372
14373    /**
14374     * Get the item after @p item in toolbar.
14375     *
14376     * @param item The toolbar item.
14377     * @return The item after @p item, or @c NULL if none or on failure.
14378     *
14379     * @note If it is the last item, @c NULL will be returned.
14380     *
14381     * @see elm_toolbar_item_append()
14382     *
14383     * @ingroup Toolbar
14384     */
14385    EAPI Elm_Toolbar_Item       *elm_toolbar_item_next_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14386
14387    /**
14388     * Get the item before @p item in toolbar.
14389     *
14390     * @param item The toolbar item.
14391     * @return The item before @p item, or @c NULL if none or on failure.
14392     *
14393     * @note If it is the first item, @c NULL will be returned.
14394     *
14395     * @see elm_toolbar_item_prepend()
14396     *
14397     * @ingroup Toolbar
14398     */
14399    EAPI Elm_Toolbar_Item       *elm_toolbar_item_prev_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14400
14401    /**
14402     * Get the toolbar object from an item.
14403     *
14404     * @param item The item.
14405     * @return The toolbar object.
14406     *
14407     * This returns the toolbar object itself that an item belongs to.
14408     *
14409     * @ingroup Toolbar
14410     */
14411    EAPI Evas_Object            *elm_toolbar_item_toolbar_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14412
14413    /**
14414     * Set the priority of a toolbar item.
14415     *
14416     * @param item The toolbar item.
14417     * @param priority The item priority. The default is zero.
14418     *
14419     * This is used only when the toolbar shrink mode is set to
14420     * #ELM_TOOLBAR_SHRINK_MENU or #ELM_TOOLBAR_SHRINK_HIDE.
14421     * When space is less than required, items with low priority
14422     * will be removed from the toolbar and added to a dynamically-created menu,
14423     * while items with higher priority will remain on the toolbar,
14424     * with the same order they were added.
14425     *
14426     * @see elm_toolbar_item_priority_get()
14427     *
14428     * @ingroup Toolbar
14429     */
14430    EAPI void                    elm_toolbar_item_priority_set(Elm_Toolbar_Item *item, int priority) EINA_ARG_NONNULL(1);
14431
14432    /**
14433     * Get the priority of a toolbar item.
14434     *
14435     * @param item The toolbar item.
14436     * @return The @p item priority, or @c 0 on failure.
14437     *
14438     * @see elm_toolbar_item_priority_set() for details.
14439     *
14440     * @ingroup Toolbar
14441     */
14442    EAPI int                     elm_toolbar_item_priority_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14443
14444    /**
14445     * Get the label of item.
14446     *
14447     * @param item The item of toolbar.
14448     * @return The label of item.
14449     *
14450     * The return value is a pointer to the label associated to @p item when
14451     * it was created, with function elm_toolbar_item_append() or similar,
14452     * or later,
14453     * with function elm_toolbar_item_label_set. If no label
14454     * was passed as argument, it will return @c NULL.
14455     *
14456     * @see elm_toolbar_item_label_set() for more details.
14457     * @see elm_toolbar_item_append()
14458     *
14459     * @ingroup Toolbar
14460     */
14461    EAPI const char             *elm_toolbar_item_label_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14462
14463    /**
14464     * Set the label of item.
14465     *
14466     * @param item The item of toolbar.
14467     * @param text The label of item.
14468     *
14469     * The label to be displayed by the item.
14470     * Label will be placed at icons bottom (if set).
14471     *
14472     * If a label was passed as argument on item creation, with function
14473     * elm_toolbar_item_append() or similar, it will be already
14474     * displayed by the item.
14475     *
14476     * @see elm_toolbar_item_label_get()
14477     * @see elm_toolbar_item_append()
14478     *
14479     * @ingroup Toolbar
14480     */
14481    EAPI void                    elm_toolbar_item_label_set(Elm_Toolbar_Item *item, const char *label) EINA_ARG_NONNULL(1);
14482
14483    /**
14484     * Return the data associated with a given toolbar widget item.
14485     *
14486     * @param item The toolbar widget item handle.
14487     * @return The data associated with @p item.
14488     *
14489     * @see elm_toolbar_item_data_set()
14490     *
14491     * @ingroup Toolbar
14492     */
14493    EAPI void                   *elm_toolbar_item_data_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14494
14495    /**
14496     * Set the data associated with a given toolbar widget item.
14497     *
14498     * @param item The toolbar widget item handle.
14499     * @param data The new data pointer to set to @p item.
14500     *
14501     * This sets new item data on @p item.
14502     *
14503     * @warning The old data pointer won't be touched by this function, so
14504     * the user had better to free that old data himself/herself.
14505     *
14506     * @ingroup Toolbar
14507     */
14508    EAPI void                    elm_toolbar_item_data_set(Elm_Toolbar_Item *item, const void *data) EINA_ARG_NONNULL(1);
14509
14510    /**
14511     * Returns a pointer to a toolbar item by its label.
14512     *
14513     * @param obj The toolbar object.
14514     * @param label The label of the item to find.
14515     *
14516     * @return The pointer to the toolbar item matching @p label or @c NULL
14517     * on failure.
14518     *
14519     * @ingroup Toolbar
14520     */
14521    EAPI Elm_Toolbar_Item       *elm_toolbar_item_find_by_label(const Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
14522
14523    /*
14524     * Get whether the @p item is selected or not.
14525     *
14526     * @param item The toolbar item.
14527     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
14528     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
14529     *
14530     * @see elm_toolbar_selected_item_set() for details.
14531     * @see elm_toolbar_item_selected_get()
14532     *
14533     * @ingroup Toolbar
14534     */
14535    EAPI Eina_Bool               elm_toolbar_item_selected_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14536
14537    /**
14538     * Set the selected state of an item.
14539     *
14540     * @param item The toolbar item
14541     * @param selected The selected state
14542     *
14543     * This sets the selected state of the given item @p it.
14544     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
14545     *
14546     * If a new item is selected the previosly selected will be unselected.
14547     * Previoulsy selected item can be get with function
14548     * elm_toolbar_selected_item_get().
14549     *
14550     * Selected items will be highlighted.
14551     *
14552     * @see elm_toolbar_item_selected_get()
14553     * @see elm_toolbar_selected_item_get()
14554     *
14555     * @ingroup Toolbar
14556     */
14557    EAPI void                    elm_toolbar_item_selected_set(Elm_Toolbar_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
14558
14559    /**
14560     * Get the selected item.
14561     *
14562     * @param obj The toolbar object.
14563     * @return The selected toolbar item.
14564     *
14565     * The selected item can be unselected with function
14566     * elm_toolbar_item_selected_set().
14567     *
14568     * The selected item always will be highlighted on toolbar.
14569     *
14570     * @see elm_toolbar_selected_items_get()
14571     *
14572     * @ingroup Toolbar
14573     */
14574    EAPI Elm_Toolbar_Item       *elm_toolbar_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14575
14576    /**
14577     * Set the icon associated with @p item.
14578     *
14579     * @param obj The parent of this item.
14580     * @param item The toolbar item.
14581     * @param icon A string with icon name or the absolute path of an image file.
14582     *
14583     * Toolbar will load icon image from fdo or current theme.
14584     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14585     * If an absolute path is provided it will load it direct from a file.
14586     *
14587     * @see elm_toolbar_icon_order_lookup_set()
14588     * @see elm_toolbar_icon_order_lookup_get()
14589     *
14590     * @ingroup Toolbar
14591     */
14592    EAPI void                    elm_toolbar_item_icon_set(Elm_Toolbar_Item *item, const char *icon) EINA_ARG_NONNULL(1);
14593
14594    /**
14595     * Get the string used to set the icon of @p item.
14596     *
14597     * @param item The toolbar item.
14598     * @return The string associated with the icon object.
14599     *
14600     * @see elm_toolbar_item_icon_set() for details.
14601     *
14602     * @ingroup Toolbar
14603     */
14604    EAPI const char             *elm_toolbar_item_icon_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14605
14606    /**
14607     * Get the object of @p item.
14608     *
14609     * @param item The toolbar item.
14610     * @return The object
14611     *
14612     * @ingroup Toolbar
14613     */
14614    EAPI Evas_Object            *elm_toolbar_item_object_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14615
14616    /**
14617     * Get the icon object of @p item.
14618     *
14619     * @param item The toolbar item.
14620     * @return The icon object
14621     *
14622     * @see elm_toolbar_item_icon_set() or elm_toolbar_item_icon_memfile_set() for details.
14623     *
14624     * @ingroup Toolbar
14625     */
14626    EAPI Evas_Object            *elm_toolbar_item_icon_object_get(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14627
14628    /**
14629     * Set the icon associated with @p item to an image in a binary buffer.
14630     *
14631     * @param item The toolbar item.
14632     * @param img The binary data that will be used as an image
14633     * @param size The size of binary data @p img
14634     * @param format Optional format of @p img to pass to the image loader
14635     * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
14636     *
14637     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
14638     *
14639     * @note The icon image set by this function can be changed by
14640     * elm_toolbar_item_icon_set().
14641     * 
14642     * @ingroup Toolbar
14643     */
14644    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);
14645
14646    /**
14647     * Delete them item from the toolbar.
14648     *
14649     * @param item The item of toolbar to be deleted.
14650     *
14651     * @see elm_toolbar_item_append()
14652     * @see elm_toolbar_item_del_cb_set()
14653     *
14654     * @ingroup Toolbar
14655     */
14656    EAPI void                    elm_toolbar_item_del(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14657
14658    /**
14659     * Set the function called when a toolbar item is freed.
14660     *
14661     * @param item The item to set the callback on.
14662     * @param func The function called.
14663     *
14664     * If there is a @p func, then it will be called prior item's memory release.
14665     * That will be called with the following arguments:
14666     * @li item's data;
14667     * @li item's Evas object;
14668     * @li item itself;
14669     *
14670     * This way, a data associated to a toolbar item could be properly freed.
14671     *
14672     * @ingroup Toolbar
14673     */
14674    EAPI void                    elm_toolbar_item_del_cb_set(Elm_Toolbar_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
14675
14676    /**
14677     * Get a value whether toolbar item is disabled or not.
14678     *
14679     * @param item The item.
14680     * @return The disabled state.
14681     *
14682     * @see elm_toolbar_item_disabled_set() for more details.
14683     *
14684     * @ingroup Toolbar
14685     */
14686    EAPI Eina_Bool               elm_toolbar_item_disabled_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14687
14688    /**
14689     * Sets the disabled/enabled state of a toolbar item.
14690     *
14691     * @param item The item.
14692     * @param disabled The disabled state.
14693     *
14694     * A disabled item cannot be selected or unselected. It will also
14695     * change its appearance (generally greyed out). This sets the
14696     * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
14697     * enabled).
14698     *
14699     * @ingroup Toolbar
14700     */
14701    EAPI void                    elm_toolbar_item_disabled_set(Elm_Toolbar_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
14702
14703    /**
14704     * Set or unset item as a separator.
14705     *
14706     * @param item The toolbar item.
14707     * @param setting @c EINA_TRUE to set item @p item as separator or
14708     * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
14709     *
14710     * Items aren't set as separator by default.
14711     *
14712     * If set as separator it will display separator theme, so won't display
14713     * icons or label.
14714     *
14715     * @see elm_toolbar_item_separator_get()
14716     *
14717     * @ingroup Toolbar
14718     */
14719    EAPI void                    elm_toolbar_item_separator_set(Elm_Toolbar_Item *item, Eina_Bool separator) EINA_ARG_NONNULL(1);
14720
14721    /**
14722     * Get a value whether item is a separator or not.
14723     *
14724     * @param item The toolbar item.
14725     * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
14726     * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
14727     *
14728     * @see elm_toolbar_item_separator_set() for details.
14729     *
14730     * @ingroup Toolbar
14731     */
14732    EAPI Eina_Bool               elm_toolbar_item_separator_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14733
14734    /**
14735     * Set the shrink state of toolbar @p obj.
14736     *
14737     * @param obj The toolbar object.
14738     * @param shrink_mode Toolbar's items display behavior.
14739     *
14740     * The toolbar won't scroll if #ELM_TOOLBAR_SHRINK_NONE,
14741     * but will enforce a minimun size so all the items will fit, won't scroll
14742     * and won't show the items that don't fit if #ELM_TOOLBAR_SHRINK_HIDE,
14743     * will scroll if #ELM_TOOLBAR_SHRINK_SCROLL, and will create a button to
14744     * pop up excess elements with #ELM_TOOLBAR_SHRINK_MENU.
14745     *
14746     * @ingroup Toolbar
14747     */
14748    EAPI void                    elm_toolbar_mode_shrink_set(Evas_Object *obj, Elm_Toolbar_Shrink_Mode shrink_mode) EINA_ARG_NONNULL(1);
14749
14750    /**
14751     * Get the shrink mode of toolbar @p obj.
14752     *
14753     * @param obj The toolbar object.
14754     * @return Toolbar's items display behavior.
14755     *
14756     * @see elm_toolbar_mode_shrink_set() for details.
14757     *
14758     * @ingroup Toolbar
14759     */
14760    EAPI Elm_Toolbar_Shrink_Mode elm_toolbar_mode_shrink_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14761
14762    /**
14763     * Enable/disable homogenous mode.
14764     *
14765     * @param obj The toolbar object
14766     * @param homogeneous Assume the items within the toolbar are of the
14767     * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
14768     *
14769     * This will enable the homogeneous mode where items are of the same size.
14770     * @see elm_toolbar_homogeneous_get()
14771     *
14772     * @ingroup Toolbar
14773     */
14774    EAPI void                    elm_toolbar_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
14775
14776    /**
14777     * Get whether the homogenous mode is enabled.
14778     *
14779     * @param obj The toolbar object.
14780     * @return Assume the items within the toolbar are of the same height
14781     * and width (EINA_TRUE = on, EINA_FALSE = off).
14782     *
14783     * @see elm_toolbar_homogeneous_set()
14784     *
14785     * @ingroup Toolbar
14786     */
14787    EAPI Eina_Bool               elm_toolbar_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14788
14789    /**
14790     * Enable/disable homogenous mode.
14791     *
14792     * @param obj The toolbar object
14793     * @param homogeneous Assume the items within the toolbar are of the
14794     * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
14795     *
14796     * This will enable the homogeneous mode where items are of the same size.
14797     * @see elm_toolbar_homogeneous_get()
14798     *
14799     * @deprecated use elm_toolbar_homogeneous_set() instead.
14800     *
14801     * @ingroup Toolbar
14802     */
14803    EINA_DEPRECATED EAPI void    elm_toolbar_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
14804
14805    /**
14806     * Get whether the homogenous mode is enabled.
14807     *
14808     * @param obj The toolbar object.
14809     * @return Assume the items within the toolbar are of the same height
14810     * and width (EINA_TRUE = on, EINA_FALSE = off).
14811     *
14812     * @see elm_toolbar_homogeneous_set()
14813     * @deprecated use elm_toolbar_homogeneous_get() instead.
14814     *
14815     * @ingroup Toolbar
14816     */
14817    EINA_DEPRECATED EAPI Eina_Bool elm_toolbar_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14818
14819    /**
14820     * Set the parent object of the toolbar items' menus.
14821     *
14822     * @param obj The toolbar object.
14823     * @param parent The parent of the menu objects.
14824     *
14825     * Each item can be set as item menu, with elm_toolbar_item_menu_set().
14826     *
14827     * For more details about setting the parent for toolbar menus, see
14828     * elm_menu_parent_set().
14829     *
14830     * @see elm_menu_parent_set() for details.
14831     * @see elm_toolbar_item_menu_set() for details.
14832     *
14833     * @ingroup Toolbar
14834     */
14835    EAPI void                    elm_toolbar_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
14836
14837    /**
14838     * Get the parent object of the toolbar items' menus.
14839     *
14840     * @param obj The toolbar object.
14841     * @return The parent of the menu objects.
14842     *
14843     * @see elm_toolbar_menu_parent_set() for details.
14844     *
14845     * @ingroup Toolbar
14846     */
14847    EAPI Evas_Object            *elm_toolbar_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14848
14849    /**
14850     * Set the alignment of the items.
14851     *
14852     * @param obj The toolbar object.
14853     * @param align The new alignment, a float between <tt> 0.0 </tt>
14854     * and <tt> 1.0 </tt>.
14855     *
14856     * Alignment of toolbar items, from <tt> 0.0 </tt> to indicates to align
14857     * left, to <tt> 1.0 </tt>, to align to right. <tt> 0.5 </tt> centralize
14858     * items.
14859     *
14860     * Centered items by default.
14861     *
14862     * @see elm_toolbar_align_get()
14863     *
14864     * @ingroup Toolbar
14865     */
14866    EAPI void                    elm_toolbar_align_set(Evas_Object *obj, double align) EINA_ARG_NONNULL(1);
14867
14868    /**
14869     * Get the alignment of the items.
14870     *
14871     * @param obj The toolbar object.
14872     * @return toolbar items alignment, a float between <tt> 0.0 </tt> and
14873     * <tt> 1.0 </tt>.
14874     *
14875     * @see elm_toolbar_align_set() for details.
14876     *
14877     * @ingroup Toolbar
14878     */
14879    EAPI double                  elm_toolbar_align_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14880
14881    /**
14882     * Set whether the toolbar item opens a menu.
14883     *
14884     * @param item The toolbar item.
14885     * @param menu If @c EINA_TRUE, @p item will opens a menu when selected.
14886     *
14887     * A toolbar item can be set to be a menu, using this function.
14888     *
14889     * Once it is set to be a menu, it can be manipulated through the
14890     * menu-like function elm_toolbar_menu_parent_set() and the other
14891     * elm_menu functions, using the Evas_Object @c menu returned by
14892     * elm_toolbar_item_menu_get().
14893     *
14894     * So, items to be displayed in this item's menu should be added with
14895     * elm_menu_item_add().
14896     *
14897     * The following code exemplifies the most basic usage:
14898     * @code
14899     * tb = elm_toolbar_add(win)
14900     * item = elm_toolbar_item_append(tb, "refresh", "Menu", NULL, NULL);
14901     * elm_toolbar_item_menu_set(item, EINA_TRUE);
14902     * elm_toolbar_menu_parent_set(tb, win);
14903     * menu = elm_toolbar_item_menu_get(item);
14904     * elm_menu_item_add(menu, NULL, "edit-cut", "Cut", NULL, NULL);
14905     * menu_item = elm_menu_item_add(menu, NULL, "edit-copy", "Copy", NULL,
14906     * NULL);
14907     * @endcode
14908     *
14909     * @see elm_toolbar_item_menu_get()
14910     *
14911     * @ingroup Toolbar
14912     */
14913    EAPI void                    elm_toolbar_item_menu_set(Elm_Toolbar_Item *item, Eina_Bool menu) EINA_ARG_NONNULL(1);
14914
14915    /**
14916     * Get toolbar item's menu.
14917     *
14918     * @param item The toolbar item.
14919     * @return Item's menu object or @c NULL on failure.
14920     *
14921     * If @p item wasn't set as menu item with elm_toolbar_item_menu_set(),
14922     * this function will set it.
14923     *
14924     * @see elm_toolbar_item_menu_set() for details.
14925     *
14926     * @ingroup Toolbar
14927     */
14928    EAPI Evas_Object            *elm_toolbar_item_menu_get(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14929
14930    /**
14931     * Add a new state to @p item.
14932     *
14933     * @param item The item.
14934     * @param icon A string with icon name or the absolute path of an image file.
14935     * @param label The label of the new state.
14936     * @param func The function to call when the item is clicked when this
14937     * state is selected.
14938     * @param data The data to associate with the state.
14939     * @return The toolbar item state, or @c NULL upon failure.
14940     *
14941     * Toolbar will load icon image from fdo or current theme.
14942     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14943     * If an absolute path is provided it will load it direct from a file.
14944     *
14945     * States created with this function can be removed with
14946     * elm_toolbar_item_state_del().
14947     *
14948     * @see elm_toolbar_item_state_del()
14949     * @see elm_toolbar_item_state_sel()
14950     * @see elm_toolbar_item_state_get()
14951     *
14952     * @ingroup Toolbar
14953     */
14954    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);
14955
14956    /**
14957     * Delete a previoulsy added state to @p item.
14958     *
14959     * @param item The toolbar item.
14960     * @param state The state to be deleted.
14961     * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
14962     *
14963     * @see elm_toolbar_item_state_add()
14964     */
14965    EAPI Eina_Bool               elm_toolbar_item_state_del(Elm_Toolbar_Item *item, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
14966
14967    /**
14968     * Set @p state as the current state of @p it.
14969     *
14970     * @param it The item.
14971     * @param state The state to use.
14972     * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
14973     *
14974     * If @p state is @c NULL, it won't select any state and the default item's
14975     * icon and label will be used. It's the same behaviour than
14976     * elm_toolbar_item_state_unser().
14977     *
14978     * @see elm_toolbar_item_state_unset()
14979     *
14980     * @ingroup Toolbar
14981     */
14982    EAPI Eina_Bool               elm_toolbar_item_state_set(Elm_Toolbar_Item *it, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
14983
14984    /**
14985     * Unset the state of @p it.
14986     *
14987     * @param it The item.
14988     *
14989     * The default icon and label from this item will be displayed.
14990     *
14991     * @see elm_toolbar_item_state_set() for more details.
14992     *
14993     * @ingroup Toolbar
14994     */
14995    EAPI void                    elm_toolbar_item_state_unset(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
14996
14997    /**
14998     * Get the current state of @p it.
14999     *
15000     * @param item The item.
15001     * @return The selected state or @c NULL if none is selected or on failure.
15002     *
15003     * @see elm_toolbar_item_state_set() for details.
15004     * @see elm_toolbar_item_state_unset()
15005     * @see elm_toolbar_item_state_add()
15006     *
15007     * @ingroup Toolbar
15008     */
15009    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_get(const Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
15010
15011    /**
15012     * Get the state after selected state in toolbar's @p item.
15013     *
15014     * @param it The toolbar item to change state.
15015     * @return The state after current state, or @c NULL on failure.
15016     *
15017     * If last state is selected, this function will return first state.
15018     *
15019     * @see elm_toolbar_item_state_set()
15020     * @see elm_toolbar_item_state_add()
15021     *
15022     * @ingroup Toolbar
15023     */
15024    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_next(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
15025
15026    /**
15027     * Get the state before selected state in toolbar's @p item.
15028     *
15029     * @param it The toolbar item to change state.
15030     * @return The state before current state, or @c NULL on failure.
15031     *
15032     * If first state is selected, this function will return last state.
15033     *
15034     * @see elm_toolbar_item_state_set()
15035     * @see elm_toolbar_item_state_add()
15036     *
15037     * @ingroup Toolbar
15038     */
15039    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_prev(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
15040
15041    /**
15042     * Set the text to be shown in a given toolbar item's tooltips.
15043     *
15044     * @param item Target item.
15045     * @param text The text to set in the content.
15046     *
15047     * Setup the text as tooltip to object. The item can have only one tooltip,
15048     * so any previous tooltip data - set with this function or
15049     * elm_toolbar_item_tooltip_content_cb_set() - is removed.
15050     *
15051     * @see elm_object_tooltip_text_set() for more details.
15052     *
15053     * @ingroup Toolbar
15054     */
15055    EAPI void             elm_toolbar_item_tooltip_text_set(Elm_Toolbar_Item *item, const char *text) EINA_ARG_NONNULL(1);
15056
15057    /**
15058     * Set the content to be shown in the tooltip item.
15059     *
15060     * Setup the tooltip to item. The item can have only one tooltip,
15061     * so any previous tooltip data is removed. @p func(with @p data) will
15062     * be called every time that need show the tooltip and it should
15063     * return a valid Evas_Object. This object is then managed fully by
15064     * tooltip system and is deleted when the tooltip is gone.
15065     *
15066     * @param item the toolbar item being attached a tooltip.
15067     * @param func the function used to create the tooltip contents.
15068     * @param data what to provide to @a func as callback data/context.
15069     * @param del_cb called when data is not needed anymore, either when
15070     *        another callback replaces @a func, the tooltip is unset with
15071     *        elm_toolbar_item_tooltip_unset() or the owner @a item
15072     *        dies. This callback receives as the first parameter the
15073     *        given @a data, and @c event_info is the item.
15074     *
15075     * @see elm_object_tooltip_content_cb_set() for more details.
15076     *
15077     * @ingroup Toolbar
15078     */
15079    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);
15080
15081    /**
15082     * Unset tooltip from item.
15083     *
15084     * @param item toolbar item to remove previously set tooltip.
15085     *
15086     * Remove tooltip from item. The callback provided as del_cb to
15087     * elm_toolbar_item_tooltip_content_cb_set() will be called to notify
15088     * it is not used anymore.
15089     *
15090     * @see elm_object_tooltip_unset() for more details.
15091     * @see elm_toolbar_item_tooltip_content_cb_set()
15092     *
15093     * @ingroup Toolbar
15094     */
15095    EAPI void             elm_toolbar_item_tooltip_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15096
15097    /**
15098     * Sets a different style for this item tooltip.
15099     *
15100     * @note before you set a style you should define a tooltip with
15101     *       elm_toolbar_item_tooltip_content_cb_set() or
15102     *       elm_toolbar_item_tooltip_text_set()
15103     *
15104     * @param item toolbar item with tooltip already set.
15105     * @param style the theme style to use (default, transparent, ...)
15106     *
15107     * @see elm_object_tooltip_style_set() for more details.
15108     *
15109     * @ingroup Toolbar
15110     */
15111    EAPI void             elm_toolbar_item_tooltip_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
15112
15113    /**
15114     * Get the style for this item tooltip.
15115     *
15116     * @param item toolbar item with tooltip already set.
15117     * @return style the theme style in use, defaults to "default". If the
15118     *         object does not have a tooltip set, then NULL is returned.
15119     *
15120     * @see elm_object_tooltip_style_get() for more details.
15121     * @see elm_toolbar_item_tooltip_style_set()
15122     *
15123     * @ingroup Toolbar
15124     */
15125    EAPI const char      *elm_toolbar_item_tooltip_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15126
15127    /**
15128     * Set the type of mouse pointer/cursor decoration to be shown,
15129     * when the mouse pointer is over the given toolbar widget item
15130     *
15131     * @param item toolbar item to customize cursor on
15132     * @param cursor the cursor type's name
15133     *
15134     * This function works analogously as elm_object_cursor_set(), but
15135     * here the cursor's changing area is restricted to the item's
15136     * area, and not the whole widget's. Note that that item cursors
15137     * have precedence over widget cursors, so that a mouse over an
15138     * item with custom cursor set will always show @b that cursor.
15139     *
15140     * If this function is called twice for an object, a previously set
15141     * cursor will be unset on the second call.
15142     *
15143     * @see elm_object_cursor_set()
15144     * @see elm_toolbar_item_cursor_get()
15145     * @see elm_toolbar_item_cursor_unset()
15146     *
15147     * @ingroup Toolbar
15148     */
15149    EAPI void             elm_toolbar_item_cursor_set(Elm_Toolbar_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
15150
15151    /*
15152     * Get the type of mouse pointer/cursor decoration set to be shown,
15153     * when the mouse pointer is over the given toolbar widget item
15154     *
15155     * @param item toolbar item with custom cursor set
15156     * @return the cursor type's name or @c NULL, if no custom cursors
15157     * were set to @p item (and on errors)
15158     *
15159     * @see elm_object_cursor_get()
15160     * @see elm_toolbar_item_cursor_set()
15161     * @see elm_toolbar_item_cursor_unset()
15162     *
15163     * @ingroup Toolbar
15164     */
15165    EAPI const char      *elm_toolbar_item_cursor_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15166
15167    /**
15168     * Unset any custom mouse pointer/cursor decoration set to be
15169     * shown, when the mouse pointer is over the given toolbar widget
15170     * item, thus making it show the @b default cursor again.
15171     *
15172     * @param item a toolbar item
15173     *
15174     * Use this call to undo any custom settings on this item's cursor
15175     * decoration, bringing it back to defaults (no custom style set).
15176     *
15177     * @see elm_object_cursor_unset()
15178     * @see elm_toolbar_item_cursor_set()
15179     *
15180     * @ingroup Toolbar
15181     */
15182    EAPI void             elm_toolbar_item_cursor_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15183
15184    /**
15185     * Set a different @b style for a given custom cursor set for a
15186     * toolbar item.
15187     *
15188     * @param item toolbar item with custom cursor set
15189     * @param style the <b>theme style</b> to use (e.g. @c "default",
15190     * @c "transparent", etc)
15191     *
15192     * This function only makes sense when one is using custom mouse
15193     * cursor decorations <b>defined in a theme file</b>, which can have,
15194     * given a cursor name/type, <b>alternate styles</b> on it. It
15195     * works analogously as elm_object_cursor_style_set(), but here
15196     * applyed only to toolbar item objects.
15197     *
15198     * @warning Before you set a cursor style you should have definen a
15199     *       custom cursor previously on the item, with
15200     *       elm_toolbar_item_cursor_set()
15201     *
15202     * @see elm_toolbar_item_cursor_engine_only_set()
15203     * @see elm_toolbar_item_cursor_style_get()
15204     *
15205     * @ingroup Toolbar
15206     */
15207    EAPI void             elm_toolbar_item_cursor_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
15208
15209    /**
15210     * Get the current @b style set for a given toolbar item's custom
15211     * cursor
15212     *
15213     * @param item toolbar item with custom cursor set.
15214     * @return style the cursor style in use. If the object does not
15215     *         have a cursor set, then @c NULL is returned.
15216     *
15217     * @see elm_toolbar_item_cursor_style_set() for more details
15218     *
15219     * @ingroup Toolbar
15220     */
15221    EAPI const char      *elm_toolbar_item_cursor_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15222
15223    /**
15224     * Set if the (custom)cursor for a given toolbar item should be
15225     * searched in its theme, also, or should only rely on the
15226     * rendering engine.
15227     *
15228     * @param item item with custom (custom) cursor already set on
15229     * @param engine_only Use @c EINA_TRUE to have cursors looked for
15230     * only on those provided by the rendering engine, @c EINA_FALSE to
15231     * have them searched on the widget's theme, as well.
15232     *
15233     * @note This call is of use only if you've set a custom cursor
15234     * for toolbar items, with elm_toolbar_item_cursor_set().
15235     *
15236     * @note By default, cursors will only be looked for between those
15237     * provided by the rendering engine.
15238     *
15239     * @ingroup Toolbar
15240     */
15241    EAPI void             elm_toolbar_item_cursor_engine_only_set(Elm_Toolbar_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
15242
15243    /**
15244     * Get if the (custom) cursor for a given toolbar item is being
15245     * searched in its theme, also, or is only relying on the rendering
15246     * engine.
15247     *
15248     * @param item a toolbar item
15249     * @return @c EINA_TRUE, if cursors are being looked for only on
15250     * those provided by the rendering engine, @c EINA_FALSE if they
15251     * are being searched on the widget's theme, as well.
15252     *
15253     * @see elm_toolbar_item_cursor_engine_only_set(), for more details
15254     *
15255     * @ingroup Toolbar
15256     */
15257    EAPI Eina_Bool        elm_toolbar_item_cursor_engine_only_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15258
15259    /**
15260     * Change a toolbar's orientation
15261     * @param obj The toolbar object
15262     * @param vertical If @c EINA_TRUE, the toolbar is vertical
15263     * By default, a toolbar will be horizontal. Use this function to create a vertical toolbar.
15264     * @ingroup Toolbar
15265     * @deprecated use elm_toolbar_horizontal_set() instead.
15266     */
15267    EINA_DEPRECATED EAPI void             elm_toolbar_orientation_set(Evas_Object *obj, Eina_Bool vertical) EINA_ARG_NONNULL(1);
15268
15269    /**
15270     * Change a toolbar's orientation
15271     * @param obj The toolbar object
15272     * @param horizontal If @c EINA_TRUE, the toolbar is horizontal
15273     * By default, a toolbar will be horizontal. Use this function to create a vertical toolbar.
15274     * @ingroup Toolbar
15275     */
15276    EAPI void             elm_toolbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
15277
15278    /**
15279     * Get a toolbar's orientation
15280     * @param obj The toolbar object
15281     * @return If @c EINA_TRUE, the toolbar is vertical
15282     * By default, a toolbar will be horizontal. Use this function to determine whether a toolbar is vertical.
15283     * @ingroup Toolbar
15284     * @deprecated use elm_toolbar_horizontal_get() instead.
15285     */
15286    EINA_DEPRECATED EAPI Eina_Bool        elm_toolbar_orientation_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15287
15288    /**
15289     * Get a toolbar's orientation
15290     * @param obj The toolbar object
15291     * @return If @c EINA_TRUE, the toolbar is horizontal
15292     * By default, a toolbar will be horizontal. Use this function to determine whether a toolbar is vertical.
15293     * @ingroup Toolbar
15294     */
15295    EAPI Eina_Bool elm_toolbar_horizontal_get(const Evas_Object *obj);
15296    /**
15297     * @}
15298     */
15299
15300    /**
15301     * @defgroup Tooltips Tooltips
15302     *
15303     * The Tooltip is an (internal, for now) smart object used to show a
15304     * content in a frame on mouse hover of objects(or widgets), with
15305     * tips/information about them.
15306     *
15307     * @{
15308     */
15309
15310    EAPI double       elm_tooltip_delay_get(void);
15311    EAPI Eina_Bool    elm_tooltip_delay_set(double delay);
15312    EAPI void         elm_object_tooltip_show(Evas_Object *obj) EINA_ARG_NONNULL(1);
15313    EAPI void         elm_object_tooltip_hide(Evas_Object *obj) EINA_ARG_NONNULL(1);
15314    EAPI void         elm_object_tooltip_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1, 2);
15315    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);
15316    EAPI void         elm_object_tooltip_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
15317    EAPI void         elm_object_tooltip_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
15318    EAPI const char  *elm_object_tooltip_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15319
15320    /**
15321     * @defgroup Cursors Cursors
15322     *
15323     * The Elementary cursor is an internal smart object used to
15324     * customize the mouse cursor displayed over objects (or
15325     * widgets). In the most common scenario, the cursor decoration
15326     * comes from the graphical @b engine Elementary is running
15327     * on. Those engines may provide different decorations for cursors,
15328     * and Elementary provides functions to choose them (think of X11
15329     * cursors, as an example).
15330     *
15331     * There's also the possibility of, besides using engine provided
15332     * cursors, also use ones coming from Edje theming files. Both
15333     * globally and per widget, Elementary makes it possible for one to
15334     * make the cursors lookup to be held on engines only or on
15335     * Elementary's theme file, too. To set cursor's hot spot,
15336     * two data items should be added to cursor's theme: "hot_x" and
15337     * "hot_y", that are the offset from upper-left corner of the cursor
15338     * (coordinates 0,0).
15339     *
15340     * @{
15341     */
15342
15343    /**
15344     * Set the cursor to be shown when mouse is over the object
15345     *
15346     * Set the cursor that will be displayed when mouse is over the
15347     * object. The object can have only one cursor set to it, so if
15348     * this function is called twice for an object, the previous set
15349     * will be unset.
15350     * If using X cursors, a definition of all the valid cursor names
15351     * is listed on Elementary_Cursors.h. If an invalid name is set
15352     * the default cursor will be used.
15353     *
15354     * @param obj the object being set a cursor.
15355     * @param cursor the cursor name to be used.
15356     *
15357     * @ingroup Cursors
15358     */
15359    EAPI void         elm_object_cursor_set(Evas_Object *obj, const char *cursor) EINA_ARG_NONNULL(1);
15360
15361    /**
15362     * Get the cursor to be shown when mouse is over the object
15363     *
15364     * @param obj an object with cursor already set.
15365     * @return the cursor name.
15366     *
15367     * @ingroup Cursors
15368     */
15369    EAPI const char  *elm_object_cursor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15370
15371    /**
15372     * Unset cursor for object
15373     *
15374     * Unset cursor for object, and set the cursor to default if the mouse
15375     * was over this object.
15376     *
15377     * @param obj Target object
15378     * @see elm_object_cursor_set()
15379     *
15380     * @ingroup Cursors
15381     */
15382    EAPI void         elm_object_cursor_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
15383
15384    /**
15385     * Sets a different style for this object cursor.
15386     *
15387     * @note before you set a style you should define a cursor with
15388     *       elm_object_cursor_set()
15389     *
15390     * @param obj an object with cursor already set.
15391     * @param style the theme style to use (default, transparent, ...)
15392     *
15393     * @ingroup Cursors
15394     */
15395    EAPI void         elm_object_cursor_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
15396
15397    /**
15398     * Get the style for this object cursor.
15399     *
15400     * @param obj an object with cursor already set.
15401     * @return style the theme style in use, defaults to "default". If the
15402     *         object does not have a cursor set, then NULL is returned.
15403     *
15404     * @ingroup Cursors
15405     */
15406    EAPI const char  *elm_object_cursor_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15407
15408    /**
15409     * Set if the cursor set should be searched on the theme or should use
15410     * the provided by the engine, only.
15411     *
15412     * @note before you set if should look on theme you should define a cursor
15413     * with elm_object_cursor_set(). By default it will only look for cursors
15414     * provided by the engine.
15415     *
15416     * @param obj an object with cursor already set.
15417     * @param engine_only boolean to define it cursors should be looked only
15418     * between the provided by the engine or searched on widget's theme as well.
15419     *
15420     * @ingroup Cursors
15421     */
15422    EAPI void         elm_object_cursor_engine_only_set(Evas_Object *obj, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
15423
15424    /**
15425     * Get the cursor engine only usage for this object cursor.
15426     *
15427     * @param obj an object with cursor already set.
15428     * @return engine_only boolean to define it cursors should be
15429     * looked only between the provided by the engine or searched on
15430     * widget's theme as well. If the object does not have a cursor
15431     * set, then EINA_FALSE is returned.
15432     *
15433     * @ingroup Cursors
15434     */
15435    EAPI Eina_Bool    elm_object_cursor_engine_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15436
15437    /**
15438     * Get the configured cursor engine only usage
15439     *
15440     * This gets the globally configured exclusive usage of engine cursors.
15441     *
15442     * @return 1 if only engine cursors should be used
15443     * @ingroup Cursors
15444     */
15445    EAPI int          elm_cursor_engine_only_get(void);
15446
15447    /**
15448     * Set the configured cursor engine only usage
15449     *
15450     * This sets the globally configured exclusive usage of engine cursors.
15451     * It won't affect cursors set before changing this value.
15452     *
15453     * @param engine_only If 1 only engine cursors will be enabled, if 0 will
15454     * look for them on theme before.
15455     * @return EINA_TRUE if value is valid and setted (0 or 1)
15456     * @ingroup Cursors
15457     */
15458    EAPI Eina_Bool    elm_cursor_engine_only_set(int engine_only);
15459
15460    /**
15461     * @}
15462     */
15463
15464    /**
15465     * @defgroup Menu Menu
15466     *
15467     * @image html img/widget/menu/preview-00.png
15468     * @image latex img/widget/menu/preview-00.eps
15469     *
15470     * A menu is a list of items displayed above its parent. When the menu is
15471     * showing its parent is darkened. Each item can have a sub-menu. The menu
15472     * object can be used to display a menu on a right click event, in a toolbar,
15473     * anywhere.
15474     *
15475     * Signals that you can add callbacks for are:
15476     * @li "clicked" - the user clicked the empty space in the menu to dismiss.
15477     *             event_info is NULL.
15478     *
15479     * @see @ref tutorial_menu
15480     * @{
15481     */
15482    typedef struct _Elm_Menu_Item Elm_Menu_Item; /**< Item of Elm_Menu. Sub-type of Elm_Widget_Item */
15483    /**
15484     * @brief Add a new menu to the parent
15485     *
15486     * @param parent The parent object.
15487     * @return The new object or NULL if it cannot be created.
15488     */
15489    EAPI Evas_Object       *elm_menu_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
15490    /**
15491     * @brief Set the parent for the given menu widget
15492     *
15493     * @param obj The menu object.
15494     * @param parent The new parent.
15495     */
15496    EAPI void               elm_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
15497    /**
15498     * @brief Get the parent for the given menu widget
15499     *
15500     * @param obj The menu object.
15501     * @return The parent.
15502     *
15503     * @see elm_menu_parent_set()
15504     */
15505    EAPI Evas_Object       *elm_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15506    /**
15507     * @brief Move the menu to a new position
15508     *
15509     * @param obj The menu object.
15510     * @param x The new position.
15511     * @param y The new position.
15512     *
15513     * Sets the top-left position of the menu to (@p x,@p y).
15514     *
15515     * @note @p x and @p y coordinates are relative to parent.
15516     */
15517    EAPI void               elm_menu_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
15518    /**
15519     * @brief Close a opened menu
15520     *
15521     * @param obj the menu object
15522     * @return void
15523     *
15524     * Hides the menu and all it's sub-menus.
15525     */
15526    EAPI void               elm_menu_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
15527    /**
15528     * @brief Returns a list of @p item's items.
15529     *
15530     * @param obj The menu object
15531     * @return An Eina_List* of @p item's items
15532     */
15533    EAPI const Eina_List   *elm_menu_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15534    /**
15535     * @brief Get the Evas_Object of an Elm_Menu_Item
15536     *
15537     * @param item The menu item object.
15538     * @return The edje object containing the swallowed content
15539     *
15540     * @warning Don't manipulate this object!
15541     */
15542    EAPI Evas_Object       *elm_menu_item_object_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
15543    /**
15544     * @brief Add an item at the end of the given menu widget
15545     *
15546     * @param obj The menu object.
15547     * @param parent The parent menu item (optional)
15548     * @param icon A icon display on the item. The icon will be destryed by the menu.
15549     * @param label The label of the item.
15550     * @param func Function called when the user select the item.
15551     * @param data Data sent by the callback.
15552     * @return Returns the new item.
15553     */
15554    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);
15555    /**
15556     * @brief Set the label of a menu item
15557     *
15558     * @param item The menu item object.
15559     * @param label The label to set for @p item
15560     *
15561     * @warning Don't use this funcion on items created with
15562     * elm_menu_item_add_object() or elm_menu_item_separator_add().
15563     */
15564    EAPI void               elm_menu_item_label_set(Elm_Menu_Item *item, const char *label) EINA_ARG_NONNULL(1);
15565    /**
15566     * @brief Get the label of a menu item
15567     *
15568     * @param item The menu item object.
15569     * @return The label of @p item
15570     */
15571    EAPI const char        *elm_menu_item_label_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
15572    EAPI void               elm_menu_item_icon_set(Elm_Menu_Item *item, const char *icon) EINA_ARG_NONNULL(1, 2);
15573    EAPI const char        *elm_menu_item_icon_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
15574    EAPI const Evas_Object *elm_menu_item_object_icon_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
15575
15576    /**
15577     * @brief Set the selected state of @p item.
15578     *
15579     * @param item The menu item object.
15580     * @param selected The selected/unselected state of the item
15581     */
15582    EAPI void               elm_menu_item_selected_set(Elm_Menu_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
15583    /**
15584     * @brief Get the selected state of @p item.
15585     *
15586     * @param item The menu item object.
15587     * @return The selected/unselected state of the item
15588     *
15589     * @see elm_menu_item_selected_set()
15590     */
15591    EAPI Eina_Bool          elm_menu_item_selected_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
15592    /**
15593     * @brief Set the disabled state of @p item.
15594     *
15595     * @param item The menu item object.
15596     * @param disabled The enabled/disabled state of the item
15597     */
15598    EAPI void               elm_menu_item_disabled_set(Elm_Menu_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
15599    /**
15600     * @brief Get the disabled state of @p item.
15601     *
15602     * @param item The menu item object.
15603     * @return The enabled/disabled state of the item
15604     *
15605     * @see elm_menu_item_disabled_set()
15606     */
15607    EAPI Eina_Bool          elm_menu_item_disabled_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
15608    /**
15609     * @brief Add a separator item to menu @p obj under @p parent.
15610     *
15611     * @param obj The menu object
15612     * @param parent The item to add the separator under
15613     * @return The created item or NULL on failure
15614     *
15615     * This is item is a @ref Separator.
15616     */
15617    EAPI Elm_Menu_Item     *elm_menu_item_separator_add(Evas_Object *obj, Elm_Menu_Item *parent) EINA_ARG_NONNULL(1);
15618    /**
15619     * @brief Returns whether @p item is a separator.
15620     *
15621     * @param item The item to check
15622     * @return If true, @p item is a separator
15623     *
15624     * @see elm_menu_item_separator_add()
15625     */
15626    EAPI Eina_Bool          elm_menu_item_is_separator(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
15627    /**
15628     * @brief Deletes an item from the menu.
15629     *
15630     * @param item The item to delete.
15631     *
15632     * @see elm_menu_item_add()
15633     */
15634    EAPI void               elm_menu_item_del(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
15635    /**
15636     * @brief Set the function called when a menu item is deleted.
15637     *
15638     * @param item The item to set the callback on
15639     * @param func The function called
15640     *
15641     * @see elm_menu_item_add()
15642     * @see elm_menu_item_del()
15643     */
15644    EAPI void               elm_menu_item_del_cb_set(Elm_Menu_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
15645    /**
15646     * @brief Returns the data associated with menu item @p item.
15647     *
15648     * @param item The item
15649     * @return The data associated with @p item or NULL if none was set.
15650     *
15651     * This is the data set with elm_menu_add() or elm_menu_item_data_set().
15652     */
15653    EAPI void              *elm_menu_item_data_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
15654    /**
15655     * @brief Sets the data to be associated with menu item @p item.
15656     *
15657     * @param item The item
15658     * @param data The data to be associated with @p item
15659     */
15660    EAPI void               elm_menu_item_data_set(Elm_Menu_Item *item, const void *data) EINA_ARG_NONNULL(1);
15661    /**
15662     * @brief Returns a list of @p item's subitems.
15663     *
15664     * @param item The item
15665     * @return An Eina_List* of @p item's subitems
15666     *
15667     * @see elm_menu_add()
15668     */
15669    EAPI const Eina_List   *elm_menu_item_subitems_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
15670    EAPI const Elm_Menu_Item *elm_menu_selected_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
15671    EAPI const Elm_Menu_Item *elm_menu_last_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
15672    EAPI const Elm_Menu_Item *elm_menu_first_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
15673    EAPI const Elm_Menu_Item *elm_menu_item_next_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
15674    EAPI const Elm_Menu_Item *elm_menu_item_prev_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
15675
15676    /**
15677     * @}
15678     */
15679
15680    /**
15681     * @defgroup List List
15682     * @ingroup Elementary
15683     *
15684     * @image html img/widget/list/preview-00.png
15685     * @image latex img/widget/list/preview-00.eps width=\textwidth
15686     *
15687     * @image html img/list.png
15688     * @image latex img/list.eps width=\textwidth
15689     *
15690     * A list widget is a container whose children are displayed vertically or
15691     * horizontally, in order, and can be selected.
15692     * The list can accept only one or multiple items selection. Also has many
15693     * modes of items displaying.
15694     *
15695     * A list is a very simple type of list widget.  For more robust
15696     * lists, @ref Genlist should probably be used.
15697     *
15698     * Smart callbacks one can listen to:
15699     * - @c "activated" - The user has double-clicked or pressed
15700     *   (enter|return|spacebar) on an item. The @c event_info parameter
15701     *   is the item that was activated.
15702     * - @c "clicked,double" - The user has double-clicked an item.
15703     *   The @c event_info parameter is the item that was double-clicked.
15704     * - "selected" - when the user selected an item
15705     * - "unselected" - when the user unselected an item
15706     * - "longpressed" - an item in the list is long-pressed
15707     * - "edge,top" - the list is scrolled until the top edge
15708     * - "edge,bottom" - the list is scrolled until the bottom edge
15709     * - "edge,left" - the list is scrolled until the left edge
15710     * - "edge,right" - the list is scrolled until the right edge
15711     * - "language,changed" - the program's language changed
15712     *
15713     * Available styles for it:
15714     * - @c "default"
15715     *
15716     * List of examples:
15717     * @li @ref list_example_01
15718     * @li @ref list_example_02
15719     * @li @ref list_example_03
15720     */
15721
15722    /**
15723     * @addtogroup List
15724     * @{
15725     */
15726
15727    /**
15728     * @enum _Elm_List_Mode
15729     * @typedef Elm_List_Mode
15730     *
15731     * Set list's resize behavior, transverse axis scroll and
15732     * items cropping. See each mode's description for more details.
15733     *
15734     * @note Default value is #ELM_LIST_SCROLL.
15735     *
15736     * Values <b> don't </b> work as bitmask, only one can be choosen.
15737     *
15738     * @see elm_list_mode_set()
15739     * @see elm_list_mode_get()
15740     *
15741     * @ingroup List
15742     */
15743    typedef enum _Elm_List_Mode
15744      {
15745         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. */
15746         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). */
15747         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. */
15748         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. */
15749         ELM_LIST_LAST /**< Indicates error if returned by elm_list_mode_get() */
15750      } Elm_List_Mode;
15751
15752    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().  */
15753
15754    /**
15755     * Add a new list widget to the given parent Elementary
15756     * (container) object.
15757     *
15758     * @param parent The parent object.
15759     * @return a new list widget handle or @c NULL, on errors.
15760     *
15761     * This function inserts a new list widget on the canvas.
15762     *
15763     * @ingroup List
15764     */
15765    EAPI Evas_Object     *elm_list_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
15766
15767    /**
15768     * Starts the list.
15769     *
15770     * @param obj The list object
15771     *
15772     * @note Call before running show() on the list object.
15773     * @warning If not called, it won't display the list properly.
15774     *
15775     * @code
15776     * li = elm_list_add(win);
15777     * elm_list_item_append(li, "First", NULL, NULL, NULL, NULL);
15778     * elm_list_item_append(li, "Second", NULL, NULL, NULL, NULL);
15779     * elm_list_go(li);
15780     * evas_object_show(li);
15781     * @endcode
15782     *
15783     * @ingroup List
15784     */
15785    EAPI void             elm_list_go(Evas_Object *obj) EINA_ARG_NONNULL(1);
15786
15787    /**
15788     * Enable or disable multiple items selection on the list object.
15789     *
15790     * @param obj The list object
15791     * @param multi @c EINA_TRUE to enable multi selection or @c EINA_FALSE to
15792     * disable it.
15793     *
15794     * Disabled by default. If disabled, the user can select a single item of
15795     * the list each time. Selected items are highlighted on list.
15796     * If enabled, many items can be selected.
15797     *
15798     * If a selected item is selected again, it will be unselected.
15799     *
15800     * @see elm_list_multi_select_get()
15801     *
15802     * @ingroup List
15803     */
15804    EAPI void             elm_list_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
15805
15806    /**
15807     * Get a value whether multiple items selection is enabled or not.
15808     *
15809     * @see elm_list_multi_select_set() for details.
15810     *
15811     * @param obj The list object.
15812     * @return @c EINA_TRUE means multiple items selection is enabled.
15813     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
15814     * @c EINA_FALSE is returned.
15815     *
15816     * @ingroup List
15817     */
15818    EAPI Eina_Bool        elm_list_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15819
15820    /**
15821     * Set which mode to use for the list object.
15822     *
15823     * @param obj The list object
15824     * @param mode One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
15825     * #ELM_LIST_LIMIT or #ELM_LIST_EXPAND.
15826     *
15827     * Set list's resize behavior, transverse axis scroll and
15828     * items cropping. See each mode's description for more details.
15829     *
15830     * @note Default value is #ELM_LIST_SCROLL.
15831     *
15832     * Only one can be set, if a previous one was set, it will be changed
15833     * by the new mode set. Bitmask won't work as well.
15834     *
15835     * @see elm_list_mode_get()
15836     *
15837     * @ingroup List
15838     */
15839    EAPI void             elm_list_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
15840
15841    /**
15842     * Get the mode the list is at.
15843     *
15844     * @param obj The list object
15845     * @return One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
15846     * #ELM_LIST_LIMIT, #ELM_LIST_EXPAND or #ELM_LIST_LAST on errors.
15847     *
15848     * @note see elm_list_mode_set() for more information.
15849     *
15850     * @ingroup List
15851     */
15852    EAPI Elm_List_Mode    elm_list_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15853
15854    /**
15855     * Enable or disable horizontal mode on the list object.
15856     *
15857     * @param obj The list object.
15858     * @param horizontal @c EINA_TRUE to enable horizontal or @c EINA_FALSE to
15859     * disable it, i.e., to enable vertical mode.
15860     *
15861     * @note Vertical mode is set by default.
15862     *
15863     * On horizontal mode items are displayed on list from left to right,
15864     * instead of from top to bottom. Also, the list will scroll horizontally.
15865     * Each item will presents left icon on top and right icon, or end, at
15866     * the bottom.
15867     *
15868     * @see elm_list_horizontal_get()
15869     *
15870     * @ingroup List
15871     */
15872    EAPI void             elm_list_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
15873
15874    /**
15875     * Get a value whether horizontal mode is enabled or not.
15876     *
15877     * @param obj The list object.
15878     * @return @c EINA_TRUE means horizontal mode selection is enabled.
15879     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
15880     * @c EINA_FALSE is returned.
15881     *
15882     * @see elm_list_horizontal_set() for details.
15883     *
15884     * @ingroup List
15885     */
15886    EAPI Eina_Bool        elm_list_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15887
15888    /**
15889     * Enable or disable always select mode on the list object.
15890     *
15891     * @param obj The list object
15892     * @param always_select @c EINA_TRUE to enable always select mode or
15893     * @c EINA_FALSE to disable it.
15894     *
15895     * @note Always select mode is disabled by default.
15896     *
15897     * Default behavior of list items is to only call its callback function
15898     * the first time it's pressed, i.e., when it is selected. If a selected
15899     * item is pressed again, and multi-select is disabled, it won't call
15900     * this function (if multi-select is enabled it will unselect the item).
15901     *
15902     * If always select is enabled, it will call the callback function
15903     * everytime a item is pressed, so it will call when the item is selected,
15904     * and again when a selected item is pressed.
15905     *
15906     * @see elm_list_always_select_mode_get()
15907     * @see elm_list_multi_select_set()
15908     *
15909     * @ingroup List
15910     */
15911    EAPI void             elm_list_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
15912
15913    /**
15914     * Get a value whether always select mode is enabled or not, meaning that
15915     * an item will always call its callback function, even if already selected.
15916     *
15917     * @param obj The list object
15918     * @return @c EINA_TRUE means horizontal mode selection is enabled.
15919     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
15920     * @c EINA_FALSE is returned.
15921     *
15922     * @see elm_list_always_select_mode_set() for details.
15923     *
15924     * @ingroup List
15925     */
15926    EAPI Eina_Bool        elm_list_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15927
15928    /**
15929     * Set bouncing behaviour when the scrolled content reaches an edge.
15930     *
15931     * Tell the internal scroller object whether it should bounce or not
15932     * when it reaches the respective edges for each axis.
15933     *
15934     * @param obj The list object
15935     * @param h_bounce Whether to bounce or not in the horizontal axis.
15936     * @param v_bounce Whether to bounce or not in the vertical axis.
15937     *
15938     * @see elm_scroller_bounce_set()
15939     *
15940     * @ingroup List
15941     */
15942    EAPI void             elm_list_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
15943
15944    /**
15945     * Get the bouncing behaviour of the internal scroller.
15946     *
15947     * Get whether the internal scroller should bounce when the edge of each
15948     * axis is reached scrolling.
15949     *
15950     * @param obj The list object.
15951     * @param h_bounce Pointer where to store the bounce state of the horizontal
15952     * axis.
15953     * @param v_bounce Pointer where to store the bounce state of the vertical
15954     * axis.
15955     *
15956     * @see elm_scroller_bounce_get()
15957     * @see elm_list_bounce_set()
15958     *
15959     * @ingroup List
15960     */
15961    EAPI void             elm_list_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
15962
15963    /**
15964     * Set the scrollbar policy.
15965     *
15966     * @param obj The list object
15967     * @param policy_h Horizontal scrollbar policy.
15968     * @param policy_v Vertical scrollbar policy.
15969     *
15970     * This sets the scrollbar visibility policy for the given scroller.
15971     * #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it
15972     * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
15973     * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
15974     * This applies respectively for the horizontal and vertical scrollbars.
15975     *
15976     * The both are disabled by default, i.e., are set to
15977     * #ELM_SCROLLER_POLICY_OFF.
15978     *
15979     * @ingroup List
15980     */
15981    EAPI void             elm_list_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
15982
15983    /**
15984     * Get the scrollbar policy.
15985     *
15986     * @see elm_list_scroller_policy_get() for details.
15987     *
15988     * @param obj The list object.
15989     * @param policy_h Pointer where to store horizontal scrollbar policy.
15990     * @param policy_v Pointer where to store vertical scrollbar policy.
15991     *
15992     * @ingroup List
15993     */
15994    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);
15995
15996    /**
15997     * Append a new item to the list object.
15998     *
15999     * @param obj The list object.
16000     * @param label The label of the list item.
16001     * @param icon The icon object to use for the left side of the item. An
16002     * icon can be any Evas object, but usually it is an icon created
16003     * with elm_icon_add().
16004     * @param end The icon object to use for the right side of the item. An
16005     * icon can be any Evas object.
16006     * @param func The function to call when the item is clicked.
16007     * @param data The data to associate with the item for related callbacks.
16008     *
16009     * @return The created item or @c NULL upon failure.
16010     *
16011     * A new item will be created and appended to the list, i.e., will
16012     * be set as @b last item.
16013     *
16014     * Items created with this method can be deleted with
16015     * elm_list_item_del().
16016     *
16017     * Associated @p data can be properly freed when item is deleted if a
16018     * callback function is set with elm_list_item_del_cb_set().
16019     *
16020     * If a function is passed as argument, it will be called everytime this item
16021     * is selected, i.e., the user clicks over an unselected item.
16022     * If always select is enabled it will call this function every time
16023     * user clicks over an item (already selected or not).
16024     * If such function isn't needed, just passing
16025     * @c NULL as @p func is enough. The same should be done for @p data.
16026     *
16027     * Simple example (with no function callback or data associated):
16028     * @code
16029     * li = elm_list_add(win);
16030     * ic = elm_icon_add(win);
16031     * elm_icon_file_set(ic, "path/to/image", NULL);
16032     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
16033     * elm_list_item_append(li, "label", ic, NULL, NULL, NULL);
16034     * elm_list_go(li);
16035     * evas_object_show(li);
16036     * @endcode
16037     *
16038     * @see elm_list_always_select_mode_set()
16039     * @see elm_list_item_del()
16040     * @see elm_list_item_del_cb_set()
16041     * @see elm_list_clear()
16042     * @see elm_icon_add()
16043     *
16044     * @ingroup List
16045     */
16046    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);
16047
16048    /**
16049     * Prepend a new item to the list object.
16050     *
16051     * @param obj The list object.
16052     * @param label The label of the list item.
16053     * @param icon The icon object to use for the left side of the item. An
16054     * icon can be any Evas object, but usually it is an icon created
16055     * with elm_icon_add().
16056     * @param end The icon object to use for the right side of the item. An
16057     * icon can be any Evas object.
16058     * @param func The function to call when the item is clicked.
16059     * @param data The data to associate with the item for related callbacks.
16060     *
16061     * @return The created item or @c NULL upon failure.
16062     *
16063     * A new item will be created and prepended to the list, i.e., will
16064     * be set as @b first item.
16065     *
16066     * Items created with this method can be deleted with
16067     * elm_list_item_del().
16068     *
16069     * Associated @p data can be properly freed when item is deleted if a
16070     * callback function is set with elm_list_item_del_cb_set().
16071     *
16072     * If a function is passed as argument, it will be called everytime this item
16073     * is selected, i.e., the user clicks over an unselected item.
16074     * If always select is enabled it will call this function every time
16075     * user clicks over an item (already selected or not).
16076     * If such function isn't needed, just passing
16077     * @c NULL as @p func is enough. The same should be done for @p data.
16078     *
16079     * @see elm_list_item_append() for a simple code example.
16080     * @see elm_list_always_select_mode_set()
16081     * @see elm_list_item_del()
16082     * @see elm_list_item_del_cb_set()
16083     * @see elm_list_clear()
16084     * @see elm_icon_add()
16085     *
16086     * @ingroup List
16087     */
16088    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);
16089
16090    /**
16091     * Insert a new item into the list object before item @p before.
16092     *
16093     * @param obj The list object.
16094     * @param before The list item to insert before.
16095     * @param label The label of the list item.
16096     * @param icon The icon object to use for the left side of the item. An
16097     * icon can be any Evas object, but usually it is an icon created
16098     * with elm_icon_add().
16099     * @param end The icon object to use for the right side of the item. An
16100     * icon can be any Evas object.
16101     * @param func The function to call when the item is clicked.
16102     * @param data The data to associate with the item for related callbacks.
16103     *
16104     * @return The created item or @c NULL upon failure.
16105     *
16106     * A new item will be created and added to the list. Its position in
16107     * this list will be just before item @p before.
16108     *
16109     * Items created with this method can be deleted with
16110     * elm_list_item_del().
16111     *
16112     * Associated @p data can be properly freed when item is deleted if a
16113     * callback function is set with elm_list_item_del_cb_set().
16114     *
16115     * If a function is passed as argument, it will be called everytime this item
16116     * is selected, i.e., the user clicks over an unselected item.
16117     * If always select is enabled it will call this function every time
16118     * user clicks over an item (already selected or not).
16119     * If such function isn't needed, just passing
16120     * @c NULL as @p func is enough. The same should be done for @p data.
16121     *
16122     * @see elm_list_item_append() for a simple code example.
16123     * @see elm_list_always_select_mode_set()
16124     * @see elm_list_item_del()
16125     * @see elm_list_item_del_cb_set()
16126     * @see elm_list_clear()
16127     * @see elm_icon_add()
16128     *
16129     * @ingroup List
16130     */
16131    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);
16132
16133    /**
16134     * Insert a new item into the list object after item @p after.
16135     *
16136     * @param obj The list object.
16137     * @param after The list item to insert after.
16138     * @param label The label of the list item.
16139     * @param icon The icon object to use for the left side of the item. An
16140     * icon can be any Evas object, but usually it is an icon created
16141     * with elm_icon_add().
16142     * @param end The icon object to use for the right side of the item. An
16143     * icon can be any Evas object.
16144     * @param func The function to call when the item is clicked.
16145     * @param data The data to associate with the item for related callbacks.
16146     *
16147     * @return The created item or @c NULL upon failure.
16148     *
16149     * A new item will be created and added to the list. Its position in
16150     * this list will be just after item @p after.
16151     *
16152     * Items created with this method can be deleted with
16153     * elm_list_item_del().
16154     *
16155     * Associated @p data can be properly freed when item is deleted if a
16156     * callback function is set with elm_list_item_del_cb_set().
16157     *
16158     * If a function is passed as argument, it will be called everytime this item
16159     * is selected, i.e., the user clicks over an unselected item.
16160     * If always select is enabled it will call this function every time
16161     * user clicks over an item (already selected or not).
16162     * If such function isn't needed, just passing
16163     * @c NULL as @p func is enough. The same should be done for @p data.
16164     *
16165     * @see elm_list_item_append() for a simple code example.
16166     * @see elm_list_always_select_mode_set()
16167     * @see elm_list_item_del()
16168     * @see elm_list_item_del_cb_set()
16169     * @see elm_list_clear()
16170     * @see elm_icon_add()
16171     *
16172     * @ingroup List
16173     */
16174    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);
16175
16176    /**
16177     * Insert a new item into the sorted list object.
16178     *
16179     * @param obj The list object.
16180     * @param label The label of the list item.
16181     * @param icon The icon object to use for the left side of the item. An
16182     * icon can be any Evas object, but usually it is an icon created
16183     * with elm_icon_add().
16184     * @param end The icon object to use for the right side of the item. An
16185     * icon can be any Evas object.
16186     * @param func The function to call when the item is clicked.
16187     * @param data The data to associate with the item for related callbacks.
16188     * @param cmp_func The comparing function to be used to sort list
16189     * items <b>by #Elm_List_Item item handles</b>. This function will
16190     * receive two items and compare them, returning a non-negative integer
16191     * if the second item should be place after the first, or negative value
16192     * if should be placed before.
16193     *
16194     * @return The created item or @c NULL upon failure.
16195     *
16196     * @note This function inserts values into a list object assuming it was
16197     * sorted and the result will be sorted.
16198     *
16199     * A new item will be created and added to the list. Its position in
16200     * this list will be found comparing the new item with previously inserted
16201     * items using function @p cmp_func.
16202     *
16203     * Items created with this method can be deleted with
16204     * elm_list_item_del().
16205     *
16206     * Associated @p data can be properly freed when item is deleted if a
16207     * callback function is set with elm_list_item_del_cb_set().
16208     *
16209     * If a function is passed as argument, it will be called everytime this item
16210     * is selected, i.e., the user clicks over an unselected item.
16211     * If always select is enabled it will call this function every time
16212     * user clicks over an item (already selected or not).
16213     * If such function isn't needed, just passing
16214     * @c NULL as @p func is enough. The same should be done for @p data.
16215     *
16216     * @see elm_list_item_append() for a simple code example.
16217     * @see elm_list_always_select_mode_set()
16218     * @see elm_list_item_del()
16219     * @see elm_list_item_del_cb_set()
16220     * @see elm_list_clear()
16221     * @see elm_icon_add()
16222     *
16223     * @ingroup List
16224     */
16225    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);
16226
16227    /**
16228     * Remove all list's items.
16229     *
16230     * @param obj The list object
16231     *
16232     * @see elm_list_item_del()
16233     * @see elm_list_item_append()
16234     *
16235     * @ingroup List
16236     */
16237    EAPI void             elm_list_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
16238
16239    /**
16240     * Get a list of all the list items.
16241     *
16242     * @param obj The list object
16243     * @return An @c Eina_List of list items, #Elm_List_Item,
16244     * or @c NULL on failure.
16245     *
16246     * @see elm_list_item_append()
16247     * @see elm_list_item_del()
16248     * @see elm_list_clear()
16249     *
16250     * @ingroup List
16251     */
16252    EAPI const Eina_List *elm_list_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16253
16254    /**
16255     * Get the selected item.
16256     *
16257     * @param obj The list object.
16258     * @return The selected list item.
16259     *
16260     * The selected item can be unselected with function
16261     * elm_list_item_selected_set().
16262     *
16263     * The selected item always will be highlighted on list.
16264     *
16265     * @see elm_list_selected_items_get()
16266     *
16267     * @ingroup List
16268     */
16269    EAPI Elm_List_Item   *elm_list_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16270
16271    /**
16272     * Return a list of the currently selected list items.
16273     *
16274     * @param obj The list object.
16275     * @return An @c Eina_List of list items, #Elm_List_Item,
16276     * or @c NULL on failure.
16277     *
16278     * Multiple items can be selected if multi select is enabled. It can be
16279     * done with elm_list_multi_select_set().
16280     *
16281     * @see elm_list_selected_item_get()
16282     * @see elm_list_multi_select_set()
16283     *
16284     * @ingroup List
16285     */
16286    EAPI const Eina_List *elm_list_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16287
16288    /**
16289     * Set the selected state of an item.
16290     *
16291     * @param item The list item
16292     * @param selected The selected state
16293     *
16294     * This sets the selected state of the given item @p it.
16295     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
16296     *
16297     * If a new item is selected the previosly selected will be unselected,
16298     * unless multiple selection is enabled with elm_list_multi_select_set().
16299     * Previoulsy selected item can be get with function
16300     * elm_list_selected_item_get().
16301     *
16302     * Selected items will be highlighted.
16303     *
16304     * @see elm_list_item_selected_get()
16305     * @see elm_list_selected_item_get()
16306     * @see elm_list_multi_select_set()
16307     *
16308     * @ingroup List
16309     */
16310    EAPI void             elm_list_item_selected_set(Elm_List_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
16311
16312    /*
16313     * Get whether the @p item is selected or not.
16314     *
16315     * @param item The list item.
16316     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
16317     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
16318     *
16319     * @see elm_list_selected_item_set() for details.
16320     * @see elm_list_item_selected_get()
16321     *
16322     * @ingroup List
16323     */
16324    EAPI Eina_Bool        elm_list_item_selected_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
16325
16326    /**
16327     * Set or unset item as a separator.
16328     *
16329     * @param it The list item.
16330     * @param setting @c EINA_TRUE to set item @p it as separator or
16331     * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
16332     *
16333     * Items aren't set as separator by default.
16334     *
16335     * If set as separator it will display separator theme, so won't display
16336     * icons or label.
16337     *
16338     * @see elm_list_item_separator_get()
16339     *
16340     * @ingroup List
16341     */
16342    EAPI void             elm_list_item_separator_set(Elm_List_Item *it, Eina_Bool setting) EINA_ARG_NONNULL(1);
16343
16344    /**
16345     * Get a value whether item is a separator or not.
16346     *
16347     * @see elm_list_item_separator_set() for details.
16348     *
16349     * @param it The list item.
16350     * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
16351     * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
16352     *
16353     * @ingroup List
16354     */
16355    EAPI Eina_Bool        elm_list_item_separator_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
16356
16357    /**
16358     * Show @p item in the list view.
16359     *
16360     * @param item The list item to be shown.
16361     *
16362     * It won't animate list until item is visible. If such behavior is wanted,
16363     * use elm_list_bring_in() intead.
16364     *
16365     * @ingroup List
16366     */
16367    EAPI void             elm_list_item_show(Elm_List_Item *item) EINA_ARG_NONNULL(1);
16368
16369    /**
16370     * Bring in the given item to list view.
16371     *
16372     * @param item The item.
16373     *
16374     * This causes list to jump to the given item @p item and show it
16375     * (by scrolling), if it is not fully visible.
16376     *
16377     * This may use animation to do so and take a period of time.
16378     *
16379     * If animation isn't wanted, elm_list_item_show() can be used.
16380     *
16381     * @ingroup List
16382     */
16383    EAPI void             elm_list_item_bring_in(Elm_List_Item *item) EINA_ARG_NONNULL(1);
16384
16385    /**
16386     * Delete them item from the list.
16387     *
16388     * @param item The item of list to be deleted.
16389     *
16390     * If deleting all list items is required, elm_list_clear()
16391     * should be used instead of getting items list and deleting each one.
16392     *
16393     * @see elm_list_clear()
16394     * @see elm_list_item_append()
16395     * @see elm_list_item_del_cb_set()
16396     *
16397     * @ingroup List
16398     */
16399    EAPI void             elm_list_item_del(Elm_List_Item *item) EINA_ARG_NONNULL(1);
16400
16401    /**
16402     * Set the function called when a list item is freed.
16403     *
16404     * @param item The item to set the callback on
16405     * @param func The function called
16406     *
16407     * If there is a @p func, then it will be called prior item's memory release.
16408     * That will be called with the following arguments:
16409     * @li item's data;
16410     * @li item's Evas object;
16411     * @li item itself;
16412     *
16413     * This way, a data associated to a list item could be properly freed.
16414     *
16415     * @ingroup List
16416     */
16417    EAPI void             elm_list_item_del_cb_set(Elm_List_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
16418
16419    /**
16420     * Get the data associated to the item.
16421     *
16422     * @param item The list item
16423     * @return The data associated to @p item
16424     *
16425     * The return value is a pointer to data associated to @p item when it was
16426     * created, with function elm_list_item_append() or similar. If no data
16427     * was passed as argument, it will return @c NULL.
16428     *
16429     * @see elm_list_item_append()
16430     *
16431     * @ingroup List
16432     */
16433    EAPI void            *elm_list_item_data_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
16434
16435    /**
16436     * Get the left side icon associated to the item.
16437     *
16438     * @param item The list item
16439     * @return The left side icon associated to @p item
16440     *
16441     * The return value is a pointer to the icon associated to @p item when
16442     * it was
16443     * created, with function elm_list_item_append() or similar, or later
16444     * with function elm_list_item_icon_set(). If no icon
16445     * was passed as argument, it will return @c NULL.
16446     *
16447     * @see elm_list_item_append()
16448     * @see elm_list_item_icon_set()
16449     *
16450     * @ingroup List
16451     */
16452    EAPI Evas_Object     *elm_list_item_icon_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
16453
16454    /**
16455     * Set the left side icon associated to the item.
16456     *
16457     * @param item The list item
16458     * @param icon The left side icon object to associate with @p item
16459     *
16460     * The icon object to use at left side of the item. An
16461     * icon can be any Evas object, but usually it is an icon created
16462     * with elm_icon_add().
16463     *
16464     * Once the icon object is set, a previously set one will be deleted.
16465     * @warning Setting the same icon for two items will cause the icon to
16466     * dissapear from the first item.
16467     *
16468     * If an icon was passed as argument on item creation, with function
16469     * elm_list_item_append() or similar, it will be already
16470     * associated to the item.
16471     *
16472     * @see elm_list_item_append()
16473     * @see elm_list_item_icon_get()
16474     *
16475     * @ingroup List
16476     */
16477    EAPI void             elm_list_item_icon_set(Elm_List_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
16478
16479    /**
16480     * Get the right side icon associated to the item.
16481     *
16482     * @param item The list item
16483     * @return The right side icon associated to @p item
16484     *
16485     * The return value is a pointer to the icon associated to @p item when
16486     * it was
16487     * created, with function elm_list_item_append() or similar, or later
16488     * with function elm_list_item_icon_set(). If no icon
16489     * was passed as argument, it will return @c NULL.
16490     *
16491     * @see elm_list_item_append()
16492     * @see elm_list_item_icon_set()
16493     *
16494     * @ingroup List
16495     */
16496    EAPI Evas_Object     *elm_list_item_end_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
16497
16498    /**
16499     * Set the right side icon associated to the item.
16500     *
16501     * @param item The list item
16502     * @param end The right side icon object to associate with @p item
16503     *
16504     * The icon object to use at right side of the item. An
16505     * icon can be any Evas object, but usually it is an icon created
16506     * with elm_icon_add().
16507     *
16508     * Once the icon object is set, a previously set one will be deleted.
16509     * @warning Setting the same icon for two items will cause the icon to
16510     * dissapear from the first item.
16511     *
16512     * If an icon was passed as argument on item creation, with function
16513     * elm_list_item_append() or similar, it will be already
16514     * associated to the item.
16515     *
16516     * @see elm_list_item_append()
16517     * @see elm_list_item_end_get()
16518     *
16519     * @ingroup List
16520     */
16521    EAPI void             elm_list_item_end_set(Elm_List_Item *item, Evas_Object *end) EINA_ARG_NONNULL(1);
16522    EAPI Evas_Object     *elm_list_item_base_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
16523
16524    /**
16525     * Gets the base object of the item.
16526     *
16527     * @param item The list item
16528     * @return The base object associated with @p item
16529     *
16530     * Base object is the @c Evas_Object that represents that item.
16531     *
16532     * @ingroup List
16533     */
16534    EAPI Evas_Object     *elm_list_item_object_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
16535
16536    /**
16537     * Get the label of item.
16538     *
16539     * @param item The item of list.
16540     * @return The label of item.
16541     *
16542     * The return value is a pointer to the label associated to @p item when
16543     * it was created, with function elm_list_item_append(), or later
16544     * with function elm_list_item_label_set. If no label
16545     * was passed as argument, it will return @c NULL.
16546     *
16547     * @see elm_list_item_label_set() for more details.
16548     * @see elm_list_item_append()
16549     *
16550     * @ingroup List
16551     */
16552    EAPI const char      *elm_list_item_label_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
16553
16554    /**
16555     * Set the label of item.
16556     *
16557     * @param item The item of list.
16558     * @param text The label of item.
16559     *
16560     * The label to be displayed by the item.
16561     * Label will be placed between left and right side icons (if set).
16562     *
16563     * If a label was passed as argument on item creation, with function
16564     * elm_list_item_append() or similar, it will be already
16565     * displayed by the item.
16566     *
16567     * @see elm_list_item_label_get()
16568     * @see elm_list_item_append()
16569     *
16570     * @ingroup List
16571     */
16572    EAPI void             elm_list_item_label_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
16573
16574
16575    /**
16576     * Get the item before @p it in list.
16577     *
16578     * @param it The list item.
16579     * @return The item before @p it, or @c NULL if none or on failure.
16580     *
16581     * @note If it is the first item, @c NULL will be returned.
16582     *
16583     * @see elm_list_item_append()
16584     * @see elm_list_items_get()
16585     *
16586     * @ingroup List
16587     */
16588    EAPI Elm_List_Item   *elm_list_item_prev(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
16589
16590    /**
16591     * Get the item after @p it in list.
16592     *
16593     * @param it The list item.
16594     * @return The item after @p it, or @c NULL if none or on failure.
16595     *
16596     * @note If it is the last item, @c NULL will be returned.
16597     *
16598     * @see elm_list_item_append()
16599     * @see elm_list_items_get()
16600     *
16601     * @ingroup List
16602     */
16603    EAPI Elm_List_Item   *elm_list_item_next(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
16604
16605    /**
16606     * Sets the disabled/enabled state of a list item.
16607     *
16608     * @param it The item.
16609     * @param disabled The disabled state.
16610     *
16611     * A disabled item cannot be selected or unselected. It will also
16612     * change its appearance (generally greyed out). This sets the
16613     * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
16614     * enabled).
16615     *
16616     * @ingroup List
16617     */
16618    EAPI void             elm_list_item_disabled_set(Elm_List_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
16619
16620    /**
16621     * Get a value whether list item is disabled or not.
16622     *
16623     * @param it The item.
16624     * @return The disabled state.
16625     *
16626     * @see elm_list_item_disabled_set() for more details.
16627     *
16628     * @ingroup List
16629     */
16630    EAPI Eina_Bool        elm_list_item_disabled_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
16631
16632    /**
16633     * Set the text to be shown in a given list item's tooltips.
16634     *
16635     * @param item Target item.
16636     * @param text The text to set in the content.
16637     *
16638     * Setup the text as tooltip to object. The item can have only one tooltip,
16639     * so any previous tooltip data - set with this function or
16640     * elm_list_item_tooltip_content_cb_set() - is removed.
16641     *
16642     * @see elm_object_tooltip_text_set() for more details.
16643     *
16644     * @ingroup List
16645     */
16646    EAPI void             elm_list_item_tooltip_text_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
16647
16648
16649    /**
16650     * @brief Disable size restrictions on an object's tooltip
16651     * @param item The tooltip's anchor object
16652     * @param disable If EINA_TRUE, size restrictions are disabled
16653     * @return EINA_FALSE on failure, EINA_TRUE on success
16654     *
16655     * This function allows a tooltip to expand beyond its parant window's canvas.
16656     * It will instead be limited only by the size of the display.
16657     */
16658    EAPI Eina_Bool        elm_list_item_tooltip_size_restrict_disable(Elm_List_Item *item, Eina_Bool disable) EINA_ARG_NONNULL(1);
16659    /**
16660     * @brief Retrieve size restriction state of an object's tooltip
16661     * @param obj The tooltip's anchor object
16662     * @return If EINA_TRUE, size restrictions are disabled
16663     *
16664     * This function returns whether a tooltip is allowed to expand beyond
16665     * its parant window's canvas.
16666     * It will instead be limited only by the size of the display.
16667     */
16668    EAPI Eina_Bool        elm_list_item_tooltip_size_restrict_disabled_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
16669
16670    /**
16671     * Set the content to be shown in the tooltip item.
16672     *
16673     * Setup the tooltip to item. The item can have only one tooltip,
16674     * so any previous tooltip data is removed. @p func(with @p data) will
16675     * be called every time that need show the tooltip and it should
16676     * return a valid Evas_Object. This object is then managed fully by
16677     * tooltip system and is deleted when the tooltip is gone.
16678     *
16679     * @param item the list item being attached a tooltip.
16680     * @param func the function used to create the tooltip contents.
16681     * @param data what to provide to @a func as callback data/context.
16682     * @param del_cb called when data is not needed anymore, either when
16683     *        another callback replaces @a func, the tooltip is unset with
16684     *        elm_list_item_tooltip_unset() or the owner @a item
16685     *        dies. This callback receives as the first parameter the
16686     *        given @a data, and @c event_info is the item.
16687     *
16688     * @see elm_object_tooltip_content_cb_set() for more details.
16689     *
16690     * @ingroup List
16691     */
16692    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);
16693
16694    /**
16695     * Unset tooltip from item.
16696     *
16697     * @param item list item to remove previously set tooltip.
16698     *
16699     * Remove tooltip from item. The callback provided as del_cb to
16700     * elm_list_item_tooltip_content_cb_set() will be called to notify
16701     * it is not used anymore.
16702     *
16703     * @see elm_object_tooltip_unset() for more details.
16704     * @see elm_list_item_tooltip_content_cb_set()
16705     *
16706     * @ingroup List
16707     */
16708    EAPI void             elm_list_item_tooltip_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
16709
16710    /**
16711     * Sets a different style for this item tooltip.
16712     *
16713     * @note before you set a style you should define a tooltip with
16714     *       elm_list_item_tooltip_content_cb_set() or
16715     *       elm_list_item_tooltip_text_set()
16716     *
16717     * @param item list item with tooltip already set.
16718     * @param style the theme style to use (default, transparent, ...)
16719     *
16720     * @see elm_object_tooltip_style_set() for more details.
16721     *
16722     * @ingroup List
16723     */
16724    EAPI void             elm_list_item_tooltip_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
16725
16726    /**
16727     * Get the style for this item tooltip.
16728     *
16729     * @param item list item with tooltip already set.
16730     * @return style the theme style in use, defaults to "default". If the
16731     *         object does not have a tooltip set, then NULL is returned.
16732     *
16733     * @see elm_object_tooltip_style_get() for more details.
16734     * @see elm_list_item_tooltip_style_set()
16735     *
16736     * @ingroup List
16737     */
16738    EAPI const char      *elm_list_item_tooltip_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
16739
16740    /**
16741     * Set the type of mouse pointer/cursor decoration to be shown,
16742     * when the mouse pointer is over the given list widget item
16743     *
16744     * @param item list item to customize cursor on
16745     * @param cursor the cursor type's name
16746     *
16747     * This function works analogously as elm_object_cursor_set(), but
16748     * here the cursor's changing area is restricted to the item's
16749     * area, and not the whole widget's. Note that that item cursors
16750     * have precedence over widget cursors, so that a mouse over an
16751     * item with custom cursor set will always show @b that cursor.
16752     *
16753     * If this function is called twice for an object, a previously set
16754     * cursor will be unset on the second call.
16755     *
16756     * @see elm_object_cursor_set()
16757     * @see elm_list_item_cursor_get()
16758     * @see elm_list_item_cursor_unset()
16759     *
16760     * @ingroup List
16761     */
16762    EAPI void             elm_list_item_cursor_set(Elm_List_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
16763
16764    /*
16765     * Get the type of mouse pointer/cursor decoration set to be shown,
16766     * when the mouse pointer is over the given list widget item
16767     *
16768     * @param item list item with custom cursor set
16769     * @return the cursor type's name or @c NULL, if no custom cursors
16770     * were set to @p item (and on errors)
16771     *
16772     * @see elm_object_cursor_get()
16773     * @see elm_list_item_cursor_set()
16774     * @see elm_list_item_cursor_unset()
16775     *
16776     * @ingroup List
16777     */
16778    EAPI const char      *elm_list_item_cursor_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
16779
16780    /**
16781     * Unset any custom mouse pointer/cursor decoration set to be
16782     * shown, when the mouse pointer is over the given list widget
16783     * item, thus making it show the @b default cursor again.
16784     *
16785     * @param item a list item
16786     *
16787     * Use this call to undo any custom settings on this item's cursor
16788     * decoration, bringing it back to defaults (no custom style set).
16789     *
16790     * @see elm_object_cursor_unset()
16791     * @see elm_list_item_cursor_set()
16792     *
16793     * @ingroup List
16794     */
16795    EAPI void             elm_list_item_cursor_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
16796
16797    /**
16798     * Set a different @b style for a given custom cursor set for a
16799     * list item.
16800     *
16801     * @param item list item with custom cursor set
16802     * @param style the <b>theme style</b> to use (e.g. @c "default",
16803     * @c "transparent", etc)
16804     *
16805     * This function only makes sense when one is using custom mouse
16806     * cursor decorations <b>defined in a theme file</b>, which can have,
16807     * given a cursor name/type, <b>alternate styles</b> on it. It
16808     * works analogously as elm_object_cursor_style_set(), but here
16809     * applyed only to list item objects.
16810     *
16811     * @warning Before you set a cursor style you should have definen a
16812     *       custom cursor previously on the item, with
16813     *       elm_list_item_cursor_set()
16814     *
16815     * @see elm_list_item_cursor_engine_only_set()
16816     * @see elm_list_item_cursor_style_get()
16817     *
16818     * @ingroup List
16819     */
16820    EAPI void             elm_list_item_cursor_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
16821
16822    /**
16823     * Get the current @b style set for a given list item's custom
16824     * cursor
16825     *
16826     * @param item list item with custom cursor set.
16827     * @return style the cursor style in use. If the object does not
16828     *         have a cursor set, then @c NULL is returned.
16829     *
16830     * @see elm_list_item_cursor_style_set() for more details
16831     *
16832     * @ingroup List
16833     */
16834    EAPI const char      *elm_list_item_cursor_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
16835
16836    /**
16837     * Set if the (custom)cursor for a given list item should be
16838     * searched in its theme, also, or should only rely on the
16839     * rendering engine.
16840     *
16841     * @param item item with custom (custom) cursor already set on
16842     * @param engine_only Use @c EINA_TRUE to have cursors looked for
16843     * only on those provided by the rendering engine, @c EINA_FALSE to
16844     * have them searched on the widget's theme, as well.
16845     *
16846     * @note This call is of use only if you've set a custom cursor
16847     * for list items, with elm_list_item_cursor_set().
16848     *
16849     * @note By default, cursors will only be looked for between those
16850     * provided by the rendering engine.
16851     *
16852     * @ingroup List
16853     */
16854    EAPI void             elm_list_item_cursor_engine_only_set(Elm_List_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
16855
16856    /**
16857     * Get if the (custom) cursor for a given list item is being
16858     * searched in its theme, also, or is only relying on the rendering
16859     * engine.
16860     *
16861     * @param item a list item
16862     * @return @c EINA_TRUE, if cursors are being looked for only on
16863     * those provided by the rendering engine, @c EINA_FALSE if they
16864     * are being searched on the widget's theme, as well.
16865     *
16866     * @see elm_list_item_cursor_engine_only_set(), for more details
16867     *
16868     * @ingroup List
16869     */
16870    EAPI Eina_Bool        elm_list_item_cursor_engine_only_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
16871
16872    /**
16873     * @}
16874     */
16875
16876    /**
16877     * @defgroup Slider Slider
16878     * @ingroup Elementary
16879     *
16880     * @image html img/widget/slider/preview-00.png
16881     * @image latex img/widget/slider/preview-00.eps width=\textwidth
16882     *
16883     * The slider adds a dragable “slider” widget for selecting the value of
16884     * something within a range.
16885     *
16886     * A slider can be horizontal or vertical. It can contain an Icon and has a
16887     * primary label as well as a units label (that is formatted with floating
16888     * point values and thus accepts a printf-style format string, like
16889     * “%1.2f units”. There is also an indicator string that may be somewhere
16890     * else (like on the slider itself) that also accepts a format string like
16891     * units. Label, Icon Unit and Indicator strings/objects are optional.
16892     *
16893     * A slider may be inverted which means values invert, with high vales being
16894     * on the left or top and low values on the right or bottom (as opposed to
16895     * normally being low on the left or top and high on the bottom and right).
16896     *
16897     * The slider should have its minimum and maximum values set by the
16898     * application with  elm_slider_min_max_set() and value should also be set by
16899     * the application before use with  elm_slider_value_set(). The span of the
16900     * slider is its length (horizontally or vertically). This will be scaled by
16901     * the object or applications scaling factor. At any point code can query the
16902     * slider for its value with elm_slider_value_get().
16903     *
16904     * Smart callbacks one can listen to:
16905     * - "changed" - Whenever the slider value is changed by the user.
16906     * - "slider,drag,start" - dragging the slider indicator around has started.
16907     * - "slider,drag,stop" - dragging the slider indicator around has stopped.
16908     * - "delay,changed" - A short time after the value is changed by the user.
16909     * This will be called only when the user stops dragging for
16910     * a very short period or when they release their
16911     * finger/mouse, so it avoids possibly expensive reactions to
16912     * the value change.
16913     *
16914     * Available styles for it:
16915     * - @c "default"
16916     *
16917     * Default contents parts of the slider widget that you can use for are:
16918     * @li "elm.swallow.icon" - A icon of the slider
16919     * @li "elm.swallow.end" - A end part content of the slider
16920     * 
16921     * Here is an example on its usage:
16922     * @li @ref slider_example
16923     */
16924
16925 #define ELM_SLIDER_CONTENT_ICON "elm.swallow.icon"
16926 #define ELM_SLIDER_CONTENT_END "elm.swallow.end"
16927
16928    /**
16929     * @addtogroup Slider
16930     * @{
16931     */
16932
16933    /**
16934     * Add a new slider widget to the given parent Elementary
16935     * (container) object.
16936     *
16937     * @param parent The parent object.
16938     * @return a new slider widget handle or @c NULL, on errors.
16939     *
16940     * This function inserts a new slider widget on the canvas.
16941     *
16942     * @ingroup Slider
16943     */
16944    EAPI Evas_Object       *elm_slider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16945
16946    /**
16947     * Set the label of a given slider widget
16948     *
16949     * @param obj The progress bar object
16950     * @param label The text label string, in UTF-8
16951     *
16952     * @ingroup Slider
16953     * @deprecated use elm_object_text_set() instead.
16954     */
16955    EINA_DEPRECATED EAPI void               elm_slider_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
16956
16957    /**
16958     * Get the label of a given slider widget
16959     *
16960     * @param obj The progressbar object
16961     * @return The text label string, in UTF-8
16962     *
16963     * @ingroup Slider
16964     * @deprecated use elm_object_text_get() instead.
16965     */
16966    EAPI const char        *elm_slider_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16967
16968    /**
16969     * Set the icon object of the slider object.
16970     *
16971     * @param obj The slider object.
16972     * @param icon The icon object.
16973     *
16974     * On horizontal mode, icon is placed at left, and on vertical mode,
16975     * placed at top.
16976     *
16977     * @note Once the icon object is set, a previously set one will be deleted.
16978     * If you want to keep that old content object, use the
16979     * elm_slider_icon_unset() function.
16980     *
16981     * @warning If the object being set does not have minimum size hints set,
16982     * it won't get properly displayed.
16983     *
16984     * @ingroup Slider
16985     * @deprecated use elm_object_content_set() instead.
16986     */
16987    EAPI void               elm_slider_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
16988
16989    /**
16990     * Unset an icon set on a given slider widget.
16991     *
16992     * @param obj The slider object.
16993     * @return The icon object that was being used, if any was set, or
16994     * @c NULL, otherwise (and on errors).
16995     *
16996     * On horizontal mode, icon is placed at left, and on vertical mode,
16997     * placed at top.
16998     *
16999     * This call will unparent and return the icon object which was set
17000     * for this widget, previously, on success.
17001     *
17002     * @see elm_slider_icon_set() for more details
17003     * @see elm_slider_icon_get()
17004     * @deprecated use elm_object_content_unset() instead.
17005     *
17006     * @ingroup Slider
17007     */
17008    EAPI Evas_Object       *elm_slider_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
17009
17010    /**
17011     * Retrieve the icon object set for a given slider widget.
17012     *
17013     * @param obj The slider object.
17014     * @return The icon object's handle, if @p obj had one set, or @c NULL,
17015     * otherwise (and on errors).
17016     *
17017     * On horizontal mode, icon is placed at left, and on vertical mode,
17018     * placed at top.
17019     *
17020     * @see elm_slider_icon_set() for more details
17021     * @see elm_slider_icon_unset()
17022     *
17023     * @ingroup Slider
17024     */
17025    EAPI Evas_Object       *elm_slider_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17026
17027    /**
17028     * Set the end object of the slider object.
17029     *
17030     * @param obj The slider object.
17031     * @param end The end object.
17032     *
17033     * On horizontal mode, end is placed at left, and on vertical mode,
17034     * placed at bottom.
17035     *
17036     * @note Once the icon object is set, a previously set one will be deleted.
17037     * If you want to keep that old content object, use the
17038     * elm_slider_end_unset() function.
17039     *
17040     * @warning If the object being set does not have minimum size hints set,
17041     * it won't get properly displayed.
17042     *
17043     * @ingroup Slider
17044     */
17045    EAPI void               elm_slider_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1);
17046
17047    /**
17048     * Unset an end object set on a given slider widget.
17049     *
17050     * @param obj The slider object.
17051     * @return The end object that was being used, if any was set, or
17052     * @c NULL, otherwise (and on errors).
17053     *
17054     * On horizontal mode, end is placed at left, and on vertical mode,
17055     * placed at bottom.
17056     *
17057     * This call will unparent and return the icon object which was set
17058     * for this widget, previously, on success.
17059     *
17060     * @see elm_slider_end_set() for more details.
17061     * @see elm_slider_end_get()
17062     *
17063     * @ingroup Slider
17064     */
17065    EAPI Evas_Object       *elm_slider_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
17066
17067    /**
17068     * Retrieve the end object set for a given slider widget.
17069     *
17070     * @param obj The slider object.
17071     * @return The end object's handle, if @p obj had one set, or @c NULL,
17072     * otherwise (and on errors).
17073     *
17074     * On horizontal mode, icon is placed at right, and on vertical mode,
17075     * placed at bottom.
17076     *
17077     * @see elm_slider_end_set() for more details.
17078     * @see elm_slider_end_unset()
17079     *
17080     * @ingroup Slider
17081     */
17082    EAPI Evas_Object       *elm_slider_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17083
17084    /**
17085     * Set the (exact) length of the bar region of a given slider widget.
17086     *
17087     * @param obj The slider object.
17088     * @param size The length of the slider's bar region.
17089     *
17090     * This sets the minimum width (when in horizontal mode) or height
17091     * (when in vertical mode) of the actual bar area of the slider
17092     * @p obj. This in turn affects the object's minimum size. Use
17093     * this when you're not setting other size hints expanding on the
17094     * given direction (like weight and alignment hints) and you would
17095     * like it to have a specific size.
17096     *
17097     * @note Icon, end, label, indicator and unit text around @p obj
17098     * will require their
17099     * own space, which will make @p obj to require more the @p size,
17100     * actually.
17101     *
17102     * @see elm_slider_span_size_get()
17103     *
17104     * @ingroup Slider
17105     */
17106    EAPI void               elm_slider_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
17107
17108    /**
17109     * Get the length set for the bar region of a given slider widget
17110     *
17111     * @param obj The slider object.
17112     * @return The length of the slider's bar region.
17113     *
17114     * If that size was not set previously, with
17115     * elm_slider_span_size_set(), this call will return @c 0.
17116     *
17117     * @ingroup Slider
17118     */
17119    EAPI Evas_Coord         elm_slider_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17120
17121    /**
17122     * Set the format string for the unit label.
17123     *
17124     * @param obj The slider object.
17125     * @param format The format string for the unit display.
17126     *
17127     * Unit label is displayed all the time, if set, after slider's bar.
17128     * In horizontal mode, at right and in vertical mode, at bottom.
17129     *
17130     * If @c NULL, unit label won't be visible. If not it sets the format
17131     * string for the label text. To the label text is provided a floating point
17132     * value, so the label text can display up to 1 floating point value.
17133     * Note that this is optional.
17134     *
17135     * Use a format string such as "%1.2f meters" for example, and it will
17136     * display values like: "3.14 meters" for a value equal to 3.14159.
17137     *
17138     * Default is unit label disabled.
17139     *
17140     * @see elm_slider_indicator_format_get()
17141     *
17142     * @ingroup Slider
17143     */
17144    EAPI void               elm_slider_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
17145
17146    /**
17147     * Get the unit label format of the slider.
17148     *
17149     * @param obj The slider object.
17150     * @return The unit label format string in UTF-8.
17151     *
17152     * Unit label is displayed all the time, if set, after slider's bar.
17153     * In horizontal mode, at right and in vertical mode, at bottom.
17154     *
17155     * @see elm_slider_unit_format_set() for more
17156     * information on how this works.
17157     *
17158     * @ingroup Slider
17159     */
17160    EAPI const char        *elm_slider_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17161
17162    /**
17163     * Set the format string for the indicator label.
17164     *
17165     * @param obj The slider object.
17166     * @param indicator The format string for the indicator display.
17167     *
17168     * The slider may display its value somewhere else then unit label,
17169     * for example, above the slider knob that is dragged around. This function
17170     * sets the format string used for this.
17171     *
17172     * If @c NULL, indicator label won't be visible. If not it sets the format
17173     * string for the label text. To the label text is provided a floating point
17174     * value, so the label text can display up to 1 floating point value.
17175     * Note that this is optional.
17176     *
17177     * Use a format string such as "%1.2f meters" for example, and it will
17178     * display values like: "3.14 meters" for a value equal to 3.14159.
17179     *
17180     * Default is indicator label disabled.
17181     *
17182     * @see elm_slider_indicator_format_get()
17183     *
17184     * @ingroup Slider
17185     */
17186    EAPI void               elm_slider_indicator_format_set(Evas_Object *obj, const char *indicator) EINA_ARG_NONNULL(1);
17187
17188    /**
17189     * Get the indicator label format of the slider.
17190     *
17191     * @param obj The slider object.
17192     * @return The indicator label format string in UTF-8.
17193     *
17194     * The slider may display its value somewhere else then unit label,
17195     * for example, above the slider knob that is dragged around. This function
17196     * gets the format string used for this.
17197     *
17198     * @see elm_slider_indicator_format_set() for more
17199     * information on how this works.
17200     *
17201     * @ingroup Slider
17202     */
17203    EAPI const char        *elm_slider_indicator_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17204
17205    /**
17206     * Set the format function pointer for the indicator label
17207     *
17208     * @param obj The slider object.
17209     * @param func The indicator format function.
17210     * @param free_func The freeing function for the format string.
17211     *
17212     * Set the callback function to format the indicator string.
17213     *
17214     * @see elm_slider_indicator_format_set() for more info on how this works.
17215     *
17216     * @ingroup Slider
17217     */
17218   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);
17219
17220   /**
17221    * Set the format function pointer for the units label
17222    *
17223    * @param obj The slider object.
17224    * @param func The units format function.
17225    * @param free_func The freeing function for the format string.
17226    *
17227    * Set the callback function to format the indicator string.
17228    *
17229    * @see elm_slider_units_format_set() for more info on how this works.
17230    *
17231    * @ingroup Slider
17232    */
17233   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);
17234
17235   /**
17236    * Set the orientation of a given slider widget.
17237    *
17238    * @param obj The slider object.
17239    * @param horizontal Use @c EINA_TRUE to make @p obj to be
17240    * @b horizontal, @c EINA_FALSE to make it @b vertical.
17241    *
17242    * Use this function to change how your slider is to be
17243    * disposed: vertically or horizontally.
17244    *
17245    * By default it's displayed horizontally.
17246    *
17247    * @see elm_slider_horizontal_get()
17248    *
17249    * @ingroup Slider
17250    */
17251    EAPI void               elm_slider_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
17252
17253    /**
17254     * Retrieve the orientation of a given slider widget
17255     *
17256     * @param obj The slider object.
17257     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
17258     * @c EINA_FALSE if it's @b vertical (and on errors).
17259     *
17260     * @see elm_slider_horizontal_set() for more details.
17261     *
17262     * @ingroup Slider
17263     */
17264    EAPI Eina_Bool          elm_slider_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17265
17266    /**
17267     * Set the minimum and maximum values for the slider.
17268     *
17269     * @param obj The slider object.
17270     * @param min The minimum value.
17271     * @param max The maximum value.
17272     *
17273     * Define the allowed range of values to be selected by the user.
17274     *
17275     * If actual value is less than @p min, it will be updated to @p min. If it
17276     * is bigger then @p max, will be updated to @p max. Actual value can be
17277     * get with elm_slider_value_get().
17278     *
17279     * By default, min is equal to 0.0, and max is equal to 1.0.
17280     *
17281     * @warning Maximum must be greater than minimum, otherwise behavior
17282     * is undefined.
17283     *
17284     * @see elm_slider_min_max_get()
17285     *
17286     * @ingroup Slider
17287     */
17288    EAPI void               elm_slider_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
17289
17290    /**
17291     * Get the minimum and maximum values of the slider.
17292     *
17293     * @param obj The slider object.
17294     * @param min Pointer where to store the minimum value.
17295     * @param max Pointer where to store the maximum value.
17296     *
17297     * @note If only one value is needed, the other pointer can be passed
17298     * as @c NULL.
17299     *
17300     * @see elm_slider_min_max_set() for details.
17301     *
17302     * @ingroup Slider
17303     */
17304    EAPI void               elm_slider_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
17305
17306    /**
17307     * Set the value the slider displays.
17308     *
17309     * @param obj The slider object.
17310     * @param val The value to be displayed.
17311     *
17312     * Value will be presented on the unit label following format specified with
17313     * elm_slider_unit_format_set() and on indicator with
17314     * elm_slider_indicator_format_set().
17315     *
17316     * @warning The value must to be between min and max values. This values
17317     * are set by elm_slider_min_max_set().
17318     *
17319     * @see elm_slider_value_get()
17320     * @see elm_slider_unit_format_set()
17321     * @see elm_slider_indicator_format_set()
17322     * @see elm_slider_min_max_set()
17323     *
17324     * @ingroup Slider
17325     */
17326    EAPI void               elm_slider_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
17327
17328    /**
17329     * Get the value displayed by the spinner.
17330     *
17331     * @param obj The spinner object.
17332     * @return The value displayed.
17333     *
17334     * @see elm_spinner_value_set() for details.
17335     *
17336     * @ingroup Slider
17337     */
17338    EAPI double             elm_slider_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17339
17340    /**
17341     * Invert a given slider widget's displaying values order
17342     *
17343     * @param obj The slider object.
17344     * @param inverted Use @c EINA_TRUE to make @p obj inverted,
17345     * @c EINA_FALSE to bring it back to default, non-inverted values.
17346     *
17347     * A slider may be @b inverted, in which state it gets its
17348     * values inverted, with high vales being on the left or top and
17349     * low values on the right or bottom, as opposed to normally have
17350     * the low values on the former and high values on the latter,
17351     * respectively, for horizontal and vertical modes.
17352     *
17353     * @see elm_slider_inverted_get()
17354     *
17355     * @ingroup Slider
17356     */
17357    EAPI void               elm_slider_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
17358
17359    /**
17360     * Get whether a given slider widget's displaying values are
17361     * inverted or not.
17362     *
17363     * @param obj The slider object.
17364     * @return @c EINA_TRUE, if @p obj has inverted values,
17365     * @c EINA_FALSE otherwise (and on errors).
17366     *
17367     * @see elm_slider_inverted_set() for more details.
17368     *
17369     * @ingroup Slider
17370     */
17371    EAPI Eina_Bool          elm_slider_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17372
17373    /**
17374     * Set whether to enlarge slider indicator (augmented knob) or not.
17375     *
17376     * @param obj The slider object.
17377     * @param show @c EINA_TRUE will make it enlarge, @c EINA_FALSE will
17378     * let the knob always at default size.
17379     *
17380     * By default, indicator will be bigger while dragged by the user.
17381     *
17382     * @warning It won't display values set with
17383     * elm_slider_indicator_format_set() if you disable indicator.
17384     *
17385     * @ingroup Slider
17386     */
17387    EAPI void               elm_slider_indicator_show_set(Evas_Object *obj, Eina_Bool show) EINA_ARG_NONNULL(1);
17388
17389    /**
17390     * Get whether a given slider widget's enlarging indicator or not.
17391     *
17392     * @param obj The slider object.
17393     * @return @c EINA_TRUE, if @p obj is enlarging indicator, or
17394     * @c EINA_FALSE otherwise (and on errors).
17395     *
17396     * @see elm_slider_indicator_show_set() for details.
17397     *
17398     * @ingroup Slider
17399     */
17400    EAPI Eina_Bool          elm_slider_indicator_show_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17401
17402    /**
17403     * @}
17404     */
17405
17406    /**
17407     * @addtogroup Actionslider Actionslider
17408     *
17409     * @image html img/widget/actionslider/preview-00.png
17410     * @image latex img/widget/actionslider/preview-00.eps
17411     *
17412     * An actionslider is a switcher for 2 or 3 labels with customizable magnet
17413     * properties. The user drags and releases the indicator, to choose a label.
17414     *
17415     * Labels occupy the following positions.
17416     * a. Left
17417     * b. Right
17418     * c. Center
17419     *
17420     * Positions can be enabled or disabled.
17421     *
17422     * Magnets can be set on the above positions.
17423     *
17424     * When the indicator is released, it will move to its nearest "enabled and magnetized" position.
17425     *
17426     * @note By default all positions are set as enabled.
17427     *
17428     * Signals that you can add callbacks for are:
17429     *
17430     * "selected" - when user selects an enabled position (the label is passed
17431     *              as event info)".
17432     * @n
17433     * "pos_changed" - when the indicator reaches any of the positions("left",
17434     *                 "right" or "center").
17435     *
17436     * See an example of actionslider usage @ref actionslider_example_page "here"
17437     * @{
17438     */
17439
17440    typedef enum _Elm_Actionslider_Indicator_Pos
17441      {
17442         ELM_ACTIONSLIDER_INDICATOR_NONE,
17443         ELM_ACTIONSLIDER_INDICATOR_LEFT,
17444         ELM_ACTIONSLIDER_INDICATOR_RIGHT,
17445         ELM_ACTIONSLIDER_INDICATOR_CENTER
17446      } Elm_Actionslider_Indicator_Pos;
17447
17448    typedef enum _Elm_Actionslider_Magnet_Pos
17449      {
17450         ELM_ACTIONSLIDER_MAGNET_NONE = 0,
17451         ELM_ACTIONSLIDER_MAGNET_LEFT = 1 << 0,
17452         ELM_ACTIONSLIDER_MAGNET_CENTER = 1 << 1,
17453         ELM_ACTIONSLIDER_MAGNET_RIGHT= 1 << 2,
17454         ELM_ACTIONSLIDER_MAGNET_ALL = (1 << 3) -1,
17455         ELM_ACTIONSLIDER_MAGNET_BOTH = (1 << 3)
17456      } Elm_Actionslider_Magnet_Pos;
17457
17458    typedef enum _Elm_Actionslider_Label_Pos
17459      {
17460         ELM_ACTIONSLIDER_LABEL_LEFT,
17461         ELM_ACTIONSLIDER_LABEL_RIGHT,
17462         ELM_ACTIONSLIDER_LABEL_CENTER,
17463         ELM_ACTIONSLIDER_LABEL_BUTTON
17464      } Elm_Actionslider_Label_Pos;
17465
17466    /* smart callbacks called:
17467     * "indicator,position" - when a button reaches to the special position like "left", "right" and "center".
17468     */
17469
17470    /**
17471     * Add a new actionslider to the parent.
17472     *
17473     * @param parent The parent object
17474     * @return The new actionslider object or NULL if it cannot be created
17475     */
17476    EAPI Evas_Object          *elm_actionslider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
17477
17478    /**
17479    * Set actionslider label.
17480    *
17481    * @param[in] obj The actionslider object
17482    * @param[in] pos The position of the label.
17483    * (ELM_ACTIONSLIDER_LABEL_LEFT, ELM_ACTIONSLIDER_LABEL_RIGHT)
17484    * @param label The label which is going to be set.
17485    */
17486    EAPI void               elm_actionslider_label_set(Evas_Object *obj, Elm_Actionslider_Label_Pos pos, const char *label) EINA_ARG_NONNULL(1);
17487    /**
17488     * Get actionslider labels.
17489     *
17490     * @param obj The actionslider object
17491     * @param left_label A char** to place the left_label of @p obj into.
17492     * @param center_label A char** to place the center_label of @p obj into.
17493     * @param right_label A char** to place the right_label of @p obj into.
17494     */
17495    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);
17496    /**
17497     * Get actionslider selected label.
17498     *
17499     * @param obj The actionslider object
17500     * @return The selected label
17501     */
17502    EAPI const char           *elm_actionslider_selected_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17503    /**
17504     * Set actionslider indicator position.
17505     *
17506     * @param obj The actionslider object.
17507     * @param pos The position of the indicator.
17508     */
17509    EAPI void                elm_actionslider_indicator_pos_set(Evas_Object *obj, Elm_Actionslider_Indicator_Pos pos) EINA_ARG_NONNULL(1);
17510    /**
17511     * Get actionslider indicator position.
17512     *
17513     * @param obj The actionslider object.
17514     * @return The position of the indicator.
17515     */
17516    EAPI Elm_Actionslider_Indicator_Pos  elm_actionslider_indicator_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17517    /**
17518     * Set actionslider magnet position. To make multiple positions magnets @c or
17519     * them together(e.g.: ELM_ACTIONSLIDER_MAGNET_LEFT | ELM_ACTIONSLIDER_MAGNET_RIGHT)
17520     *
17521     * @param obj The actionslider object.
17522     * @param pos Bit mask indicating the magnet positions.
17523     */
17524    EAPI void                elm_actionslider_magnet_pos_set(Evas_Object *obj, Elm_Actionslider_Magnet_Pos pos) EINA_ARG_NONNULL(1);
17525    /**
17526     * Get actionslider magnet position.
17527     *
17528     * @param obj The actionslider object.
17529     * @return The positions with magnet property.
17530     */
17531    EAPI Elm_Actionslider_Magnet_Pos  elm_actionslider_magnet_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17532    /**
17533     * Set actionslider enabled position. To set multiple positions as enabled @c or
17534     * them together(e.g.: ELM_ACTIONSLIDER_MAGNET_LEFT | ELM_ACTIONSLIDER_MAGNET_RIGHT).
17535     *
17536     * @note All the positions are enabled by default.
17537     *
17538     * @param obj The actionslider object.
17539     * @param pos Bit mask indicating the enabled positions.
17540     */
17541    EAPI void                  elm_actionslider_enabled_pos_set(Evas_Object *obj, Elm_Actionslider_Magnet_Pos pos) EINA_ARG_NONNULL(1);
17542    /**
17543     * Get actionslider enabled position.
17544     *
17545     * @param obj The actionslider object.
17546     * @return The enabled positions.
17547     */
17548    EAPI Elm_Actionslider_Magnet_Pos  elm_actionslider_enabled_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17549    /**
17550     * Set the label used on the indicator.
17551     *
17552     * @param obj The actionslider object
17553     * @param label The label to be set on the indicator.
17554     * @deprecated use elm_object_text_set() instead.
17555     */
17556    EINA_DEPRECATED EAPI void                  elm_actionslider_indicator_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
17557    /**
17558     * Get the label used on the indicator object.
17559     *
17560     * @param obj The actionslider object
17561     * @return The indicator label
17562     * @deprecated use elm_object_text_get() instead.
17563     */
17564    EINA_DEPRECATED EAPI const char           *elm_actionslider_indicator_label_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
17565
17566    /**
17567    * Hold actionslider object movement.
17568    *
17569    * @param[in] obj The actionslider object
17570    * @param[in] flag Actionslider hold/release
17571    * (EINA_TURE = hold/EIN_FALSE = release)
17572    *
17573    * @ingroup Actionslider
17574    */
17575    EAPI void                             elm_actionslider_hold(Evas_Object *obj, Eina_Bool flag) EINA_ARG_NONNULL(1);
17576
17577
17578    /**
17579     *
17580     */
17581
17582    /**
17583     * @defgroup Genlist Genlist
17584     *
17585     * @image html img/widget/genlist/preview-00.png
17586     * @image latex img/widget/genlist/preview-00.eps
17587     * @image html img/genlist.png
17588     * @image latex img/genlist.eps
17589     *
17590     * This widget aims to have more expansive list than the simple list in
17591     * Elementary that could have more flexible items and allow many more entries
17592     * while still being fast and low on memory usage. At the same time it was
17593     * also made to be able to do tree structures. But the price to pay is more
17594     * complexity when it comes to usage. If all you want is a simple list with
17595     * icons and a single label, use the normal @ref List object.
17596     *
17597     * Genlist has a fairly large API, mostly because it's relatively complex,
17598     * trying to be both expansive, powerful and efficient. First we will begin
17599     * an overview on the theory behind genlist.
17600     *
17601     * @section Genlist_Item_Class Genlist item classes - creating items
17602     *
17603     * In order to have the ability to add and delete items on the fly, genlist
17604     * implements a class (callback) system where the application provides a
17605     * structure with information about that type of item (genlist may contain
17606     * multiple different items with different classes, states and styles).
17607     * Genlist will call the functions in this struct (methods) when an item is
17608     * "realized" (i.e., created dynamically, while the user is scrolling the
17609     * grid). All objects will simply be deleted when no longer needed with
17610     * evas_object_del(). The #Elm_Genlist_Item_Class structure contains the
17611     * following members:
17612     * - @c item_style - This is a constant string and simply defines the name
17613     *   of the item style. It @b must be specified and the default should be @c
17614     *   "default".
17615     *
17616     * - @c func - A struct with pointers to functions that will be called when
17617     *   an item is going to be actually created. All of them receive a @c data
17618     *   parameter that will point to the same data passed to
17619     *   elm_genlist_item_append() and related item creation functions, and a @c
17620     *   obj parameter that points to the genlist object itself.
17621     *
17622     * The function pointers inside @c func are @c label_get, @c icon_get, @c
17623     * state_get and @c del. The 3 first functions also receive a @c part
17624     * parameter described below. A brief description of these functions follows:
17625     *
17626     * - @c label_get - The @c part parameter is the name string of one of the
17627     *   existing text parts in the Edje group implementing the item's theme.
17628     *   This function @b must return a strdup'()ed string, as the caller will
17629     *   free() it when done. See #Elm_Genlist_Item_Label_Get_Cb.
17630     * - @c content_get - The @c part parameter is the name string of one of the
17631     *   existing (content) swallow parts in the Edje group implementing the item's
17632     *   theme. It must return @c NULL, when no content is desired, or a valid
17633     *   object handle, otherwise.  The object will be deleted by the genlist on
17634     *   its deletion or when the item is "unrealized".  See
17635     *   #Elm_Genlist_Item_Icon_Get_Cb.
17636     * - @c func.state_get - The @c part parameter is the name string of one of
17637     *   the state parts in the Edje group implementing the item's theme. Return
17638     *   @c EINA_FALSE for false/off or @c EINA_TRUE for true/on. Genlists will
17639     *   emit a signal to its theming Edje object with @c "elm,state,XXX,active"
17640     *   and @c "elm" as "emission" and "source" arguments, respectively, when
17641     *   the state is true (the default is false), where @c XXX is the name of
17642     *   the (state) part.  See #Elm_Genlist_Item_State_Get_Cb.
17643     * - @c func.del - This is intended for use when genlist items are deleted,
17644     *   so any data attached to the item (e.g. its data parameter on creation)
17645     *   can be deleted. See #Elm_Genlist_Item_Del_Cb.
17646     *
17647     * available item styles:
17648     * - default
17649     * - default_style - The text part is a textblock
17650     *
17651     * @image html img/widget/genlist/preview-04.png
17652     * @image latex img/widget/genlist/preview-04.eps
17653     *
17654     * - double_label
17655     *
17656     * @image html img/widget/genlist/preview-01.png
17657     * @image latex img/widget/genlist/preview-01.eps
17658     *
17659     * - icon_top_text_bottom
17660     *
17661     * @image html img/widget/genlist/preview-02.png
17662     * @image latex img/widget/genlist/preview-02.eps
17663     *
17664     * - group_index
17665     *
17666     * @image html img/widget/genlist/preview-03.png
17667     * @image latex img/widget/genlist/preview-03.eps
17668     *
17669     * @section Genlist_Items Structure of items
17670     *
17671     * An item in a genlist can have 0 or more text labels (they can be regular
17672     * text or textblock Evas objects - that's up to the style to determine), 0
17673     * or more contents (which are simply objects swallowed into the genlist item's
17674     * theming Edje object) and 0 or more <b>boolean states</b>, which have the
17675     * behavior left to the user to define. The Edje part names for each of
17676     * these properties will be looked up, in the theme file for the genlist,
17677     * under the Edje (string) data items named @c "labels", @c "contents" and @c
17678     * "states", respectively. For each of those properties, if more than one
17679     * part is provided, they must have names listed separated by spaces in the
17680     * data fields. For the default genlist item theme, we have @b one label
17681     * part (@c "elm.text"), @b two content parts (@c "elm.swalllow.icon" and @c
17682     * "elm.swallow.end") and @b no state parts.
17683     *
17684     * A genlist item may be at one of several styles. Elementary provides one
17685     * by default - "default", but this can be extended by system or application
17686     * custom themes/overlays/extensions (see @ref Theme "themes" for more
17687     * details).
17688     *
17689     * @section Genlist_Manipulation Editing and Navigating
17690     *
17691     * Items can be added by several calls. All of them return a @ref
17692     * Elm_Genlist_Item handle that is an internal member inside the genlist.
17693     * They all take a data parameter that is meant to be used for a handle to
17694     * the applications internal data (eg the struct with the original item
17695     * data). The parent parameter is the parent genlist item this belongs to if
17696     * it is a tree or an indexed group, and NULL if there is no parent. The
17697     * flags can be a bitmask of #ELM_GENLIST_ITEM_NONE,
17698     * #ELM_GENLIST_ITEM_SUBITEMS and #ELM_GENLIST_ITEM_GROUP. If
17699     * #ELM_GENLIST_ITEM_SUBITEMS is set then this item is displayed as an item
17700     * that is able to expand and have child items.  If ELM_GENLIST_ITEM_GROUP
17701     * is set then this item is group index item that is displayed at the top
17702     * until the next group comes. The func parameter is a convenience callback
17703     * that is called when the item is selected and the data parameter will be
17704     * the func_data parameter, obj be the genlist object and event_info will be
17705     * the genlist item.
17706     *
17707     * elm_genlist_item_append() adds an item to the end of the list, or if
17708     * there is a parent, to the end of all the child items of the parent.
17709     * elm_genlist_item_prepend() is the same but adds to the beginning of
17710     * the list or children list. elm_genlist_item_insert_before() inserts at
17711     * item before another item and elm_genlist_item_insert_after() inserts after
17712     * the indicated item.
17713     *
17714     * The application can clear the list with elm_genlist_clear() which deletes
17715     * all the items in the list and elm_genlist_item_del() will delete a specific
17716     * item. elm_genlist_item_subitems_clear() will clear all items that are
17717     * children of the indicated parent item.
17718     *
17719     * To help inspect list items you can jump to the item at the top of the list
17720     * with elm_genlist_first_item_get() which will return the item pointer, and
17721     * similarly elm_genlist_last_item_get() gets the item at the end of the list.
17722     * elm_genlist_item_next_get() and elm_genlist_item_prev_get() get the next
17723     * and previous items respectively relative to the indicated item. Using
17724     * these calls you can walk the entire item list/tree. Note that as a tree
17725     * the items are flattened in the list, so elm_genlist_item_parent_get() will
17726     * let you know which item is the parent (and thus know how to skip them if
17727     * wanted).
17728     *
17729     * @section Genlist_Muti_Selection Multi-selection
17730     *
17731     * If the application wants multiple items to be able to be selected,
17732     * elm_genlist_multi_select_set() can enable this. If the list is
17733     * single-selection only (the default), then elm_genlist_selected_item_get()
17734     * will return the selected item, if any, or NULL I none is selected. If the
17735     * list is multi-select then elm_genlist_selected_items_get() will return a
17736     * list (that is only valid as long as no items are modified (added, deleted,
17737     * selected or unselected)).
17738     *
17739     * @section Genlist_Usage_Hints Usage hints
17740     *
17741     * There are also convenience functions. elm_genlist_item_genlist_get() will
17742     * return the genlist object the item belongs to. elm_genlist_item_show()
17743     * will make the scroller scroll to show that specific item so its visible.
17744     * elm_genlist_item_data_get() returns the data pointer set by the item
17745     * creation functions.
17746     *
17747     * If an item changes (state of boolean changes, label or contents change),
17748     * then use elm_genlist_item_update() to have genlist update the item with
17749     * the new state. Genlist will re-realize the item thus call the functions
17750     * in the _Elm_Genlist_Item_Class for that item.
17751     *
17752     * To programmatically (un)select an item use elm_genlist_item_selected_set().
17753     * To get its selected state use elm_genlist_item_selected_get(). Similarly
17754     * to expand/contract an item and get its expanded state, use
17755     * elm_genlist_item_expanded_set() and elm_genlist_item_expanded_get(). And
17756     * again to make an item disabled (unable to be selected and appear
17757     * differently) use elm_genlist_item_disabled_set() to set this and
17758     * elm_genlist_item_disabled_get() to get the disabled state.
17759     *
17760     * In general to indicate how the genlist should expand items horizontally to
17761     * fill the list area, use elm_genlist_horizontal_set(). Valid modes are
17762     * ELM_LIST_LIMIT and ELM_LIST_SCROLL. The default is ELM_LIST_SCROLL. This
17763     * mode means that if items are too wide to fit, the scroller will scroll
17764     * horizontally. Otherwise items are expanded to fill the width of the
17765     * viewport of the scroller. If it is ELM_LIST_LIMIT, items will be expanded
17766     * to the viewport width and limited to that size. This can be combined with
17767     * a different style that uses edjes' ellipsis feature (cutting text off like
17768     * this: "tex...").
17769     *
17770     * Items will only call their selection func and callback when first becoming
17771     * selected. Any further clicks will do nothing, unless you enable always
17772     * select with elm_genlist_always_select_mode_set(). This means even if
17773     * selected, every click will make the selected callbacks be called.
17774     * elm_genlist_no_select_mode_set() will turn off the ability to select
17775     * items entirely and they will neither appear selected nor call selected
17776     * callback functions.
17777     *
17778     * Remember that you can create new styles and add your own theme augmentation
17779     * per application with elm_theme_extension_add(). If you absolutely must
17780     * have a specific style that overrides any theme the user or system sets up
17781     * you can use elm_theme_overlay_add() to add such a file.
17782     *
17783     * @section Genlist_Implementation Implementation
17784     *
17785     * Evas tracks every object you create. Every time it processes an event
17786     * (mouse move, down, up etc.) it needs to walk through objects and find out
17787     * what event that affects. Even worse every time it renders display updates,
17788     * in order to just calculate what to re-draw, it needs to walk through many
17789     * many many objects. Thus, the more objects you keep active, the more
17790     * overhead Evas has in just doing its work. It is advisable to keep your
17791     * active objects to the minimum working set you need. Also remember that
17792     * object creation and deletion carries an overhead, so there is a
17793     * middle-ground, which is not easily determined. But don't keep massive lists
17794     * of objects you can't see or use. Genlist does this with list objects. It
17795     * creates and destroys them dynamically as you scroll around. It groups them
17796     * into blocks so it can determine the visibility etc. of a whole block at
17797     * once as opposed to having to walk the whole list. This 2-level list allows
17798     * for very large numbers of items to be in the list (tests have used up to
17799     * 2,000,000 items). Also genlist employs a queue for adding items. As items
17800     * may be different sizes, every item added needs to be calculated as to its
17801     * size and thus this presents a lot of overhead on populating the list, this
17802     * genlist employs a queue. Any item added is queued and spooled off over
17803     * time, actually appearing some time later, so if your list has many members
17804     * you may find it takes a while for them to all appear, with your process
17805     * consuming a lot of CPU while it is busy spooling.
17806     *
17807     * Genlist also implements a tree structure, but it does so with callbacks to
17808     * the application, with the application filling in tree structures when
17809     * requested (allowing for efficient building of a very deep tree that could
17810     * even be used for file-management). See the above smart signal callbacks for
17811     * details.
17812     *
17813     * @section Genlist_Smart_Events Genlist smart events
17814     *
17815     * Signals that you can add callbacks for are:
17816     * - @c "activated" - The user has double-clicked or pressed
17817     *   (enter|return|spacebar) on an item. The @c event_info parameter is the
17818     *   item that was activated.
17819     * - @c "clicked,double" - The user has double-clicked an item.  The @c
17820     *   event_info parameter is the item that was double-clicked.
17821     * - @c "selected" - This is called when a user has made an item selected.
17822     *   The event_info parameter is the genlist item that was selected.
17823     * - @c "unselected" - This is called when a user has made an item
17824     *   unselected. The event_info parameter is the genlist item that was
17825     *   unselected.
17826     * - @c "expanded" - This is called when elm_genlist_item_expanded_set() is
17827     *   called and the item is now meant to be expanded. The event_info
17828     *   parameter is the genlist item that was indicated to expand.  It is the
17829     *   job of this callback to then fill in the child items.
17830     * - @c "contracted" - This is called when elm_genlist_item_expanded_set() is
17831     *   called and the item is now meant to be contracted. The event_info
17832     *   parameter is the genlist item that was indicated to contract. It is the
17833     *   job of this callback to then delete the child items.
17834     * - @c "expand,request" - This is called when a user has indicated they want
17835     *   to expand a tree branch item. The callback should decide if the item can
17836     *   expand (has any children) and then call elm_genlist_item_expanded_set()
17837     *   appropriately to set the state. The event_info parameter is the genlist
17838     *   item that was indicated to expand.
17839     * - @c "contract,request" - This is called when a user has indicated they
17840     *   want to contract a tree branch item. The callback should decide if the
17841     *   item can contract (has any children) and then call
17842     *   elm_genlist_item_expanded_set() appropriately to set the state. The
17843     *   event_info parameter is the genlist item that was indicated to contract.
17844     * - @c "realized" - This is called when the item in the list is created as a
17845     *   real evas object. event_info parameter is the genlist item that was
17846     *   created. The object may be deleted at any time, so it is up to the
17847     *   caller to not use the object pointer from elm_genlist_item_object_get()
17848     *   in a way where it may point to freed objects.
17849     * - @c "unrealized" - This is called just before an item is unrealized.
17850     *   After this call content objects provided will be deleted and the item
17851     *   object itself delete or be put into a floating cache.
17852     * - @c "drag,start,up" - This is called when the item in the list has been
17853     *   dragged (not scrolled) up.
17854     * - @c "drag,start,down" - This is called when the item in the list has been
17855     *   dragged (not scrolled) down.
17856     * - @c "drag,start,left" - This is called when the item in the list has been
17857     *   dragged (not scrolled) left.
17858     * - @c "drag,start,right" - This is called when the item in the list has
17859     *   been dragged (not scrolled) right.
17860     * - @c "drag,stop" - This is called when the item in the list has stopped
17861     *   being dragged.
17862     * - @c "drag" - This is called when the item in the list is being dragged.
17863     * - @c "longpressed" - This is called when the item is pressed for a certain
17864     *   amount of time. By default it's 1 second.
17865     * - @c "scroll,anim,start" - This is called when scrolling animation has
17866     *   started.
17867     * - @c "scroll,anim,stop" - This is called when scrolling animation has
17868     *   stopped.
17869     * - @c "scroll,drag,start" - This is called when dragging the content has
17870     *   started.
17871     * - @c "scroll,drag,stop" - This is called when dragging the content has
17872     *   stopped.
17873     * - @c "edge,top" - This is called when the genlist is scrolled until
17874     *   the top edge.
17875     * - @c "edge,bottom" - This is called when the genlist is scrolled
17876     *   until the bottom edge.
17877     * - @c "edge,left" - This is called when the genlist is scrolled
17878     *   until the left edge.
17879     * - @c "edge,right" - This is called when the genlist is scrolled
17880     *   until the right edge.
17881     * - @c "multi,swipe,left" - This is called when the genlist is multi-touch
17882     *   swiped left.
17883     * - @c "multi,swipe,right" - This is called when the genlist is multi-touch
17884     *   swiped right.
17885     * - @c "multi,swipe,up" - This is called when the genlist is multi-touch
17886     *   swiped up.
17887     * - @c "multi,swipe,down" - This is called when the genlist is multi-touch
17888     *   swiped down.
17889     * - @c "multi,pinch,out" - This is called when the genlist is multi-touch
17890     *   pinched out.  "- @c multi,pinch,in" - This is called when the genlist is
17891     *   multi-touch pinched in.
17892     * - @c "swipe" - This is called when the genlist is swiped.
17893     * - @c "moved" - This is called when a genlist item is moved.
17894     * - @c "language,changed" - This is called when the program's language is
17895     *   changed.
17896     *
17897     * @section Genlist_Examples Examples
17898     *
17899     * Here is a list of examples that use the genlist, trying to show some of
17900     * its capabilities:
17901     * - @ref genlist_example_01
17902     * - @ref genlist_example_02
17903     * - @ref genlist_example_03
17904     * - @ref genlist_example_04
17905     * - @ref genlist_example_05
17906     */
17907
17908    /**
17909     * @addtogroup Genlist
17910     * @{
17911     */
17912
17913    /**
17914     * @enum _Elm_Genlist_Item_Flags
17915     * @typedef Elm_Genlist_Item_Flags
17916     *
17917     * Defines if the item is of any special type (has subitems or it's the
17918     * index of a group), or is just a simple item.
17919     *
17920     * @ingroup Genlist
17921     */
17922    typedef enum _Elm_Genlist_Item_Flags
17923      {
17924         ELM_GENLIST_ITEM_NONE = 0, /**< simple item */
17925         ELM_GENLIST_ITEM_SUBITEMS = (1 << 0), /**< may expand and have child items */
17926         ELM_GENLIST_ITEM_GROUP = (1 << 1) /**< index of a group of items */
17927      } Elm_Genlist_Item_Flags;
17928    typedef enum _Elm_Genlist_Item_Field_Flags
17929      {
17930         ELM_GENLIST_ITEM_FIELD_ALL = 0,
17931         ELM_GENLIST_ITEM_FIELD_LABEL = (1 << 0),
17932         ELM_GENLIST_ITEM_FIELD_ICON = (1 << 1),
17933         ELM_GENLIST_ITEM_FIELD_STATE = (1 << 2)
17934      } Elm_Genlist_Item_Field_Flags;
17935    typedef struct _Elm_Genlist_Item_Class Elm_Genlist_Item_Class;  /**< Genlist item class definition structs */
17936    typedef struct _Elm_Genlist_Item       Elm_Genlist_Item; /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
17937    typedef struct _Elm_Genlist_Item_Class_Func Elm_Genlist_Item_Class_Func;
17938    typedef char        *(*GenlistItemLabelGetFunc) (void *data, Evas_Object *obj, const char *part);
17939    typedef Evas_Object *(*GenlistItemIconGetFunc)  (void *data, Evas_Object *obj, const char *part);
17940    typedef Eina_Bool    (*GenlistItemStateGetFunc) (void *data, Evas_Object *obj, const char *part);
17941    typedef void         (*GenlistItemDelFunc)      (void *data, Evas_Object *obj);
17942    typedef void         (*GenlistItemMovedFunc)    ( Evas_Object *genlist, Elm_Genlist_Item *item, Elm_Genlist_Item *rel_item, Eina_Bool move_after);
17943
17944    /**
17945     * @struct _Elm_Genlist_Item_Class
17946     *
17947     * Genlist item class definition structs.
17948     *
17949     * This struct contains the style and fetching functions that will define the
17950     * contents of each item.
17951     *
17952     * @see @ref Genlist_Item_Class
17953     */
17954    struct _Elm_Genlist_Item_Class
17955      {
17956         const char                *item_style;
17957         struct {
17958           GenlistItemLabelGetFunc  label_get;
17959           GenlistItemIconGetFunc   icon_get;
17960           GenlistItemStateGetFunc  state_get;
17961           GenlistItemDelFunc       del;
17962           GenlistItemMovedFunc     moved;
17963         } func;
17964         const char *edit_item_style;
17965         const char                *mode_item_style;
17966      };
17967    #define Elm_Genlist_Item_Class_Func Elm_Gen_Item_Class_Func
17968    /**
17969     * Add a new genlist widget to the given parent Elementary
17970     * (container) object
17971     *
17972     * @param parent The parent object
17973     * @return a new genlist widget handle or @c NULL, on errors
17974     *
17975     * This function inserts a new genlist widget on the canvas.
17976     *
17977     * @see elm_genlist_item_append()
17978     * @see elm_genlist_item_del()
17979     * @see elm_genlist_clear()
17980     *
17981     * @ingroup Genlist
17982     */
17983    EAPI Evas_Object      *elm_genlist_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
17984    /**
17985     * Remove all items from a given genlist widget.
17986     *
17987     * @param obj The genlist object
17988     *
17989     * This removes (and deletes) all items in @p obj, leaving it empty.
17990     *
17991     * @see elm_genlist_item_del(), to remove just one item.
17992     *
17993     * @ingroup Genlist
17994     */
17995    EAPI void elm_genlist_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
17996    /**
17997     * Enable or disable multi-selection in the genlist
17998     *
17999     * @param obj The genlist object
18000     * @param multi Multi-select enable/disable. Default is disabled.
18001     *
18002     * This enables (@c EINA_TRUE) or disables (@c EINA_FALSE) multi-selection in
18003     * the list. This allows more than 1 item to be selected. To retrieve the list
18004     * of selected items, use elm_genlist_selected_items_get().
18005     *
18006     * @see elm_genlist_selected_items_get()
18007     * @see elm_genlist_multi_select_get()
18008     *
18009     * @ingroup Genlist
18010     */
18011    EAPI void              elm_genlist_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
18012    /**
18013     * Gets if multi-selection in genlist is enabled or disabled.
18014     *
18015     * @param obj The genlist object
18016     * @return Multi-select enabled/disabled
18017     * (@c EINA_TRUE = enabled/@c EINA_FALSE = disabled). Default is @c EINA_FALSE.
18018     *
18019     * @see elm_genlist_multi_select_set()
18020     *
18021     * @ingroup Genlist
18022     */
18023    EAPI Eina_Bool         elm_genlist_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18024    /**
18025     * This sets the horizontal stretching mode.
18026     *
18027     * @param obj The genlist object
18028     * @param mode The mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).
18029     *
18030     * This sets the mode used for sizing items horizontally. Valid modes
18031     * are #ELM_LIST_LIMIT and #ELM_LIST_SCROLL. The default is
18032     * ELM_LIST_SCROLL. This mode means that if items are too wide to fit,
18033     * the scroller will scroll horizontally. Otherwise items are expanded
18034     * to fill the width of the viewport of the scroller. If it is
18035     * ELM_LIST_LIMIT, items will be expanded to the viewport width and
18036     * limited to that size.
18037     *
18038     * @see elm_genlist_horizontal_get()
18039     *
18040     * @ingroup Genlist
18041     */
18042    EAPI void              elm_genlist_horizontal_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
18043    /**
18044     * Gets the horizontal stretching mode.
18045     *
18046     * @param obj The genlist object
18047     * @return The mode to use
18048     * (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL)
18049     *
18050     * @see elm_genlist_horizontal_set()
18051     *
18052     * @ingroup Genlist
18053     */
18054    EAPI Elm_List_Mode     elm_genlist_horizontal_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18055    /**
18056     * Set the always select mode.
18057     *
18058     * @param obj The genlist object
18059     * @param always_select The always select mode (@c EINA_TRUE = on, @c
18060     * EINA_FALSE = off). Default is @c EINA_FALSE.
18061     *
18062     * Items will only call their selection func and callback when first
18063     * becoming selected. Any further clicks will do nothing, unless you
18064     * enable always select with elm_genlist_always_select_mode_set().
18065     * This means that, even if selected, every click will make the selected
18066     * callbacks be called.
18067     *
18068     * @see elm_genlist_always_select_mode_get()
18069     *
18070     * @ingroup Genlist
18071     */
18072    EAPI void              elm_genlist_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
18073    /**
18074     * Get the always select mode.
18075     *
18076     * @param obj The genlist object
18077     * @return The always select mode
18078     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
18079     *
18080     * @see elm_genlist_always_select_mode_set()
18081     *
18082     * @ingroup Genlist
18083     */
18084    EAPI Eina_Bool         elm_genlist_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18085    /**
18086     * Enable/disable the no select mode.
18087     *
18088     * @param obj The genlist object
18089     * @param no_select The no select mode
18090     * (EINA_TRUE = on, EINA_FALSE = off)
18091     *
18092     * This will turn off the ability to select items entirely and they
18093     * will neither appear selected nor call selected callback functions.
18094     *
18095     * @see elm_genlist_no_select_mode_get()
18096     *
18097     * @ingroup Genlist
18098     */
18099    EAPI void              elm_genlist_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
18100    /**
18101     * Gets whether the no select mode is enabled.
18102     *
18103     * @param obj The genlist object
18104     * @return The no select mode
18105     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
18106     *
18107     * @see elm_genlist_no_select_mode_set()
18108     *
18109     * @ingroup Genlist
18110     */
18111    EAPI Eina_Bool         elm_genlist_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18112    /**
18113     * Enable/disable compress mode.
18114     *
18115     * @param obj The genlist object
18116     * @param compress The compress mode
18117     * (@c EINA_TRUE = on, @c EINA_FALSE = off). Default is @c EINA_FALSE.
18118     *
18119     * This will enable the compress mode where items are "compressed"
18120     * horizontally to fit the genlist scrollable viewport width. This is
18121     * special for genlist.  Do not rely on
18122     * elm_genlist_horizontal_set() being set to @c ELM_LIST_COMPRESS to
18123     * work as genlist needs to handle it specially.
18124     *
18125     * @see elm_genlist_compress_mode_get()
18126     *
18127     * @ingroup Genlist
18128     */
18129    EAPI void              elm_genlist_compress_mode_set(Evas_Object *obj, Eina_Bool compress) EINA_ARG_NONNULL(1);
18130    /**
18131     * Get whether the compress mode is enabled.
18132     *
18133     * @param obj The genlist object
18134     * @return The compress mode
18135     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
18136     *
18137     * @see elm_genlist_compress_mode_set()
18138     *
18139     * @ingroup Genlist
18140     */
18141    EAPI Eina_Bool         elm_genlist_compress_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18142    /**
18143     * Enable/disable height-for-width mode.
18144     *
18145     * @param obj The genlist object
18146     * @param setting The height-for-width mode (@c EINA_TRUE = on,
18147     * @c EINA_FALSE = off). Default is @c EINA_FALSE.
18148     *
18149     * With height-for-width mode the item width will be fixed (restricted
18150     * to a minimum of) to the list width when calculating its size in
18151     * order to allow the height to be calculated based on it. This allows,
18152     * for instance, text block to wrap lines if the Edje part is
18153     * configured with "text.min: 0 1".
18154     *
18155     * @note This mode will make list resize slower as it will have to
18156     *       recalculate every item height again whenever the list width
18157     *       changes!
18158     *
18159     * @note When height-for-width mode is enabled, it also enables
18160     *       compress mode (see elm_genlist_compress_mode_set()) and
18161     *       disables homogeneous (see elm_genlist_homogeneous_set()).
18162     *
18163     * @ingroup Genlist
18164     */
18165    EAPI void              elm_genlist_height_for_width_mode_set(Evas_Object *obj, Eina_Bool height_for_width) EINA_ARG_NONNULL(1);
18166    /**
18167     * Get whether the height-for-width mode is enabled.
18168     *
18169     * @param obj The genlist object
18170     * @return The height-for-width mode (@c EINA_TRUE = on, @c EINA_FALSE =
18171     * off)
18172     *
18173     * @ingroup Genlist
18174     */
18175    EAPI Eina_Bool         elm_genlist_height_for_width_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18176    /**
18177     * Enable/disable horizontal and vertical bouncing effect.
18178     *
18179     * @param obj The genlist object
18180     * @param h_bounce Allow bounce horizontally (@c EINA_TRUE = on, @c
18181     * EINA_FALSE = off). Default is @c EINA_FALSE.
18182     * @param v_bounce Allow bounce vertically (@c EINA_TRUE = on, @c
18183     * EINA_FALSE = off). Default is @c EINA_TRUE.
18184     *
18185     * This will enable or disable the scroller bouncing effect for the
18186     * genlist. See elm_scroller_bounce_set() for details.
18187     *
18188     * @see elm_scroller_bounce_set()
18189     * @see elm_genlist_bounce_get()
18190     *
18191     * @ingroup Genlist
18192     */
18193    EAPI void              elm_genlist_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
18194    /**
18195     * Get whether the horizontal and vertical bouncing effect is enabled.
18196     *
18197     * @param obj The genlist object
18198     * @param h_bounce Pointer to a bool to receive if the bounce horizontally
18199     * option is set.
18200     * @param v_bounce Pointer to a bool to receive if the bounce vertically
18201     * option is set.
18202     *
18203     * @see elm_genlist_bounce_set()
18204     *
18205     * @ingroup Genlist
18206     */
18207    EAPI void              elm_genlist_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
18208    /**
18209     * Enable/disable homogenous mode.
18210     *
18211     * @param obj The genlist object
18212     * @param homogeneous Assume the items within the genlist are of the
18213     * same height and width (EINA_TRUE = on, EINA_FALSE = off). Default is @c
18214     * EINA_FALSE.
18215     *
18216     * This will enable the homogeneous mode where items are of the same
18217     * height and width so that genlist may do the lazy-loading at its
18218     * maximum (which increases the performance for scrolling the list). This
18219     * implies 'compressed' mode.
18220     *
18221     * @see elm_genlist_compress_mode_set()
18222     * @see elm_genlist_homogeneous_get()
18223     *
18224     * @ingroup Genlist
18225     */
18226    EAPI void              elm_genlist_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
18227    /**
18228     * Get whether the homogenous mode is enabled.
18229     *
18230     * @param obj The genlist object
18231     * @return Assume the items within the genlist are of the same height
18232     * and width (EINA_TRUE = on, EINA_FALSE = off)
18233     *
18234     * @see elm_genlist_homogeneous_set()
18235     *
18236     * @ingroup Genlist
18237     */
18238    EAPI Eina_Bool         elm_genlist_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18239    /**
18240     * Set the maximum number of items within an item block
18241     *
18242     * @param obj The genlist object
18243     * @param n   Maximum number of items within an item block. Default is 32.
18244     *
18245     * This will configure the block count to tune to the target with
18246     * particular performance matrix.
18247     *
18248     * A block of objects will be used to reduce the number of operations due to
18249     * many objects in the screen. It can determine the visibility, or if the
18250     * object has changed, it theme needs to be updated, etc. doing this kind of
18251     * calculation to the entire block, instead of per object.
18252     *
18253     * The default value for the block count is enough for most lists, so unless
18254     * you know you will have a lot of objects visible in the screen at the same
18255     * time, don't try to change this.
18256     *
18257     * @see elm_genlist_block_count_get()
18258     * @see @ref Genlist_Implementation
18259     *
18260     * @ingroup Genlist
18261     */
18262    EAPI void              elm_genlist_block_count_set(Evas_Object *obj, int n) EINA_ARG_NONNULL(1);
18263    /**
18264     * Get the maximum number of items within an item block
18265     *
18266     * @param obj The genlist object
18267     * @return Maximum number of items within an item block
18268     *
18269     * @see elm_genlist_block_count_set()
18270     *
18271     * @ingroup Genlist
18272     */
18273    EAPI int               elm_genlist_block_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18274    /**
18275     * Set the timeout in seconds for the longpress event.
18276     *
18277     * @param obj The genlist object
18278     * @param timeout timeout in seconds. Default is 1.
18279     *
18280     * This option will change how long it takes to send an event "longpressed"
18281     * after the mouse down signal is sent to the list. If this event occurs, no
18282     * "clicked" event will be sent.
18283     *
18284     * @see elm_genlist_longpress_timeout_set()
18285     *
18286     * @ingroup Genlist
18287     */
18288    EAPI void              elm_genlist_longpress_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
18289    /**
18290     * Get the timeout in seconds for the longpress event.
18291     *
18292     * @param obj The genlist object
18293     * @return timeout in seconds
18294     *
18295     * @see elm_genlist_longpress_timeout_get()
18296     *
18297     * @ingroup Genlist
18298     */
18299    EAPI double            elm_genlist_longpress_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18300    /**
18301     * Append a new item in a given genlist widget.
18302     *
18303     * @param obj The genlist object
18304     * @param itc The item class for the item
18305     * @param data The item data
18306     * @param parent The parent item, or NULL if none
18307     * @param flags Item flags
18308     * @param func Convenience function called when the item is selected
18309     * @param func_data Data passed to @p func above.
18310     * @return A handle to the item added or @c NULL if not possible
18311     *
18312     * This adds the given item to the end of the list or the end of
18313     * the children list if the @p parent is given.
18314     *
18315     * @see elm_genlist_item_prepend()
18316     * @see elm_genlist_item_insert_before()
18317     * @see elm_genlist_item_insert_after()
18318     * @see elm_genlist_item_del()
18319     *
18320     * @ingroup Genlist
18321     */
18322    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);
18323    /**
18324     * Prepend a new item in a given genlist widget.
18325     *
18326     * @param obj The genlist object
18327     * @param itc The item class for the item
18328     * @param data The item data
18329     * @param parent The parent item, or NULL if none
18330     * @param flags Item flags
18331     * @param func Convenience function called when the item is selected
18332     * @param func_data Data passed to @p func above.
18333     * @return A handle to the item added or NULL if not possible
18334     *
18335     * This adds an item to the beginning of the list or beginning of the
18336     * children of the parent if given.
18337     *
18338     * @see elm_genlist_item_append()
18339     * @see elm_genlist_item_insert_before()
18340     * @see elm_genlist_item_insert_after()
18341     * @see elm_genlist_item_del()
18342     *
18343     * @ingroup Genlist
18344     */
18345    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);
18346    /**
18347     * Insert an item before another in a genlist widget
18348     *
18349     * @param obj The genlist object
18350     * @param itc The item class for the item
18351     * @param data The item data
18352     * @param before The item to place this new one before.
18353     * @param flags Item flags
18354     * @param func Convenience function called when the item is selected
18355     * @param func_data Data passed to @p func above.
18356     * @return A handle to the item added or @c NULL if not possible
18357     *
18358     * This inserts an item before another in the list. It will be in the
18359     * same tree level or group as the item it is inserted before.
18360     *
18361     * @see elm_genlist_item_append()
18362     * @see elm_genlist_item_prepend()
18363     * @see elm_genlist_item_insert_after()
18364     * @see elm_genlist_item_del()
18365     *
18366     * @ingroup Genlist
18367     */
18368    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);
18369    /**
18370     * Insert an item after another in a genlist widget
18371     *
18372     * @param obj The genlist object
18373     * @param itc The item class for the item
18374     * @param data The item data
18375     * @param after The item to place this new one after.
18376     * @param flags Item flags
18377     * @param func Convenience function called when the item is selected
18378     * @param func_data Data passed to @p func above.
18379     * @return A handle to the item added or @c NULL if not possible
18380     *
18381     * This inserts an item after another in the list. It will be in the
18382     * same tree level or group as the item it is inserted after.
18383     *
18384     * @see elm_genlist_item_append()
18385     * @see elm_genlist_item_prepend()
18386     * @see elm_genlist_item_insert_before()
18387     * @see elm_genlist_item_del()
18388     *
18389     * @ingroup Genlist
18390     */
18391    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);
18392    /**
18393     * Insert a new item into the sorted genlist object
18394     *
18395     * @param obj The genlist object
18396     * @param itc The item class for the item
18397     * @param data The item data
18398     * @param parent The parent item, or NULL if none
18399     * @param flags Item flags
18400     * @param comp The function called for the sort
18401     * @param func Convenience function called when item selected
18402     * @param func_data Data passed to @p func above.
18403     * @return A handle to the item added or NULL if not possible
18404     *
18405     * @ingroup Genlist
18406     */
18407    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);
18408    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);
18409    /* operations to retrieve existing items */
18410    /**
18411     * Get the selectd item in the genlist.
18412     *
18413     * @param obj The genlist object
18414     * @return The selected item, or NULL if none is selected.
18415     *
18416     * This gets the selected item in the list (if multi-selection is enabled, only
18417     * the item that was first selected in the list is returned - which is not very
18418     * useful, so see elm_genlist_selected_items_get() for when multi-selection is
18419     * used).
18420     *
18421     * If no item is selected, NULL is returned.
18422     *
18423     * @see elm_genlist_selected_items_get()
18424     *
18425     * @ingroup Genlist
18426     */
18427    EAPI Elm_Genlist_Item *elm_genlist_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18428    /**
18429     * Get a list of selected items in the genlist.
18430     *
18431     * @param obj The genlist object
18432     * @return The list of selected items, or NULL if none are selected.
18433     *
18434     * It returns a list of the selected items. This list pointer is only valid so
18435     * long as the selection doesn't change (no items are selected or unselected, or
18436     * unselected implicitly by deletion). The list contains Elm_Genlist_Item
18437     * pointers. The order of the items in this list is the order which they were
18438     * selected, i.e. the first item in this list is the first item that was
18439     * selected, and so on.
18440     *
18441     * @note If not in multi-select mode, consider using function
18442     * elm_genlist_selected_item_get() instead.
18443     *
18444     * @see elm_genlist_multi_select_set()
18445     * @see elm_genlist_selected_item_get()
18446     *
18447     * @ingroup Genlist
18448     */
18449    EAPI const Eina_List  *elm_genlist_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18450    /**
18451     * Get the mode item style of items in the genlist
18452     * @param obj The genlist object
18453     * @return The mode item style string, or NULL if none is specified
18454     * 
18455     * This is a constant string and simply defines the name of the
18456     * style that will be used for mode animations. It can be
18457     * @c NULL if you don't plan to use Genlist mode. See
18458     * elm_genlist_item_mode_set() for more info.
18459     * 
18460     * @ingroup Genlist
18461     */
18462    EAPI const char       *elm_genlist_mode_item_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18463    /**
18464     * Set the mode item style of items in the genlist
18465     * @param obj The genlist object
18466     * @param style The mode item style string, or NULL if none is desired
18467     * 
18468     * This is a constant string and simply defines the name of the
18469     * style that will be used for mode animations. It can be
18470     * @c NULL if you don't plan to use Genlist mode. See
18471     * elm_genlist_item_mode_set() for more info.
18472     * 
18473     * @ingroup Genlist
18474     */
18475    EAPI void              elm_genlist_mode_item_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
18476    /**
18477     * Get a list of realized items in genlist
18478     *
18479     * @param obj The genlist object
18480     * @return The list of realized items, nor NULL if none are realized.
18481     *
18482     * This returns a list of the realized items in the genlist. The list
18483     * contains Elm_Genlist_Item pointers. The list must be freed by the
18484     * caller when done with eina_list_free(). The item pointers in the
18485     * list are only valid so long as those items are not deleted or the
18486     * genlist is not deleted.
18487     *
18488     * @see elm_genlist_realized_items_update()
18489     *
18490     * @ingroup Genlist
18491     */
18492    EAPI Eina_List        *elm_genlist_realized_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18493    /**
18494     * Get the item that is at the x, y canvas coords.
18495     *
18496     * @param obj The gelinst object.
18497     * @param x The input x coordinate
18498     * @param y The input y coordinate
18499     * @param posret The position relative to the item returned here
18500     * @return The item at the coordinates or NULL if none
18501     *
18502     * This returns the item at the given coordinates (which are canvas
18503     * relative, not object-relative). If an item is at that coordinate,
18504     * that item handle is returned, and if @p posret is not NULL, the
18505     * integer pointed to is set to a value of -1, 0 or 1, depending if
18506     * the coordinate is on the upper portion of that item (-1), on the
18507     * middle section (0) or on the lower part (1). If NULL is returned as
18508     * an item (no item found there), then posret may indicate -1 or 1
18509     * based if the coordinate is above or below all items respectively in
18510     * the genlist.
18511     *
18512     * @ingroup Genlist
18513     */
18514    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);
18515    /**
18516     * Get the first item in the genlist
18517     *
18518     * This returns the first item in the list.
18519     *
18520     * @param obj The genlist object
18521     * @return The first item, or NULL if none
18522     *
18523     * @ingroup Genlist
18524     */
18525    EAPI Elm_Genlist_Item *elm_genlist_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18526    /**
18527     * Get the last item in the genlist
18528     *
18529     * This returns the last item in the list.
18530     *
18531     * @return The last item, or NULL if none
18532     *
18533     * @ingroup Genlist
18534     */
18535    EAPI Elm_Genlist_Item *elm_genlist_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18536    /**
18537     * Set the scrollbar policy
18538     *
18539     * @param obj The genlist object
18540     * @param policy_h Horizontal scrollbar policy.
18541     * @param policy_v Vertical scrollbar policy.
18542     *
18543     * This sets the scrollbar visibility policy for the given genlist
18544     * scroller. #ELM_SMART_SCROLLER_POLICY_AUTO means the scrollbar is
18545     * made visible if it is needed, and otherwise kept hidden.
18546     * #ELM_SMART_SCROLLER_POLICY_ON turns it on all the time, and
18547     * #ELM_SMART_SCROLLER_POLICY_OFF always keeps it off. This applies
18548     * respectively for the horizontal and vertical scrollbars. Default is
18549     * #ELM_SMART_SCROLLER_POLICY_AUTO
18550     *
18551     * @see elm_genlist_scroller_policy_get()
18552     *
18553     * @ingroup Genlist
18554     */
18555    EAPI void              elm_genlist_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
18556    /**
18557     * Get the scrollbar policy
18558     *
18559     * @param obj The genlist object
18560     * @param policy_h Pointer to store the horizontal scrollbar policy.
18561     * @param policy_v Pointer to store the vertical scrollbar policy.
18562     *
18563     * @see elm_genlist_scroller_policy_set()
18564     *
18565     * @ingroup Genlist
18566     */
18567    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);
18568    /**
18569     * Get the @b next item in a genlist widget's internal list of items,
18570     * given a handle to one of those items.
18571     *
18572     * @param item The genlist item to fetch next from
18573     * @return The item after @p item, or @c NULL if there's none (and
18574     * on errors)
18575     *
18576     * This returns the item placed after the @p item, on the container
18577     * genlist.
18578     *
18579     * @see elm_genlist_item_prev_get()
18580     *
18581     * @ingroup Genlist
18582     */
18583    EAPI Elm_Genlist_Item  *elm_genlist_item_next_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18584    /**
18585     * Get the @b previous item in a genlist widget's internal list of items,
18586     * given a handle to one of those items.
18587     *
18588     * @param item The genlist item to fetch previous from
18589     * @return The item before @p item, or @c NULL if there's none (and
18590     * on errors)
18591     *
18592     * This returns the item placed before the @p item, on the container
18593     * genlist.
18594     *
18595     * @see elm_genlist_item_next_get()
18596     *
18597     * @ingroup Genlist
18598     */
18599    EAPI Elm_Genlist_Item  *elm_genlist_item_prev_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18600    /**
18601     * Get the genlist object's handle which contains a given genlist
18602     * item
18603     *
18604     * @param item The item to fetch the container from
18605     * @return The genlist (parent) object
18606     *
18607     * This returns the genlist object itself that an item belongs to.
18608     *
18609     * @ingroup Genlist
18610     */
18611    EAPI Evas_Object       *elm_genlist_item_genlist_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18612    /**
18613     * Get the parent item of the given item
18614     *
18615     * @param it The item
18616     * @return The parent of the item or @c NULL if it has no parent.
18617     *
18618     * This returns the item that was specified as parent of the item @p it on
18619     * elm_genlist_item_append() and insertion related functions.
18620     *
18621     * @ingroup Genlist
18622     */
18623    EAPI Elm_Genlist_Item  *elm_genlist_item_parent_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
18624    /**
18625     * Remove all sub-items (children) of the given item
18626     *
18627     * @param it The item
18628     *
18629     * This removes all items that are children (and their descendants) of the
18630     * given item @p it.
18631     *
18632     * @see elm_genlist_clear()
18633     * @see elm_genlist_item_del()
18634     *
18635     * @ingroup Genlist
18636     */
18637    EAPI void               elm_genlist_item_subitems_clear(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18638    /**
18639     * Set whether a given genlist item is selected or not
18640     *
18641     * @param it The item
18642     * @param selected Use @c EINA_TRUE, to make it selected, @c
18643     * EINA_FALSE to make it unselected
18644     *
18645     * This sets the selected state of an item. If multi selection is
18646     * not enabled on the containing genlist and @p selected is @c
18647     * EINA_TRUE, any other previously selected items will get
18648     * unselected in favor of this new one.
18649     *
18650     * @see elm_genlist_item_selected_get()
18651     *
18652     * @ingroup Genlist
18653     */
18654    EINA_DEPRECATED EAPI void elm_genlist_item_selected_set(Elm_Genlist_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
18655    /**
18656     * Get whether a given genlist item is selected or not
18657     *
18658     * @param it The item
18659     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
18660     *
18661     * @see elm_genlist_item_selected_set() for more details
18662     *
18663     * @ingroup Genlist
18664     */
18665    EINA_DEPRECATED EAPI Eina_Bool elm_genlist_item_selected_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18666    /**
18667     * Sets the expanded state of an item.
18668     *
18669     * @param it The item
18670     * @param expanded The expanded state (@c EINA_TRUE expanded, @c EINA_FALSE not expanded).
18671     *
18672     * This function flags the item of type #ELM_GENLIST_ITEM_SUBITEMS as
18673     * expanded or not.
18674     *
18675     * The theme will respond to this change visually, and a signal "expanded" or
18676     * "contracted" will be sent from the genlist with a pointer to the item that
18677     * has been expanded/contracted.
18678     *
18679     * Calling this function won't show or hide any child of this item (if it is
18680     * a parent). You must manually delete and create them on the callbacks fo
18681     * the "expanded" or "contracted" signals.
18682     *
18683     * @see elm_genlist_item_expanded_get()
18684     *
18685     * @ingroup Genlist
18686     */
18687    EAPI void               elm_genlist_item_expanded_set(Elm_Genlist_Item *item, Eina_Bool expanded) EINA_ARG_NONNULL(1);
18688    /**
18689     * Get the expanded state of an item
18690     *
18691     * @param it The item
18692     * @return The expanded state
18693     *
18694     * This gets the expanded state of an item.
18695     *
18696     * @see elm_genlist_item_expanded_set()
18697     *
18698     * @ingroup Genlist
18699     */
18700    EAPI Eina_Bool          elm_genlist_item_expanded_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18701    /**
18702     * Get the depth of expanded item
18703     *
18704     * @param it The genlist item object
18705     * @return The depth of expanded item
18706     *
18707     * @ingroup Genlist
18708     */
18709    EAPI int                elm_genlist_item_expanded_depth_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
18710    /**
18711     * Set whether a given genlist item is disabled or not.
18712     *
18713     * @param it The item
18714     * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
18715     * to enable it back.
18716     *
18717     * A disabled item cannot be selected or unselected. It will also
18718     * change its appearance, to signal the user it's disabled.
18719     *
18720     * @see elm_genlist_item_disabled_get()
18721     *
18722     * @ingroup Genlist
18723     */
18724    EAPI void               elm_genlist_item_disabled_set(Elm_Genlist_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
18725    /**
18726     * Get whether a given genlist item is disabled or not.
18727     *
18728     * @param it The item
18729     * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
18730     * (and on errors).
18731     *
18732     * @see elm_genlist_item_disabled_set() for more details
18733     *
18734     * @ingroup Genlist
18735     */
18736    EAPI Eina_Bool          elm_genlist_item_disabled_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18737    /**
18738     * Sets the display only state of an item.
18739     *
18740     * @param it The item
18741     * @param display_only @c EINA_TRUE if the item is display only, @c
18742     * EINA_FALSE otherwise.
18743     *
18744     * A display only item cannot be selected or unselected. It is for
18745     * display only and not selecting or otherwise clicking, dragging
18746     * etc. by the user, thus finger size rules will not be applied to
18747     * this item.
18748     *
18749     * It's good to set group index items to display only state.
18750     *
18751     * @see elm_genlist_item_display_only_get()
18752     *
18753     * @ingroup Genlist
18754     */
18755    EAPI void               elm_genlist_item_display_only_set(Elm_Genlist_Item *it, Eina_Bool display_only) EINA_ARG_NONNULL(1);
18756    /**
18757     * Get the display only state of an item
18758     *
18759     * @param it The item
18760     * @return @c EINA_TRUE if the item is display only, @c
18761     * EINA_FALSE otherwise.
18762     *
18763     * @see elm_genlist_item_display_only_set()
18764     *
18765     * @ingroup Genlist
18766     */
18767    EAPI Eina_Bool          elm_genlist_item_display_only_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
18768    /**
18769     * Show the portion of a genlist's internal list containing a given
18770     * item, immediately.
18771     *
18772     * @param it The item to display
18773     *
18774     * This causes genlist to jump to the given item @p it and show it (by
18775     * immediately scrolling to that position), if it is not fully visible.
18776     *
18777     * @see elm_genlist_item_bring_in()
18778     * @see elm_genlist_item_top_show()
18779     * @see elm_genlist_item_middle_show()
18780     *
18781     * @ingroup Genlist
18782     */
18783    EAPI void               elm_genlist_item_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18784    /**
18785     * Animatedly bring in, to the visible are of a genlist, a given
18786     * item on it.
18787     *
18788     * @param it The item to display
18789     *
18790     * This causes genlist to jump to the given item @p it and show it (by
18791     * animatedly scrolling), if it is not fully visible. This may use animation
18792     * to do so and take a period of time
18793     *
18794     * @see elm_genlist_item_show()
18795     * @see elm_genlist_item_top_bring_in()
18796     * @see elm_genlist_item_middle_bring_in()
18797     *
18798     * @ingroup Genlist
18799     */
18800    EAPI void               elm_genlist_item_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18801    /**
18802     * Show the portion of a genlist's internal list containing a given
18803     * item, immediately.
18804     *
18805     * @param it The item to display
18806     *
18807     * This causes genlist to jump to the given item @p it and show it (by
18808     * immediately scrolling to that position), if it is not fully visible.
18809     *
18810     * The item will be positioned at the top of the genlist viewport.
18811     *
18812     * @see elm_genlist_item_show()
18813     * @see elm_genlist_item_top_bring_in()
18814     *
18815     * @ingroup Genlist
18816     */
18817    EAPI void               elm_genlist_item_top_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18818    /**
18819     * Animatedly bring in, to the visible are of a genlist, a given
18820     * item on it.
18821     *
18822     * @param it The item
18823     *
18824     * This causes genlist to jump to the given item @p it and show it (by
18825     * animatedly scrolling), if it is not fully visible. This may use animation
18826     * to do so and take a period of time
18827     *
18828     * The item will be positioned at the top of the genlist viewport.
18829     *
18830     * @see elm_genlist_item_bring_in()
18831     * @see elm_genlist_item_top_show()
18832     *
18833     * @ingroup Genlist
18834     */
18835    EAPI void               elm_genlist_item_top_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18836    /**
18837     * Show the portion of a genlist's internal list containing a given
18838     * item, immediately.
18839     *
18840     * @param it The item to display
18841     *
18842     * This causes genlist to jump to the given item @p it and show it (by
18843     * immediately scrolling to that position), if it is not fully visible.
18844     *
18845     * The item will be positioned at the middle of the genlist viewport.
18846     *
18847     * @see elm_genlist_item_show()
18848     * @see elm_genlist_item_middle_bring_in()
18849     *
18850     * @ingroup Genlist
18851     */
18852    EAPI void               elm_genlist_item_middle_show(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
18853    /**
18854     * Animatedly bring in, to the visible are of a genlist, a given
18855     * item on it.
18856     *
18857     * @param it The item
18858     *
18859     * This causes genlist to jump to the given item @p it and show it (by
18860     * animatedly scrolling), if it is not fully visible. This may use animation
18861     * to do so and take a period of time
18862     *
18863     * The item will be positioned at the middle of the genlist viewport.
18864     *
18865     * @see elm_genlist_item_bring_in()
18866     * @see elm_genlist_item_middle_show()
18867     *
18868     * @ingroup Genlist
18869     */
18870    EAPI void               elm_genlist_item_middle_bring_in(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
18871    /**
18872     * Remove a genlist item from the its parent, deleting it.
18873     *
18874     * @param item The item to be removed.
18875     * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
18876     *
18877     * @see elm_genlist_clear(), to remove all items in a genlist at
18878     * once.
18879     *
18880     * @ingroup Genlist
18881     */
18882    EAPI void               elm_genlist_item_del(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18883    /**
18884     * Return the data associated to a given genlist item
18885     *
18886     * @param item The genlist item.
18887     * @return the data associated to this item.
18888     *
18889     * This returns the @c data value passed on the
18890     * elm_genlist_item_append() and related item addition calls.
18891     *
18892     * @see elm_genlist_item_append()
18893     * @see elm_genlist_item_data_set()
18894     *
18895     * @ingroup Genlist
18896     */
18897    EAPI void              *elm_genlist_item_data_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18898    /**
18899     * Set the data associated to a given genlist item
18900     *
18901     * @param item The genlist item
18902     * @param data The new data pointer to set on it
18903     *
18904     * This @b overrides the @c data value passed on the
18905     * elm_genlist_item_append() and related item addition calls. This
18906     * function @b won't call elm_genlist_item_update() automatically,
18907     * so you'd issue it afterwards if you want to hove the item
18908     * updated to reflect the that new data.
18909     *
18910     * @see elm_genlist_item_data_get()
18911     *
18912     * @ingroup Genlist
18913     */
18914    EAPI void               elm_genlist_item_data_set(Elm_Genlist_Item *it, const void *data) EINA_ARG_NONNULL(1);
18915    /**
18916     * Tells genlist to "orphan" icons fetchs by the item class
18917     *
18918     * @param it The item
18919     *
18920     * This instructs genlist to release references to icons in the item,
18921     * meaning that they will no longer be managed by genlist and are
18922     * floating "orphans" that can be re-used elsewhere if the user wants
18923     * to.
18924     *
18925     * @ingroup Genlist
18926     */
18927    EAPI void               elm_genlist_item_contents_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
18928    EAPI void               elm_genlist_item_icons_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
18929    /**
18930     * Get the real Evas object created to implement the view of a
18931     * given genlist item
18932     *
18933     * @param item The genlist item.
18934     * @return the Evas object implementing this item's view.
18935     *
18936     * This returns the actual Evas object used to implement the
18937     * specified genlist item's view. This may be @c NULL, as it may
18938     * not have been created or may have been deleted, at any time, by
18939     * the genlist. <b>Do not modify this object</b> (move, resize,
18940     * show, hide, etc.), as the genlist is controlling it. This
18941     * function is for querying, emitting custom signals or hooking
18942     * lower level callbacks for events on that object. Do not delete
18943     * this object under any circumstances.
18944     *
18945     * @see elm_genlist_item_data_get()
18946     *
18947     * @ingroup Genlist
18948     */
18949    EAPI const Evas_Object *elm_genlist_item_object_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
18950    /**
18951     * Update the contents of an item
18952     *
18953     * @param it The item
18954     *
18955     * This updates an item by calling all the item class functions again
18956     * to get the icons, labels and states. Use this when the original
18957     * item data has changed and the changes are desired to be reflected.
18958     *
18959     * Use elm_genlist_realized_items_update() to update all already realized
18960     * items.
18961     *
18962     * @see elm_genlist_realized_items_update()
18963     *
18964     * @ingroup Genlist
18965     */
18966    EAPI void               elm_genlist_item_update(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18967    EAPI void               elm_genlist_item_fields_update(Elm_Genlist_Item *it, const char *parts, Elm_Genlist_Item_Field_Flags itf) EINA_ARG_NONNULL(1);
18968    /**
18969     * Update the item class of an item
18970     *
18971     * @param it The item
18972     * @param itc The item class for the item
18973     *
18974     * This sets another class fo the item, changing the way that it is
18975     * displayed. After changing the item class, elm_genlist_item_update() is
18976     * called on the item @p it.
18977     *
18978     * @ingroup Genlist
18979     */
18980    EAPI void               elm_genlist_item_item_class_update(Elm_Genlist_Item *it, const Elm_Genlist_Item_Class *itc) EINA_ARG_NONNULL(1, 2);
18981    EAPI const Elm_Genlist_Item_Class *elm_genlist_item_item_class_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
18982    /**
18983     * Set the text to be shown in a given genlist item's tooltips.
18984     *
18985     * @param item The genlist item
18986     * @param text The text to set in the content
18987     *
18988     * This call will setup the text to be used as tooltip to that item
18989     * (analogous to elm_object_tooltip_text_set(), but being item
18990     * tooltips with higher precedence than object tooltips). It can
18991     * have only one tooltip at a time, so any previous tooltip data
18992     * will get removed.
18993     *
18994     * In order to set an icon or something else as a tooltip, look at
18995     * elm_genlist_item_tooltip_content_cb_set().
18996     *
18997     * @ingroup Genlist
18998     */
18999    EAPI void               elm_genlist_item_tooltip_text_set(Elm_Genlist_Item *item, const char *text) EINA_ARG_NONNULL(1);
19000    /**
19001     * Set the content to be shown in a given genlist item's tooltips
19002     *
19003     * @param item The genlist item.
19004     * @param func The function returning the tooltip contents.
19005     * @param data What to provide to @a func as callback data/context.
19006     * @param del_cb Called when data is not needed anymore, either when
19007     *        another callback replaces @p func, the tooltip is unset with
19008     *        elm_genlist_item_tooltip_unset() or the owner @p item
19009     *        dies. This callback receives as its first parameter the
19010     *        given @p data, being @c event_info the item handle.
19011     *
19012     * This call will setup the tooltip's contents to @p item
19013     * (analogous to elm_object_tooltip_content_cb_set(), but being
19014     * item tooltips with higher precedence than object tooltips). It
19015     * can have only one tooltip at a time, so any previous tooltip
19016     * content will get removed. @p func (with @p data) will be called
19017     * every time Elementary needs to show the tooltip and it should
19018     * return a valid Evas object, which will be fully managed by the
19019     * tooltip system, getting deleted when the tooltip is gone.
19020     *
19021     * In order to set just a text as a tooltip, look at
19022     * elm_genlist_item_tooltip_text_set().
19023     *
19024     * @ingroup Genlist
19025     */
19026    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);
19027    /**
19028     * Unset a tooltip from a given genlist item
19029     *
19030     * @param item genlist item to remove a previously set tooltip from.
19031     *
19032     * This call removes any tooltip set on @p item. The callback
19033     * provided as @c del_cb to
19034     * elm_genlist_item_tooltip_content_cb_set() will be called to
19035     * notify it is not used anymore (and have resources cleaned, if
19036     * need be).
19037     *
19038     * @see elm_genlist_item_tooltip_content_cb_set()
19039     *
19040     * @ingroup Genlist
19041     */
19042    EAPI void               elm_genlist_item_tooltip_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19043    /**
19044     * Set a different @b style for a given genlist item's tooltip.
19045     *
19046     * @param item genlist item with tooltip set
19047     * @param style the <b>theme style</b> to use on tooltips (e.g. @c
19048     * "default", @c "transparent", etc)
19049     *
19050     * Tooltips can have <b>alternate styles</b> to be displayed on,
19051     * which are defined by the theme set on Elementary. This function
19052     * works analogously as elm_object_tooltip_style_set(), but here
19053     * applied only to genlist item objects. The default style for
19054     * tooltips is @c "default".
19055     *
19056     * @note before you set a style you should define a tooltip with
19057     *       elm_genlist_item_tooltip_content_cb_set() or
19058     *       elm_genlist_item_tooltip_text_set()
19059     *
19060     * @see elm_genlist_item_tooltip_style_get()
19061     *
19062     * @ingroup Genlist
19063     */
19064    EAPI void               elm_genlist_item_tooltip_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
19065    /**
19066     * Get the style set a given genlist item's tooltip.
19067     *
19068     * @param item genlist item with tooltip already set on.
19069     * @return style the theme style in use, which defaults to
19070     *         "default". If the object does not have a tooltip set,
19071     *         then @c NULL is returned.
19072     *
19073     * @see elm_genlist_item_tooltip_style_set() for more details
19074     *
19075     * @ingroup Genlist
19076     */
19077    EAPI const char        *elm_genlist_item_tooltip_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19078    /**
19079     * Set the type of mouse pointer/cursor decoration to be shown,
19080     * when the mouse pointer is over the given genlist widget item
19081     *
19082     * @param item genlist item to customize cursor on
19083     * @param cursor the cursor type's name
19084     *
19085     * This function works analogously as elm_object_cursor_set(), but
19086     * here the cursor's changing area is restricted to the item's
19087     * area, and not the whole widget's. Note that that item cursors
19088     * have precedence over widget cursors, so that a mouse over @p
19089     * item will always show cursor @p type.
19090     *
19091     * If this function is called twice for an object, a previously set
19092     * cursor will be unset on the second call.
19093     *
19094     * @see elm_object_cursor_set()
19095     * @see elm_genlist_item_cursor_get()
19096     * @see elm_genlist_item_cursor_unset()
19097     *
19098     * @ingroup Genlist
19099     */
19100    EAPI void               elm_genlist_item_cursor_set(Elm_Genlist_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
19101    /**
19102     * Get the type of mouse pointer/cursor decoration set to be shown,
19103     * when the mouse pointer is over the given genlist widget item
19104     *
19105     * @param item genlist item with custom cursor set
19106     * @return the cursor type's name or @c NULL, if no custom cursors
19107     * were set to @p item (and on errors)
19108     *
19109     * @see elm_object_cursor_get()
19110     * @see elm_genlist_item_cursor_set() for more details
19111     * @see elm_genlist_item_cursor_unset()
19112     *
19113     * @ingroup Genlist
19114     */
19115    EAPI const char        *elm_genlist_item_cursor_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19116    /**
19117     * Unset any custom mouse pointer/cursor decoration set to be
19118     * shown, when the mouse pointer is over the given genlist widget
19119     * item, thus making it show the @b default cursor again.
19120     *
19121     * @param item a genlist item
19122     *
19123     * Use this call to undo any custom settings on this item's cursor
19124     * decoration, bringing it back to defaults (no custom style set).
19125     *
19126     * @see elm_object_cursor_unset()
19127     * @see elm_genlist_item_cursor_set() for more details
19128     *
19129     * @ingroup Genlist
19130     */
19131    EAPI void               elm_genlist_item_cursor_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19132    /**
19133     * Set a different @b style for a given custom cursor set for a
19134     * genlist item.
19135     *
19136     * @param item genlist item with custom cursor set
19137     * @param style the <b>theme style</b> to use (e.g. @c "default",
19138     * @c "transparent", etc)
19139     *
19140     * This function only makes sense when one is using custom mouse
19141     * cursor decorations <b>defined in a theme file</b> , which can
19142     * have, given a cursor name/type, <b>alternate styles</b> on
19143     * it. It works analogously as elm_object_cursor_style_set(), but
19144     * here applied only to genlist item objects.
19145     *
19146     * @warning Before you set a cursor style you should have defined a
19147     *       custom cursor previously on the item, with
19148     *       elm_genlist_item_cursor_set()
19149     *
19150     * @see elm_genlist_item_cursor_engine_only_set()
19151     * @see elm_genlist_item_cursor_style_get()
19152     *
19153     * @ingroup Genlist
19154     */
19155    EAPI void               elm_genlist_item_cursor_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
19156    /**
19157     * Get the current @b style set for a given genlist item's custom
19158     * cursor
19159     *
19160     * @param item genlist item with custom cursor set.
19161     * @return style the cursor style in use. If the object does not
19162     *         have a cursor set, then @c NULL is returned.
19163     *
19164     * @see elm_genlist_item_cursor_style_set() for more details
19165     *
19166     * @ingroup Genlist
19167     */
19168    EAPI const char        *elm_genlist_item_cursor_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19169    /**
19170     * Set if the (custom) cursor for a given genlist item should be
19171     * searched in its theme, also, or should only rely on the
19172     * rendering engine.
19173     *
19174     * @param item item with custom (custom) cursor already set on
19175     * @param engine_only Use @c EINA_TRUE to have cursors looked for
19176     * only on those provided by the rendering engine, @c EINA_FALSE to
19177     * have them searched on the widget's theme, as well.
19178     *
19179     * @note This call is of use only if you've set a custom cursor
19180     * for genlist items, with elm_genlist_item_cursor_set().
19181     *
19182     * @note By default, cursors will only be looked for between those
19183     * provided by the rendering engine.
19184     *
19185     * @ingroup Genlist
19186     */
19187    EAPI void               elm_genlist_item_cursor_engine_only_set(Elm_Genlist_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
19188    /**
19189     * Get if the (custom) cursor for a given genlist item is being
19190     * searched in its theme, also, or is only relying on the rendering
19191     * engine.
19192     *
19193     * @param item a genlist item
19194     * @return @c EINA_TRUE, if cursors are being looked for only on
19195     * those provided by the rendering engine, @c EINA_FALSE if they
19196     * are being searched on the widget's theme, as well.
19197     *
19198     * @see elm_genlist_item_cursor_engine_only_set(), for more details
19199     *
19200     * @ingroup Genlist
19201     */
19202    EAPI Eina_Bool          elm_genlist_item_cursor_engine_only_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19203    /**
19204     * Update the contents of all realized items.
19205     *
19206     * @param obj The genlist object.
19207     *
19208     * This updates all realized items by calling all the item class functions again
19209     * to get the icons, labels and states. Use this when the original
19210     * item data has changed and the changes are desired to be reflected.
19211     *
19212     * To update just one item, use elm_genlist_item_update().
19213     *
19214     * @see elm_genlist_realized_items_get()
19215     * @see elm_genlist_item_update()
19216     *
19217     * @ingroup Genlist
19218     */
19219    EAPI void               elm_genlist_realized_items_update(Evas_Object *obj) EINA_ARG_NONNULL(1);
19220    /**
19221     * Activate a genlist mode on an item
19222     *
19223     * @param item The genlist item
19224     * @param mode Mode name
19225     * @param mode_set Boolean to define set or unset mode.
19226     *
19227     * A genlist mode is a different way of selecting an item. Once a mode is
19228     * activated on an item, any other selected item is immediately unselected.
19229     * This feature provides an easy way of implementing a new kind of animation
19230     * for selecting an item, without having to entirely rewrite the item style
19231     * theme. However, the elm_genlist_selected_* API can't be used to get what
19232     * item is activate for a mode.
19233     *
19234     * The current item style will still be used, but applying a genlist mode to
19235     * an item will select it using a different kind of animation.
19236     *
19237     * The current active item for a mode can be found by
19238     * elm_genlist_mode_item_get().
19239     *
19240     * The characteristics of genlist mode are:
19241     * - Only one mode can be active at any time, and for only one item.
19242     * - Genlist handles deactivating other items when one item is activated.
19243     * - A mode is defined in the genlist theme (edc), and more modes can easily
19244     *   be added.
19245     * - A mode style and the genlist item style are different things. They
19246     *   can be combined to provide a default style to the item, with some kind
19247     *   of animation for that item when the mode is activated.
19248     *
19249     * When a mode is activated on an item, a new view for that item is created.
19250     * The theme of this mode defines the animation that will be used to transit
19251     * the item from the old view to the new view. This second (new) view will be
19252     * active for that item while the mode is active on the item, and will be
19253     * destroyed after the mode is totally deactivated from that item.
19254     *
19255     * @see elm_genlist_mode_get()
19256     * @see elm_genlist_mode_item_get()
19257     *
19258     * @ingroup Genlist
19259     */
19260    EAPI void               elm_genlist_item_mode_set(Elm_Genlist_Item *it, const char *mode_type, Eina_Bool mode_set) EINA_ARG_NONNULL(1, 2);
19261    /**
19262     * Get the last (or current) genlist mode used.
19263     *
19264     * @param obj The genlist object
19265     *
19266     * This function just returns the name of the last used genlist mode. It will
19267     * be the current mode if it's still active.
19268     *
19269     * @see elm_genlist_item_mode_set()
19270     * @see elm_genlist_mode_item_get()
19271     *
19272     * @ingroup Genlist
19273     */
19274    EAPI const char        *elm_genlist_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19275    /**
19276     * Get active genlist mode item
19277     *
19278     * @param obj The genlist object
19279     * @return The active item for that current mode. Or @c NULL if no item is
19280     * activated with any mode.
19281     *
19282     * This function returns the item that was activated with a mode, by the
19283     * function elm_genlist_item_mode_set().
19284     *
19285     * @see elm_genlist_item_mode_set()
19286     * @see elm_genlist_mode_get()
19287     *
19288     * @ingroup Genlist
19289     */
19290    EAPI const Elm_Genlist_Item *elm_genlist_mode_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19291
19292    /**
19293     * Set reorder mode
19294     *
19295     * @param obj The genlist object
19296     * @param reorder_mode The reorder mode
19297     * (EINA_TRUE = on, EINA_FALSE = off)
19298     *
19299     * @ingroup Genlist
19300     */
19301    EAPI void               elm_genlist_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
19302
19303    /**
19304     * Get the reorder mode
19305     *
19306     * @param obj The genlist object
19307     * @return The reorder mode
19308     * (EINA_TRUE = on, EINA_FALSE = off)
19309     *
19310     * @ingroup Genlist
19311     */
19312    EAPI Eina_Bool          elm_genlist_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19313
19314    EAPI void               elm_genlist_edit_mode_set(Evas_Object *obj, Eina_Bool edit_mode) EINA_ARG_NONNULL(1);
19315    EAPI Eina_Bool          elm_genlist_edit_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19316    EAPI void               elm_genlist_item_rename_mode_set(Elm_Genlist_Item *it, Eina_Bool renamed) EINA_ARG_NONNULL(1);
19317    EAPI Eina_Bool          elm_genlist_item_rename_mode_get(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19318    EAPI void               elm_genlist_item_move_after(Elm_Genlist_Item *it, Elm_Genlist_Item *after ) EINA_ARG_NONNULL(1, 2);
19319    EAPI void               elm_genlist_item_move_before(Elm_Genlist_Item *it, Elm_Genlist_Item *before) EINA_ARG_NONNULL(1, 2);
19320    EAPI void               elm_genlist_effect_set(const Evas_Object *obj, Eina_Bool emode) EINA_ARG_NONNULL(1);
19321    EAPI void               elm_genlist_pinch_zoom_set(Evas_Object *obj, Eina_Bool emode) EINA_ARG_NONNULL(1);
19322    EAPI void               elm_genlist_pinch_zoom_mode_set(Evas_Object *obj, Eina_Bool emode) EINA_ARG_NONNULL(1);
19323    EAPI Eina_Bool          elm_genlist_pinch_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19324
19325    /**
19326     * @}
19327     */
19328
19329    /**
19330     * @defgroup Check Check
19331     *
19332     * @image html img/widget/check/preview-00.png
19333     * @image latex img/widget/check/preview-00.eps
19334     * @image html img/widget/check/preview-01.png
19335     * @image latex img/widget/check/preview-01.eps
19336     * @image html img/widget/check/preview-02.png
19337     * @image latex img/widget/check/preview-02.eps
19338     *
19339     * @brief The check widget allows for toggling a value between true and
19340     * false.
19341     *
19342     * Check objects are a lot like radio objects in layout and functionality
19343     * except they do not work as a group, but independently and only toggle the
19344     * value of a boolean from false to true (0 or 1). elm_check_state_set() sets
19345     * the boolean state (1 for true, 0 for false), and elm_check_state_get()
19346     * returns the current state. For convenience, like the radio objects, you
19347     * can set a pointer to a boolean directly with elm_check_state_pointer_set()
19348     * for it to modify.
19349     *
19350     * Signals that you can add callbacks for are:
19351     * "changed" - This is called whenever the user changes the state of one of
19352     *             the check object(event_info is NULL).
19353     *
19354     * Default contents parts of the check widget that you can use for are:
19355     * @li "elm.swallow.content" - A icon of the check
19356     *
19357     * Default text parts of the check widget that you can use for are:
19358     * @li "elm.text" - Label of the check
19359     *
19360     * @ref tutorial_check should give you a firm grasp of how to use this widget
19361     * .
19362     * @{
19363     */
19364    /**
19365     * @brief Add a new Check object
19366     *
19367     * @param parent The parent object
19368     * @return The new object or NULL if it cannot be created
19369     */
19370    EAPI Evas_Object *elm_check_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19371    /**
19372     * @brief Set the text label of the check object
19373     *
19374     * @param obj The check object
19375     * @param label The text label string in UTF-8
19376     *
19377     * @deprecated use elm_object_text_set() instead.
19378     */
19379    EINA_DEPRECATED EAPI void         elm_check_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
19380    /**
19381     * @brief Get the text label of the check object
19382     *
19383     * @param obj The check object
19384     * @return The text label string in UTF-8
19385     *
19386     * @deprecated use elm_object_text_get() instead.
19387     */
19388    EINA_DEPRECATED EAPI const char  *elm_check_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19389    /**
19390     * @brief Set the icon object of the check object
19391     *
19392     * @param obj The check object
19393     * @param icon The icon object
19394     *
19395     * Once the icon object is set, a previously set one will be deleted.
19396     * If you want to keep that old content object, use the
19397     * elm_check_icon_unset() function.
19398     */
19399    EAPI void         elm_check_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
19400    /**
19401     * @brief Get the icon object of the check object
19402     *
19403     * @param obj The check object
19404     * @return The icon object
19405     */
19406    EAPI Evas_Object *elm_check_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19407    /**
19408     * @brief Unset the icon used for the check object
19409     *
19410     * @param obj The check object
19411     * @return The icon object that was being used
19412     *
19413     * Unparent and return the icon object which was set for this widget.
19414     */
19415    EAPI Evas_Object *elm_check_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
19416    /**
19417     * @brief Set the on/off state of the check object
19418     *
19419     * @param obj The check object
19420     * @param state The state to use (1 == on, 0 == off)
19421     *
19422     * This sets the state of the check. If set
19423     * with elm_check_state_pointer_set() the state of that variable is also
19424     * changed. Calling this @b doesn't cause the "changed" signal to be emited.
19425     */
19426    EAPI void         elm_check_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
19427    /**
19428     * @brief Get the state of the check object
19429     *
19430     * @param obj The check object
19431     * @return The boolean state
19432     */
19433    EAPI Eina_Bool    elm_check_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19434    /**
19435     * @brief Set a convenience pointer to a boolean to change
19436     *
19437     * @param obj The check object
19438     * @param statep Pointer to the boolean to modify
19439     *
19440     * This sets a pointer to a boolean, that, in addition to the check objects
19441     * state will also be modified directly. To stop setting the object pointed
19442     * to simply use NULL as the @p statep parameter. If @p statep is not NULL,
19443     * then when this is called, the check objects state will also be modified to
19444     * reflect the value of the boolean @p statep points to, just like calling
19445     * elm_check_state_set().
19446     */
19447    EAPI void         elm_check_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
19448    /**
19449     * @}
19450     */
19451
19452    /**
19453     * @defgroup Radio Radio
19454     *
19455     * @image html img/widget/radio/preview-00.png
19456     * @image latex img/widget/radio/preview-00.eps
19457     *
19458     * @brief Radio is a widget that allows for 1 or more options to be displayed
19459     * and have the user choose only 1 of them.
19460     *
19461     * A radio object contains an indicator, an optional Label and an optional
19462     * icon object. While it's possible to have a group of only one radio they,
19463     * are normally used in groups of 2 or more. To add a radio to a group use
19464     * elm_radio_group_add(). The radio object(s) will select from one of a set
19465     * of integer values, so any value they are configuring needs to be mapped to
19466     * a set of integers. To configure what value that radio object represents,
19467     * use  elm_radio_state_value_set() to set the integer it represents. To set
19468     * the value the whole group(which one is currently selected) is to indicate
19469     * use elm_radio_value_set() on any group member, and to get the groups value
19470     * use elm_radio_value_get(). For convenience the radio objects are also able
19471     * to directly set an integer(int) to the value that is selected. To specify
19472     * the pointer to this integer to modify, use elm_radio_value_pointer_set().
19473     * The radio objects will modify this directly. That implies the pointer must
19474     * point to valid memory for as long as the radio objects exist.
19475     *
19476     * Signals that you can add callbacks for are:
19477     * @li changed - This is called whenever the user changes the state of one of
19478     * the radio objects within the group of radio objects that work together.
19479     *
19480     * Default contents parts of the radio widget that you can use for are:
19481     * @li "elm.swallow.content" - A icon of the radio
19482     *
19483     * @ref tutorial_radio show most of this API in action.
19484     * @{
19485     */
19486    /**
19487     * @brief Add a new radio to the parent
19488     *
19489     * @param parent The parent object
19490     * @return The new object or NULL if it cannot be created
19491     */
19492    EAPI Evas_Object *elm_radio_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19493    /**
19494     * @brief Set the text label of the radio object
19495     *
19496     * @param obj The radio object
19497     * @param label The text label string in UTF-8
19498     *
19499     * @deprecated use elm_object_text_set() instead.
19500     */
19501    EINA_DEPRECATED EAPI void         elm_radio_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
19502    /**
19503     * @brief Get the text label of the radio object
19504     *
19505     * @param obj The radio object
19506     * @return The text label string in UTF-8
19507     *
19508     * @deprecated use elm_object_text_set() instead.
19509     */
19510    EINA_DEPRECATED EAPI const char  *elm_radio_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19511    /**
19512     * @brief Set the icon object of the radio object
19513     *
19514     * @param obj The radio object
19515     * @param icon The icon object
19516     *
19517     * Once the icon object is set, a previously set one will be deleted. If you
19518     * want to keep that old content object, use the elm_radio_icon_unset()
19519     * function.
19520     &
19521     * @deprecated use elm_object_content_set() instead.
19522     */
19523    EAPI void         elm_radio_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
19524    /**
19525     * @brief Get the icon object of the radio object
19526     *
19527     * @param obj The radio object
19528     * @return The icon object
19529     *
19530     * @see elm_radio_icon_set()
19531     */
19532    EAPI Evas_Object *elm_radio_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19533    /**
19534     * @brief Unset the icon used for the radio object
19535     *
19536     * @param obj The radio object
19537     * @return The icon object that was being used
19538     *
19539     * Unparent and return the icon object which was set for this widget.
19540     *
19541     * @see elm_radio_icon_set()
19542     * @deprecated use elm_object_content_unset() instead.
19543     */
19544    EAPI Evas_Object *elm_radio_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
19545    /**
19546     * @brief Add this radio to a group of other radio objects
19547     *
19548     * @param obj The radio object
19549     * @param group Any object whose group the @p obj is to join.
19550     *
19551     * Radio objects work in groups. Each member should have a different integer
19552     * value assigned. In order to have them work as a group, they need to know
19553     * about each other. This adds the given radio object to the group of which
19554     * the group object indicated is a member.
19555     */
19556    EAPI void         elm_radio_group_add(Evas_Object *obj, Evas_Object *group) EINA_ARG_NONNULL(1);
19557    /**
19558     * @brief Set the integer value that this radio object represents
19559     *
19560     * @param obj The radio object
19561     * @param value The value to use if this radio object is selected
19562     *
19563     * This sets the value of the radio.
19564     */
19565    EAPI void         elm_radio_state_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
19566    /**
19567     * @brief Get the integer value that this radio object represents
19568     *
19569     * @param obj The radio object
19570     * @return The value used if this radio object is selected
19571     *
19572     * This gets the value of the radio.
19573     *
19574     * @see elm_radio_value_set()
19575     */
19576    EAPI int          elm_radio_state_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19577    /**
19578     * @brief Set the value of the radio.
19579     *
19580     * @param obj The radio object
19581     * @param value The value to use for the group
19582     *
19583     * This sets the value of the radio group and will also set the value if
19584     * pointed to, to the value supplied, but will not call any callbacks.
19585     */
19586    EAPI void         elm_radio_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
19587    /**
19588     * @brief Get the state of the radio object
19589     *
19590     * @param obj The radio object
19591     * @return The integer state
19592     */
19593    EAPI int          elm_radio_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19594    /**
19595     * @brief Set a convenience pointer to a integer to change
19596     *
19597     * @param obj The radio object
19598     * @param valuep Pointer to the integer to modify
19599     *
19600     * This sets a pointer to a integer, that, in addition to the radio objects
19601     * state will also be modified directly. To stop setting the object pointed
19602     * to simply use NULL as the @p valuep argument. If valuep is not NULL, then
19603     * when this is called, the radio objects state will also be modified to
19604     * reflect the value of the integer valuep points to, just like calling
19605     * elm_radio_value_set().
19606     */
19607    EAPI void         elm_radio_value_pointer_set(Evas_Object *obj, int *valuep) EINA_ARG_NONNULL(1);
19608    /**
19609     * @}
19610     */
19611
19612    /**
19613     * @defgroup Pager Pager
19614     *
19615     * @image html img/widget/pager/preview-00.png
19616     * @image latex img/widget/pager/preview-00.eps
19617     *
19618     * @brief Widget that allows flipping between 1 or more “pages” of objects.
19619     *
19620     * The flipping between “pages” of objects is animated. All content in pager
19621     * is kept in a stack, the last content to be added will be on the top of the
19622     * stack(be visible).
19623     *
19624     * Objects can be pushed or popped from the stack or deleted as normal.
19625     * Pushes and pops will animate (and a pop will delete the object once the
19626     * animation is finished). Any object already in the pager can be promoted to
19627     * the top(from its current stacking position) through the use of
19628     * elm_pager_content_promote(). Objects are pushed to the top with
19629     * elm_pager_content_push() and when the top item is no longer wanted, simply
19630     * pop it with elm_pager_content_pop() and it will also be deleted. If an
19631     * object is no longer needed and is not the top item, just delete it as
19632     * normal. You can query which objects are the top and bottom with
19633     * elm_pager_content_bottom_get() and elm_pager_content_top_get().
19634     *
19635     * Signals that you can add callbacks for are:
19636     * "hide,finished" - when the previous page is hided
19637     *
19638     * This widget has the following styles available:
19639     * @li default
19640     * @li fade
19641     * @li fade_translucide
19642     * @li fade_invisible
19643     * @note This styles affect only the flipping animations, the appearance when
19644     * not animating is unaffected by styles.
19645     *
19646     * @ref tutorial_pager gives a good overview of the usage of the API.
19647     * @{
19648     */
19649    /**
19650     * Add a new pager to the parent
19651     *
19652     * @param parent The parent object
19653     * @return The new object or NULL if it cannot be created
19654     *
19655     * @ingroup Pager
19656     */
19657    EAPI Evas_Object *elm_pager_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19658    /**
19659     * @brief Push an object to the top of the pager stack (and show it).
19660     *
19661     * @param obj The pager object
19662     * @param content The object to push
19663     *
19664     * The object pushed becomes a child of the pager, it will be controlled and
19665     * deleted when the pager is deleted.
19666     *
19667     * @note If the content is already in the stack use
19668     * elm_pager_content_promote().
19669     * @warning Using this function on @p content already in the stack results in
19670     * undefined behavior.
19671     */
19672    EAPI void         elm_pager_content_push(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
19673    /**
19674     * @brief Pop the object that is on top of the stack
19675     *
19676     * @param obj The pager object
19677     *
19678     * This pops the object that is on the top(visible) of the pager, makes it
19679     * disappear, then deletes the object. The object that was underneath it on
19680     * the stack will become visible.
19681     */
19682    EAPI void         elm_pager_content_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
19683    /**
19684     * @brief Moves an object already in the pager stack to the top of the stack.
19685     *
19686     * @param obj The pager object
19687     * @param content The object to promote
19688     *
19689     * This will take the @p content and move it to the top of the stack as
19690     * if it had been pushed there.
19691     *
19692     * @note If the content isn't already in the stack use
19693     * elm_pager_content_push().
19694     * @warning Using this function on @p content not already in the stack
19695     * results in undefined behavior.
19696     */
19697    EAPI void         elm_pager_content_promote(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
19698    /**
19699     * @brief Return the object at the bottom of the pager stack
19700     *
19701     * @param obj The pager object
19702     * @return The bottom object or NULL if none
19703     */
19704    EAPI Evas_Object *elm_pager_content_bottom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19705    /**
19706     * @brief  Return the object at the top of the pager stack
19707     *
19708     * @param obj The pager object
19709     * @return The top object or NULL if none
19710     */
19711    EAPI Evas_Object *elm_pager_content_top_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19712
19713    EAPI void         elm_pager_to_content_pop(Evas_Object *obj, Evas_Object *content); EINA_ARG_NONNULL(1);
19714    EAPI void         elm_pager_animation_disabled_set(Evas_Object *obj, Eina_Bool disable); EINA_ARG_NONNULL(1);
19715
19716    /**
19717     * @}
19718     */
19719
19720    /**
19721     * @defgroup Slideshow Slideshow
19722     *
19723     * @image html img/widget/slideshow/preview-00.png
19724     * @image latex img/widget/slideshow/preview-00.eps
19725     *
19726     * This widget, as the name indicates, is a pre-made image
19727     * slideshow panel, with API functions acting on (child) image
19728     * items presentation. Between those actions, are:
19729     * - advance to next/previous image
19730     * - select the style of image transition animation
19731     * - set the exhibition time for each image
19732     * - start/stop the slideshow
19733     *
19734     * The transition animations are defined in the widget's theme,
19735     * consequently new animations can be added without having to
19736     * update the widget's code.
19737     *
19738     * @section Slideshow_Items Slideshow items
19739     *
19740     * For slideshow items, just like for @ref Genlist "genlist" ones,
19741     * the user defines a @b classes, specifying functions that will be
19742     * called on the item's creation and deletion times.
19743     *
19744     * The #Elm_Slideshow_Item_Class structure contains the following
19745     * members:
19746     *
19747     * - @c func.get - When an item is displayed, this function is
19748     *   called, and it's where one should create the item object, de
19749     *   facto. For example, the object can be a pure Evas image object
19750     *   or an Elementary @ref Photocam "photocam" widget. See
19751     *   #SlideshowItemGetFunc.
19752     * - @c func.del - When an item is no more displayed, this function
19753     *   is called, where the user must delete any data associated to
19754     *   the item. See #SlideshowItemDelFunc.
19755     *
19756     * @section Slideshow_Caching Slideshow caching
19757     *
19758     * The slideshow provides facilities to have items adjacent to the
19759     * one being displayed <b>already "realized"</b> (i.e. loaded) for
19760     * you, so that the system does not have to decode image data
19761     * anymore at the time it has to actually switch images on its
19762     * viewport. The user is able to set the numbers of items to be
19763     * cached @b before and @b after the current item, in the widget's
19764     * item list.
19765     *
19766     * Smart events one can add callbacks for are:
19767     *
19768     * - @c "changed" - when the slideshow switches its view to a new
19769     *   item
19770     *
19771     * List of examples for the slideshow widget:
19772     * @li @ref slideshow_example
19773     */
19774
19775    /**
19776     * @addtogroup Slideshow
19777     * @{
19778     */
19779
19780    typedef struct _Elm_Slideshow_Item_Class Elm_Slideshow_Item_Class; /**< Slideshow item class definition struct */
19781    typedef struct _Elm_Slideshow_Item_Class_Func Elm_Slideshow_Item_Class_Func; /**< Class functions for slideshow item classes. */
19782    typedef struct _Elm_Slideshow_Item       Elm_Slideshow_Item; /**< Slideshow item handle */
19783    typedef Evas_Object *(*SlideshowItemGetFunc) (void *data, Evas_Object *obj); /**< Image fetching class function for slideshow item classes. */
19784    typedef void         (*SlideshowItemDelFunc) (void *data, Evas_Object *obj); /**< Deletion class function for slideshow item classes. */
19785
19786    /**
19787     * @struct _Elm_Slideshow_Item_Class
19788     *
19789     * Slideshow item class definition. See @ref Slideshow_Items for
19790     * field details.
19791     */
19792    struct _Elm_Slideshow_Item_Class
19793      {
19794         struct _Elm_Slideshow_Item_Class_Func
19795           {
19796              SlideshowItemGetFunc get;
19797              SlideshowItemDelFunc del;
19798           } func;
19799      }; /**< #Elm_Slideshow_Item_Class member definitions */
19800
19801    /**
19802     * Add a new slideshow widget to the given parent Elementary
19803     * (container) object
19804     *
19805     * @param parent The parent object
19806     * @return A new slideshow widget handle or @c NULL, on errors
19807     *
19808     * This function inserts a new slideshow widget on the canvas.
19809     *
19810     * @ingroup Slideshow
19811     */
19812    EAPI Evas_Object        *elm_slideshow_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19813
19814    /**
19815     * Add (append) a new item in a given slideshow widget.
19816     *
19817     * @param obj The slideshow object
19818     * @param itc The item class for the item
19819     * @param data The item's data
19820     * @return A handle to the item added or @c NULL, on errors
19821     *
19822     * Add a new item to @p obj's internal list of items, appending it.
19823     * The item's class must contain the function really fetching the
19824     * image object to show for this item, which could be an Evas image
19825     * object or an Elementary photo, for example. The @p data
19826     * parameter is going to be passed to both class functions of the
19827     * item.
19828     *
19829     * @see #Elm_Slideshow_Item_Class
19830     * @see elm_slideshow_item_sorted_insert()
19831     *
19832     * @ingroup Slideshow
19833     */
19834    EAPI Elm_Slideshow_Item *elm_slideshow_item_add(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data) EINA_ARG_NONNULL(1);
19835
19836    /**
19837     * Insert a new item into the given slideshow widget, using the @p func
19838     * function to sort items (by item handles).
19839     *
19840     * @param obj The slideshow object
19841     * @param itc The item class for the item
19842     * @param data The item's data
19843     * @param func The comparing function to be used to sort slideshow
19844     * items <b>by #Elm_Slideshow_Item item handles</b>
19845     * @return Returns The slideshow item handle, on success, or
19846     * @c NULL, on errors
19847     *
19848     * Add a new item to @p obj's internal list of items, in a position
19849     * determined by the @p func comparing function. The item's class
19850     * must contain the function really fetching the image object to
19851     * show for this item, which could be an Evas image object or an
19852     * Elementary photo, for example. The @p data parameter is going to
19853     * be passed to both class functions of the item.
19854     *
19855     * @see #Elm_Slideshow_Item_Class
19856     * @see elm_slideshow_item_add()
19857     *
19858     * @ingroup Slideshow
19859     */
19860    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);
19861
19862    /**
19863     * Display a given slideshow widget's item, programmatically.
19864     *
19865     * @param obj The slideshow object
19866     * @param item The item to display on @p obj's viewport
19867     *
19868     * The change between the current item and @p item will use the
19869     * transition @p obj is set to use (@see
19870     * elm_slideshow_transition_set()).
19871     *
19872     * @ingroup Slideshow
19873     */
19874    EAPI void                elm_slideshow_show(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
19875
19876    /**
19877     * Slide to the @b next item, in a given slideshow widget
19878     *
19879     * @param obj The slideshow object
19880     *
19881     * The sliding animation @p obj is set to use will be the
19882     * transition effect used, after this call is issued.
19883     *
19884     * @note If the end of the slideshow's internal list of items is
19885     * reached, it'll wrap around to the list's beginning, again.
19886     *
19887     * @ingroup Slideshow
19888     */
19889    EAPI void                elm_slideshow_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
19890
19891    /**
19892     * Slide to the @b previous item, in a given slideshow widget
19893     *
19894     * @param obj The slideshow object
19895     *
19896     * The sliding animation @p obj is set to use will be the
19897     * transition effect used, after this call is issued.
19898     *
19899     * @note If the beginning of the slideshow's internal list of items
19900     * is reached, it'll wrap around to the list's end, again.
19901     *
19902     * @ingroup Slideshow
19903     */
19904    EAPI void                elm_slideshow_previous(Evas_Object *obj) EINA_ARG_NONNULL(1);
19905
19906    /**
19907     * Returns the list of sliding transition/effect names available, for a
19908     * given slideshow widget.
19909     *
19910     * @param obj The slideshow object
19911     * @return The list of transitions (list of @b stringshared strings
19912     * as data)
19913     *
19914     * The transitions, which come from @p obj's theme, must be an EDC
19915     * data item named @c "transitions" on the theme file, with (prefix)
19916     * names of EDC programs actually implementing them.
19917     *
19918     * The available transitions for slideshows on the default theme are:
19919     * - @c "fade" - the current item fades out, while the new one
19920     *   fades in to the slideshow's viewport.
19921     * - @c "black_fade" - the current item fades to black, and just
19922     *   then, the new item will fade in.
19923     * - @c "horizontal" - the current item slides horizontally, until
19924     *   it gets out of the slideshow's viewport, while the new item
19925     *   comes from the left to take its place.
19926     * - @c "vertical" - the current item slides vertically, until it
19927     *   gets out of the slideshow's viewport, while the new item comes
19928     *   from the bottom to take its place.
19929     * - @c "square" - the new item starts to appear from the middle of
19930     *   the current one, but with a tiny size, growing until its
19931     *   target (full) size and covering the old one.
19932     *
19933     * @warning The stringshared strings get no new references
19934     * exclusive to the user grabbing the list, here, so if you'd like
19935     * to use them out of this call's context, you'd better @c
19936     * eina_stringshare_ref() them.
19937     *
19938     * @see elm_slideshow_transition_set()
19939     *
19940     * @ingroup Slideshow
19941     */
19942    EAPI const Eina_List    *elm_slideshow_transitions_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19943
19944    /**
19945     * Set the current slide transition/effect in use for a given
19946     * slideshow widget
19947     *
19948     * @param obj The slideshow object
19949     * @param transition The new transition's name string
19950     *
19951     * If @p transition is implemented in @p obj's theme (i.e., is
19952     * contained in the list returned by
19953     * elm_slideshow_transitions_get()), this new sliding effect will
19954     * be used on the widget.
19955     *
19956     * @see elm_slideshow_transitions_get() for more details
19957     *
19958     * @ingroup Slideshow
19959     */
19960    EAPI void                elm_slideshow_transition_set(Evas_Object *obj, const char *transition) EINA_ARG_NONNULL(1);
19961
19962    /**
19963     * Get the current slide transition/effect in use for a given
19964     * slideshow widget
19965     *
19966     * @param obj The slideshow object
19967     * @return The current transition's name
19968     *
19969     * @see elm_slideshow_transition_set() for more details
19970     *
19971     * @ingroup Slideshow
19972     */
19973    EAPI const char         *elm_slideshow_transition_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19974
19975    /**
19976     * Set the interval between each image transition on a given
19977     * slideshow widget, <b>and start the slideshow, itself</b>
19978     *
19979     * @param obj The slideshow object
19980     * @param timeout The new displaying timeout for images
19981     *
19982     * After this call, the slideshow widget will start cycling its
19983     * view, sequentially and automatically, with the images of the
19984     * items it has. The time between each new image displayed is going
19985     * to be @p timeout, in @b seconds. If a different timeout was set
19986     * previously and an slideshow was in progress, it will continue
19987     * with the new time between transitions, after this call.
19988     *
19989     * @note A value less than or equal to 0 on @p timeout will disable
19990     * the widget's internal timer, thus halting any slideshow which
19991     * could be happening on @p obj.
19992     *
19993     * @see elm_slideshow_timeout_get()
19994     *
19995     * @ingroup Slideshow
19996     */
19997    EAPI void                elm_slideshow_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
19998
19999    /**
20000     * Get the interval set for image transitions on a given slideshow
20001     * widget.
20002     *
20003     * @param obj The slideshow object
20004     * @return Returns the timeout set on it
20005     *
20006     * @see elm_slideshow_timeout_set() for more details
20007     *
20008     * @ingroup Slideshow
20009     */
20010    EAPI double              elm_slideshow_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20011
20012    /**
20013     * Set if, after a slideshow is started, for a given slideshow
20014     * widget, its items should be displayed cyclically or not.
20015     *
20016     * @param obj The slideshow object
20017     * @param loop Use @c EINA_TRUE to make it cycle through items or
20018     * @c EINA_FALSE for it to stop at the end of @p obj's internal
20019     * list of items
20020     *
20021     * @note elm_slideshow_next() and elm_slideshow_previous() will @b
20022     * ignore what is set by this functions, i.e., they'll @b always
20023     * cycle through items. This affects only the "automatic"
20024     * slideshow, as set by elm_slideshow_timeout_set().
20025     *
20026     * @see elm_slideshow_loop_get()
20027     *
20028     * @ingroup Slideshow
20029     */
20030    EAPI void                elm_slideshow_loop_set(Evas_Object *obj, Eina_Bool loop) EINA_ARG_NONNULL(1);
20031
20032    /**
20033     * Get if, after a slideshow is started, for a given slideshow
20034     * widget, its items are to be displayed cyclically or not.
20035     *
20036     * @param obj The slideshow object
20037     * @return @c EINA_TRUE, if the items in @p obj will be cycled
20038     * through or @c EINA_FALSE, otherwise
20039     *
20040     * @see elm_slideshow_loop_set() for more details
20041     *
20042     * @ingroup Slideshow
20043     */
20044    EAPI Eina_Bool           elm_slideshow_loop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20045
20046    /**
20047     * Remove all items from a given slideshow widget
20048     *
20049     * @param obj The slideshow object
20050     *
20051     * This removes (and deletes) all items in @p obj, leaving it
20052     * empty.
20053     *
20054     * @see elm_slideshow_item_del(), to remove just one item.
20055     *
20056     * @ingroup Slideshow
20057     */
20058    EAPI void                elm_slideshow_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
20059
20060    /**
20061     * Get the internal list of items in a given slideshow widget.
20062     *
20063     * @param obj The slideshow object
20064     * @return The list of items (#Elm_Slideshow_Item as data) or
20065     * @c NULL on errors.
20066     *
20067     * This list is @b not to be modified in any way and must not be
20068     * freed. Use the list members with functions like
20069     * elm_slideshow_item_del(), elm_slideshow_item_data_get().
20070     *
20071     * @warning This list is only valid until @p obj object's internal
20072     * items list is changed. It should be fetched again with another
20073     * call to this function when changes happen.
20074     *
20075     * @ingroup Slideshow
20076     */
20077    EAPI const Eina_List    *elm_slideshow_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20078
20079    /**
20080     * Delete a given item from a slideshow widget.
20081     *
20082     * @param item The slideshow item
20083     *
20084     * @ingroup Slideshow
20085     */
20086    EAPI void                elm_slideshow_item_del(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
20087
20088    /**
20089     * Return the data associated with a given slideshow item
20090     *
20091     * @param item The slideshow item
20092     * @return Returns the data associated to this item
20093     *
20094     * @ingroup Slideshow
20095     */
20096    EAPI void               *elm_slideshow_item_data_get(const Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
20097
20098    /**
20099     * Returns the currently displayed item, in a given slideshow widget
20100     *
20101     * @param obj The slideshow object
20102     * @return A handle to the item being displayed in @p obj or
20103     * @c NULL, if none is (and on errors)
20104     *
20105     * @ingroup Slideshow
20106     */
20107    EAPI Elm_Slideshow_Item *elm_slideshow_item_current_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20108
20109    /**
20110     * Get the real Evas object created to implement the view of a
20111     * given slideshow item
20112     *
20113     * @param item The slideshow item.
20114     * @return the Evas object implementing this item's view.
20115     *
20116     * This returns the actual Evas object used to implement the
20117     * specified slideshow item's view. This may be @c NULL, as it may
20118     * not have been created or may have been deleted, at any time, by
20119     * the slideshow. <b>Do not modify this object</b> (move, resize,
20120     * show, hide, etc.), as the slideshow is controlling it. This
20121     * function is for querying, emitting custom signals or hooking
20122     * lower level callbacks for events on that object. Do not delete
20123     * this object under any circumstances.
20124     *
20125     * @see elm_slideshow_item_data_get()
20126     *
20127     * @ingroup Slideshow
20128     */
20129    EAPI Evas_Object*        elm_slideshow_item_object_get(const Elm_Slideshow_Item* item) EINA_ARG_NONNULL(1);
20130
20131    /**
20132     * Get the the item, in a given slideshow widget, placed at
20133     * position @p nth, in its internal items list
20134     *
20135     * @param obj The slideshow object
20136     * @param nth The number of the item to grab a handle to (0 being
20137     * the first)
20138     * @return The item stored in @p obj at position @p nth or @c NULL,
20139     * if there's no item with that index (and on errors)
20140     *
20141     * @ingroup Slideshow
20142     */
20143    EAPI Elm_Slideshow_Item *elm_slideshow_item_nth_get(const Evas_Object *obj, unsigned int nth) EINA_ARG_NONNULL(1);
20144
20145    /**
20146     * Set the current slide layout in use for a given slideshow widget
20147     *
20148     * @param obj The slideshow object
20149     * @param layout The new layout's name string
20150     *
20151     * If @p layout is implemented in @p obj's theme (i.e., is contained
20152     * in the list returned by elm_slideshow_layouts_get()), this new
20153     * images layout will be used on the widget.
20154     *
20155     * @see elm_slideshow_layouts_get() for more details
20156     *
20157     * @ingroup Slideshow
20158     */
20159    EAPI void                elm_slideshow_layout_set(Evas_Object *obj, const char *layout) EINA_ARG_NONNULL(1);
20160
20161    /**
20162     * Get the current slide layout in use for a given slideshow widget
20163     *
20164     * @param obj The slideshow object
20165     * @return The current layout's name
20166     *
20167     * @see elm_slideshow_layout_set() for more details
20168     *
20169     * @ingroup Slideshow
20170     */
20171    EAPI const char         *elm_slideshow_layout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20172
20173    /**
20174     * Returns the list of @b layout names available, for a given
20175     * slideshow widget.
20176     *
20177     * @param obj The slideshow object
20178     * @return The list of layouts (list of @b stringshared strings
20179     * as data)
20180     *
20181     * Slideshow layouts will change how the widget is to dispose each
20182     * image item in its viewport, with regard to cropping, scaling,
20183     * etc.
20184     *
20185     * The layouts, which come from @p obj's theme, must be an EDC
20186     * data item name @c "layouts" on the theme file, with (prefix)
20187     * names of EDC programs actually implementing them.
20188     *
20189     * The available layouts for slideshows on the default theme are:
20190     * - @c "fullscreen" - item images with original aspect, scaled to
20191     *   touch top and down slideshow borders or, if the image's heigh
20192     *   is not enough, left and right slideshow borders.
20193     * - @c "not_fullscreen" - the same behavior as the @c "fullscreen"
20194     *   one, but always leaving 10% of the slideshow's dimensions of
20195     *   distance between the item image's borders and the slideshow
20196     *   borders, for each axis.
20197     *
20198     * @warning The stringshared strings get no new references
20199     * exclusive to the user grabbing the list, here, so if you'd like
20200     * to use them out of this call's context, you'd better @c
20201     * eina_stringshare_ref() them.
20202     *
20203     * @see elm_slideshow_layout_set()
20204     *
20205     * @ingroup Slideshow
20206     */
20207    EAPI const Eina_List    *elm_slideshow_layouts_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20208
20209    /**
20210     * Set the number of items to cache, on a given slideshow widget,
20211     * <b>before the current item</b>
20212     *
20213     * @param obj The slideshow object
20214     * @param count Number of items to cache before the current one
20215     *
20216     * The default value for this property is @c 2. See
20217     * @ref Slideshow_Caching "slideshow caching" for more details.
20218     *
20219     * @see elm_slideshow_cache_before_get()
20220     *
20221     * @ingroup Slideshow
20222     */
20223    EAPI void                elm_slideshow_cache_before_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
20224
20225    /**
20226     * Retrieve the number of items to cache, on a given slideshow widget,
20227     * <b>before the current item</b>
20228     *
20229     * @param obj The slideshow object
20230     * @return The number of items set to be cached before the current one
20231     *
20232     * @see elm_slideshow_cache_before_set() for more details
20233     *
20234     * @ingroup Slideshow
20235     */
20236    EAPI int                 elm_slideshow_cache_before_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20237
20238    /**
20239     * Set the number of items to cache, on a given slideshow widget,
20240     * <b>after the current item</b>
20241     *
20242     * @param obj The slideshow object
20243     * @param count Number of items to cache after the current one
20244     *
20245     * The default value for this property is @c 2. See
20246     * @ref Slideshow_Caching "slideshow caching" for more details.
20247     *
20248     * @see elm_slideshow_cache_after_get()
20249     *
20250     * @ingroup Slideshow
20251     */
20252    EAPI void                elm_slideshow_cache_after_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
20253
20254    /**
20255     * Retrieve the number of items to cache, on a given slideshow widget,
20256     * <b>after the current item</b>
20257     *
20258     * @param obj The slideshow object
20259     * @return The number of items set to be cached after the current one
20260     *
20261     * @see elm_slideshow_cache_after_set() for more details
20262     *
20263     * @ingroup Slideshow
20264     */
20265    EAPI int                 elm_slideshow_cache_after_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20266
20267    /**
20268     * Get the number of items stored in a given slideshow widget
20269     *
20270     * @param obj The slideshow object
20271     * @return The number of items on @p obj, at the moment of this call
20272     *
20273     * @ingroup Slideshow
20274     */
20275    EAPI unsigned int        elm_slideshow_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20276
20277    /**
20278     * @}
20279     */
20280
20281    /**
20282     * @defgroup Fileselector File Selector
20283     *
20284     * @image html img/widget/fileselector/preview-00.png
20285     * @image latex img/widget/fileselector/preview-00.eps
20286     *
20287     * A file selector is a widget that allows a user to navigate
20288     * through a file system, reporting file selections back via its
20289     * API.
20290     *
20291     * It contains shortcut buttons for home directory (@c ~) and to
20292     * jump one directory upwards (..), as well as cancel/ok buttons to
20293     * confirm/cancel a given selection. After either one of those two
20294     * former actions, the file selector will issue its @c "done" smart
20295     * callback.
20296     *
20297     * There's a text entry on it, too, showing the name of the current
20298     * selection. There's the possibility of making it editable, so it
20299     * is useful on file saving dialogs on applications, where one
20300     * gives a file name to save contents to, in a given directory in
20301     * the system. This custom file name will be reported on the @c
20302     * "done" smart callback (explained in sequence).
20303     *
20304     * Finally, it has a view to display file system items into in two
20305     * possible forms:
20306     * - list
20307     * - grid
20308     *
20309     * If Elementary is built with support of the Ethumb thumbnailing
20310     * library, the second form of view will display preview thumbnails
20311     * of files which it supports.
20312     *
20313     * Smart callbacks one can register to:
20314     *
20315     * - @c "selected" - the user has clicked on a file (when not in
20316     *      folders-only mode) or directory (when in folders-only mode)
20317     * - @c "directory,open" - the list has been populated with new
20318     *      content (@c event_info is a pointer to the directory's
20319     *      path, a @b stringshared string)
20320     * - @c "done" - the user has clicked on the "ok" or "cancel"
20321     *      buttons (@c event_info is a pointer to the selection's
20322     *      path, a @b stringshared string)
20323     *
20324     * Here is an example on its usage:
20325     * @li @ref fileselector_example
20326     */
20327
20328    /**
20329     * @addtogroup Fileselector
20330     * @{
20331     */
20332
20333    /**
20334     * Defines how a file selector widget is to layout its contents
20335     * (file system entries).
20336     */
20337    typedef enum _Elm_Fileselector_Mode
20338      {
20339         ELM_FILESELECTOR_LIST = 0, /**< layout as a list */
20340         ELM_FILESELECTOR_GRID, /**< layout as a grid */
20341         ELM_FILESELECTOR_LAST /**< sentinel (helper) value, not used */
20342      } Elm_Fileselector_Mode;
20343
20344    /**
20345     * Add a new file selector widget to the given parent Elementary
20346     * (container) object
20347     *
20348     * @param parent The parent object
20349     * @return a new file selector widget handle or @c NULL, on errors
20350     *
20351     * This function inserts a new file selector widget on the canvas.
20352     *
20353     * @ingroup Fileselector
20354     */
20355    EAPI Evas_Object          *elm_fileselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20356
20357    /**
20358     * Enable/disable the file name entry box where the user can type
20359     * in a name for a file, in a given file selector widget
20360     *
20361     * @param obj The file selector object
20362     * @param is_save @c EINA_TRUE to make the file selector a "saving
20363     * dialog", @c EINA_FALSE otherwise
20364     *
20365     * Having the entry editable is useful on file saving dialogs on
20366     * applications, where one gives a file name to save contents to,
20367     * in a given directory in the system. This custom file name will
20368     * be reported on the @c "done" smart callback.
20369     *
20370     * @see elm_fileselector_is_save_get()
20371     *
20372     * @ingroup Fileselector
20373     */
20374    EAPI void                  elm_fileselector_is_save_set(Evas_Object *obj, Eina_Bool is_save) EINA_ARG_NONNULL(1);
20375
20376    /**
20377     * Get whether the given file selector is in "saving dialog" mode
20378     *
20379     * @param obj The file selector object
20380     * @return @c EINA_TRUE, if the file selector is in "saving dialog"
20381     * mode, @c EINA_FALSE otherwise (and on errors)
20382     *
20383     * @see elm_fileselector_is_save_set() for more details
20384     *
20385     * @ingroup Fileselector
20386     */
20387    EAPI Eina_Bool             elm_fileselector_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20388
20389    /**
20390     * Enable/disable folder-only view for a given file selector widget
20391     *
20392     * @param obj The file selector object
20393     * @param only @c EINA_TRUE to make @p obj only display
20394     * directories, @c EINA_FALSE to make files to be displayed in it
20395     * too
20396     *
20397     * If enabled, the widget's view will only display folder items,
20398     * naturally.
20399     *
20400     * @see elm_fileselector_folder_only_get()
20401     *
20402     * @ingroup Fileselector
20403     */
20404    EAPI void                  elm_fileselector_folder_only_set(Evas_Object *obj, Eina_Bool only) EINA_ARG_NONNULL(1);
20405
20406    /**
20407     * Get whether folder-only view is set for a given file selector
20408     * widget
20409     *
20410     * @param obj The file selector object
20411     * @return only @c EINA_TRUE if @p obj is only displaying
20412     * directories, @c EINA_FALSE if files are being displayed in it
20413     * too (and on errors)
20414     *
20415     * @see elm_fileselector_folder_only_get()
20416     *
20417     * @ingroup Fileselector
20418     */
20419    EAPI Eina_Bool             elm_fileselector_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20420
20421    /**
20422     * Enable/disable the "ok" and "cancel" buttons on a given file
20423     * selector widget
20424     *
20425     * @param obj The file selector object
20426     * @param only @c EINA_TRUE to show them, @c EINA_FALSE to hide.
20427     *
20428     * @note A file selector without those buttons will never emit the
20429     * @c "done" smart event, and is only usable if one is just hooking
20430     * to the other two events.
20431     *
20432     * @see elm_fileselector_buttons_ok_cancel_get()
20433     *
20434     * @ingroup Fileselector
20435     */
20436    EAPI void                  elm_fileselector_buttons_ok_cancel_set(Evas_Object *obj, Eina_Bool buttons) EINA_ARG_NONNULL(1);
20437
20438    /**
20439     * Get whether the "ok" and "cancel" buttons on a given file
20440     * selector widget are being shown.
20441     *
20442     * @param obj The file selector object
20443     * @return @c EINA_TRUE if they are being shown, @c EINA_FALSE
20444     * otherwise (and on errors)
20445     *
20446     * @see elm_fileselector_buttons_ok_cancel_set() for more details
20447     *
20448     * @ingroup Fileselector
20449     */
20450    EAPI Eina_Bool             elm_fileselector_buttons_ok_cancel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20451
20452    /**
20453     * Enable/disable a tree view in the given file selector widget,
20454     * <b>if it's in @c #ELM_FILESELECTOR_LIST mode</b>
20455     *
20456     * @param obj The file selector object
20457     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
20458     * disable
20459     *
20460     * In a tree view, arrows are created on the sides of directories,
20461     * allowing them to expand in place.
20462     *
20463     * @note If it's in other mode, the changes made by this function
20464     * will only be visible when one switches back to "list" mode.
20465     *
20466     * @see elm_fileselector_expandable_get()
20467     *
20468     * @ingroup Fileselector
20469     */
20470    EAPI void                  elm_fileselector_expandable_set(Evas_Object *obj, Eina_Bool expand) EINA_ARG_NONNULL(1);
20471
20472    /**
20473     * Get whether tree view is enabled for the given file selector
20474     * widget
20475     *
20476     * @param obj The file selector object
20477     * @return @c EINA_TRUE if @p obj is in tree view, @c EINA_FALSE
20478     * otherwise (and or errors)
20479     *
20480     * @see elm_fileselector_expandable_set() for more details
20481     *
20482     * @ingroup Fileselector
20483     */
20484    EAPI Eina_Bool             elm_fileselector_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20485
20486    /**
20487     * Set, programmatically, the @b directory that a given file
20488     * selector widget will display contents from
20489     *
20490     * @param obj The file selector object
20491     * @param path The path to display in @p obj
20492     *
20493     * This will change the @b directory that @p obj is displaying. It
20494     * will also clear the text entry area on the @p obj object, which
20495     * displays select files' names.
20496     *
20497     * @see elm_fileselector_path_get()
20498     *
20499     * @ingroup Fileselector
20500     */
20501    EAPI void                  elm_fileselector_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
20502
20503    /**
20504     * Get the parent directory's path that a given file selector
20505     * widget is displaying
20506     *
20507     * @param obj The file selector object
20508     * @return The (full) path of the directory the file selector is
20509     * displaying, a @b stringshared string
20510     *
20511     * @see elm_fileselector_path_set()
20512     *
20513     * @ingroup Fileselector
20514     */
20515    EAPI const char           *elm_fileselector_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20516
20517    /**
20518     * Set, programmatically, the currently selected file/directory in
20519     * the given file selector widget
20520     *
20521     * @param obj The file selector object
20522     * @param path The (full) path to a file or directory
20523     * @return @c EINA_TRUE on success, @c EINA_FALSE on failure. The
20524     * latter case occurs if the directory or file pointed to do not
20525     * exist.
20526     *
20527     * @see elm_fileselector_selected_get()
20528     *
20529     * @ingroup Fileselector
20530     */
20531    EAPI Eina_Bool             elm_fileselector_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
20532
20533    /**
20534     * Get the currently selected item's (full) path, in the given file
20535     * selector widget
20536     *
20537     * @param obj The file selector object
20538     * @return The absolute path of the selected item, a @b
20539     * stringshared string
20540     *
20541     * @note Custom editions on @p obj object's text entry, if made,
20542     * will appear on the return string of this function, naturally.
20543     *
20544     * @see elm_fileselector_selected_set() for more details
20545     *
20546     * @ingroup Fileselector
20547     */
20548    EAPI const char           *elm_fileselector_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20549
20550    /**
20551     * Set the mode in which a given file selector widget will display
20552     * (layout) file system entries in its view
20553     *
20554     * @param obj The file selector object
20555     * @param mode The mode of the fileselector, being it one of
20556     * #ELM_FILESELECTOR_LIST (default) or #ELM_FILESELECTOR_GRID. The
20557     * first one, naturally, will display the files in a list. The
20558     * latter will make the widget to display its entries in a grid
20559     * form.
20560     *
20561     * @note By using elm_fileselector_expandable_set(), the user may
20562     * trigger a tree view for that list.
20563     *
20564     * @note If Elementary is built with support of the Ethumb
20565     * thumbnailing library, the second form of view will display
20566     * preview thumbnails of files which it supports. You must have
20567     * elm_need_ethumb() called in your Elementary for thumbnailing to
20568     * work, though.
20569     *
20570     * @see elm_fileselector_expandable_set().
20571     * @see elm_fileselector_mode_get().
20572     *
20573     * @ingroup Fileselector
20574     */
20575    EAPI void                  elm_fileselector_mode_set(Evas_Object *obj, Elm_Fileselector_Mode mode) EINA_ARG_NONNULL(1);
20576
20577    /**
20578     * Get the mode in which a given file selector widget is displaying
20579     * (layouting) file system entries in its view
20580     *
20581     * @param obj The fileselector object
20582     * @return The mode in which the fileselector is at
20583     *
20584     * @see elm_fileselector_mode_set() for more details
20585     *
20586     * @ingroup Fileselector
20587     */
20588    EAPI Elm_Fileselector_Mode elm_fileselector_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20589
20590    /**
20591     * @}
20592     */
20593
20594    /**
20595     * @defgroup Progressbar Progress bar
20596     *
20597     * The progress bar is a widget for visually representing the
20598     * progress status of a given job/task.
20599     *
20600     * A progress bar may be horizontal or vertical. It may display an
20601     * icon besides it, as well as primary and @b units labels. The
20602     * former is meant to label the widget as a whole, while the
20603     * latter, which is formatted with floating point values (and thus
20604     * accepts a <c>printf</c>-style format string, like <c>"%1.2f
20605     * units"</c>), is meant to label the widget's <b>progress
20606     * value</b>. Label, icon and unit strings/objects are @b optional
20607     * for progress bars.
20608     *
20609     * A progress bar may be @b inverted, in which state it gets its
20610     * values inverted, with high values being on the left or top and
20611     * low values on the right or bottom, as opposed to normally have
20612     * the low values on the former and high values on the latter,
20613     * respectively, for horizontal and vertical modes.
20614     *
20615     * The @b span of the progress, as set by
20616     * elm_progressbar_span_size_set(), is its length (horizontally or
20617     * vertically), unless one puts size hints on the widget to expand
20618     * on desired directions, by any container. That length will be
20619     * scaled by the object or applications scaling factor. At any
20620     * point code can query the progress bar for its value with
20621     * elm_progressbar_value_get().
20622     *
20623     * Available widget styles for progress bars:
20624     * - @c "default"
20625     * - @c "wheel" (simple style, no text, no progression, only
20626     *      "pulse" effect is available)
20627     *
20628     * Default contents parts of the progressbar widget that you can use for are:
20629     * @li "elm.swallow.content" - A icon of the progressbar
20630     * 
20631     * Here is an example on its usage:
20632     * @li @ref progressbar_example
20633     */
20634
20635    /**
20636     * Add a new progress bar widget to the given parent Elementary
20637     * (container) object
20638     *
20639     * @param parent The parent object
20640     * @return a new progress bar widget handle or @c NULL, on errors
20641     *
20642     * This function inserts a new progress bar widget on the canvas.
20643     *
20644     * @ingroup Progressbar
20645     */
20646    EAPI Evas_Object *elm_progressbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20647
20648    /**
20649     * Set whether a given progress bar widget is at "pulsing mode" or
20650     * not.
20651     *
20652     * @param obj The progress bar object
20653     * @param pulse @c EINA_TRUE to put @p obj in pulsing mode,
20654     * @c EINA_FALSE to put it back to its default one
20655     *
20656     * By default, progress bars will display values from the low to
20657     * high value boundaries. There are, though, contexts in which the
20658     * state of progression of a given task is @b unknown.  For those,
20659     * one can set a progress bar widget to a "pulsing state", to give
20660     * the user an idea that some computation is being held, but
20661     * without exact progress values. In the default theme it will
20662     * animate its bar with the contents filling in constantly and back
20663     * to non-filled, in a loop. To start and stop this pulsing
20664     * animation, one has to explicitly call elm_progressbar_pulse().
20665     *
20666     * @see elm_progressbar_pulse_get()
20667     * @see elm_progressbar_pulse()
20668     *
20669     * @ingroup Progressbar
20670     */
20671    EAPI void         elm_progressbar_pulse_set(Evas_Object *obj, Eina_Bool pulse) EINA_ARG_NONNULL(1);
20672
20673    /**
20674     * Get whether a given progress bar widget is at "pulsing mode" or
20675     * not.
20676     *
20677     * @param obj The progress bar object
20678     * @return @c EINA_TRUE, if @p obj is in pulsing mode, @c EINA_FALSE
20679     * if it's in the default one (and on errors)
20680     *
20681     * @ingroup Progressbar
20682     */
20683    EAPI Eina_Bool    elm_progressbar_pulse_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20684
20685    /**
20686     * Start/stop a given progress bar "pulsing" animation, if its
20687     * under that mode
20688     *
20689     * @param obj The progress bar object
20690     * @param state @c EINA_TRUE, to @b start the pulsing animation,
20691     * @c EINA_FALSE to @b stop it
20692     *
20693     * @note This call won't do anything if @p obj is not under "pulsing mode".
20694     *
20695     * @see elm_progressbar_pulse_set() for more details.
20696     *
20697     * @ingroup Progressbar
20698     */
20699    EAPI void         elm_progressbar_pulse(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
20700
20701    /**
20702     * Set the progress value (in percentage) on a given progress bar
20703     * widget
20704     *
20705     * @param obj The progress bar object
20706     * @param val The progress value (@b must be between @c 0.0 and @c
20707     * 1.0)
20708     *
20709     * Use this call to set progress bar levels.
20710     *
20711     * @note If you passes a value out of the specified range for @p
20712     * val, it will be interpreted as the @b closest of the @b boundary
20713     * values in the range.
20714     *
20715     * @ingroup Progressbar
20716     */
20717    EAPI void         elm_progressbar_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
20718
20719    /**
20720     * Get the progress value (in percentage) on a given progress bar
20721     * widget
20722     *
20723     * @param obj The progress bar object
20724     * @return The value of the progressbar
20725     *
20726     * @see elm_progressbar_value_set() for more details
20727     *
20728     * @ingroup Progressbar
20729     */
20730    EAPI double       elm_progressbar_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20731
20732    /**
20733     * Set the label of a given progress bar widget
20734     *
20735     * @param obj The progress bar object
20736     * @param label The text label string, in UTF-8
20737     *
20738     * @ingroup Progressbar
20739     * @deprecated use elm_object_text_set() instead.
20740     */
20741    EINA_DEPRECATED EAPI void         elm_progressbar_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
20742
20743    /**
20744     * Get the label of a given progress bar widget
20745     *
20746     * @param obj The progressbar object
20747     * @return The text label string, in UTF-8
20748     *
20749     * @ingroup Progressbar
20750     * @deprecated use elm_object_text_set() instead.
20751     */
20752    EINA_DEPRECATED EAPI const char  *elm_progressbar_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20753
20754    /**
20755     * Set the icon object of a given progress bar widget
20756     *
20757     * @param obj The progress bar object
20758     * @param icon The icon object
20759     *
20760     * Use this call to decorate @p obj with an icon next to it.
20761     *
20762     * @note Once the icon object is set, a previously set one will be
20763     * deleted. If you want to keep that old content object, use the
20764     * elm_progressbar_icon_unset() function.
20765     *
20766     * @see elm_progressbar_icon_get()
20767     * @deprecated use elm_object_content_set() instead.
20768     *
20769     * @ingroup Progressbar
20770     */
20771    EAPI void         elm_progressbar_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
20772
20773    /**
20774     * Retrieve the icon object set for a given progress bar widget
20775     *
20776     * @param obj The progress bar object
20777     * @return The icon object's handle, if @p obj had one set, or @c NULL,
20778     * otherwise (and on errors)
20779     *
20780     * @see elm_progressbar_icon_set() for more details
20781     * @deprecated use elm_object_content_set() instead.
20782     *
20783     * @ingroup Progressbar
20784     */
20785    EAPI Evas_Object *elm_progressbar_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20786
20787    /**
20788     * Unset an icon set on a given progress bar widget
20789     *
20790     * @param obj The progress bar object
20791     * @return The icon object that was being used, if any was set, or
20792     * @c NULL, otherwise (and on errors)
20793     *
20794     * This call will unparent and return the icon object which was set
20795     * for this widget, previously, on success.
20796     *
20797     * @see elm_progressbar_icon_set() for more details
20798     * @deprecated use elm_object_content_unset() instead.
20799     *
20800     * @ingroup Progressbar
20801     */
20802    EAPI Evas_Object *elm_progressbar_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
20803
20804    /**
20805     * Set the (exact) length of the bar region of a given progress bar
20806     * widget
20807     *
20808     * @param obj The progress bar object
20809     * @param size The length of the progress bar's bar region
20810     *
20811     * This sets the minimum width (when in horizontal mode) or height
20812     * (when in vertical mode) of the actual bar area of the progress
20813     * bar @p obj. This in turn affects the object's minimum size. Use
20814     * this when you're not setting other size hints expanding on the
20815     * given direction (like weight and alignment hints) and you would
20816     * like it to have a specific size.
20817     *
20818     * @note Icon, label and unit text around @p obj will require their
20819     * own space, which will make @p obj to require more the @p size,
20820     * actually.
20821     *
20822     * @see elm_progressbar_span_size_get()
20823     *
20824     * @ingroup Progressbar
20825     */
20826    EAPI void         elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
20827
20828    /**
20829     * Get the length set for the bar region of a given progress bar
20830     * widget
20831     *
20832     * @param obj The progress bar object
20833     * @return The length of the progress bar's bar region
20834     *
20835     * If that size was not set previously, with
20836     * elm_progressbar_span_size_set(), this call will return @c 0.
20837     *
20838     * @ingroup Progressbar
20839     */
20840    EAPI Evas_Coord   elm_progressbar_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20841
20842    /**
20843     * Set the format string for a given progress bar widget's units
20844     * label
20845     *
20846     * @param obj The progress bar object
20847     * @param format The format string for @p obj's units label
20848     *
20849     * If @c NULL is passed on @p format, it will make @p obj's units
20850     * area to be hidden completely. If not, it'll set the <b>format
20851     * string</b> for the units label's @b text. The units label is
20852     * provided a floating point value, so the units text is up display
20853     * at most one floating point falue. Note that the units label is
20854     * optional. Use a format string such as "%1.2f meters" for
20855     * example.
20856     *
20857     * @note The default format string for a progress bar is an integer
20858     * percentage, as in @c "%.0f %%".
20859     *
20860     * @see elm_progressbar_unit_format_get()
20861     *
20862     * @ingroup Progressbar
20863     */
20864    EAPI void         elm_progressbar_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
20865
20866    /**
20867     * Retrieve the format string set for a given progress bar widget's
20868     * units label
20869     *
20870     * @param obj The progress bar object
20871     * @return The format set string for @p obj's units label or
20872     * @c NULL, if none was set (and on errors)
20873     *
20874     * @see elm_progressbar_unit_format_set() for more details
20875     *
20876     * @ingroup Progressbar
20877     */
20878    EAPI const char  *elm_progressbar_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20879
20880    /**
20881     * Set the orientation of a given progress bar widget
20882     *
20883     * @param obj The progress bar object
20884     * @param horizontal Use @c EINA_TRUE to make @p obj to be
20885     * @b horizontal, @c EINA_FALSE to make it @b vertical
20886     *
20887     * Use this function to change how your progress bar is to be
20888     * disposed: vertically or horizontally.
20889     *
20890     * @see elm_progressbar_horizontal_get()
20891     *
20892     * @ingroup Progressbar
20893     */
20894    EAPI void         elm_progressbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
20895
20896    /**
20897     * Retrieve the orientation of a given progress bar widget
20898     *
20899     * @param obj The progress bar object
20900     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
20901     * @c EINA_FALSE if it's @b vertical (and on errors)
20902     *
20903     * @see elm_progressbar_horizontal_set() for more details
20904     *
20905     * @ingroup Progressbar
20906     */
20907    EAPI Eina_Bool    elm_progressbar_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20908
20909    /**
20910     * Invert a given progress bar widget's displaying values order
20911     *
20912     * @param obj The progress bar object
20913     * @param inverted Use @c EINA_TRUE to make @p obj inverted,
20914     * @c EINA_FALSE to bring it back to default, non-inverted values.
20915     *
20916     * A progress bar may be @b inverted, in which state it gets its
20917     * values inverted, with high values being on the left or top and
20918     * low values on the right or bottom, as opposed to normally have
20919     * the low values on the former and high values on the latter,
20920     * respectively, for horizontal and vertical modes.
20921     *
20922     * @see elm_progressbar_inverted_get()
20923     *
20924     * @ingroup Progressbar
20925     */
20926    EAPI void         elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
20927
20928    /**
20929     * Get whether a given progress bar widget's displaying values are
20930     * inverted or not
20931     *
20932     * @param obj The progress bar object
20933     * @return @c EINA_TRUE, if @p obj has inverted values,
20934     * @c EINA_FALSE otherwise (and on errors)
20935     *
20936     * @see elm_progressbar_inverted_set() for more details
20937     *
20938     * @ingroup Progressbar
20939     */
20940    EAPI Eina_Bool    elm_progressbar_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20941
20942    /**
20943     * @defgroup Separator Separator
20944     *
20945     * @brief Separator is a very thin object used to separate other objects.
20946     *
20947     * A separator can be vertical or horizontal.
20948     *
20949     * @ref tutorial_separator is a good example of how to use a separator.
20950     * @{
20951     */
20952    /**
20953     * @brief Add a separator object to @p parent
20954     *
20955     * @param parent The parent object
20956     *
20957     * @return The separator object, or NULL upon failure
20958     */
20959    EAPI Evas_Object *elm_separator_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20960    /**
20961     * @brief Set the horizontal mode of a separator object
20962     *
20963     * @param obj The separator object
20964     * @param horizontal If true, the separator is horizontal
20965     */
20966    EAPI void         elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
20967    /**
20968     * @brief Get the horizontal mode of a separator object
20969     *
20970     * @param obj The separator object
20971     * @return If true, the separator is horizontal
20972     *
20973     * @see elm_separator_horizontal_set()
20974     */
20975    EAPI Eina_Bool    elm_separator_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20976    /**
20977     * @}
20978     */
20979
20980    /**
20981     * @defgroup Spinner Spinner
20982     * @ingroup Elementary
20983     *
20984     * @image html img/widget/spinner/preview-00.png
20985     * @image latex img/widget/spinner/preview-00.eps
20986     *
20987     * A spinner is a widget which allows the user to increase or decrease
20988     * numeric values using arrow buttons, or edit values directly, clicking
20989     * over it and typing the new value.
20990     *
20991     * By default the spinner will not wrap and has a label
20992     * of "%.0f" (just showing the integer value of the double).
20993     *
20994     * A spinner has a label that is formatted with floating
20995     * point values and thus accepts a printf-style format string, like
20996     * “%1.2f units”.
20997     *
20998     * It also allows specific values to be replaced by pre-defined labels.
20999     *
21000     * Smart callbacks one can register to:
21001     *
21002     * - "changed" - Whenever the spinner value is changed.
21003     * - "delay,changed" - A short time after the value is changed by the user.
21004     *    This will be called only when the user stops dragging for a very short
21005     *    period or when they release their finger/mouse, so it avoids possibly
21006     *    expensive reactions to the value change.
21007     *
21008     * Available styles for it:
21009     * - @c "default";
21010     * - @c "vertical": up/down buttons at the right side and text left aligned.
21011     *
21012     * Here is an example on its usage:
21013     * @ref spinner_example
21014     */
21015
21016    /**
21017     * @addtogroup Spinner
21018     * @{
21019     */
21020
21021    /**
21022     * Add a new spinner widget to the given parent Elementary
21023     * (container) object.
21024     *
21025     * @param parent The parent object.
21026     * @return a new spinner widget handle or @c NULL, on errors.
21027     *
21028     * This function inserts a new spinner widget on the canvas.
21029     *
21030     * @ingroup Spinner
21031     *
21032     */
21033    EAPI Evas_Object *elm_spinner_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21034
21035    /**
21036     * Set the format string of the displayed label.
21037     *
21038     * @param obj The spinner object.
21039     * @param fmt The format string for the label display.
21040     *
21041     * If @c NULL, this sets the format to "%.0f". If not it sets the format
21042     * string for the label text. The label text is provided a floating point
21043     * value, so the label text can display up to 1 floating point value.
21044     * Note that this is optional.
21045     *
21046     * Use a format string such as "%1.2f meters" for example, and it will
21047     * display values like: "3.14 meters" for a value equal to 3.14159.
21048     *
21049     * Default is "%0.f".
21050     *
21051     * @see elm_spinner_label_format_get()
21052     *
21053     * @ingroup Spinner
21054     */
21055    EAPI void         elm_spinner_label_format_set(Evas_Object *obj, const char *fmt) EINA_ARG_NONNULL(1);
21056
21057    /**
21058     * Get the label format of the spinner.
21059     *
21060     * @param obj The spinner object.
21061     * @return The text label format string in UTF-8.
21062     *
21063     * @see elm_spinner_label_format_set() for details.
21064     *
21065     * @ingroup Spinner
21066     */
21067    EAPI const char  *elm_spinner_label_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21068
21069    /**
21070     * Set the minimum and maximum values for the spinner.
21071     *
21072     * @param obj The spinner object.
21073     * @param min The minimum value.
21074     * @param max The maximum value.
21075     *
21076     * Define the allowed range of values to be selected by the user.
21077     *
21078     * If actual value is less than @p min, it will be updated to @p min. If it
21079     * is bigger then @p max, will be updated to @p max. Actual value can be
21080     * get with elm_spinner_value_get().
21081     *
21082     * By default, min is equal to 0, and max is equal to 100.
21083     *
21084     * @warning Maximum must be greater than minimum.
21085     *
21086     * @see elm_spinner_min_max_get()
21087     *
21088     * @ingroup Spinner
21089     */
21090    EAPI void         elm_spinner_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
21091
21092    /**
21093     * Get the minimum and maximum values of the spinner.
21094     *
21095     * @param obj The spinner object.
21096     * @param min Pointer where to store the minimum value.
21097     * @param max Pointer where to store the maximum value.
21098     *
21099     * @note If only one value is needed, the other pointer can be passed
21100     * as @c NULL.
21101     *
21102     * @see elm_spinner_min_max_set() for details.
21103     *
21104     * @ingroup Spinner
21105     */
21106    EAPI void         elm_spinner_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
21107
21108    /**
21109     * Set the step used to increment or decrement the spinner value.
21110     *
21111     * @param obj The spinner object.
21112     * @param step The step value.
21113     *
21114     * This value will be incremented or decremented to the displayed value.
21115     * It will be incremented while the user keep right or top arrow pressed,
21116     * and will be decremented while the user keep left or bottom arrow pressed.
21117     *
21118     * The interval to increment / decrement can be set with
21119     * elm_spinner_interval_set().
21120     *
21121     * By default step value is equal to 1.
21122     *
21123     * @see elm_spinner_step_get()
21124     *
21125     * @ingroup Spinner
21126     */
21127    EAPI void         elm_spinner_step_set(Evas_Object *obj, double step) EINA_ARG_NONNULL(1);
21128
21129    /**
21130     * Get the step used to increment or decrement the spinner value.
21131     *
21132     * @param obj The spinner object.
21133     * @return The step value.
21134     *
21135     * @see elm_spinner_step_get() for more details.
21136     *
21137     * @ingroup Spinner
21138     */
21139    EAPI double       elm_spinner_step_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21140
21141    /**
21142     * Set the value the spinner displays.
21143     *
21144     * @param obj The spinner object.
21145     * @param val The value to be displayed.
21146     *
21147     * Value will be presented on the label following format specified with
21148     * elm_spinner_format_set().
21149     *
21150     * @warning The value must to be between min and max values. This values
21151     * are set by elm_spinner_min_max_set().
21152     *
21153     * @see elm_spinner_value_get().
21154     * @see elm_spinner_format_set().
21155     * @see elm_spinner_min_max_set().
21156     *
21157     * @ingroup Spinner
21158     */
21159    EAPI void         elm_spinner_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
21160
21161    /**
21162     * Get the value displayed by the spinner.
21163     *
21164     * @param obj The spinner object.
21165     * @return The value displayed.
21166     *
21167     * @see elm_spinner_value_set() for details.
21168     *
21169     * @ingroup Spinner
21170     */
21171    EAPI double       elm_spinner_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21172
21173    /**
21174     * Set whether the spinner should wrap when it reaches its
21175     * minimum or maximum value.
21176     *
21177     * @param obj The spinner object.
21178     * @param wrap @c EINA_TRUE to enable wrap or @c EINA_FALSE to
21179     * disable it.
21180     *
21181     * Disabled by default. If disabled, when the user tries to increment the
21182     * value,
21183     * but displayed value plus step value is bigger than maximum value,
21184     * the spinner
21185     * won't allow it. The same happens when the user tries to decrement it,
21186     * but the value less step is less than minimum value.
21187     *
21188     * When wrap is enabled, in such situations it will allow these changes,
21189     * but will get the value that would be less than minimum and subtracts
21190     * from maximum. Or add the value that would be more than maximum to
21191     * the minimum.
21192     *
21193     * E.g.:
21194     * @li min value = 10
21195     * @li max value = 50
21196     * @li step value = 20
21197     * @li displayed value = 20
21198     *
21199     * When the user decrement value (using left or bottom arrow), it will
21200     * displays @c 40, because max - (min - (displayed - step)) is
21201     * @c 50 - (@c 10 - (@c 20 - @c 20)) = @c 40.
21202     *
21203     * @see elm_spinner_wrap_get().
21204     *
21205     * @ingroup Spinner
21206     */
21207    EAPI void         elm_spinner_wrap_set(Evas_Object *obj, Eina_Bool wrap) EINA_ARG_NONNULL(1);
21208
21209    /**
21210     * Get whether the spinner should wrap when it reaches its
21211     * minimum or maximum value.
21212     *
21213     * @param obj The spinner object
21214     * @return @c EINA_TRUE means wrap is enabled. @c EINA_FALSE indicates
21215     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
21216     *
21217     * @see elm_spinner_wrap_set() for details.
21218     *
21219     * @ingroup Spinner
21220     */
21221    EAPI Eina_Bool    elm_spinner_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21222
21223    /**
21224     * Set whether the spinner can be directly edited by the user or not.
21225     *
21226     * @param obj The spinner object.
21227     * @param editable @c EINA_TRUE to allow users to edit it or @c EINA_FALSE to
21228     * don't allow users to edit it directly.
21229     *
21230     * Spinner objects can have edition @b disabled, in which state they will
21231     * be changed only by arrows.
21232     * Useful for contexts
21233     * where you don't want your users to interact with it writting the value.
21234     * Specially
21235     * when using special values, the user can see real value instead
21236     * of special label on edition.
21237     *
21238     * It's enabled by default.
21239     *
21240     * @see elm_spinner_editable_get()
21241     *
21242     * @ingroup Spinner
21243     */
21244    EAPI void         elm_spinner_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
21245
21246    /**
21247     * Get whether the spinner can be directly edited by the user or not.
21248     *
21249     * @param obj The spinner object.
21250     * @return @c EINA_TRUE means edition is enabled. @c EINA_FALSE indicates
21251     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
21252     *
21253     * @see elm_spinner_editable_set() for details.
21254     *
21255     * @ingroup Spinner
21256     */
21257    EAPI Eina_Bool    elm_spinner_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21258
21259    /**
21260     * Set a special string to display in the place of the numerical value.
21261     *
21262     * @param obj The spinner object.
21263     * @param value The value to be replaced.
21264     * @param label The label to be used.
21265     *
21266     * It's useful for cases when a user should select an item that is
21267     * better indicated by a label than a value. For example, weekdays or months.
21268     *
21269     * E.g.:
21270     * @code
21271     * sp = elm_spinner_add(win);
21272     * elm_spinner_min_max_set(sp, 1, 3);
21273     * elm_spinner_special_value_add(sp, 1, "January");
21274     * elm_spinner_special_value_add(sp, 2, "February");
21275     * elm_spinner_special_value_add(sp, 3, "March");
21276     * evas_object_show(sp);
21277     * @endcode
21278     *
21279     * @ingroup Spinner
21280     */
21281    EAPI void         elm_spinner_special_value_add(Evas_Object *obj, double value, const char *label) EINA_ARG_NONNULL(1);
21282
21283    /**
21284     * Set the interval on time updates for an user mouse button hold
21285     * on spinner widgets' arrows.
21286     *
21287     * @param obj The spinner object.
21288     * @param interval The (first) interval value in seconds.
21289     *
21290     * This interval value is @b decreased while the user holds the
21291     * mouse pointer either incrementing or decrementing spinner's value.
21292     *
21293     * This helps the user to get to a given value distant from the
21294     * current one easier/faster, as it will start to change quicker and
21295     * quicker on mouse button holds.
21296     *
21297     * The calculation for the next change interval value, starting from
21298     * the one set with this call, is the previous interval divided by
21299     * @c 1.05, so it decreases a little bit.
21300     *
21301     * The default starting interval value for automatic changes is
21302     * @c 0.85 seconds.
21303     *
21304     * @see elm_spinner_interval_get()
21305     *
21306     * @ingroup Spinner
21307     */
21308    EAPI void         elm_spinner_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
21309
21310    /**
21311     * Get the interval on time updates for an user mouse button hold
21312     * on spinner widgets' arrows.
21313     *
21314     * @param obj The spinner object.
21315     * @return The (first) interval value, in seconds, set on it.
21316     *
21317     * @see elm_spinner_interval_set() for more details.
21318     *
21319     * @ingroup Spinner
21320     */
21321    EAPI double       elm_spinner_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21322
21323    /**
21324     * @}
21325     */
21326
21327    /**
21328     * @defgroup Index Index
21329     *
21330     * @image html img/widget/index/preview-00.png
21331     * @image latex img/widget/index/preview-00.eps
21332     *
21333     * An index widget gives you an index for fast access to whichever
21334     * group of other UI items one might have. It's a list of text
21335     * items (usually letters, for alphabetically ordered access).
21336     *
21337     * Index widgets are by default hidden and just appear when the
21338     * user clicks over it's reserved area in the canvas. In its
21339     * default theme, it's an area one @ref Fingers "finger" wide on
21340     * the right side of the index widget's container.
21341     *
21342     * When items on the index are selected, smart callbacks get
21343     * called, so that its user can make other container objects to
21344     * show a given area or child object depending on the index item
21345     * selected. You'd probably be using an index together with @ref
21346     * List "lists", @ref Genlist "generic lists" or @ref Gengrid
21347     * "general grids".
21348     *
21349     * Smart events one  can add callbacks for are:
21350     * - @c "changed" - When the selected index item changes. @c
21351     *      event_info is the selected item's data pointer.
21352     * - @c "delay,changed" - When the selected index item changes, but
21353     *      after a small idling period. @c event_info is the selected
21354     *      item's data pointer.
21355     * - @c "selected" - When the user releases a mouse button and
21356     *      selects an item. @c event_info is the selected item's data
21357     *      pointer.
21358     * - @c "level,up" - when the user moves a finger from the first
21359     *      level to the second level
21360     * - @c "level,down" - when the user moves a finger from the second
21361     *      level to the first level
21362     *
21363     * The @c "delay,changed" event is so that it'll wait a small time
21364     * before actually reporting those events and, moreover, just the
21365     * last event happening on those time frames will actually be
21366     * reported.
21367     *
21368     * Here are some examples on its usage:
21369     * @li @ref index_example_01
21370     * @li @ref index_example_02
21371     */
21372
21373    /**
21374     * @addtogroup Index
21375     * @{
21376     */
21377
21378    typedef struct _Elm_Index_Item Elm_Index_Item; /**< Opaque handle for items of Elementary index widgets */
21379
21380    /**
21381     * Add a new index widget to the given parent Elementary
21382     * (container) object
21383     *
21384     * @param parent The parent object
21385     * @return a new index widget handle or @c NULL, on errors
21386     *
21387     * This function inserts a new index widget on the canvas.
21388     *
21389     * @ingroup Index
21390     */
21391    EAPI Evas_Object    *elm_index_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21392
21393    /**
21394     * Set whether a given index widget is or not visible,
21395     * programatically.
21396     *
21397     * @param obj The index object
21398     * @param active @c EINA_TRUE to show it, @c EINA_FALSE to hide it
21399     *
21400     * Not to be confused with visible as in @c evas_object_show() --
21401     * visible with regard to the widget's auto hiding feature.
21402     *
21403     * @see elm_index_active_get()
21404     *
21405     * @ingroup Index
21406     */
21407    EAPI void            elm_index_active_set(Evas_Object *obj, Eina_Bool active) EINA_ARG_NONNULL(1);
21408
21409    /**
21410     * Get whether a given index widget is currently visible or not.
21411     *
21412     * @param obj The index object
21413     * @return @c EINA_TRUE, if it's shown, @c EINA_FALSE otherwise
21414     *
21415     * @see elm_index_active_set() for more details
21416     *
21417     * @ingroup Index
21418     */
21419    EAPI Eina_Bool       elm_index_active_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21420
21421    /**
21422     * Set the items level for a given index widget.
21423     *
21424     * @param obj The index object.
21425     * @param level @c 0 or @c 1, the currently implemented levels.
21426     *
21427     * @see elm_index_item_level_get()
21428     *
21429     * @ingroup Index
21430     */
21431    EAPI void            elm_index_item_level_set(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
21432
21433    /**
21434     * Get the items level set for a given index widget.
21435     *
21436     * @param obj The index object.
21437     * @return @c 0 or @c 1, which are the levels @p obj might be at.
21438     *
21439     * @see elm_index_item_level_set() for more information
21440     *
21441     * @ingroup Index
21442     */
21443    EAPI int             elm_index_item_level_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21444
21445    /**
21446     * Returns the last selected item's data, for a given index widget.
21447     *
21448     * @param obj The index object.
21449     * @return The item @b data associated to the last selected item on
21450     * @p obj (or @c NULL, on errors).
21451     *
21452     * @warning The returned value is @b not an #Elm_Index_Item item
21453     * handle, but the data associated to it (see the @c item parameter
21454     * in elm_index_item_append(), as an example).
21455     *
21456     * @ingroup Index
21457     */
21458    EAPI void           *elm_index_item_selected_get(const Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
21459
21460    /**
21461     * Append a new item on a given index widget.
21462     *
21463     * @param obj The index object.
21464     * @param letter Letter under which the item should be indexed
21465     * @param item The item data to set for the index's item
21466     *
21467     * Despite the most common usage of the @p letter argument is for
21468     * single char strings, one could use arbitrary strings as index
21469     * entries.
21470     *
21471     * @c item will be the pointer returned back on @c "changed", @c
21472     * "delay,changed" and @c "selected" smart events.
21473     *
21474     * @ingroup Index
21475     */
21476    EAPI void            elm_index_item_append(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
21477
21478    /**
21479     * Prepend a new item on a given index widget.
21480     *
21481     * @param obj The index object.
21482     * @param letter Letter under which the item should be indexed
21483     * @param item The item data to set for the index's item
21484     *
21485     * Despite the most common usage of the @p letter argument is for
21486     * single char strings, one could use arbitrary strings as index
21487     * entries.
21488     *
21489     * @c item will be the pointer returned back on @c "changed", @c
21490     * "delay,changed" and @c "selected" smart events.
21491     *
21492     * @ingroup Index
21493     */
21494    EAPI void            elm_index_item_prepend(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
21495
21496    /**
21497     * Append a new item, on a given index widget, <b>after the item
21498     * having @p relative as data</b>.
21499     *
21500     * @param obj The index object.
21501     * @param letter Letter under which the item should be indexed
21502     * @param item The item data to set for the index's item
21503     * @param relative The item data of the index item to be the
21504     * predecessor of this new one
21505     *
21506     * Despite the most common usage of the @p letter argument is for
21507     * single char strings, one could use arbitrary strings as index
21508     * entries.
21509     *
21510     * @c item will be the pointer returned back on @c "changed", @c
21511     * "delay,changed" and @c "selected" smart events.
21512     *
21513     * @note If @p relative is @c NULL or if it's not found to be data
21514     * set on any previous item on @p obj, this function will behave as
21515     * elm_index_item_append().
21516     *
21517     * @ingroup Index
21518     */
21519    EAPI void            elm_index_item_append_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
21520
21521    /**
21522     * Prepend a new item, on a given index widget, <b>after the item
21523     * having @p relative as data</b>.
21524     *
21525     * @param obj The index object.
21526     * @param letter Letter under which the item should be indexed
21527     * @param item The item data to set for the index's item
21528     * @param relative The item data of the index item to be the
21529     * successor of this new one
21530     *
21531     * Despite the most common usage of the @p letter argument is for
21532     * single char strings, one could use arbitrary strings as index
21533     * entries.
21534     *
21535     * @c item will be the pointer returned back on @c "changed", @c
21536     * "delay,changed" and @c "selected" smart events.
21537     *
21538     * @note If @p relative is @c NULL or if it's not found to be data
21539     * set on any previous item on @p obj, this function will behave as
21540     * elm_index_item_prepend().
21541     *
21542     * @ingroup Index
21543     */
21544    EAPI void            elm_index_item_prepend_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
21545
21546    /**
21547     * Insert a new item into the given index widget, using @p cmp_func
21548     * function to sort items (by item handles).
21549     *
21550     * @param obj The index object.
21551     * @param letter Letter under which the item should be indexed
21552     * @param item The item data to set for the index's item
21553     * @param cmp_func The comparing function to be used to sort index
21554     * items <b>by #Elm_Index_Item item handles</b>
21555     * @param cmp_data_func A @b fallback function to be called for the
21556     * sorting of index items <b>by item data</b>). It will be used
21557     * when @p cmp_func returns @c 0 (equality), which means an index
21558     * item with provided item data already exists. To decide which
21559     * data item should be pointed to by the index item in question, @p
21560     * cmp_data_func will be used. If @p cmp_data_func returns a
21561     * non-negative value, the previous index item data will be
21562     * replaced by the given @p item pointer. If the previous data need
21563     * to be freed, it should be done by the @p cmp_data_func function,
21564     * because all references to it will be lost. If this function is
21565     * not provided (@c NULL is given), index items will be @b
21566     * duplicated, if @p cmp_func returns @c 0.
21567     *
21568     * Despite the most common usage of the @p letter argument is for
21569     * single char strings, one could use arbitrary strings as index
21570     * entries.
21571     *
21572     * @c item will be the pointer returned back on @c "changed", @c
21573     * "delay,changed" and @c "selected" smart events.
21574     *
21575     * @ingroup Index
21576     */
21577    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);
21578
21579    /**
21580     * Remove an item from a given index widget, <b>to be referenced by
21581     * it's data value</b>.
21582     *
21583     * @param obj The index object
21584     * @param item The item's data pointer for the item to be removed
21585     * from @p obj
21586     *
21587     * If a deletion callback is set, via elm_index_item_del_cb_set(),
21588     * that callback function will be called by this one.
21589     *
21590     * @warning The item to be removed from @p obj will be found via
21591     * its item data pointer, and not by an #Elm_Index_Item handle.
21592     *
21593     * @ingroup Index
21594     */
21595    EAPI void            elm_index_item_del(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
21596
21597    /**
21598     * Find a given index widget's item, <b>using item data</b>.
21599     *
21600     * @param obj The index object
21601     * @param item The item data pointed to by the desired index item
21602     * @return The index item handle, if found, or @c NULL otherwise
21603     *
21604     * @ingroup Index
21605     */
21606    EAPI Elm_Index_Item *elm_index_item_find(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
21607
21608    /**
21609     * Removes @b all items from a given index widget.
21610     *
21611     * @param obj The index object.
21612     *
21613     * If deletion callbacks are set, via elm_index_item_del_cb_set(),
21614     * that callback function will be called for each item in @p obj.
21615     *
21616     * @ingroup Index
21617     */
21618    EAPI void            elm_index_item_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
21619
21620    /**
21621     * Go to a given items level on a index widget
21622     *
21623     * @param obj The index object
21624     * @param level The index level (one of @c 0 or @c 1)
21625     *
21626     * @ingroup Index
21627     */
21628    EAPI void            elm_index_item_go(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
21629
21630    /**
21631     * Return the data associated with a given index widget item
21632     *
21633     * @param it The index widget item handle
21634     * @return The data associated with @p it
21635     *
21636     * @see elm_index_item_data_set()
21637     *
21638     * @ingroup Index
21639     */
21640    EAPI void           *elm_index_item_data_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
21641
21642    /**
21643     * Set the data associated with a given index widget item
21644     *
21645     * @param it The index widget item handle
21646     * @param data The new data pointer to set to @p it
21647     *
21648     * This sets new item data on @p it.
21649     *
21650     * @warning The old data pointer won't be touched by this function, so
21651     * the user had better to free that old data himself/herself.
21652     *
21653     * @ingroup Index
21654     */
21655    EAPI void            elm_index_item_data_set(Elm_Index_Item *it, const void *data) EINA_ARG_NONNULL(1);
21656
21657    /**
21658     * Set the function to be called when a given index widget item is freed.
21659     *
21660     * @param it The item to set the callback on
21661     * @param func The function to call on the item's deletion
21662     *
21663     * When called, @p func will have both @c data and @c event_info
21664     * arguments with the @p it item's data value and, naturally, the
21665     * @c obj argument with a handle to the parent index widget.
21666     *
21667     * @ingroup Index
21668     */
21669    EAPI void            elm_index_item_del_cb_set(Elm_Index_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
21670
21671    /**
21672     * Get the letter (string) set on a given index widget item.
21673     *
21674     * @param it The index item handle
21675     * @return The letter string set on @p it
21676     *
21677     * @ingroup Index
21678     */
21679    EAPI const char     *elm_index_item_letter_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
21680
21681    /**
21682     */
21683    EAPI void            elm_index_button_image_invisible_set(Evas_Object *obj, Eina_Bool invisible) EINA_ARG_NONNULL(1);
21684
21685    /**
21686     * @}
21687     */
21688
21689    /**
21690     * @defgroup Photocam Photocam
21691     *
21692     * @image html img/widget/photocam/preview-00.png
21693     * @image latex img/widget/photocam/preview-00.eps
21694     *
21695     * This is a widget specifically for displaying high-resolution digital
21696     * camera photos giving speedy feedback (fast load), low memory footprint
21697     * and zooming and panning as well as fitting logic. It is entirely focused
21698     * on jpeg images, and takes advantage of properties of the jpeg format (via
21699     * evas loader features in the jpeg loader).
21700     *
21701     * Signals that you can add callbacks for are:
21702     * @li "clicked" - This is called when a user has clicked the photo without
21703     *                 dragging around.
21704     * @li "press" - This is called when a user has pressed down on the photo.
21705     * @li "longpressed" - This is called when a user has pressed down on the
21706     *                     photo for a long time without dragging around.
21707     * @li "clicked,double" - This is called when a user has double-clicked the
21708     *                        photo.
21709     * @li "load" - Photo load begins.
21710     * @li "loaded" - This is called when the image file load is complete for the
21711     *                first view (low resolution blurry version).
21712     * @li "load,detail" - Photo detailed data load begins.
21713     * @li "loaded,detail" - This is called when the image file load is complete
21714     *                      for the detailed image data (full resolution needed).
21715     * @li "zoom,start" - Zoom animation started.
21716     * @li "zoom,stop" - Zoom animation stopped.
21717     * @li "zoom,change" - Zoom changed when using an auto zoom mode.
21718     * @li "scroll" - the content has been scrolled (moved)
21719     * @li "scroll,anim,start" - scrolling animation has started
21720     * @li "scroll,anim,stop" - scrolling animation has stopped
21721     * @li "scroll,drag,start" - dragging the contents around has started
21722     * @li "scroll,drag,stop" - dragging the contents around has stopped
21723     *
21724     * @ref tutorial_photocam shows the API in action.
21725     * @{
21726     */
21727    /**
21728     * @brief Types of zoom available.
21729     */
21730    typedef enum _Elm_Photocam_Zoom_Mode
21731      {
21732         ELM_PHOTOCAM_ZOOM_MODE_MANUAL = 0, /**< Zoom controled normally by elm_photocam_zoom_set */
21733         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT, /**< Zoom until photo fits in photocam */
21734         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL, /**< Zoom until photo fills photocam */
21735         ELM_PHOTOCAM_ZOOM_MODE_LAST
21736      } Elm_Photocam_Zoom_Mode;
21737    /**
21738     * @brief Add a new Photocam object
21739     *
21740     * @param parent The parent object
21741     * @return The new object or NULL if it cannot be created
21742     */
21743    EAPI Evas_Object           *elm_photocam_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21744    /**
21745     * @brief Set the photo file to be shown
21746     *
21747     * @param obj The photocam object
21748     * @param file The photo file
21749     * @return The return error (see EVAS_LOAD_ERROR_NONE, EVAS_LOAD_ERROR_GENERIC etc.)
21750     *
21751     * This sets (and shows) the specified file (with a relative or absolute
21752     * path) and will return a load error (same error that
21753     * evas_object_image_load_error_get() will return). The image will change and
21754     * adjust its size at this point and begin a background load process for this
21755     * photo that at some time in the future will be displayed at the full
21756     * quality needed.
21757     */
21758    EAPI Evas_Load_Error        elm_photocam_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
21759    /**
21760     * @brief Returns the path of the current image file
21761     *
21762     * @param obj The photocam object
21763     * @return Returns the path
21764     *
21765     * @see elm_photocam_file_set()
21766     */
21767    EAPI const char            *elm_photocam_file_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21768    /**
21769     * @brief Set the zoom level of the photo
21770     *
21771     * @param obj The photocam object
21772     * @param zoom The zoom level to set
21773     *
21774     * This sets the zoom level. 1 will be 1:1 pixel for pixel. 2 will be 2:1
21775     * (that is 2x2 photo pixels will display as 1 on-screen pixel). 4:1 will be
21776     * 4x4 photo pixels as 1 screen pixel, and so on. The @p zoom parameter must
21777     * be greater than 0. It is usggested to stick to powers of 2. (1, 2, 4, 8,
21778     * 16, 32, etc.).
21779     */
21780    EAPI void                   elm_photocam_zoom_set(Evas_Object *obj, double zoom) EINA_ARG_NONNULL(1);
21781    /**
21782     * @brief Get the zoom level of the photo
21783     *
21784     * @param obj The photocam object
21785     * @return The current zoom level
21786     *
21787     * This returns the current zoom level of the photocam object. Note that if
21788     * you set the fill mode to other than ELM_PHOTOCAM_ZOOM_MODE_MANUAL
21789     * (which is the default), the zoom level may be changed at any time by the
21790     * photocam object itself to account for photo size and photocam viewpoer
21791     * size.
21792     *
21793     * @see elm_photocam_zoom_set()
21794     * @see elm_photocam_zoom_mode_set()
21795     */
21796    EAPI double                 elm_photocam_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21797    /**
21798     * @brief Set the zoom mode
21799     *
21800     * @param obj The photocam object
21801     * @param mode The desired mode
21802     *
21803     * This sets the zoom mode to manual or one of several automatic levels.
21804     * Manual (ELM_PHOTOCAM_ZOOM_MODE_MANUAL) means that zoom is set manually by
21805     * elm_photocam_zoom_set() and will stay at that level until changed by code
21806     * or until zoom mode is changed. This is the default mode. The Automatic
21807     * modes will allow the photocam object to automatically adjust zoom mode
21808     * based on properties. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT) will adjust zoom so
21809     * the photo fits EXACTLY inside the scroll frame with no pixels outside this
21810     * area. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL will be similar but ensure no
21811     * pixels within the frame are left unfilled.
21812     */
21813    EAPI void                   elm_photocam_zoom_mode_set(Evas_Object *obj, Elm_Photocam_Zoom_Mode mode) EINA_ARG_NONNULL(1);
21814    /**
21815     * @brief Get the zoom mode
21816     *
21817     * @param obj The photocam object
21818     * @return The current zoom mode
21819     *
21820     * This gets the current zoom mode of the photocam object.
21821     *
21822     * @see elm_photocam_zoom_mode_set()
21823     */
21824    EAPI Elm_Photocam_Zoom_Mode elm_photocam_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21825    /**
21826     * @brief Get the current image pixel width and height
21827     *
21828     * @param obj The photocam object
21829     * @param w A pointer to the width return
21830     * @param h A pointer to the height return
21831     *
21832     * This gets the current photo pixel width and height (for the original).
21833     * The size will be returned in the integers @p w and @p h that are pointed
21834     * to.
21835     */
21836    EAPI void                   elm_photocam_image_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
21837    /**
21838     * @brief Get the area of the image that is currently shown
21839     *
21840     * @param obj
21841     * @param x A pointer to the X-coordinate of region
21842     * @param y A pointer to the Y-coordinate of region
21843     * @param w A pointer to the width
21844     * @param h A pointer to the height
21845     *
21846     * @see elm_photocam_image_region_show()
21847     * @see elm_photocam_image_region_bring_in()
21848     */
21849    EAPI void                   elm_photocam_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
21850    /**
21851     * @brief Set the viewed portion of the image
21852     *
21853     * @param obj The photocam object
21854     * @param x X-coordinate of region in image original pixels
21855     * @param y Y-coordinate of region in image original pixels
21856     * @param w Width of region in image original pixels
21857     * @param h Height of region in image original pixels
21858     *
21859     * This shows the region of the image without using animation.
21860     */
21861    EAPI void                   elm_photocam_image_region_show(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
21862    /**
21863     * @brief Bring in the viewed portion of the image
21864     *
21865     * @param obj The photocam object
21866     * @param x X-coordinate of region in image original pixels
21867     * @param y Y-coordinate of region in image original pixels
21868     * @param w Width of region in image original pixels
21869     * @param h Height of region in image original pixels
21870     *
21871     * This shows the region of the image using animation.
21872     */
21873    EAPI void                   elm_photocam_image_region_bring_in(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
21874    /**
21875     * @brief Set the paused state for photocam
21876     *
21877     * @param obj The photocam object
21878     * @param paused The pause state to set
21879     *
21880     * This sets the paused state to on(EINA_TRUE) or off (EINA_FALSE) for
21881     * photocam. The default is off. This will stop zooming using animation on
21882     * zoom levels changes and change instantly. This will stop any existing
21883     * animations that are running.
21884     */
21885    EAPI void                   elm_photocam_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
21886    /**
21887     * @brief Get the paused state for photocam
21888     *
21889     * @param obj The photocam object
21890     * @return The current paused state
21891     *
21892     * This gets the current paused state for the photocam object.
21893     *
21894     * @see elm_photocam_paused_set()
21895     */
21896    EAPI Eina_Bool              elm_photocam_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21897    /**
21898     * @brief Get the internal low-res image used for photocam
21899     *
21900     * @param obj The photocam object
21901     * @return The internal image object handle, or NULL if none exists
21902     *
21903     * This gets the internal image object inside photocam. Do not modify it. It
21904     * is for inspection only, and hooking callbacks to. Nothing else. It may be
21905     * deleted at any time as well.
21906     */
21907    EAPI Evas_Object           *elm_photocam_internal_image_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21908    /**
21909     * @brief Set the photocam scrolling bouncing.
21910     *
21911     * @param obj The photocam object
21912     * @param h_bounce bouncing for horizontal
21913     * @param v_bounce bouncing for vertical
21914     */
21915    EAPI void                   elm_photocam_bounce_set(Evas_Object *obj,  Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
21916    /**
21917     * @brief Get the photocam scrolling bouncing.
21918     *
21919     * @param obj The photocam object
21920     * @param h_bounce bouncing for horizontal
21921     * @param v_bounce bouncing for vertical
21922     *
21923     * @see elm_photocam_bounce_set()
21924     */
21925    EAPI void                   elm_photocam_bounce_get(const Evas_Object *obj,  Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
21926    /**
21927     * @}
21928     */
21929
21930    /**
21931     * @defgroup Map Map
21932     * @ingroup Elementary
21933     *
21934     * @image html img/widget/map/preview-00.png
21935     * @image latex img/widget/map/preview-00.eps
21936     *
21937     * This is a widget specifically for displaying a map. It uses basically
21938     * OpenStreetMap provider http://www.openstreetmap.org/,
21939     * but custom providers can be added.
21940     *
21941     * It supports some basic but yet nice features:
21942     * @li zoom and scroll
21943     * @li markers with content to be displayed when user clicks over it
21944     * @li group of markers
21945     * @li routes
21946     *
21947     * Smart callbacks one can listen to:
21948     *
21949     * - "clicked" - This is called when a user has clicked the map without
21950     *   dragging around.
21951     * - "press" - This is called when a user has pressed down on the map.
21952     * - "longpressed" - This is called when a user has pressed down on the map
21953     *   for a long time without dragging around.
21954     * - "clicked,double" - This is called when a user has double-clicked
21955     *   the map.
21956     * - "load,detail" - Map detailed data load begins.
21957     * - "loaded,detail" - This is called when all currently visible parts of
21958     *   the map are loaded.
21959     * - "zoom,start" - Zoom animation started.
21960     * - "zoom,stop" - Zoom animation stopped.
21961     * - "zoom,change" - Zoom changed when using an auto zoom mode.
21962     * - "scroll" - the content has been scrolled (moved).
21963     * - "scroll,anim,start" - scrolling animation has started.
21964     * - "scroll,anim,stop" - scrolling animation has stopped.
21965     * - "scroll,drag,start" - dragging the contents around has started.
21966     * - "scroll,drag,stop" - dragging the contents around has stopped.
21967     * - "downloaded" - This is called when all currently required map images
21968     *   are downloaded.
21969     * - "route,load" - This is called when route request begins.
21970     * - "route,loaded" - This is called when route request ends.
21971     * - "name,load" - This is called when name request begins.
21972     * - "name,loaded- This is called when name request ends.
21973     *
21974     * Available style for map widget:
21975     * - @c "default"
21976     *
21977     * Available style for markers:
21978     * - @c "radio"
21979     * - @c "radio2"
21980     * - @c "empty"
21981     *
21982     * Available style for marker bubble:
21983     * - @c "default"
21984     *
21985     * List of examples:
21986     * @li @ref map_example_01
21987     * @li @ref map_example_02
21988     * @li @ref map_example_03
21989     */
21990
21991    /**
21992     * @addtogroup Map
21993     * @{
21994     */
21995
21996    /**
21997     * @enum _Elm_Map_Zoom_Mode
21998     * @typedef Elm_Map_Zoom_Mode
21999     *
22000     * Set map's zoom behavior. It can be set to manual or automatic.
22001     *
22002     * Default value is #ELM_MAP_ZOOM_MODE_MANUAL.
22003     *
22004     * Values <b> don't </b> work as bitmask, only one can be choosen.
22005     *
22006     * @note Valid sizes are 2^zoom, consequently the map may be smaller
22007     * than the scroller view.
22008     *
22009     * @see elm_map_zoom_mode_set()
22010     * @see elm_map_zoom_mode_get()
22011     *
22012     * @ingroup Map
22013     */
22014    typedef enum _Elm_Map_Zoom_Mode
22015      {
22016         ELM_MAP_ZOOM_MODE_MANUAL, /**< Zoom controled manually by elm_map_zoom_set(). It's set by default. */
22017         ELM_MAP_ZOOM_MODE_AUTO_FIT, /**< Zoom until map fits inside the scroll frame with no pixels outside this area. */
22018         ELM_MAP_ZOOM_MODE_AUTO_FILL, /**< Zoom until map fills scroll, ensuring no pixels are left unfilled. */
22019         ELM_MAP_ZOOM_MODE_LAST
22020      } Elm_Map_Zoom_Mode;
22021
22022    /**
22023     * @enum _Elm_Map_Route_Sources
22024     * @typedef Elm_Map_Route_Sources
22025     *
22026     * Set route service to be used. By default used source is
22027     * #ELM_MAP_ROUTE_SOURCE_YOURS.
22028     *
22029     * @see elm_map_route_source_set()
22030     * @see elm_map_route_source_get()
22031     *
22032     * @ingroup Map
22033     */
22034    typedef enum _Elm_Map_Route_Sources
22035      {
22036         ELM_MAP_ROUTE_SOURCE_YOURS, /**< Routing service http://www.yournavigation.org/ . Set by default.*/
22037         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. */
22038         ELM_MAP_ROUTE_SOURCE_ORS, /**< Open Route Service: http://www.openrouteservice.org/ . It's not working with Map yet. */
22039         ELM_MAP_ROUTE_SOURCE_LAST
22040      } Elm_Map_Route_Sources;
22041
22042    typedef enum _Elm_Map_Name_Sources
22043      {
22044         ELM_MAP_NAME_SOURCE_NOMINATIM,
22045         ELM_MAP_NAME_SOURCE_LAST
22046      } Elm_Map_Name_Sources;
22047
22048    /**
22049     * @enum _Elm_Map_Route_Type
22050     * @typedef Elm_Map_Route_Type
22051     *
22052     * Set type of transport used on route.
22053     *
22054     * @see elm_map_route_add()
22055     *
22056     * @ingroup Map
22057     */
22058    typedef enum _Elm_Map_Route_Type
22059      {
22060         ELM_MAP_ROUTE_TYPE_MOTOCAR, /**< Route should consider an automobile will be used. */
22061         ELM_MAP_ROUTE_TYPE_BICYCLE, /**< Route should consider a bicycle will be used by the user. */
22062         ELM_MAP_ROUTE_TYPE_FOOT, /**< Route should consider user will be walking. */
22063         ELM_MAP_ROUTE_TYPE_LAST
22064      } Elm_Map_Route_Type;
22065
22066    /**
22067     * @enum _Elm_Map_Route_Method
22068     * @typedef Elm_Map_Route_Method
22069     *
22070     * Set the routing method, what should be priorized, time or distance.
22071     *
22072     * @see elm_map_route_add()
22073     *
22074     * @ingroup Map
22075     */
22076    typedef enum _Elm_Map_Route_Method
22077      {
22078         ELM_MAP_ROUTE_METHOD_FASTEST, /**< Route should priorize time. */
22079         ELM_MAP_ROUTE_METHOD_SHORTEST, /**< Route should priorize distance. */
22080         ELM_MAP_ROUTE_METHOD_LAST
22081      } Elm_Map_Route_Method;
22082
22083    typedef enum _Elm_Map_Name_Method
22084      {
22085         ELM_MAP_NAME_METHOD_SEARCH,
22086         ELM_MAP_NAME_METHOD_REVERSE,
22087         ELM_MAP_NAME_METHOD_LAST
22088      } Elm_Map_Name_Method;
22089
22090    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(). */
22091    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(). */
22092    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(). */
22093    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(). */
22094    typedef struct _Elm_Map_Name            Elm_Map_Name; /**< A handle for specific coordinates. */
22095    typedef struct _Elm_Map_Track           Elm_Map_Track;
22096
22097    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. */
22098    typedef void         (*ElmMapMarkerDelFunc)      (Evas_Object *obj, Elm_Map_Marker *marker, void *data, Evas_Object *o); /**< Function to delete bubble content for marker classes. */
22099    typedef Evas_Object *(*ElmMapMarkerIconGetFunc)  (Evas_Object *obj, Elm_Map_Marker *marker, void *data); /**< Icon fetching class function for marker classes. */
22100    typedef Evas_Object *(*ElmMapGroupIconGetFunc)   (Evas_Object *obj, void *data); /**< Icon fetching class function for markers group classes. */
22101
22102    typedef char        *(*ElmMapModuleSourceFunc) (void);
22103    typedef int          (*ElmMapModuleZoomMinFunc) (void);
22104    typedef int          (*ElmMapModuleZoomMaxFunc) (void);
22105    typedef char        *(*ElmMapModuleUrlFunc) (Evas_Object *obj, int x, int y, int zoom);
22106    typedef int          (*ElmMapModuleRouteSourceFunc) (void);
22107    typedef char        *(*ElmMapModuleRouteUrlFunc) (Evas_Object *obj, char *type_name, int method, double flon, double flat, double tlon, double tlat);
22108    typedef char        *(*ElmMapModuleNameUrlFunc) (Evas_Object *obj, int method, char *name, double lon, double lat);
22109    typedef Eina_Bool    (*ElmMapModuleGeoIntoCoordFunc) (const Evas_Object *obj, int zoom, double lon, double lat, int size, int *x, int *y);
22110    typedef Eina_Bool    (*ElmMapModuleCoordIntoGeoFunc) (const Evas_Object *obj, int zoom, int x, int y, int size, double *lon, double *lat);
22111
22112    /**
22113     * Add a new map widget to the given parent Elementary (container) object.
22114     *
22115     * @param parent The parent object.
22116     * @return a new map widget handle or @c NULL, on errors.
22117     *
22118     * This function inserts a new map widget on the canvas.
22119     *
22120     * @ingroup Map
22121     */
22122    EAPI Evas_Object          *elm_map_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22123
22124    /**
22125     * Set the zoom level of the map.
22126     *
22127     * @param obj The map object.
22128     * @param zoom The zoom level to set.
22129     *
22130     * This sets the zoom level.
22131     *
22132     * It will respect limits defined by elm_map_source_zoom_min_set() and
22133     * elm_map_source_zoom_max_set().
22134     *
22135     * By default these values are 0 (world map) and 18 (maximum zoom).
22136     *
22137     * This function should be used when zoom mode is set to
22138     * #ELM_MAP_ZOOM_MODE_MANUAL. This is the default mode, and can be set
22139     * with elm_map_zoom_mode_set().
22140     *
22141     * @see elm_map_zoom_mode_set().
22142     * @see elm_map_zoom_get().
22143     *
22144     * @ingroup Map
22145     */
22146    EAPI void                  elm_map_zoom_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
22147
22148    /**
22149     * Get the zoom level of the map.
22150     *
22151     * @param obj The map object.
22152     * @return The current zoom level.
22153     *
22154     * This returns the current zoom level of the map object.
22155     *
22156     * Note that if you set the fill mode to other than #ELM_MAP_ZOOM_MODE_MANUAL
22157     * (which is the default), the zoom level may be changed at any time by the
22158     * map object itself to account for map size and map viewport size.
22159     *
22160     * @see elm_map_zoom_set() for details.
22161     *
22162     * @ingroup Map
22163     */
22164    EAPI int                   elm_map_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22165
22166    /**
22167     * Set the zoom mode used by the map object.
22168     *
22169     * @param obj The map object.
22170     * @param mode The zoom mode of the map, being it one of
22171     * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
22172     * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
22173     *
22174     * This sets the zoom mode to manual or one of the automatic levels.
22175     * Manual (#ELM_MAP_ZOOM_MODE_MANUAL) means that zoom is set manually by
22176     * elm_map_zoom_set() and will stay at that level until changed by code
22177     * or until zoom mode is changed. This is the default mode.
22178     *
22179     * The Automatic modes will allow the map object to automatically
22180     * adjust zoom mode based on properties. #ELM_MAP_ZOOM_MODE_AUTO_FIT will
22181     * adjust zoom so the map fits inside the scroll frame with no pixels
22182     * outside this area. #ELM_MAP_ZOOM_MODE_AUTO_FILL will be similar but
22183     * ensure no pixels within the frame are left unfilled. Do not forget that
22184     * the valid sizes are 2^zoom, consequently the map may be smaller than
22185     * the scroller view.
22186     *
22187     * @see elm_map_zoom_set()
22188     *
22189     * @ingroup Map
22190     */
22191    EAPI void                  elm_map_zoom_mode_set(Evas_Object *obj, Elm_Map_Zoom_Mode mode) EINA_ARG_NONNULL(1);
22192
22193    /**
22194     * Get the zoom mode used by the map object.
22195     *
22196     * @param obj The map object.
22197     * @return The zoom mode of the map, being it one of
22198     * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
22199     * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
22200     *
22201     * This function returns the current zoom mode used by the map object.
22202     *
22203     * @see elm_map_zoom_mode_set() for more details.
22204     *
22205     * @ingroup Map
22206     */
22207    EAPI Elm_Map_Zoom_Mode     elm_map_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22208
22209    /**
22210     * Get the current coordinates of the map.
22211     *
22212     * @param obj The map object.
22213     * @param lon Pointer where to store longitude.
22214     * @param lat Pointer where to store latitude.
22215     *
22216     * This gets the current center coordinates of the map object. It can be
22217     * set by elm_map_geo_region_bring_in() and elm_map_geo_region_show().
22218     *
22219     * @see elm_map_geo_region_bring_in()
22220     * @see elm_map_geo_region_show()
22221     *
22222     * @ingroup Map
22223     */
22224    EAPI void                  elm_map_geo_region_get(const Evas_Object *obj, double *lon, double *lat) EINA_ARG_NONNULL(1);
22225
22226    /**
22227     * Animatedly bring in given coordinates to the center of the map.
22228     *
22229     * @param obj The map object.
22230     * @param lon Longitude to center at.
22231     * @param lat Latitude to center at.
22232     *
22233     * This causes map to jump to the given @p lat and @p lon coordinates
22234     * and show it (by scrolling) in the center of the viewport, if it is not
22235     * already centered. This will use animation to do so and take a period
22236     * of time to complete.
22237     *
22238     * @see elm_map_geo_region_show() for a function to avoid animation.
22239     * @see elm_map_geo_region_get()
22240     *
22241     * @ingroup Map
22242     */
22243    EAPI void                  elm_map_geo_region_bring_in(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
22244
22245    /**
22246     * Show the given coordinates at the center of the map, @b immediately.
22247     *
22248     * @param obj The map object.
22249     * @param lon Longitude to center at.
22250     * @param lat Latitude to center at.
22251     *
22252     * This causes map to @b redraw its viewport's contents to the
22253     * region contining the given @p lat and @p lon, that will be moved to the
22254     * center of the map.
22255     *
22256     * @see elm_map_geo_region_bring_in() for a function to move with animation.
22257     * @see elm_map_geo_region_get()
22258     *
22259     * @ingroup Map
22260     */
22261    EAPI void                  elm_map_geo_region_show(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
22262
22263    /**
22264     * Pause or unpause the map.
22265     *
22266     * @param obj The map object.
22267     * @param paused Use @c EINA_TRUE to pause the map @p obj or @c EINA_FALSE
22268     * to unpause it.
22269     *
22270     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
22271     * for map.
22272     *
22273     * The default is off.
22274     *
22275     * This will stop zooming using animation, changing zoom levels will
22276     * change instantly. This will stop any existing animations that are running.
22277     *
22278     * @see elm_map_paused_get()
22279     *
22280     * @ingroup Map
22281     */
22282    EAPI void                  elm_map_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
22283
22284    /**
22285     * Get a value whether map is paused or not.
22286     *
22287     * @param obj The map object.
22288     * @return @c EINA_TRUE means map is pause. @c EINA_FALSE indicates
22289     * it is not. If @p obj is @c NULL, @c EINA_FALSE is returned.
22290     *
22291     * This gets the current paused state for the map object.
22292     *
22293     * @see elm_map_paused_set() for details.
22294     *
22295     * @ingroup Map
22296     */
22297    EAPI Eina_Bool             elm_map_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22298
22299    /**
22300     * Set to show markers during zoom level changes or not.
22301     *
22302     * @param obj The map object.
22303     * @param paused Use @c EINA_TRUE to @b not show markers or @c EINA_FALSE
22304     * to show them.
22305     *
22306     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
22307     * for map.
22308     *
22309     * The default is off.
22310     *
22311     * This will stop zooming using animation, changing zoom levels will
22312     * change instantly. This will stop any existing animations that are running.
22313     *
22314     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
22315     * for the markers.
22316     *
22317     * The default  is off.
22318     *
22319     * Enabling it will force the map to stop displaying the markers during
22320     * zoom level changes. Set to on if you have a large number of markers.
22321     *
22322     * @see elm_map_paused_markers_get()
22323     *
22324     * @ingroup Map
22325     */
22326    EAPI void                  elm_map_paused_markers_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
22327
22328    /**
22329     * Get a value whether markers will be displayed on zoom level changes or not
22330     *
22331     * @param obj The map object.
22332     * @return @c EINA_TRUE means map @b won't display markers or @c EINA_FALSE
22333     * indicates it will. If @p obj is @c NULL, @c EINA_FALSE is returned.
22334     *
22335     * This gets the current markers paused state for the map object.
22336     *
22337     * @see elm_map_paused_markers_set() for details.
22338     *
22339     * @ingroup Map
22340     */
22341    EAPI Eina_Bool             elm_map_paused_markers_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22342
22343    /**
22344     * Get the information of downloading status.
22345     *
22346     * @param obj The map object.
22347     * @param try_num Pointer where to store number of tiles being downloaded.
22348     * @param finish_num Pointer where to store number of tiles successfully
22349     * downloaded.
22350     *
22351     * This gets the current downloading status for the map object, the number
22352     * of tiles being downloaded and the number of tiles already downloaded.
22353     *
22354     * @ingroup Map
22355     */
22356    EAPI void                  elm_map_utils_downloading_status_get(const Evas_Object *obj, int *try_num, int *finish_num) EINA_ARG_NONNULL(1, 2, 3);
22357
22358    /**
22359     * Convert a pixel coordinate (x,y) into a geographic coordinate
22360     * (longitude, latitude).
22361     *
22362     * @param obj The map object.
22363     * @param x the coordinate.
22364     * @param y the coordinate.
22365     * @param size the size in pixels of the map.
22366     * The map is a square and generally his size is : pow(2.0, zoom)*256.
22367     * @param lon Pointer where to store the longitude that correspond to x.
22368     * @param lat Pointer where to store the latitude that correspond to y.
22369     *
22370     * @note Origin pixel point is the top left corner of the viewport.
22371     * Map zoom and size are taken on account.
22372     *
22373     * @see elm_map_utils_convert_geo_into_coord() if you need the inverse.
22374     *
22375     * @ingroup Map
22376     */
22377    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);
22378
22379    /**
22380     * Convert a geographic coordinate (longitude, latitude) into a pixel
22381     * coordinate (x, y).
22382     *
22383     * @param obj The map object.
22384     * @param lon the longitude.
22385     * @param lat the latitude.
22386     * @param size the size in pixels of the map. The map is a square
22387     * and generally his size is : pow(2.0, zoom)*256.
22388     * @param x Pointer where to store the horizontal pixel coordinate that
22389     * correspond to the longitude.
22390     * @param y Pointer where to store the vertical pixel coordinate that
22391     * correspond to the latitude.
22392     *
22393     * @note Origin pixel point is the top left corner of the viewport.
22394     * Map zoom and size are taken on account.
22395     *
22396     * @see elm_map_utils_convert_coord_into_geo() if you need the inverse.
22397     *
22398     * @ingroup Map
22399     */
22400    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);
22401
22402    /**
22403     * Convert a geographic coordinate (longitude, latitude) into a name
22404     * (address).
22405     *
22406     * @param obj The map object.
22407     * @param lon the longitude.
22408     * @param lat the latitude.
22409     * @return name A #Elm_Map_Name handle for this coordinate.
22410     *
22411     * To get the string for this address, elm_map_name_address_get()
22412     * should be used.
22413     *
22414     * @see elm_map_utils_convert_name_into_coord() if you need the inverse.
22415     *
22416     * @ingroup Map
22417     */
22418    EAPI Elm_Map_Name         *elm_map_utils_convert_coord_into_name(const Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
22419
22420    /**
22421     * Convert a name (address) into a geographic coordinate
22422     * (longitude, latitude).
22423     *
22424     * @param obj The map object.
22425     * @param name The address.
22426     * @return name A #Elm_Map_Name handle for this address.
22427     *
22428     * To get the longitude and latitude, elm_map_name_region_get()
22429     * should be used.
22430     *
22431     * @see elm_map_utils_convert_coord_into_name() if you need the inverse.
22432     *
22433     * @ingroup Map
22434     */
22435    EAPI Elm_Map_Name         *elm_map_utils_convert_name_into_coord(const Evas_Object *obj, char *address) EINA_ARG_NONNULL(1, 2);
22436
22437    /**
22438     * Convert a pixel coordinate into a rotated pixel coordinate.
22439     *
22440     * @param obj The map object.
22441     * @param x horizontal coordinate of the point to rotate.
22442     * @param y vertical coordinate of the point to rotate.
22443     * @param cx rotation's center horizontal position.
22444     * @param cy rotation's center vertical position.
22445     * @param degree amount of degrees from 0.0 to 360.0 to rotate arount Z axis.
22446     * @param xx Pointer where to store rotated x.
22447     * @param yy Pointer where to store rotated y.
22448     *
22449     * @ingroup Map
22450     */
22451    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);
22452
22453    /**
22454     * Add a new marker to the map object.
22455     *
22456     * @param obj The map object.
22457     * @param lon The longitude of the marker.
22458     * @param lat The latitude of the marker.
22459     * @param clas The class, to use when marker @b isn't grouped to others.
22460     * @param clas_group The class group, to use when marker is grouped to others
22461     * @param data The data passed to the callbacks.
22462     *
22463     * @return The created marker or @c NULL upon failure.
22464     *
22465     * A marker will be created and shown in a specific point of the map, defined
22466     * by @p lon and @p lat.
22467     *
22468     * It will be displayed using style defined by @p class when this marker
22469     * is displayed alone (not grouped). A new class can be created with
22470     * elm_map_marker_class_new().
22471     *
22472     * If the marker is grouped to other markers, it will be displayed with
22473     * style defined by @p class_group. Markers with the same group are grouped
22474     * if they are close. A new group class can be created with
22475     * elm_map_marker_group_class_new().
22476     *
22477     * Markers created with this method can be deleted with
22478     * elm_map_marker_remove().
22479     *
22480     * A marker can have associated content to be displayed by a bubble,
22481     * when a user click over it, as well as an icon. These objects will
22482     * be fetch using class' callback functions.
22483     *
22484     * @see elm_map_marker_class_new()
22485     * @see elm_map_marker_group_class_new()
22486     * @see elm_map_marker_remove()
22487     *
22488     * @ingroup Map
22489     */
22490    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);
22491
22492    /**
22493     * Set the maximum numbers of markers' content to be displayed in a group.
22494     *
22495     * @param obj The map object.
22496     * @param max The maximum numbers of items displayed in a bubble.
22497     *
22498     * A bubble will be displayed when the user clicks over the group,
22499     * and will place the content of markers that belong to this group
22500     * inside it.
22501     *
22502     * A group can have a long list of markers, consequently the creation
22503     * of the content of the bubble can be very slow.
22504     *
22505     * In order to avoid this, a maximum number of items is displayed
22506     * in a bubble.
22507     *
22508     * By default this number is 30.
22509     *
22510     * Marker with the same group class are grouped if they are close.
22511     *
22512     * @see elm_map_marker_add()
22513     *
22514     * @ingroup Map
22515     */
22516    EAPI void                  elm_map_max_marker_per_group_set(Evas_Object *obj, int max) EINA_ARG_NONNULL(1);
22517
22518    /**
22519     * Remove a marker from the map.
22520     *
22521     * @param marker The marker to remove.
22522     *
22523     * @see elm_map_marker_add()
22524     *
22525     * @ingroup Map
22526     */
22527    EAPI void                  elm_map_marker_remove(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
22528
22529    /**
22530     * Get the current coordinates of the marker.
22531     *
22532     * @param marker marker.
22533     * @param lat Pointer where to store the marker's latitude.
22534     * @param lon Pointer where to store the marker's longitude.
22535     *
22536     * These values are set when adding markers, with function
22537     * elm_map_marker_add().
22538     *
22539     * @see elm_map_marker_add()
22540     *
22541     * @ingroup Map
22542     */
22543    EAPI void                  elm_map_marker_region_get(const Elm_Map_Marker *marker, double *lon, double *lat) EINA_ARG_NONNULL(1);
22544
22545    /**
22546     * Animatedly bring in given marker to the center of the map.
22547     *
22548     * @param marker The marker to center at.
22549     *
22550     * This causes map to jump to the given @p marker's coordinates
22551     * and show it (by scrolling) in the center of the viewport, if it is not
22552     * already centered. This will use animation to do so and take a period
22553     * of time to complete.
22554     *
22555     * @see elm_map_marker_show() for a function to avoid animation.
22556     * @see elm_map_marker_region_get()
22557     *
22558     * @ingroup Map
22559     */
22560    EAPI void                  elm_map_marker_bring_in(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
22561
22562    /**
22563     * Show the given marker at the center of the map, @b immediately.
22564     *
22565     * @param marker The marker to center at.
22566     *
22567     * This causes map to @b redraw its viewport's contents to the
22568     * region contining the given @p marker's coordinates, that will be
22569     * moved to the center of the map.
22570     *
22571     * @see elm_map_marker_bring_in() for a function to move with animation.
22572     * @see elm_map_markers_list_show() if more than one marker need to be
22573     * displayed.
22574     * @see elm_map_marker_region_get()
22575     *
22576     * @ingroup Map
22577     */
22578    EAPI void                  elm_map_marker_show(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
22579
22580    /**
22581     * Move and zoom the map to display a list of markers.
22582     *
22583     * @param markers A list of #Elm_Map_Marker handles.
22584     *
22585     * The map will be centered on the center point of the markers in the list.
22586     * Then the map will be zoomed in order to fit the markers using the maximum
22587     * zoom which allows display of all the markers.
22588     *
22589     * @warning All the markers should belong to the same map object.
22590     *
22591     * @see elm_map_marker_show() to show a single marker.
22592     * @see elm_map_marker_bring_in()
22593     *
22594     * @ingroup Map
22595     */
22596    EAPI void                  elm_map_markers_list_show(Eina_List *markers) EINA_ARG_NONNULL(1);
22597
22598    /**
22599     * Get the Evas object returned by the ElmMapMarkerGetFunc callback
22600     *
22601     * @param marker The marker wich content should be returned.
22602     * @return Return the evas object if it exists, else @c NULL.
22603     *
22604     * To set callback function #ElmMapMarkerGetFunc for the marker class,
22605     * elm_map_marker_class_get_cb_set() should be used.
22606     *
22607     * This content is what will be inside the bubble that will be displayed
22608     * when an user clicks over the marker.
22609     *
22610     * This returns the actual Evas object used to be placed inside
22611     * the bubble. This may be @c NULL, as it may
22612     * not have been created or may have been deleted, at any time, by
22613     * the map. <b>Do not modify this object</b> (move, resize,
22614     * show, hide, etc.), as the map is controlling it. This
22615     * function is for querying, emitting custom signals or hooking
22616     * lower level callbacks for events on that object. Do not delete
22617     * this object under any circumstances.
22618     *
22619     * @ingroup Map
22620     */
22621    EAPI Evas_Object          *elm_map_marker_object_get(const Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
22622
22623    /**
22624     * Update the marker
22625     *
22626     * @param marker The marker to be updated.
22627     *
22628     * If a content is set to this marker, it will call function to delete it,
22629     * #ElmMapMarkerDelFunc, and then will fetch the content again with
22630     * #ElmMapMarkerGetFunc.
22631     *
22632     * These functions are set for the marker class with
22633     * elm_map_marker_class_get_cb_set() and elm_map_marker_class_del_cb_set().
22634     *
22635     * @ingroup Map
22636     */
22637    EAPI void                  elm_map_marker_update(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
22638
22639    /**
22640     * Close all the bubbles opened by the user.
22641     *
22642     * @param obj The map object.
22643     *
22644     * A bubble is displayed with a content fetched with #ElmMapMarkerGetFunc
22645     * when the user clicks on a marker.
22646     *
22647     * This functions is set for the marker class with
22648     * elm_map_marker_class_get_cb_set().
22649     *
22650     * @ingroup Map
22651     */
22652    EAPI void                  elm_map_bubbles_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
22653
22654    /**
22655     * Create a new group class.
22656     *
22657     * @param obj The map object.
22658     * @return Returns the new group class.
22659     *
22660     * Each marker must be associated to a group class. Markers in the same
22661     * group are grouped if they are close.
22662     *
22663     * The group class defines the style of the marker when a marker is grouped
22664     * to others markers. When it is alone, another class will be used.
22665     *
22666     * A group class will need to be provided when creating a marker with
22667     * elm_map_marker_add().
22668     *
22669     * Some properties and functions can be set by class, as:
22670     * - style, with elm_map_group_class_style_set()
22671     * - data - to be associated to the group class. It can be set using
22672     *   elm_map_group_class_data_set().
22673     * - min zoom to display markers, set with
22674     *   elm_map_group_class_zoom_displayed_set().
22675     * - max zoom to group markers, set using
22676     *   elm_map_group_class_zoom_grouped_set().
22677     * - visibility - set if markers will be visible or not, set with
22678     *   elm_map_group_class_hide_set().
22679     * - #ElmMapGroupIconGetFunc - used to fetch icon for markers group classes.
22680     *   It can be set using elm_map_group_class_icon_cb_set().
22681     *
22682     * @see elm_map_marker_add()
22683     * @see elm_map_group_class_style_set()
22684     * @see elm_map_group_class_data_set()
22685     * @see elm_map_group_class_zoom_displayed_set()
22686     * @see elm_map_group_class_zoom_grouped_set()
22687     * @see elm_map_group_class_hide_set()
22688     * @see elm_map_group_class_icon_cb_set()
22689     *
22690     * @ingroup Map
22691     */
22692    EAPI Elm_Map_Group_Class  *elm_map_group_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
22693
22694    /**
22695     * Set the marker's style of a group class.
22696     *
22697     * @param clas The group class.
22698     * @param style The style to be used by markers.
22699     *
22700     * Each marker must be associated to a group class, and will use the style
22701     * defined by such class when grouped to other markers.
22702     *
22703     * The following styles are provided by default theme:
22704     * @li @c radio - blue circle
22705     * @li @c radio2 - green circle
22706     * @li @c empty
22707     *
22708     * @see elm_map_group_class_new() for more details.
22709     * @see elm_map_marker_add()
22710     *
22711     * @ingroup Map
22712     */
22713    EAPI void                  elm_map_group_class_style_set(Elm_Map_Group_Class *clas, const char *style) EINA_ARG_NONNULL(1);
22714
22715    /**
22716     * Set the icon callback function of a group class.
22717     *
22718     * @param clas The group class.
22719     * @param icon_get The callback function that will return the icon.
22720     *
22721     * Each marker must be associated to a group class, and it can display a
22722     * custom icon. The function @p icon_get must return this icon.
22723     *
22724     * @see elm_map_group_class_new() for more details.
22725     * @see elm_map_marker_add()
22726     *
22727     * @ingroup Map
22728     */
22729    EAPI void                  elm_map_group_class_icon_cb_set(Elm_Map_Group_Class *clas, ElmMapGroupIconGetFunc icon_get) EINA_ARG_NONNULL(1);
22730
22731    /**
22732     * Set the data associated to the group class.
22733     *
22734     * @param clas The group class.
22735     * @param data The new user data.
22736     *
22737     * This data will be passed for callback functions, like icon get callback,
22738     * that can be set with elm_map_group_class_icon_cb_set().
22739     *
22740     * If a data was previously set, the object will lose the pointer for it,
22741     * so if needs to be freed, you must do it yourself.
22742     *
22743     * @see elm_map_group_class_new() for more details.
22744     * @see elm_map_group_class_icon_cb_set()
22745     * @see elm_map_marker_add()
22746     *
22747     * @ingroup Map
22748     */
22749    EAPI void                  elm_map_group_class_data_set(Elm_Map_Group_Class *clas, void *data) EINA_ARG_NONNULL(1);
22750
22751    /**
22752     * Set the minimum zoom from where the markers are displayed.
22753     *
22754     * @param clas The group class.
22755     * @param zoom The minimum zoom.
22756     *
22757     * Markers only will be displayed when the map is displayed at @p zoom
22758     * or bigger.
22759     *
22760     * @see elm_map_group_class_new() for more details.
22761     * @see elm_map_marker_add()
22762     *
22763     * @ingroup Map
22764     */
22765    EAPI void                  elm_map_group_class_zoom_displayed_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
22766
22767    /**
22768     * Set the zoom from where the markers are no more grouped.
22769     *
22770     * @param clas The group class.
22771     * @param zoom The maximum zoom.
22772     *
22773     * Markers only will be grouped when the map is displayed at
22774     * less than @p zoom.
22775     *
22776     * @see elm_map_group_class_new() for more details.
22777     * @see elm_map_marker_add()
22778     *
22779     * @ingroup Map
22780     */
22781    EAPI void                  elm_map_group_class_zoom_grouped_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
22782
22783    /**
22784     * Set if the markers associated to the group class @clas are hidden or not.
22785     *
22786     * @param clas The group class.
22787     * @param hide Use @c EINA_TRUE to hide markers or @c EINA_FALSE
22788     * to show them.
22789     *
22790     * If @p hide is @c EINA_TRUE the markers will be hidden, but default
22791     * is to show them.
22792     *
22793     * @ingroup Map
22794     */
22795    EAPI void                  elm_map_group_class_hide_set(Evas_Object *obj, Elm_Map_Group_Class *clas, Eina_Bool hide) EINA_ARG_NONNULL(1, 2);
22796
22797    /**
22798     * Create a new marker class.
22799     *
22800     * @param obj The map object.
22801     * @return Returns the new group class.
22802     *
22803     * Each marker must be associated to a class.
22804     *
22805     * The marker class defines the style of the marker when a marker is
22806     * displayed alone, i.e., not grouped to to others markers. When grouped
22807     * it will use group class style.
22808     *
22809     * A marker class will need to be provided when creating a marker with
22810     * elm_map_marker_add().
22811     *
22812     * Some properties and functions can be set by class, as:
22813     * - style, with elm_map_marker_class_style_set()
22814     * - #ElmMapMarkerIconGetFunc - used to fetch icon for markers classes.
22815     *   It can be set using elm_map_marker_class_icon_cb_set().
22816     * - #ElmMapMarkerGetFunc - used to fetch bubble content for marker classes.
22817     *   Set using elm_map_marker_class_get_cb_set().
22818     * - #ElmMapMarkerDelFunc - used to delete bubble content for marker classes.
22819     *   Set using elm_map_marker_class_del_cb_set().
22820     *
22821     * @see elm_map_marker_add()
22822     * @see elm_map_marker_class_style_set()
22823     * @see elm_map_marker_class_icon_cb_set()
22824     * @see elm_map_marker_class_get_cb_set()
22825     * @see elm_map_marker_class_del_cb_set()
22826     *
22827     * @ingroup Map
22828     */
22829    EAPI Elm_Map_Marker_Class *elm_map_marker_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
22830
22831    /**
22832     * Set the marker's style of a marker class.
22833     *
22834     * @param clas The marker class.
22835     * @param style The style to be used by markers.
22836     *
22837     * Each marker must be associated to a marker class, and will use the style
22838     * defined by such class when alone, i.e., @b not grouped to other markers.
22839     *
22840     * The following styles are provided by default theme:
22841     * @li @c radio
22842     * @li @c radio2
22843     * @li @c empty
22844     *
22845     * @see elm_map_marker_class_new() for more details.
22846     * @see elm_map_marker_add()
22847     *
22848     * @ingroup Map
22849     */
22850    EAPI void                  elm_map_marker_class_style_set(Elm_Map_Marker_Class *clas, const char *style) EINA_ARG_NONNULL(1);
22851
22852    /**
22853     * Set the icon callback function of a marker class.
22854     *
22855     * @param clas The marker class.
22856     * @param icon_get The callback function that will return the icon.
22857     *
22858     * Each marker must be associated to a marker class, and it can display a
22859     * custom icon. The function @p icon_get must return this icon.
22860     *
22861     * @see elm_map_marker_class_new() for more details.
22862     * @see elm_map_marker_add()
22863     *
22864     * @ingroup Map
22865     */
22866    EAPI void                  elm_map_marker_class_icon_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerIconGetFunc icon_get) EINA_ARG_NONNULL(1);
22867
22868    /**
22869     * Set the bubble content callback function of a marker class.
22870     *
22871     * @param clas The marker class.
22872     * @param get The callback function that will return the content.
22873     *
22874     * Each marker must be associated to a marker class, and it can display a
22875     * a content on a bubble that opens when the user click over the marker.
22876     * The function @p get must return this content object.
22877     *
22878     * If this content will need to be deleted, elm_map_marker_class_del_cb_set()
22879     * can be used.
22880     *
22881     * @see elm_map_marker_class_new() for more details.
22882     * @see elm_map_marker_class_del_cb_set()
22883     * @see elm_map_marker_add()
22884     *
22885     * @ingroup Map
22886     */
22887    EAPI void                  elm_map_marker_class_get_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerGetFunc get) EINA_ARG_NONNULL(1);
22888
22889    /**
22890     * Set the callback function used to delete bubble content of a marker class.
22891     *
22892     * @param clas The marker class.
22893     * @param del The callback function that will delete the content.
22894     *
22895     * Each marker must be associated to a marker class, and it can display a
22896     * a content on a bubble that opens when the user click over the marker.
22897     * The function to return such content can be set with
22898     * elm_map_marker_class_get_cb_set().
22899     *
22900     * If this content must be freed, a callback function need to be
22901     * set for that task with this function.
22902     *
22903     * If this callback is defined it will have to delete (or not) the
22904     * object inside, but if the callback is not defined the object will be
22905     * destroyed with evas_object_del().
22906     *
22907     * @see elm_map_marker_class_new() for more details.
22908     * @see elm_map_marker_class_get_cb_set()
22909     * @see elm_map_marker_add()
22910     *
22911     * @ingroup Map
22912     */
22913    EAPI void                  elm_map_marker_class_del_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerDelFunc del) EINA_ARG_NONNULL(1);
22914
22915    /**
22916     * Get the list of available sources.
22917     *
22918     * @param obj The map object.
22919     * @return The source names list.
22920     *
22921     * It will provide a list with all available sources, that can be set as
22922     * current source with elm_map_source_name_set(), or get with
22923     * elm_map_source_name_get().
22924     *
22925     * Available sources:
22926     * @li "Mapnik"
22927     * @li "Osmarender"
22928     * @li "CycleMap"
22929     * @li "Maplint"
22930     *
22931     * @see elm_map_source_name_set() for more details.
22932     * @see elm_map_source_name_get()
22933     *
22934     * @ingroup Map
22935     */
22936    EAPI const char          **elm_map_source_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22937
22938    /**
22939     * Set the source of the map.
22940     *
22941     * @param obj The map object.
22942     * @param source The source to be used.
22943     *
22944     * Map widget retrieves images that composes the map from a web service.
22945     * This web service can be set with this method.
22946     *
22947     * A different service can return a different maps with different
22948     * information and it can use different zoom values.
22949     *
22950     * The @p source_name need to match one of the names provided by
22951     * elm_map_source_names_get().
22952     *
22953     * The current source can be get using elm_map_source_name_get().
22954     *
22955     * @see elm_map_source_names_get()
22956     * @see elm_map_source_name_get()
22957     *
22958     *
22959     * @ingroup Map
22960     */
22961    EAPI void                  elm_map_source_name_set(Evas_Object *obj, const char *source_name) EINA_ARG_NONNULL(1);
22962
22963    /**
22964     * Get the name of currently used source.
22965     *
22966     * @param obj The map object.
22967     * @return Returns the name of the source in use.
22968     *
22969     * @see elm_map_source_name_set() for more details.
22970     *
22971     * @ingroup Map
22972     */
22973    EAPI const char           *elm_map_source_name_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22974
22975    /**
22976     * Set the source of the route service to be used by the map.
22977     *
22978     * @param obj The map object.
22979     * @param source The route service to be used, being it one of
22980     * #ELM_MAP_ROUTE_SOURCE_YOURS (default), #ELM_MAP_ROUTE_SOURCE_MONAV,
22981     * and #ELM_MAP_ROUTE_SOURCE_ORS.
22982     *
22983     * Each one has its own algorithm, so the route retrieved may
22984     * differ depending on the source route. Now, only the default is working.
22985     *
22986     * #ELM_MAP_ROUTE_SOURCE_YOURS is the routing service provided at
22987     * http://www.yournavigation.org/.
22988     *
22989     * #ELM_MAP_ROUTE_SOURCE_MONAV, offers exact routing without heuristic
22990     * assumptions. Its routing core is based on Contraction Hierarchies.
22991     *
22992     * #ELM_MAP_ROUTE_SOURCE_ORS, is provided at http://www.openrouteservice.org/
22993     *
22994     * @see elm_map_route_source_get().
22995     *
22996     * @ingroup Map
22997     */
22998    EAPI void                  elm_map_route_source_set(Evas_Object *obj, Elm_Map_Route_Sources source) EINA_ARG_NONNULL(1);
22999
23000    /**
23001     * Get the current route source.
23002     *
23003     * @param obj The map object.
23004     * @return The source of the route service used by the map.
23005     *
23006     * @see elm_map_route_source_set() for details.
23007     *
23008     * @ingroup Map
23009     */
23010    EAPI Elm_Map_Route_Sources elm_map_route_source_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23011
23012    /**
23013     * Set the minimum zoom of the source.
23014     *
23015     * @param obj The map object.
23016     * @param zoom New minimum zoom value to be used.
23017     *
23018     * By default, it's 0.
23019     *
23020     * @ingroup Map
23021     */
23022    EAPI void                  elm_map_source_zoom_min_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
23023
23024    /**
23025     * Get the minimum zoom of the source.
23026     *
23027     * @param obj The map object.
23028     * @return Returns the minimum zoom of the source.
23029     *
23030     * @see elm_map_source_zoom_min_set() for details.
23031     *
23032     * @ingroup Map
23033     */
23034    EAPI int                   elm_map_source_zoom_min_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23035
23036    /**
23037     * Set the maximum zoom of the source.
23038     *
23039     * @param obj The map object.
23040     * @param zoom New maximum zoom value to be used.
23041     *
23042     * By default, it's 18.
23043     *
23044     * @ingroup Map
23045     */
23046    EAPI void                  elm_map_source_zoom_max_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
23047
23048    /**
23049     * Get the maximum zoom of the source.
23050     *
23051     * @param obj The map object.
23052     * @return Returns the maximum zoom of the source.
23053     *
23054     * @see elm_map_source_zoom_min_set() for details.
23055     *
23056     * @ingroup Map
23057     */
23058    EAPI int                   elm_map_source_zoom_max_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23059
23060    /**
23061     * Set the user agent used by the map object to access routing services.
23062     *
23063     * @param obj The map object.
23064     * @param user_agent The user agent to be used by the map.
23065     *
23066     * User agent is a client application implementing a network protocol used
23067     * in communications within a client–server distributed computing system
23068     *
23069     * The @p user_agent identification string will transmitted in a header
23070     * field @c User-Agent.
23071     *
23072     * @see elm_map_user_agent_get()
23073     *
23074     * @ingroup Map
23075     */
23076    EAPI void                  elm_map_user_agent_set(Evas_Object *obj, const char *user_agent) EINA_ARG_NONNULL(1, 2);
23077
23078    /**
23079     * Get the user agent used by the map object.
23080     *
23081     * @param obj The map object.
23082     * @return The user agent identification string used by the map.
23083     *
23084     * @see elm_map_user_agent_set() for details.
23085     *
23086     * @ingroup Map
23087     */
23088    EAPI const char           *elm_map_user_agent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23089
23090    /**
23091     * Add a new route to the map object.
23092     *
23093     * @param obj The map object.
23094     * @param type The type of transport to be considered when tracing a route.
23095     * @param method The routing method, what should be priorized.
23096     * @param flon The start longitude.
23097     * @param flat The start latitude.
23098     * @param tlon The destination longitude.
23099     * @param tlat The destination latitude.
23100     *
23101     * @return The created route or @c NULL upon failure.
23102     *
23103     * A route will be traced by point on coordinates (@p flat, @p flon)
23104     * to point on coordinates (@p tlat, @p tlon), using the route service
23105     * set with elm_map_route_source_set().
23106     *
23107     * It will take @p type on consideration to define the route,
23108     * depending if the user will be walking or driving, the route may vary.
23109     * One of #ELM_MAP_ROUTE_TYPE_MOTOCAR, #ELM_MAP_ROUTE_TYPE_BICYCLE, or
23110     * #ELM_MAP_ROUTE_TYPE_FOOT need to be used.
23111     *
23112     * Another parameter is what the route should priorize, the minor distance
23113     * or the less time to be spend on the route. So @p method should be one
23114     * of #ELM_MAP_ROUTE_METHOD_SHORTEST or #ELM_MAP_ROUTE_METHOD_FASTEST.
23115     *
23116     * Routes created with this method can be deleted with
23117     * elm_map_route_remove(), colored with elm_map_route_color_set(),
23118     * and distance can be get with elm_map_route_distance_get().
23119     *
23120     * @see elm_map_route_remove()
23121     * @see elm_map_route_color_set()
23122     * @see elm_map_route_distance_get()
23123     * @see elm_map_route_source_set()
23124     *
23125     * @ingroup Map
23126     */
23127    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);
23128
23129    /**
23130     * Remove a route from the map.
23131     *
23132     * @param route The route to remove.
23133     *
23134     * @see elm_map_route_add()
23135     *
23136     * @ingroup Map
23137     */
23138    EAPI void                  elm_map_route_remove(Elm_Map_Route *route) EINA_ARG_NONNULL(1);
23139
23140    /**
23141     * Set the route color.
23142     *
23143     * @param route The route object.
23144     * @param r Red channel value, from 0 to 255.
23145     * @param g Green channel value, from 0 to 255.
23146     * @param b Blue channel value, from 0 to 255.
23147     * @param a Alpha channel value, from 0 to 255.
23148     *
23149     * It uses an additive color model, so each color channel represents
23150     * how much of each primary colors must to be used. 0 represents
23151     * ausence of this color, so if all of the three are set to 0,
23152     * the color will be black.
23153     *
23154     * These component values should be integers in the range 0 to 255,
23155     * (single 8-bit byte).
23156     *
23157     * This sets the color used for the route. By default, it is set to
23158     * solid red (r = 255, g = 0, b = 0, a = 255).
23159     *
23160     * For alpha channel, 0 represents completely transparent, and 255, opaque.
23161     *
23162     * @see elm_map_route_color_get()
23163     *
23164     * @ingroup Map
23165     */
23166    EAPI void                  elm_map_route_color_set(Elm_Map_Route *route, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
23167
23168    /**
23169     * Get the route color.
23170     *
23171     * @param route The route object.
23172     * @param r Pointer where to store the red channel value.
23173     * @param g Pointer where to store the green channel value.
23174     * @param b Pointer where to store the blue channel value.
23175     * @param a Pointer where to store the alpha channel value.
23176     *
23177     * @see elm_map_route_color_set() for details.
23178     *
23179     * @ingroup Map
23180     */
23181    EAPI void                  elm_map_route_color_get(const Elm_Map_Route *route, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
23182
23183    /**
23184     * Get the route distance in kilometers.
23185     *
23186     * @param route The route object.
23187     * @return The distance of route (unit : km).
23188     *
23189     * @ingroup Map
23190     */
23191    EAPI double                elm_map_route_distance_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
23192
23193    /**
23194     * Get the information of route nodes.
23195     *
23196     * @param route The route object.
23197     * @return Returns a string with the nodes of route.
23198     *
23199     * @ingroup Map
23200     */
23201    EAPI const char           *elm_map_route_node_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
23202
23203    /**
23204     * Get the information of route waypoint.
23205     *
23206     * @param route the route object.
23207     * @return Returns a string with information about waypoint of route.
23208     *
23209     * @ingroup Map
23210     */
23211    EAPI const char           *elm_map_route_waypoint_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
23212
23213    /**
23214     * Get the address of the name.
23215     *
23216     * @param name The name handle.
23217     * @return Returns the address string of @p name.
23218     *
23219     * This gets the coordinates of the @p name, created with one of the
23220     * conversion functions.
23221     *
23222     * @see elm_map_utils_convert_name_into_coord()
23223     * @see elm_map_utils_convert_coord_into_name()
23224     *
23225     * @ingroup Map
23226     */
23227    EAPI const char           *elm_map_name_address_get(const Elm_Map_Name *name) EINA_ARG_NONNULL(1);
23228
23229    /**
23230     * Get the current coordinates of the name.
23231     *
23232     * @param name The name handle.
23233     * @param lat Pointer where to store the latitude.
23234     * @param lon Pointer where to store The longitude.
23235     *
23236     * This gets the coordinates of the @p name, created with one of the
23237     * conversion functions.
23238     *
23239     * @see elm_map_utils_convert_name_into_coord()
23240     * @see elm_map_utils_convert_coord_into_name()
23241     *
23242     * @ingroup Map
23243     */
23244    EAPI void                  elm_map_name_region_get(const Elm_Map_Name *name, double *lon, double *lat) EINA_ARG_NONNULL(1);
23245
23246    /**
23247     * Remove a name from the map.
23248     *
23249     * @param name The name to remove.
23250     *
23251     * Basically the struct handled by @p name will be freed, so convertions
23252     * between address and coordinates will be lost.
23253     *
23254     * @see elm_map_utils_convert_name_into_coord()
23255     * @see elm_map_utils_convert_coord_into_name()
23256     *
23257     * @ingroup Map
23258     */
23259    EAPI void                  elm_map_name_remove(Elm_Map_Name *name) EINA_ARG_NONNULL(1);
23260
23261    /**
23262     * Rotate the map.
23263     *
23264     * @param obj The map object.
23265     * @param degree Angle from 0.0 to 360.0 to rotate arount Z axis.
23266     * @param cx Rotation's center horizontal position.
23267     * @param cy Rotation's center vertical position.
23268     *
23269     * @see elm_map_rotate_get()
23270     *
23271     * @ingroup Map
23272     */
23273    EAPI void                  elm_map_rotate_set(Evas_Object *obj, double degree, Evas_Coord cx, Evas_Coord cy) EINA_ARG_NONNULL(1);
23274
23275    /**
23276     * Get the rotate degree of the map
23277     *
23278     * @param obj The map object
23279     * @param degree Pointer where to store degrees from 0.0 to 360.0
23280     * to rotate arount Z axis.
23281     * @param cx Pointer where to store rotation's center horizontal position.
23282     * @param cy Pointer where to store rotation's center vertical position.
23283     *
23284     * @see elm_map_rotate_set() to set map rotation.
23285     *
23286     * @ingroup Map
23287     */
23288    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);
23289
23290    /**
23291     * Enable or disable mouse wheel to be used to zoom in / out the map.
23292     *
23293     * @param obj The map object.
23294     * @param disabled Use @c EINA_TRUE to disable mouse wheel or @c EINA_FALSE
23295     * to enable it.
23296     *
23297     * Mouse wheel can be used for the user to zoom in or zoom out the map.
23298     *
23299     * It's disabled by default.
23300     *
23301     * @see elm_map_wheel_disabled_get()
23302     *
23303     * @ingroup Map
23304     */
23305    EAPI void                  elm_map_wheel_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
23306
23307    /**
23308     * Get a value whether mouse wheel is enabled or not.
23309     *
23310     * @param obj The map object.
23311     * @return @c EINA_TRUE means map is disabled. @c EINA_FALSE indicates
23312     * it is enabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
23313     *
23314     * Mouse wheel can be used for the user to zoom in or zoom out the map.
23315     *
23316     * @see elm_map_wheel_disabled_set() for details.
23317     *
23318     * @ingroup Map
23319     */
23320    EAPI Eina_Bool             elm_map_wheel_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23321
23322 #ifdef ELM_EMAP
23323    /**
23324     * Add a track on the map
23325     *
23326     * @param obj The map object.
23327     * @param emap The emap route object.
23328     * @return The route object. This is an elm object of type Route.
23329     *
23330     * @see elm_route_add() for details.
23331     *
23332     * @ingroup Map
23333     */
23334    EAPI Evas_Object          *elm_map_track_add(Evas_Object *obj, EMap_Route *emap) EINA_ARG_NONNULL(1);
23335 #endif
23336
23337    /**
23338     * Remove a track from the map
23339     *
23340     * @param obj The map object.
23341     * @param route The track to remove.
23342     *
23343     * @ingroup Map
23344     */
23345    EAPI void                  elm_map_track_remove(Evas_Object *obj, Evas_Object *route) EINA_ARG_NONNULL(1);
23346
23347    /**
23348     * @}
23349     */
23350
23351    /* Route */
23352    EAPI Evas_Object *elm_route_add(Evas_Object *parent);
23353 #ifdef ELM_EMAP
23354    EAPI void elm_route_emap_set(Evas_Object *obj, EMap_Route *emap);
23355 #endif
23356    EAPI double elm_route_lon_min_get(Evas_Object *obj);
23357    EAPI double elm_route_lat_min_get(Evas_Object *obj);
23358    EAPI double elm_route_lon_max_get(Evas_Object *obj);
23359    EAPI double elm_route_lat_max_get(Evas_Object *obj);
23360
23361
23362    /**
23363     * @defgroup Panel Panel
23364     *
23365     * @image html img/widget/panel/preview-00.png
23366     * @image latex img/widget/panel/preview-00.eps
23367     *
23368     * @brief A panel is a type of animated container that contains subobjects.
23369     * It can be expanded or contracted by clicking the button on it's edge.
23370     *
23371     * Orientations are as follows:
23372     * @li ELM_PANEL_ORIENT_TOP
23373     * @li ELM_PANEL_ORIENT_LEFT
23374     * @li ELM_PANEL_ORIENT_RIGHT
23375     *
23376     * To set/get/unset the content of the panel, you can use
23377     * elm_object_content_set/get/unset APIs.
23378     * Once the content object is set, a previously set one will be deleted.
23379     * If you want to keep that old content object, use the
23380     * elm_object_content_unset() function
23381     *
23382     * @ref tutorial_panel shows one way to use this widget.
23383     * @{
23384     */
23385    typedef enum _Elm_Panel_Orient
23386      {
23387         ELM_PANEL_ORIENT_TOP, /**< Panel (dis)appears from the top */
23388         ELM_PANEL_ORIENT_BOTTOM, /**< Not implemented */
23389         ELM_PANEL_ORIENT_LEFT, /**< Panel (dis)appears from the left */
23390         ELM_PANEL_ORIENT_RIGHT, /**< Panel (dis)appears from the right */
23391      } Elm_Panel_Orient;
23392    /**
23393     * @brief Adds a panel object
23394     *
23395     * @param parent The parent object
23396     *
23397     * @return The panel object, or NULL on failure
23398     */
23399    EAPI Evas_Object          *elm_panel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23400    /**
23401     * @brief Sets the orientation of the panel
23402     *
23403     * @param parent The parent object
23404     * @param orient The panel orientation. Can be one of the following:
23405     * @li ELM_PANEL_ORIENT_TOP
23406     * @li ELM_PANEL_ORIENT_LEFT
23407     * @li ELM_PANEL_ORIENT_RIGHT
23408     *
23409     * Sets from where the panel will (dis)appear.
23410     */
23411    EAPI void                  elm_panel_orient_set(Evas_Object *obj, Elm_Panel_Orient orient) EINA_ARG_NONNULL(1);
23412    /**
23413     * @brief Get the orientation of the panel.
23414     *
23415     * @param obj The panel object
23416     * @return The Elm_Panel_Orient, or ELM_PANEL_ORIENT_LEFT on failure.
23417     */
23418    EAPI Elm_Panel_Orient      elm_panel_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23419    /**
23420     * @brief Set the content of the panel.
23421     *
23422     * @param obj The panel object
23423     * @param content The panel content
23424     *
23425     * Once the content object is set, a previously set one will be deleted.
23426     * If you want to keep that old content object, use the
23427     * elm_panel_content_unset() function.
23428     */
23429    EAPI void                  elm_panel_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
23430    /**
23431     * @brief Get the content of the panel.
23432     *
23433     * @param obj The panel object
23434     * @return The content that is being used
23435     *
23436     * Return the content object which is set for this widget.
23437     *
23438     * @see elm_panel_content_set()
23439     */
23440    EAPI Evas_Object          *elm_panel_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23441    /**
23442     * @brief Unset the content of the panel.
23443     *
23444     * @param obj The panel object
23445     * @return The content that was being used
23446     *
23447     * Unparent and return the content object which was set for this widget.
23448     *
23449     * @see elm_panel_content_set()
23450     */
23451    EAPI Evas_Object          *elm_panel_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
23452    /**
23453     * @brief Set the state of the panel.
23454     *
23455     * @param obj The panel object
23456     * @param hidden If true, the panel will run the animation to contract
23457     */
23458    EAPI void                  elm_panel_hidden_set(Evas_Object *obj, Eina_Bool hidden) EINA_ARG_NONNULL(1);
23459    /**
23460     * @brief Get the state of the panel.
23461     *
23462     * @param obj The panel object
23463     * @param hidden If true, the panel is in the "hide" state
23464     */
23465    EAPI Eina_Bool             elm_panel_hidden_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23466    /**
23467     * @brief Toggle the hidden state of the panel from code
23468     *
23469     * @param obj The panel object
23470     */
23471    EAPI void                  elm_panel_toggle(Evas_Object *obj) EINA_ARG_NONNULL(1);
23472    /**
23473     * @}
23474     */
23475
23476    /**
23477     * @defgroup Panes Panes
23478     * @ingroup Elementary
23479     *
23480     * @image html img/widget/panes/preview-00.png
23481     * @image latex img/widget/panes/preview-00.eps width=\textwidth
23482     *
23483     * @image html img/panes.png
23484     * @image latex img/panes.eps width=\textwidth
23485     *
23486     * The panes adds a dragable bar between two contents. When dragged
23487     * this bar will resize contents size.
23488     *
23489     * Panes can be displayed vertically or horizontally, and contents
23490     * size proportion can be customized (homogeneous by default).
23491     *
23492     * Smart callbacks one can listen to:
23493     * - "press" - The panes has been pressed (button wasn't released yet).
23494     * - "unpressed" - The panes was released after being pressed.
23495     * - "clicked" - The panes has been clicked>
23496     * - "clicked,double" - The panes has been double clicked
23497     *
23498     * Available styles for it:
23499     * - @c "default"
23500     *
23501     * Default contents parts of the panes widget that you can use for are:
23502     * @li "elm.swallow.left" - A leftside content of the panes
23503     * @li "elm.swallow.right" - A rightside content of the panes
23504     *
23505     * If panes is displayed vertically, left content will be displayed at
23506     * top.
23507     * 
23508     * Here is an example on its usage:
23509     * @li @ref panes_example
23510     */
23511
23512 #define ELM_PANES_CONTENT_LEFT "elm.swallow.left"
23513 #define ELM_PANES_CONTENT_RIGHT "elm.swallow.right"
23514
23515    /**
23516     * @addtogroup Panes
23517     * @{
23518     */
23519
23520    /**
23521     * Add a new panes widget to the given parent Elementary
23522     * (container) object.
23523     *
23524     * @param parent The parent object.
23525     * @return a new panes widget handle or @c NULL, on errors.
23526     *
23527     * This function inserts a new panes widget on the canvas.
23528     *
23529     * @ingroup Panes
23530     */
23531    EAPI Evas_Object          *elm_panes_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23532
23533    /**
23534     * Set the left content of the panes widget.
23535     *
23536     * @param obj The panes object.
23537     * @param content The new left content object.
23538     *
23539     * Once the content object is set, a previously set one will be deleted.
23540     * If you want to keep that old content object, use the
23541     * elm_panes_content_left_unset() function.
23542     *
23543     * If panes is displayed vertically, left content will be displayed at
23544     * top.
23545     *
23546     * @see elm_panes_content_left_get()
23547     * @see elm_panes_content_right_set() to set content on the other side.
23548     *
23549     * @ingroup Panes
23550     */
23551    EAPI void                  elm_panes_content_left_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
23552
23553    /**
23554     * Set the right content of the panes widget.
23555     *
23556     * @param obj The panes object.
23557     * @param content The new right content object.
23558     *
23559     * Once the content object is set, a previously set one will be deleted.
23560     * If you want to keep that old content object, use the
23561     * elm_panes_content_right_unset() function.
23562     *
23563     * If panes is displayed vertically, left content will be displayed at
23564     * bottom.
23565     *
23566     * @see elm_panes_content_right_get()
23567     * @see elm_panes_content_left_set() to set content on the other side.
23568     *
23569     * @ingroup Panes
23570     */
23571    EAPI void                  elm_panes_content_right_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
23572
23573    /**
23574     * Get the left content of the panes.
23575     *
23576     * @param obj The panes object.
23577     * @return The left content object that is being used.
23578     *
23579     * Return the left content object which is set for this widget.
23580     *
23581     * @see elm_panes_content_left_set() for details.
23582     *
23583     * @ingroup Panes
23584     */
23585    EAPI Evas_Object          *elm_panes_content_left_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23586
23587    /**
23588     * Get the right content of the panes.
23589     *
23590     * @param obj The panes object
23591     * @return The right content object that is being used
23592     *
23593     * Return the right content object which is set for this widget.
23594     *
23595     * @see elm_panes_content_right_set() for details.
23596     *
23597     * @ingroup Panes
23598     */
23599    EAPI Evas_Object          *elm_panes_content_right_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23600
23601    /**
23602     * Unset the left content used for the panes.
23603     *
23604     * @param obj The panes object.
23605     * @return The left content object that was being used.
23606     *
23607     * Unparent and return the left content object which was set for this widget.
23608     *
23609     * @see elm_panes_content_left_set() for details.
23610     * @see elm_panes_content_left_get().
23611     *
23612     * @ingroup Panes
23613     */
23614    EAPI Evas_Object          *elm_panes_content_left_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
23615
23616    /**
23617     * Unset the right content used for the panes.
23618     *
23619     * @param obj The panes object.
23620     * @return The right content object that was being used.
23621     *
23622     * Unparent and return the right content object which was set for this
23623     * widget.
23624     *
23625     * @see elm_panes_content_right_set() for details.
23626     * @see elm_panes_content_right_get().
23627     *
23628     * @ingroup Panes
23629     */
23630    EAPI Evas_Object          *elm_panes_content_right_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
23631
23632    /**
23633     * Get the size proportion of panes widget's left side.
23634     *
23635     * @param obj The panes object.
23636     * @return float value between 0.0 and 1.0 representing size proportion
23637     * of left side.
23638     *
23639     * @see elm_panes_content_left_size_set() for more details.
23640     *
23641     * @ingroup Panes
23642     */
23643    EAPI double                elm_panes_content_left_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23644
23645    /**
23646     * Set the size proportion of panes widget's left side.
23647     *
23648     * @param obj The panes object.
23649     * @param size Value between 0.0 and 1.0 representing size proportion
23650     * of left side.
23651     *
23652     * By default it's homogeneous, i.e., both sides have the same size.
23653     *
23654     * If something different is required, it can be set with this function.
23655     * For example, if the left content should be displayed over
23656     * 75% of the panes size, @p size should be passed as @c 0.75.
23657     * This way, right content will be resized to 25% of panes size.
23658     *
23659     * If displayed vertically, left content is displayed at top, and
23660     * right content at bottom.
23661     *
23662     * @note This proportion will change when user drags the panes bar.
23663     *
23664     * @see elm_panes_content_left_size_get()
23665     *
23666     * @ingroup Panes
23667     */
23668    EAPI void                  elm_panes_content_left_size_set(Evas_Object *obj, double size) EINA_ARG_NONNULL(1);
23669
23670   /**
23671    * Set the orientation of a given panes widget.
23672    *
23673    * @param obj The panes object.
23674    * @param horizontal Use @c EINA_TRUE to make @p obj to be
23675    * @b horizontal, @c EINA_FALSE to make it @b vertical.
23676    *
23677    * Use this function to change how your panes is to be
23678    * disposed: vertically or horizontally.
23679    *
23680    * By default it's displayed horizontally.
23681    *
23682    * @see elm_panes_horizontal_get()
23683    *
23684    * @ingroup Panes
23685    */
23686    EAPI void                  elm_panes_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
23687
23688    /**
23689     * Retrieve the orientation of a given panes widget.
23690     *
23691     * @param obj The panes object.
23692     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
23693     * @c EINA_FALSE if it's @b vertical (and on errors).
23694     *
23695     * @see elm_panes_horizontal_set() for more details.
23696     *
23697     * @ingroup Panes
23698     */
23699    EAPI Eina_Bool             elm_panes_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23700    EAPI void                  elm_panes_fixed_set(Evas_Object *obj, Eina_Bool fixed) EINA_ARG_NONNULL(1);
23701    EAPI Eina_Bool             elm_panes_fixed_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23702
23703    /**
23704     * @}
23705     */
23706
23707    /**
23708     * @defgroup Flip Flip
23709     *
23710     * @image html img/widget/flip/preview-00.png
23711     * @image latex img/widget/flip/preview-00.eps
23712     *
23713     * This widget holds 2 content objects(Evas_Object): one on the front and one
23714     * on the back. It allows you to flip from front to back and vice-versa using
23715     * various animations.
23716     *
23717     * If either the front or back contents are not set the flip will treat that
23718     * as transparent. So if you wore to set the front content but not the back,
23719     * and then call elm_flip_go() you would see whatever is below the flip.
23720     *
23721     * For a list of supported animations see elm_flip_go().
23722     *
23723     * Signals that you can add callbacks for are:
23724     * "animate,begin" - when a flip animation was started
23725     * "animate,done" - when a flip animation is finished
23726     *
23727     * @ref tutorial_flip show how to use most of the API.
23728     *
23729     * @{
23730     */
23731    typedef enum _Elm_Flip_Mode
23732      {
23733         ELM_FLIP_ROTATE_Y_CENTER_AXIS,
23734         ELM_FLIP_ROTATE_X_CENTER_AXIS,
23735         ELM_FLIP_ROTATE_XZ_CENTER_AXIS,
23736         ELM_FLIP_ROTATE_YZ_CENTER_AXIS,
23737         ELM_FLIP_CUBE_LEFT,
23738         ELM_FLIP_CUBE_RIGHT,
23739         ELM_FLIP_CUBE_UP,
23740         ELM_FLIP_CUBE_DOWN,
23741         ELM_FLIP_PAGE_LEFT,
23742         ELM_FLIP_PAGE_RIGHT,
23743         ELM_FLIP_PAGE_UP,
23744         ELM_FLIP_PAGE_DOWN
23745      } Elm_Flip_Mode;
23746    typedef enum _Elm_Flip_Interaction
23747      {
23748         ELM_FLIP_INTERACTION_NONE,
23749         ELM_FLIP_INTERACTION_ROTATE,
23750         ELM_FLIP_INTERACTION_CUBE,
23751         ELM_FLIP_INTERACTION_PAGE
23752      } Elm_Flip_Interaction;
23753    typedef enum _Elm_Flip_Direction
23754      {
23755         ELM_FLIP_DIRECTION_UP, /**< Allows interaction with the top of the widget */
23756         ELM_FLIP_DIRECTION_DOWN, /**< Allows interaction with the bottom of the widget */
23757         ELM_FLIP_DIRECTION_LEFT, /**< Allows interaction with the left portion of the widget */
23758         ELM_FLIP_DIRECTION_RIGHT /**< Allows interaction with the right portion of the widget */
23759      } Elm_Flip_Direction;
23760    /**
23761     * @brief Add a new flip to the parent
23762     *
23763     * @param parent The parent object
23764     * @return The new object or NULL if it cannot be created
23765     */
23766    EAPI Evas_Object *elm_flip_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23767    /**
23768     * @brief Set the front content of the flip widget.
23769     *
23770     * @param obj The flip object
23771     * @param content The new front content object
23772     *
23773     * Once the content object is set, a previously set one will be deleted.
23774     * If you want to keep that old content object, use the
23775     * elm_flip_content_front_unset() function.
23776     */
23777    EAPI void         elm_flip_content_front_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
23778    /**
23779     * @brief Set the back content of the flip widget.
23780     *
23781     * @param obj The flip object
23782     * @param content The new back content object
23783     *
23784     * Once the content object is set, a previously set one will be deleted.
23785     * If you want to keep that old content object, use the
23786     * elm_flip_content_back_unset() function.
23787     */
23788    EAPI void         elm_flip_content_back_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
23789    /**
23790     * @brief Get the front content used for the flip
23791     *
23792     * @param obj The flip object
23793     * @return The front content object that is being used
23794     *
23795     * Return the front content object which is set for this widget.
23796     */
23797    EAPI Evas_Object *elm_flip_content_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23798    /**
23799     * @brief Get the back content used for the flip
23800     *
23801     * @param obj The flip object
23802     * @return The back content object that is being used
23803     *
23804     * Return the back content object which is set for this widget.
23805     */
23806    EAPI Evas_Object *elm_flip_content_back_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23807    /**
23808     * @brief Unset the front content used for the flip
23809     *
23810     * @param obj The flip object
23811     * @return The front content object that was being used
23812     *
23813     * Unparent and return the front content object which was set for this widget.
23814     */
23815    EAPI Evas_Object *elm_flip_content_front_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
23816    /**
23817     * @brief Unset the back content used for the flip
23818     *
23819     * @param obj The flip object
23820     * @return The back content object that was being used
23821     *
23822     * Unparent and return the back content object which was set for this widget.
23823     */
23824    EAPI Evas_Object *elm_flip_content_back_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
23825    /**
23826     * @brief Get flip front visibility state
23827     *
23828     * @param obj The flip objct
23829     * @return EINA_TRUE if front front is showing, EINA_FALSE if the back is
23830     * showing.
23831     */
23832    EAPI Eina_Bool    elm_flip_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23833    /**
23834     * @brief Set flip perspective
23835     *
23836     * @param obj The flip object
23837     * @param foc The coordinate to set the focus on
23838     * @param x The X coordinate
23839     * @param y The Y coordinate
23840     *
23841     * @warning This function currently does nothing.
23842     */
23843    EAPI void         elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
23844    /**
23845     * @brief Runs the flip animation
23846     *
23847     * @param obj The flip object
23848     * @param mode The mode type
23849     *
23850     * Flips the front and back contents using the @p mode animation. This
23851     * efectively hides the currently visible content and shows the hidden one.
23852     *
23853     * There a number of possible animations to use for the flipping:
23854     * @li ELM_FLIP_ROTATE_X_CENTER_AXIS - Rotate the currently visible content
23855     * around a horizontal axis in the middle of its height, the other content
23856     * is shown as the other side of the flip.
23857     * @li ELM_FLIP_ROTATE_Y_CENTER_AXIS - Rotate the currently visible content
23858     * around a vertical axis in the middle of its width, the other content is
23859     * shown as the other side of the flip.
23860     * @li ELM_FLIP_ROTATE_XZ_CENTER_AXIS - Rotate the currently visible content
23861     * around a diagonal axis in the middle of its width, the other content is
23862     * shown as the other side of the flip.
23863     * @li ELM_FLIP_ROTATE_YZ_CENTER_AXIS - Rotate the currently visible content
23864     * around a diagonal axis in the middle of its height, the other content is
23865     * shown as the other side of the flip.
23866     * @li ELM_FLIP_CUBE_LEFT - Rotate the currently visible content to the left
23867     * as if the flip was a cube, the other content is show as the right face of
23868     * the cube.
23869     * @li ELM_FLIP_CUBE_RIGHT - Rotate the currently visible content to the
23870     * right as if the flip was a cube, the other content is show as the left
23871     * face of the cube.
23872     * @li ELM_FLIP_CUBE_UP - Rotate the currently visible content up as if the
23873     * flip was a cube, the other content is show as the bottom face of the cube.
23874     * @li ELM_FLIP_CUBE_DOWN - Rotate the currently visible content down as if
23875     * the flip was a cube, the other content is show as the upper face of the
23876     * cube.
23877     * @li ELM_FLIP_PAGE_LEFT - Move the currently visible content to the left as
23878     * if the flip was a book, the other content is shown as the page below that.
23879     * @li ELM_FLIP_PAGE_RIGHT - Move the currently visible content to the right
23880     * as if the flip was a book, the other content is shown as the page below
23881     * that.
23882     * @li ELM_FLIP_PAGE_UP - Move the currently visible content up as if the
23883     * flip was a book, the other content is shown as the page below that.
23884     * @li ELM_FLIP_PAGE_DOWN - Move the currently visible content down as if the
23885     * flip was a book, the other content is shown as the page below that.
23886     *
23887     * @image html elm_flip.png
23888     * @image latex elm_flip.eps width=\textwidth
23889     */
23890    EAPI void         elm_flip_go(Evas_Object *obj, Elm_Flip_Mode mode) EINA_ARG_NONNULL(1);
23891    /**
23892     * @brief Set the interactive flip mode
23893     *
23894     * @param obj The flip object
23895     * @param mode The interactive flip mode to use
23896     *
23897     * This sets if the flip should be interactive (allow user to click and
23898     * drag a side of the flip to reveal the back page and cause it to flip).
23899     * By default a flip is not interactive. You may also need to set which
23900     * sides of the flip are "active" for flipping and how much space they use
23901     * (a minimum of a finger size) with elm_flip_interacton_direction_enabled_set()
23902     * and elm_flip_interacton_direction_hitsize_set()
23903     *
23904     * The four avilable mode of interaction are:
23905     * @li ELM_FLIP_INTERACTION_NONE - No interaction is allowed
23906     * @li ELM_FLIP_INTERACTION_ROTATE - Interaction will cause rotate animation
23907     * @li ELM_FLIP_INTERACTION_CUBE - Interaction will cause cube animation
23908     * @li ELM_FLIP_INTERACTION_PAGE - Interaction will cause page animation
23909     *
23910     * @note ELM_FLIP_INTERACTION_ROTATE won't cause
23911     * ELM_FLIP_ROTATE_XZ_CENTER_AXIS or ELM_FLIP_ROTATE_YZ_CENTER_AXIS to
23912     * happen, those can only be acheived with elm_flip_go();
23913     */
23914    EAPI void         elm_flip_interaction_set(Evas_Object *obj, Elm_Flip_Interaction mode);
23915    /**
23916     * @brief Get the interactive flip mode
23917     *
23918     * @param obj The flip object
23919     * @return The interactive flip mode
23920     *
23921     * Returns the interactive flip mode set by elm_flip_interaction_set()
23922     */
23923    EAPI Elm_Flip_Interaction elm_flip_interaction_get(const Evas_Object *obj);
23924    /**
23925     * @brief Set which directions of the flip respond to interactive flip
23926     *
23927     * @param obj The flip object
23928     * @param dir The direction to change
23929     * @param enabled If that direction is enabled or not
23930     *
23931     * By default all directions are disabled, so you may want to enable the
23932     * desired directions for flipping if you need interactive flipping. You must
23933     * call this function once for each direction that should be enabled.
23934     *
23935     * @see elm_flip_interaction_set()
23936     */
23937    EAPI void         elm_flip_interacton_direction_enabled_set(Evas_Object *obj, Elm_Flip_Direction dir, Eina_Bool enabled);
23938    /**
23939     * @brief Get the enabled state of that flip direction
23940     *
23941     * @param obj The flip object
23942     * @param dir The direction to check
23943     * @return If that direction is enabled or not
23944     *
23945     * Gets the enabled state set by elm_flip_interacton_direction_enabled_set()
23946     *
23947     * @see elm_flip_interaction_set()
23948     */
23949    EAPI Eina_Bool    elm_flip_interacton_direction_enabled_get(Evas_Object *obj, Elm_Flip_Direction dir);
23950    /**
23951     * @brief Set the amount of the flip that is sensitive to interactive flip
23952     *
23953     * @param obj The flip object
23954     * @param dir The direction to modify
23955     * @param hitsize The amount of that dimension (0.0 to 1.0) to use
23956     *
23957     * Set the amount of the flip that is sensitive to interactive flip, with 0
23958     * representing no area in the flip and 1 representing the entire flip. There
23959     * is however a consideration to be made in that the area will never be
23960     * smaller than the finger size set(as set in your Elementary configuration).
23961     *
23962     * @see elm_flip_interaction_set()
23963     */
23964    EAPI void         elm_flip_interacton_direction_hitsize_set(Evas_Object *obj, Elm_Flip_Direction dir, double hitsize);
23965    /**
23966     * @brief Get the amount of the flip that is sensitive to interactive flip
23967     *
23968     * @param obj The flip object
23969     * @param dir The direction to check
23970     * @return The size set for that direction
23971     *
23972     * Returns the amount os sensitive area set by
23973     * elm_flip_interacton_direction_hitsize_set().
23974     */
23975    EAPI double       elm_flip_interacton_direction_hitsize_get(Evas_Object *obj, Elm_Flip_Direction dir);
23976    /**
23977     * @}
23978     */
23979
23980    /* scrolledentry */
23981    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23982    EINA_DEPRECATED EAPI void         elm_scrolled_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
23983    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23984    EINA_DEPRECATED EAPI void         elm_scrolled_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
23985    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23986    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
23987    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23988    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
23989    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23990    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23991    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
23992    EINA_DEPRECATED EAPI void         elm_scrolled_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
23993    EINA_DEPRECATED EAPI void         elm_scrolled_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
23994    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23995    EINA_DEPRECATED EAPI void         elm_scrolled_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
23996    EINA_DEPRECATED EAPI void         elm_scrolled_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
23997    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
23998    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
23999    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
24000    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
24001    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24002    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24003    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24004    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24005    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
24006    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
24007    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24008    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24009    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24010    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
24011    EINA_DEPRECATED EAPI int          elm_scrolled_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24012    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
24013    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
24014    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
24015    EINA_DEPRECATED EAPI void         elm_scrolled_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
24016    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);
24017    EINA_DEPRECATED EAPI void         elm_scrolled_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
24018    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24019    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);
24020    EINA_DEPRECATED EAPI void         elm_scrolled_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
24021    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);
24022    EINA_DEPRECATED EAPI void         elm_scrolled_entry_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1, 2);
24023    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24024    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24025    EINA_DEPRECATED EAPI void         elm_scrolled_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
24026    EINA_DEPRECATED EAPI void         elm_scrolled_entry_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1, 2);
24027    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24028    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24029    EINA_DEPRECATED EAPI void         elm_scrolled_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
24030    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);
24031    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);
24032    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);
24033    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);
24034    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);
24035    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);
24036    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
24037    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
24038    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
24039    EINA_DEPRECATED EAPI void         elm_scrolled_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
24040    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24041    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
24042    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cnp_textonly_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
24043    EINA_DEPRECATED EAPI void         elm_scrolled_entry_line_char_wrap_set(Evas_Object *obj, Eina_Bool wrap) EINA_ARG_NONNULL(1);
24044    EINA_DEPRECATED EAPI void         elm_scrolled_entry_input_panel_enabled_set(Evas_Object *obj, Eina_Bool enabled);
24045    EINA_DEPRECATED EAPI void         elm_scrolled_entry_input_panel_layout_set(Evas_Object *obj, Elm_Input_Panel_Layout layout);
24046    EINA_DEPRECATED EAPI Ecore_IMF_Context *elm_scrolled_entry_imf_context_get(Evas_Object *obj);
24047    EINA_DEPRECATED EAPI void         elm_scrolled_entry_autocapitalization_set(Evas_Object *obj, Eina_Bool autocap);
24048    EINA_DEPRECATED EAPI void         elm_scrolled_entry_autoperiod_set(Evas_Object *obj, Eina_Bool autoperiod);
24049
24050    /**
24051     * @defgroup Conformant Conformant
24052     * @ingroup Elementary
24053     *
24054     * @image html img/widget/conformant/preview-00.png
24055     * @image latex img/widget/conformant/preview-00.eps width=\textwidth
24056     *
24057     * @image html img/conformant.png
24058     * @image latex img/conformant.eps width=\textwidth
24059     *
24060     * The aim is to provide a widget that can be used in elementary apps to
24061     * account for space taken up by the indicator, virtual keypad & softkey
24062     * windows when running the illume2 module of E17.
24063     *
24064     * So conformant content will be sized and positioned considering the
24065     * space required for such stuff, and when they popup, as a keyboard
24066     * shows when an entry is selected, conformant content won't change.
24067     *
24068     * Available styles for it:
24069     * - @c "default"
24070     *
24071     * Default contents parts of the conformant widget that you can use for are:
24072     * @li "elm.swallow.content" - A content of the conformant
24073     *
24074     * See how to use this widget in this example:
24075     * @ref conformant_example
24076     */
24077
24078    /**
24079     * @addtogroup Conformant
24080     * @{
24081     */
24082
24083    /**
24084     * Add a new conformant widget to the given parent Elementary
24085     * (container) object.
24086     *
24087     * @param parent The parent object.
24088     * @return A new conformant widget handle or @c NULL, on errors.
24089     *
24090     * This function inserts a new conformant widget on the canvas.
24091     *
24092     * @ingroup Conformant
24093     */
24094    EAPI Evas_Object *elm_conformant_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24095
24096    /**
24097     * Set the content of the conformant widget.
24098     *
24099     * @param obj The conformant object.
24100     * @param content The content to be displayed by the conformant.
24101     *
24102     * Content will be sized and positioned considering the space required
24103     * to display a virtual keyboard. So it won't fill all the conformant
24104     * size. This way is possible to be sure that content won't resize
24105     * or be re-positioned after the keyboard is displayed.
24106     *
24107     * Once the content object is set, a previously set one will be deleted.
24108     * If you want to keep that old content object, use the
24109     * elm_object_content_unset() function.
24110     *
24111     * @see elm_object_content_unset()
24112     * @see elm_object_content_get()
24113     *
24114     * @ingroup Conformant
24115     */
24116    EAPI void         elm_conformant_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24117
24118    /**
24119     * Get the content of the conformant widget.
24120     *
24121     * @param obj The conformant object.
24122     * @return The content that is being used.
24123     *
24124     * Return the content object which is set for this widget.
24125     * It won't be unparent from conformant. For that, use
24126     * elm_object_content_unset().
24127     *
24128     * @see elm_object_content_set().
24129     * @see elm_object_content_unset()
24130     *
24131     * @ingroup Conformant
24132     */
24133    EAPI Evas_Object *elm_conformant_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24134
24135    /**
24136     * Unset the content of the conformant widget.
24137     *
24138     * @param obj The conformant object.
24139     * @return The content that was being used.
24140     *
24141     * Unparent and return the content object which was set for this widget.
24142     *
24143     * @see elm_object_content_set().
24144     *
24145     * @ingroup Conformant
24146     */
24147    EAPI Evas_Object *elm_conformant_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24148
24149    /**
24150     * Returns the Evas_Object that represents the content area.
24151     *
24152     * @param obj The conformant object.
24153     * @return The content area of the widget.
24154     *
24155     * @ingroup Conformant
24156     */
24157    EAPI Evas_Object *elm_conformant_content_area_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24158
24159    /**
24160     * @}
24161     */
24162
24163    /**
24164     * @defgroup Mapbuf Mapbuf
24165     * @ingroup Elementary
24166     *
24167     * @image html img/widget/mapbuf/preview-00.png
24168     * @image latex img/widget/mapbuf/preview-00.eps width=\textwidth
24169     *
24170     * This holds one content object and uses an Evas Map of transformation
24171     * points to be later used with this content. So the content will be
24172     * moved, resized, etc as a single image. So it will improve performance
24173     * when you have a complex interafce, with a lot of elements, and will
24174     * need to resize or move it frequently (the content object and its
24175     * children).
24176     *
24177     * To set/get/unset the content of the mapbuf, you can use 
24178     * elm_object_content_set/get/unset APIs. 
24179     * Once the content object is set, a previously set one will be deleted.
24180     * If you want to keep that old content object, use the
24181     * elm_object_content_unset() function.
24182     *
24183     * To enable map, elm_mapbuf_enabled_set() should be used.
24184     * 
24185     * See how to use this widget in this example:
24186     * @ref mapbuf_example
24187     */
24188
24189    /**
24190     * @addtogroup Mapbuf
24191     * @{
24192     */
24193
24194    /**
24195     * Add a new mapbuf widget to the given parent Elementary
24196     * (container) object.
24197     *
24198     * @param parent The parent object.
24199     * @return A new mapbuf widget handle or @c NULL, on errors.
24200     *
24201     * This function inserts a new mapbuf widget on the canvas.
24202     *
24203     * @ingroup Mapbuf
24204     */
24205    EAPI Evas_Object *elm_mapbuf_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24206
24207    /**
24208     * Set the content of the mapbuf.
24209     *
24210     * @param obj The mapbuf object.
24211     * @param content The content that will be filled in this mapbuf object.
24212     *
24213     * Once the content object is set, a previously set one will be deleted.
24214     * If you want to keep that old content object, use the
24215     * elm_mapbuf_content_unset() function.
24216     *
24217     * To enable map, elm_mapbuf_enabled_set() should be used.
24218     *
24219     * @ingroup Mapbuf
24220     */
24221    EAPI void         elm_mapbuf_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24222
24223    /**
24224     * Get the content of the mapbuf.
24225     *
24226     * @param obj The mapbuf object.
24227     * @return The content that is being used.
24228     *
24229     * Return the content object which is set for this widget.
24230     *
24231     * @see elm_mapbuf_content_set() for details.
24232     *
24233     * @ingroup Mapbuf
24234     */
24235    EAPI Evas_Object *elm_mapbuf_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24236
24237    /**
24238     * Unset the content of the mapbuf.
24239     *
24240     * @param obj The mapbuf object.
24241     * @return The content that was being used.
24242     *
24243     * Unparent and return the content object which was set for this widget.
24244     *
24245     * @see elm_mapbuf_content_set() for details.
24246     *
24247     * @ingroup Mapbuf
24248     */
24249    EAPI Evas_Object *elm_mapbuf_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24250
24251    /**
24252     * Enable or disable the map.
24253     *
24254     * @param obj The mapbuf object.
24255     * @param enabled @c EINA_TRUE to enable map or @c EINA_FALSE to disable it.
24256     *
24257     * This enables the map that is set or disables it. On enable, the object
24258     * geometry will be saved, and the new geometry will change (position and
24259     * size) to reflect the map geometry set.
24260     *
24261     * Also, when enabled, alpha and smooth states will be used, so if the
24262     * content isn't solid, alpha should be enabled, for example, otherwise
24263     * a black retangle will fill the content.
24264     *
24265     * When disabled, the stored map will be freed and geometry prior to
24266     * enabling the map will be restored.
24267     *
24268     * It's disabled by default.
24269     *
24270     * @see elm_mapbuf_alpha_set()
24271     * @see elm_mapbuf_smooth_set()
24272     *
24273     * @ingroup Mapbuf
24274     */
24275    EAPI void         elm_mapbuf_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
24276
24277    /**
24278     * Get a value whether map is enabled or not.
24279     *
24280     * @param obj The mapbuf object.
24281     * @return @c EINA_TRUE means map is enabled. @c EINA_FALSE indicates
24282     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
24283     *
24284     * @see elm_mapbuf_enabled_set() for details.
24285     *
24286     * @ingroup Mapbuf
24287     */
24288    EAPI Eina_Bool    elm_mapbuf_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24289
24290    /**
24291     * Enable or disable smooth map rendering.
24292     *
24293     * @param obj The mapbuf object.
24294     * @param smooth @c EINA_TRUE to enable smooth map rendering or @c EINA_FALSE
24295     * to disable it.
24296     *
24297     * This sets smoothing for map rendering. If the object is a type that has
24298     * its own smoothing settings, then both the smooth settings for this object
24299     * and the map must be turned off.
24300     *
24301     * By default smooth maps are enabled.
24302     *
24303     * @ingroup Mapbuf
24304     */
24305    EAPI void         elm_mapbuf_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
24306
24307    /**
24308     * Get a value whether smooth map rendering is enabled or not.
24309     *
24310     * @param obj The mapbuf object.
24311     * @return @c EINA_TRUE means smooth map rendering is enabled. @c EINA_FALSE
24312     * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
24313     *
24314     * @see elm_mapbuf_smooth_set() for details.
24315     *
24316     * @ingroup Mapbuf
24317     */
24318    EAPI Eina_Bool    elm_mapbuf_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24319
24320    /**
24321     * Set or unset alpha flag for map rendering.
24322     *
24323     * @param obj The mapbuf object.
24324     * @param alpha @c EINA_TRUE to enable alpha blending or @c EINA_FALSE
24325     * to disable it.
24326     *
24327     * This sets alpha flag for map rendering. If the object is a type that has
24328     * its own alpha settings, then this will take precedence. Only image objects
24329     * have this currently. It stops alpha blending of the map area, and is
24330     * useful if you know the object and/or all sub-objects is 100% solid.
24331     *
24332     * Alpha is enabled by default.
24333     *
24334     * @ingroup Mapbuf
24335     */
24336    EAPI void         elm_mapbuf_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
24337
24338    /**
24339     * Get a value whether alpha blending is enabled or not.
24340     *
24341     * @param obj The mapbuf object.
24342     * @return @c EINA_TRUE means alpha blending is enabled. @c EINA_FALSE
24343     * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
24344     *
24345     * @see elm_mapbuf_alpha_set() for details.
24346     *
24347     * @ingroup Mapbuf
24348     */
24349    EAPI Eina_Bool    elm_mapbuf_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24350
24351    /**
24352     * @}
24353     */
24354
24355    /**
24356     * @defgroup Flipselector Flip Selector
24357     *
24358     * A flip selector is a widget to show a set of @b text items, one
24359     * at a time, with the same sheet switching style as the @ref Clock
24360     * "clock" widget, when one changes the current displaying sheet
24361     * (thus, the "flip" in the name).
24362     *
24363     * User clicks to flip sheets which are @b held for some time will
24364     * make the flip selector to flip continuosly and automatically for
24365     * the user. The interval between flips will keep growing in time,
24366     * so that it helps the user to reach an item which is distant from
24367     * the current selection.
24368     *
24369     * Smart callbacks one can register to:
24370     * - @c "selected" - when the widget's selected text item is changed
24371     * - @c "overflowed" - when the widget's current selection is changed
24372     *   from the first item in its list to the last
24373     * - @c "underflowed" - when the widget's current selection is changed
24374     *   from the last item in its list to the first
24375     *
24376     * Available styles for it:
24377     * - @c "default"
24378     *
24379     * Here is an example on its usage:
24380     * @li @ref flipselector_example
24381     */
24382
24383    /**
24384     * @addtogroup Flipselector
24385     * @{
24386     */
24387
24388    typedef struct _Elm_Flipselector_Item Elm_Flipselector_Item; /**< Item handle for a flip selector widget. */
24389
24390    /**
24391     * Add a new flip selector widget to the given parent Elementary
24392     * (container) widget
24393     *
24394     * @param parent The parent object
24395     * @return a new flip selector widget handle or @c NULL, on errors
24396     *
24397     * This function inserts a new flip selector widget on the canvas.
24398     *
24399     * @ingroup Flipselector
24400     */
24401    EAPI Evas_Object               *elm_flipselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24402
24403    /**
24404     * Programmatically select the next item of a flip selector widget
24405     *
24406     * @param obj The flipselector object
24407     *
24408     * @note The selection will be animated. Also, if it reaches the
24409     * end of its list of member items, it will continue with the first
24410     * one onwards.
24411     *
24412     * @ingroup Flipselector
24413     */
24414    EAPI void                       elm_flipselector_flip_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
24415
24416    /**
24417     * Programmatically select the previous item of a flip selector
24418     * widget
24419     *
24420     * @param obj The flipselector object
24421     *
24422     * @note The selection will be animated.  Also, if it reaches the
24423     * beginning of its list of member items, it will continue with the
24424     * last one backwards.
24425     *
24426     * @ingroup Flipselector
24427     */
24428    EAPI void                       elm_flipselector_flip_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
24429
24430    /**
24431     * Append a (text) item to a flip selector widget
24432     *
24433     * @param obj The flipselector object
24434     * @param label The (text) label of the new item
24435     * @param func Convenience callback function to take place when
24436     * item is selected
24437     * @param data Data passed to @p func, above
24438     * @return A handle to the item added or @c NULL, on errors
24439     *
24440     * The widget's list of labels to show will be appended with the
24441     * given value. If the user wishes so, a callback function pointer
24442     * can be passed, which will get called when this same item is
24443     * selected.
24444     *
24445     * @note The current selection @b won't be modified by appending an
24446     * element to the list.
24447     *
24448     * @note The maximum length of the text label is going to be
24449     * determined <b>by the widget's theme</b>. Strings larger than
24450     * that value are going to be @b truncated.
24451     *
24452     * @ingroup Flipselector
24453     */
24454    EAPI Elm_Flipselector_Item     *elm_flipselector_item_append(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
24455
24456    /**
24457     * Prepend a (text) item to a flip selector widget
24458     *
24459     * @param obj The flipselector object
24460     * @param label The (text) label of the new item
24461     * @param func Convenience callback function to take place when
24462     * item is selected
24463     * @param data Data passed to @p func, above
24464     * @return A handle to the item added or @c NULL, on errors
24465     *
24466     * The widget's list of labels to show will be prepended with the
24467     * given value. If the user wishes so, a callback function pointer
24468     * can be passed, which will get called when this same item is
24469     * selected.
24470     *
24471     * @note The current selection @b won't be modified by prepending
24472     * an element to the list.
24473     *
24474     * @note The maximum length of the text label is going to be
24475     * determined <b>by the widget's theme</b>. Strings larger than
24476     * that value are going to be @b truncated.
24477     *
24478     * @ingroup Flipselector
24479     */
24480    EAPI Elm_Flipselector_Item     *elm_flipselector_item_prepend(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
24481
24482    /**
24483     * Get the internal list of items in a given flip selector widget.
24484     *
24485     * @param obj The flipselector object
24486     * @return The list of items (#Elm_Flipselector_Item as data) or @c
24487     * NULL on errors.
24488     *
24489     * This list is @b not to be modified in any way and must not be
24490     * freed. Use the list members with functions like
24491     * elm_flipselector_item_label_set(),
24492     * elm_flipselector_item_label_get(), elm_flipselector_item_del(),
24493     * elm_flipselector_item_del(),
24494     * elm_flipselector_item_selected_get(),
24495     * elm_flipselector_item_selected_set().
24496     *
24497     * @warning This list is only valid until @p obj object's internal
24498     * items list is changed. It should be fetched again with another
24499     * call to this function when changes happen.
24500     *
24501     * @ingroup Flipselector
24502     */
24503    EAPI const Eina_List           *elm_flipselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24504
24505    /**
24506     * Get the first item in the given flip selector widget's list of
24507     * items.
24508     *
24509     * @param obj The flipselector object
24510     * @return The first item or @c NULL, if it has no items (and on
24511     * errors)
24512     *
24513     * @see elm_flipselector_item_append()
24514     * @see elm_flipselector_last_item_get()
24515     *
24516     * @ingroup Flipselector
24517     */
24518    EAPI Elm_Flipselector_Item     *elm_flipselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24519
24520    /**
24521     * Get the last item in the given flip selector widget's list of
24522     * items.
24523     *
24524     * @param obj The flipselector object
24525     * @return The last item or @c NULL, if it has no items (and on
24526     * errors)
24527     *
24528     * @see elm_flipselector_item_prepend()
24529     * @see elm_flipselector_first_item_get()
24530     *
24531     * @ingroup Flipselector
24532     */
24533    EAPI Elm_Flipselector_Item     *elm_flipselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24534
24535    /**
24536     * Get the currently selected item in a flip selector widget.
24537     *
24538     * @param obj The flipselector object
24539     * @return The selected item or @c NULL, if the widget has no items
24540     * (and on erros)
24541     *
24542     * @ingroup Flipselector
24543     */
24544    EAPI Elm_Flipselector_Item     *elm_flipselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24545
24546    /**
24547     * Set whether a given flip selector widget's item should be the
24548     * currently selected one.
24549     *
24550     * @param item The flip selector item
24551     * @param selected @c EINA_TRUE to select it, @c EINA_FALSE to unselect.
24552     *
24553     * This sets whether @p item is or not the selected (thus, under
24554     * display) one. If @p item is different than one under display,
24555     * the latter will be unselected. If the @p item is set to be
24556     * unselected, on the other hand, the @b first item in the widget's
24557     * internal members list will be the new selected one.
24558     *
24559     * @see elm_flipselector_item_selected_get()
24560     *
24561     * @ingroup Flipselector
24562     */
24563    EAPI void                       elm_flipselector_item_selected_set(Elm_Flipselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
24564
24565    /**
24566     * Get whether a given flip selector widget's item is the currently
24567     * selected one.
24568     *
24569     * @param item The flip selector item
24570     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
24571     * (or on errors).
24572     *
24573     * @see elm_flipselector_item_selected_set()
24574     *
24575     * @ingroup Flipselector
24576     */
24577    EAPI Eina_Bool                  elm_flipselector_item_selected_get(const Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
24578
24579    /**
24580     * Delete a given item from a flip selector widget.
24581     *
24582     * @param item The item to delete
24583     *
24584     * @ingroup Flipselector
24585     */
24586    EAPI void                       elm_flipselector_item_del(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
24587
24588    /**
24589     * Get the label of a given flip selector widget's item.
24590     *
24591     * @param item The item to get label from
24592     * @return The text label of @p item or @c NULL, on errors
24593     *
24594     * @see elm_flipselector_item_label_set()
24595     *
24596     * @ingroup Flipselector
24597     */
24598    EAPI const char                *elm_flipselector_item_label_get(const Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
24599
24600    /**
24601     * Set the label of a given flip selector widget's item.
24602     *
24603     * @param item The item to set label on
24604     * @param label The text label string, in UTF-8 encoding
24605     *
24606     * @see elm_flipselector_item_label_get()
24607     *
24608     * @ingroup Flipselector
24609     */
24610    EAPI void                       elm_flipselector_item_label_set(Elm_Flipselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
24611
24612    /**
24613     * Gets the item before @p item in a flip selector widget's
24614     * internal list of items.
24615     *
24616     * @param item The item to fetch previous from
24617     * @return The item before the @p item, in its parent's list. If
24618     *         there is no previous item for @p item or there's an
24619     *         error, @c NULL is returned.
24620     *
24621     * @see elm_flipselector_item_next_get()
24622     *
24623     * @ingroup Flipselector
24624     */
24625    EAPI Elm_Flipselector_Item     *elm_flipselector_item_prev_get(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
24626
24627    /**
24628     * Gets the item after @p item in a flip selector widget's
24629     * internal list of items.
24630     *
24631     * @param item The item to fetch next from
24632     * @return The item after the @p item, in its parent's list. If
24633     *         there is no next item for @p item or there's an
24634     *         error, @c NULL is returned.
24635     *
24636     * @see elm_flipselector_item_next_get()
24637     *
24638     * @ingroup Flipselector
24639     */
24640    EAPI Elm_Flipselector_Item     *elm_flipselector_item_next_get(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
24641
24642    /**
24643     * Set the interval on time updates for an user mouse button hold
24644     * on a flip selector widget.
24645     *
24646     * @param obj The flip selector object
24647     * @param interval The (first) interval value in seconds
24648     *
24649     * This interval value is @b decreased while the user holds the
24650     * mouse pointer either flipping up or flipping doww a given flip
24651     * selector.
24652     *
24653     * This helps the user to get to a given item distant from the
24654     * current one easier/faster, as it will start to flip quicker and
24655     * quicker on mouse button holds.
24656     *
24657     * The calculation for the next flip interval value, starting from
24658     * the one set with this call, is the previous interval divided by
24659     * 1.05, so it decreases a little bit.
24660     *
24661     * The default starting interval value for automatic flips is
24662     * @b 0.85 seconds.
24663     *
24664     * @see elm_flipselector_interval_get()
24665     *
24666     * @ingroup Flipselector
24667     */
24668    EAPI void                       elm_flipselector_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
24669
24670    /**
24671     * Get the interval on time updates for an user mouse button hold
24672     * on a flip selector widget.
24673     *
24674     * @param obj The flip selector object
24675     * @return The (first) interval value, in seconds, set on it
24676     *
24677     * @see elm_flipselector_interval_set() for more details
24678     *
24679     * @ingroup Flipselector
24680     */
24681    EAPI double                     elm_flipselector_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24682
24683    /**
24684     * @}
24685     */
24686
24687    /**
24688     * @addtogroup Animator Animator
24689     * @ingroup Elementary
24690     *
24691     * @brief Functions to ease creation of animations.
24692     *
24693     * elm_animator is designed to provide an easy way to create animations.
24694     * Creating an animation with elm_animator is as simple as setting a
24695     * duration, an operating callback and telling it to run the animation.
24696     * However that is not the full extent of elm_animator's ability, animations
24697     * can be paused and resumed, reversed and the animation need not be linear.
24698     *
24699     * To run an animation you must specify at least a duration and operation
24700     * callback, not setting any other properties will create a linear animation
24701     * that runs once and is not reversed.
24702     *
24703     * @ref elm_animator_example_page_01 "This" example should make all of that
24704     * very clear.
24705     *
24706     * @warning elm_animator is @b not a widget.
24707     * @{
24708     */
24709    /**
24710     * @brief Type of curve desired for animation.
24711     *
24712     * The speed in which an animation happens doesn't have to be linear, some
24713     * animations will look better if they're accelerating or decelerating, so
24714     * elm_animator provides four options in this regard:
24715     * @image html elm_animator_curve_style.png
24716     * @image latex elm_animator_curve_style.eps width=\textwidth
24717     * As can be seen in the image the speed of the animation will be:
24718     * @li ELM_ANIMATOR_CURVE_LINEAR constant
24719     * @li ELM_ANIMATOR_CURVE_IN_OUT start slow, speed up and then slow down
24720     * @li ELM_ANIMATOR_CURVE_IN start slow and then speed up
24721     * @li ELM_ANIMATOR_CURVE_OUT start fast and then slow down
24722     */
24723    typedef enum
24724      {
24725         ELM_ANIMATOR_CURVE_LINEAR,
24726         ELM_ANIMATOR_CURVE_IN_OUT,
24727         ELM_ANIMATOR_CURVE_IN,
24728         ELM_ANIMATOR_CURVE_OUT
24729      } Elm_Animator_Curve_Style;
24730    typedef struct _Elm_Animator Elm_Animator;
24731   /**
24732    * Called back per loop of an elementary animators cycle
24733    * @param data user-data given to elm_animator_operation_callback_set()
24734    * @param animator the animator being run
24735    * @param double the position in the animation
24736    */
24737    typedef void (*Elm_Animator_Operation_Cb) (void *data, Elm_Animator *animator, double frame);
24738   /**
24739    * Called back when an elementary animator finishes
24740    * @param data user-data given to elm_animator_completion_callback_set()
24741    */
24742    typedef void (*Elm_Animator_Completion_Cb) (void *data);
24743
24744    /**
24745     * @brief Create a new animator.
24746     *
24747     * @param[in] parent Parent object
24748     *
24749     * The @a parent argument can be set to NULL for no parent. If a parent is set
24750     * there is no need to call elm_animator_del(), when the parent is deleted it
24751     * will delete the animator.
24752     * @deprecated Use @ref Transit instead.
24753
24754     */
24755    EINA_DEPRECATED EAPI Elm_Animator*            elm_animator_add(Evas_Object *parent);
24756    /**
24757     * Deletes the animator freeing any resources it used. If the animator was
24758     * created with a NULL parent this must be called, otherwise it will be
24759     * automatically called when the parent is deleted.
24760     *
24761     * @param[in] animator Animator object
24762     * @deprecated Use @ref Transit instead.
24763     */
24764    EINA_DEPRECATED EAPI void                     elm_animator_del(Elm_Animator *animator) EINA_ARG_NONNULL(1);
24765    /**
24766     * Set the duration of the animation.
24767     *
24768     * @param[in] animator Animator object
24769     * @param[in] duration Duration in second
24770     * @deprecated Use @ref Transit instead.
24771     */
24772    EINA_DEPRECATED EAPI void                     elm_animator_duration_set(Elm_Animator *animator, double duration) EINA_ARG_NONNULL(1);
24773    /**
24774     * @brief Set the callback function for animator operation.
24775     *
24776     * @param[in] animator Animator object
24777     * @param[in] func @ref Elm_Animator_Operation_Cb "Callback" function pointer
24778     * @param[in] data Callback function user argument
24779     *
24780     * The @p func callback will be called with a frame value in range [0, 1] which
24781     * indicates how far along the animation should be. It is the job of @p func to
24782     * actually change the state of any object(or objects) that are being animated.
24783     * @deprecated Use @ref Transit instead.
24784     */
24785    EINA_DEPRECATED EAPI void                     elm_animator_operation_callback_set(Elm_Animator *animator, Elm_Animator_Operation_Cb func, void *data) EINA_ARG_NONNULL(1);
24786    /**
24787     * Set the callback function for the when the animation ends.
24788     *
24789     * @param[in]  animator Animator object
24790     * @param[in]  func   Callback function pointe
24791     * @param[in]  data Callback function user argument
24792     *
24793     * @warning @a func will not be executed if elm_animator_stop() is called.
24794     * @deprecated Use @ref Transit instead.
24795     */
24796    EINA_DEPRECATED EAPI void                     elm_animator_completion_callback_set(Elm_Animator *animator, Elm_Animator_Completion_Cb func, void *data) EINA_ARG_NONNULL(1);
24797    /**
24798     * @brief Stop animator.
24799     *
24800     * @param[in] animator Animator object
24801     *
24802     * If called before elm_animator_animate() it does nothing. If there is an
24803     * animation in progress the animation will be stopped(the operation callback
24804     * will not be executed again) and it can't be restarted using
24805     * elm_animator_resume().
24806     * @deprecated Use @ref Transit instead.
24807     */
24808    EINA_DEPRECATED EAPI void                     elm_animator_stop(Elm_Animator *animator) EINA_ARG_NONNULL(1);
24809    /**
24810     * Set the animator repeat count.
24811     *
24812     * @param[in]  animator Animator object
24813     * @param[in]  repeat_cnt Repeat count
24814     * @deprecated Use @ref Transit instead.
24815     */
24816    EINA_DEPRECATED EAPI void                     elm_animator_repeat_set(Elm_Animator *animator, unsigned int repeat_cnt) EINA_ARG_NONNULL(1);
24817    /**
24818     * @brief Start animation.
24819     *
24820     * @param[in] animator Animator object
24821     *
24822     * This function starts the animation if the nescessary properties(duration
24823     * and operation callback) have been set. Once started the animation will
24824     * run until complete or elm_animator_stop() is called.
24825     * @deprecated Use @ref Transit instead.
24826     */
24827    EINA_DEPRECATED EAPI void                     elm_animator_animate(Elm_Animator *animator) EINA_ARG_NONNULL(1);
24828    /**
24829     * Sets the animation @ref Elm_Animator_Curve_Style "acceleration style".
24830     *
24831     * @param[in] animator Animator object
24832     * @param[in] cs Curve style. Default is ELM_ANIMATOR_CURVE_LINEAR
24833     * @deprecated Use @ref Transit instead.
24834     */
24835    EINA_DEPRECATED EAPI void                     elm_animator_curve_style_set(Elm_Animator *animator, Elm_Animator_Curve_Style cs) EINA_ARG_NONNULL(1);
24836    /**
24837     * Gets the animation @ref Elm_Animator_Curve_Style "acceleration style".
24838     *
24839     * @param[in] animator Animator object
24840     * @param[in] cs Curve style. Default is ELM_ANIMATOR_CURVE_LINEAR
24841     * @deprecated Use @ref Transit instead.
24842     */
24843    EINA_DEPRECATED EAPI Elm_Animator_Curve_Style elm_animator_curve_style_get(const Elm_Animator *animator) EINA_ARG_NONNULL(1);
24844    /**
24845     * @brief Sets wether the animation should be automatically reversed.
24846     *
24847     * @param[in] animator Animator object
24848     * @param[in] reverse Reverse or not
24849     *
24850     * This controls wether the animation will be run on reverse imediately after
24851     * running forward. When this is set together with repetition the animation
24852     * will run in reverse once for each time it ran forward.@n
24853     * Runnin an animation in reverse is accomplished by calling the operation
24854     * callback with a frame value starting at 1 and diminshing until 0.
24855     * @deprecated Use @ref Transit instead.
24856     */
24857    EINA_DEPRECATED EAPI void                     elm_animator_auto_reverse_set(Elm_Animator *animator, Eina_Bool reverse) EINA_ARG_NONNULL(1);
24858    /**
24859     * Gets wether the animation will automatically reversed
24860     *
24861     * @param[in] animator Animator object
24862     * @deprecated Use @ref Transit instead.
24863     */
24864    EINA_DEPRECATED EAPI Eina_Bool                elm_animator_auto_reverse_get(const Elm_Animator *animator) EINA_ARG_NONNULL(1);
24865    /**
24866     * Gets the status for the animator operation. The status of the animator @b
24867     * doesn't take in to account elm_animator_pause() or elm_animator_resume(), it
24868     * only informs if the animation was started and has not ended(either normally
24869     * or through elm_animator_stop()).
24870     *
24871     * @param[in] animator Animator object
24872     * @deprecated Use @ref Transit instead.
24873     */
24874    EINA_DEPRECATED EAPI Eina_Bool                elm_animator_operating_get(const Elm_Animator *animator) EINA_ARG_NONNULL(1);
24875    /**
24876     * Gets how many times the animation will be repeated
24877     *
24878     * @param[in] animator Animator object
24879     * @deprecated Use @ref Transit instead.
24880     */
24881    EINA_DEPRECATED EAPI unsigned int             elm_animator_repeat_get(const Elm_Animator *animator) EINA_ARG_NONNULL(1);
24882    /**
24883     * Pause the animator.
24884     *
24885     * @param[in]  animator Animator object
24886     *
24887     * This causes the animation to be temporarily stopped(the operation callback
24888     * will not be called). If the animation is not yet running this is a no-op.
24889     * Once an animation has been paused with this function it can be resumed
24890     * using elm_animator_resume().
24891     * @deprecated Use @ref Transit instead.
24892     */
24893    EINA_DEPRECATED EAPI void                     elm_animator_pause(Elm_Animator *animator) EINA_ARG_NONNULL(1);
24894    /**
24895     * @brief Resumes the animator.
24896     *
24897     * @param[in]  animator Animator object
24898     *
24899     * Resumes an animation that was paused using elm_animator_pause(), after
24900     * calling this function calls to the operation callback will happen
24901     * normally. If an animation is stopped by means of elm_animator_stop it
24902     * @b can't be restarted with this function.@n
24903     *
24904     * @warning When an animation is resumed it doesn't start from where it was paused, it
24905     * will go to where it would have been if it had not been paused. If an
24906     * animation with a duration of 3 seconds is paused after 1 second for 1 second
24907     * it will resume as if it had ben animating for 2 seconds, the operating
24908     * callback will be called with a frame value of aproximately 2/3.
24909     * @deprecated Use @ref Transit instead.
24910     */
24911    EINA_DEPRECATED EAPI void                     elm_animator_resume(Elm_Animator *animator) EINA_ARG_NONNULL(1);
24912    /**
24913     * @}
24914     */
24915
24916    /**
24917     * @addtogroup Calendar
24918     * @{
24919     */
24920
24921    /**
24922     * @enum _Elm_Calendar_Mark_Repeat
24923     * @typedef Elm_Calendar_Mark_Repeat
24924     *
24925     * Event periodicity, used to define if a mark should be repeated
24926     * @b beyond event's day. It's set when a mark is added.
24927     *
24928     * So, for a mark added to 13th May with periodicity set to WEEKLY,
24929     * there will be marks every week after this date. Marks will be displayed
24930     * at 13th, 20th, 27th, 3rd June ...
24931     *
24932     * Values don't work as bitmask, only one can be choosen.
24933     *
24934     * @see elm_calendar_mark_add()
24935     *
24936     * @ingroup Calendar
24937     */
24938    typedef enum _Elm_Calendar_Mark_Repeat
24939      {
24940         ELM_CALENDAR_UNIQUE, /**< Default value. Marks will be displayed only on event day. */
24941         ELM_CALENDAR_DAILY, /**< Marks will be displayed everyday after event day (inclusive). */
24942         ELM_CALENDAR_WEEKLY, /**< Marks will be displayed every week after event day (inclusive) - i.e. each seven days. */
24943         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*/
24944         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. */
24945      } Elm_Calendar_Mark_Repeat;
24946
24947    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(). */
24948
24949    /**
24950     * Add a new calendar widget to the given parent Elementary
24951     * (container) object.
24952     *
24953     * @param parent The parent object.
24954     * @return a new calendar widget handle or @c NULL, on errors.
24955     *
24956     * This function inserts a new calendar widget on the canvas.
24957     *
24958     * @ref calendar_example_01
24959     *
24960     * @ingroup Calendar
24961     */
24962    EAPI Evas_Object       *elm_calendar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24963
24964    /**
24965     * Get weekdays names displayed by the calendar.
24966     *
24967     * @param obj The calendar object.
24968     * @return Array of seven strings to be used as weekday names.
24969     *
24970     * By default, weekdays abbreviations get from system are displayed:
24971     * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
24972     * The first string is related to Sunday, the second to Monday...
24973     *
24974     * @see elm_calendar_weekdays_name_set()
24975     *
24976     * @ref calendar_example_05
24977     *
24978     * @ingroup Calendar
24979     */
24980    EAPI const char       **elm_calendar_weekdays_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24981
24982    /**
24983     * Set weekdays names to be displayed by the calendar.
24984     *
24985     * @param obj The calendar object.
24986     * @param weekdays Array of seven strings to be used as weekday names.
24987     * @warning It must have 7 elements, or it will access invalid memory.
24988     * @warning The strings must be NULL terminated ('@\0').
24989     *
24990     * By default, weekdays abbreviations get from system are displayed:
24991     * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
24992     *
24993     * The first string should be related to Sunday, the second to Monday...
24994     *
24995     * The usage should be like this:
24996     * @code
24997     *   const char *weekdays[] =
24998     *   {
24999     *      "Sunday", "Monday", "Tuesday", "Wednesday",
25000     *      "Thursday", "Friday", "Saturday"
25001     *   };
25002     *   elm_calendar_weekdays_names_set(calendar, weekdays);
25003     * @endcode
25004     *
25005     * @see elm_calendar_weekdays_name_get()
25006     *
25007     * @ref calendar_example_02
25008     *
25009     * @ingroup Calendar
25010     */
25011    EAPI void               elm_calendar_weekdays_names_set(Evas_Object *obj, const char *weekdays[]) EINA_ARG_NONNULL(1, 2);
25012
25013    /**
25014     * Set the minimum and maximum values for the year
25015     *
25016     * @param obj The calendar object
25017     * @param min The minimum year, greater than 1901;
25018     * @param max The maximum year;
25019     *
25020     * Maximum must be greater than minimum, except if you don't wan't to set
25021     * maximum year.
25022     * Default values are 1902 and -1.
25023     *
25024     * If the maximum year is a negative value, it will be limited depending
25025     * on the platform architecture (year 2037 for 32 bits);
25026     *
25027     * @see elm_calendar_min_max_year_get()
25028     *
25029     * @ref calendar_example_03
25030     *
25031     * @ingroup Calendar
25032     */
25033    EAPI void               elm_calendar_min_max_year_set(Evas_Object *obj, int min, int max) EINA_ARG_NONNULL(1);
25034
25035    /**
25036     * Get the minimum and maximum values for the year
25037     *
25038     * @param obj The calendar object.
25039     * @param min The minimum year.
25040     * @param max The maximum year.
25041     *
25042     * Default values are 1902 and -1.
25043     *
25044     * @see elm_calendar_min_max_year_get() for more details.
25045     *
25046     * @ref calendar_example_05
25047     *
25048     * @ingroup Calendar
25049     */
25050    EAPI void               elm_calendar_min_max_year_get(const Evas_Object *obj, int *min, int *max) EINA_ARG_NONNULL(1);
25051
25052    /**
25053     * Enable or disable day selection
25054     *
25055     * @param obj The calendar object.
25056     * @param enabled @c EINA_TRUE to enable selection or @c EINA_FALSE to
25057     * disable it.
25058     *
25059     * Enabled by default. If disabled, the user still can select months,
25060     * but not days. Selected days are highlighted on calendar.
25061     * It should be used if you won't need such selection for the widget usage.
25062     *
25063     * When a day is selected, or month is changed, smart callbacks for
25064     * signal "changed" will be called.
25065     *
25066     * @see elm_calendar_day_selection_enable_get()
25067     *
25068     * @ref calendar_example_04
25069     *
25070     * @ingroup Calendar
25071     */
25072    EAPI void               elm_calendar_day_selection_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
25073
25074    /**
25075     * Get a value whether day selection is enabled or not.
25076     *
25077     * @see elm_calendar_day_selection_enable_set() for details.
25078     *
25079     * @param obj The calendar object.
25080     * @return EINA_TRUE means day selection is enabled. EINA_FALSE indicates
25081     * it's disabled. If @p obj is NULL, EINA_FALSE is returned.
25082     *
25083     * @ref calendar_example_05
25084     *
25085     * @ingroup Calendar
25086     */
25087    EAPI Eina_Bool          elm_calendar_day_selection_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25088
25089
25090    /**
25091     * Set selected date to be highlighted on calendar.
25092     *
25093     * @param obj The calendar object.
25094     * @param selected_time A @b tm struct to represent the selected date.
25095     *
25096     * Set the selected date, changing the displayed month if needed.
25097     * Selected date changes when the user goes to next/previous month or
25098     * select a day pressing over it on calendar.
25099     *
25100     * @see elm_calendar_selected_time_get()
25101     *
25102     * @ref calendar_example_04
25103     *
25104     * @ingroup Calendar
25105     */
25106    EAPI void               elm_calendar_selected_time_set(Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1);
25107
25108    /**
25109     * Get selected date.
25110     *
25111     * @param obj The calendar object
25112     * @param selected_time A @b tm struct to point to selected date
25113     * @return EINA_FALSE means an error ocurred and returned time shouldn't
25114     * be considered.
25115     *
25116     * Get date selected by the user or set by function
25117     * elm_calendar_selected_time_set().
25118     * Selected date changes when the user goes to next/previous month or
25119     * select a day pressing over it on calendar.
25120     *
25121     * @see elm_calendar_selected_time_get()
25122     *
25123     * @ref calendar_example_05
25124     *
25125     * @ingroup Calendar
25126     */
25127    EAPI Eina_Bool          elm_calendar_selected_time_get(const Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1, 2);
25128
25129    /**
25130     * Set a function to format the string that will be used to display
25131     * month and year;
25132     *
25133     * @param obj The calendar object
25134     * @param format_function Function to set the month-year string given
25135     * the selected date
25136     *
25137     * By default it uses strftime with "%B %Y" format string.
25138     * It should allocate the memory that will be used by the string,
25139     * that will be freed by the widget after usage.
25140     * A pointer to the string and a pointer to the time struct will be provided.
25141     *
25142     * Example:
25143     * @code
25144     * static char *
25145     * _format_month_year(struct tm *selected_time)
25146     * {
25147     *    char buf[32];
25148     *    if (!strftime(buf, sizeof(buf), "%B %Y", selected_time)) return NULL;
25149     *    return strdup(buf);
25150     * }
25151     *
25152     * elm_calendar_format_function_set(calendar, _format_month_year);
25153     * @endcode
25154     *
25155     * @ref calendar_example_02
25156     *
25157     * @ingroup Calendar
25158     */
25159    EAPI void               elm_calendar_format_function_set(Evas_Object *obj, char * (*format_function) (struct tm *stime)) EINA_ARG_NONNULL(1);
25160
25161    /**
25162     * Add a new mark to the calendar
25163     *
25164     * @param obj The calendar object
25165     * @param mark_type A string used to define the type of mark. It will be
25166     * emitted to the theme, that should display a related modification on these
25167     * days representation.
25168     * @param mark_time A time struct to represent the date of inclusion of the
25169     * mark. For marks that repeats it will just be displayed after the inclusion
25170     * date in the calendar.
25171     * @param repeat Repeat the event following this periodicity. Can be a unique
25172     * mark (that don't repeat), daily, weekly, monthly or annually.
25173     * @return The created mark or @p NULL upon failure.
25174     *
25175     * Add a mark that will be drawn in the calendar respecting the insertion
25176     * time and periodicity. It will emit the type as signal to the widget theme.
25177     * Default theme supports "holiday" and "checked", but it can be extended.
25178     *
25179     * It won't immediately update the calendar, drawing the marks.
25180     * For this, call elm_calendar_marks_draw(). However, when user selects
25181     * next or previous month calendar forces marks drawn.
25182     *
25183     * Marks created with this method can be deleted with
25184     * elm_calendar_mark_del().
25185     *
25186     * Example
25187     * @code
25188     * struct tm selected_time;
25189     * time_t current_time;
25190     *
25191     * current_time = time(NULL) + 5 * 84600;
25192     * localtime_r(&current_time, &selected_time);
25193     * elm_calendar_mark_add(cal, "holiday", selected_time,
25194     *     ELM_CALENDAR_ANNUALLY);
25195     *
25196     * current_time = time(NULL) + 1 * 84600;
25197     * localtime_r(&current_time, &selected_time);
25198     * elm_calendar_mark_add(cal, "checked", selected_time, ELM_CALENDAR_UNIQUE);
25199     *
25200     * elm_calendar_marks_draw(cal);
25201     * @endcode
25202     *
25203     * @see elm_calendar_marks_draw()
25204     * @see elm_calendar_mark_del()
25205     *
25206     * @ref calendar_example_06
25207     *
25208     * @ingroup Calendar
25209     */
25210    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);
25211
25212    /**
25213     * Delete mark from the calendar.
25214     *
25215     * @param mark The mark to be deleted.
25216     *
25217     * If deleting all calendar marks is required, elm_calendar_marks_clear()
25218     * should be used instead of getting marks list and deleting each one.
25219     *
25220     * @see elm_calendar_mark_add()
25221     *
25222     * @ref calendar_example_06
25223     *
25224     * @ingroup Calendar
25225     */
25226    EAPI void               elm_calendar_mark_del(Elm_Calendar_Mark *mark) EINA_ARG_NONNULL(1);
25227
25228    /**
25229     * Remove all calendar's marks
25230     *
25231     * @param obj The calendar object.
25232     *
25233     * @see elm_calendar_mark_add()
25234     * @see elm_calendar_mark_del()
25235     *
25236     * @ingroup Calendar
25237     */
25238    EAPI void               elm_calendar_marks_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
25239
25240
25241    /**
25242     * Get a list of all the calendar marks.
25243     *
25244     * @param obj The calendar object.
25245     * @return An @c Eina_List of calendar marks objects, or @c NULL on failure.
25246     *
25247     * @see elm_calendar_mark_add()
25248     * @see elm_calendar_mark_del()
25249     * @see elm_calendar_marks_clear()
25250     *
25251     * @ingroup Calendar
25252     */
25253    EAPI const Eina_List   *elm_calendar_marks_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25254
25255    /**
25256     * Draw calendar marks.
25257     *
25258     * @param obj The calendar object.
25259     *
25260     * Should be used after adding, removing or clearing marks.
25261     * It will go through the entire marks list updating the calendar.
25262     * If lots of marks will be added, add all the marks and then call
25263     * this function.
25264     *
25265     * When the month is changed, i.e. user selects next or previous month,
25266     * marks will be drawed.
25267     *
25268     * @see elm_calendar_mark_add()
25269     * @see elm_calendar_mark_del()
25270     * @see elm_calendar_marks_clear()
25271     *
25272     * @ref calendar_example_06
25273     *
25274     * @ingroup Calendar
25275     */
25276    EAPI void               elm_calendar_marks_draw(Evas_Object *obj) EINA_ARG_NONNULL(1);
25277    EINA_DEPRECATED EAPI void               elm_calendar_text_saturday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
25278    EINA_DEPRECATED EAPI void               elm_calendar_text_sunday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
25279    EINA_DEPRECATED EAPI void               elm_calendar_text_weekday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
25280
25281    /**
25282     * Set a day text color to the same that represents Saturdays.
25283     *
25284     * @param obj The calendar object.
25285     * @param pos The text position. Position is the cell counter, from left
25286     * to right, up to down. It starts on 0 and ends on 41.
25287     *
25288     * @deprecated use elm_calendar_mark_add() instead like:
25289     *
25290     * @code
25291     * struct tm t = { 0, 0, 12, 6, 0, 0, 6, 6, -1 };
25292     * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
25293     * @endcode
25294     *
25295     * @see elm_calendar_mark_add()
25296     *
25297     * @ingroup Calendar
25298     */
25299    EAPI void               elm_calendar_text_saturday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
25300
25301    /**
25302     * Set a day text color to the same that represents Sundays.
25303     *
25304     * @param obj The calendar object.
25305     * @param pos The text position. Position is the cell counter, from left
25306     * to right, up to down. It starts on 0 and ends on 41.
25307
25308     * @deprecated use elm_calendar_mark_add() instead like:
25309     *
25310     * @code
25311     * struct tm t = { 0, 0, 12, 7, 0, 0, 0, 0, -1 };
25312     * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
25313     * @endcode
25314     *
25315     * @see elm_calendar_mark_add()
25316     *
25317     * @ingroup Calendar
25318     */
25319    EAPI void               elm_calendar_text_sunday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
25320
25321    /**
25322     * Set a day text color to the same that represents Weekdays.
25323     *
25324     * @param obj The calendar object
25325     * @param pos The text position. Position is the cell counter, from left
25326     * to right, up to down. It starts on 0 and ends on 41.
25327     *
25328     * @deprecated use elm_calendar_mark_add() instead like:
25329     *
25330     * @code
25331     * struct tm t = { 0, 0, 12, 1, 0, 0, 0, 0, -1 };
25332     *
25333     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // monday
25334     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
25335     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // tuesday
25336     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
25337     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // wednesday
25338     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
25339     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // thursday
25340     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
25341     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // friday
25342     * @endcode
25343     *
25344     * @see elm_calendar_mark_add()
25345     *
25346     * @ingroup Calendar
25347     */
25348    EAPI void               elm_calendar_text_weekday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
25349
25350    /**
25351     * Set the interval on time updates for an user mouse button hold
25352     * on calendar widgets' month selection.
25353     *
25354     * @param obj The calendar object
25355     * @param interval The (first) interval value in seconds
25356     *
25357     * This interval value is @b decreased while the user holds the
25358     * mouse pointer either selecting next or previous month.
25359     *
25360     * This helps the user to get to a given month distant from the
25361     * current one easier/faster, as it will start to change quicker and
25362     * quicker on mouse button holds.
25363     *
25364     * The calculation for the next change interval value, starting from
25365     * the one set with this call, is the previous interval divided by
25366     * 1.05, so it decreases a little bit.
25367     *
25368     * The default starting interval value for automatic changes is
25369     * @b 0.85 seconds.
25370     *
25371     * @see elm_calendar_interval_get()
25372     *
25373     * @ingroup Calendar
25374     */
25375    EAPI void               elm_calendar_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
25376
25377    /**
25378     * Get the interval on time updates for an user mouse button hold
25379     * on calendar widgets' month selection.
25380     *
25381     * @param obj The calendar object
25382     * @return The (first) interval value, in seconds, set on it
25383     *
25384     * @see elm_calendar_interval_set() for more details
25385     *
25386     * @ingroup Calendar
25387     */
25388    EAPI double             elm_calendar_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25389
25390    /**
25391     * @}
25392     */
25393
25394    /**
25395     * @defgroup Diskselector Diskselector
25396     * @ingroup Elementary
25397     *
25398     * @image html img/widget/diskselector/preview-00.png
25399     * @image latex img/widget/diskselector/preview-00.eps
25400     *
25401     * A diskselector is a kind of list widget. It scrolls horizontally,
25402     * and can contain label and icon objects. Three items are displayed
25403     * with the selected one in the middle.
25404     *
25405     * It can act like a circular list with round mode and labels can be
25406     * reduced for a defined length for side items.
25407     *
25408     * Smart callbacks one can listen to:
25409     * - "selected" - when item is selected, i.e. scroller stops.
25410     *
25411     * Available styles for it:
25412     * - @c "default"
25413     *
25414     * List of examples:
25415     * @li @ref diskselector_example_01
25416     * @li @ref diskselector_example_02
25417     */
25418
25419    /**
25420     * @addtogroup Diskselector
25421     * @{
25422     */
25423
25424    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(). */
25425
25426    /**
25427     * Add a new diskselector widget to the given parent Elementary
25428     * (container) object.
25429     *
25430     * @param parent The parent object.
25431     * @return a new diskselector widget handle or @c NULL, on errors.
25432     *
25433     * This function inserts a new diskselector widget on the canvas.
25434     *
25435     * @ingroup Diskselector
25436     */
25437    EAPI Evas_Object           *elm_diskselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25438
25439    /**
25440     * Enable or disable round mode.
25441     *
25442     * @param obj The diskselector object.
25443     * @param round @c EINA_TRUE to enable round mode or @c EINA_FALSE to
25444     * disable it.
25445     *
25446     * Disabled by default. If round mode is enabled the items list will
25447     * work like a circle list, so when the user reaches the last item,
25448     * the first one will popup.
25449     *
25450     * @see elm_diskselector_round_get()
25451     *
25452     * @ingroup Diskselector
25453     */
25454    EAPI void                   elm_diskselector_round_set(Evas_Object *obj, Eina_Bool round) EINA_ARG_NONNULL(1);
25455
25456    /**
25457     * Get a value whether round mode is enabled or not.
25458     *
25459     * @see elm_diskselector_round_set() for details.
25460     *
25461     * @param obj The diskselector object.
25462     * @return @c EINA_TRUE means round mode is enabled. @c EINA_FALSE indicates
25463     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
25464     *
25465     * @ingroup Diskselector
25466     */
25467    EAPI Eina_Bool              elm_diskselector_round_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25468
25469    /**
25470     * Get the side labels max length.
25471     *
25472     * @deprecated use elm_diskselector_side_label_length_get() instead:
25473     *
25474     * @param obj The diskselector object.
25475     * @return The max length defined for side labels, or 0 if not a valid
25476     * diskselector.
25477     *
25478     * @ingroup Diskselector
25479     */
25480    EINA_DEPRECATED EAPI int    elm_diskselector_side_label_lenght_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25481
25482    /**
25483     * Set the side labels max length.
25484     *
25485     * @deprecated use elm_diskselector_side_label_length_set() instead:
25486     *
25487     * @param obj The diskselector object.
25488     * @param len The max length defined for side labels.
25489     *
25490     * @ingroup Diskselector
25491     */
25492    EINA_DEPRECATED EAPI void   elm_diskselector_side_label_lenght_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
25493
25494    /**
25495     * Get the side labels max length.
25496     *
25497     * @see elm_diskselector_side_label_length_set() for details.
25498     *
25499     * @param obj The diskselector object.
25500     * @return The max length defined for side labels, or 0 if not a valid
25501     * diskselector.
25502     *
25503     * @ingroup Diskselector
25504     */
25505    EAPI int                    elm_diskselector_side_label_length_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25506
25507    /**
25508     * Set the side labels max length.
25509     *
25510     * @param obj The diskselector object.
25511     * @param len The max length defined for side labels.
25512     *
25513     * Length is the number of characters of items' label that will be
25514     * visible when it's set on side positions. It will just crop
25515     * the string after defined size. E.g.:
25516     *
25517     * An item with label "January" would be displayed on side position as
25518     * "Jan" if max length is set to 3, or "Janu", if this property
25519     * is set to 4.
25520     *
25521     * When it's selected, the entire label will be displayed, except for
25522     * width restrictions. In this case label will be cropped and "..."
25523     * will be concatenated.
25524     *
25525     * Default side label max length is 3.
25526     *
25527     * This property will be applyed over all items, included before or
25528     * later this function call.
25529     *
25530     * @ingroup Diskselector
25531     */
25532    EAPI void                   elm_diskselector_side_label_length_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
25533
25534    /**
25535     * Set the number of items to be displayed.
25536     *
25537     * @param obj The diskselector object.
25538     * @param num The number of items the diskselector will display.
25539     *
25540     * Default value is 3, and also it's the minimun. If @p num is less
25541     * than 3, it will be set to 3.
25542     *
25543     * Also, it can be set on theme, using data item @c display_item_num
25544     * on group "elm/diskselector/item/X", where X is style set.
25545     * E.g.:
25546     *
25547     * group { name: "elm/diskselector/item/X";
25548     * data {
25549     *     item: "display_item_num" "5";
25550     *     }
25551     *
25552     * @ingroup Diskselector
25553     */
25554    EAPI void                   elm_diskselector_display_item_num_set(Evas_Object *obj, int num) EINA_ARG_NONNULL(1);
25555
25556    /**
25557     * Get the number of items in the diskselector object.
25558     *
25559     * @param obj The diskselector object.
25560     *
25561     * @ingroup Diskselector
25562     */
25563    EAPI int                   elm_diskselector_display_item_num_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25564
25565    /**
25566     * Set bouncing behaviour when the scrolled content reaches an edge.
25567     *
25568     * Tell the internal scroller object whether it should bounce or not
25569     * when it reaches the respective edges for each axis.
25570     *
25571     * @param obj The diskselector object.
25572     * @param h_bounce Whether to bounce or not in the horizontal axis.
25573     * @param v_bounce Whether to bounce or not in the vertical axis.
25574     *
25575     * @see elm_scroller_bounce_set()
25576     *
25577     * @ingroup Diskselector
25578     */
25579    EAPI void                   elm_diskselector_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
25580
25581    /**
25582     * Get the bouncing behaviour of the internal scroller.
25583     *
25584     * Get whether the internal scroller should bounce when the edge of each
25585     * axis is reached scrolling.
25586     *
25587     * @param obj The diskselector object.
25588     * @param h_bounce Pointer where to store the bounce state of the horizontal
25589     * axis.
25590     * @param v_bounce Pointer where to store the bounce state of the vertical
25591     * axis.
25592     *
25593     * @see elm_scroller_bounce_get()
25594     * @see elm_diskselector_bounce_set()
25595     *
25596     * @ingroup Diskselector
25597     */
25598    EAPI void                   elm_diskselector_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
25599
25600    /**
25601     * Get the scrollbar policy.
25602     *
25603     * @see elm_diskselector_scroller_policy_get() for details.
25604     *
25605     * @param obj The diskselector object.
25606     * @param policy_h Pointer where to store horizontal scrollbar policy.
25607     * @param policy_v Pointer where to store vertical scrollbar policy.
25608     *
25609     * @ingroup Diskselector
25610     */
25611    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);
25612
25613    /**
25614     * Set the scrollbar policy.
25615     *
25616     * @param obj The diskselector object.
25617     * @param policy_h Horizontal scrollbar policy.
25618     * @param policy_v Vertical scrollbar policy.
25619     *
25620     * This sets the scrollbar visibility policy for the given scroller.
25621     * #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it
25622     * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
25623     * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
25624     * This applies respectively for the horizontal and vertical scrollbars.
25625     *
25626     * The both are disabled by default, i.e., are set to
25627     * #ELM_SCROLLER_POLICY_OFF.
25628     *
25629     * @ingroup Diskselector
25630     */
25631    EAPI void                   elm_diskselector_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
25632
25633    /**
25634     * Remove all diskselector's items.
25635     *
25636     * @param obj The diskselector object.
25637     *
25638     * @see elm_diskselector_item_del()
25639     * @see elm_diskselector_item_append()
25640     *
25641     * @ingroup Diskselector
25642     */
25643    EAPI void                   elm_diskselector_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
25644
25645    /**
25646     * Get a list of all the diskselector items.
25647     *
25648     * @param obj The diskselector object.
25649     * @return An @c Eina_List of diskselector items, #Elm_Diskselector_Item,
25650     * or @c NULL on failure.
25651     *
25652     * @see elm_diskselector_item_append()
25653     * @see elm_diskselector_item_del()
25654     * @see elm_diskselector_clear()
25655     *
25656     * @ingroup Diskselector
25657     */
25658    EAPI const Eina_List       *elm_diskselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25659
25660    /**
25661     * Appends a new item to the diskselector object.
25662     *
25663     * @param obj The diskselector object.
25664     * @param label The label of the diskselector item.
25665     * @param icon The icon object to use at left side of the item. An
25666     * icon can be any Evas object, but usually it is an icon created
25667     * with elm_icon_add().
25668     * @param func The function to call when the item is selected.
25669     * @param data The data to associate with the item for related callbacks.
25670     *
25671     * @return The created item or @c NULL upon failure.
25672     *
25673     * A new item will be created and appended to the diskselector, i.e., will
25674     * be set as last item. Also, if there is no selected item, it will
25675     * be selected. This will always happens for the first appended item.
25676     *
25677     * If no icon is set, label will be centered on item position, otherwise
25678     * the icon will be placed at left of the label, that will be shifted
25679     * to the right.
25680     *
25681     * Items created with this method can be deleted with
25682     * elm_diskselector_item_del().
25683     *
25684     * Associated @p data can be properly freed when item is deleted if a
25685     * callback function is set with elm_diskselector_item_del_cb_set().
25686     *
25687     * If a function is passed as argument, it will be called everytime this item
25688     * is selected, i.e., the user stops the diskselector with this
25689     * item on center position. If such function isn't needed, just passing
25690     * @c NULL as @p func is enough. The same should be done for @p data.
25691     *
25692     * Simple example (with no function callback or data associated):
25693     * @code
25694     * disk = elm_diskselector_add(win);
25695     * ic = elm_icon_add(win);
25696     * elm_icon_file_set(ic, "path/to/image", NULL);
25697     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
25698     * elm_diskselector_item_append(disk, "label", ic, NULL, NULL);
25699     * @endcode
25700     *
25701     * @see elm_diskselector_item_del()
25702     * @see elm_diskselector_item_del_cb_set()
25703     * @see elm_diskselector_clear()
25704     * @see elm_icon_add()
25705     *
25706     * @ingroup Diskselector
25707     */
25708    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);
25709
25710
25711    /**
25712     * Delete them item from the diskselector.
25713     *
25714     * @param it The item of diskselector to be deleted.
25715     *
25716     * If deleting all diskselector items is required, elm_diskselector_clear()
25717     * should be used instead of getting items list and deleting each one.
25718     *
25719     * @see elm_diskselector_clear()
25720     * @see elm_diskselector_item_append()
25721     * @see elm_diskselector_item_del_cb_set()
25722     *
25723     * @ingroup Diskselector
25724     */
25725    EAPI void                   elm_diskselector_item_del(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
25726
25727    /**
25728     * Set the function called when a diskselector item is freed.
25729     *
25730     * @param it The item to set the callback on
25731     * @param func The function called
25732     *
25733     * If there is a @p func, then it will be called prior item's memory release.
25734     * That will be called with the following arguments:
25735     * @li item's data;
25736     * @li item's Evas object;
25737     * @li item itself;
25738     *
25739     * This way, a data associated to a diskselector item could be properly
25740     * freed.
25741     *
25742     * @ingroup Diskselector
25743     */
25744    EAPI void                   elm_diskselector_item_del_cb_set(Elm_Diskselector_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
25745
25746    /**
25747     * Get the data associated to the item.
25748     *
25749     * @param it The diskselector item
25750     * @return The data associated to @p it
25751     *
25752     * The return value is a pointer to data associated to @p item when it was
25753     * created, with function elm_diskselector_item_append(). If no data
25754     * was passed as argument, it will return @c NULL.
25755     *
25756     * @see elm_diskselector_item_append()
25757     *
25758     * @ingroup Diskselector
25759     */
25760    EAPI void                  *elm_diskselector_item_data_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
25761
25762    /**
25763     * Set the icon associated to the item.
25764     *
25765     * @param it The diskselector item
25766     * @param icon The icon object to associate with @p it
25767     *
25768     * The icon object to use at left side of the item. An
25769     * icon can be any Evas object, but usually it is an icon created
25770     * with elm_icon_add().
25771     *
25772     * Once the icon object is set, a previously set one will be deleted.
25773     * @warning Setting the same icon for two items will cause the icon to
25774     * dissapear from the first item.
25775     *
25776     * If an icon was passed as argument on item creation, with function
25777     * elm_diskselector_item_append(), it will be already
25778     * associated to the item.
25779     *
25780     * @see elm_diskselector_item_append()
25781     * @see elm_diskselector_item_icon_get()
25782     *
25783     * @ingroup Diskselector
25784     */
25785    EAPI void                   elm_diskselector_item_icon_set(Elm_Diskselector_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
25786
25787    /**
25788     * Get the icon associated to the item.
25789     *
25790     * @param it The diskselector item
25791     * @return The icon associated to @p it
25792     *
25793     * The return value is a pointer to the icon associated to @p item when it was
25794     * created, with function elm_diskselector_item_append(), or later
25795     * with function elm_diskselector_item_icon_set. If no icon
25796     * was passed as argument, it will return @c NULL.
25797     *
25798     * @see elm_diskselector_item_append()
25799     * @see elm_diskselector_item_icon_set()
25800     *
25801     * @ingroup Diskselector
25802     */
25803    EAPI Evas_Object           *elm_diskselector_item_icon_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
25804
25805    /**
25806     * Set the label of item.
25807     *
25808     * @param it The item of diskselector.
25809     * @param label The label of item.
25810     *
25811     * The label to be displayed by the item.
25812     *
25813     * If no icon is set, label will be centered on item position, otherwise
25814     * the icon will be placed at left of the label, that will be shifted
25815     * to the right.
25816     *
25817     * An item with label "January" would be displayed on side position as
25818     * "Jan" if max length is set to 3 with function
25819     * elm_diskselector_side_label_lenght_set(), or "Janu", if this property
25820     * is set to 4.
25821     *
25822     * When this @p item is selected, the entire label will be displayed,
25823     * except for width restrictions.
25824     * In this case label will be cropped and "..." will be concatenated,
25825     * but only for display purposes. It will keep the entire string, so
25826     * if diskselector is resized the remaining characters will be displayed.
25827     *
25828     * If a label was passed as argument on item creation, with function
25829     * elm_diskselector_item_append(), it will be already
25830     * displayed by the item.
25831     *
25832     * @see elm_diskselector_side_label_lenght_set()
25833     * @see elm_diskselector_item_label_get()
25834     * @see elm_diskselector_item_append()
25835     *
25836     * @ingroup Diskselector
25837     */
25838    EAPI void                   elm_diskselector_item_label_set(Elm_Diskselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
25839
25840    /**
25841     * Get the label of item.
25842     *
25843     * @param it The item of diskselector.
25844     * @return The label of item.
25845     *
25846     * The return value is a pointer to the label associated to @p item when it was
25847     * created, with function elm_diskselector_item_append(), or later
25848     * with function elm_diskselector_item_label_set. If no label
25849     * was passed as argument, it will return @c NULL.
25850     *
25851     * @see elm_diskselector_item_label_set() for more details.
25852     * @see elm_diskselector_item_append()
25853     *
25854     * @ingroup Diskselector
25855     */
25856    EAPI const char            *elm_diskselector_item_label_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
25857
25858    /**
25859     * Get the selected item.
25860     *
25861     * @param obj The diskselector object.
25862     * @return The selected diskselector item.
25863     *
25864     * The selected item can be unselected with function
25865     * elm_diskselector_item_selected_set(), and the first item of
25866     * diskselector will be selected.
25867     *
25868     * The selected item always will be centered on diskselector, with
25869     * full label displayed, i.e., max lenght set to side labels won't
25870     * apply on the selected item. More details on
25871     * elm_diskselector_side_label_length_set().
25872     *
25873     * @ingroup Diskselector
25874     */
25875    EAPI Elm_Diskselector_Item *elm_diskselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25876
25877    /**
25878     * Set the selected state of an item.
25879     *
25880     * @param it The diskselector item
25881     * @param selected The selected state
25882     *
25883     * This sets the selected state of the given item @p it.
25884     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
25885     *
25886     * If a new item is selected the previosly selected will be unselected.
25887     * Previoulsy selected item can be get with function
25888     * elm_diskselector_selected_item_get().
25889     *
25890     * If the item @p it is unselected, the first item of diskselector will
25891     * be selected.
25892     *
25893     * Selected items will be visible on center position of diskselector.
25894     * So if it was on another position before selected, or was invisible,
25895     * diskselector will animate items until the selected item reaches center
25896     * position.
25897     *
25898     * @see elm_diskselector_item_selected_get()
25899     * @see elm_diskselector_selected_item_get()
25900     *
25901     * @ingroup Diskselector
25902     */
25903    EAPI void                   elm_diskselector_item_selected_set(Elm_Diskselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
25904
25905    /*
25906     * Get whether the @p item is selected or not.
25907     *
25908     * @param it The diskselector item.
25909     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
25910     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
25911     *
25912     * @see elm_diskselector_selected_item_set() for details.
25913     * @see elm_diskselector_item_selected_get()
25914     *
25915     * @ingroup Diskselector
25916     */
25917    EAPI Eina_Bool              elm_diskselector_item_selected_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
25918
25919    /**
25920     * Get the first item of the diskselector.
25921     *
25922     * @param obj The diskselector object.
25923     * @return The first item, or @c NULL if none.
25924     *
25925     * The list of items follows append order. So it will return the first
25926     * item appended to the widget that wasn't deleted.
25927     *
25928     * @see elm_diskselector_item_append()
25929     * @see elm_diskselector_items_get()
25930     *
25931     * @ingroup Diskselector
25932     */
25933    EAPI Elm_Diskselector_Item *elm_diskselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25934
25935    /**
25936     * Get the last item of the diskselector.
25937     *
25938     * @param obj The diskselector object.
25939     * @return The last item, or @c NULL if none.
25940     *
25941     * The list of items follows append order. So it will return last first
25942     * item appended to the widget that wasn't deleted.
25943     *
25944     * @see elm_diskselector_item_append()
25945     * @see elm_diskselector_items_get()
25946     *
25947     * @ingroup Diskselector
25948     */
25949    EAPI Elm_Diskselector_Item *elm_diskselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25950
25951    /**
25952     * Get the item before @p item in diskselector.
25953     *
25954     * @param it The diskselector item.
25955     * @return The item before @p item, or @c NULL if none or on failure.
25956     *
25957     * The list of items follows append order. So it will return item appended
25958     * just before @p item and that wasn't deleted.
25959     *
25960     * If it is the first item, @c NULL will be returned.
25961     * First item can be get by elm_diskselector_first_item_get().
25962     *
25963     * @see elm_diskselector_item_append()
25964     * @see elm_diskselector_items_get()
25965     *
25966     * @ingroup Diskselector
25967     */
25968    EAPI Elm_Diskselector_Item *elm_diskselector_item_prev_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
25969
25970    /**
25971     * Get the item after @p item in diskselector.
25972     *
25973     * @param it The diskselector item.
25974     * @return The item after @p item, or @c NULL if none or on failure.
25975     *
25976     * The list of items follows append order. So it will return item appended
25977     * just after @p item and that wasn't deleted.
25978     *
25979     * If it is the last item, @c NULL will be returned.
25980     * Last item can be get by elm_diskselector_last_item_get().
25981     *
25982     * @see elm_diskselector_item_append()
25983     * @see elm_diskselector_items_get()
25984     *
25985     * @ingroup Diskselector
25986     */
25987    EAPI Elm_Diskselector_Item *elm_diskselector_item_next_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
25988
25989    /**
25990     * Set the text to be shown in the diskselector item.
25991     *
25992     * @param item Target item
25993     * @param text The text to set in the content
25994     *
25995     * Setup the text as tooltip to object. The item can have only one tooltip,
25996     * so any previous tooltip data is removed.
25997     *
25998     * @see elm_object_tooltip_text_set() for more details.
25999     *
26000     * @ingroup Diskselector
26001     */
26002    EAPI void                   elm_diskselector_item_tooltip_text_set(Elm_Diskselector_Item *item, const char *text) EINA_ARG_NONNULL(1);
26003
26004    /**
26005     * Set the content to be shown in the tooltip item.
26006     *
26007     * Setup the tooltip to item. The item can have only one tooltip,
26008     * so any previous tooltip data is removed. @p func(with @p data) will
26009     * be called every time that need show the tooltip and it should
26010     * return a valid Evas_Object. This object is then managed fully by
26011     * tooltip system and is deleted when the tooltip is gone.
26012     *
26013     * @param item the diskselector item being attached a tooltip.
26014     * @param func the function used to create the tooltip contents.
26015     * @param data what to provide to @a func as callback data/context.
26016     * @param del_cb called when data is not needed anymore, either when
26017     *        another callback replaces @p func, the tooltip is unset with
26018     *        elm_diskselector_item_tooltip_unset() or the owner @a item
26019     *        dies. This callback receives as the first parameter the
26020     *        given @a data, and @c event_info is the item.
26021     *
26022     * @see elm_object_tooltip_content_cb_set() for more details.
26023     *
26024     * @ingroup Diskselector
26025     */
26026    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);
26027
26028    /**
26029     * Unset tooltip from item.
26030     *
26031     * @param item diskselector item to remove previously set tooltip.
26032     *
26033     * Remove tooltip from item. The callback provided as del_cb to
26034     * elm_diskselector_item_tooltip_content_cb_set() will be called to notify
26035     * it is not used anymore.
26036     *
26037     * @see elm_object_tooltip_unset() for more details.
26038     * @see elm_diskselector_item_tooltip_content_cb_set()
26039     *
26040     * @ingroup Diskselector
26041     */
26042    EAPI void                   elm_diskselector_item_tooltip_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26043
26044
26045    /**
26046     * Sets a different style for this item tooltip.
26047     *
26048     * @note before you set a style you should define a tooltip with
26049     *       elm_diskselector_item_tooltip_content_cb_set() or
26050     *       elm_diskselector_item_tooltip_text_set()
26051     *
26052     * @param item diskselector item with tooltip already set.
26053     * @param style the theme style to use (default, transparent, ...)
26054     *
26055     * @see elm_object_tooltip_style_set() for more details.
26056     *
26057     * @ingroup Diskselector
26058     */
26059    EAPI void                   elm_diskselector_item_tooltip_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
26060
26061    /**
26062     * Get the style for this item tooltip.
26063     *
26064     * @param item diskselector item with tooltip already set.
26065     * @return style the theme style in use, defaults to "default". If the
26066     *         object does not have a tooltip set, then NULL is returned.
26067     *
26068     * @see elm_object_tooltip_style_get() for more details.
26069     * @see elm_diskselector_item_tooltip_style_set()
26070     *
26071     * @ingroup Diskselector
26072     */
26073    EAPI const char            *elm_diskselector_item_tooltip_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26074
26075    /**
26076     * Set the cursor to be shown when mouse is over the diskselector item
26077     *
26078     * @param item Target item
26079     * @param cursor the cursor name to be used.
26080     *
26081     * @see elm_object_cursor_set() for more details.
26082     *
26083     * @ingroup Diskselector
26084     */
26085    EAPI void                   elm_diskselector_item_cursor_set(Elm_Diskselector_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
26086
26087    /**
26088     * Get the cursor to be shown when mouse is over the diskselector item
26089     *
26090     * @param item diskselector item with cursor already set.
26091     * @return the cursor name.
26092     *
26093     * @see elm_object_cursor_get() for more details.
26094     * @see elm_diskselector_cursor_set()
26095     *
26096     * @ingroup Diskselector
26097     */
26098    EAPI const char            *elm_diskselector_item_cursor_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26099
26100
26101    /**
26102     * Unset the cursor to be shown when mouse is over the diskselector item
26103     *
26104     * @param item Target item
26105     *
26106     * @see elm_object_cursor_unset() for more details.
26107     * @see elm_diskselector_cursor_set()
26108     *
26109     * @ingroup Diskselector
26110     */
26111    EAPI void                   elm_diskselector_item_cursor_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26112
26113    /**
26114     * Sets a different style for this item cursor.
26115     *
26116     * @note before you set a style you should define a cursor with
26117     *       elm_diskselector_item_cursor_set()
26118     *
26119     * @param item diskselector item with cursor already set.
26120     * @param style the theme style to use (default, transparent, ...)
26121     *
26122     * @see elm_object_cursor_style_set() for more details.
26123     *
26124     * @ingroup Diskselector
26125     */
26126    EAPI void                   elm_diskselector_item_cursor_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
26127
26128
26129    /**
26130     * Get the style for this item cursor.
26131     *
26132     * @param item diskselector item with cursor already set.
26133     * @return style the theme style in use, defaults to "default". If the
26134     *         object does not have a cursor set, then @c NULL is returned.
26135     *
26136     * @see elm_object_cursor_style_get() for more details.
26137     * @see elm_diskselector_item_cursor_style_set()
26138     *
26139     * @ingroup Diskselector
26140     */
26141    EAPI const char            *elm_diskselector_item_cursor_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26142
26143
26144    /**
26145     * Set if the cursor set should be searched on the theme or should use
26146     * the provided by the engine, only.
26147     *
26148     * @note before you set if should look on theme you should define a cursor
26149     * with elm_diskselector_item_cursor_set().
26150     * By default it will only look for cursors provided by the engine.
26151     *
26152     * @param item widget item with cursor already set.
26153     * @param engine_only boolean to define if cursors set with
26154     * elm_diskselector_item_cursor_set() should be searched only
26155     * between cursors provided by the engine or searched on widget's
26156     * theme as well.
26157     *
26158     * @see elm_object_cursor_engine_only_set() for more details.
26159     *
26160     * @ingroup Diskselector
26161     */
26162    EAPI void                   elm_diskselector_item_cursor_engine_only_set(Elm_Diskselector_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
26163
26164    /**
26165     * Get the cursor engine only usage for this item cursor.
26166     *
26167     * @param item widget item with cursor already set.
26168     * @return engine_only boolean to define it cursors should be looked only
26169     * between the provided by the engine or searched on widget's theme as well.
26170     * If the item does not have a cursor set, then @c EINA_FALSE is returned.
26171     *
26172     * @see elm_object_cursor_engine_only_get() for more details.
26173     * @see elm_diskselector_item_cursor_engine_only_set()
26174     *
26175     * @ingroup Diskselector
26176     */
26177    EAPI Eina_Bool              elm_diskselector_item_cursor_engine_only_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26178
26179    /**
26180     * @}
26181     */
26182
26183    /**
26184     * @defgroup Colorselector Colorselector
26185     *
26186     * @{
26187     *
26188     * @image html img/widget/colorselector/preview-00.png
26189     * @image latex img/widget/colorselector/preview-00.eps
26190     *
26191     * @brief Widget for user to select a color.
26192     *
26193     * Signals that you can add callbacks for are:
26194     * "changed" - When the color value changes(event_info is NULL).
26195     *
26196     * See @ref tutorial_colorselector.
26197     */
26198    /**
26199     * @brief Add a new colorselector to the parent
26200     *
26201     * @param parent The parent object
26202     * @return The new object or NULL if it cannot be created
26203     *
26204     * @ingroup Colorselector
26205     */
26206    EAPI Evas_Object *elm_colorselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26207    /**
26208     * Set a color for the colorselector
26209     *
26210     * @param obj   Colorselector object
26211     * @param r     r-value of color
26212     * @param g     g-value of color
26213     * @param b     b-value of color
26214     * @param a     a-value of color
26215     *
26216     * @ingroup Colorselector
26217     */
26218    EAPI void         elm_colorselector_color_set(Evas_Object *obj, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
26219    /**
26220     * Get a color from the colorselector
26221     *
26222     * @param obj   Colorselector object
26223     * @param r     integer pointer for r-value of color
26224     * @param g     integer pointer for g-value of color
26225     * @param b     integer pointer for b-value of color
26226     * @param a     integer pointer for a-value of color
26227     *
26228     * @ingroup Colorselector
26229     */
26230    EAPI void         elm_colorselector_color_get(const Evas_Object *obj, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
26231    /**
26232     * @}
26233     */
26234
26235    /**
26236     * @defgroup Ctxpopup Ctxpopup
26237     *
26238     * @image html img/widget/ctxpopup/preview-00.png
26239     * @image latex img/widget/ctxpopup/preview-00.eps
26240     *
26241     * @brief Context popup widet.
26242     *
26243     * A ctxpopup is a widget that, when shown, pops up a list of items.
26244     * It automatically chooses an area inside its parent object's view
26245     * (set via elm_ctxpopup_add() and elm_ctxpopup_hover_parent_set()) to
26246     * optimally fit into it. In the default theme, it will also point an
26247     * arrow to it's top left position at the time one shows it. Ctxpopup
26248     * items have a label and/or an icon. It is intended for a small
26249     * number of items (hence the use of list, not genlist).
26250     *
26251     * @note Ctxpopup is a especialization of @ref Hover.
26252     *
26253     * Signals that you can add callbacks for are:
26254     * "dismissed" - the ctxpopup was dismissed
26255     *
26256     * Default contents parts of the ctxpopup widget that you can use for are:
26257     * @li "elm.swallow.content" - A content of the ctxpopup
26258     *
26259     * @ref tutorial_ctxpopup shows the usage of a good deal of the API.
26260     * @{
26261     */
26262    typedef enum _Elm_Ctxpopup_Direction
26263      {
26264         ELM_CTXPOPUP_DIRECTION_DOWN, /**< ctxpopup show appear below clicked
26265                                           area */
26266         ELM_CTXPOPUP_DIRECTION_RIGHT, /**< ctxpopup show appear to the right of
26267                                            the clicked area */
26268         ELM_CTXPOPUP_DIRECTION_LEFT, /**< ctxpopup show appear to the left of
26269                                           the clicked area */
26270         ELM_CTXPOPUP_DIRECTION_UP, /**< ctxpopup show appear above the clicked
26271                                         area */
26272         ELM_CTXPOPUP_DIRECTION_UNKNOWN, /**< ctxpopup does not determine it's direction yet*/
26273      } Elm_Ctxpopup_Direction;
26274 #define Elm_Ctxpopup_Item Elm_Object_Item
26275
26276    /**
26277     * @brief Add a new Ctxpopup object to the parent.
26278     *
26279     * @param parent Parent object
26280     * @return New object or @c NULL, if it cannot be created
26281     */
26282    EAPI Evas_Object  *elm_ctxpopup_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26283    /**
26284     * @brief Set the Ctxpopup's parent
26285     *
26286     * @param obj The ctxpopup object
26287     * @param area The parent to use
26288     *
26289     * Set the parent object.
26290     *
26291     * @note elm_ctxpopup_add() will automatically call this function
26292     * with its @c parent argument.
26293     *
26294     * @see elm_ctxpopup_add()
26295     * @see elm_hover_parent_set()
26296     */
26297    EAPI void          elm_ctxpopup_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1, 2);
26298    /**
26299     * @brief Get the Ctxpopup's parent
26300     *
26301     * @param obj The ctxpopup object
26302     *
26303     * @see elm_ctxpopup_hover_parent_set() for more information
26304     */
26305    EAPI Evas_Object  *elm_ctxpopup_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26306    /**
26307     * @brief Clear all items in the given ctxpopup object.
26308     *
26309     * @param obj Ctxpopup object
26310     */
26311    EAPI void          elm_ctxpopup_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
26312    /**
26313     * @brief Change the ctxpopup's orientation to horizontal or vertical.
26314     *
26315     * @param obj Ctxpopup object
26316     * @param horizontal @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical
26317     */
26318    EAPI void          elm_ctxpopup_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
26319    /**
26320     * @brief Get the value of current ctxpopup object's orientation.
26321     *
26322     * @param obj Ctxpopup object
26323     * @return @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical mode (or errors)
26324     *
26325     * @see elm_ctxpopup_horizontal_set()
26326     */
26327    EAPI Eina_Bool     elm_ctxpopup_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26328    /**
26329     * @brief Add a new item to a ctxpopup object.
26330     *
26331     * @param obj Ctxpopup object
26332     * @param icon Icon to be set on new item
26333     * @param label The Label of the new item
26334     * @param func Convenience function called when item selected
26335     * @param data Data passed to @p func
26336     * @return A handle to the item added or @c NULL, on errors
26337     *
26338     * @warning Ctxpopup can't hold both an item list and a content at the same
26339     * time. When an item is added, any previous content will be removed.
26340     *
26341     * @see elm_ctxpopup_content_set()
26342     */
26343    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);
26344    /**
26345     * @brief Delete the given item in a ctxpopup object.
26346     *
26347     * @param it Ctxpopup item to be deleted
26348     *
26349     * @see elm_ctxpopup_item_append()
26350     */
26351    EAPI void          elm_ctxpopup_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26352    /**
26353     * @brief Set the ctxpopup item's state as disabled or enabled.
26354     *
26355     * @param it Ctxpopup item to be enabled/disabled
26356     * @param disabled @c EINA_TRUE to disable it, @c EINA_FALSE to enable it
26357     *
26358     * When disabled the item is greyed out to indicate it's state.
26359     */
26360    EAPI void          elm_ctxpopup_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
26361    /**
26362     * @brief Get the ctxpopup item's disabled/enabled state.
26363     *
26364     * @param it Ctxpopup item to be enabled/disabled
26365     * @return disabled @c EINA_TRUE, if disabled, @c EINA_FALSE otherwise
26366     *
26367     * @see elm_ctxpopup_item_disabled_set()
26368     */
26369    EAPI Eina_Bool     elm_ctxpopup_item_disabled_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26370    /**
26371     * @brief Get the icon object for the given ctxpopup item.
26372     *
26373     * @param it Ctxpopup item
26374     * @return icon object or @c NULL, if the item does not have icon or an error
26375     * occurred
26376     *
26377     * @see elm_ctxpopup_item_append()
26378     * @see elm_ctxpopup_item_icon_set()
26379     */
26380    EAPI Evas_Object  *elm_ctxpopup_item_icon_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26381    /**
26382     * @brief Sets the side icon associated with the ctxpopup item
26383     *
26384     * @param it Ctxpopup item
26385     * @param icon Icon object to be set
26386     *
26387     * Once the icon object is set, a previously set one will be deleted.
26388     * @warning Setting the same icon for two items will cause the icon to
26389     * dissapear from the first item.
26390     *
26391     * @see elm_ctxpopup_item_append()
26392     */
26393    EAPI void          elm_ctxpopup_item_icon_set(Elm_Object_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
26394    /**
26395     * @brief Get the label for the given ctxpopup item.
26396     *
26397     * @param it Ctxpopup item
26398     * @return label string or @c NULL, if the item does not have label or an
26399     * error occured
26400     *
26401     * @see elm_ctxpopup_item_append()
26402     * @see elm_ctxpopup_item_label_set()
26403     */
26404    EAPI const char   *elm_ctxpopup_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26405    /**
26406     * @brief (Re)set the label on the given ctxpopup item.
26407     *
26408     * @param it Ctxpopup item
26409     * @param label String to set as label
26410     */
26411    EAPI void          elm_ctxpopup_item_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
26412    /**
26413     * @brief Set an elm widget as the content of the ctxpopup.
26414     *
26415     * @param obj Ctxpopup object
26416     * @param content Content to be swallowed
26417     *
26418     * If the content object is already set, a previous one will bedeleted. If
26419     * you want to keep that old content object, use the
26420     * elm_ctxpopup_content_unset() function.
26421     *
26422     * @deprecated use elm_object_content_set()
26423     *
26424     * @warning Ctxpopup can't hold both a item list and a content at the same
26425     * time. When a content is set, any previous items will be removed.
26426     */
26427    EAPI void          elm_ctxpopup_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1, 2);
26428    /**
26429     * @brief Unset the ctxpopup content
26430     *
26431     * @param obj Ctxpopup object
26432     * @return The content that was being used
26433     *
26434     * Unparent and return the content object which was set for this widget.
26435     *
26436     * @deprecated use elm_object_content_unset()
26437     *
26438     * @see elm_ctxpopup_content_set()
26439     */
26440    EAPI Evas_Object  *elm_ctxpopup_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
26441    /**
26442     * @brief Set the direction priority of a ctxpopup.
26443     *
26444     * @param obj Ctxpopup object
26445     * @param first 1st priority of direction
26446     * @param second 2nd priority of direction
26447     * @param third 3th priority of direction
26448     * @param fourth 4th priority of direction
26449     *
26450     * This functions gives a chance to user to set the priority of ctxpopup
26451     * showing direction. This doesn't guarantee the ctxpopup will appear in the
26452     * requested direction.
26453     *
26454     * @see Elm_Ctxpopup_Direction
26455     */
26456    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);
26457    /**
26458     * @brief Get the direction priority of a ctxpopup.
26459     *
26460     * @param obj Ctxpopup object
26461     * @param first 1st priority of direction to be returned
26462     * @param second 2nd priority of direction to be returned
26463     * @param third 3th priority of direction to be returned
26464     * @param fourth 4th priority of direction to be returned
26465     *
26466     * @see elm_ctxpopup_direction_priority_set() for more information.
26467     */
26468    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);
26469
26470    /**
26471     * @brief Get the current direction of a ctxpopup.
26472     *
26473     * @param obj Ctxpopup object
26474     * @return current direction of a ctxpopup
26475     *
26476     * @warning Once the ctxpopup showed up, the direction would be determined
26477     */
26478    EAPI Elm_Ctxpopup_Direction elm_ctxpopup_direction_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26479
26480    /**
26481     * @}
26482     */
26483
26484    /* transit */
26485    /**
26486     *
26487     * @defgroup Transit Transit
26488     * @ingroup Elementary
26489     *
26490     * Transit is designed to apply various animated transition effects to @c
26491     * Evas_Object, such like translation, rotation, etc. For using these
26492     * effects, create an @ref Elm_Transit and add the desired transition effects.
26493     *
26494     * Once the effects are added into transit, they will be automatically
26495     * managed (their callback will be called until the duration is ended, and
26496     * they will be deleted on completion).
26497     *
26498     * Example:
26499     * @code
26500     * Elm_Transit *trans = elm_transit_add();
26501     * elm_transit_object_add(trans, obj);
26502     * elm_transit_effect_translation_add(trans, 0, 0, 280, 280
26503     * elm_transit_duration_set(transit, 1);
26504     * elm_transit_auto_reverse_set(transit, EINA_TRUE);
26505     * elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
26506     * elm_transit_repeat_times_set(transit, 3);
26507     * @endcode
26508     *
26509     * Some transition effects are used to change the properties of objects. They
26510     * are:
26511     * @li @ref elm_transit_effect_translation_add
26512     * @li @ref elm_transit_effect_color_add
26513     * @li @ref elm_transit_effect_rotation_add
26514     * @li @ref elm_transit_effect_wipe_add
26515     * @li @ref elm_transit_effect_zoom_add
26516     * @li @ref elm_transit_effect_resizing_add
26517     *
26518     * Other transition effects are used to make one object disappear and another
26519     * object appear on its old place. These effects are:
26520     *
26521     * @li @ref elm_transit_effect_flip_add
26522     * @li @ref elm_transit_effect_resizable_flip_add
26523     * @li @ref elm_transit_effect_fade_add
26524     * @li @ref elm_transit_effect_blend_add
26525     *
26526     * It's also possible to make a transition chain with @ref
26527     * elm_transit_chain_transit_add.
26528     *
26529     * @warning We strongly recommend to use elm_transit just when edje can not do
26530     * the trick. Edje has more advantage than Elm_Transit, it has more flexibility and
26531     * animations can be manipulated inside the theme.
26532     *
26533     * List of examples:
26534     * @li @ref transit_example_01_explained
26535     * @li @ref transit_example_02_explained
26536     * @li @ref transit_example_03_c
26537     * @li @ref transit_example_04_c
26538     *
26539     * @{
26540     */
26541
26542    /**
26543     * @enum Elm_Transit_Tween_Mode
26544     *
26545     * The type of acceleration used in the transition.
26546     */
26547    typedef enum
26548      {
26549         ELM_TRANSIT_TWEEN_MODE_LINEAR, /**< Constant speed */
26550         ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL, /**< Starts slow, increase speed
26551                                              over time, then decrease again
26552                                              and stop slowly */
26553         ELM_TRANSIT_TWEEN_MODE_DECELERATE, /**< Starts fast and decrease
26554                                              speed over time */
26555         ELM_TRANSIT_TWEEN_MODE_ACCELERATE /**< Starts slow and increase speed
26556                                             over time */
26557      } Elm_Transit_Tween_Mode;
26558
26559    /**
26560     * @enum Elm_Transit_Effect_Flip_Axis
26561     *
26562     * The axis where flip effect should be applied.
26563     */
26564    typedef enum
26565      {
26566         ELM_TRANSIT_EFFECT_FLIP_AXIS_X, /**< Flip on X axis */
26567         ELM_TRANSIT_EFFECT_FLIP_AXIS_Y /**< Flip on Y axis */
26568      } Elm_Transit_Effect_Flip_Axis;
26569    /**
26570     * @enum Elm_Transit_Effect_Wipe_Dir
26571     *
26572     * The direction where the wipe effect should occur.
26573     */
26574    typedef enum
26575      {
26576         ELM_TRANSIT_EFFECT_WIPE_DIR_LEFT, /**< Wipe to the left */
26577         ELM_TRANSIT_EFFECT_WIPE_DIR_RIGHT, /**< Wipe to the right */
26578         ELM_TRANSIT_EFFECT_WIPE_DIR_UP, /**< Wipe up */
26579         ELM_TRANSIT_EFFECT_WIPE_DIR_DOWN /**< Wipe down */
26580      } Elm_Transit_Effect_Wipe_Dir;
26581    /** @enum Elm_Transit_Effect_Wipe_Type
26582     *
26583     * Whether the wipe effect should show or hide the object.
26584     */
26585    typedef enum
26586      {
26587         ELM_TRANSIT_EFFECT_WIPE_TYPE_HIDE, /**< Hide the object during the
26588                                              animation */
26589         ELM_TRANSIT_EFFECT_WIPE_TYPE_SHOW /**< Show the object during the
26590                                             animation */
26591      } Elm_Transit_Effect_Wipe_Type;
26592
26593    /**
26594     * @typedef Elm_Transit
26595     *
26596     * The Transit created with elm_transit_add(). This type has the information
26597     * about the objects which the transition will be applied, and the
26598     * transition effects that will be used. It also contains info about
26599     * duration, number of repetitions, auto-reverse, etc.
26600     */
26601    typedef struct _Elm_Transit Elm_Transit;
26602    typedef void Elm_Transit_Effect;
26603    /**
26604     * @typedef Elm_Transit_Effect_Transition_Cb
26605     *
26606     * Transition callback called for this effect on each transition iteration.
26607     */
26608    typedef void (*Elm_Transit_Effect_Transition_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit, double progress);
26609    /**
26610     * Elm_Transit_Effect_End_Cb
26611     *
26612     * Transition callback called for this effect when the transition is over.
26613     */
26614    typedef void (*Elm_Transit_Effect_End_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit);
26615
26616    /**
26617     * Elm_Transit_Del_Cb
26618     *
26619     * A callback called when the transit is deleted.
26620     */
26621    typedef void (*Elm_Transit_Del_Cb) (void *data, Elm_Transit *transit);
26622
26623    /**
26624     * Add new transit.
26625     *
26626     * @note Is not necessary to delete the transit object, it will be deleted at
26627     * the end of its operation.
26628     * @note The transit will start playing when the program enter in the main loop, is not
26629     * necessary to give a start to the transit.
26630     *
26631     * @return The transit object.
26632     *
26633     * @ingroup Transit
26634     */
26635    EAPI Elm_Transit                *elm_transit_add(void);
26636
26637    /**
26638     * Stops the animation and delete the @p transit object.
26639     *
26640     * Call this function if you wants to stop the animation before the duration
26641     * time. Make sure the @p transit object is still alive with
26642     * elm_transit_del_cb_set() function.
26643     * All added effects will be deleted, calling its repective data_free_cb
26644     * functions. The function setted by elm_transit_del_cb_set() will be called.
26645     *
26646     * @see elm_transit_del_cb_set()
26647     *
26648     * @param transit The transit object to be deleted.
26649     *
26650     * @ingroup Transit
26651     * @warning Just call this function if you are sure the transit is alive.
26652     */
26653    EAPI void                        elm_transit_del(Elm_Transit *transit) EINA_ARG_NONNULL(1);
26654
26655    /**
26656     * Add a new effect to the transit.
26657     *
26658     * @note The cb function and the data are the key to the effect. If you try to
26659     * add an already added effect, nothing is done.
26660     * @note After the first addition of an effect in @p transit, if its
26661     * effect list become empty again, the @p transit will be killed by
26662     * elm_transit_del(transit) function.
26663     *
26664     * Exemple:
26665     * @code
26666     * Elm_Transit *transit = elm_transit_add();
26667     * elm_transit_effect_add(transit,
26668     *                        elm_transit_effect_blend_op,
26669     *                        elm_transit_effect_blend_context_new(),
26670     *                        elm_transit_effect_blend_context_free);
26671     * @endcode
26672     *
26673     * @param transit The transit object.
26674     * @param transition_cb The operation function. It is called when the
26675     * animation begins, it is the function that actually performs the animation.
26676     * It is called with the @p data, @p transit and the time progression of the
26677     * animation (a double value between 0.0 and 1.0).
26678     * @param effect The context data of the effect.
26679     * @param end_cb The function to free the context data, it will be called
26680     * at the end of the effect, it must finalize the animation and free the
26681     * @p data.
26682     *
26683     * @ingroup Transit
26684     * @warning The transit free the context data at the and of the transition with
26685     * the data_free_cb function, do not use the context data in another transit.
26686     */
26687    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);
26688
26689    /**
26690     * Delete an added effect.
26691     *
26692     * This function will remove the effect from the @p transit, calling the
26693     * data_free_cb to free the @p data.
26694     *
26695     * @see elm_transit_effect_add()
26696     *
26697     * @note If the effect is not found, nothing is done.
26698     * @note If the effect list become empty, this function will call
26699     * elm_transit_del(transit), that is, it will kill the @p transit.
26700     *
26701     * @param transit The transit object.
26702     * @param transition_cb The operation function.
26703     * @param effect The context data of the effect.
26704     *
26705     * @ingroup Transit
26706     */
26707    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);
26708
26709    /**
26710     * Add new object to apply the effects.
26711     *
26712     * @note After the first addition of an object in @p transit, if its
26713     * object list become empty again, the @p transit will be killed by
26714     * elm_transit_del(transit) function.
26715     * @note If the @p obj belongs to another transit, the @p obj will be
26716     * removed from it and it will only belong to the @p transit. If the old
26717     * transit stays without objects, it will die.
26718     * @note When you add an object into the @p transit, its state from
26719     * evas_object_pass_events_get(obj) is saved, and it is applied when the
26720     * transit ends, if you change this state whith evas_object_pass_events_set()
26721     * after add the object, this state will change again when @p transit stops to
26722     * run.
26723     *
26724     * @param transit The transit object.
26725     * @param obj Object to be animated.
26726     *
26727     * @ingroup Transit
26728     * @warning It is not allowed to add a new object after transit begins to go.
26729     */
26730    EAPI void                        elm_transit_object_add(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
26731
26732    /**
26733     * Removes an added object from the transit.
26734     *
26735     * @note If the @p obj is not in the @p transit, nothing is done.
26736     * @note If the list become empty, this function will call
26737     * elm_transit_del(transit), that is, it will kill the @p transit.
26738     *
26739     * @param transit The transit object.
26740     * @param obj Object to be removed from @p transit.
26741     *
26742     * @ingroup Transit
26743     * @warning It is not allowed to remove objects after transit begins to go.
26744     */
26745    EAPI void                        elm_transit_object_remove(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
26746
26747    /**
26748     * Get the objects of the transit.
26749     *
26750     * @param transit The transit object.
26751     * @return a Eina_List with the objects from the transit.
26752     *
26753     * @ingroup Transit
26754     */
26755    EAPI const Eina_List            *elm_transit_objects_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
26756
26757    /**
26758     * Enable/disable keeping up the objects states.
26759     * If it is not kept, the objects states will be reset when transition ends.
26760     *
26761     * @note @p transit can not be NULL.
26762     * @note One state includes geometry, color, map data.
26763     *
26764     * @param transit The transit object.
26765     * @param state_keep Keeping or Non Keeping.
26766     *
26767     * @ingroup Transit
26768     */
26769    EAPI void                        elm_transit_objects_final_state_keep_set(Elm_Transit *transit, Eina_Bool state_keep) EINA_ARG_NONNULL(1);
26770
26771    /**
26772     * Get a value whether the objects states will be reset or not.
26773     *
26774     * @note @p transit can not be NULL
26775     *
26776     * @see elm_transit_objects_final_state_keep_set()
26777     *
26778     * @param transit The transit object.
26779     * @return EINA_TRUE means the states of the objects will be reset.
26780     * If @p transit is NULL, EINA_FALSE is returned
26781     *
26782     * @ingroup Transit
26783     */
26784    EAPI Eina_Bool                   elm_transit_objects_final_state_keep_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
26785
26786    /**
26787     * Set the event enabled when transit is operating.
26788     *
26789     * If @p enabled is EINA_TRUE, the objects of the transit will receives
26790     * events from mouse and keyboard during the animation.
26791     * @note When you add an object with elm_transit_object_add(), its state from
26792     * evas_object_pass_events_get(obj) is saved, and it is applied when the
26793     * transit ends, if you change this state with evas_object_pass_events_set()
26794     * after adding the object, this state will change again when @p transit stops
26795     * to run.
26796     *
26797     * @param transit The transit object.
26798     * @param enabled Events are received when enabled is @c EINA_TRUE, and
26799     * ignored otherwise.
26800     *
26801     * @ingroup Transit
26802     */
26803    EAPI void                        elm_transit_event_enabled_set(Elm_Transit *transit, Eina_Bool enabled) EINA_ARG_NONNULL(1);
26804
26805    /**
26806     * Get the value of event enabled status.
26807     *
26808     * @see elm_transit_event_enabled_set()
26809     *
26810     * @param transit The Transit object
26811     * @return EINA_TRUE, when event is enabled. If @p transit is NULL
26812     * EINA_FALSE is returned
26813     *
26814     * @ingroup Transit
26815     */
26816    EAPI Eina_Bool                   elm_transit_event_enabled_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
26817
26818    /**
26819     * Set the user-callback function when the transit is deleted.
26820     *
26821     * @note Using this function twice will overwrite the first function setted.
26822     * @note the @p transit object will be deleted after call @p cb function.
26823     *
26824     * @param transit The transit object.
26825     * @param cb Callback function pointer. This function will be called before
26826     * the deletion of the transit.
26827     * @param data Callback funtion user data. It is the @p op parameter.
26828     *
26829     * @ingroup Transit
26830     */
26831    EAPI void                        elm_transit_del_cb_set(Elm_Transit *transit, Elm_Transit_Del_Cb cb, void *data) EINA_ARG_NONNULL(1);
26832
26833    /**
26834     * Set reverse effect automatically.
26835     *
26836     * If auto reverse is setted, after running the effects with the progress
26837     * parameter from 0 to 1, it will call the effecs again with the progress
26838     * from 1 to 0. The transit will last for a time iqual to (2 * duration * repeat),
26839     * where the duration was setted with the function elm_transit_add and
26840     * the repeat with the function elm_transit_repeat_times_set().
26841     *
26842     * @param transit The transit object.
26843     * @param reverse EINA_TRUE means the auto_reverse is on.
26844     *
26845     * @ingroup Transit
26846     */
26847    EAPI void                        elm_transit_auto_reverse_set(Elm_Transit *transit, Eina_Bool reverse) EINA_ARG_NONNULL(1);
26848
26849    /**
26850     * Get if the auto reverse is on.
26851     *
26852     * @see elm_transit_auto_reverse_set()
26853     *
26854     * @param transit The transit object.
26855     * @return EINA_TRUE means auto reverse is on. If @p transit is NULL
26856     * EINA_FALSE is returned
26857     *
26858     * @ingroup Transit
26859     */
26860    EAPI Eina_Bool                   elm_transit_auto_reverse_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
26861
26862    /**
26863     * Set the transit repeat count. Effect will be repeated by repeat count.
26864     *
26865     * This function sets the number of repetition the transit will run after
26866     * the first one, that is, if @p repeat is 1, the transit will run 2 times.
26867     * If the @p repeat is a negative number, it will repeat infinite times.
26868     *
26869     * @note If this function is called during the transit execution, the transit
26870     * will run @p repeat times, ignoring the times it already performed.
26871     *
26872     * @param transit The transit object
26873     * @param repeat Repeat count
26874     *
26875     * @ingroup Transit
26876     */
26877    EAPI void                        elm_transit_repeat_times_set(Elm_Transit *transit, int repeat) EINA_ARG_NONNULL(1);
26878
26879    /**
26880     * Get the transit repeat count.
26881     *
26882     * @see elm_transit_repeat_times_set()
26883     *
26884     * @param transit The Transit object.
26885     * @return The repeat count. If @p transit is NULL
26886     * 0 is returned
26887     *
26888     * @ingroup Transit
26889     */
26890    EAPI int                         elm_transit_repeat_times_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
26891
26892    /**
26893     * Set the transit animation acceleration type.
26894     *
26895     * This function sets the tween mode of the transit that can be:
26896     * ELM_TRANSIT_TWEEN_MODE_LINEAR - The default mode.
26897     * ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL - Starts in accelerate mode and ends decelerating.
26898     * ELM_TRANSIT_TWEEN_MODE_DECELERATE - The animation will be slowed over time.
26899     * ELM_TRANSIT_TWEEN_MODE_ACCELERATE - The animation will accelerate over time.
26900     *
26901     * @param transit The transit object.
26902     * @param tween_mode The tween type.
26903     *
26904     * @ingroup Transit
26905     */
26906    EAPI void                        elm_transit_tween_mode_set(Elm_Transit *transit, Elm_Transit_Tween_Mode tween_mode) EINA_ARG_NONNULL(1);
26907
26908    /**
26909     * Get the transit animation acceleration type.
26910     *
26911     * @note @p transit can not be NULL
26912     *
26913     * @param transit The transit object.
26914     * @return The tween type. If @p transit is NULL
26915     * ELM_TRANSIT_TWEEN_MODE_LINEAR is returned.
26916     *
26917     * @ingroup Transit
26918     */
26919    EAPI Elm_Transit_Tween_Mode      elm_transit_tween_mode_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
26920
26921    /**
26922     * Set the transit animation time
26923     *
26924     * @note @p transit can not be NULL
26925     *
26926     * @param transit The transit object.
26927     * @param duration The animation time.
26928     *
26929     * @ingroup Transit
26930     */
26931    EAPI void                        elm_transit_duration_set(Elm_Transit *transit, double duration) EINA_ARG_NONNULL(1);
26932
26933    /**
26934     * Get the transit animation time
26935     *
26936     * @note @p transit can not be NULL
26937     *
26938     * @param transit The transit object.
26939     *
26940     * @return The transit animation time.
26941     *
26942     * @ingroup Transit
26943     */
26944    EAPI double                      elm_transit_duration_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
26945
26946    /**
26947     * Starts the transition.
26948     * Once this API is called, the transit begins to measure the time.
26949     *
26950     * @note @p transit can not be NULL
26951     *
26952     * @param transit The transit object.
26953     *
26954     * @ingroup Transit
26955     */
26956    EAPI void                        elm_transit_go(Elm_Transit *transit) EINA_ARG_NONNULL(1);
26957
26958    /**
26959     * Pause/Resume the transition.
26960     *
26961     * If you call elm_transit_go again, the transit will be started from the
26962     * beginning, and will be unpaused.
26963     *
26964     * @note @p transit can not be NULL
26965     *
26966     * @param transit The transit object.
26967     * @param paused Whether the transition should be paused or not.
26968     *
26969     * @ingroup Transit
26970     */
26971    EAPI void                        elm_transit_paused_set(Elm_Transit *transit, Eina_Bool paused) EINA_ARG_NONNULL(1);
26972
26973    /**
26974     * Get the value of paused status.
26975     *
26976     * @see elm_transit_paused_set()
26977     *
26978     * @note @p transit can not be NULL
26979     *
26980     * @param transit The transit object.
26981     * @return EINA_TRUE means transition is paused. If @p transit is NULL
26982     * EINA_FALSE is returned
26983     *
26984     * @ingroup Transit
26985     */
26986    EAPI Eina_Bool                   elm_transit_paused_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
26987
26988    /**
26989     * Get the time progression of the animation (a double value between 0.0 and 1.0).
26990     *
26991     * The value returned is a fraction (current time / total time). It
26992     * represents the progression position relative to the total.
26993     *
26994     * @note @p transit can not be NULL
26995     *
26996     * @param transit The transit object.
26997     *
26998     * @return The time progression value. If @p transit is NULL
26999     * 0 is returned
27000     *
27001     * @ingroup Transit
27002     */
27003    EAPI double                      elm_transit_progress_value_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27004
27005    /**
27006     * Makes the chain relationship between two transits.
27007     *
27008     * @note @p transit can not be NULL. Transit would have multiple chain transits.
27009     * @note @p chain_transit can not be NULL. Chain transits could be chained to the only one transit.
27010     *
27011     * @param transit The transit object.
27012     * @param chain_transit The chain transit object. This transit will be operated
27013     *        after transit is done.
27014     *
27015     * This function adds @p chain_transit transition to a chain after the @p
27016     * transit, and will be started as soon as @p transit ends. See @ref
27017     * transit_example_02_explained for a full example.
27018     *
27019     * @ingroup Transit
27020     */
27021    EAPI void                        elm_transit_chain_transit_add(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1, 2);
27022
27023    /**
27024     * Cut off the chain relationship between two transits.
27025     *
27026     * @note @p transit can not be NULL. Transit would have the chain relationship with @p chain transit.
27027     * @note @p chain_transit can not be NULL. Chain transits should be chained to the @p transit.
27028     *
27029     * @param transit The transit object.
27030     * @param chain_transit The chain transit object.
27031     *
27032     * This function remove the @p chain_transit transition from the @p transit.
27033     *
27034     * @ingroup Transit
27035     */
27036    EAPI void                        elm_transit_chain_transit_del(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1,2);
27037
27038    /**
27039     * Get the current chain transit list.
27040     *
27041     * @note @p transit can not be NULL.
27042     *
27043     * @param transit The transit object.
27044     * @return chain transit list.
27045     *
27046     * @ingroup Transit
27047     */
27048    EAPI Eina_List                  *elm_transit_chain_transits_get(const Elm_Transit *transit);
27049
27050    /**
27051     * Add the Resizing Effect to Elm_Transit.
27052     *
27053     * @note This API is one of the facades. It creates resizing effect context
27054     * and add it's required APIs to elm_transit_effect_add.
27055     *
27056     * @see elm_transit_effect_add()
27057     *
27058     * @param transit Transit object.
27059     * @param from_w Object width size when effect begins.
27060     * @param from_h Object height size when effect begins.
27061     * @param to_w Object width size when effect ends.
27062     * @param to_h Object height size when effect ends.
27063     * @return Resizing effect context data.
27064     *
27065     * @ingroup Transit
27066     */
27067    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);
27068
27069    /**
27070     * Add the Translation Effect to Elm_Transit.
27071     *
27072     * @note This API is one of the facades. It creates translation effect context
27073     * and add it's required APIs to elm_transit_effect_add.
27074     *
27075     * @see elm_transit_effect_add()
27076     *
27077     * @param transit Transit object.
27078     * @param from_dx X Position variation when effect begins.
27079     * @param from_dy Y Position variation when effect begins.
27080     * @param to_dx X Position variation when effect ends.
27081     * @param to_dy Y Position variation when effect ends.
27082     * @return Translation effect context data.
27083     *
27084     * @ingroup Transit
27085     * @warning It is highly recommended just create a transit with this effect when
27086     * the window that the objects of the transit belongs has already been created.
27087     * This is because this effect needs the geometry information about the objects,
27088     * and if the window was not created yet, it can get a wrong information.
27089     */
27090    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);
27091
27092    /**
27093     * Add the Zoom Effect to Elm_Transit.
27094     *
27095     * @note This API is one of the facades. It creates zoom effect context
27096     * and add it's required APIs to elm_transit_effect_add.
27097     *
27098     * @see elm_transit_effect_add()
27099     *
27100     * @param transit Transit object.
27101     * @param from_rate Scale rate when effect begins (1 is current rate).
27102     * @param to_rate Scale rate when effect ends.
27103     * @return Zoom effect context data.
27104     *
27105     * @ingroup Transit
27106     * @warning It is highly recommended just create a transit with this effect when
27107     * the window that the objects of the transit belongs has already been created.
27108     * This is because this effect needs the geometry information about the objects,
27109     * and if the window was not created yet, it can get a wrong information.
27110     */
27111    EAPI Elm_Transit_Effect *elm_transit_effect_zoom_add(Elm_Transit *transit, float from_rate, float to_rate);
27112
27113    /**
27114     * Add the Flip Effect to Elm_Transit.
27115     *
27116     * @note This API is one of the facades. It creates flip effect context
27117     * and add it's required APIs to elm_transit_effect_add.
27118     * @note This effect is applied to each pair of objects in the order they are listed
27119     * in the transit list of objects. The first object in the pair will be the
27120     * "front" object and the second will be the "back" object.
27121     *
27122     * @see elm_transit_effect_add()
27123     *
27124     * @param transit Transit object.
27125     * @param axis Flipping Axis(X or Y).
27126     * @param cw Flipping Direction. EINA_TRUE is clock-wise.
27127     * @return Flip effect context data.
27128     *
27129     * @ingroup Transit
27130     * @warning It is highly recommended just create a transit with this effect when
27131     * the window that the objects of the transit belongs has already been created.
27132     * This is because this effect needs the geometry information about the objects,
27133     * and if the window was not created yet, it can get a wrong information.
27134     */
27135    EAPI Elm_Transit_Effect *elm_transit_effect_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
27136
27137    /**
27138     * Add the Resizable Flip Effect to Elm_Transit.
27139     *
27140     * @note This API is one of the facades. It creates resizable flip effect context
27141     * and add it's required APIs to elm_transit_effect_add.
27142     * @note This effect is applied to each pair of objects in the order they are listed
27143     * in the transit list of objects. The first object in the pair will be the
27144     * "front" object and the second will be the "back" object.
27145     *
27146     * @see elm_transit_effect_add()
27147     *
27148     * @param transit Transit object.
27149     * @param axis Flipping Axis(X or Y).
27150     * @param cw Flipping Direction. EINA_TRUE is clock-wise.
27151     * @return Resizable flip effect context data.
27152     *
27153     * @ingroup Transit
27154     * @warning It is highly recommended just create a transit with this effect when
27155     * the window that the objects of the transit belongs has already been created.
27156     * This is because this effect needs the geometry information about the objects,
27157     * and if the window was not created yet, it can get a wrong information.
27158     */
27159    EAPI Elm_Transit_Effect *elm_transit_effect_resizable_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
27160
27161    /**
27162     * Add the Wipe Effect to Elm_Transit.
27163     *
27164     * @note This API is one of the facades. It creates wipe effect context
27165     * and add it's required APIs to elm_transit_effect_add.
27166     *
27167     * @see elm_transit_effect_add()
27168     *
27169     * @param transit Transit object.
27170     * @param type Wipe type. Hide or show.
27171     * @param dir Wipe Direction.
27172     * @return Wipe effect context data.
27173     *
27174     * @ingroup Transit
27175     * @warning It is highly recommended just create a transit with this effect when
27176     * the window that the objects of the transit belongs has already been created.
27177     * This is because this effect needs the geometry information about the objects,
27178     * and if the window was not created yet, it can get a wrong information.
27179     */
27180    EAPI Elm_Transit_Effect *elm_transit_effect_wipe_add(Elm_Transit *transit, Elm_Transit_Effect_Wipe_Type type, Elm_Transit_Effect_Wipe_Dir dir);
27181
27182    /**
27183     * Add the Color Effect to Elm_Transit.
27184     *
27185     * @note This API is one of the facades. It creates color effect context
27186     * and add it's required APIs to elm_transit_effect_add.
27187     *
27188     * @see elm_transit_effect_add()
27189     *
27190     * @param transit        Transit object.
27191     * @param  from_r        RGB R when effect begins.
27192     * @param  from_g        RGB G when effect begins.
27193     * @param  from_b        RGB B when effect begins.
27194     * @param  from_a        RGB A when effect begins.
27195     * @param  to_r          RGB R when effect ends.
27196     * @param  to_g          RGB G when effect ends.
27197     * @param  to_b          RGB B when effect ends.
27198     * @param  to_a          RGB A when effect ends.
27199     * @return               Color effect context data.
27200     *
27201     * @ingroup Transit
27202     */
27203    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);
27204
27205    /**
27206     * Add the Fade Effect to Elm_Transit.
27207     *
27208     * @note This API is one of the facades. It creates fade effect context
27209     * and add it's required APIs to elm_transit_effect_add.
27210     * @note This effect is applied to each pair of objects in the order they are listed
27211     * in the transit list of objects. The first object in the pair will be the
27212     * "before" object and the second will be the "after" object.
27213     *
27214     * @see elm_transit_effect_add()
27215     *
27216     * @param transit Transit object.
27217     * @return Fade effect context data.
27218     *
27219     * @ingroup Transit
27220     * @warning It is highly recommended just create a transit with this effect when
27221     * the window that the objects of the transit belongs has already been created.
27222     * This is because this effect needs the color information about the objects,
27223     * and if the window was not created yet, it can get a wrong information.
27224     */
27225    EAPI Elm_Transit_Effect *elm_transit_effect_fade_add(Elm_Transit *transit);
27226
27227    /**
27228     * Add the Blend Effect to Elm_Transit.
27229     *
27230     * @note This API is one of the facades. It creates blend effect context
27231     * and add it's required APIs to elm_transit_effect_add.
27232     * @note This effect is applied to each pair of objects in the order they are listed
27233     * in the transit list of objects. The first object in the pair will be the
27234     * "before" object and the second will be the "after" object.
27235     *
27236     * @see elm_transit_effect_add()
27237     *
27238     * @param transit Transit object.
27239     * @return Blend effect context data.
27240     *
27241     * @ingroup Transit
27242     * @warning It is highly recommended just create a transit with this effect when
27243     * the window that the objects of the transit belongs has already been created.
27244     * This is because this effect needs the color information about the objects,
27245     * and if the window was not created yet, it can get a wrong information.
27246     */
27247    EAPI Elm_Transit_Effect *elm_transit_effect_blend_add(Elm_Transit *transit);
27248
27249    /**
27250     * Add the Rotation Effect to Elm_Transit.
27251     *
27252     * @note This API is one of the facades. It creates rotation effect context
27253     * and add it's required APIs to elm_transit_effect_add.
27254     *
27255     * @see elm_transit_effect_add()
27256     *
27257     * @param transit Transit object.
27258     * @param from_degree Degree when effect begins.
27259     * @param to_degree Degree when effect is ends.
27260     * @return Rotation effect context data.
27261     *
27262     * @ingroup Transit
27263     * @warning It is highly recommended just create a transit with this effect when
27264     * the window that the objects of the transit belongs has already been created.
27265     * This is because this effect needs the geometry information about the objects,
27266     * and if the window was not created yet, it can get a wrong information.
27267     */
27268    EAPI Elm_Transit_Effect *elm_transit_effect_rotation_add(Elm_Transit *transit, float from_degree, float to_degree);
27269
27270    /**
27271     * Add the ImageAnimation Effect to Elm_Transit.
27272     *
27273     * @note This API is one of the facades. It creates image animation effect context
27274     * and add it's required APIs to elm_transit_effect_add.
27275     * The @p images parameter is a list images paths. This list and
27276     * its contents will be deleted at the end of the effect by
27277     * elm_transit_effect_image_animation_context_free() function.
27278     *
27279     * Example:
27280     * @code
27281     * char buf[PATH_MAX];
27282     * Eina_List *images = NULL;
27283     * Elm_Transit *transi = elm_transit_add();
27284     *
27285     * snprintf(buf, sizeof(buf), "%s/images/icon_11.png", PACKAGE_DATA_DIR);
27286     * images = eina_list_append(images, eina_stringshare_add(buf));
27287     *
27288     * snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
27289     * images = eina_list_append(images, eina_stringshare_add(buf));
27290     * elm_transit_effect_image_animation_add(transi, images);
27291     *
27292     * @endcode
27293     *
27294     * @see elm_transit_effect_add()
27295     *
27296     * @param transit Transit object.
27297     * @param images Eina_List of images file paths. This list and
27298     * its contents will be deleted at the end of the effect by
27299     * elm_transit_effect_image_animation_context_free() function.
27300     * @return Image Animation effect context data.
27301     *
27302     * @ingroup Transit
27303     */
27304    EAPI Elm_Transit_Effect *elm_transit_effect_image_animation_add(Elm_Transit *transit, Eina_List *images);
27305    /**
27306     * @}
27307     */
27308
27309    /* Store */
27310    typedef struct _Elm_Store                      Elm_Store;
27311    typedef struct _Elm_Store_DBsystem             Elm_Store_DBsystem;
27312    typedef struct _Elm_Store_Filesystem           Elm_Store_Filesystem;
27313    typedef struct _Elm_Store_Item                 Elm_Store_Item;
27314    typedef struct _Elm_Store_Item_DBsystem        Elm_Store_Item_DBsystem;
27315    typedef struct _Elm_Store_Item_Filesystem      Elm_Store_Item_Filesystem;
27316    typedef struct _Elm_Store_Item_Info            Elm_Store_Item_Info;
27317    typedef struct _Elm_Store_Item_Info_Filesystem Elm_Store_Item_Info_Filesystem;
27318    typedef struct _Elm_Store_Item_Mapping         Elm_Store_Item_Mapping;
27319    typedef struct _Elm_Store_Item_Mapping_Empty   Elm_Store_Item_Mapping_Empty;
27320    typedef struct _Elm_Store_Item_Mapping_Icon    Elm_Store_Item_Mapping_Icon;
27321    typedef struct _Elm_Store_Item_Mapping_Photo   Elm_Store_Item_Mapping_Photo;
27322    typedef struct _Elm_Store_Item_Mapping_Custom  Elm_Store_Item_Mapping_Custom;
27323
27324    typedef Eina_Bool (*Elm_Store_Item_List_Cb) (void *data, Elm_Store_Item_Info *info);
27325    typedef void      (*Elm_Store_Item_Fetch_Cb) (void *data, Elm_Store_Item *sti, Elm_Store_Item_Info *info);
27326    typedef void      (*Elm_Store_Item_Unfetch_Cb) (void *data, Elm_Store_Item *sti, Elm_Store_Item_Info *info);
27327    typedef void      (*Elm_Store_Item_Select_Cb) (void *data, Elm_Store_Item *sti);
27328    typedef int       (*Elm_Store_Item_Sort_Cb) (void *data, Elm_Store_Item_Info *info1, Elm_Store_Item_Info *info2);
27329    typedef void      (*Elm_Store_Item_Free_Cb) (void *data, Elm_Store_Item_Info *info);
27330    typedef void     *(*Elm_Store_Item_Mapping_Cb) (void *data, Elm_Store_Item *sti, const char *part);
27331
27332    typedef enum
27333      {
27334         ELM_STORE_ITEM_MAPPING_NONE = 0,
27335         ELM_STORE_ITEM_MAPPING_LABEL, // const char * -> label
27336         ELM_STORE_ITEM_MAPPING_STATE, // Eina_Bool -> state
27337         ELM_STORE_ITEM_MAPPING_ICON, // char * -> icon path
27338         ELM_STORE_ITEM_MAPPING_PHOTO, // char * -> photo path
27339         ELM_STORE_ITEM_MAPPING_CUSTOM, // item->custom(it->data, it, part) -> void * (-> any)
27340         // can add more here as needed by common apps
27341         ELM_STORE_ITEM_MAPPING_LAST
27342      } Elm_Store_Item_Mapping_Type;
27343
27344    struct _Elm_Store_Item_Mapping_Icon
27345      {
27346         // FIXME: allow edje file icons
27347         int                   w, h;
27348         Elm_Icon_Lookup_Order lookup_order;
27349         Eina_Bool             standard_name : 1;
27350         Eina_Bool             no_scale : 1;
27351         Eina_Bool             smooth : 1;
27352         Eina_Bool             scale_up : 1;
27353         Eina_Bool             scale_down : 1;
27354      };
27355
27356    struct _Elm_Store_Item_Mapping_Empty
27357      {
27358         Eina_Bool             dummy;
27359      };
27360
27361    struct _Elm_Store_Item_Mapping_Photo
27362      {
27363         int                   size;
27364      };
27365
27366    struct _Elm_Store_Item_Mapping_Custom
27367      {
27368         Elm_Store_Item_Mapping_Cb func;
27369      };
27370
27371    struct _Elm_Store_Item_Mapping
27372      {
27373         Elm_Store_Item_Mapping_Type     type;
27374         const char                     *part;
27375         int                             offset;
27376         union
27377           {
27378              Elm_Store_Item_Mapping_Empty  empty;
27379              Elm_Store_Item_Mapping_Icon   icon;
27380              Elm_Store_Item_Mapping_Photo  photo;
27381              Elm_Store_Item_Mapping_Custom custom;
27382              // add more types here
27383           } details;
27384      };
27385
27386    struct _Elm_Store_Item_Info
27387      {
27388         int                           index;
27389         int                           item_type;
27390         int                           group_index;
27391         Eina_Bool                     rec_item;
27392         int                           pre_group_index;
27393
27394         Elm_Genlist_Item_Class       *item_class;
27395         const Elm_Store_Item_Mapping *mapping;
27396         void                         *data;
27397         char                         *sort_id;
27398      };
27399
27400    struct _Elm_Store_Item_Info_Filesystem
27401      {
27402         Elm_Store_Item_Info  base;
27403         char                *path;
27404      };
27405
27406 #define ELM_STORE_ITEM_MAPPING_END { ELM_STORE_ITEM_MAPPING_NONE, NULL, 0, { .empty = { EINA_TRUE } } }
27407 #define ELM_STORE_ITEM_MAPPING_OFFSET(st, it) offsetof(st, it)
27408
27409    EAPI Elm_Store              *elm_store_dbsystem_new(void);
27410    EAPI void                    elm_store_item_count_set(Elm_Store *st, int count) EINA_ARG_NONNULL(1);
27411    EAPI void                    elm_store_item_select_func_set(Elm_Store *st, Elm_Store_Item_Select_Cb func, const void *data) EINA_ARG_NONNULL(1);
27412    EAPI void                    elm_store_item_sort_func_set(Elm_Store *st, Elm_Store_Item_Sort_Cb func, const void *data) EINA_ARG_NONNULL(1);
27413    EAPI void                    elm_store_item_free_func_set(Elm_Store *st, Elm_Store_Item_Free_Cb func, const void *data) EINA_ARG_NONNULL(1);
27414    EAPI int                     elm_store_item_data_index_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27415    EAPI void                   *elm_store_dbsystem_db_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27416    EAPI void                    elm_store_dbsystem_db_set(Elm_Store *store, void *pDB) EINA_ARG_NONNULL(1);
27417    EAPI int                     elm_store_item_index_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27418    EAPI Elm_Store_Item         *elm_store_item_add(Elm_Store *st, Elm_Store_Item_Info *info) EINA_ARG_NONNULL(1);
27419    EAPI void                    elm_store_item_update(Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27420    EAPI void                    elm_store_visible_items_update(Elm_Store *st) EINA_ARG_NONNULL(1);
27421    EAPI void                    elm_store_item_del(Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27422    EAPI void                    elm_store_free(Elm_Store *st);
27423    EAPI Elm_Store              *elm_store_filesystem_new(void);
27424    EAPI void                    elm_store_filesystem_directory_set(Elm_Store *st, const char *dir) EINA_ARG_NONNULL(1);
27425    EAPI const char             *elm_store_filesystem_directory_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
27426    EAPI const char             *elm_store_item_filesystem_path_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27427
27428    EAPI void                    elm_store_target_genlist_set(Elm_Store *st, Evas_Object *obj) EINA_ARG_NONNULL(1);
27429
27430    EAPI void                    elm_store_cache_set(Elm_Store *st, int max) EINA_ARG_NONNULL(1);
27431    EAPI int                     elm_store_cache_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
27432    EAPI void                    elm_store_list_func_set(Elm_Store *st, Elm_Store_Item_List_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
27433    EAPI void                    elm_store_fetch_func_set(Elm_Store *st, Elm_Store_Item_Fetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
27434    EAPI void                    elm_store_fetch_thread_set(Elm_Store *st, Eina_Bool use_thread) EINA_ARG_NONNULL(1);
27435    EAPI Eina_Bool               elm_store_fetch_thread_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
27436
27437    EAPI void                    elm_store_unfetch_func_set(Elm_Store *st, Elm_Store_Item_Unfetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
27438    EAPI void                    elm_store_sorted_set(Elm_Store *st, Eina_Bool sorted) EINA_ARG_NONNULL(1);
27439    EAPI Eina_Bool               elm_store_sorted_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
27440    EAPI void                    elm_store_item_data_set(Elm_Store_Item *sti, void *data) EINA_ARG_NONNULL(1);
27441    EAPI void                   *elm_store_item_data_get(Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27442    EAPI const Elm_Store        *elm_store_item_store_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27443    EAPI const Elm_Genlist_Item *elm_store_item_genlist_item_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27444
27445    /**
27446     * @defgroup SegmentControl SegmentControl
27447     * @ingroup Elementary
27448     *
27449     * @image html img/widget/segment_control/preview-00.png
27450     * @image latex img/widget/segment_control/preview-00.eps width=\textwidth
27451     *
27452     * @image html img/segment_control.png
27453     * @image latex img/segment_control.eps width=\textwidth
27454     *
27455     * Segment control widget is a horizontal control made of multiple segment
27456     * items, each segment item functioning similar to discrete two state button.
27457     * A segment control groups the items together and provides compact
27458     * single button with multiple equal size segments.
27459     *
27460     * Segment item size is determined by base widget
27461     * size and the number of items added.
27462     * Only one segment item can be at selected state. A segment item can display
27463     * combination of Text and any Evas_Object like Images or other widget.
27464     *
27465     * Smart callbacks one can listen to:
27466     * - "changed" - When the user clicks on a segment item which is not
27467     *   previously selected and get selected. The event_info parameter is the
27468     *   segment item pointer.
27469     *
27470     * Available styles for it:
27471     * - @c "default"
27472     *
27473     * Here is an example on its usage:
27474     * @li @ref segment_control_example
27475     */
27476
27477    /**
27478     * @addtogroup SegmentControl
27479     * @{
27480     */
27481
27482    typedef struct _Elm_Segment_Item Elm_Segment_Item; /**< Item handle for a segment control widget. */
27483
27484    /**
27485     * Add a new segment control widget to the given parent Elementary
27486     * (container) object.
27487     *
27488     * @param parent The parent object.
27489     * @return a new segment control widget handle or @c NULL, on errors.
27490     *
27491     * This function inserts a new segment control widget on the canvas.
27492     *
27493     * @ingroup SegmentControl
27494     */
27495    EAPI Evas_Object      *elm_segment_control_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
27496
27497    /**
27498     * Append a new item to the segment control object.
27499     *
27500     * @param obj The segment control object.
27501     * @param icon The icon object to use for the left side of the item. An
27502     * icon can be any Evas object, but usually it is an icon created
27503     * with elm_icon_add().
27504     * @param label The label of the item.
27505     *        Note that, NULL is different from empty string "".
27506     * @return The created item or @c NULL upon failure.
27507     *
27508     * A new item will be created and appended to the segment control, i.e., will
27509     * be set as @b last item.
27510     *
27511     * If it should be inserted at another position,
27512     * elm_segment_control_item_insert_at() should be used instead.
27513     *
27514     * Items created with this function can be deleted with function
27515     * elm_segment_control_item_del() or elm_segment_control_item_del_at().
27516     *
27517     * @note @p label set to @c NULL is different from empty string "".
27518     * If an item
27519     * only has icon, it will be displayed bigger and centered. If it has
27520     * icon and label, even that an empty string, icon will be smaller and
27521     * positioned at left.
27522     *
27523     * Simple example:
27524     * @code
27525     * sc = elm_segment_control_add(win);
27526     * ic = elm_icon_add(win);
27527     * elm_icon_file_set(ic, "path/to/image", NULL);
27528     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
27529     * elm_segment_control_item_add(sc, ic, "label");
27530     * evas_object_show(sc);
27531     * @endcode
27532     *
27533     * @see elm_segment_control_item_insert_at()
27534     * @see elm_segment_control_item_del()
27535     *
27536     * @ingroup SegmentControl
27537     */
27538    EAPI Elm_Segment_Item *elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon, const char *label) EINA_ARG_NONNULL(1);
27539
27540    /**
27541     * Insert a new item to the segment control object at specified position.
27542     *
27543     * @param obj The segment control object.
27544     * @param icon The icon object to use for the left side of the item. An
27545     * icon can be any Evas object, but usually it is an icon created
27546     * with elm_icon_add().
27547     * @param label The label of the item.
27548     * @param index Item position. Value should be between 0 and items count.
27549     * @return The created item or @c NULL upon failure.
27550
27551     * Index values must be between @c 0, when item will be prepended to
27552     * segment control, and items count, that can be get with
27553     * elm_segment_control_item_count_get(), case when item will be appended
27554     * to segment control, just like elm_segment_control_item_add().
27555     *
27556     * Items created with this function can be deleted with function
27557     * elm_segment_control_item_del() or elm_segment_control_item_del_at().
27558     *
27559     * @note @p label set to @c NULL is different from empty string "".
27560     * If an item
27561     * only has icon, it will be displayed bigger and centered. If it has
27562     * icon and label, even that an empty string, icon will be smaller and
27563     * positioned at left.
27564     *
27565     * @see elm_segment_control_item_add()
27566     * @see elm_segment_control_item_count_get()
27567     * @see elm_segment_control_item_del()
27568     *
27569     * @ingroup SegmentControl
27570     */
27571    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);
27572
27573    /**
27574     * Remove a segment control item from its parent, deleting it.
27575     *
27576     * @param it The item to be removed.
27577     *
27578     * Items can be added with elm_segment_control_item_add() or
27579     * elm_segment_control_item_insert_at().
27580     *
27581     * @ingroup SegmentControl
27582     */
27583    EAPI void              elm_segment_control_item_del(Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
27584
27585    /**
27586     * Remove a segment control item at given index from its parent,
27587     * deleting it.
27588     *
27589     * @param obj The segment control object.
27590     * @param index The position of the segment control item to be deleted.
27591     *
27592     * Items can be added with elm_segment_control_item_add() or
27593     * elm_segment_control_item_insert_at().
27594     *
27595     * @ingroup SegmentControl
27596     */
27597    EAPI void              elm_segment_control_item_del_at(Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
27598
27599    /**
27600     * Get the Segment items count from segment control.
27601     *
27602     * @param obj The segment control object.
27603     * @return Segment items count.
27604     *
27605     * It will just return the number of items added to segment control @p obj.
27606     *
27607     * @ingroup SegmentControl
27608     */
27609    EAPI int               elm_segment_control_item_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27610
27611    /**
27612     * Get the item placed at specified index.
27613     *
27614     * @param obj The segment control object.
27615     * @param index The index of the segment item.
27616     * @return The segment control item or @c NULL on failure.
27617     *
27618     * Index is the position of an item in segment control widget. Its
27619     * range is from @c 0 to <tt> count - 1 </tt>.
27620     * Count is the number of items, that can be get with
27621     * elm_segment_control_item_count_get().
27622     *
27623     * @ingroup SegmentControl
27624     */
27625    EAPI Elm_Segment_Item *elm_segment_control_item_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
27626
27627    /**
27628     * Get the label of item.
27629     *
27630     * @param obj The segment control object.
27631     * @param index The index of the segment item.
27632     * @return The label of the item at @p index.
27633     *
27634     * The return value is a pointer to the label associated to the item when
27635     * it was created, with function elm_segment_control_item_add(), or later
27636     * with function elm_segment_control_item_label_set. If no label
27637     * was passed as argument, it will return @c NULL.
27638     *
27639     * @see elm_segment_control_item_label_set() for more details.
27640     * @see elm_segment_control_item_add()
27641     *
27642     * @ingroup SegmentControl
27643     */
27644    EAPI const char       *elm_segment_control_item_label_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
27645
27646    /**
27647     * Set the label of item.
27648     *
27649     * @param it The item of segment control.
27650     * @param text The label of item.
27651     *
27652     * The label to be displayed by the item.
27653     * Label will be at right of the icon (if set).
27654     *
27655     * If a label was passed as argument on item creation, with function
27656     * elm_control_segment_item_add(), it will be already
27657     * displayed by the item.
27658     *
27659     * @see elm_segment_control_item_label_get()
27660     * @see elm_segment_control_item_add()
27661     *
27662     * @ingroup SegmentControl
27663     */
27664    EAPI void              elm_segment_control_item_label_set(Elm_Segment_Item* it, const char* label) EINA_ARG_NONNULL(1);
27665
27666    /**
27667     * Get the icon associated to the item.
27668     *
27669     * @param obj The segment control object.
27670     * @param index The index of the segment item.
27671     * @return The left side icon associated to the item at @p index.
27672     *
27673     * The return value is a pointer to the icon associated to the item when
27674     * it was created, with function elm_segment_control_item_add(), or later
27675     * with function elm_segment_control_item_icon_set(). If no icon
27676     * was passed as argument, it will return @c NULL.
27677     *
27678     * @see elm_segment_control_item_add()
27679     * @see elm_segment_control_item_icon_set()
27680     *
27681     * @ingroup SegmentControl
27682     */
27683    EAPI Evas_Object      *elm_segment_control_item_icon_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
27684
27685    /**
27686     * Set the icon associated to the item.
27687     *
27688     * @param it The segment control item.
27689     * @param icon The icon object to associate with @p it.
27690     *
27691     * The icon object to use at left side of the item. An
27692     * icon can be any Evas object, but usually it is an icon created
27693     * with elm_icon_add().
27694     *
27695     * Once the icon object is set, a previously set one will be deleted.
27696     * @warning Setting the same icon for two items will cause the icon to
27697     * dissapear from the first item.
27698     *
27699     * If an icon was passed as argument on item creation, with function
27700     * elm_segment_control_item_add(), it will be already
27701     * associated to the item.
27702     *
27703     * @see elm_segment_control_item_add()
27704     * @see elm_segment_control_item_icon_get()
27705     *
27706     * @ingroup SegmentControl
27707     */
27708    EAPI void              elm_segment_control_item_icon_set(Elm_Segment_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
27709
27710    /**
27711     * Get the index of an item.
27712     *
27713     * @param it The segment control item.
27714     * @return The position of item in segment control widget.
27715     *
27716     * Index is the position of an item in segment control widget. Its
27717     * range is from @c 0 to <tt> count - 1 </tt>.
27718     * Count is the number of items, that can be get with
27719     * elm_segment_control_item_count_get().
27720     *
27721     * @ingroup SegmentControl
27722     */
27723    EAPI int               elm_segment_control_item_index_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
27724
27725    /**
27726     * Get the base object of the item.
27727     *
27728     * @param it The segment control item.
27729     * @return The base object associated with @p it.
27730     *
27731     * Base object is the @c Evas_Object that represents that item.
27732     *
27733     * @ingroup SegmentControl
27734     */
27735    EAPI Evas_Object      *elm_segment_control_item_object_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
27736
27737    /**
27738     * Get the selected item.
27739     *
27740     * @param obj The segment control object.
27741     * @return The selected item or @c NULL if none of segment items is
27742     * selected.
27743     *
27744     * The selected item can be unselected with function
27745     * elm_segment_control_item_selected_set().
27746     *
27747     * The selected item always will be highlighted on segment control.
27748     *
27749     * @ingroup SegmentControl
27750     */
27751    EAPI Elm_Segment_Item *elm_segment_control_item_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27752
27753    /**
27754     * Set the selected state of an item.
27755     *
27756     * @param it The segment control item
27757     * @param select The selected state
27758     *
27759     * This sets the selected state of the given item @p it.
27760     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
27761     *
27762     * If a new item is selected the previosly selected will be unselected.
27763     * Previoulsy selected item can be get with function
27764     * elm_segment_control_item_selected_get().
27765     *
27766     * The selected item always will be highlighted on segment control.
27767     *
27768     * @see elm_segment_control_item_selected_get()
27769     *
27770     * @ingroup SegmentControl
27771     */
27772    EAPI void              elm_segment_control_item_selected_set(Elm_Segment_Item *it, Eina_Bool select) EINA_ARG_NONNULL(1);
27773
27774    /**
27775     * @}
27776     */
27777
27778    /**
27779     * @defgroup Grid Grid
27780     *
27781     * The grid is a grid layout widget that lays out a series of children as a
27782     * fixed "grid" of widgets using a given percentage of the grid width and
27783     * height each using the child object.
27784     *
27785     * The Grid uses a "Virtual resolution" that is stretched to fill the grid
27786     * widgets size itself. The default is 100 x 100, so that means the
27787     * position and sizes of children will effectively be percentages (0 to 100)
27788     * of the width or height of the grid widget
27789     *
27790     * @{
27791     */
27792
27793    /**
27794     * Add a new grid to the parent
27795     *
27796     * @param parent The parent object
27797     * @return The new object or NULL if it cannot be created
27798     *
27799     * @ingroup Grid
27800     */
27801    EAPI Evas_Object *elm_grid_add(Evas_Object *parent);
27802
27803    /**
27804     * Set the virtual size of the grid
27805     *
27806     * @param obj The grid object
27807     * @param w The virtual width of the grid
27808     * @param h The virtual height of the grid
27809     *
27810     * @ingroup Grid
27811     */
27812    EAPI void         elm_grid_size_set(Evas_Object *obj, int w, int h);
27813
27814    /**
27815     * Get the virtual size of the grid
27816     *
27817     * @param obj The grid object
27818     * @param w Pointer to integer to store the virtual width of the grid
27819     * @param h Pointer to integer to store the virtual height of the grid
27820     *
27821     * @ingroup Grid
27822     */
27823    EAPI void         elm_grid_size_get(Evas_Object *obj, int *w, int *h);
27824
27825    /**
27826     * Pack child at given position and size
27827     *
27828     * @param obj The grid object
27829     * @param subobj The child to pack
27830     * @param x The virtual x coord at which to pack it
27831     * @param y The virtual y coord at which to pack it
27832     * @param w The virtual width at which to pack it
27833     * @param h The virtual height at which to pack it
27834     *
27835     * @ingroup Grid
27836     */
27837    EAPI void         elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h);
27838
27839    /**
27840     * Unpack a child from a grid object
27841     *
27842     * @param obj The grid object
27843     * @param subobj The child to unpack
27844     *
27845     * @ingroup Grid
27846     */
27847    EAPI void         elm_grid_unpack(Evas_Object *obj, Evas_Object *subobj);
27848
27849    /**
27850     * Faster way to remove all child objects from a grid object.
27851     *
27852     * @param obj The grid object
27853     * @param clear If true, it will delete just removed children
27854     *
27855     * @ingroup Grid
27856     */
27857    EAPI void         elm_grid_clear(Evas_Object *obj, Eina_Bool clear);
27858
27859    /**
27860     * Set packing of an existing child at to position and size
27861     *
27862     * @param subobj The child to set packing of
27863     * @param x The virtual x coord at which to pack it
27864     * @param y The virtual y coord at which to pack it
27865     * @param w The virtual width at which to pack it
27866     * @param h The virtual height at which to pack it
27867     *
27868     * @ingroup Grid
27869     */
27870    EAPI void         elm_grid_pack_set(Evas_Object *subobj, int x, int y, int w, int h);
27871
27872    /**
27873     * get packing of a child
27874     *
27875     * @param subobj The child to query
27876     * @param x Pointer to integer to store the virtual x coord
27877     * @param y Pointer to integer to store the virtual y coord
27878     * @param w Pointer to integer to store the virtual width
27879     * @param h Pointer to integer to store the virtual height
27880     *
27881     * @ingroup Grid
27882     */
27883    EAPI void         elm_grid_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h);
27884
27885    /**
27886     * @}
27887     */
27888
27889    EAPI Evas_Object *elm_genscroller_add(Evas_Object *parent);
27890    EAPI void         elm_genscroller_world_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h);
27891
27892    /**
27893     * @defgroup Video Video
27894     *
27895     * @addtogroup Video
27896     * @{
27897     *
27898     * Elementary comes with two object that help design application that need
27899     * to display video. The main one, Elm_Video, display a video by using Emotion.
27900     * It does embedded the video inside an Edje object, so you can do some
27901     * animation depending on the video state change. It does also implement a
27902     * ressource management policy to remove this burden from the application writer.
27903     *
27904     * The second one, Elm_Player is a video player that need to be linked with and Elm_Video.
27905     * It take care of updating its content according to Emotion event and provide a
27906     * way to theme itself. It also does automatically raise the priority of the
27907     * linked Elm_Video so it will use the video decoder if available. It also does
27908     * activate the remember function on the linked Elm_Video object.
27909     *
27910     * Signals that you can add callback for are :
27911     *
27912     * "forward,clicked" - the user clicked the forward button.
27913     * "info,clicked" - the user clicked the info button.
27914     * "next,clicked" - the user clicked the next button.
27915     * "pause,clicked" - the user clicked the pause button.
27916     * "play,clicked" - the user clicked the play button.
27917     * "prev,clicked" - the user clicked the prev button.
27918     * "rewind,clicked" - the user clicked the rewind button.
27919     * "stop,clicked" - the user clicked the stop button.
27920     * 
27921     * To set the video of the player, you can use elm_object_content_set() API.
27922     * 
27923     */
27924
27925    /**
27926     * @brief Add a new Elm_Player object to the given parent Elementary (container) object.
27927     *
27928     * @param parent The parent object
27929     * @return a new player widget handle or @c NULL, on errors.
27930     *
27931     * This function inserts a new player widget on the canvas.
27932     *
27933     * @see elm_object_content_set()
27934     *
27935     * @ingroup Video
27936     */
27937    EAPI Evas_Object *elm_player_add(Evas_Object *parent);
27938
27939    /**
27940     * @brief Link a Elm_Payer with an Elm_Video object.
27941     *
27942     * @param player the Elm_Player object.
27943     * @param video The Elm_Video object.
27944     *
27945     * This mean that action on the player widget will affect the
27946     * video object and the state of the video will be reflected in
27947     * the player itself.
27948     *
27949     * @see elm_player_add()
27950     * @see elm_video_add()
27951     *
27952     * @ingroup Video
27953     */
27954    EAPI void elm_player_video_set(Evas_Object *player, Evas_Object *video);
27955
27956    /**
27957     * @brief Add a new Elm_Video object to the given parent Elementary (container) object.
27958     *
27959     * @param parent The parent object
27960     * @return a new video widget handle or @c NULL, on errors.
27961     *
27962     * This function inserts a new video widget on the canvas.
27963     *
27964     * @seeelm_video_file_set()
27965     * @see elm_video_uri_set()
27966     *
27967     * @ingroup Video
27968     */
27969    EAPI Evas_Object *elm_video_add(Evas_Object *parent);
27970
27971    /**
27972     * @brief Define the file that will be the video source.
27973     *
27974     * @param video The video object to define the file for.
27975     * @param filename The file to target.
27976     *
27977     * This function will explicitly define a filename as a source
27978     * for the video of the Elm_Video object.
27979     *
27980     * @see elm_video_uri_set()
27981     * @see elm_video_add()
27982     * @see elm_player_add()
27983     *
27984     * @ingroup Video
27985     */
27986    EAPI void elm_video_file_set(Evas_Object *video, const char *filename);
27987
27988    /**
27989     * @brief Define the uri that will be the video source.
27990     *
27991     * @param video The video object to define the file for.
27992     * @param uri The uri to target.
27993     *
27994     * This function will define an uri as a source for the video of the
27995     * Elm_Video object. URI could be remote source of video, like http:// or local source
27996     * like for example WebCam who are most of the time v4l2:// (but that depend and
27997     * you should use Emotion API to request and list the available Webcam on your system).
27998     *
27999     * @see elm_video_file_set()
28000     * @see elm_video_add()
28001     * @see elm_player_add()
28002     *
28003     * @ingroup Video
28004     */
28005    EAPI void elm_video_uri_set(Evas_Object *video, const char *uri);
28006
28007    /**
28008     * @brief Get the underlying Emotion object.
28009     *
28010     * @param video The video object to proceed the request on.
28011     * @return the underlying Emotion object.
28012     *
28013     * @ingroup Video
28014     */
28015    EAPI Evas_Object *elm_video_emotion_get(const Evas_Object *video);
28016
28017    /**
28018     * @brief Start to play the video
28019     *
28020     * @param video The video object to proceed the request on.
28021     *
28022     * Start to play the video and cancel all suspend state.
28023     *
28024     * @ingroup Video
28025     */
28026    EAPI void elm_video_play(Evas_Object *video);
28027
28028    /**
28029     * @brief Pause the video
28030     *
28031     * @param video The video object to proceed the request on.
28032     *
28033     * Pause the video and start a timer to trigger suspend mode.
28034     *
28035     * @ingroup Video
28036     */
28037    EAPI void elm_video_pause(Evas_Object *video);
28038
28039    /**
28040     * @brief Stop the video
28041     *
28042     * @param video The video object to proceed the request on.
28043     *
28044     * Stop the video and put the emotion in deep sleep mode.
28045     *
28046     * @ingroup Video
28047     */
28048    EAPI void elm_video_stop(Evas_Object *video);
28049
28050    /**
28051     * @brief Is the video actually playing.
28052     *
28053     * @param video The video object to proceed the request on.
28054     * @return EINA_TRUE if the video is actually playing.
28055     *
28056     * You should consider watching event on the object instead of polling
28057     * the object state.
28058     *
28059     * @ingroup Video
28060     */
28061    EAPI Eina_Bool elm_video_is_playing(const Evas_Object *video);
28062
28063    /**
28064     * @brief Is it possible to seek inside the video.
28065     *
28066     * @param video The video object to proceed the request on.
28067     * @return EINA_TRUE if is possible to seek inside the video.
28068     *
28069     * @ingroup Video
28070     */
28071    EAPI Eina_Bool elm_video_is_seekable(const Evas_Object *video);
28072
28073    /**
28074     * @brief Is the audio muted.
28075     *
28076     * @param video The video object to proceed the request on.
28077     * @return EINA_TRUE if the audio is muted.
28078     *
28079     * @ingroup Video
28080     */
28081    EAPI Eina_Bool elm_video_audio_mute_get(const Evas_Object *video);
28082
28083    /**
28084     * @brief Change the mute state of the Elm_Video object.
28085     *
28086     * @param video The video object to proceed the request on.
28087     * @param mute The new mute state.
28088     *
28089     * @ingroup Video
28090     */
28091    EAPI void elm_video_audio_mute_set(Evas_Object *video, Eina_Bool mute);
28092
28093    /**
28094     * @brief Get the audio level of the current video.
28095     *
28096     * @param video The video object to proceed the request on.
28097     * @return the current audio level.
28098     *
28099     * @ingroup Video
28100     */
28101    EAPI double elm_video_audio_level_get(const Evas_Object *video);
28102
28103    /**
28104     * @brief Set the audio level of anElm_Video object.
28105     *
28106     * @param video The video object to proceed the request on.
28107     * @param volume The new audio volume.
28108     *
28109     * @ingroup Video
28110     */
28111    EAPI void elm_video_audio_level_set(Evas_Object *video, double volume);
28112
28113    EAPI double elm_video_play_position_get(const Evas_Object *video);
28114    EAPI void elm_video_play_position_set(Evas_Object *video, double position);
28115    EAPI double elm_video_play_length_get(const Evas_Object *video);
28116    EAPI void elm_video_remember_position_set(Evas_Object *video, Eina_Bool remember);
28117    EAPI Eina_Bool elm_video_remember_position_get(const Evas_Object *video);
28118    EAPI const char *elm_video_title_get(const Evas_Object *video);
28119    /**
28120     * @}
28121     */
28122
28123    // FIXME: incomplete - carousel. don't use this until this comment is removed
28124    typedef struct _Elm_Carousel_Item Elm_Carousel_Item;
28125    EAPI Evas_Object       *elm_carousel_add(Evas_Object *parent);
28126    EAPI Elm_Carousel_Item *elm_carousel_item_add(Evas_Object *obj, Evas_Object *icon, const char *label, Evas_Smart_Cb func, const void *data);
28127    EAPI void               elm_carousel_item_del(Elm_Carousel_Item *item);
28128    EAPI void               elm_carousel_item_select(Elm_Carousel_Item *item);
28129    /* smart callbacks called:
28130     * "clicked" - when the user clicks on a carousel item and becomes selected
28131     */
28132
28133    /* datefield */
28134
28135    typedef enum _Elm_Datefield_ItemType
28136      {
28137         ELM_DATEFIELD_YEAR = 0,
28138         ELM_DATEFIELD_MONTH,
28139         ELM_DATEFIELD_DATE,
28140         ELM_DATEFIELD_HOUR,
28141         ELM_DATEFIELD_MINUTE,
28142         ELM_DATEFIELD_AMPM
28143      } Elm_Datefield_ItemType;
28144
28145    EAPI Evas_Object *elm_datefield_add(Evas_Object *parent);
28146    EAPI void         elm_datefield_format_set(Evas_Object *obj, const char *fmt);
28147    EAPI char        *elm_datefield_format_get(const Evas_Object *obj);
28148    EAPI void         elm_datefield_item_enabled_set(Evas_Object *obj, Elm_Datefield_ItemType itemtype, Eina_Bool enable);
28149    EAPI Eina_Bool    elm_datefield_item_enabled_get(const Evas_Object *obj, Elm_Datefield_ItemType itemtype);
28150    EAPI void         elm_datefield_item_value_set(Evas_Object *obj, Elm_Datefield_ItemType itemtype, int value);
28151    EAPI int          elm_datefield_item_value_get(const Evas_Object *obj, Elm_Datefield_ItemType itemtype);
28152    EAPI void         elm_datefield_item_min_set(Evas_Object *obj, Elm_Datefield_ItemType itemtype, int value, Eina_Bool abs_limit);
28153    EAPI int          elm_datefield_item_min_get(const Evas_Object *obj, Elm_Datefield_ItemType itemtype);
28154    EAPI Eina_Bool    elm_datefield_item_min_is_absolute(const Evas_Object *obj, Elm_Datefield_ItemType itemtype);
28155    EAPI void         elm_datefield_item_max_set(Evas_Object *obj, Elm_Datefield_ItemType itemtype, int value, Eina_Bool abs_limit);
28156    EAPI int          elm_datefield_item_max_get(const Evas_Object *obj, Elm_Datefield_ItemType itemtype);
28157    EAPI Eina_Bool    elm_datefield_item_max_is_absolute(const Evas_Object *obj, Elm_Datefield_ItemType itemtype);
28158  
28159    /* smart callbacks called:
28160    * "changed" - when datefield value is changed, this signal is sent.
28161    */
28162
28163 ////////////////////// DEPRECATED ///////////////////////////////////
28164
28165    typedef enum _Elm_Datefield_Layout
28166      {
28167         ELM_DATEFIELD_LAYOUT_TIME,
28168         ELM_DATEFIELD_LAYOUT_DATE,
28169         ELM_DATEFIELD_LAYOUT_DATEANDTIME
28170      } Elm_Datefield_Layout;
28171
28172    EINA_DEPRECATED EAPI void         elm_datefield_layout_set(Evas_Object *obj, Elm_Datefield_Layout layout);
28173    EINA_DEPRECATED EAPI Elm_Datefield_Layout elm_datefield_layout_get(const Evas_Object *obj);
28174    EINA_DEPRECATED EAPI void         elm_datefield_date_format_set(Evas_Object *obj, const char *fmt);
28175    EINA_DEPRECATED EAPI const char  *elm_datefield_date_format_get(const Evas_Object *obj);
28176    EINA_DEPRECATED EAPI void         elm_datefield_time_mode_set(Evas_Object *obj, Eina_Bool mode);
28177    EINA_DEPRECATED EAPI Eina_Bool    elm_datefield_time_mode_get(const Evas_Object *obj);
28178    EINA_DEPRECATED EAPI void         elm_datefield_date_set(Evas_Object *obj, int year, int month, int day, int hour, int min);
28179    EINA_DEPRECATED EAPI void         elm_datefield_date_get(const Evas_Object *obj, int *year, int *month, int *day, int *hour, int *min);
28180    EINA_DEPRECATED EAPI Eina_Bool    elm_datefield_date_max_set(Evas_Object *obj, int year, int month, int day);
28181    EINA_DEPRECATED EAPI void         elm_datefield_date_max_get(const Evas_Object *obj, int *year, int *month, int *day);
28182    EINA_DEPRECATED EAPI Eina_Bool    elm_datefield_date_min_set(Evas_Object *obj, int year, int month, int day);
28183    EINA_DEPRECATED EAPI void         elm_datefield_date_min_get(const Evas_Object *obj, int *year, int *month, int *day);
28184    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);
28185    EINA_DEPRECATED EAPI void         elm_datefield_input_panel_state_callback_del(Evas_Object *obj, void (*pEventCallbackFunc) (void *data, Evas_Object *obj, int value));
28186 /////////////////////////////////////////////////////////////////////
28187
28188    /* popup */
28189    typedef enum _Elm_Popup_Response
28190      {
28191         ELM_POPUP_RESPONSE_NONE = -1,
28192         ELM_POPUP_RESPONSE_TIMEOUT = -2,
28193         ELM_POPUP_RESPONSE_OK = -3,
28194         ELM_POPUP_RESPONSE_CANCEL = -4,
28195         ELM_POPUP_RESPONSE_CLOSE = -5
28196      } Elm_Popup_Response;
28197
28198    typedef enum _Elm_Popup_Mode
28199      {
28200         ELM_POPUP_TYPE_NONE = 0,
28201         ELM_POPUP_TYPE_ALERT = (1 << 0)
28202      } Elm_Popup_Mode;
28203
28204    typedef enum _Elm_Popup_Orient
28205      {
28206         ELM_POPUP_ORIENT_TOP,
28207         ELM_POPUP_ORIENT_CENTER,
28208         ELM_POPUP_ORIENT_BOTTOM,
28209         ELM_POPUP_ORIENT_LEFT,
28210         ELM_POPUP_ORIENT_RIGHT,
28211         ELM_POPUP_ORIENT_TOP_LEFT,
28212         ELM_POPUP_ORIENT_TOP_RIGHT,
28213         ELM_POPUP_ORIENT_BOTTOM_LEFT,
28214         ELM_POPUP_ORIENT_BOTTOM_RIGHT
28215      } Elm_Popup_Orient;
28216
28217    /* smart callbacks called:
28218     * "response" - when ever popup is closed, this signal is sent with appropriate response id.".
28219     */
28220
28221    EAPI Evas_Object *elm_popup_add(Evas_Object *parent);
28222    EAPI void         elm_popup_desc_set(Evas_Object *obj, const char *text);
28223    EAPI const char  *elm_popup_desc_get(Evas_Object *obj);
28224    EAPI void         elm_popup_title_label_set(Evas_Object *obj, const char *text);
28225    EAPI const char  *elm_popup_title_label_get(Evas_Object *obj);
28226    EAPI void         elm_popup_title_icon_set(Evas_Object *obj, Evas_Object *icon);
28227    EAPI Evas_Object *elm_popup_title_icon_get(Evas_Object *obj);
28228    EAPI void         elm_popup_content_set(Evas_Object *obj, Evas_Object *content);
28229    EAPI Evas_Object *elm_popup_content_get(Evas_Object *obj);
28230    EAPI void         elm_popup_buttons_add(Evas_Object *obj,int no_of_buttons, const char *first_button_text,  ...);
28231    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, ... );
28232    EAPI void         elm_popup_timeout_set(Evas_Object *obj, double timeout);
28233    EAPI void         elm_popup_mode_set(Evas_Object *obj, Elm_Popup_Mode mode);
28234    EAPI void         elm_popup_response(Evas_Object *obj, int  response_id);
28235    EAPI void         elm_popup_orient_set(Evas_Object *obj, Elm_Popup_Orient orient);
28236    EAPI int          elm_popup_run(Evas_Object *obj);
28237
28238    /* NavigationBar */
28239    #define NAVIBAR_TITLEOBJ_INSTANT_HIDE "elm,state,hide,noanimate,title", "elm"
28240    #define NAVIBAR_TITLEOBJ_INSTANT_SHOW "elm,state,show,noanimate,title", "elm"
28241
28242    typedef enum
28243      {
28244         ELM_NAVIGATIONBAR_FUNCTION_BUTTON1,
28245         ELM_NAVIGATIONBAR_FUNCTION_BUTTON2,
28246         ELM_NAVIGATIONBAR_FUNCTION_BUTTON3,
28247         ELM_NAVIGATIONBAR_BACK_BUTTON
28248      } Elm_Navi_Button_Type;
28249
28250    EAPI Evas_Object *elm_navigationbar_add(Evas_Object *parent);
28251    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);
28252    EAPI void         elm_navigationbar_pop(Evas_Object *obj);
28253    EAPI void         elm_navigationbar_to_content_pop(Evas_Object *obj, Evas_Object *content);
28254    EAPI void         elm_navigationbar_title_label_set(Evas_Object *obj, Evas_Object *content, const char *title);
28255    EAPI const char  *elm_navigationbar_title_label_get(Evas_Object *obj, Evas_Object *content);
28256    EAPI void         elm_navigationbar_title_object_add(Evas_Object *obj, Evas_Object *content, Evas_Object *title_obj);
28257    EAPI Evas_Object *elm_navigationbar_title_object_get(Evas_Object *obj, Evas_Object *content);
28258    EAPI Eina_List   *elm_navigationbar_title_object_list_get(Evas_Object *obj, Evas_Object *content);
28259    EAPI Evas_Object *elm_navigationbar_content_top_get(Evas_Object *obj);
28260    EAPI Evas_Object *elm_navigationbar_content_bottom_get(Evas_Object *obj);
28261    EAPI void         elm_navigationbar_hidden_set(Evas_Object *obj, Eina_Bool hidden);
28262    EAPI void         elm_navigationbar_title_button_set(Evas_Object *obj, Evas_Object *content, Evas_Object *button, Elm_Navi_Button_Type button_type);
28263    EAPI Evas_Object *elm_navigationbar_title_button_get(Evas_Object *obj, Evas_Object *content, Elm_Navi_Button_Type button_type);
28264    EAPI const char  *elm_navigationbar_subtitle_label_get(Evas_Object *obj, Evas_Object *content);
28265    EAPI void         elm_navigationbar_subtitle_label_set(Evas_Object *obj, Evas_Object *content, const char *subtitle);
28266    EAPI void         elm_navigationbar_title_object_list_unset(Evas_Object *obj, Evas_Object *content, Eina_List **list);
28267    EAPI void         elm_navigationbar_animation_disabled_set(Evas_Object *obj, Eina_Bool disable);
28268    EAPI void         elm_navigationbar_title_object_visible_set(Evas_Object *obj, Evas_Object *content, Eina_Bool visible);
28269    Eina_Bool         elm_navigationbar_title_object_visible_get(Evas_Object *obj, Evas_Object *content);
28270    EAPI void         elm_navigationbar_title_icon_set(Evas_Object *obj, Evas_Object *content, Evas_Object *icon);
28271    EAPI Evas_Object *elm_navigationbar_title_icon_get(Evas_Object *obj, Evas_Object *content);
28272
28273    /* NavigationBar */
28274    #define NAVIBAR_EX_TITLEOBJ_INSTANT_HIDE "elm,state,hide,noanimate,title", "elm"
28275    #define NAVIBAR_EX_TITLEOBJ_INSTANT_SHOW "elm,state,show,noanimate,title", "elm"
28276
28277    typedef enum
28278      {
28279         ELM_NAVIGATIONBAR_EX_BACK_BUTTON,
28280         ELM_NAVIGATIONBAR_EX_FUNCTION_BUTTON1,
28281         ELM_NAVIGATIONBAR_EX_FUNCTION_BUTTON2,
28282         ELM_NAVIGATIONBAR_EX_FUNCTION_BUTTON3,
28283         ELM_NAVIGATIONBAR_EX_MAX
28284      } Elm_Navi_ex_Button_Type;
28285    typedef struct _Elm_Navigationbar_ex_Item Elm_Navigationbar_ex_Item;
28286
28287    EAPI Evas_Object *elm_navigationbar_ex_add(Evas_Object *parent);
28288    EAPI Elm_Navigationbar_ex_Item *elm_navigationbar_ex_item_push(Evas_Object *obj, Evas_Object *content, const char *item_style);
28289    EAPI void         elm_navigationbar_ex_item_pop(Evas_Object *obj);
28290    EAPI void         elm_navigationbar_ex_item_promote(Elm_Navigationbar_ex_Item* item);
28291    EAPI void         elm_navigationbar_ex_to_item_pop(Elm_Navigationbar_ex_Item* item);
28292    EAPI void         elm_navigationbar_ex_item_title_label_set(Elm_Navigationbar_ex_Item *item, const char *title);
28293    EAPI const char  *elm_navigationbar_ex_item_title_label_get(Elm_Navigationbar_ex_Item* item);
28294    EAPI Elm_Navigationbar_ex_Item *elm_navigationbar_ex_item_top_get(const Evas_Object *obj);
28295    EAPI Elm_Navigationbar_ex_Item *elm_navigationbar_ex_item_bottom_get(const Evas_Object *obj);
28296    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);
28297    EAPI Evas_Object *elm_navigationbar_ex_item_title_button_get(Elm_Navigationbar_ex_Item* item, int button_type);
28298    EAPI void         elm_navigationbar_ex_item_title_object_set(Elm_Navigationbar_ex_Item* item, Evas_Object *title_obj);
28299    EAPI Evas_Object *elm_navigationbar_ex_item_title_object_unset(Elm_Navigationbar_ex_Item* item);
28300    EAPI void         elm_navigationbar_ex_item_title_hidden_set(Elm_Navigationbar_ex_Item* item, Eina_Bool hidden);
28301    EAPI Evas_Object *elm_navigationbar_ex_item_title_object_get(Elm_Navigationbar_ex_Item* item);
28302    EAPI const char  *elm_navigationbar_ex_item_subtitle_label_get(Elm_Navigationbar_ex_Item* item);
28303    EAPI void         elm_navigationbar_ex_item_subtitle_label_set( Elm_Navigationbar_ex_Item* item, const char *subtitle);
28304    EAPI void         elm_navigationbar_ex_item_style_set(Elm_Navigationbar_ex_Item* item, const char* item_style);
28305    EAPI const char  *elm_navigationbar_ex_item_style_get(Elm_Navigationbar_ex_Item* item);
28306    EAPI Evas_Object *elm_navigationbar_ex_item_content_unset(Elm_Navigationbar_ex_Item* item);
28307    EAPI Evas_Object *elm_navigationbar_ex_item_content_get(Elm_Navigationbar_ex_Item* item);
28308    EAPI void         elm_navigationbar_ex_delete_on_pop_set(Evas_Object *obj, Eina_Bool del_on_pop);
28309    EAPI Evas_Object *elm_navigationbar_ex_item_icon_get(Elm_Navigationbar_ex_Item* item);
28310    EAPI void         elm_navigationbar_ex_item_icon_set(Elm_Navigationbar_ex_Item* item, Evas_Object *icon);
28311    EAPI Evas_Object *elm_navigationbar_ex_item_title_button_unset(Elm_Navigationbar_ex_Item* item, int button_type);
28312    EAPI void         elm_navigationbar_ex_animation_disable_set(Evas_Object *obj, Eina_Bool disable);
28313    EAPI void         elm_navigationbar_ex_title_object_visible_set(Elm_Navigationbar_ex_Item* item, Eina_Bool visible);
28314    Eina_Bool         elm_navigationbar_ex_title_object_visible_get(Elm_Navigationbar_ex_Item* item);
28315
28316   /* naviframe */
28317   #define ELM_NAVIFRAME_ITEM_CONTENT "elm.swallow.content"
28318   #define ELM_NAVIFRAME_ITEM_ICON "elm.swallow.icon"
28319   #define ELM_NAVIFRAME_ITEM_OPTIONHEADER "elm.swallow.optionheader"
28320   #define ELM_NAVIFRAME_ITEM_OPTIONHEADER2 "elm.swallow.optionheader2"
28321   #define ELM_NAVIFRAME_ITEM_TITLE_LABEL "elm.text.title"
28322   #define ELM_NAVIFRAME_ITEM_PREV_BTN "elm.swallow.prev_btn"
28323   #define ELM_NAVIFRAME_ITEM_SIGNAL_OPTIONHEADER_CLOSE "elm,state,optionheader,close", ""
28324   #define ELM_NAVIFRAME_ITEM_SIGNAL_OPTIONHEADER_OPEN "elm,state,optionheader,open", ""
28325   #define ELM_NAVIFRAME_ITEM_SIGNAL_OPTIONHEADER_INSTANT_CLOSE "elm,state,optionheader,instant_close", ""
28326   #define ELM_NAVIFRAME_ITEM_SIGNAL_OPTIONHEADER_INSTANT_OPEN "elm,state,optionheader,instant_open", ""
28327
28328   /**
28329     * @defgroup Naviframe Naviframe
28330     *
28331     * @brief Naviframe is a kind of view manager for the applications.
28332     *
28333     * Naviframe provides functions to switch different pages with stack
28334     * mechanism. It means if one page(item) needs to be changed to the new one,
28335     * then naviframe would push the new page to it's internal stack. Of course,
28336     * it can be back to the previous page by popping the top page. Naviframe
28337     * provides some transition effect while the pages are switching (same as
28338     * pager).
28339     *
28340     * Since each item could keep the different styles, users could keep the
28341     * same look & feel for the pages or different styles for the items in it's
28342     * application.
28343     *
28344     * Signals that you can add callback for are:
28345     *
28346     * @li "transition,finished" - When the transition is finished in changing
28347     *     the item
28348     * @li "title,clicked" - User clicked title area
28349     *
28350     * Default contents parts for the naviframe items that you can use for are:
28351     *
28352     * @li "elm.swallow.content" - The main content of the page
28353     * @li "elm.swallow.prev_btn" - The button to go to the previous page
28354     * @li "elm.swallow.next_btn" - The button to go to the next page
28355     *
28356     * Default text parts of naviframe items that you can be used are:
28357     *
28358     * @li "elm.text.title" - The title label in the title area
28359     *
28360     * @ref tutorial_naviframe gives a good overview of the usage of the API.
28361     * @{
28362     */
28363    /**
28364     * @brief Add a new Naviframe object to the parent.
28365     *
28366     * @param parent Parent object
28367     * @return New object or @c NULL, if it cannot be created
28368     */
28369    EAPI Evas_Object        *elm_naviframe_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
28370    /**
28371     * @brief Push a new item to the top of the naviframe stack (and show it).
28372     *
28373     * @param obj The naviframe object
28374     * @param title_label The label in the title area. The name of the title
28375     *        label part is "elm.text.title"
28376     * @param prev_btn The button to go to the previous item. If it is NULL,
28377     *        then naviframe will create a back button automatically. The name of
28378     *        the prev_btn part is "elm.swallow.prev_btn"
28379     * @param next_btn The button to go to the next item. Or It could be just an
28380     *        extra function button. The name of the next_btn part is
28381     *        "elm.swallow.next_btn"
28382     * @param content The main content object. The name of content part is
28383     *        "elm.swallow.content"
28384     * @param item_style The current item style name. @c NULL would be default.
28385     * @return The created item or @c NULL upon failure.
28386     *
28387     * The item pushed becomes one page of the naviframe, this item will be
28388     * deleted when it is popped.
28389     *
28390     * @see also elm_naviframe_item_style_set()
28391     *
28392     * The following styles are available for this item:
28393     * @li @c "default"
28394     */
28395    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);
28396    /**
28397     * @brief Pop an item that is on top of the stack
28398     *
28399     * @param obj The naviframe object
28400     * @return @c NULL or the content object(if the
28401     *         elm_naviframe_content_preserve_on_pop_get is true).
28402     *
28403     * This pops an item that is on the top(visible) of the naviframe, makes it
28404     * disappear, then deletes the item. The item that was underneath it on the
28405     * stack will become visible.
28406     *
28407     * @see also elm_naviframe_content_preserve_on_pop_get()
28408     *
28409     * @ingroup Naviframe
28410     */
28411    EAPI Evas_Object        *elm_naviframe_item_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
28412    /**
28413     * @brief Pop the items between the top and the above one on the given item.
28414     *
28415     * @param it The naviframe item
28416     *
28417     * @ingroup Naviframe
28418     */
28419    EAPI void                elm_naviframe_item_pop_to(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28420    /**
28421    * Promote an item already in the naviframe stack to the top of the stack
28422    *
28423    * @param it The naviframe item
28424    *
28425    * This will take the indicated item and promote it to the top of the stack
28426    * as if it had been pushed there. The item must already be inside the
28427    * naviframe stack to work.
28428    *
28429    */
28430    EAPI void                elm_naviframe_item_promote(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28431    /**
28432     * @brief Delete the given item instantly.
28433     *
28434     * @param it The naviframe item
28435     *
28436     * This just deletes the given item from the naviframe item list instantly.
28437     * So this would not emit any signals for view transitions but just change
28438     * the current view if the given item is a top one.
28439     *
28440     * @ingroup Naviframe
28441     */
28442    EAPI void                elm_naviframe_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28443    /**
28444     * @brief preserve the content objects when items are popped.
28445     *
28446     * @param obj The naviframe object
28447     * @param preserve Enable the preserve mode if EINA_TRUE, disable otherwise
28448     *
28449     * @see also elm_naviframe_content_preserve_on_pop_get()
28450     *
28451     * @ingroup Naviframe
28452     */
28453    EAPI void                elm_naviframe_content_preserve_on_pop_set(Evas_Object *obj, Eina_Bool preserve) EINA_ARG_NONNULL(1);
28454    /**
28455     * @brief Get a value whether preserve mode is enabled or not.
28456     *
28457     * @param obj The naviframe object
28458     * @return If @c EINA_TRUE, preserve mode is enabled
28459     *
28460     * @see also elm_naviframe_content_preserve_on_pop_set()
28461     *
28462     * @ingroup Naviframe
28463     */
28464    EAPI Eina_Bool           elm_naviframe_content_preserve_on_pop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28465    /**
28466     * @brief Get a top item on the naviframe stack
28467     *
28468     * @param obj The naviframe object
28469     * @return The top item on the naviframe stack or @c NULL, if the stack is
28470     *         empty
28471     *
28472     * @ingroup Naviframe
28473     */
28474    EAPI Elm_Object_Item    *elm_naviframe_top_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28475    /**
28476     * @brief Get a bottom item on the naviframe stack
28477     *
28478     * @param obj The naviframe object
28479     * @return The bottom item on the naviframe stack or @c NULL, if the stack is
28480     *         empty
28481     *
28482     * @ingroup Naviframe
28483     */
28484    EAPI Elm_Object_Item    *elm_naviframe_bottom_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28485    /**
28486     * @brief Set an item style
28487     *
28488     * @param obj The naviframe item
28489     * @param item_style The current item style name. @c NULL would be default
28490     *
28491     * The following styles are available for this item:
28492     * @li @c "default"
28493     *
28494     * @see also elm_naviframe_item_style_get()
28495     *
28496     * @ingroup Naviframe
28497     */
28498    EAPI void                elm_naviframe_item_style_set(Elm_Object_Item *it, const char *item_style) EINA_ARG_NONNULL(1);
28499    /**
28500     * @brief Get an item style
28501     *
28502     * @param obj The naviframe item
28503     * @return The current item style name
28504     *
28505     * @see also elm_naviframe_item_style_set()
28506     *
28507     * @ingroup Naviframe
28508     */
28509    EAPI const char         *elm_naviframe_item_style_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28510    /**
28511     * @brief Show/Hide the title area
28512     *
28513     * @param it The naviframe item
28514     * @param visible If @c EINA_TRUE, title area will be visible, hidden
28515     *        otherwise
28516     *
28517     * When the title area is invisible, then the controls would be hidden so as     * to expand the content area to full-size.
28518     *
28519     * @see also elm_naviframe_item_title_visible_get()
28520     *
28521     * @ingroup Naviframe
28522     */
28523    EAPI void                elm_naviframe_item_title_visible_set(Elm_Object_Item *it, Eina_Bool visible) EINA_ARG_NONNULL(1);
28524    /**
28525     * @brief Get a value whether title area is visible or not.
28526     *
28527     * @param it The naviframe item
28528     * @return If @c EINA_TRUE, title area is visible
28529     *
28530     * @see also elm_naviframe_item_title_visible_set()
28531     *
28532     * @ingroup Naviframe
28533     */
28534    EAPI Eina_Bool           elm_naviframe_item_title_visible_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28535
28536    /**
28537     * @brief Set creating prev button automatically or not
28538     *
28539     * @param obj The naviframe object
28540     * @param auto_pushed If @c EINA_TRUE, the previous button(back button) will
28541     *        be created internally when you pass the @c NULL to the prev_btn
28542     *        parameter in elm_naviframe_item_push
28543     *
28544     * @see also elm_naviframe_item_push()
28545     */
28546    EAPI void                elm_naviframe_prev_btn_auto_pushed_set(Evas_Object *obj, Eina_Bool auto_pushed) EINA_ARG_NONNULL(1);
28547    /**
28548     * @brief Get a value whether prev button(back button) will be auto pushed or
28549     *        not.
28550     *
28551     * @param obj The naviframe object
28552     * @return If @c EINA_TRUE, prev button will be auto pushed.
28553     *
28554     * @see also elm_naviframe_item_push()
28555     *           elm_naviframe_prev_btn_auto_pushed_set()
28556     */
28557    EAPI Eina_Bool           elm_naviframe_prev_btn_auto_pushed_get(const Evas_Object *obj); EINA_ARG_NONNULL(1);
28558
28559    /* Control Bar */
28560    #define CONTROLBAR_SYSTEM_ICON_ALBUMS "controlbar_albums"
28561    #define CONTROLBAR_SYSTEM_ICON_ARTISTS "controlbar_artists"
28562    #define CONTROLBAR_SYSTEM_ICON_SONGS "controlbar_songs"
28563    #define CONTROLBAR_SYSTEM_ICON_PLAYLIST "controlbar_playlist"
28564    #define CONTROLBAR_SYSTEM_ICON_MORE "controlbar_more"
28565    #define CONTROLBAR_SYSTEM_ICON_CONTACTS "controlbar_contacts"
28566    #define CONTROLBAR_SYSTEM_ICON_DIALER "controlbar_dialer"
28567    #define CONTROLBAR_SYSTEM_ICON_FAVORITES "controlbar_favorites"
28568    #define CONTROLBAR_SYSTEM_ICON_LOGS "controlbar_logs"
28569
28570    typedef enum _Elm_Controlbar_Mode_Type
28571      {
28572         ELM_CONTROLBAR_MODE_DEFAULT = 0,
28573         ELM_CONTROLBAR_MODE_TRANSLUCENCE,
28574         ELM_CONTROLBAR_MODE_TRANSPARENCY,
28575         ELM_CONTROLBAR_MODE_LARGE,
28576         ELM_CONTROLBAR_MODE_SMALL,
28577         ELM_CONTROLBAR_MODE_LEFT,
28578         ELM_CONTROLBAR_MODE_RIGHT
28579      } Elm_Controlbar_Mode_Type;
28580
28581    typedef struct _Elm_Controlbar_Item Elm_Controlbar_Item;
28582    EAPI Evas_Object *elm_controlbar_add(Evas_Object *parent);
28583    EAPI Elm_Controlbar_Item *elm_controlbar_tab_item_append(Evas_Object *obj, const char *icon_path, const char *label, Evas_Object *view);
28584    EAPI Elm_Controlbar_Item *elm_controlbar_tab_item_prepend(Evas_Object *obj, const char *icon_path, const char *label, Evas_Object *view);
28585    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);
28586    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);
28587    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);
28588    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);
28589    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);
28590    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);
28591    EAPI Elm_Controlbar_Item *elm_controlbar_object_item_append(Evas_Object *obj, Evas_Object *obj_item, const int sel);
28592    EAPI Elm_Controlbar_Item *elm_controlbar_object_item_prepend(Evas_Object *obj, Evas_Object *obj_item, const int sel);
28593    EAPI Elm_Controlbar_Item *elm_controlbar_object_item_insert_before(Evas_Object *obj, Elm_Controlbar_Item *before, Evas_Object *obj_item, const int sel);
28594    EAPI Elm_Controlbar_Item *elm_controlbar_object_item_insert_after(Evas_Object *obj, Elm_Controlbar_Item *after, Evas_Object *obj_item, const int sel);
28595    EAPI Evas_Object *elm_controlbar_object_item_object_get(const Elm_Controlbar_Item *it);
28596    EAPI void         elm_controlbar_item_del(Elm_Controlbar_Item *it);
28597    EAPI void         elm_controlbar_item_select(Elm_Controlbar_Item *it);
28598    EAPI void         elm_controlbar_item_visible_set(Elm_Controlbar_Item *it, Eina_Bool bar);
28599    EAPI Eina_Bool    elm_controlbar_item_visible_get(const Elm_Controlbar_Item * it);
28600    EAPI void         elm_controlbar_item_disabled_set(Elm_Controlbar_Item * it, Eina_Bool disabled);
28601    EAPI Eina_Bool    elm_controlbar_item_disabled_get(const Elm_Controlbar_Item * it);
28602    EAPI void         elm_controlbar_item_icon_set(Elm_Controlbar_Item *it, const char *icon_path);
28603    EAPI Evas_Object *elm_controlbar_item_icon_get(const Elm_Controlbar_Item *it);
28604    EAPI void         elm_controlbar_item_label_set(Elm_Controlbar_Item *it, const char *label);
28605    EAPI const char  *elm_controlbar_item_label_get(const Elm_Controlbar_Item *it);
28606    EAPI Elm_Controlbar_Item *elm_controlbar_selected_item_get(const Evas_Object *obj);
28607    EAPI Elm_Controlbar_Item *elm_controlbar_first_item_get(const Evas_Object *obj);
28608    EAPI Elm_Controlbar_Item *elm_controlbar_last_item_get(const Evas_Object *obj);
28609    EAPI const Eina_List   *elm_controlbar_items_get(const Evas_Object *obj);
28610    EAPI Elm_Controlbar_Item *elm_controlbar_item_prev(Elm_Controlbar_Item *it);
28611    EAPI Elm_Controlbar_Item *elm_controlbar_item_next(Elm_Controlbar_Item *it);
28612    EAPI void         elm_controlbar_item_view_set(Elm_Controlbar_Item *it, Evas_Object * view);
28613    EAPI Evas_Object *elm_controlbar_item_view_get(const Elm_Controlbar_Item *it);
28614    EAPI Evas_Object *elm_controlbar_item_view_unset(Elm_Controlbar_Item *it);
28615    EAPI Evas_Object *elm_controlbar_item_button_get(const Elm_Controlbar_Item *it);
28616    EAPI void         elm_controlbar_mode_set(Evas_Object *obj, int mode);
28617    EAPI void         elm_controlbar_alpha_set(Evas_Object *obj, int alpha);
28618    EAPI void         elm_controlbar_item_auto_align_set(Evas_Object *obj, Eina_Bool auto_align);
28619    EAPI void         elm_controlbar_vertical_set(Evas_Object *obj, Eina_Bool vertical);
28620
28621    /* SearchBar */
28622    EAPI Evas_Object *elm_searchbar_add(Evas_Object *parent);
28623    EAPI void         elm_searchbar_text_set(Evas_Object *obj, const char *entry);
28624    EAPI const char  *elm_searchbar_text_get(Evas_Object *obj);
28625    EAPI Evas_Object *elm_searchbar_entry_get(Evas_Object *obj);
28626    EAPI Evas_Object *elm_searchbar_editfield_get(Evas_Object *obj);
28627    EAPI void         elm_searchbar_cancel_button_animation_set(Evas_Object *obj, Eina_Bool cancel_btn_ani_flag);
28628    EAPI void         elm_searchbar_cancel_button_set(Evas_Object *obj, Eina_Bool visible);
28629    EAPI void         elm_searchbar_clear(Evas_Object *obj);
28630    EAPI void         elm_searchbar_boundary_rect_set(Evas_Object *obj, Eina_Bool boundary);
28631
28632    EAPI Evas_Object *elm_page_control_add(Evas_Object *parent);
28633    EAPI void         elm_page_control_page_count_set(Evas_Object *obj, unsigned int page_count);
28634    EAPI void         elm_page_control_page_id_set(Evas_Object *obj, unsigned int page_id);
28635    EAPI unsigned int elm_page_control_page_id_get(Evas_Object *obj);
28636
28637    /* NoContents */
28638    EAPI Evas_Object *elm_nocontents_add(Evas_Object *parent);
28639    EAPI void         elm_nocontents_label_set(Evas_Object *obj, const char *label);
28640    EAPI const char  *elm_nocontents_label_get(const Evas_Object *obj);
28641    EAPI void         elm_nocontents_custom_set(const Evas_Object *obj, Evas_Object *custom);
28642    EAPI Evas_Object *elm_nocontents_custom_get(const Evas_Object *obj);
28643
28644    /* TickerNoti */
28645    typedef enum
28646      {
28647         ELM_TICKERNOTI_ORIENT_TOP = 0,
28648         ELM_TICKERNOTI_ORIENT_BOTTOM,
28649         ELM_TICKERNOTI_ORIENT_LAST
28650      }  Elm_Tickernoti_Orient;
28651
28652    EAPI Evas_Object              *elm_tickernoti_add (Evas_Object *parent);
28653    EAPI void                      elm_tickernoti_orient_set (Evas_Object *obj, Elm_Tickernoti_Orient orient) EINA_ARG_NONNULL(1);
28654    EAPI Elm_Tickernoti_Orient     elm_tickernoti_orient_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
28655    EAPI int                       elm_tickernoti_rotation_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
28656    EAPI void                      elm_tickernoti_rotation_set (Evas_Object *obj, int angle) EINA_ARG_NONNULL(1);
28657    EAPI Evas_Object              *elm_tickernoti_win_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
28658    /* #### Below APIs and data structures are going to be deprecated, announcment will be made soon ####*/
28659    typedef enum
28660     {
28661        ELM_TICKERNOTI_DEFAULT,
28662        ELM_TICKERNOTI_DETAILVIEW
28663     } Elm_Tickernoti_Mode;
28664    EAPI void                      elm_tickernoti_detailview_label_set (Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
28665    EAPI const char               *elm_tickernoti_detailview_label_get (const Evas_Object *obj)EINA_ARG_NONNULL(1);
28666    EAPI void                      elm_tickernoti_detailview_button_set (Evas_Object *obj, Evas_Object *button) EINA_ARG_NONNULL(2);
28667    EAPI Evas_Object              *elm_tickernoti_detailview_button_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
28668    EAPI void                      elm_tickernoti_detailview_icon_set (Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
28669    EAPI Evas_Object              *elm_tickernoti_detailview_icon_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
28670    EAPI Evas_Object              *elm_tickernoti_detailview_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
28671    EAPI void                      elm_tickernoti_mode_set (Evas_Object *obj, Elm_Tickernoti_Mode mode) EINA_ARG_NONNULL(1);
28672    EAPI Elm_Tickernoti_Mode       elm_tickernoti_mode_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
28673    EAPI void                      elm_tickernoti_orientation_set (Evas_Object *obj, Elm_Tickernoti_Orient orient) EINA_ARG_NONNULL(1);
28674    EAPI Elm_Tickernoti_Orient     elm_tickernoti_orientation_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
28675    EAPI void                      elm_tickernoti_label_set (Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
28676    EAPI const char               *elm_tickernoti_label_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
28677    EAPI void                      elm_tickernoti_icon_set (Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
28678    EAPI Evas_Object              *elm_tickernoti_icon_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
28679    EAPI void                      elm_tickernoti_button_set (Evas_Object *obj, Evas_Object *button) EINA_ARG_NONNULL(1);
28680    EAPI Evas_Object              *elm_tickernoti_button_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
28681    /* ############################################################################### */
28682    /*
28683     * Parts which can be used with elm_object_text_part_set() and
28684     * elm_object_text_part_get():
28685     *
28686     * @li NULL/"default" - Operates on tickernoti content-text
28687     *
28688     * Parts which can be used with elm_object_content_part_set() and
28689     * elm_object_content_part_get():
28690     *
28691     * @li "icon" - Operates on tickernoti's icon
28692     * @li "button" - Operates on tickernoti's button
28693     *
28694     * smart callbacks called:
28695     * @li "clicked" - emitted when tickernoti is clicked, except at the
28696     * swallow/button region, if any.
28697     * @li "hide" - emitted when the tickernoti is completely hidden. In case of
28698     * any hide animation, this signal is emitted after the animation.
28699     */
28700
28701    /* colorpalette */
28702    typedef struct _Colorpalette_Color Elm_Colorpalette_Color;
28703
28704    struct _Colorpalette_Color
28705      {
28706         unsigned int r, g, b;
28707      };
28708
28709    EAPI Evas_Object *elm_colorpalette_add(Evas_Object *parent);
28710    EAPI void         elm_colorpalette_color_set(Evas_Object *obj, int color_num, Elm_Colorpalette_Color *color);
28711    EAPI void         elm_colorpalette_row_column_set(Evas_Object *obj, int row, int col);
28712    /* smart callbacks called:
28713     * "clicked" - when image clicked
28714     */
28715
28716    /* editfield */
28717    EAPI Evas_Object *elm_editfield_add(Evas_Object *parent);
28718    EAPI void         elm_editfield_label_set(Evas_Object *obj, const char *label);
28719    EAPI const char  *elm_editfield_label_get(Evas_Object *obj);
28720    EAPI void         elm_editfield_guide_text_set(Evas_Object *obj, const char *text);
28721    EAPI const char  *elm_editfield_guide_text_get(Evas_Object *obj);
28722    EAPI Evas_Object *elm_editfield_entry_get(Evas_Object *obj);
28723 //   EAPI Evas_Object *elm_editfield_clear_button_show(Evas_Object *obj, Eina_Bool show);
28724    EAPI void         elm_editfield_right_icon_set(Evas_Object *obj, Evas_Object *icon);
28725    EAPI Evas_Object *elm_editfield_right_icon_get(Evas_Object *obj);
28726    EAPI void         elm_editfield_left_icon_set(Evas_Object *obj, Evas_Object *icon);
28727    EAPI Evas_Object *elm_editfield_left_icon_get(Evas_Object *obj);
28728    EAPI void         elm_editfield_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line);
28729    EAPI Eina_Bool    elm_editfield_entry_single_line_get(Evas_Object *obj);
28730    EAPI void         elm_editfield_eraser_set(Evas_Object *obj, Eina_Bool visible);
28731    EAPI Eina_Bool    elm_editfield_eraser_get(Evas_Object *obj);
28732    /* smart callbacks called:
28733     * "clicked" - when an editfield is clicked
28734     * "unfocused" - when an editfield is unfocused
28735     */
28736
28737
28738    /* Sliding Drawer */
28739    typedef enum _Elm_SlidingDrawer_Pos
28740      {
28741         ELM_SLIDINGDRAWER_BOTTOM,
28742         ELM_SLIDINGDRAWER_LEFT,
28743         ELM_SLIDINGDRAWER_RIGHT,
28744         ELM_SLIDINGDRAWER_TOP
28745      } Elm_SlidingDrawer_Pos;
28746
28747    typedef struct _Elm_SlidingDrawer_Drag_Value
28748      {
28749         double x, y;
28750      } Elm_SlidingDrawer_Drag_Value;
28751
28752    EINA_DEPRECATED EAPI Evas_Object *elm_slidingdrawer_add(Evas_Object *parent);
28753    EINA_DEPRECATED EAPI void         elm_slidingdrawer_content_set (Evas_Object *obj, Evas_Object *content);
28754    EINA_DEPRECATED EAPI Evas_Object *elm_slidingdrawer_content_unset(Evas_Object *obj);
28755    EINA_DEPRECATED EAPI void         elm_slidingdrawer_pos_set(Evas_Object *obj, Elm_SlidingDrawer_Pos pos);
28756    EINA_DEPRECATED EAPI void         elm_slidingdrawer_max_drag_value_set(Evas_Object *obj, double dw,  double dh);
28757    EINA_DEPRECATED EAPI void         elm_slidingdrawer_drag_value_set(Evas_Object *obj, double dx, double dy);
28758
28759    /* multibuttonentry */
28760    typedef struct _Multibuttonentry_Item Elm_Multibuttonentry_Item;
28761    typedef Eina_Bool (*Elm_Multibuttonentry_Item_Verify_Callback) (Evas_Object *obj, const char *item_label, void *item_data, void *data);
28762    EAPI Evas_Object               *elm_multibuttonentry_add(Evas_Object *parent);
28763    EAPI const char                *elm_multibuttonentry_label_get(Evas_Object *obj);
28764    EAPI void                       elm_multibuttonentry_label_set(Evas_Object *obj, const char *label);
28765    EAPI Evas_Object               *elm_multibuttonentry_entry_get(Evas_Object *obj);
28766    EAPI const char *               elm_multibuttonentry_guide_text_get(Evas_Object *obj);
28767    EAPI void                       elm_multibuttonentry_guide_text_set(Evas_Object *obj, const char *guidetext);
28768    EAPI int                        elm_multibuttonentry_contracted_state_get(Evas_Object *obj);
28769    EAPI void                       elm_multibuttonentry_contracted_state_set(Evas_Object *obj, int contracted);
28770    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_add_start(Evas_Object *obj, const char *label, void *data);
28771    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_add_end(Evas_Object *obj, const char *label, void *data);
28772    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_add_before(Evas_Object *obj, const char *label, Elm_Multibuttonentry_Item *before, void *data);
28773    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_add_after(Evas_Object *obj, const char *label, Elm_Multibuttonentry_Item *after, void *data);
28774    EAPI const Eina_List           *elm_multibuttonentry_items_get(Evas_Object *obj);
28775    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_first_get(Evas_Object *obj);
28776    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_last_get(Evas_Object *obj);
28777    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_selected_get(Evas_Object *obj);
28778    EAPI void                       elm_multibuttonentry_item_selected_set(Elm_Multibuttonentry_Item *item);
28779    EAPI void                       elm_multibuttonentry_item_unselect_all(Evas_Object *obj);
28780    EAPI void                       elm_multibuttonentry_item_del(Elm_Multibuttonentry_Item *item);
28781    EAPI void                       elm_multibuttonentry_items_del(Evas_Object *obj);
28782    EAPI const char                *elm_multibuttonentry_item_label_get(Elm_Multibuttonentry_Item *item);
28783    EAPI void                       elm_multibuttonentry_item_label_set(Elm_Multibuttonentry_Item *item, const char *str);
28784    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_prev(Elm_Multibuttonentry_Item *item);
28785    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_next(Elm_Multibuttonentry_Item *item);
28786    EAPI void                      *elm_multibuttonentry_item_data_get(Elm_Multibuttonentry_Item *item);
28787    EAPI void                       elm_multibuttonentry_item_data_set(Elm_Multibuttonentry_Item *item, void *data);
28788    EAPI void                       elm_multibuttonentry_item_verify_callback_set(Evas_Object *obj, Elm_Multibuttonentry_Item_Verify_Callback func, void *data);
28789    /* smart callback called:
28790     * "selected" - This signal is emitted when the selected item of multibuttonentry is changed.
28791     * "added" - This signal is emitted when a new multibuttonentry item is added.
28792     * "deleted" - This signal is emitted when a multibuttonentry item is deleted.
28793     * "expanded" - This signal is emitted when a multibuttonentry is expanded.
28794     * "contracted" - This signal is emitted when a multibuttonentry is contracted.
28795     * "contracted,state,changed" - This signal is emitted when the contracted state of multibuttonentry is changed.
28796     * "item,selected" - This signal is emitted when the selected item of multibuttonentry is changed.
28797     * "item,added" - This signal is emitted when a new multibuttonentry item is added.
28798     * "item,deleted" - This signal is emitted when a multibuttonentry item is deleted.
28799     * "item,clicked" - This signal is emitted when a multibuttonentry item is clicked.
28800     * "clicked" - This signal is emitted when a multibuttonentry is clicked.
28801     * "unfocused" - This signal is emitted when a multibuttonentry is unfocused.
28802     */
28803    /* available styles:
28804     * default
28805     */
28806
28807    /* stackedicon */
28808    typedef struct _Stackedicon_Item Elm_Stackedicon_Item;
28809    EAPI Evas_Object          *elm_stackedicon_add(Evas_Object *parent);
28810    EAPI Elm_Stackedicon_Item *elm_stackedicon_item_append(Evas_Object *obj, const char *path);
28811    EAPI Elm_Stackedicon_Item *elm_stackedicon_item_prepend(Evas_Object *obj, const char *path);
28812    EAPI void                  elm_stackedicon_item_del(Elm_Stackedicon_Item *it);
28813    EAPI Eina_List            *elm_stackedicon_item_list_get(Evas_Object *obj);
28814    /* smart callback called:
28815     * "expanded" - This signal is emitted when a stackedicon is expanded.
28816     * "clicked" - This signal is emitted when a stackedicon is clicked.
28817     */
28818    /* available styles:
28819     * default
28820     */
28821
28822    /* dialoguegroup */
28823    typedef struct _Dialogue_Item Dialogue_Item;
28824
28825    typedef enum _Elm_Dialoguegourp_Item_Style
28826      {
28827         ELM_DIALOGUEGROUP_ITEM_STYLE_DEFAULT = 0,
28828         ELM_DIALOGUEGROUP_ITEM_STYLE_EDITFIELD = (1 << 0),
28829         ELM_DIALOGUEGROUP_ITEM_STYLE_EDITFIELD_WITH_TITLE = (1 << 1),
28830         ELM_DIALOGUEGROUP_ITEM_STYLE_EDIT_TITLE = (1 << 2),
28831         ELM_DIALOGUEGROUP_ITEM_STYLE_HIDDEN = (1 << 3),
28832         ELM_DIALOGUEGROUP_ITEM_STYLE_DATAVIEW = (1 << 4),
28833         ELM_DIALOGUEGROUP_ITEM_STYLE_NO_BG = (1 << 5),
28834         ELM_DIALOGUEGROUP_ITEM_STYLE_SUB = (1 << 6),
28835         ELM_DIALOGUEGROUP_ITEM_STYLE_EDIT = (1 << 7),
28836         ELM_DIALOGUEGROUP_ITEM_STYLE_EDIT_MERGE = (1 << 8),
28837         ELM_DIALOGUEGROUP_ITEM_STYLE_LAST = (1 << 9)
28838      } Elm_Dialoguegroup_Item_Style;
28839
28840    EINA_DEPRECATED EAPI Evas_Object   *elm_dialoguegroup_add(Evas_Object *parent);
28841    EINA_DEPRECATED EAPI Dialogue_Item *elm_dialoguegroup_append(Evas_Object *obj, Evas_Object *subobj, Elm_Dialoguegroup_Item_Style style);
28842    EINA_DEPRECATED EAPI Dialogue_Item *elm_dialoguegroup_prepend(Evas_Object *obj, Evas_Object *subobj, Elm_Dialoguegroup_Item_Style style);
28843    EINA_DEPRECATED EAPI Dialogue_Item *elm_dialoguegroup_insert_after(Evas_Object *obj, Evas_Object *subobj, Dialogue_Item *after, Elm_Dialoguegroup_Item_Style style);
28844    EINA_DEPRECATED EAPI Dialogue_Item *elm_dialoguegroup_insert_before(Evas_Object *obj, Evas_Object *subobj, Dialogue_Item *before, Elm_Dialoguegroup_Item_Style style);
28845    EINA_DEPRECATED EAPI void           elm_dialoguegroup_remove(Dialogue_Item *item);
28846    EINA_DEPRECATED EAPI void           elm_dialoguegroup_remove_all(Evas_Object *obj);
28847    EINA_DEPRECATED EAPI void           elm_dialoguegroup_title_set(Evas_Object *obj, const char *title);
28848    EINA_DEPRECATED EAPI const char    *elm_dialoguegroup_title_get(Evas_Object *obj);
28849    EINA_DEPRECATED EAPI void           elm_dialoguegroup_press_effect_set(Dialogue_Item *item, Eina_Bool press);
28850    EINA_DEPRECATED EAPI Eina_Bool      elm_dialoguegroup_press_effect_get(Dialogue_Item *item);
28851    EINA_DEPRECATED EAPI Evas_Object   *elm_dialoguegroup_item_content_get(Dialogue_Item *item);
28852    EINA_DEPRECATED EAPI void           elm_dialoguegroup_item_style_set(Dialogue_Item *item, Elm_Dialoguegroup_Item_Style style);
28853    EINA_DEPRECATED EAPI Elm_Dialoguegroup_Item_Style    elm_dialoguegroup_item_style_get(Dialogue_Item *item);
28854    EINA_DEPRECATED EAPI void           elm_dialoguegroup_item_disabled_set(Dialogue_Item *item, Eina_Bool disabled);
28855    EINA_DEPRECATED EAPI Eina_Bool      elm_dialoguegroup_item_disabled_get(Dialogue_Item *item);
28856
28857    /* Dayselector */
28858    typedef enum
28859      {
28860         ELM_DAYSELECTOR_SUN,
28861         ELM_DAYSELECTOR_MON,
28862         ELM_DAYSELECTOR_TUE,
28863         ELM_DAYSELECTOR_WED,
28864         ELM_DAYSELECTOR_THU,
28865         ELM_DAYSELECTOR_FRI,
28866         ELM_DAYSELECTOR_SAT
28867      } Elm_DaySelector_Day;
28868
28869    EAPI Evas_Object *elm_dayselector_add(Evas_Object *parent);
28870    EAPI Eina_Bool    elm_dayselector_check_state_get(Evas_Object *obj, Elm_DaySelector_Day day);
28871    EAPI void         elm_dayselector_check_state_set(Evas_Object *obj, Elm_DaySelector_Day day, Eina_Bool checked);
28872
28873    /* Image Slider */
28874    typedef struct _Imageslider_Item Elm_Imageslider_Item;
28875    typedef void (*Elm_Imageslider_Cb)(void *data, Evas_Object *obj, void *event_info);
28876    EAPI Evas_Object           *elm_imageslider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
28877    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);
28878    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);
28879    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);
28880    EAPI void                   elm_imageslider_item_del(Elm_Imageslider_Item *it) EINA_ARG_NONNULL(1);
28881    EAPI Elm_Imageslider_Item  *elm_imageslider_selected_item_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
28882    EAPI Eina_Bool              elm_imageslider_item_selected_get(Elm_Imageslider_Item *it) EINA_ARG_NONNULL(1);
28883    EAPI void                   elm_imageslider_item_selected_set(Elm_Imageslider_Item *it) EINA_ARG_NONNULL(1);
28884    EAPI const char            *elm_imageslider_item_photo_file_get(Elm_Imageslider_Item *it) EINA_ARG_NONNULL(1);
28885    EAPI Elm_Imageslider_Item  *elm_imageslider_item_prev(Elm_Imageslider_Item *it) EINA_ARG_NONNULL(1);
28886    EAPI Elm_Imageslider_Item  *elm_imageslider_item_next(Elm_Imageslider_Item *it) EINA_ARG_NONNULL(1);
28887    EAPI void                   elm_imageslider_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
28888    EAPI void                   elm_imageslider_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
28889    EAPI void                   elm_imageslider_item_photo_file_set(Elm_Imageslider_Item *it, const char *photo_file) EINA_ARG_NONNULL(1,2);
28890    EAPI void                   elm_imageslider_item_update(Elm_Imageslider_Item *it) EINA_ARG_NONNULL(1);
28891 #ifdef __cplusplus
28892 }
28893 #endif
28894
28895 #endif