elementary: decorelate fdo from thumbnail resizing.
[framework/uifw/elementary.git] / src / lib / Elementary.h.in
1 /*
2  *
3  * vim:ts=8:sw=3:sts=3:expandtab:cino=>5n-3f0^-2{2(0W1st0
4  */
5
6 /**
7 @file Elementary.h.in
8 @brief Elementary Widget Library
9 */
10
11 /**
12 @mainpage Elementary
13 @image html  elementary.png
14 @version 0.7.0
15 @date 2008-2011
16
17 @section intro What is Elementary?
18
19 This is a VERY SIMPLE toolkit. It is not meant for writing extensive desktop
20 applications (yet). Small simple ones with simple needs.
21
22 It is meant to make the programmers work almost brainless but give them lots
23 of flexibility.
24
25 @li @ref Start - Go here to quickly get started with writing Apps
26
27 @section organization Organization
28
29 One can divide Elemementary into three main groups:
30 @li @ref infralist - These are modules that deal with Elementary as a whole.
31 @li @ref widgetslist - These are the widgets you'll compose your UI out of.
32 @li @ref containerslist - These are the containers in which the widgets will be
33                           layouted.
34
35 @section license License
36
37 LGPL v2 (see COPYING in the base of Elementary's source). This applies to
38 all files in the source tree.
39
40 @section ack Acknowledgements
41 There is a lot that goes into making a widget set, and they don't happen out of
42 nothing. It's like trying to make everyone everywhere happy, regardless of age,
43 gender, race or nationality - and that is really tough. So thanks to people and
44 organisations behind this, as listed in the @ref authors page.
45 */
46
47
48 /**
49  * @defgroup Start Getting Started
50  *
51  * To write an Elementary app, you can get started with the following:
52  *
53 @code
54 #include <Elementary.h>
55 EAPI_MAIN int
56 elm_main(int argc, char **argv)
57 {
58    // create window(s) here and do any application init
59    elm_run(); // run main loop
60    elm_shutdown(); // after mainloop finishes running, shutdown
61    return 0; // exit 0 for exit code
62 }
63 ELM_MAIN()
64 @endcode
65  *
66  * To use autotools (which helps in many ways in the long run, like being able
67  * to immediately create releases of your software directly from your tree
68  * and ensure everything needed to build it is there) you will need a
69  * configure.ac, Makefile.am and autogen.sh file.
70  *
71  * configure.ac:
72  *
73 @verbatim
74 AC_INIT(myapp, 0.0.0, myname@mydomain.com)
75 AC_PREREQ(2.52)
76 AC_CONFIG_SRCDIR(configure.ac)
77 AM_CONFIG_HEADER(config.h)
78 AC_PROG_CC
79 AM_INIT_AUTOMAKE(1.6 dist-bzip2)
80 PKG_CHECK_MODULES([ELEMENTARY], elementary)
81 AC_OUTPUT(Makefile)
82 @endverbatim
83  *
84  * Makefile.am:
85  *
86 @verbatim
87 AUTOMAKE_OPTIONS = 1.4 foreign
88 MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.h.in configure depcomp install-sh missing
89
90 INCLUDES = -I$(top_srcdir)
91
92 bin_PROGRAMS = myapp
93
94 myapp_SOURCES = main.c
95 myapp_LDADD = @ELEMENTARY_LIBS@
96 myapp_CFLAGS = @ELEMENTARY_CFLAGS@
97 @endverbatim
98  *
99  * autogen.sh:
100  *
101 @verbatim
102 #!/bin/sh
103 echo "Running aclocal..." ; aclocal $ACLOCAL_FLAGS || exit 1
104 echo "Running autoheader..." ; autoheader || exit 1
105 echo "Running autoconf..." ; autoconf || exit 1
106 echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
107 ./configure "$@"
108 @endverbatim
109  *
110  * To generate all the things needed to bootstrap just run:
111  *
112 @verbatim
113 ./autogen.sh
114 @endverbatim
115  *
116  * This will generate Makefile.in's, the confgure script and everything else.
117  * After this it works like all normal autotools projects:
118 @verbatim
119 ./configure
120 make
121 sudo make install
122 @endverbatim
123  *
124  * Note sudo was assumed to get root permissions, as this would install in
125  * /usr/local which is system-owned. Use any way you like to gain root, or
126  * specify a different prefix with configure:
127  *
128 @verbatim
129 ./confiugre --prefix=$HOME/mysoftware
130 @endverbatim
131  *
132  * Also remember that autotools buys you some useful commands like:
133 @verbatim
134 make uninstall
135 @endverbatim
136  *
137  * This uninstalls the software after it was installed with "make install".
138  * It is very useful to clear up what you built if you wish to clean the
139  * system.
140  *
141 @verbatim
142 make distcheck
143 @endverbatim
144  *
145  * This firstly checks if your build tree is "clean" and ready for
146  * distribution. It also builds a tarball (myapp-0.0.0.tar.gz) that is
147  * ready to upload and distribute to the world, that contains the generated
148  * Makefile.in's and configure script. The users do not need to run
149  * autogen.sh - just configure and on. They don't need autotools installed.
150  * This tarball also builds cleanly, has all the sources it needs to build
151  * included (that is sources for your application, not libraries it depends
152  * on like Elementary). It builds cleanly in a buildroot and does not
153  * contain any files that are temporarily generated like binaries and other
154  * build-generated files, so the tarball is clean, and no need to worry
155  * about cleaning up your tree before packaging.
156  *
157 @verbatim
158 make clean
159 @endverbatim
160  *
161  * This cleans up all build files (binaries, objects etc.) from the tree.
162  *
163 @verbatim
164 make distclean
165 @endverbatim
166  *
167  * This cleans out all files from the build and from configure's output too.
168  *
169 @verbatim
170 make maintainer-clean
171 @endverbatim
172  *
173  * This deletes all the files autogen.sh will produce so the tree is clean
174  * to be put into a revision-control system (like CVS, SVN or GIT for example).
175  *
176  * There is a more advanced way of making use of the quicklaunch infrastructure
177  * in Elementary (which will not be covered here due to its more advanced
178  * nature).
179  *
180  * Now let's actually create an interactive "Hello World" gui that you can
181  * click the ok button to exit. It's more code because this now does something
182  * much more significant, but it's still very simple:
183  *
184 @code
185 #include <Elementary.h>
186
187 static void
188 on_done(void *data, Evas_Object *obj, void *event_info)
189 {
190    // quit the mainloop (elm_run function will return)
191    elm_exit();
192 }
193
194 EAPI_MAIN int
195 elm_main(int argc, char **argv)
196 {
197    Evas_Object *win, *bg, *box, *lab, *btn;
198
199    // new window - do the usual and give it a name, title and delete handler
200    win = elm_win_add(NULL, "hello", ELM_WIN_BASIC);
201    elm_win_title_set(win, "Hello");
202    // when the user clicks "close" on a window there is a request to delete
203    evas_object_smart_callback_add(win, "delete,request", on_done, NULL);
204
205    // add a standard bg
206    bg = elm_bg_add(win);
207    // add object as a resize object for the window (controls window minimum
208    // size as well as gets resized if window is resized)
209    elm_win_resize_object_add(win, bg);
210    evas_object_show(bg);
211
212    // add a box object - default is vertical. a box holds children in a row,
213    // either horizontally or vertically. nothing more.
214    box = elm_box_add(win);
215    // make the box hotizontal
216    elm_box_horizontal_set(box, EINA_TRUE);
217    // add object as a resize object for the window (controls window minimum
218    // size as well as gets resized if window is resized)
219    elm_win_resize_object_add(win, box);
220    evas_object_show(box);
221
222    // add a label widget, set the text and put it in the pad frame
223    lab = elm_label_add(win);
224    // set default text of the label
225    elm_object_text_set(lab, "Hello out there world!");
226    // pack the label at the end of the box
227    elm_box_pack_end(box, lab);
228    evas_object_show(lab);
229
230    // add an ok button
231    btn = elm_button_add(win);
232    // set default text of button to "OK"
233    elm_object_text_set(btn, "OK");
234    // pack the button at the end of the box
235    elm_box_pack_end(box, btn);
236    evas_object_show(btn);
237    // call on_done when button is clicked
238    evas_object_smart_callback_add(btn, "clicked", on_done, NULL);
239
240    // now we are done, show the window
241    evas_object_show(win);
242
243    // run the mainloop and process events and callbacks
244    elm_run();
245    return 0;
246 }
247 ELM_MAIN()
248 @endcode
249    *
250    */
251
252 /**
253 @page authors Authors
254 @author Carsten Haitzler <raster@@rasterman.com>
255 @author Gustavo Sverzut Barbieri <barbieri@@profusion.mobi>
256 @author Cedric Bail <cedric.bail@@free.fr>
257 @author Vincent Torri <vtorri@@univ-evry.fr>
258 @author Daniel Kolesa <quaker66@@gmail.com>
259 @author Jaime Thomas <avi.thomas@@gmail.com>
260 @author Swisscom - http://www.swisscom.ch/
261 @author Christopher Michael <devilhorns@@comcast.net>
262 @author Marco Trevisan (Treviño) <mail@@3v1n0.net>
263 @author Michael Bouchaud <michael.bouchaud@@gmail.com>
264 @author Jonathan Atton (Watchwolf) <jonathan.atton@@gmail.com>
265 @author Brian Wang <brian.wang.0721@@gmail.com>
266 @author Mike Blumenkrantz (zmike) <mike@@zentific.com>
267 @author Samsung Electronics <tbd>
268 @author Samsung SAIT <tbd>
269 @author Brett Nash <nash@@nash.id.au>
270 @author Bruno Dilly <bdilly@@profusion.mobi>
271 @author Rafael Fonseca <rfonseca@@profusion.mobi>
272 @author Chuneon Park <hermet@@hermet.pe.kr>
273 @author Woohyun Jung <wh0705.jung@@samsung.com>
274 @author Jaehwan Kim <jae.hwan.kim@@samsung.com>
275 @author Wonguk Jeong <wonguk.jeong@@samsung.com>
276 @author Leandro A. F. Pereira <leandro@@profusion.mobi>
277 @author Helen Fornazier <helen.fornazier@@profusion.mobi>
278 @author Gustavo Lima Chaves <glima@@profusion.mobi>
279 @author Fabiano Fidêncio <fidencio@@profusion.mobi>
280 @author Tiago Falcão <tiago@@profusion.mobi>
281 @author Otavio Pontes <otavio@@profusion.mobi>
282 @author Viktor Kojouharov <vkojouharov@@gmail.com>
283 @author Daniel Juyung Seo (SeoZ) <juyung.seo@@samsung.com> <seojuyung2@@gmail.com>
284 @author Sangho Park <sangho.g.park@@samsung.com> <gouache95@@gmail.com>
285 @author Rajeev Ranjan (Rajeev) <rajeev.r@@samsung.com> <rajeev.jnnce@@gmail.com>
286 @author Seunggyun Kim <sgyun.kim@@samsung.com> <tmdrbs@@gmail.com>
287 @author Sohyun Kim <anna1014.kim@@samsung.com> <sohyun.anna@@gmail.com>
288 @author Jihoon Kim <jihoon48.kim@@samsung.com>
289 @author Jeonghyun Yun (arosis) <jh0506.yun@@samsung.com>
290 @author Tom Hacohen <tom@@stosb.com>
291 @author Aharon Hillel <a.hillel@@partner.samsung.com>
292 @author Jonathan Atton (Watchwolf) <jonathan.atton@@gmail.com>
293 @author Shinwoo Kim <kimcinoo@@gmail.com>
294 @author Govindaraju SM <govi.sm@@samsung.com> <govism@@gmail.com>
295 @author Prince Kumar Dubey <prince.dubey@@samsung.com> <prince.dubey@@gmail.com>
296 @author Sung W. Park <sungwoo@gmail.com>
297 @author Thierry el Borgi <thierry@substantiel.fr>
298 @author Shilpa Singh <shilpa.singh@samsung.com> <shilpasingh.o@gmail.com>
299 @author Chanwook Jung <joey.jung@samsung.com>
300
301 Please contact <enlightenment-devel@lists.sourceforge.net> to get in
302 contact with the developers and maintainers.
303  */
304
305 #ifndef ELEMENTARY_H
306 #define ELEMENTARY_H
307
308 /**
309  * @file Elementary.h
310  * @brief Elementary's API
311  *
312  * Elementary API.
313  */
314
315 @ELM_UNIX_DEF@ ELM_UNIX
316 @ELM_WIN32_DEF@ ELM_WIN32
317 @ELM_WINCE_DEF@ ELM_WINCE
318 @ELM_EDBUS_DEF@ ELM_EDBUS
319 @ELM_EFREET_DEF@ ELM_EFREET
320 @ELM_ETHUMB_DEF@ ELM_ETHUMB
321 @ELM_EMAP_DEF@ ELM_EMAP
322 @ELM_DEBUG_DEF@ ELM_DEBUG
323 @ELM_ALLOCA_H_DEF@ ELM_ALLOCA_H
324 @ELM_LIBINTL_H_DEF@ ELM_LIBINTL_H
325
326 /* Standard headers for standard system calls etc. */
327 #include <stdio.h>
328 #include <stdlib.h>
329 #include <unistd.h>
330 #include <string.h>
331 #include <sys/types.h>
332 #include <sys/stat.h>
333 #include <sys/time.h>
334 #include <sys/param.h>
335 #include <dlfcn.h>
336 #include <math.h>
337 #include <fnmatch.h>
338 #include <limits.h>
339 #include <ctype.h>
340 #include <time.h>
341 #include <dirent.h>
342 #include <pwd.h>
343 #include <errno.h>
344
345 #ifdef ELM_UNIX
346 # include <locale.h>
347 # ifdef ELM_LIBINTL_H
348 #  include <libintl.h>
349 # endif
350 # include <signal.h>
351 # include <grp.h>
352 # include <glob.h>
353 #endif
354
355 #ifdef ELM_ALLOCA_H
356 # include <alloca.h>
357 #endif
358
359 #if defined (ELM_WIN32) || defined (ELM_WINCE)
360 # include <malloc.h>
361 # ifndef alloca
362 #  define alloca _alloca
363 # endif
364 #endif
365
366
367 /* EFL headers */
368 #include <Eina.h>
369 #include <Eet.h>
370 #include <Evas.h>
371 #include <Evas_GL.h>
372 #include <Ecore.h>
373 #include <Ecore_Evas.h>
374 #include <Ecore_File.h>
375 #include <Ecore_IMF.h>
376 #include <Ecore_Con.h>
377 #include <Edje.h>
378
379 #ifdef ELM_EDBUS
380 # include <E_DBus.h>
381 #endif
382
383 #ifdef ELM_EFREET
384 # include <Efreet.h>
385 # include <Efreet_Mime.h>
386 # include <Efreet_Trash.h>
387 #endif
388
389 #ifdef ELM_ETHUMB
390 # include <Ethumb_Client.h>
391 #endif
392
393 #ifdef ELM_EMAP
394 # include <EMap.h>
395 #endif
396
397 #ifdef EAPI
398 # undef EAPI
399 #endif
400
401 #ifdef _WIN32
402 # ifdef ELEMENTARY_BUILD
403 #  ifdef DLL_EXPORT
404 #   define EAPI __declspec(dllexport)
405 #  else
406 #   define EAPI
407 #  endif /* ! DLL_EXPORT */
408 # else
409 #  define EAPI __declspec(dllimport)
410 # endif /* ! EFL_EVAS_BUILD */
411 #else
412 # ifdef __GNUC__
413 #  if __GNUC__ >= 4
414 #   define EAPI __attribute__ ((visibility("default")))
415 #  else
416 #   define EAPI
417 #  endif
418 # else
419 #  define EAPI
420 # endif
421 #endif /* ! _WIN32 */
422
423 #ifdef _WIN32
424 # define EAPI_MAIN
425 #else
426 # define EAPI_MAIN EAPI
427 #endif
428
429 /* allow usage from c++ */
430 #ifdef __cplusplus
431 extern "C" {
432 #endif
433
434 #define ELM_VERSION_MAJOR @VMAJ@
435 #define ELM_VERSION_MINOR @VMIN@
436
437    typedef struct _Elm_Version
438      {
439         int major;
440         int minor;
441         int micro;
442         int revision;
443      } Elm_Version;
444
445    EAPI extern Elm_Version *elm_version;
446
447 /* handy macros */
448 #define ELM_RECTS_INTERSECT(x, y, w, h, xx, yy, ww, hh) (((x) < ((xx) + (ww))) && ((y) < ((yy) + (hh))) && (((x) + (w)) > (xx)) && (((y) + (h)) > (yy)))
449 #define ELM_PI 3.14159265358979323846
450
451    /**
452     * @defgroup General General
453     *
454     * @brief General Elementary API. Functions that don't relate to
455     * Elementary objects specifically.
456     *
457     * Here are documented functions which init/shutdown the library,
458     * that apply to generic Elementary objects, that deal with
459     * configuration, et cetera.
460     *
461     * @ref general_functions_example_page "This" example contemplates
462     * some of these functions.
463     */
464
465    /**
466     * @addtogroup General
467     * @{
468     */
469
470   /**
471    * Defines couple of standard Evas_Object layers to be used
472    * with evas_object_layer_set().
473    *
474    * @note whenever extending with new values, try to keep some padding
475    *       to siblings so there is room for further extensions.
476    */
477   typedef enum _Elm_Object_Layer
478     {
479        ELM_OBJECT_LAYER_BACKGROUND = EVAS_LAYER_MIN + 64, /**< where to place backgrounds */
480        ELM_OBJECT_LAYER_DEFAULT = 0, /**< Evas_Object default layer (and thus for Elementary) */
481        ELM_OBJECT_LAYER_FOCUS = EVAS_LAYER_MAX - 128, /**< where focus object visualization is */
482        ELM_OBJECT_LAYER_TOOLTIP = EVAS_LAYER_MAX - 64, /**< where to show tooltips */
483        ELM_OBJECT_LAYER_CURSOR = EVAS_LAYER_MAX - 32, /**< where to show cursors */
484        ELM_OBJECT_LAYER_LAST /**< last layer known by Elementary */
485     } Elm_Object_Layer;
486
487 /**************************************************************************/
488    EAPI extern int ELM_ECORE_EVENT_ETHUMB_CONNECT;
489
490    /**
491     * Emitted when any Elementary's policy value is changed.
492     */
493    EAPI extern int ELM_EVENT_POLICY_CHANGED;
494
495    /**
496     * @typedef Elm_Event_Policy_Changed
497     *
498     * Data on the event when an Elementary policy has changed
499     */
500     typedef struct _Elm_Event_Policy_Changed Elm_Event_Policy_Changed;
501
502    /**
503     * @struct _Elm_Event_Policy_Changed
504     *
505     * Data on the event when an Elementary policy has changed
506     */
507     struct _Elm_Event_Policy_Changed
508      {
509         unsigned int policy; /**< the policy identifier */
510         int          new_value; /**< value the policy had before the change */
511         int          old_value; /**< new value the policy got */
512     };
513
514    /**
515     * Policy identifiers.
516     */
517     typedef enum _Elm_Policy
518     {
519         ELM_POLICY_QUIT, /**< under which circumstances the application
520                           * should quit automatically. @see
521                           * Elm_Policy_Quit.
522                           */
523         ELM_POLICY_LAST
524     } Elm_Policy; /**< Elementary policy identifiers/groups enumeration.  @see elm_policy_set()
525  */
526
527    typedef enum _Elm_Policy_Quit
528      {
529         ELM_POLICY_QUIT_NONE = 0, /**< never quit the application
530                                    * automatically */
531         ELM_POLICY_QUIT_LAST_WINDOW_CLOSED /**< quit when the
532                                             * application's last
533                                             * window is closed */
534      } Elm_Policy_Quit; /**< Possible values for the #ELM_POLICY_QUIT policy */
535
536    typedef enum _Elm_Focus_Direction
537      {
538         ELM_FOCUS_PREVIOUS,
539         ELM_FOCUS_NEXT
540      } Elm_Focus_Direction;
541
542    typedef enum _Elm_Text_Format
543      {
544         ELM_TEXT_FORMAT_PLAIN_UTF8,
545         ELM_TEXT_FORMAT_MARKUP_UTF8
546      } Elm_Text_Format;
547
548    /**
549     * Line wrapping types.
550     */
551    typedef enum _Elm_Wrap_Type
552      {
553         ELM_WRAP_NONE = 0, /**< No wrap - value is zero */
554         ELM_WRAP_CHAR, /**< Char wrap - wrap between characters */
555         ELM_WRAP_WORD, /**< Word wrap - wrap in allowed wrapping points (as defined in the unicode standard) */
556         ELM_WRAP_MIXED, /**< Mixed wrap - Word wrap, and if that fails, char wrap. */
557         ELM_WRAP_LAST
558      } Elm_Wrap_Type;
559
560    typedef enum
561      {
562         ELM_INPUT_PANEL_LAYOUT_NORMAL,          /**< Default layout */
563         ELM_INPUT_PANEL_LAYOUT_NUMBER,          /**< Number layout */
564         ELM_INPUT_PANEL_LAYOUT_EMAIL,           /**< Email layout */
565         ELM_INPUT_PANEL_LAYOUT_URL,             /**< URL layout */
566         ELM_INPUT_PANEL_LAYOUT_PHONENUMBER,     /**< Phone Number layout */
567         ELM_INPUT_PANEL_LAYOUT_IP,              /**< IP layout */
568         ELM_INPUT_PANEL_LAYOUT_MONTH,           /**< Month layout */
569         ELM_INPUT_PANEL_LAYOUT_NUMBERONLY,      /**< Number Only layout */
570         ELM_INPUT_PANEL_LAYOUT_INVALID
571      } Elm_Input_Panel_Layout;
572
573    /**
574     * @typedef Elm_Object_Item
575     * An Elementary Object item handle.
576     * @ingroup General
577     */
578    typedef struct _Elm_Object_Item Elm_Object_Item;
579
580
581    /**
582     * Called back when a widget's tooltip is activated and needs content.
583     * @param data user-data given to elm_object_tooltip_content_cb_set()
584     * @param obj owner widget.
585     * @param tooltip The tooltip object (affix content to this!)
586     */
587    typedef Evas_Object *(*Elm_Tooltip_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip);
588
589    /**
590     * Called back when a widget's item tooltip is activated and needs content.
591     * @param data user-data given to elm_object_tooltip_content_cb_set()
592     * @param obj owner widget.
593     * @param tooltip The tooltip object (affix content to this!)
594     * @param item context dependent item. As an example, if tooltip was
595     *        set on Elm_List_Item, then it is of this type.
596     */
597    typedef Evas_Object *(*Elm_Tooltip_Item_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip, void *item);
598
599    typedef Eina_Bool (*Elm_Event_Cb) (void *data, Evas_Object *obj, Evas_Object *src, Evas_Callback_Type type, void *event_info); /**< Function prototype definition for callbacks on input events happening on Elementary widgets. @a data will receive the user data pointer passed to elm_object_event_callback_add(). @a src will be a pointer to the widget on which the input event took place. @a type will get the type of this event and @a event_info, the struct with details on this event. */
600
601 #ifndef ELM_LIB_QUICKLAUNCH
602 #define ELM_MAIN() int main(int argc, char **argv) {elm_init(argc, argv); return elm_main(argc, argv);} /**< macro to be used after the elm_main() function */
603 #else
604 #define ELM_MAIN() int main(int argc, char **argv) {return elm_quicklaunch_fallback(argc, argv);} /**< macro to be used after the elm_main() function */
605 #endif
606
607 /**************************************************************************/
608    /* General calls */
609
610    /**
611     * Initialize Elementary
612     *
613     * @param[in] argc System's argument count value
614     * @param[in] argv System's pointer to array of argument strings
615     * @return The init counter value.
616     *
617     * This function initializes Elementary and increments a counter of
618     * the number of calls to it. It returns the new counter's value.
619     *
620     * @warning This call is exported only for use by the @c ELM_MAIN()
621     * macro. There is no need to use this if you use this macro (which
622     * is highly advisable). An elm_main() should contain the entry
623     * point code for your application, having the same prototype as
624     * elm_init(), and @b not being static (putting the @c EAPI symbol
625     * in front of its type declaration is advisable). The @c
626     * ELM_MAIN() call should be placed just after it.
627     *
628     * Example:
629     * @dontinclude bg_example_01.c
630     * @skip static void
631     * @until ELM_MAIN
632     *
633     * See the full @ref bg_example_01_c "example".
634     *
635     * @see elm_shutdown().
636     * @ingroup General
637     */
638    EAPI int          elm_init(int argc, char **argv);
639
640    /**
641     * Shut down Elementary
642     *
643     * @return The init counter value.
644     *
645     * This should be called at the end of your application, just
646     * before it ceases to do any more processing. This will clean up
647     * any permanent resources your application may have allocated via
648     * Elementary that would otherwise persist.
649     *
650     * @see elm_init() for an example
651     *
652     * @ingroup General
653     */
654    EAPI int          elm_shutdown(void);
655
656    /**
657     * Run Elementary's main loop
658     *
659     * This call should be issued just after all initialization is
660     * completed. This function will not return until elm_exit() is
661     * called. It will keep looping, running the main
662     * (event/processing) loop for Elementary.
663     *
664     * @see elm_init() for an example
665     *
666     * @ingroup General
667     */
668    EAPI void         elm_run(void);
669
670    /**
671     * Exit Elementary's main loop
672     *
673     * If this call is issued, it will flag the main loop to cease
674     * processing and return back to its parent function (usually your
675     * elm_main() function).
676     *
677     * @see elm_init() for an example. There, just after a request to
678     * close the window comes, the main loop will be left.
679     *
680     * @note By using the #ELM_POLICY_QUIT on your Elementary
681     * applications, you'll this function called automatically for you.
682     *
683     * @ingroup General
684     */
685    EAPI void         elm_exit(void);
686
687    /**
688     * Provide information in order to make Elementary determine the @b
689     * run time location of the software in question, so other data files
690     * such as images, sound files, executable utilities, libraries,
691     * modules and locale files can be found.
692     *
693     * @param mainfunc This is your application's main function name,
694     *        whose binary's location is to be found. Providing @c NULL
695     *        will make Elementary not to use it
696     * @param dom This will be used as the application's "domain", in the
697     *        form of a prefix to any environment variables that may
698     *        override prefix detection and the directory name, inside the
699     *        standard share or data directories, where the software's
700     *        data files will be looked for.
701     * @param checkfile This is an (optional) magic file's path to check
702     *        for existence (and it must be located in the data directory,
703     *        under the share directory provided above). Its presence will
704     *        help determine the prefix found was correct. Pass @c NULL if
705     *        the check is not to be done.
706     *
707     * This function allows one to re-locate the application somewhere
708     * else after compilation, if the developer wishes for easier
709     * distribution of pre-compiled binaries.
710     *
711     * The prefix system is designed to locate where the given software is
712     * installed (under a common path prefix) at run time and then report
713     * specific locations of this prefix and common directories inside
714     * this prefix like the binary, library, data and locale directories,
715     * through the @c elm_app_*_get() family of functions.
716     *
717     * Call elm_app_info_set() early on before you change working
718     * directory or anything about @c argv[0], so it gets accurate
719     * information.
720     *
721     * It will then try and trace back which file @p mainfunc comes from,
722     * if provided, to determine the application's prefix directory.
723     *
724     * The @p dom parameter provides a string prefix to prepend before
725     * environment variables, allowing a fallback to @b specific
726     * environment variables to locate the software. You would most
727     * probably provide a lowercase string there, because it will also
728     * serve as directory domain, explained next. For environment
729     * variables purposes, this string is made uppercase. For example if
730     * @c "myapp" is provided as the prefix, then the program would expect
731     * @c "MYAPP_PREFIX" as a master environment variable to specify the
732     * exact install prefix for the software, or more specific environment
733     * variables like @c "MYAPP_BIN_DIR", @c "MYAPP_LIB_DIR", @c
734     * "MYAPP_DATA_DIR" and @c "MYAPP_LOCALE_DIR", which could be set by
735     * the user or scripts before launching. If not provided (@c NULL),
736     * environment variables will not be used to override compiled-in
737     * defaults or auto detections.
738     *
739     * The @p dom string also provides a subdirectory inside the system
740     * shared data directory for data files. For example, if the system
741     * directory is @c /usr/local/share, then this directory name is
742     * appended, creating @c /usr/local/share/myapp, if it @p was @c
743     * "myapp". It is expected the application installs data files in
744     * this directory.
745     *
746     * The @p checkfile is a file name or path of something inside the
747     * share or data directory to be used to test that the prefix
748     * detection worked. For example, your app will install a wallpaper
749     * image as @c /usr/local/share/myapp/images/wallpaper.jpg and so to
750     * check that this worked, provide @c "images/wallpaper.jpg" as the @p
751     * checkfile string.
752     *
753     * @see elm_app_compile_bin_dir_set()
754     * @see elm_app_compile_lib_dir_set()
755     * @see elm_app_compile_data_dir_set()
756     * @see elm_app_compile_locale_set()
757     * @see elm_app_prefix_dir_get()
758     * @see elm_app_bin_dir_get()
759     * @see elm_app_lib_dir_get()
760     * @see elm_app_data_dir_get()
761     * @see elm_app_locale_dir_get()
762     */
763    EAPI void         elm_app_info_set(void *mainfunc, const char *dom, const char *checkfile);
764
765    /**
766     * Provide information on the @b fallback application's binaries
767     * directory, on scenarios where they get overriden by
768     * elm_app_info_set().
769     *
770     * @param dir The path to the default binaries directory (compile time
771     * one)
772     *
773     * @note Elementary will as well use this path to determine actual
774     * names of binaries' directory paths, maybe changing it to be @c
775     * something/local/bin instead of @c something/bin, only, for
776     * example.
777     *
778     * @warning You should call this function @b before
779     * elm_app_info_set().
780     */
781    EAPI void         elm_app_compile_bin_dir_set(const char *dir);
782
783    /**
784     * Provide information on the @b fallback application's libraries
785     * directory, on scenarios where they get overriden by
786     * elm_app_info_set().
787     *
788     * @param dir The path to the default libraries directory (compile
789     * time one)
790     *
791     * @note Elementary will as well use this path to determine actual
792     * names of libraries' directory paths, maybe changing it to be @c
793     * something/lib32 or @c something/lib64 instead of @c something/lib,
794     * only, for example.
795     *
796     * @warning You should call this function @b before
797     * elm_app_info_set().
798     */
799    EAPI void         elm_app_compile_lib_dir_set(const char *dir);
800
801    /**
802     * Provide information on the @b fallback application's data
803     * directory, on scenarios where they get overriden by
804     * elm_app_info_set().
805     *
806     * @param dir The path to the default data directory (compile time
807     * one)
808     *
809     * @note Elementary will as well use this path to determine actual
810     * names of data directory paths, maybe changing it to be @c
811     * something/local/share instead of @c something/share, only, for
812     * example.
813     *
814     * @warning You should call this function @b before
815     * elm_app_info_set().
816     */
817    EAPI void         elm_app_compile_data_dir_set(const char *dir);
818
819    /**
820     * Provide information on the @b fallback application's locale
821     * directory, on scenarios where they get overriden by
822     * elm_app_info_set().
823     *
824     * @param dir The path to the default locale directory (compile time
825     * one)
826     *
827     * @warning You should call this function @b before
828     * elm_app_info_set().
829     */
830    EAPI void         elm_app_compile_locale_set(const char *dir);
831
832    /**
833     * Retrieve the application's run time prefix directory, as set by
834     * elm_app_info_set() and the way (environment) the application was
835     * run from.
836     *
837     * @return The directory prefix the application is actually using
838     */
839    EAPI const char  *elm_app_prefix_dir_get(void);
840
841    /**
842     * Retrieve the application's run time binaries prefix directory, as
843     * set by elm_app_info_set() and the way (environment) the application
844     * was run from.
845     *
846     * @return The binaries directory prefix the application is actually
847     * using
848     */
849    EAPI const char  *elm_app_bin_dir_get(void);
850
851    /**
852     * Retrieve the application's run time libraries prefix directory, as
853     * set by elm_app_info_set() and the way (environment) the application
854     * was run from.
855     *
856     * @return The libraries directory prefix the application is actually
857     * using
858     */
859    EAPI const char  *elm_app_lib_dir_get(void);
860
861    /**
862     * Retrieve the application's run time data prefix directory, as
863     * set by elm_app_info_set() and the way (environment) the application
864     * was run from.
865     *
866     * @return The data directory prefix the application is actually
867     * using
868     */
869    EAPI const char  *elm_app_data_dir_get(void);
870
871    /**
872     * Retrieve the application's run time locale prefix directory, as
873     * set by elm_app_info_set() and the way (environment) the application
874     * was run from.
875     *
876     * @return The locale directory prefix the application is actually
877     * using
878     */
879    EAPI const char  *elm_app_locale_dir_get(void);
880
881    EAPI void         elm_quicklaunch_mode_set(Eina_Bool ql_on);
882    EAPI Eina_Bool    elm_quicklaunch_mode_get(void);
883    EAPI int          elm_quicklaunch_init(int argc, char **argv);
884    EAPI int          elm_quicklaunch_sub_init(int argc, char **argv);
885    EAPI int          elm_quicklaunch_sub_shutdown(void);
886    EAPI int          elm_quicklaunch_shutdown(void);
887    EAPI void         elm_quicklaunch_seed(void);
888    EAPI Eina_Bool    elm_quicklaunch_prepare(int argc, char **argv);
889    EAPI Eina_Bool    elm_quicklaunch_fork(int argc, char **argv, char *cwd, void (postfork_func) (void *data), void *postfork_data);
890    EAPI void         elm_quicklaunch_cleanup(void);
891    EAPI int          elm_quicklaunch_fallback(int argc, char **argv);
892    EAPI char        *elm_quicklaunch_exe_path_get(const char *exe);
893
894    EAPI Eina_Bool    elm_need_efreet(void);
895    EAPI Eina_Bool    elm_need_e_dbus(void);
896
897    /**
898     * This must be called before any other function that handle with
899     * elm_thumb objects or ethumb_client instances.
900     *
901     * @ingroup Thumb
902     */
903    EAPI Eina_Bool    elm_need_ethumb(void);
904
905    /**
906     * Set a new policy's value (for a given policy group/identifier).
907     *
908     * @param policy policy identifier, as in @ref Elm_Policy.
909     * @param value policy value, which depends on the identifier
910     *
911     * @return @c EINA_TRUE on success or @c EINA_FALSE, on error.
912     *
913     * Elementary policies define applications' behavior,
914     * somehow. These behaviors are divided in policy groups (see
915     * #Elm_Policy enumeration). This call will emit the Ecore event
916     * #ELM_EVENT_POLICY_CHANGED, which can be hooked at with
917     * handlers. An #Elm_Event_Policy_Changed struct will be passed,
918     * then.
919     *
920     * @note Currently, we have only one policy identifier/group
921     * (#ELM_POLICY_QUIT), which has two possible values.
922     *
923     * @ingroup General
924     */
925    EAPI Eina_Bool    elm_policy_set(unsigned int policy, int value);
926
927    /**
928     * Gets the policy value set for given policy identifier.
929     *
930     * @param policy policy identifier, as in #Elm_Policy.
931     * @return The currently set policy value, for that
932     * identifier. Will be @c 0 if @p policy passed is invalid.
933     *
934     * @ingroup General
935     */
936    EAPI int          elm_policy_get(unsigned int policy);
937
938    /**
939     * Set a label of an object
940     *
941     * @param obj The Elementary object
942     * @param part The text part name to set (NULL for the default label)
943     * @param label The new text of the label
944     *
945     * @note Elementary objects may have many labels (e.g. Action Slider)
946     *
947     * @ingroup General
948     */
949    EAPI void         elm_object_text_part_set(Evas_Object *obj, const char *part, const char *label);
950
951 #define elm_object_text_set(obj, label) elm_object_text_part_set((obj), NULL, (label))
952
953    /**
954     * Get a label of an object
955     *
956     * @param obj The Elementary object
957     * @param part The text part name to get (NULL for the default label)
958     * @return text of the label or NULL for any error
959     *
960     * @note Elementary objects may have many labels (e.g. Action Slider)
961     *
962     * @ingroup General
963     */
964    EAPI const char  *elm_object_text_part_get(const Evas_Object *obj, const char *part);
965
966 #define elm_object_text_get(obj) elm_object_text_part_get((obj), NULL)
967
968    /**
969     * Set a content of an object
970     *
971     * @param obj The Elementary object
972     * @param part The content part name to set (NULL for the default content)
973     * @param content The new content of the object
974     *
975     * @note Elementary objects may have many contents
976     *
977     * @ingroup General
978     */
979    EAPI void elm_object_content_part_set(Evas_Object *obj, const char *part, Evas_Object *content);
980
981 #define elm_object_content_set(obj, content) elm_object_content_part_set((obj), NULL, (content))
982
983    /**
984     * Get a content of an object
985     *
986     * @param obj The Elementary object
987     * @param item The content part name to get (NULL for the default content)
988     * @return content of the object or NULL for any error
989     *
990     * @note Elementary objects may have many contents
991     *
992     * @ingroup General
993     */
994    EAPI Evas_Object *elm_object_content_part_get(const Evas_Object *obj, const char *part);
995
996 #define elm_object_content_get(obj) elm_object_content_part_get((obj), NULL)
997
998    /**
999     * Unset a content of an object
1000     *
1001     * @param obj The Elementary object
1002     * @param item The content part name to unset (NULL for the default content)
1003     *
1004     * @note Elementary objects may have many contents
1005     *
1006     * @ingroup General
1007     */
1008    EAPI Evas_Object *elm_object_content_part_unset(Evas_Object *obj, const char *part);
1009
1010 #define elm_object_content_unset(obj) elm_object_content_part_unset((obj), NULL)
1011
1012    /**
1013     * Set a content of an object item
1014     *
1015     * @param it The Elementary object item
1016     * @param part The content part name to set (NULL for the default content)
1017     * @param content The new content of the object item
1018     *
1019     * @note Elementary object items may have many contents
1020     *
1021     * @ingroup General
1022     */
1023    EAPI void elm_object_item_content_part_set(Elm_Object_Item *it, const char *part, Evas_Object *content);
1024
1025 #define elm_object_item_content_set(it, content) elm_object_item_content_part_set((it), NULL, (content))
1026
1027    /**
1028     * Get a content of an object item
1029     *
1030     * @param it The Elementary object item
1031     * @param part The content part name to unset (NULL for the default content)
1032     * @return content of the object item or NULL for any error
1033     *
1034     * @note Elementary object items may have many contents
1035     *
1036     * @ingroup General
1037     */
1038    EAPI Evas_Object *elm_object_item_content_part_get(const Elm_Object_Item *it, const char *item);
1039
1040 #define elm_object_item_content_get(it, content) elm_object_item_content_part_get((it), NULL, (content))
1041
1042    /**
1043     * Unset a content of an object item
1044     *
1045     * @param it The Elementary object item
1046     * @param part The content part name to unset (NULL for the default content)
1047     *
1048     * @note Elementary object items may have many contents
1049     *
1050     * @ingroup General
1051     */
1052    EAPI Evas_Object *elm_object_item_content_part_unset(Elm_Object_Item *it, const char *part);
1053
1054 #define elm_object_item_content_unset(it, content) elm_object_item_content_part_unset((it), (content))
1055
1056    /**
1057     * Set a label of an objec itemt
1058     *
1059     * @param it The Elementary object item
1060     * @param part The text part name to set (NULL for the default label)
1061     * @param label The new text of the label
1062     *
1063     * @note Elementary object items may have many labels
1064     *
1065     * @ingroup General
1066     */
1067    EAPI void elm_object_item_text_part_set(Elm_Object_Item *it, const char *part, const char *label);
1068
1069 #define elm_object_item_text_set(it, label) elm_object_item_text_part_set((it), NULL, (label))
1070
1071    /**
1072     * Get a label of an object
1073     *
1074     * @param it The Elementary object item
1075     * @param part The text part name to get (NULL for the default label)
1076     * @return text of the label or NULL for any error
1077     *
1078     * @note Elementary object items may have many labels
1079     *
1080     * @ingroup General
1081     */
1082    EAPI const char *elm_object_item_text_part_get(const Elm_Object_Item *it, const char *part);
1083
1084    /**
1085     * Set the text to read out when in accessibility mode
1086     *
1087     * @param obj The object which is to be described
1088     * @param txt The text that describes the widget to people with poor or no vision
1089     *
1090     * @ingroup General
1091     */
1092    EAPI void elm_object_access_info_set(Evas_Object *obj, const char *txt);
1093
1094    /**
1095     * Set the text to read out when in accessibility mode
1096     *
1097     * @param it The object item which is to be described
1098     * @param txt The text that describes the widget to people with poor or no vision
1099     *
1100     * @ingroup General
1101     */
1102    EAPI void elm_object_item_access_info_set(Elm_Object_Item *it, const char *txt);
1103
1104
1105 #define elm_object_item_text_get(it) elm_object_item_text_part_get((it), NULL)
1106
1107    /**
1108     * Get the data associated with an object item
1109     * @param it The object item
1110     * @return The data associated with @p it
1111     *
1112     * @ingroup General
1113     */
1114    EAPI void *elm_object_item_data_get(const Elm_Object_Item *it);
1115
1116    /**
1117     * Set the data associated with an object item
1118     * @param it The object item
1119     * @param data The data to be associated with @p it
1120     *
1121     * @ingroup General
1122     */
1123    EAPI void elm_object_item_data_set(Elm_Object_Item *it, void *data);
1124
1125    /**
1126     * @}
1127     */
1128
1129    /**
1130     * @defgroup Caches Caches
1131     *
1132     * These are functions which let one fine-tune some cache values for
1133     * Elementary applications, thus allowing for performance adjustments.
1134     *
1135     * @{
1136     */
1137
1138    /**
1139     * @brief Flush all caches.
1140     *
1141     * Frees all data that was in cache and is not currently being used to reduce
1142     * memory usage. This frees Edje's, Evas' and Eet's cache. This is equivalent
1143     * to calling all of the following functions:
1144     * @li edje_file_cache_flush()
1145     * @li edje_collection_cache_flush()
1146     * @li eet_clearcache()
1147     * @li evas_image_cache_flush()
1148     * @li evas_font_cache_flush()
1149     * @li evas_render_dump()
1150     * @note Evas caches are flushed for every canvas associated with a window.
1151     *
1152     * @ingroup Caches
1153     */
1154    EAPI void         elm_all_flush(void);
1155
1156    /**
1157     * Get the configured cache flush interval time
1158     *
1159     * This gets the globally configured cache flush interval time, in
1160     * ticks
1161     *
1162     * @return The cache flush interval time
1163     * @ingroup Caches
1164     *
1165     * @see elm_all_flush()
1166     */
1167    EAPI int          elm_cache_flush_interval_get(void);
1168
1169    /**
1170     * Set the configured cache flush interval time
1171     *
1172     * This sets the globally configured cache flush interval time, in ticks
1173     *
1174     * @param size The cache flush interval time
1175     * @ingroup Caches
1176     *
1177     * @see elm_all_flush()
1178     */
1179    EAPI void         elm_cache_flush_interval_set(int size);
1180
1181    /**
1182     * Set the configured cache flush interval time for all applications on the
1183     * display
1184     *
1185     * This sets the globally configured cache flush interval time -- in ticks
1186     * -- for all applications on the display.
1187     *
1188     * @param size The cache flush interval time
1189     * @ingroup Caches
1190     */
1191    EAPI void         elm_cache_flush_interval_all_set(int size);
1192
1193    /**
1194     * Get the configured cache flush enabled state
1195     *
1196     * This gets the globally configured cache flush state - if it is enabled
1197     * or not. When cache flushing is enabled, elementary will regularly
1198     * (see elm_cache_flush_interval_get() ) flush caches and dump data out of
1199     * memory and allow usage to re-seed caches and data in memory where it
1200     * can do so. An idle application will thus minimise its memory usage as
1201     * data will be freed from memory and not be re-loaded as it is idle and
1202     * not rendering or doing anything graphically right now.
1203     *
1204     * @return The cache flush state
1205     * @ingroup Caches
1206     *
1207     * @see elm_all_flush()
1208     */
1209    EAPI Eina_Bool    elm_cache_flush_enabled_get(void);
1210
1211    /**
1212     * Set the configured cache flush enabled state
1213     *
1214     * This sets the globally configured cache flush enabled state
1215     *
1216     * @param size The cache flush enabled state
1217     * @ingroup Caches
1218     *
1219     * @see elm_all_flush()
1220     */
1221    EAPI void         elm_cache_flush_enabled_set(Eina_Bool enabled);
1222
1223    /**
1224     * Set the configured cache flush enabled state for all applications on the
1225     * display
1226     *
1227     * This sets the globally configured cache flush enabled state for all
1228     * applications on the display.
1229     *
1230     * @param size The cache flush enabled state
1231     * @ingroup Caches
1232     */
1233    EAPI void         elm_cache_flush_enabled_all_set(Eina_Bool enabled);
1234
1235    /**
1236     * Get the configured font cache size
1237     *
1238     * This gets the globally configured font cache size, in bytes
1239     *
1240     * @return The font cache size
1241     * @ingroup Caches
1242     */
1243    EAPI int          elm_font_cache_get(void);
1244
1245    /**
1246     * Set the configured font cache size
1247     *
1248     * This sets the globally configured font cache size, in bytes
1249     *
1250     * @param size The font cache size
1251     * @ingroup Caches
1252     */
1253    EAPI void         elm_font_cache_set(int size);
1254
1255    /**
1256     * Set the configured font cache size for all applications on the
1257     * display
1258     *
1259     * This sets the globally configured font cache size -- in bytes
1260     * -- for all applications on the display.
1261     *
1262     * @param size The font cache size
1263     * @ingroup Caches
1264     */
1265    EAPI void         elm_font_cache_all_set(int size);
1266
1267    /**
1268     * Get the configured image cache size
1269     *
1270     * This gets the globally configured image cache size, in bytes
1271     *
1272     * @return The image cache size
1273     * @ingroup Caches
1274     */
1275    EAPI int          elm_image_cache_get(void);
1276
1277    /**
1278     * Set the configured image cache size
1279     *
1280     * This sets the globally configured image cache size, in bytes
1281     *
1282     * @param size The image cache size
1283     * @ingroup Caches
1284     */
1285    EAPI void         elm_image_cache_set(int size);
1286
1287    /**
1288     * Set the configured image cache size for all applications on the
1289     * display
1290     *
1291     * This sets the globally configured image cache size -- in bytes
1292     * -- for all applications on the display.
1293     *
1294     * @param size The image cache size
1295     * @ingroup Caches
1296     */
1297    EAPI void         elm_image_cache_all_set(int size);
1298
1299    /**
1300     * Get the configured edje file cache size.
1301     *
1302     * This gets the globally configured edje file cache size, in number
1303     * of files.
1304     *
1305     * @return The edje file cache size
1306     * @ingroup Caches
1307     */
1308    EAPI int          elm_edje_file_cache_get(void);
1309
1310    /**
1311     * Set the configured edje file cache size
1312     *
1313     * This sets the globally configured edje file cache size, in number
1314     * of files.
1315     *
1316     * @param size The edje file cache size
1317     * @ingroup Caches
1318     */
1319    EAPI void         elm_edje_file_cache_set(int size);
1320
1321    /**
1322     * Set the configured edje file cache size for all applications on the
1323     * display
1324     *
1325     * This sets the globally configured edje file cache size -- in number
1326     * of files -- for all applications on the display.
1327     *
1328     * @param size The edje file cache size
1329     * @ingroup Caches
1330     */
1331    EAPI void         elm_edje_file_cache_all_set(int size);
1332
1333    /**
1334     * Get the configured edje collections (groups) cache size.
1335     *
1336     * This gets the globally configured edje collections cache size, in
1337     * number of collections.
1338     *
1339     * @return The edje collections cache size
1340     * @ingroup Caches
1341     */
1342    EAPI int          elm_edje_collection_cache_get(void);
1343
1344    /**
1345     * Set the configured edje collections (groups) cache size
1346     *
1347     * This sets the globally configured edje collections cache size, in
1348     * number of collections.
1349     *
1350     * @param size The edje collections cache size
1351     * @ingroup Caches
1352     */
1353    EAPI void         elm_edje_collection_cache_set(int size);
1354
1355    /**
1356     * Set the configured edje collections (groups) cache size for all
1357     * applications on the display
1358     *
1359     * This sets the globally configured edje collections cache size -- in
1360     * number of collections -- for all applications on the display.
1361     *
1362     * @param size The edje collections cache size
1363     * @ingroup Caches
1364     */
1365    EAPI void         elm_edje_collection_cache_all_set(int size);
1366
1367    /**
1368     * @}
1369     */
1370
1371    /**
1372     * @defgroup Scaling Widget Scaling
1373     *
1374     * Different widgets can be scaled independently. These functions
1375     * allow you to manipulate this scaling on a per-widget basis. The
1376     * object and all its children get their scaling factors multiplied
1377     * by the scale factor set. This is multiplicative, in that if a
1378     * child also has a scale size set it is in turn multiplied by its
1379     * parent's scale size. @c 1.0 means “don't scale”, @c 2.0 is
1380     * double size, @c 0.5 is half, etc.
1381     *
1382     * @ref general_functions_example_page "This" example contemplates
1383     * some of these functions.
1384     */
1385
1386    /**
1387     * Get the global scaling factor
1388     *
1389     * This gets the globally configured scaling factor that is applied to all
1390     * objects.
1391     *
1392     * @return The scaling factor
1393     * @ingroup Scaling
1394     */
1395    EAPI double       elm_scale_get(void);
1396
1397    /**
1398     * Set the global scaling factor
1399     *
1400     * This sets the globally configured scaling factor that is applied to all
1401     * objects.
1402     *
1403     * @param scale The scaling factor to set
1404     * @ingroup Scaling
1405     */
1406    EAPI void         elm_scale_set(double scale);
1407
1408    /**
1409     * Set the global scaling factor for all applications on the display
1410     *
1411     * This sets the globally configured scaling factor that is applied to all
1412     * objects for all applications.
1413     * @param scale The scaling factor to set
1414     * @ingroup Scaling
1415     */
1416    EAPI void         elm_scale_all_set(double scale);
1417
1418    /**
1419     * Set the scaling factor for a given Elementary object
1420     *
1421     * @param obj The Elementary to operate on
1422     * @param scale Scale factor (from @c 0.0 up, with @c 1.0 meaning
1423     * no scaling)
1424     *
1425     * @ingroup Scaling
1426     */
1427    EAPI void         elm_object_scale_set(Evas_Object *obj, double scale) EINA_ARG_NONNULL(1);
1428
1429    /**
1430     * Get the scaling factor for a given Elementary object
1431     *
1432     * @param obj The object
1433     * @return The scaling factor set by elm_object_scale_set()
1434     *
1435     * @ingroup Scaling
1436     */
1437    EAPI double       elm_object_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1438
1439    /**
1440     * @defgroup Password_last_show Password last input show
1441     *
1442     * Last show feature of password mode enables user to view
1443     * the last input entered for few seconds before masking it.
1444     * These functions allow to set this feature in password mode
1445     * of entry widget and also allow to manipulate the duration
1446     * for which the input has to be visible.
1447     *
1448     * @{
1449     */
1450
1451    /**
1452     * Get show last setting of password mode.
1453     *
1454     * This gets the show last input setting of password mode which might be
1455     * enabled or disabled.
1456     *
1457     * @return @c EINA_TRUE, if the last input show setting is enabled, @c EINA_FALSE
1458     *            if it's disabled.
1459     * @ingroup Password_last_show
1460     */
1461    EAPI Eina_Bool elm_password_show_last_get(void);
1462
1463    /**
1464     * Set show last setting in password mode.
1465     *
1466     * This enables or disables show last setting of password mode.
1467     *
1468     * @param password_show_last If EINA_TRUE enable's last input show in password mode.
1469     * @see elm_password_show_last_timeout_set()
1470     * @ingroup Password_last_show
1471     */
1472    EAPI void elm_password_show_last_set(Eina_Bool password_show_last);
1473
1474    /**
1475     * Get's the timeout value in last show password mode.
1476     *
1477     * This gets the time out value for which the last input entered in password
1478     * mode will be visible.
1479     *
1480     * @return The timeout value of last show password mode.
1481     * @ingroup Password_last_show
1482     */
1483    EAPI double elm_password_show_last_timeout_get(void);
1484
1485    /**
1486     * Set's the timeout value in last show password mode.
1487     *
1488     * This sets the time out value for which the last input entered in password
1489     * mode will be visible.
1490     *
1491     * @param password_show_last_timeout The timeout value.
1492     * @see elm_password_show_last_set()
1493     * @ingroup Password_last_show
1494     */
1495    EAPI void elm_password_show_last_timeout_set(double password_show_last_timeout);
1496
1497    /**
1498     * @}
1499     */
1500
1501    /**
1502     * @defgroup UI-Mirroring Selective Widget mirroring
1503     *
1504     * These functions allow you to set ui-mirroring on specific
1505     * widgets or the whole interface. Widgets can be in one of two
1506     * modes, automatic and manual.  Automatic means they'll be changed
1507     * according to the system mirroring mode and manual means only
1508     * explicit changes will matter. You are not supposed to change
1509     * mirroring state of a widget set to automatic, will mostly work,
1510     * but the behavior is not really defined.
1511     *
1512     * @{
1513     */
1514
1515    EAPI Eina_Bool    elm_mirrored_get(void);
1516    EAPI void         elm_mirrored_set(Eina_Bool mirrored);
1517
1518    /**
1519     * Get the system mirrored mode. This determines the default mirrored mode
1520     * of widgets.
1521     *
1522     * @return EINA_TRUE if mirrored is set, EINA_FALSE otherwise
1523     */
1524    EAPI Eina_Bool    elm_object_mirrored_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1525
1526    /**
1527     * Set the system mirrored mode. This determines the default mirrored mode
1528     * of widgets.
1529     *
1530     * @param mirrored EINA_TRUE to set mirrored mode, EINA_FALSE to unset it.
1531     */
1532    EAPI void         elm_object_mirrored_set(Evas_Object *obj, Eina_Bool mirrored) EINA_ARG_NONNULL(1);
1533
1534    /**
1535     * Returns the widget's mirrored mode setting.
1536     *
1537     * @param obj The widget.
1538     * @return mirrored mode setting of the object.
1539     *
1540     **/
1541    EAPI Eina_Bool    elm_object_mirrored_automatic_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1542
1543    /**
1544     * Sets the widget's mirrored mode setting.
1545     * When widget in automatic mode, it follows the system mirrored mode set by
1546     * elm_mirrored_set().
1547     * @param obj The widget.
1548     * @param automatic EINA_TRUE for auto mirrored mode. EINA_FALSE for manual.
1549     */
1550    EAPI void         elm_object_mirrored_automatic_set(Evas_Object *obj, Eina_Bool automatic) EINA_ARG_NONNULL(1);
1551
1552    /**
1553     * @}
1554     */
1555
1556    /**
1557     * Set the style to use by a widget
1558     *
1559     * Sets the style name that will define the appearance of a widget. Styles
1560     * vary from widget to widget and may also be defined by other themes
1561     * by means of extensions and overlays.
1562     *
1563     * @param obj The Elementary widget to style
1564     * @param style The style name to use
1565     *
1566     * @see elm_theme_extension_add()
1567     * @see elm_theme_extension_del()
1568     * @see elm_theme_overlay_add()
1569     * @see elm_theme_overlay_del()
1570     *
1571     * @ingroup Styles
1572     */
1573    EAPI void         elm_object_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
1574    /**
1575     * Get the style used by the widget
1576     *
1577     * This gets the style being used for that widget. Note that the string
1578     * pointer is only valid as longas the object is valid and the style doesn't
1579     * change.
1580     *
1581     * @param obj The Elementary widget to query for its style
1582     * @return The style name used
1583     *
1584     * @see elm_object_style_set()
1585     *
1586     * @ingroup Styles
1587     */
1588    EAPI const char  *elm_object_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1589
1590    /**
1591     * @defgroup Styles Styles
1592     *
1593     * Widgets can have different styles of look. These generic API's
1594     * set styles of widgets, if they support them (and if the theme(s)
1595     * do).
1596     *
1597     * @ref general_functions_example_page "This" example contemplates
1598     * some of these functions.
1599     */
1600
1601    /**
1602     * Set the disabled state of an Elementary object.
1603     *
1604     * @param obj The Elementary object to operate on
1605     * @param disabled The state to put in in: @c EINA_TRUE for
1606     *        disabled, @c EINA_FALSE for enabled
1607     *
1608     * Elementary objects can be @b disabled, in which state they won't
1609     * receive input and, in general, will be themed differently from
1610     * their normal state, usually greyed out. Useful for contexts
1611     * where you don't want your users to interact with some of the
1612     * parts of you interface.
1613     *
1614     * This sets the state for the widget, either disabling it or
1615     * enabling it back.
1616     *
1617     * @ingroup Styles
1618     */
1619    EAPI void         elm_object_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
1620
1621    /**
1622     * Get the disabled state of an Elementary object.
1623     *
1624     * @param obj The Elementary object to operate on
1625     * @return @c EINA_TRUE, if the widget is disabled, @c EINA_FALSE
1626     *            if it's enabled (or on errors)
1627     *
1628     * This gets the state of the widget, which might be enabled or disabled.
1629     *
1630     * @ingroup Styles
1631     */
1632    EAPI Eina_Bool    elm_object_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1633
1634    /**
1635     * @defgroup WidgetNavigation Widget Tree Navigation.
1636     *
1637     * How to check if an Evas Object is an Elementary widget? How to
1638     * get the first elementary widget that is parent of the given
1639     * object?  These are all covered in widget tree navigation.
1640     *
1641     * @ref general_functions_example_page "This" example contemplates
1642     * some of these functions.
1643     */
1644
1645    /**
1646     * Check if the given Evas Object is an Elementary widget.
1647     *
1648     * @param obj the object to query.
1649     * @return @c EINA_TRUE if it is an elementary widget variant,
1650     *         @c EINA_FALSE otherwise
1651     * @ingroup WidgetNavigation
1652     */
1653    EAPI Eina_Bool    elm_object_widget_check(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1654
1655    /**
1656     * Get the first parent of the given object that is an Elementary
1657     * widget.
1658     *
1659     * @param obj the Elementary object to query parent from.
1660     * @return the parent object that is an Elementary widget, or @c
1661     *         NULL, if it was not found.
1662     *
1663     * Use this to query for an object's parent widget.
1664     *
1665     * @note Most of Elementary users wouldn't be mixing non-Elementary
1666     * smart objects in the objects tree of an application, as this is
1667     * an advanced usage of Elementary with Evas. So, except for the
1668     * application's window, which is the root of that tree, all other
1669     * objects would have valid Elementary widget parents.
1670     *
1671     * @ingroup WidgetNavigation
1672     */
1673    EAPI Evas_Object *elm_object_parent_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1674
1675    /**
1676     * Get the top level parent of an Elementary widget.
1677     *
1678     * @param obj The object to query.
1679     * @return The top level Elementary widget, or @c NULL if parent cannot be
1680     * found.
1681     * @ingroup WidgetNavigation
1682     */
1683    EAPI Evas_Object *elm_object_top_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1684
1685    /**
1686     * Get the string that represents this Elementary widget.
1687     *
1688     * @note Elementary is weird and exposes itself as a single
1689     *       Evas_Object_Smart_Class of type "elm_widget", so
1690     *       evas_object_type_get() always return that, making debug and
1691     *       language bindings hard. This function tries to mitigate this
1692     *       problem, but the solution is to change Elementary to use
1693     *       proper inheritance.
1694     *
1695     * @param obj the object to query.
1696     * @return Elementary widget name, or @c NULL if not a valid widget.
1697     * @ingroup WidgetNavigation
1698     */
1699    EAPI const char  *elm_object_widget_type_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1700
1701    /**
1702     * @defgroup Config Elementary Config
1703     *
1704     * Elementary configuration is formed by a set options bounded to a
1705     * given @ref Profile profile, like @ref Theme theme, @ref Fingers
1706     * "finger size", etc. These are functions with which one syncronizes
1707     * changes made to those values to the configuration storing files, de
1708     * facto. You most probably don't want to use the functions in this
1709     * group unlees you're writing an elementary configuration manager.
1710     *
1711     * @{
1712     */
1713
1714    /**
1715     * Save back Elementary's configuration, so that it will persist on
1716     * future sessions.
1717     *
1718     * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
1719     * @ingroup Config
1720     *
1721     * This function will take effect -- thus, do I/O -- immediately. Use
1722     * it when you want to apply all configuration changes at once. The
1723     * current configuration set will get saved onto the current profile
1724     * configuration file.
1725     *
1726     */
1727    EAPI Eina_Bool    elm_config_save(void);
1728
1729    /**
1730     * Reload Elementary's configuration, bounded to current selected
1731     * profile.
1732     *
1733     * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
1734     * @ingroup Config
1735     *
1736     * Useful when you want to force reloading of configuration values for
1737     * a profile. If one removes user custom configuration directories,
1738     * for example, it will force a reload with system values insted.
1739     *
1740     */
1741    EAPI void         elm_config_reload(void);
1742
1743    /**
1744     * @}
1745     */
1746
1747    /**
1748     * @defgroup Profile Elementary Profile
1749     *
1750     * Profiles are pre-set options that affect the whole look-and-feel of
1751     * Elementary-based applications. There are, for example, profiles
1752     * aimed at desktop computer applications and others aimed at mobile,
1753     * touchscreen-based ones. You most probably don't want to use the
1754     * functions in this group unlees you're writing an elementary
1755     * configuration manager.
1756     *
1757     * @{
1758     */
1759
1760    /**
1761     * Get Elementary's profile in use.
1762     *
1763     * This gets the global profile that is applied to all Elementary
1764     * applications.
1765     *
1766     * @return The profile's name
1767     * @ingroup Profile
1768     */
1769    EAPI const char  *elm_profile_current_get(void);
1770
1771    /**
1772     * Get an Elementary's profile directory path in the filesystem. One
1773     * may want to fetch a system profile's dir or an user one (fetched
1774     * inside $HOME).
1775     *
1776     * @param profile The profile's name
1777     * @param is_user Whether to lookup for an user profile (@c EINA_TRUE)
1778     *                or a system one (@c EINA_FALSE)
1779     * @return The profile's directory path.
1780     * @ingroup Profile
1781     *
1782     * @note You must free it with elm_profile_dir_free().
1783     */
1784    EAPI const char  *elm_profile_dir_get(const char *profile, Eina_Bool is_user);
1785
1786    /**
1787     * Free an Elementary's profile directory path, as returned by
1788     * elm_profile_dir_get().
1789     *
1790     * @param p_dir The profile's path
1791     * @ingroup Profile
1792     *
1793     */
1794    EAPI void         elm_profile_dir_free(const char *p_dir);
1795
1796    /**
1797     * Get Elementary's list of available profiles.
1798     *
1799     * @return The profiles list. List node data are the profile name
1800     *         strings.
1801     * @ingroup Profile
1802     *
1803     * @note One must free this list, after usage, with the function
1804     *       elm_profile_list_free().
1805     */
1806    EAPI Eina_List   *elm_profile_list_get(void);
1807
1808    /**
1809     * Free Elementary's list of available profiles.
1810     *
1811     * @param l The profiles list, as returned by elm_profile_list_get().
1812     * @ingroup Profile
1813     *
1814     */
1815    EAPI void         elm_profile_list_free(Eina_List *l);
1816
1817    /**
1818     * Set Elementary's profile.
1819     *
1820     * This sets the global profile that is applied to Elementary
1821     * applications. Just the process the call comes from will be
1822     * affected.
1823     *
1824     * @param profile The profile's name
1825     * @ingroup Profile
1826     *
1827     */
1828    EAPI void         elm_profile_set(const char *profile);
1829
1830    /**
1831     * Set Elementary's profile.
1832     *
1833     * This sets the global profile that is applied to all Elementary
1834     * applications. All running Elementary windows will be affected.
1835     *
1836     * @param profile The profile's name
1837     * @ingroup Profile
1838     *
1839     */
1840    EAPI void         elm_profile_all_set(const char *profile);
1841
1842    /**
1843     * @}
1844     */
1845
1846    /**
1847     * @defgroup Engine Elementary Engine
1848     *
1849     * These are functions setting and querying which rendering engine
1850     * Elementary will use for drawing its windows' pixels.
1851     *
1852     * The following are the available engines:
1853     * @li "software_x11"
1854     * @li "fb"
1855     * @li "directfb"
1856     * @li "software_16_x11"
1857     * @li "software_8_x11"
1858     * @li "xrender_x11"
1859     * @li "opengl_x11"
1860     * @li "software_gdi"
1861     * @li "software_16_wince_gdi"
1862     * @li "sdl"
1863     * @li "software_16_sdl"
1864     * @li "opengl_sdl"
1865     * @li "buffer"
1866     *
1867     * @{
1868     */
1869
1870    /**
1871     * @brief Get Elementary's rendering engine in use.
1872     *
1873     * @return The rendering engine's name
1874     * @note there's no need to free the returned string, here.
1875     *
1876     * This gets the global rendering engine that is applied to all Elementary
1877     * applications.
1878     *
1879     * @see elm_engine_set()
1880     */
1881    EAPI const char  *elm_engine_current_get(void);
1882
1883    /**
1884     * @brief Set Elementary's rendering engine for use.
1885     *
1886     * @param engine The rendering engine's name
1887     *
1888     * This sets global rendering engine that is applied to all Elementary
1889     * applications. Note that it will take effect only to Elementary windows
1890     * created after this is called.
1891     *
1892     * @see elm_win_add()
1893     */
1894    EAPI void         elm_engine_set(const char *engine);
1895
1896    /**
1897     * @}
1898     */
1899
1900    /**
1901     * @defgroup Fonts Elementary Fonts
1902     *
1903     * These are functions dealing with font rendering, selection and the
1904     * like for Elementary applications. One might fetch which system
1905     * fonts are there to use and set custom fonts for individual classes
1906     * of UI items containing text (text classes).
1907     *
1908     * @{
1909     */
1910
1911   typedef struct _Elm_Text_Class
1912     {
1913        const char *name;
1914        const char *desc;
1915     } Elm_Text_Class;
1916
1917   typedef struct _Elm_Font_Overlay
1918     {
1919        const char     *text_class;
1920        const char     *font;
1921        Evas_Font_Size  size;
1922     } Elm_Font_Overlay;
1923
1924   typedef struct _Elm_Font_Properties
1925     {
1926        const char *name;
1927        Eina_List  *styles;
1928     } Elm_Font_Properties;
1929
1930    /**
1931     * Get Elementary's list of supported text classes.
1932     *
1933     * @return The text classes list, with @c Elm_Text_Class blobs as data.
1934     * @ingroup Fonts
1935     *
1936     * Release the list with elm_text_classes_list_free().
1937     */
1938    EAPI const Eina_List     *elm_text_classes_list_get(void);
1939
1940    /**
1941     * Free Elementary's list of supported text classes.
1942     *
1943     * @ingroup Fonts
1944     *
1945     * @see elm_text_classes_list_get().
1946     */
1947    EAPI void                 elm_text_classes_list_free(const Eina_List *list);
1948
1949    /**
1950     * Get Elementary's list of font overlays, set with
1951     * elm_font_overlay_set().
1952     *
1953     * @return The font overlays list, with @c Elm_Font_Overlay blobs as
1954     * data.
1955     *
1956     * @ingroup Fonts
1957     *
1958     * For each text class, one can set a <b>font overlay</b> for it,
1959     * overriding the default font properties for that class coming from
1960     * the theme in use. There is no need to free this list.
1961     *
1962     * @see elm_font_overlay_set() and elm_font_overlay_unset().
1963     */
1964    EAPI const Eina_List     *elm_font_overlay_list_get(void);
1965
1966    /**
1967     * Set a font overlay for a given Elementary text class.
1968     *
1969     * @param text_class Text class name
1970     * @param font Font name and style string
1971     * @param size Font size
1972     *
1973     * @ingroup Fonts
1974     *
1975     * @p font has to be in the format returned by
1976     * elm_font_fontconfig_name_get(). @see elm_font_overlay_list_get()
1977     * and elm_font_overlay_unset().
1978     */
1979    EAPI void                 elm_font_overlay_set(const char *text_class, const char *font, Evas_Font_Size size);
1980
1981    /**
1982     * Unset a font overlay for a given Elementary text class.
1983     *
1984     * @param text_class Text class name
1985     *
1986     * @ingroup Fonts
1987     *
1988     * This will bring back text elements belonging to text class
1989     * @p text_class back to their default font settings.
1990     */
1991    EAPI void                 elm_font_overlay_unset(const char *text_class);
1992
1993    /**
1994     * Apply the changes made with elm_font_overlay_set() and
1995     * elm_font_overlay_unset() on the current Elementary window.
1996     *
1997     * @ingroup Fonts
1998     *
1999     * This applies all font overlays set to all objects in the UI.
2000     */
2001    EAPI void                 elm_font_overlay_apply(void);
2002
2003    /**
2004     * Apply the changes made with elm_font_overlay_set() and
2005     * elm_font_overlay_unset() on all Elementary application windows.
2006     *
2007     * @ingroup Fonts
2008     *
2009     * This applies all font overlays set to all objects in the UI.
2010     */
2011    EAPI void                 elm_font_overlay_all_apply(void);
2012
2013    /**
2014     * Translate a font (family) name string in fontconfig's font names
2015     * syntax into an @c Elm_Font_Properties struct.
2016     *
2017     * @param font The font name and styles string
2018     * @return the font properties struct
2019     *
2020     * @ingroup Fonts
2021     *
2022     * @note The reverse translation can be achived with
2023     * elm_font_fontconfig_name_get(), for one style only (single font
2024     * instance, not family).
2025     */
2026    EAPI Elm_Font_Properties *elm_font_properties_get(const char *font) EINA_ARG_NONNULL(1);
2027
2028    /**
2029     * Free font properties return by elm_font_properties_get().
2030     *
2031     * @param efp the font properties struct
2032     *
2033     * @ingroup Fonts
2034     */
2035    EAPI void                 elm_font_properties_free(Elm_Font_Properties *efp) EINA_ARG_NONNULL(1);
2036
2037    /**
2038     * Translate a font name, bound to a style, into fontconfig's font names
2039     * syntax.
2040     *
2041     * @param name The font (family) name
2042     * @param style The given style (may be @c NULL)
2043     *
2044     * @return the font name and style string
2045     *
2046     * @ingroup Fonts
2047     *
2048     * @note The reverse translation can be achived with
2049     * elm_font_properties_get(), for one style only (single font
2050     * instance, not family).
2051     */
2052    EAPI const char          *elm_font_fontconfig_name_get(const char *name, const char *style) EINA_ARG_NONNULL(1);
2053
2054    /**
2055     * Free the font string return by elm_font_fontconfig_name_get().
2056     *
2057     * @param efp the font properties struct
2058     *
2059     * @ingroup Fonts
2060     */
2061    EAPI void                 elm_font_fontconfig_name_free(const char *name) EINA_ARG_NONNULL(1);
2062
2063    /**
2064     * Create a font hash table of available system fonts.
2065     *
2066     * One must call it with @p list being the return value of
2067     * evas_font_available_list(). The hash will be indexed by font
2068     * (family) names, being its values @c Elm_Font_Properties blobs.
2069     *
2070     * @param list The list of available system fonts, as returned by
2071     * evas_font_available_list().
2072     * @return the font hash.
2073     *
2074     * @ingroup Fonts
2075     *
2076     * @note The user is supposed to get it populated at least with 3
2077     * default font families (Sans, Serif, Monospace), which should be
2078     * present on most systems.
2079     */
2080    EAPI Eina_Hash           *elm_font_available_hash_add(Eina_List *list);
2081
2082    /**
2083     * Free the hash return by elm_font_available_hash_add().
2084     *
2085     * @param hash the hash to be freed.
2086     *
2087     * @ingroup Fonts
2088     */
2089    EAPI void                 elm_font_available_hash_del(Eina_Hash *hash);
2090
2091    /**
2092     * @}
2093     */
2094
2095    /**
2096     * @defgroup Fingers Fingers
2097     *
2098     * Elementary is designed to be finger-friendly for touchscreens,
2099     * and so in addition to scaling for display resolution, it can
2100     * also scale based on finger "resolution" (or size). You can then
2101     * customize the granularity of the areas meant to receive clicks
2102     * on touchscreens.
2103     *
2104     * Different profiles may have pre-set values for finger sizes.
2105     *
2106     * @ref general_functions_example_page "This" example contemplates
2107     * some of these functions.
2108     *
2109     * @{
2110     */
2111
2112    /**
2113     * Get the configured "finger size"
2114     *
2115     * @return The finger size
2116     *
2117     * This gets the globally configured finger size, <b>in pixels</b>
2118     *
2119     * @ingroup Fingers
2120     */
2121    EAPI Evas_Coord       elm_finger_size_get(void);
2122
2123    /**
2124     * Set the configured finger size
2125     *
2126     * This sets the globally configured finger size in pixels
2127     *
2128     * @param size The finger size
2129     * @ingroup Fingers
2130     */
2131    EAPI void             elm_finger_size_set(Evas_Coord size);
2132
2133    /**
2134     * Set the configured finger size for all applications on the display
2135     *
2136     * This sets the globally configured finger size in pixels for all
2137     * applications on the display
2138     *
2139     * @param size The finger size
2140     * @ingroup Fingers
2141     */
2142    EAPI void             elm_finger_size_all_set(Evas_Coord size);
2143
2144    /**
2145     * @}
2146     */
2147
2148    /**
2149     * @defgroup Focus Focus
2150     *
2151     * An Elementary application has, at all times, one (and only one)
2152     * @b focused object. This is what determines where the input
2153     * events go to within the application's window. Also, focused
2154     * objects can be decorated differently, in order to signal to the
2155     * user where the input is, at a given moment.
2156     *
2157     * Elementary applications also have the concept of <b>focus
2158     * chain</b>: one can cycle through all the windows' focusable
2159     * objects by input (tab key) or programmatically. The default
2160     * focus chain for an application is the one define by the order in
2161     * which the widgets where added in code. One will cycle through
2162     * top level widgets, and, for each one containg sub-objects, cycle
2163     * through them all, before returning to the level
2164     * above. Elementary also allows one to set @b custom focus chains
2165     * for their applications.
2166     *
2167     * Besides the focused decoration a widget may exhibit, when it
2168     * gets focus, Elementary has a @b global focus highlight object
2169     * that can be enabled for a window. If one chooses to do so, this
2170     * extra highlight effect will surround the current focused object,
2171     * too.
2172     *
2173     * @note Some Elementary widgets are @b unfocusable, after
2174     * creation, by their very nature: they are not meant to be
2175     * interacted with input events, but are there just for visual
2176     * purposes.
2177     *
2178     * @ref general_functions_example_page "This" example contemplates
2179     * some of these functions.
2180     */
2181
2182    /**
2183     * Get the enable status of the focus highlight
2184     *
2185     * This gets whether the highlight on focused objects is enabled or not
2186     * @ingroup Focus
2187     */
2188    EAPI Eina_Bool        elm_focus_highlight_enabled_get(void);
2189
2190    /**
2191     * Set the enable status of the focus highlight
2192     *
2193     * Set whether to show or not the highlight on focused objects
2194     * @param enable Enable highlight if EINA_TRUE, disable otherwise
2195     * @ingroup Focus
2196     */
2197    EAPI void             elm_focus_highlight_enabled_set(Eina_Bool enable);
2198
2199    /**
2200     * Get the enable status of the highlight animation
2201     *
2202     * Get whether the focus highlight, if enabled, will animate its switch from
2203     * one object to the next
2204     * @ingroup Focus
2205     */
2206    EAPI Eina_Bool        elm_focus_highlight_animate_get(void);
2207
2208    /**
2209     * Set the enable status of the highlight animation
2210     *
2211     * Set whether the focus highlight, if enabled, will animate its switch from
2212     * one object to the next
2213     * @param animate Enable animation if EINA_TRUE, disable otherwise
2214     * @ingroup Focus
2215     */
2216    EAPI void             elm_focus_highlight_animate_set(Eina_Bool animate);
2217
2218    /**
2219     * Get the whether an Elementary object has the focus or not.
2220     *
2221     * @param obj The Elementary object to get the information from
2222     * @return @c EINA_TRUE, if the object is focused, @c EINA_FALSE if
2223     *            not (and on errors).
2224     *
2225     * @see elm_object_focus_set()
2226     *
2227     * @ingroup Focus
2228     */
2229    EAPI Eina_Bool        elm_object_focus_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2230
2231    /**
2232     * Set/unset focus to a given Elementary object.
2233     *
2234     * @param obj The Elementary object to operate on.
2235     * @param enable @c EINA_TRUE Set focus to a given object,
2236     *               @c EINA_FALSE Unset focus to a given object.
2237     *
2238     * @note When you set focus to this object, if it can handle focus, will
2239     * take the focus away from the one who had it previously and will, for
2240     * now on, be the one receiving input events. Unsetting focus will remove
2241     * the focus from @p obj, passing it back to the previous element in the
2242     * focus chain list.
2243     *
2244     * @see elm_object_focus_get(), elm_object_focus_custom_chain_get()
2245     *
2246     * @ingroup Focus
2247     */
2248    EAPI void             elm_object_focus_set(Evas_Object *obj, Eina_Bool focus) EINA_ARG_NONNULL(1);
2249
2250    /**
2251     * Make a given Elementary object the focused one.
2252     *
2253     * @param obj The Elementary object to make focused.
2254     *
2255     * @note This object, if it can handle focus, will take the focus
2256     * away from the one who had it previously and will, for now on, be
2257     * the one receiving input events.
2258     *
2259     * @see elm_object_focus_get()
2260     * @deprecated use elm_object_focus_set() instead.
2261     *
2262     * @ingroup Focus
2263     */
2264    EINA_DEPRECATED EAPI void             elm_object_focus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2265
2266    /**
2267     * Remove the focus from an Elementary object
2268     *
2269     * @param obj The Elementary to take focus from
2270     *
2271     * This removes the focus from @p obj, passing it back to the
2272     * previous element in the focus chain list.
2273     *
2274     * @see elm_object_focus() and elm_object_focus_custom_chain_get()
2275     * @deprecated use elm_object_focus_set() instead.
2276     *
2277     * @ingroup Focus
2278     */
2279    EINA_DEPRECATED EAPI void             elm_object_unfocus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2280
2281    /**
2282     * Set the ability for an Element object to be focused
2283     *
2284     * @param obj The Elementary object to operate on
2285     * @param enable @c EINA_TRUE if the object can be focused, @c
2286     *        EINA_FALSE if not (and on errors)
2287     *
2288     * This sets whether the object @p obj is able to take focus or
2289     * not. Unfocusable objects do nothing when programmatically
2290     * focused, being the nearest focusable parent object the one
2291     * really getting focus. Also, when they receive mouse input, they
2292     * will get the event, but not take away the focus from where it
2293     * was previously.
2294     *
2295     * @ingroup Focus
2296     */
2297    EAPI void             elm_object_focus_allow_set(Evas_Object *obj, Eina_Bool enable) EINA_ARG_NONNULL(1);
2298
2299    /**
2300     * Get whether an Elementary object is focusable or not
2301     *
2302     * @param obj The Elementary object to operate on
2303     * @return @c EINA_TRUE if the object is allowed to be focused, @c
2304     *             EINA_FALSE if not (and on errors)
2305     *
2306     * @note Objects which are meant to be interacted with by input
2307     * events are created able to be focused, by default. All the
2308     * others are not.
2309     *
2310     * @ingroup Focus
2311     */
2312    EAPI Eina_Bool        elm_object_focus_allow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2313
2314    /**
2315     * Set custom focus chain.
2316     *
2317     * This function overwrites any previous custom focus chain within
2318     * the list of objects. The previous list will be deleted and this list
2319     * will be managed by elementary. After it is set, don't modify it.
2320     *
2321     * @note On focus cycle, only will be evaluated children of this container.
2322     *
2323     * @param obj The container object
2324     * @param objs Chain of objects to pass focus
2325     * @ingroup Focus
2326     */
2327    EAPI void             elm_object_focus_custom_chain_set(Evas_Object *obj, Eina_List *objs) EINA_ARG_NONNULL(1);
2328
2329    /**
2330     * Unset a custom focus chain on a given Elementary widget
2331     *
2332     * @param obj The container object to remove focus chain from
2333     *
2334     * Any focus chain previously set on @p obj (for its child objects)
2335     * is removed entirely after this call.
2336     *
2337     * @ingroup Focus
2338     */
2339    EAPI void             elm_object_focus_custom_chain_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
2340
2341    /**
2342     * Get custom focus chain
2343     *
2344     * @param obj The container object
2345     * @ingroup Focus
2346     */
2347    EAPI const Eina_List *elm_object_focus_custom_chain_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2348
2349    /**
2350     * Append object to custom focus chain.
2351     *
2352     * @note If relative_child equal to NULL or not in custom chain, the object
2353     * will be added in end.
2354     *
2355     * @note On focus cycle, only will be evaluated children of this container.
2356     *
2357     * @param obj The container object
2358     * @param child The child to be added in custom chain
2359     * @param relative_child The relative object to position the child
2360     * @ingroup Focus
2361     */
2362    EAPI void             elm_object_focus_custom_chain_append(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2363
2364    /**
2365     * Prepend object to custom focus chain.
2366     *
2367     * @note If relative_child equal to NULL or not in custom chain, the object
2368     * will be added in begin.
2369     *
2370     * @note On focus cycle, only will be evaluated children of this container.
2371     *
2372     * @param obj The container object
2373     * @param child The child to be added in custom chain
2374     * @param relative_child The relative object to position the child
2375     * @ingroup Focus
2376     */
2377    EAPI void             elm_object_focus_custom_chain_prepend(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2378
2379    /**
2380     * Give focus to next object in object tree.
2381     *
2382     * Give focus to next object in focus chain of one object sub-tree.
2383     * If the last object of chain already have focus, the focus will go to the
2384     * first object of chain.
2385     *
2386     * @param obj The object root of sub-tree
2387     * @param dir Direction to cycle the focus
2388     *
2389     * @ingroup Focus
2390     */
2391    EAPI void             elm_object_focus_cycle(Evas_Object *obj, Elm_Focus_Direction dir) EINA_ARG_NONNULL(1);
2392
2393    /**
2394     * Give focus to near object in one direction.
2395     *
2396     * Give focus to near object in direction of one object.
2397     * If none focusable object in given direction, the focus will not change.
2398     *
2399     * @param obj The reference object
2400     * @param x Horizontal component of direction to focus
2401     * @param y Vertical component of direction to focus
2402     *
2403     * @ingroup Focus
2404     */
2405    EAPI void             elm_object_focus_direction_go(Evas_Object *obj, int x, int y) EINA_ARG_NONNULL(1);
2406
2407    /**
2408     * Make the elementary object and its children to be unfocusable
2409     * (or focusable).
2410     *
2411     * @param obj The Elementary object to operate on
2412     * @param tree_unfocusable @c EINA_TRUE for unfocusable,
2413     *        @c EINA_FALSE for focusable.
2414     *
2415     * This sets whether the object @p obj and its children objects
2416     * are able to take focus or not. If the tree is set as unfocusable,
2417     * newest focused object which is not in this tree will get focus.
2418     * This API can be helpful for an object to be deleted.
2419     * When an object will be deleted soon, it and its children may not
2420     * want to get focus (by focus reverting or by other focus controls).
2421     * Then, just use this API before deleting.
2422     *
2423     * @see elm_object_tree_unfocusable_get()
2424     *
2425     * @ingroup Focus
2426     */
2427    EAPI void             elm_object_tree_unfocusable_set(Evas_Object *obj, Eina_Bool tree_unfocusable); EINA_ARG_NONNULL(1);
2428
2429    /**
2430     * Get whether an Elementary object and its children are unfocusable or not.
2431     *
2432     * @param obj The Elementary object to get the information from
2433     * @return @c EINA_TRUE, if the tree is unfocussable,
2434     *         @c EINA_FALSE if not (and on errors).
2435     *
2436     * @see elm_object_tree_unfocusable_set()
2437     *
2438     * @ingroup Focus
2439     */
2440    EAPI Eina_Bool        elm_object_tree_unfocusable_get(const Evas_Object *obj); EINA_ARG_NONNULL(1);
2441
2442    /**
2443     * @defgroup Scrolling Scrolling
2444     *
2445     * These are functions setting how scrollable views in Elementary
2446     * widgets should behave on user interaction.
2447     *
2448     * @{
2449     */
2450
2451    /**
2452     * Get whether scrollers should bounce when they reach their
2453     * viewport's edge during a scroll.
2454     *
2455     * @return the thumb scroll bouncing state
2456     *
2457     * This is the default behavior for touch screens, in general.
2458     * @ingroup Scrolling
2459     */
2460    EAPI Eina_Bool        elm_scroll_bounce_enabled_get(void);
2461
2462    /**
2463     * Set whether scrollers should bounce when they reach their
2464     * viewport's edge during a scroll.
2465     *
2466     * @param enabled the thumb scroll bouncing state
2467     *
2468     * @see elm_thumbscroll_bounce_enabled_get()
2469     * @ingroup Scrolling
2470     */
2471    EAPI void             elm_scroll_bounce_enabled_set(Eina_Bool enabled);
2472
2473    /**
2474     * Set whether scrollers should bounce when they reach their
2475     * viewport's edge during a scroll, for all Elementary application
2476     * windows.
2477     *
2478     * @param enabled the thumb scroll bouncing state
2479     *
2480     * @see elm_thumbscroll_bounce_enabled_get()
2481     * @ingroup Scrolling
2482     */
2483    EAPI void             elm_scroll_bounce_enabled_all_set(Eina_Bool enabled);
2484
2485    /**
2486     * Get the amount of inertia a scroller will impose at bounce
2487     * animations.
2488     *
2489     * @return the thumb scroll bounce friction
2490     *
2491     * @ingroup Scrolling
2492     */
2493    EAPI double           elm_scroll_bounce_friction_get(void);
2494
2495    /**
2496     * Set the amount of inertia a scroller will impose at bounce
2497     * animations.
2498     *
2499     * @param friction the thumb scroll bounce friction
2500     *
2501     * @see elm_thumbscroll_bounce_friction_get()
2502     * @ingroup Scrolling
2503     */
2504    EAPI void             elm_scroll_bounce_friction_set(double friction);
2505
2506    /**
2507     * Set the amount of inertia a scroller will impose at bounce
2508     * animations, for all Elementary application windows.
2509     *
2510     * @param friction the thumb scroll bounce friction
2511     *
2512     * @see elm_thumbscroll_bounce_friction_get()
2513     * @ingroup Scrolling
2514     */
2515    EAPI void             elm_scroll_bounce_friction_all_set(double friction);
2516
2517    /**
2518     * Get the amount of inertia a <b>paged</b> scroller will impose at
2519     * page fitting animations.
2520     *
2521     * @return the page scroll friction
2522     *
2523     * @ingroup Scrolling
2524     */
2525    EAPI double           elm_scroll_page_scroll_friction_get(void);
2526
2527    /**
2528     * Set the amount of inertia a <b>paged</b> scroller will impose at
2529     * page fitting animations.
2530     *
2531     * @param friction the page scroll friction
2532     *
2533     * @see elm_thumbscroll_page_scroll_friction_get()
2534     * @ingroup Scrolling
2535     */
2536    EAPI void             elm_scroll_page_scroll_friction_set(double friction);
2537
2538    /**
2539     * Set the amount of inertia a <b>paged</b> scroller will impose at
2540     * page fitting animations, for all Elementary application windows.
2541     *
2542     * @param friction the page scroll friction
2543     *
2544     * @see elm_thumbscroll_page_scroll_friction_get()
2545     * @ingroup Scrolling
2546     */
2547    EAPI void             elm_scroll_page_scroll_friction_all_set(double friction);
2548
2549    /**
2550     * Get the amount of inertia a scroller will impose at region bring
2551     * animations.
2552     *
2553     * @return the bring in scroll friction
2554     *
2555     * @ingroup Scrolling
2556     */
2557    EAPI double           elm_scroll_bring_in_scroll_friction_get(void);
2558
2559    /**
2560     * Set the amount of inertia a scroller will impose at region bring
2561     * animations.
2562     *
2563     * @param friction the bring in scroll friction
2564     *
2565     * @see elm_thumbscroll_bring_in_scroll_friction_get()
2566     * @ingroup Scrolling
2567     */
2568    EAPI void             elm_scroll_bring_in_scroll_friction_set(double friction);
2569
2570    /**
2571     * Set the amount of inertia a scroller will impose at region bring
2572     * animations, for all Elementary application windows.
2573     *
2574     * @param friction the bring in scroll friction
2575     *
2576     * @see elm_thumbscroll_bring_in_scroll_friction_get()
2577     * @ingroup Scrolling
2578     */
2579    EAPI void             elm_scroll_bring_in_scroll_friction_all_set(double friction);
2580
2581    /**
2582     * Get the amount of inertia scrollers will impose at animations
2583     * triggered by Elementary widgets' zooming API.
2584     *
2585     * @return the zoom friction
2586     *
2587     * @ingroup Scrolling
2588     */
2589    EAPI double           elm_scroll_zoom_friction_get(void);
2590
2591    /**
2592     * Set the amount of inertia scrollers will impose at animations
2593     * triggered by Elementary widgets' zooming API.
2594     *
2595     * @param friction the zoom friction
2596     *
2597     * @see elm_thumbscroll_zoom_friction_get()
2598     * @ingroup Scrolling
2599     */
2600    EAPI void             elm_scroll_zoom_friction_set(double friction);
2601
2602    /**
2603     * Set the amount of inertia scrollers will impose at animations
2604     * triggered by Elementary widgets' zooming API, for all Elementary
2605     * application windows.
2606     *
2607     * @param friction the zoom friction
2608     *
2609     * @see elm_thumbscroll_zoom_friction_get()
2610     * @ingroup Scrolling
2611     */
2612    EAPI void             elm_scroll_zoom_friction_all_set(double friction);
2613
2614    /**
2615     * Get whether scrollers should be draggable from any point in their
2616     * views.
2617     *
2618     * @return the thumb scroll state
2619     *
2620     * @note This is the default behavior for touch screens, in general.
2621     * @note All other functions namespaced with "thumbscroll" will only
2622     *       have effect if this mode is enabled.
2623     *
2624     * @ingroup Scrolling
2625     */
2626    EAPI Eina_Bool        elm_scroll_thumbscroll_enabled_get(void);
2627
2628    /**
2629     * Set whether scrollers should be draggable from any point in their
2630     * views.
2631     *
2632     * @param enabled the thumb scroll state
2633     *
2634     * @see elm_thumbscroll_enabled_get()
2635     * @ingroup Scrolling
2636     */
2637    EAPI void             elm_scroll_thumbscroll_enabled_set(Eina_Bool enabled);
2638
2639    /**
2640     * Set whether scrollers should be draggable from any point in their
2641     * views, for all Elementary application windows.
2642     *
2643     * @param enabled the thumb scroll state
2644     *
2645     * @see elm_thumbscroll_enabled_get()
2646     * @ingroup Scrolling
2647     */
2648    EAPI void             elm_scroll_thumbscroll_enabled_all_set(Eina_Bool enabled);
2649
2650    /**
2651     * Get the number of pixels one should travel while dragging a
2652     * scroller's view to actually trigger scrolling.
2653     *
2654     * @return the thumb scroll threshould
2655     *
2656     * One would use higher values for touch screens, in general, because
2657     * of their inherent imprecision.
2658     * @ingroup Scrolling
2659     */
2660    EAPI unsigned int     elm_scroll_thumbscroll_threshold_get(void);
2661
2662    /**
2663     * Set the number of pixels one should travel while dragging a
2664     * scroller's view to actually trigger scrolling.
2665     *
2666     * @param threshold the thumb scroll threshould
2667     *
2668     * @see elm_thumbscroll_threshould_get()
2669     * @ingroup Scrolling
2670     */
2671    EAPI void             elm_scroll_thumbscroll_threshold_set(unsigned int threshold);
2672
2673    /**
2674     * Set the number of pixels one should travel while dragging a
2675     * scroller's view to actually trigger scrolling, for all Elementary
2676     * application windows.
2677     *
2678     * @param threshold the thumb scroll threshould
2679     *
2680     * @see elm_thumbscroll_threshould_get()
2681     * @ingroup Scrolling
2682     */
2683    EAPI void             elm_scroll_thumbscroll_threshold_all_set(unsigned int threshold);
2684
2685    /**
2686     * Get the minimum speed of mouse cursor movement which will trigger
2687     * list self scrolling animation after a mouse up event
2688     * (pixels/second).
2689     *
2690     * @return the thumb scroll momentum threshould
2691     *
2692     * @ingroup Scrolling
2693     */
2694    EAPI double           elm_scroll_thumbscroll_momentum_threshold_get(void);
2695
2696    /**
2697     * Set the minimum speed of mouse cursor movement which will trigger
2698     * list self scrolling animation after a mouse up event
2699     * (pixels/second).
2700     *
2701     * @param threshold the thumb scroll momentum threshould
2702     *
2703     * @see elm_thumbscroll_momentum_threshould_get()
2704     * @ingroup Scrolling
2705     */
2706    EAPI void             elm_scroll_thumbscroll_momentum_threshold_set(double threshold);
2707
2708    /**
2709     * Set the minimum speed of mouse cursor movement which will trigger
2710     * list self scrolling animation after a mouse up event
2711     * (pixels/second), for all Elementary application windows.
2712     *
2713     * @param threshold the thumb scroll momentum threshould
2714     *
2715     * @see elm_thumbscroll_momentum_threshould_get()
2716     * @ingroup Scrolling
2717     */
2718    EAPI void             elm_scroll_thumbscroll_momentum_threshold_all_set(double threshold);
2719
2720    /**
2721     * Get the amount of inertia a scroller will impose at self scrolling
2722     * animations.
2723     *
2724     * @return the thumb scroll friction
2725     *
2726     * @ingroup Scrolling
2727     */
2728    EAPI double           elm_scroll_thumbscroll_friction_get(void);
2729
2730    /**
2731     * Set the amount of inertia a scroller will impose at self scrolling
2732     * animations.
2733     *
2734     * @param friction the thumb scroll friction
2735     *
2736     * @see elm_thumbscroll_friction_get()
2737     * @ingroup Scrolling
2738     */
2739    EAPI void             elm_scroll_thumbscroll_friction_set(double friction);
2740
2741    /**
2742     * Set the amount of inertia a scroller will impose at self scrolling
2743     * animations, for all Elementary application windows.
2744     *
2745     * @param friction the thumb scroll friction
2746     *
2747     * @see elm_thumbscroll_friction_get()
2748     * @ingroup Scrolling
2749     */
2750    EAPI void             elm_scroll_thumbscroll_friction_all_set(double friction);
2751
2752    /**
2753     * Get the amount of lag between your actual mouse cursor dragging
2754     * movement and a scroller's view movement itself, while pushing it
2755     * into bounce state manually.
2756     *
2757     * @return the thumb scroll border friction
2758     *
2759     * @ingroup Scrolling
2760     */
2761    EAPI double           elm_scroll_thumbscroll_border_friction_get(void);
2762
2763    /**
2764     * Set the amount of lag between your actual mouse cursor dragging
2765     * movement and a scroller's view movement itself, while pushing it
2766     * into bounce state manually.
2767     *
2768     * @param friction the thumb scroll border friction. @c 0.0 for
2769     *        perfect synchrony between two movements, @c 1.0 for maximum
2770     *        lag.
2771     *
2772     * @see elm_thumbscroll_border_friction_get()
2773     * @note parameter value will get bound to 0.0 - 1.0 interval, always
2774     *
2775     * @ingroup Scrolling
2776     */
2777    EAPI void             elm_scroll_thumbscroll_border_friction_set(double friction);
2778
2779    /**
2780     * Set the amount of lag between your actual mouse cursor dragging
2781     * movement and a scroller's view movement itself, while pushing it
2782     * into bounce state manually, for all Elementary application windows.
2783     *
2784     * @param friction the thumb scroll border friction. @c 0.0 for
2785     *        perfect synchrony between two movements, @c 1.0 for maximum
2786     *        lag.
2787     *
2788     * @see elm_thumbscroll_border_friction_get()
2789     * @note parameter value will get bound to 0.0 - 1.0 interval, always
2790     *
2791     * @ingroup Scrolling
2792     */
2793    EAPI void             elm_scroll_thumbscroll_border_friction_all_set(double friction);
2794
2795    /**
2796     * @}
2797     */
2798
2799    /**
2800     * @defgroup Scrollhints Scrollhints
2801     *
2802     * Objects when inside a scroller can scroll, but this may not always be
2803     * desirable in certain situations. This allows an object to hint to itself
2804     * and parents to "not scroll" in one of 2 ways. If any child object of a
2805     * scroller has pushed a scroll freeze or hold then it affects all parent
2806     * scrollers until all children have released them.
2807     *
2808     * 1. To hold on scrolling. This means just flicking and dragging may no
2809     * longer scroll, but pressing/dragging near an edge of the scroller will
2810     * still scroll. This is automatically used by the entry object when
2811     * selecting text.
2812     *
2813     * 2. To totally freeze scrolling. This means it stops. until
2814     * popped/released.
2815     *
2816     * @{
2817     */
2818
2819    /**
2820     * Push the scroll hold by 1
2821     *
2822     * This increments the scroll hold count by one. If it is more than 0 it will
2823     * take effect on the parents of the indicated object.
2824     *
2825     * @param obj The object
2826     * @ingroup Scrollhints
2827     */
2828    EAPI void             elm_object_scroll_hold_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
2829
2830    /**
2831     * Pop the scroll hold by 1
2832     *
2833     * This decrements 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_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
2840
2841    /**
2842     * Push the scroll freeze by 1
2843     *
2844     * This increments the scroll freeze count by one. If it is more
2845     * than 0 it will take effect on the parents of the indicated
2846     * object.
2847     *
2848     * @param obj The object
2849     * @ingroup Scrollhints
2850     */
2851    EAPI void             elm_object_scroll_freeze_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
2852
2853    /**
2854     * Pop the scroll freeze by 1
2855     *
2856     * This decrements the scroll freeze count by one. If it is more
2857     * than 0 it will take effect on the parents of the indicated
2858     * object.
2859     *
2860     * @param obj The object
2861     * @ingroup Scrollhints
2862     */
2863    EAPI void             elm_object_scroll_freeze_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
2864
2865    /**
2866     * Lock the scrolling of the given widget (and thus all parents)
2867     *
2868     * This locks the given object from scrolling in the X axis (and implicitly
2869     * also locks all parent scrollers too from doing the same).
2870     *
2871     * @param obj The object
2872     * @param lock The lock state (1 == locked, 0 == unlocked)
2873     * @ingroup Scrollhints
2874     */
2875    EAPI void             elm_object_scroll_lock_x_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
2876
2877    /**
2878     * Lock the scrolling of the given widget (and thus all parents)
2879     *
2880     * This locks the given object from scrolling in the Y axis (and implicitly
2881     * also locks all parent scrollers too from doing the same).
2882     *
2883     * @param obj The object
2884     * @param lock The lock state (1 == locked, 0 == unlocked)
2885     * @ingroup Scrollhints
2886     */
2887    EAPI void             elm_object_scroll_lock_y_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
2888
2889    /**
2890     * Get the scrolling lock of the given widget
2891     *
2892     * This gets the lock for X axis scrolling.
2893     *
2894     * @param obj The object
2895     * @ingroup Scrollhints
2896     */
2897    EAPI Eina_Bool        elm_object_scroll_lock_x_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2898
2899    /**
2900     * Get the scrolling lock of the given widget
2901     *
2902     * This gets the lock for X axis scrolling.
2903     *
2904     * @param obj The object
2905     * @ingroup Scrollhints
2906     */
2907    EAPI Eina_Bool        elm_object_scroll_lock_y_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2908
2909    /**
2910     * @}
2911     */
2912
2913    /**
2914     * Send a signal to the widget edje object.
2915     *
2916     * This function sends a signal to the edje object of the obj. An
2917     * edje program can respond to a signal by specifying matching
2918     * 'signal' and 'source' fields.
2919     *
2920     * @param obj The object
2921     * @param emission The signal's name.
2922     * @param source The signal's source.
2923     * @ingroup General
2924     */
2925    EAPI void             elm_object_signal_emit(Evas_Object *obj, const char *emission, const char *source) EINA_ARG_NONNULL(1);
2926
2927    /**
2928     * Add a callback for a signal emitted by widget edje object.
2929     *
2930     * This function connects a callback function to a signal emitted by the
2931     * edje object of the obj.
2932     * Globs can occur in either the emission or source name.
2933     *
2934     * @param obj The object
2935     * @param emission The signal's name.
2936     * @param source The signal's source.
2937     * @param func The callback function to be executed when the signal is
2938     * emitted.
2939     * @param data A pointer to data to pass in to the callback function.
2940     * @ingroup General
2941     */
2942    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);
2943
2944    /**
2945     * Remove a signal-triggered callback from a widget edje object.
2946     *
2947     * This function removes a callback, previoulsy attached to a
2948     * signal emitted by the edje object of the obj.  The parameters
2949     * emission, source and func must match exactly those passed to a
2950     * previous call to elm_object_signal_callback_add(). The data
2951     * pointer that was passed to this call will be returned.
2952     *
2953     * @param obj The object
2954     * @param emission The signal's name.
2955     * @param source The signal's source.
2956     * @param func The callback function to be executed when the signal is
2957     * emitted.
2958     * @return The data pointer
2959     * @ingroup General
2960     */
2961    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);
2962
2963    /**
2964     * Add a callback for input events (key up, key down, mouse wheel)
2965     * on a given Elementary widget
2966     *
2967     * @param obj The widget to add an event callback on
2968     * @param func The callback function to be executed when the event
2969     * happens
2970     * @param data Data to pass in to @p func
2971     *
2972     * Every widget in an Elementary interface set to receive focus,
2973     * with elm_object_focus_allow_set(), will propagate @b all of its
2974     * key up, key down and mouse wheel input events up to its parent
2975     * object, and so on. All of the focusable ones in this chain which
2976     * had an event callback set, with this call, will be able to treat
2977     * those events. There are two ways of making the propagation of
2978     * these event upwards in the tree of widgets to @b cease:
2979     * - Just return @c EINA_TRUE on @p func. @c EINA_FALSE will mean
2980     *   the event was @b not processed, so the propagation will go on.
2981     * - The @c event_info pointer passed to @p func will contain the
2982     *   event's structure and, if you OR its @c event_flags inner
2983     *   value to @c EVAS_EVENT_FLAG_ON_HOLD, you're telling Elementary
2984     *   one has already handled it, thus killing the event's
2985     *   propagation, too.
2986     *
2987     * @note Your event callback will be issued on those events taking
2988     * place only if no other child widget of @obj has consumed the
2989     * event already.
2990     *
2991     * @note Not to be confused with @c
2992     * evas_object_event_callback_add(), which will add event callbacks
2993     * per type on general Evas objects (no event propagation
2994     * infrastructure taken in account).
2995     *
2996     * @note Not to be confused with @c
2997     * elm_object_signal_callback_add(), which will add callbacks to @b
2998     * signals coming from a widget's theme, not input events.
2999     *
3000     * @note Not to be confused with @c
3001     * edje_object_signal_callback_add(), which does the same as
3002     * elm_object_signal_callback_add(), but directly on an Edje
3003     * object.
3004     *
3005     * @note Not to be confused with @c
3006     * evas_object_smart_callback_add(), which adds callbacks to smart
3007     * objects' <b>smart events</b>, and not input events.
3008     *
3009     * @see elm_object_event_callback_del()
3010     *
3011     * @ingroup General
3012     */
3013    EAPI void             elm_object_event_callback_add(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
3014
3015    /**
3016     * Remove an event callback from a widget.
3017     *
3018     * This function removes a callback, previoulsy attached to event emission
3019     * by the @p obj.
3020     * The parameters func and data must match exactly those passed to
3021     * a previous call to elm_object_event_callback_add(). The data pointer that
3022     * was passed to this call will be returned.
3023     *
3024     * @param obj The object
3025     * @param func The callback function to be executed when the event is
3026     * emitted.
3027     * @param data Data to pass in to the callback function.
3028     * @return The data pointer
3029     * @ingroup General
3030     */
3031    EAPI void            *elm_object_event_callback_del(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
3032
3033    /**
3034     * Adjust size of an element for finger usage.
3035     *
3036     * @param times_w How many fingers should fit horizontally
3037     * @param w Pointer to the width size to adjust
3038     * @param times_h How many fingers should fit vertically
3039     * @param h Pointer to the height size to adjust
3040     *
3041     * This takes width and height sizes (in pixels) as input and a
3042     * size multiple (which is how many fingers you want to place
3043     * within the area, being "finger" the size set by
3044     * elm_finger_size_set()), and adjusts the size to be large enough
3045     * to accommodate the resulting size -- if it doesn't already
3046     * accommodate it. On return the @p w and @p h sizes pointed to by
3047     * these parameters will be modified, on those conditions.
3048     *
3049     * @note This is kind of a low level Elementary call, most useful
3050     * on size evaluation times for widgets. An external user wouldn't
3051     * be calling, most of the time.
3052     *
3053     * @ingroup Fingers
3054     */
3055    EAPI void             elm_coords_finger_size_adjust(int times_w, Evas_Coord *w, int times_h, Evas_Coord *h);
3056
3057    /**
3058     * Get the duration for occuring long press event.
3059     *
3060     * @return Timeout for long press event
3061     * @ingroup Longpress
3062     */
3063    EAPI double           elm_longpress_timeout_get(void);
3064
3065    /**
3066     * Set the duration for occuring long press event.
3067     *
3068     * @param lonpress_timeout Timeout for long press event
3069     * @ingroup Longpress
3070     */
3071    EAPI void             elm_longpress_timeout_set(double longpress_timeout);
3072
3073    /**
3074     * @defgroup Debug Debug
3075     * don't use it unless you are sure
3076     *
3077     * @{
3078     */
3079
3080    /**
3081     * Print Tree object hierarchy in stdout
3082     *
3083     * @param obj The root object
3084     * @ingroup Debug
3085     */
3086    EAPI void             elm_object_tree_dump(const Evas_Object *top);
3087
3088    /**
3089     * Print Elm Objects tree hierarchy in file as dot(graphviz) syntax.
3090     *
3091     * @param obj The root object
3092     * @param file The path of output file
3093     * @ingroup Debug
3094     */
3095    EAPI void             elm_object_tree_dot_dump(const Evas_Object *top, const char *file);
3096
3097    /**
3098     * @}
3099     */
3100
3101    /**
3102     * @defgroup Theme Theme
3103     *
3104     * Elementary uses Edje to theme its widgets, naturally. But for the most
3105     * part this is hidden behind a simpler interface that lets the user set
3106     * extensions and choose the style of widgets in a much easier way.
3107     *
3108     * Instead of thinking in terms of paths to Edje files and their groups
3109     * each time you want to change the appearance of a widget, Elementary
3110     * works so you can add any theme file with extensions or replace the
3111     * main theme at one point in the application, and then just set the style
3112     * of widgets with elm_object_style_set() and related functions. Elementary
3113     * will then look in its list of themes for a matching group and apply it,
3114     * and when the theme changes midway through the application, all widgets
3115     * will be updated accordingly.
3116     *
3117     * There are three concepts you need to know to understand how Elementary
3118     * theming works: default theme, extensions and overlays.
3119     *
3120     * Default theme, obviously enough, is the one that provides the default
3121     * look of all widgets. End users can change the theme used by Elementary
3122     * by setting the @c ELM_THEME environment variable before running an
3123     * application, or globally for all programs using the @c elementary_config
3124     * utility. Applications can change the default theme using elm_theme_set(),
3125     * but this can go against the user wishes, so it's not an adviced practice.
3126     *
3127     * Ideally, applications should find everything they need in the already
3128     * provided theme, but there may be occasions when that's not enough and
3129     * custom styles are required to correctly express the idea. For this
3130     * cases, Elementary has extensions.
3131     *
3132     * Extensions allow the application developer to write styles of its own
3133     * to apply to some widgets. This requires knowledge of how each widget
3134     * is themed, as extensions will always replace the entire group used by
3135     * the widget, so important signals and parts need to be there for the
3136     * object to behave properly (see documentation of Edje for details).
3137     * Once the theme for the extension is done, the application needs to add
3138     * it to the list of themes Elementary will look into, using
3139     * elm_theme_extension_add(), and set the style of the desired widgets as
3140     * he would normally with elm_object_style_set().
3141     *
3142     * Overlays, on the other hand, can replace the look of all widgets by
3143     * overriding the default style. Like extensions, it's up to the application
3144     * developer to write the theme for the widgets it wants, the difference
3145     * being that when looking for the theme, Elementary will check first the
3146     * list of overlays, then the set theme and lastly the list of extensions,
3147     * so with overlays it's possible to replace the default view and every
3148     * widget will be affected. This is very much alike to setting the whole
3149     * theme for the application and will probably clash with the end user
3150     * options, not to mention the risk of ending up with not matching styles
3151     * across the program. Unless there's a very special reason to use them,
3152     * overlays should be avoided for the resons exposed before.
3153     *
3154     * All these theme lists are handled by ::Elm_Theme instances. Elementary
3155     * keeps one default internally and every function that receives one of
3156     * these can be called with NULL to refer to this default (except for
3157     * elm_theme_free()). It's possible to create a new instance of a
3158     * ::Elm_Theme to set other theme for a specific widget (and all of its
3159     * children), but this is as discouraged, if not even more so, than using
3160     * overlays. Don't use this unless you really know what you are doing.
3161     *
3162     * But to be less negative about things, you can look at the following
3163     * examples:
3164     * @li @ref theme_example_01 "Using extensions"
3165     * @li @ref theme_example_02 "Using overlays"
3166     *
3167     * @{
3168     */
3169    /**
3170     * @typedef Elm_Theme
3171     *
3172     * Opaque handler for the list of themes Elementary looks for when
3173     * rendering widgets.
3174     *
3175     * Stay out of this unless you really know what you are doing. For most
3176     * cases, sticking to the default is all a developer needs.
3177     */
3178    typedef struct _Elm_Theme Elm_Theme;
3179
3180    /**
3181     * Create a new specific theme
3182     *
3183     * This creates an empty specific theme that only uses the default theme. A
3184     * specific theme has its own private set of extensions and overlays too
3185     * (which are empty by default). Specific themes do not fall back to themes
3186     * of parent objects. They are not intended for this use. Use styles, overlays
3187     * and extensions when needed, but avoid specific themes unless there is no
3188     * other way (example: you want to have a preview of a new theme you are
3189     * selecting in a "theme selector" window. The preview is inside a scroller
3190     * and should display what the theme you selected will look like, but not
3191     * actually apply it yet. The child of the scroller will have a specific
3192     * theme set to show this preview before the user decides to apply it to all
3193     * applications).
3194     */
3195    EAPI Elm_Theme       *elm_theme_new(void);
3196    /**
3197     * Free a specific theme
3198     *
3199     * @param th The theme to free
3200     *
3201     * This frees a theme created with elm_theme_new().
3202     */
3203    EAPI void             elm_theme_free(Elm_Theme *th);
3204    /**
3205     * Copy the theme fom the source to the destination theme
3206     *
3207     * @param th The source theme to copy from
3208     * @param thdst The destination theme to copy data to
3209     *
3210     * This makes a one-time static copy of all the theme config, extensions
3211     * and overlays from @p th to @p thdst. If @p th references a theme, then
3212     * @p thdst is also set to reference it, with all the theme settings,
3213     * overlays and extensions that @p th had.
3214     */
3215    EAPI void             elm_theme_copy(Elm_Theme *th, Elm_Theme *thdst);
3216    /**
3217     * Tell the source theme to reference the ref theme
3218     *
3219     * @param th The theme that will do the referencing
3220     * @param thref The theme that is the reference source
3221     *
3222     * This clears @p th to be empty and then sets it to refer to @p thref
3223     * so @p th acts as an override to @p thref, but where its overrides
3224     * don't apply, it will fall through to @p thref for configuration.
3225     */
3226    EAPI void             elm_theme_ref_set(Elm_Theme *th, Elm_Theme *thref);
3227    /**
3228     * Return the theme referred to
3229     *
3230     * @param th The theme to get the reference from
3231     * @return The referenced theme handle
3232     *
3233     * This gets the theme set as the reference theme by elm_theme_ref_set().
3234     * If no theme is set as a reference, NULL is returned.
3235     */
3236    EAPI Elm_Theme       *elm_theme_ref_get(Elm_Theme *th);
3237    /**
3238     * Return the default theme
3239     *
3240     * @return The default theme handle
3241     *
3242     * This returns the internal default theme setup handle that all widgets
3243     * use implicitly unless a specific theme is set. This is also often use
3244     * as a shorthand of NULL.
3245     */
3246    EAPI Elm_Theme       *elm_theme_default_get(void);
3247    /**
3248     * Prepends a theme overlay to the list of overlays
3249     *
3250     * @param th The theme to add to, or if NULL, the default theme
3251     * @param item The Edje file path to be used
3252     *
3253     * Use this if your application needs to provide some custom overlay theme
3254     * (An Edje file that replaces some default styles of widgets) where adding
3255     * new styles, or changing system theme configuration is not possible. Do
3256     * NOT use this instead of a proper system theme configuration. Use proper
3257     * configuration files, profiles, environment variables etc. to set a theme
3258     * so that the theme can be altered by simple confiugration by a user. Using
3259     * this call to achieve that effect is abusing the API and will create lots
3260     * of trouble.
3261     *
3262     * @see elm_theme_extension_add()
3263     */
3264    EAPI void             elm_theme_overlay_add(Elm_Theme *th, const char *item);
3265    /**
3266     * Delete a theme overlay from the list of overlays
3267     *
3268     * @param th The theme to delete from, or if NULL, the default theme
3269     * @param item The name of the theme overlay
3270     *
3271     * @see elm_theme_overlay_add()
3272     */
3273    EAPI void             elm_theme_overlay_del(Elm_Theme *th, const char *item);
3274    /**
3275     * Appends a theme extension to the list of extensions.
3276     *
3277     * @param th The theme to add to, or if NULL, the default theme
3278     * @param item The Edje file path to be used
3279     *
3280     * This is intended when an application needs more styles of widgets or new
3281     * widget themes that the default does not provide (or may not provide). The
3282     * application has "extended" usage by coming up with new custom style names
3283     * for widgets for specific uses, but as these are not "standard", they are
3284     * not guaranteed to be provided by a default theme. This means the
3285     * application is required to provide these extra elements itself in specific
3286     * Edje files. This call adds one of those Edje files to the theme search
3287     * path to be search after the default theme. The use of this call is
3288     * encouraged when default styles do not meet the needs of the application.
3289     * Use this call instead of elm_theme_overlay_add() for almost all cases.
3290     *
3291     * @see elm_object_style_set()
3292     */
3293    EAPI void             elm_theme_extension_add(Elm_Theme *th, const char *item);
3294    /**
3295     * Deletes a theme extension from the list of extensions.
3296     *
3297     * @param th The theme to delete from, or if NULL, the default theme
3298     * @param item The name of the theme extension
3299     *
3300     * @see elm_theme_extension_add()
3301     */
3302    EAPI void             elm_theme_extension_del(Elm_Theme *th, const char *item);
3303    /**
3304     * Set the theme search order for the given theme
3305     *
3306     * @param th The theme to set the search order, or if NULL, the default theme
3307     * @param theme Theme search string
3308     *
3309     * This sets the search string for the theme in path-notation from first
3310     * theme to search, to last, delimited by the : character. Example:
3311     *
3312     * "shiny:/path/to/file.edj:default"
3313     *
3314     * See the ELM_THEME environment variable for more information.
3315     *
3316     * @see elm_theme_get()
3317     * @see elm_theme_list_get()
3318     */
3319    EAPI void             elm_theme_set(Elm_Theme *th, const char *theme);
3320    /**
3321     * Return the theme search order
3322     *
3323     * @param th The theme to get the search order, or if NULL, the default theme
3324     * @return The internal search order path
3325     *
3326     * This function returns a colon separated string of theme elements as
3327     * returned by elm_theme_list_get().
3328     *
3329     * @see elm_theme_set()
3330     * @see elm_theme_list_get()
3331     */
3332    EAPI const char      *elm_theme_get(Elm_Theme *th);
3333    /**
3334     * Return a list of theme elements to be used in a theme.
3335     *
3336     * @param th Theme to get the list of theme elements from.
3337     * @return The internal list of theme elements
3338     *
3339     * This returns the internal list of theme elements (will only be valid as
3340     * long as the theme is not modified by elm_theme_set() or theme is not
3341     * freed by elm_theme_free(). This is a list of strings which must not be
3342     * altered as they are also internal. If @p th is NULL, then the default
3343     * theme element list is returned.
3344     *
3345     * A theme element can consist of a full or relative path to a .edj file,
3346     * or a name, without extension, for a theme to be searched in the known
3347     * theme paths for Elemementary.
3348     *
3349     * @see elm_theme_set()
3350     * @see elm_theme_get()
3351     */
3352    EAPI const Eina_List *elm_theme_list_get(const Elm_Theme *th);
3353    /**
3354     * Return the full patrh for a theme element
3355     *
3356     * @param f The theme element name
3357     * @param in_search_path Pointer to a boolean to indicate if item is in the search path or not
3358     * @return The full path to the file found.
3359     *
3360     * This returns a string you should free with free() on success, NULL on
3361     * failure. This will search for the given theme element, and if it is a
3362     * full or relative path element or a simple searchable name. The returned
3363     * path is the full path to the file, if searched, and the file exists, or it
3364     * is simply the full path given in the element or a resolved path if
3365     * relative to home. The @p in_search_path boolean pointed to is set to
3366     * EINA_TRUE if the file was a searchable file andis in the search path,
3367     * and EINA_FALSE otherwise.
3368     */
3369    EAPI char            *elm_theme_list_item_path_get(const char *f, Eina_Bool *in_search_path);
3370    /**
3371     * Flush the current theme.
3372     *
3373     * @param th Theme to flush
3374     *
3375     * This flushes caches that let elementary know where to find theme elements
3376     * in the given theme. If @p th is NULL, then the default theme is flushed.
3377     * Call this function if source theme data has changed in such a way as to
3378     * make any caches Elementary kept invalid.
3379     */
3380    EAPI void             elm_theme_flush(Elm_Theme *th);
3381    /**
3382     * This flushes all themes (default and specific ones).
3383     *
3384     * This will flush all themes in the current application context, by calling
3385     * elm_theme_flush() on each of them.
3386     */
3387    EAPI void             elm_theme_full_flush(void);
3388    /**
3389     * Set the theme for all elementary using applications on the current display
3390     *
3391     * @param theme The name of the theme to use. Format same as the ELM_THEME
3392     * environment variable.
3393     */
3394    EAPI void             elm_theme_all_set(const char *theme);
3395    /**
3396     * Return a list of theme elements in the theme search path
3397     *
3398     * @return A list of strings that are the theme element names.
3399     *
3400     * This lists all available theme files in the standard Elementary search path
3401     * for theme elements, and returns them in alphabetical order as theme
3402     * element names in a list of strings. Free this with
3403     * elm_theme_name_available_list_free() when you are done with the list.
3404     */
3405    EAPI Eina_List       *elm_theme_name_available_list_new(void);
3406    /**
3407     * Free the list returned by elm_theme_name_available_list_new()
3408     *
3409     * This frees the list of themes returned by
3410     * elm_theme_name_available_list_new(). Once freed the list should no longer
3411     * be used. a new list mys be created.
3412     */
3413    EAPI void             elm_theme_name_available_list_free(Eina_List *list);
3414    /**
3415     * Set a specific theme to be used for this object and its children
3416     *
3417     * @param obj The object to set the theme on
3418     * @param th The theme to set
3419     *
3420     * This sets a specific theme that will be used for the given object and any
3421     * child objects it has. If @p th is NULL then the theme to be used is
3422     * cleared and the object will inherit its theme from its parent (which
3423     * ultimately will use the default theme if no specific themes are set).
3424     *
3425     * Use special themes with great care as this will annoy users and make
3426     * configuration difficult. Avoid any custom themes at all if it can be
3427     * helped.
3428     */
3429    EAPI void             elm_object_theme_set(Evas_Object *obj, Elm_Theme *th) EINA_ARG_NONNULL(1);
3430    /**
3431     * Get the specific theme to be used
3432     *
3433     * @param obj The object to get the specific theme from
3434     * @return The specifc theme set.
3435     *
3436     * This will return a specific theme set, or NULL if no specific theme is
3437     * set on that object. It will not return inherited themes from parents, only
3438     * the specific theme set for that specific object. See elm_object_theme_set()
3439     * for more information.
3440     */
3441    EAPI Elm_Theme       *elm_object_theme_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3442
3443    /**
3444     * Get a data item from a theme
3445     *
3446     * @param th The theme, or NULL for default theme
3447     * @param key The data key to search with
3448     * @return The data value, or NULL on failure
3449     *
3450     * This function is used to return data items from edc in @p th, an overlay, or an extension.
3451     * It works the same way as edje_file_data_get() except that the return is stringshared.
3452     */
3453    EAPI const char      *elm_theme_data_get(Elm_Theme *th, const char *key) EINA_ARG_NONNULL(2);
3454    /**
3455     * @}
3456     */
3457
3458    /* win */
3459    /** @defgroup Win Win
3460     *
3461     * @image html img/widget/win/preview-00.png
3462     * @image latex img/widget/win/preview-00.eps
3463     *
3464     * The window class of Elementary.  Contains functions to manipulate
3465     * windows. The Evas engine used to render the window contents is specified
3466     * in the system or user elementary config files (whichever is found last),
3467     * and can be overridden with the ELM_ENGINE environment variable for
3468     * testing.  Engines that may be supported (depending on Evas and Ecore-Evas
3469     * compilation setup and modules actually installed at runtime) are (listed
3470     * in order of best supported and most likely to be complete and work to
3471     * lowest quality).
3472     *
3473     * @li "x11", "x", "software-x11", "software_x11" (Software rendering in X11)
3474     * @li "gl", "opengl", "opengl-x11", "opengl_x11" (OpenGL or OpenGL-ES2
3475     * rendering in X11)
3476     * @li "shot:..." (Virtual screenshot renderer - renders to output file and
3477     * exits)
3478     * @li "fb", "software-fb", "software_fb" (Linux framebuffer direct software
3479     * rendering)
3480     * @li "sdl", "software-sdl", "software_sdl" (SDL software rendering to SDL
3481     * buffer)
3482     * @li "gl-sdl", "gl_sdl", "opengl-sdl", "opengl_sdl" (OpenGL or OpenGL-ES2
3483     * rendering using SDL as the buffer)
3484     * @li "gdi", "software-gdi", "software_gdi" (Windows WIN32 rendering via
3485     * GDI with software)
3486     * @li "dfb", "directfb" (Rendering to a DirectFB window)
3487     * @li "x11-8", "x8", "software-8-x11", "software_8_x11" (Rendering in
3488     * grayscale using dedicated 8bit software engine in X11)
3489     * @li "x11-16", "x16", "software-16-x11", "software_16_x11" (Rendering in
3490     * X11 using 16bit software engine)
3491     * @li "wince-gdi", "software-16-wince-gdi", "software_16_wince_gdi"
3492     * (Windows CE rendering via GDI with 16bit software renderer)
3493     * @li "sdl-16", "software-16-sdl", "software_16_sdl" (Rendering to SDL
3494     * buffer with 16bit software renderer)
3495     *
3496     * All engines use a simple string to select the engine to render, EXCEPT
3497     * the "shot" engine. This actually encodes the output of the virtual
3498     * screenshot and how long to delay in the engine string. The engine string
3499     * is encoded in the following way:
3500     *
3501     *   "shot:[delay=XX][:][repeat=DDD][:][file=XX]"
3502     *
3503     * Where options are separated by a ":" char if more than one option is
3504     * given, with delay, if provided being the first option and file the last
3505     * (order is important). The delay specifies how long to wait after the
3506     * window is shown before doing the virtual "in memory" rendering and then
3507     * save the output to the file specified by the file option (and then exit).
3508     * If no delay is given, the default is 0.5 seconds. If no file is given the
3509     * default output file is "out.png". Repeat option is for continous
3510     * capturing screenshots. Repeat range is from 1 to 999 and filename is
3511     * fixed to "out001.png" Some examples of using the shot engine:
3512     *
3513     *   ELM_ENGINE="shot:delay=1.0:repeat=5:file=elm_test.png" elementary_test
3514     *   ELM_ENGINE="shot:delay=1.0:file=elm_test.png" elementary_test
3515     *   ELM_ENGINE="shot:file=elm_test2.png" elementary_test
3516     *   ELM_ENGINE="shot:delay=2.0" elementary_test
3517     *   ELM_ENGINE="shot:" elementary_test
3518     *
3519     * Signals that you can add callbacks for are:
3520     *
3521     * @li "delete,request": the user requested to close the window. See
3522     * elm_win_autodel_set().
3523     * @li "focus,in": window got focus
3524     * @li "focus,out": window lost focus
3525     * @li "moved": window that holds the canvas was moved
3526     *
3527     * Examples:
3528     * @li @ref win_example_01
3529     *
3530     * @{
3531     */
3532    /**
3533     * Defines the types of window that can be created
3534     *
3535     * These are hints set on the window so that a running Window Manager knows
3536     * how the window should be handled and/or what kind of decorations it
3537     * should have.
3538     *
3539     * Currently, only the X11 backed engines use them.
3540     */
3541    typedef enum _Elm_Win_Type
3542      {
3543         ELM_WIN_BASIC, /**< A normal window. Indicates a normal, top-level
3544                          window. Almost every window will be created with this
3545                          type. */
3546         ELM_WIN_DIALOG_BASIC, /**< Used for simple dialog windows/ */
3547         ELM_WIN_DESKTOP, /**< For special desktop windows, like a background
3548                            window holding desktop icons. */
3549         ELM_WIN_DOCK, /**< The window is used as a dock or panel. Usually would
3550                         be kept on top of any other window by the Window
3551                         Manager. */
3552         ELM_WIN_TOOLBAR, /**< The window is used to hold a floating toolbar, or
3553                            similar. */
3554         ELM_WIN_MENU, /**< Similar to #ELM_WIN_TOOLBAR. */
3555         ELM_WIN_UTILITY, /**< A persistent utility window, like a toolbox or
3556                            pallete. */
3557         ELM_WIN_SPLASH, /**< Splash window for a starting up application. */
3558         ELM_WIN_DROPDOWN_MENU, /**< The window is a dropdown menu, as when an
3559                                  entry in a menubar is clicked. Typically used
3560                                  with elm_win_override_set(). This hint exists
3561                                  for completion only, as the EFL way of
3562                                  implementing a menu would not normally use a
3563                                  separate window for its contents. */
3564         ELM_WIN_POPUP_MENU, /**< Like #ELM_WIN_DROPDOWN_MENU, but for the menu
3565                               triggered by right-clicking an object. */
3566         ELM_WIN_TOOLTIP, /**< The window is a tooltip. A short piece of
3567                            explanatory text that typically appear after the
3568                            mouse cursor hovers over an object for a while.
3569                            Typically used with elm_win_override_set() and also
3570                            not very commonly used in the EFL. */
3571         ELM_WIN_NOTIFICATION, /**< A notification window, like a warning about
3572                                 battery life or a new E-Mail received. */
3573         ELM_WIN_COMBO, /**< A window holding the contents of a combo box. Not
3574                          usually used in the EFL. */
3575         ELM_WIN_DND, /**< Used to indicate the window is a representation of an
3576                        object being dragged across different windows, or even
3577                        applications. Typically used with
3578                        elm_win_override_set(). */
3579         ELM_WIN_INLINED_IMAGE, /**< The window is rendered onto an image
3580                                  buffer. No actual window is created for this
3581                                  type, instead the window and all of its
3582                                  contents will be rendered to an image buffer.
3583                                  This allows to have children window inside a
3584                                  parent one just like any other object would
3585                                  be, and do other things like applying @c
3586                                  Evas_Map effects to it. This is the only type
3587                                  of window that requires the @c parent
3588                                  parameter of elm_win_add() to be a valid @c
3589                                  Evas_Object. */
3590      } Elm_Win_Type;
3591
3592    /**
3593     * The differents layouts that can be requested for the virtual keyboard.
3594     *
3595     * When the application window is being managed by Illume, it may request
3596     * any of the following layouts for the virtual keyboard.
3597     */
3598    typedef enum _Elm_Win_Keyboard_Mode
3599      {
3600         ELM_WIN_KEYBOARD_UNKNOWN, /**< Unknown keyboard state */
3601         ELM_WIN_KEYBOARD_OFF, /**< Request to deactivate the keyboard */
3602         ELM_WIN_KEYBOARD_ON, /**< Enable keyboard with default layout */
3603         ELM_WIN_KEYBOARD_ALPHA, /**< Alpha (a-z) keyboard layout */
3604         ELM_WIN_KEYBOARD_NUMERIC, /**< Numeric keyboard layout */
3605         ELM_WIN_KEYBOARD_PIN, /**< PIN keyboard layout */
3606         ELM_WIN_KEYBOARD_PHONE_NUMBER, /**< Phone keyboard layout */
3607         ELM_WIN_KEYBOARD_HEX, /**< Hexadecimal numeric keyboard layout */
3608         ELM_WIN_KEYBOARD_TERMINAL, /**< Full (QUERTY) keyboard layout */
3609         ELM_WIN_KEYBOARD_PASSWORD, /**< Password keyboard layout */
3610         ELM_WIN_KEYBOARD_IP, /**< IP keyboard layout */
3611         ELM_WIN_KEYBOARD_HOST, /**< Host keyboard layout */
3612         ELM_WIN_KEYBOARD_FILE, /**< File keyboard layout */
3613         ELM_WIN_KEYBOARD_URL, /**< URL keyboard layout */
3614         ELM_WIN_KEYBOARD_KEYPAD, /**< Keypad layout */
3615         ELM_WIN_KEYBOARD_J2ME /**< J2ME keyboard layout */
3616      } Elm_Win_Keyboard_Mode;
3617
3618    /**
3619     * Available commands that can be sent to the Illume manager.
3620     *
3621     * When running under an Illume session, a window may send commands to the
3622     * Illume manager to perform different actions.
3623     */
3624    typedef enum _Elm_Illume_Command
3625      {
3626         ELM_ILLUME_COMMAND_FOCUS_BACK, /**< Reverts focus to the previous
3627                                          window */
3628         ELM_ILLUME_COMMAND_FOCUS_FORWARD, /**< Sends focus to the next window\
3629                                             in the list */
3630         ELM_ILLUME_COMMAND_FOCUS_HOME, /**< Hides all windows to show the Home
3631                                          screen */
3632         ELM_ILLUME_COMMAND_CLOSE /**< Closes the currently active window */
3633      } Elm_Illume_Command;
3634
3635    /**
3636     * Adds a window object. If this is the first window created, pass NULL as
3637     * @p parent.
3638     *
3639     * @param parent Parent object to add the window to, or NULL
3640     * @param name The name of the window
3641     * @param type The window type, one of #Elm_Win_Type.
3642     *
3643     * The @p parent paramter can be @c NULL for every window @p type except
3644     * #ELM_WIN_INLINED_IMAGE, which needs a parent to retrieve the canvas on
3645     * which the image object will be created.
3646     *
3647     * @return The created object, or NULL on failure
3648     */
3649    EAPI Evas_Object *elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type);
3650    /**
3651     * Add @p subobj as a resize object of window @p obj.
3652     *
3653     *
3654     * Setting an object as a resize object of the window means that the
3655     * @p subobj child's size and position will be controlled by the window
3656     * directly. That is, the object will be resized to match the window size
3657     * and should never be moved or resized manually by the developer.
3658     *
3659     * In addition, resize objects of the window control what the minimum size
3660     * of it will be, as well as whether it can or not be resized by the user.
3661     *
3662     * For the end user to be able to resize a window by dragging the handles
3663     * or borders provided by the Window Manager, or using any other similar
3664     * mechanism, all of the resize objects in the window should have their
3665     * evas_object_size_hint_weight_set() set to EVAS_HINT_EXPAND.
3666     *
3667     * @param obj The window object
3668     * @param subobj The resize object to add
3669     */
3670    EAPI void         elm_win_resize_object_add(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
3671    /**
3672     * Delete @p subobj as a resize object of window @p obj.
3673     *
3674     * This function removes the object @p subobj from the resize objects of
3675     * the window @p obj. It will not delete the object itself, which will be
3676     * left unmanaged and should be deleted by the developer, manually handled
3677     * or set as child of some other container.
3678     *
3679     * @param obj The window object
3680     * @param subobj The resize object to add
3681     */
3682    EAPI void         elm_win_resize_object_del(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
3683    /**
3684     * Set the title of the window
3685     *
3686     * @param obj The window object
3687     * @param title The title to set
3688     */
3689    EAPI void         elm_win_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
3690    /**
3691     * Get the title of the window
3692     *
3693     * The returned string is an internal one and should not be freed or
3694     * modified. It will also be rendered invalid if a new title is set or if
3695     * the window is destroyed.
3696     *
3697     * @param obj The window object
3698     * @return The title
3699     */
3700    EAPI const char  *elm_win_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3701    /**
3702     * Set the window's autodel state.
3703     *
3704     * When closing the window in any way outside of the program control, like
3705     * pressing the X button in the titlebar or using a command from the
3706     * Window Manager, a "delete,request" signal is emitted to indicate that
3707     * this event occurred and the developer can take any action, which may
3708     * include, or not, destroying the window object.
3709     *
3710     * When the @p autodel parameter is set, the window will be automatically
3711     * destroyed when this event occurs, after the signal is emitted.
3712     * If @p autodel is @c EINA_FALSE, then the window will not be destroyed
3713     * and is up to the program to do so when it's required.
3714     *
3715     * @param obj The window object
3716     * @param autodel If true, the window will automatically delete itself when
3717     * closed
3718     */
3719    EAPI void         elm_win_autodel_set(Evas_Object *obj, Eina_Bool autodel) EINA_ARG_NONNULL(1);
3720    /**
3721     * Get the window's autodel state.
3722     *
3723     * @param obj The window object
3724     * @return If the window will automatically delete itself when closed
3725     *
3726     * @see elm_win_autodel_set()
3727     */
3728    EAPI Eina_Bool    elm_win_autodel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3729    /**
3730     * Activate a window object.
3731     *
3732     * This function sends a request to the Window Manager to activate the
3733     * window pointed by @p obj. If honored by the WM, the window will receive
3734     * the keyboard focus.
3735     *
3736     * @note This is just a request that a Window Manager may ignore, so calling
3737     * this function does not ensure in any way that the window will be the
3738     * active one after it.
3739     *
3740     * @param obj The window object
3741     */
3742    EAPI void         elm_win_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
3743    /**
3744     * Lower a window object.
3745     *
3746     * Places the window pointed by @p obj at the bottom of the stack, so that
3747     * no other window is covered by it.
3748     *
3749     * If elm_win_override_set() is not set, the Window Manager may ignore this
3750     * request.
3751     *
3752     * @param obj The window object
3753     */
3754    EAPI void         elm_win_lower(Evas_Object *obj) EINA_ARG_NONNULL(1);
3755    /**
3756     * Raise a window object.
3757     *
3758     * Places the window pointed by @p obj at the top of the stack, so that it's
3759     * not covered by any other window.
3760     *
3761     * If elm_win_override_set() is not set, the Window Manager may ignore this
3762     * request.
3763     *
3764     * @param obj The window object
3765     */
3766    EAPI void         elm_win_raise(Evas_Object *obj) EINA_ARG_NONNULL(1);
3767    /**
3768     * Set the borderless state of a window.
3769     *
3770     * This function requests the Window Manager to not draw any decoration
3771     * around the window.
3772     *
3773     * @param obj The window object
3774     * @param borderless If true, the window is borderless
3775     */
3776    EAPI void         elm_win_borderless_set(Evas_Object *obj, Eina_Bool borderless) EINA_ARG_NONNULL(1);
3777    /**
3778     * Get the borderless state of a window.
3779     *
3780     * @param obj The window object
3781     * @return If true, the window is borderless
3782     */
3783    EAPI Eina_Bool    elm_win_borderless_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3784    /**
3785     * Set the shaped state of a window.
3786     *
3787     * Shaped windows, when supported, will render the parts of the window that
3788     * has no content, transparent.
3789     *
3790     * If @p shaped is EINA_FALSE, then it is strongly adviced to have some
3791     * background object or cover the entire window in any other way, or the
3792     * parts of the canvas that have no data will show framebuffer artifacts.
3793     *
3794     * @param obj The window object
3795     * @param shaped If true, the window is shaped
3796     *
3797     * @see elm_win_alpha_set()
3798     */
3799    EAPI void         elm_win_shaped_set(Evas_Object *obj, Eina_Bool shaped) EINA_ARG_NONNULL(1);
3800    /**
3801     * Get the shaped state of a window.
3802     *
3803     * @param obj The window object
3804     * @return If true, the window is shaped
3805     *
3806     * @see elm_win_shaped_set()
3807     */
3808    EAPI Eina_Bool    elm_win_shaped_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3809    /**
3810     * Set the alpha channel state of a window.
3811     *
3812     * If @p alpha is EINA_TRUE, the alpha channel of the canvas will be enabled
3813     * possibly making parts of the window completely or partially transparent.
3814     * This is also subject to the underlying system supporting it, like for
3815     * example, running under a compositing manager. If no compositing is
3816     * available, enabling this option will instead fallback to using shaped
3817     * windows, with elm_win_shaped_set().
3818     *
3819     * @param obj The window object
3820     * @param alpha If true, the window has an alpha channel
3821     *
3822     * @see elm_win_alpha_set()
3823     */
3824    EAPI void         elm_win_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
3825    /**
3826     * Get the transparency state of a window.
3827     *
3828     * @param obj The window object
3829     * @return If true, the window is transparent
3830     *
3831     * @see elm_win_transparent_set()
3832     */
3833    EAPI Eina_Bool    elm_win_transparent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3834    /**
3835     * Set the transparency state of a window.
3836     *
3837     * Use elm_win_alpha_set() instead.
3838     *
3839     * @param obj The window object
3840     * @param transparent If true, the window is transparent
3841     *
3842     * @see elm_win_alpha_set()
3843     */
3844    EAPI void         elm_win_transparent_set(Evas_Object *obj, Eina_Bool transparent) EINA_ARG_NONNULL(1);
3845    /**
3846     * Get the alpha channel state of a window.
3847     *
3848     * @param obj The window object
3849     * @return If true, the window has an alpha channel
3850     */
3851    EAPI Eina_Bool    elm_win_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3852    /**
3853     * Set the override state of a window.
3854     *
3855     * A window with @p override set to EINA_TRUE will not be managed by the
3856     * Window Manager. This means that no decorations of any kind will be shown
3857     * for it, moving and resizing must be handled by the application, as well
3858     * as the window visibility.
3859     *
3860     * This should not be used for normal windows, and even for not so normal
3861     * ones, it should only be used when there's a good reason and with a lot
3862     * of care. Mishandling override windows may result situations that
3863     * disrupt the normal workflow of the end user.
3864     *
3865     * @param obj The window object
3866     * @param override If true, the window is overridden
3867     */
3868    EAPI void         elm_win_override_set(Evas_Object *obj, Eina_Bool override) EINA_ARG_NONNULL(1);
3869    /**
3870     * Get the override state of a window.
3871     *
3872     * @param obj The window object
3873     * @return If true, the window is overridden
3874     *
3875     * @see elm_win_override_set()
3876     */
3877    EAPI Eina_Bool    elm_win_override_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3878    /**
3879     * Set the fullscreen state of a window.
3880     *
3881     * @param obj The window object
3882     * @param fullscreen If true, the window is fullscreen
3883     */
3884    EAPI void         elm_win_fullscreen_set(Evas_Object *obj, Eina_Bool fullscreen) EINA_ARG_NONNULL(1);
3885    /**
3886     * Get the fullscreen state of a window.
3887     *
3888     * @param obj The window object
3889     * @return If true, the window is fullscreen
3890     */
3891    EAPI Eina_Bool    elm_win_fullscreen_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3892    /**
3893     * Set the maximized state of a window.
3894     *
3895     * @param obj The window object
3896     * @param maximized If true, the window is maximized
3897     */
3898    EAPI void         elm_win_maximized_set(Evas_Object *obj, Eina_Bool maximized) EINA_ARG_NONNULL(1);
3899    /**
3900     * Get the maximized state of a window.
3901     *
3902     * @param obj The window object
3903     * @return If true, the window is maximized
3904     */
3905    EAPI Eina_Bool    elm_win_maximized_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3906    /**
3907     * Set the iconified state of a window.
3908     *
3909     * @param obj The window object
3910     * @param iconified If true, the window is iconified
3911     */
3912    EAPI void         elm_win_iconified_set(Evas_Object *obj, Eina_Bool iconified) EINA_ARG_NONNULL(1);
3913    /**
3914     * Get the iconified state of a window.
3915     *
3916     * @param obj The window object
3917     * @return If true, the window is iconified
3918     */
3919    EAPI Eina_Bool    elm_win_iconified_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3920    /**
3921     * Set the layer of the window.
3922     *
3923     * What this means exactly will depend on the underlying engine used.
3924     *
3925     * In the case of X11 backed engines, the value in @p layer has the
3926     * following meanings:
3927     * @li < 3: The window will be placed below all others.
3928     * @li > 5: The window will be placed above all others.
3929     * @li other: The window will be placed in the default layer.
3930     *
3931     * @param obj The window object
3932     * @param layer The layer of the window
3933     */
3934    EAPI void         elm_win_layer_set(Evas_Object *obj, int layer) EINA_ARG_NONNULL(1);
3935    /**
3936     * Get the layer of the window.
3937     *
3938     * @param obj The window object
3939     * @return The layer of the window
3940     *
3941     * @see elm_win_layer_set()
3942     */
3943    EAPI int          elm_win_layer_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3944    /**
3945     * Set the rotation of the window.
3946     *
3947     * Most engines only work with multiples of 90.
3948     *
3949     * This function is used to set the orientation of the window @p obj to
3950     * match that of the screen. The window itself will be resized to adjust
3951     * to the new geometry of its contents. If you want to keep the window size,
3952     * see elm_win_rotation_with_resize_set().
3953     *
3954     * @param obj The window object
3955     * @param rotation The rotation of the window, in degrees (0-360),
3956     * counter-clockwise.
3957     */
3958    EAPI void         elm_win_rotation_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
3959    /**
3960     * Rotates the window and resizes it.
3961     *
3962     * Like elm_win_rotation_set(), but it also resizes the window's contents so
3963     * that they fit inside the current window geometry.
3964     *
3965     * @param obj The window object
3966     * @param layer The rotation of the window in degrees (0-360),
3967     * counter-clockwise.
3968     */
3969    EAPI void         elm_win_rotation_with_resize_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
3970    /**
3971     * Get the rotation of the window.
3972     *
3973     * @param obj The window object
3974     * @return The rotation of the window in degrees (0-360)
3975     *
3976     * @see elm_win_rotation_set()
3977     * @see elm_win_rotation_with_resize_set()
3978     */
3979    EAPI int          elm_win_rotation_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3980    /**
3981     * Set the sticky state of the window.
3982     *
3983     * Hints the Window Manager that the window in @p obj should be left fixed
3984     * at its position even when the virtual desktop it's on moves or changes.
3985     *
3986     * @param obj The window object
3987     * @param sticky If true, the window's sticky state is enabled
3988     */
3989    EAPI void         elm_win_sticky_set(Evas_Object *obj, Eina_Bool sticky) EINA_ARG_NONNULL(1);
3990    /**
3991     * Get the sticky state of the window.
3992     *
3993     * @param obj The window object
3994     * @return If true, the window's sticky state is enabled
3995     *
3996     * @see elm_win_sticky_set()
3997     */
3998    EAPI Eina_Bool    elm_win_sticky_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3999    /**
4000     * Set if this window is an illume conformant window
4001     *
4002     * @param obj The window object
4003     * @param conformant The conformant flag (1 = conformant, 0 = non-conformant)
4004     */
4005    EAPI void         elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant) EINA_ARG_NONNULL(1);
4006    /**
4007     * Get if this window is an illume conformant window
4008     *
4009     * @param obj The window object
4010     * @return A boolean if this window is illume conformant or not
4011     */
4012    EAPI Eina_Bool    elm_win_conformant_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4013    /**
4014     * Set a window to be an illume quickpanel window
4015     *
4016     * By default window objects are not quickpanel windows.
4017     *
4018     * @param obj The window object
4019     * @param quickpanel The quickpanel flag (1 = quickpanel, 0 = normal window)
4020     */
4021    EAPI void         elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel) EINA_ARG_NONNULL(1);
4022    /**
4023     * Get if this window is a quickpanel or not
4024     *
4025     * @param obj The window object
4026     * @return A boolean if this window is a quickpanel or not
4027     */
4028    EAPI Eina_Bool    elm_win_quickpanel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4029    /**
4030     * Set the major priority of a quickpanel window
4031     *
4032     * @param obj The window object
4033     * @param priority The major priority for this quickpanel
4034     */
4035    EAPI void         elm_win_quickpanel_priority_major_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
4036    /**
4037     * Get the major priority of a quickpanel window
4038     *
4039     * @param obj The window object
4040     * @return The major priority of this quickpanel
4041     */
4042    EAPI int          elm_win_quickpanel_priority_major_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4043    /**
4044     * Set the minor priority of a quickpanel window
4045     *
4046     * @param obj The window object
4047     * @param priority The minor priority for this quickpanel
4048     */
4049    EAPI void         elm_win_quickpanel_priority_minor_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
4050    /**
4051     * Get the minor priority of a quickpanel window
4052     *
4053     * @param obj The window object
4054     * @return The minor priority of this quickpanel
4055     */
4056    EAPI int          elm_win_quickpanel_priority_minor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4057    /**
4058     * Set which zone this quickpanel should appear in
4059     *
4060     * @param obj The window object
4061     * @param zone The requested zone for this quickpanel
4062     */
4063    EAPI void         elm_win_quickpanel_zone_set(Evas_Object *obj, int zone) EINA_ARG_NONNULL(1);
4064    /**
4065     * Get which zone this quickpanel should appear in
4066     *
4067     * @param obj The window object
4068     * @return The requested zone for this quickpanel
4069     */
4070    EAPI int          elm_win_quickpanel_zone_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4071    /**
4072     * Set the window to be skipped by keyboard focus
4073     *
4074     * This sets the window to be skipped by normal keyboard input. This means
4075     * a window manager will be asked to not focus this window as well as omit
4076     * it from things like the taskbar, pager, "alt-tab" list etc. etc.
4077     *
4078     * Call this and enable it on a window BEFORE you show it for the first time,
4079     * otherwise it may have no effect.
4080     *
4081     * Use this for windows that have only output information or might only be
4082     * interacted with by the mouse or fingers, and never for typing input.
4083     * Be careful that this may have side-effects like making the window
4084     * non-accessible in some cases unless the window is specially handled. Use
4085     * this with care.
4086     *
4087     * @param obj The window object
4088     * @param skip The skip flag state (EINA_TRUE if it is to be skipped)
4089     */
4090    EAPI void         elm_win_prop_focus_skip_set(Evas_Object *obj, Eina_Bool skip) EINA_ARG_NONNULL(1);
4091    /**
4092     * Send a command to the windowing environment
4093     *
4094     * This is intended to work in touchscreen or small screen device
4095     * environments where there is a more simplistic window management policy in
4096     * place. This uses the window object indicated to select which part of the
4097     * environment to control (the part that this window lives in), and provides
4098     * a command and an optional parameter structure (use NULL for this if not
4099     * needed).
4100     *
4101     * @param obj The window object that lives in the environment to control
4102     * @param command The command to send
4103     * @param params Optional parameters for the command
4104     */
4105    EAPI void         elm_win_illume_command_send(Evas_Object *obj, Elm_Illume_Command command, void *params) EINA_ARG_NONNULL(1);
4106    /**
4107     * Get the inlined image object handle
4108     *
4109     * When you create a window with elm_win_add() of type ELM_WIN_INLINED_IMAGE,
4110     * then the window is in fact an evas image object inlined in the parent
4111     * canvas. You can get this object (be careful to not manipulate it as it
4112     * is under control of elementary), and use it to do things like get pixel
4113     * data, save the image to a file, etc.
4114     *
4115     * @param obj The window object to get the inlined image from
4116     * @return The inlined image object, or NULL if none exists
4117     */
4118    EAPI Evas_Object *elm_win_inlined_image_object_get(Evas_Object *obj);
4119    /**
4120     * Set the enabled status for the focus highlight in a window
4121     *
4122     * This function will enable or disable the focus highlight only for the
4123     * given window, regardless of the global setting for it
4124     *
4125     * @param obj The window where to enable the highlight
4126     * @param enabled The enabled value for the highlight
4127     */
4128    EAPI void         elm_win_focus_highlight_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
4129    /**
4130     * Get the enabled value of the focus highlight for this window
4131     *
4132     * @param obj The window in which to check if the focus highlight is enabled
4133     *
4134     * @return EINA_TRUE if enabled, EINA_FALSE otherwise
4135     */
4136    EAPI Eina_Bool    elm_win_focus_highlight_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4137    /**
4138     * Set the style for the focus highlight on this window
4139     *
4140     * Sets the style to use for theming the highlight of focused objects on
4141     * the given window. If @p style is NULL, the default will be used.
4142     *
4143     * @param obj The window where to set the style
4144     * @param style The style to set
4145     */
4146    EAPI void         elm_win_focus_highlight_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
4147    /**
4148     * Get the style set for the focus highlight object
4149     *
4150     * Gets the style set for this windows highilght object, or NULL if none
4151     * is set.
4152     *
4153     * @param obj The window to retrieve the highlights style from
4154     *
4155     * @return The style set or NULL if none was. Default is used in that case.
4156     */
4157    EAPI const char  *elm_win_focus_highlight_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4158    /*...
4159     * ecore_x_icccm_hints_set -> accepts_focus (add to ecore_evas)
4160     * ecore_x_icccm_hints_set -> window_group (add to ecore_evas)
4161     * ecore_x_icccm_size_pos_hints_set -> request_pos (add to ecore_evas)
4162     * ecore_x_icccm_client_leader_set -> l (add to ecore_evas)
4163     * ecore_x_icccm_window_role_set -> role (add to ecore_evas)
4164     * ecore_x_icccm_transient_for_set -> forwin (add to ecore_evas)
4165     * ecore_x_netwm_window_type_set -> type (add to ecore_evas)
4166     *
4167     * (add to ecore_x) set netwm argb icon! (add to ecore_evas)
4168     * (blank mouse, private mouse obj, defaultmouse)
4169     *
4170     */
4171    /**
4172     * Sets the keyboard mode of the window.
4173     *
4174     * @param obj The window object
4175     * @param mode The mode to set, one of #Elm_Win_Keyboard_Mode
4176     */
4177    EAPI void                  elm_win_keyboard_mode_set(Evas_Object *obj, Elm_Win_Keyboard_Mode mode) EINA_ARG_NONNULL(1);
4178    /**
4179     * Gets the keyboard mode of the window.
4180     *
4181     * @param obj The window object
4182     * @return The mode, one of #Elm_Win_Keyboard_Mode
4183     */
4184    EAPI Elm_Win_Keyboard_Mode elm_win_keyboard_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4185    /**
4186     * Sets whether the window is a keyboard.
4187     *
4188     * @param obj The window object
4189     * @param is_keyboard If true, the window is a virtual keyboard
4190     */
4191    EAPI void                  elm_win_keyboard_win_set(Evas_Object *obj, Eina_Bool is_keyboard) EINA_ARG_NONNULL(1);
4192    /**
4193     * Gets whether the window is a keyboard.
4194     *
4195     * @param obj The window object
4196     * @return If the window is a virtual keyboard
4197     */
4198    EAPI Eina_Bool             elm_win_keyboard_win_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4199
4200    /**
4201     * Get the screen position of a window.
4202     *
4203     * @param obj The window object
4204     * @param x The int to store the x coordinate to
4205     * @param y The int to store the y coordinate to
4206     */
4207    EAPI void                  elm_win_screen_position_get(const Evas_Object *obj, int *x, int *y) EINA_ARG_NONNULL(1);
4208    /**
4209     * @}
4210     */
4211
4212    /**
4213     * @defgroup Inwin Inwin
4214     *
4215     * @image html img/widget/inwin/preview-00.png
4216     * @image latex img/widget/inwin/preview-00.eps
4217     * @image html img/widget/inwin/preview-01.png
4218     * @image latex img/widget/inwin/preview-01.eps
4219     * @image html img/widget/inwin/preview-02.png
4220     * @image latex img/widget/inwin/preview-02.eps
4221     *
4222     * An inwin is a window inside a window that is useful for a quick popup.
4223     * It does not hover.
4224     *
4225     * It works by creating an object that will occupy the entire window, so it
4226     * must be created using an @ref Win "elm_win" as parent only. The inwin
4227     * object can be hidden or restacked below every other object if it's
4228     * needed to show what's behind it without destroying it. If this is done,
4229     * the elm_win_inwin_activate() function can be used to bring it back to
4230     * full visibility again.
4231     *
4232     * There are three styles available in the default theme. These are:
4233     * @li default: The inwin is sized to take over most of the window it's
4234     * placed in.
4235     * @li minimal: The size of the inwin will be the minimum necessary to show
4236     * its contents.
4237     * @li minimal_vertical: Horizontally, the inwin takes as much space as
4238     * possible, but it's sized vertically the most it needs to fit its\
4239     * contents.
4240     *
4241     * Some examples of Inwin can be found in the following:
4242     * @li @ref inwin_example_01
4243     *
4244     * @{
4245     */
4246    /**
4247     * Adds an inwin to the current window
4248     *
4249     * The @p obj used as parent @b MUST be an @ref Win "Elementary Window".
4250     * Never call this function with anything other than the top-most window
4251     * as its parameter, unless you are fond of undefined behavior.
4252     *
4253     * After creating the object, the widget will set itself as resize object
4254     * for the window with elm_win_resize_object_add(), so when shown it will
4255     * appear to cover almost the entire window (how much of it depends on its
4256     * content and the style used). It must not be added into other container
4257     * objects and it needs not be moved or resized manually.
4258     *
4259     * @param parent The parent object
4260     * @return The new object or NULL if it cannot be created
4261     */
4262    EAPI Evas_Object          *elm_win_inwin_add(Evas_Object *obj) EINA_ARG_NONNULL(1);
4263    /**
4264     * Activates an inwin object, ensuring its visibility
4265     *
4266     * This function will make sure that the inwin @p obj is completely visible
4267     * by calling evas_object_show() and evas_object_raise() on it, to bring it
4268     * to the front. It also sets the keyboard focus to it, which will be passed
4269     * onto its content.
4270     *
4271     * The object's theme will also receive the signal "elm,action,show" with
4272     * source "elm".
4273     *
4274     * @param obj The inwin to activate
4275     */
4276    EAPI void                  elm_win_inwin_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
4277    /**
4278     * Set the content of an inwin object.
4279     *
4280     * Once the content object is set, a previously set one will be deleted.
4281     * If you want to keep that old content object, use the
4282     * elm_win_inwin_content_unset() function.
4283     *
4284     * @param obj The inwin object
4285     * @param content The object to set as content
4286     */
4287    EAPI void                  elm_win_inwin_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
4288    /**
4289     * Get the content of an inwin object.
4290     *
4291     * Return the content object which is set for this widget.
4292     *
4293     * The returned object is valid as long as the inwin is still alive and no
4294     * other content is set on it. Deleting the object will notify the inwin
4295     * about it and this one will be left empty.
4296     *
4297     * If you need to remove an inwin's content to be reused somewhere else,
4298     * see elm_win_inwin_content_unset().
4299     *
4300     * @param obj The inwin object
4301     * @return The content that is being used
4302     */
4303    EAPI Evas_Object          *elm_win_inwin_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4304    /**
4305     * Unset the content of an inwin object.
4306     *
4307     * Unparent and return the content object which was set for this widget.
4308     *
4309     * @param obj The inwin object
4310     * @return The content that was being used
4311     */
4312    EAPI Evas_Object          *elm_win_inwin_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4313    /**
4314     * @}
4315     */
4316    /* X specific calls - won't work on non-x engines (return 0) */
4317
4318    /**
4319     * Get the Ecore_X_Window of an Evas_Object
4320     *
4321     * @param obj The object
4322     *
4323     * @return The Ecore_X_Window of @p obj
4324     *
4325     * @ingroup Win
4326     */
4327    EAPI Ecore_X_Window elm_win_xwindow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4328
4329    /* smart callbacks called:
4330     * "delete,request" - the user requested to delete the window
4331     * "focus,in" - window got focus
4332     * "focus,out" - window lost focus
4333     * "moved" - window that holds the canvas was moved
4334     */
4335
4336    /**
4337     * @defgroup Bg Bg
4338     *
4339     * @image html img/widget/bg/preview-00.png
4340     * @image latex img/widget/bg/preview-00.eps
4341     *
4342     * @brief Background object, used for setting a solid color, image or Edje
4343     * group as background to a window or any container object.
4344     *
4345     * The bg object is used for setting a solid background to a window or
4346     * packing into any container object. It works just like an image, but has
4347     * some properties useful to a background, like setting it to tiled,
4348     * centered, scaled or stretched.
4349     *
4350     * Here is some sample code using it:
4351     * @li @ref bg_01_example_page
4352     * @li @ref bg_02_example_page
4353     * @li @ref bg_03_example_page
4354     */
4355
4356    /* bg */
4357    typedef enum _Elm_Bg_Option
4358      {
4359         ELM_BG_OPTION_CENTER,  /**< center the background */
4360         ELM_BG_OPTION_SCALE,   /**< scale the background retaining aspect ratio */
4361         ELM_BG_OPTION_STRETCH, /**< stretch the background to fill */
4362         ELM_BG_OPTION_TILE     /**< tile background at its original size */
4363      } Elm_Bg_Option;
4364
4365    /**
4366     * Add a new background to the parent
4367     *
4368     * @param parent The parent object
4369     * @return The new object or NULL if it cannot be created
4370     *
4371     * @ingroup Bg
4372     */
4373    EAPI Evas_Object  *elm_bg_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4374
4375    /**
4376     * Set the file (image or edje) used for the background
4377     *
4378     * @param obj The bg object
4379     * @param file The file path
4380     * @param group Optional key (group in Edje) within the file
4381     *
4382     * This sets the image file used in the background object. The image (or edje)
4383     * will be stretched (retaining aspect if its an image file) to completely fill
4384     * the bg object. This may mean some parts are not visible.
4385     *
4386     * @note  Once the image of @p obj is set, a previously set one will be deleted,
4387     * even if @p file is NULL.
4388     *
4389     * @ingroup Bg
4390     */
4391    EAPI void          elm_bg_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
4392
4393    /**
4394     * Get the file (image or edje) used for the background
4395     *
4396     * @param obj The bg object
4397     * @param file The file path
4398     * @param group Optional key (group in Edje) within the file
4399     *
4400     * @ingroup Bg
4401     */
4402    EAPI void          elm_bg_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
4403
4404    /**
4405     * Set the option used for the background image
4406     *
4407     * @param obj The bg object
4408     * @param option The desired background option (TILE, SCALE)
4409     *
4410     * This sets the option used for manipulating the display of the background
4411     * image. The image can be tiled or scaled.
4412     *
4413     * @ingroup Bg
4414     */
4415    EAPI void          elm_bg_option_set(Evas_Object *obj, Elm_Bg_Option option) EINA_ARG_NONNULL(1);
4416
4417    /**
4418     * Get the option used for the background image
4419     *
4420     * @param obj The bg object
4421     * @return The desired background option (CENTER, SCALE, STRETCH or TILE)
4422     *
4423     * @ingroup Bg
4424     */
4425    EAPI Elm_Bg_Option elm_bg_option_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4426    /**
4427     * Set the option used for the background color
4428     *
4429     * @param obj The bg object
4430     * @param r
4431     * @param g
4432     * @param b
4433     *
4434     * This sets the color used for the background rectangle. Its range goes
4435     * from 0 to 255.
4436     *
4437     * @ingroup Bg
4438     */
4439    EAPI void          elm_bg_color_set(Evas_Object *obj, int r, int g, int b) EINA_ARG_NONNULL(1);
4440    /**
4441     * Get the option used for the background color
4442     *
4443     * @param obj The bg object
4444     * @param r
4445     * @param g
4446     * @param b
4447     *
4448     * @ingroup Bg
4449     */
4450    EAPI void          elm_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b) EINA_ARG_NONNULL(1);
4451
4452    /**
4453     * Set the overlay object used for the background object.
4454     *
4455     * @param obj The bg object
4456     * @param overlay The overlay object
4457     *
4458     * This provides a way for elm_bg to have an 'overlay' that will be on top
4459     * of the bg. Once the over object is set, a previously set one will be
4460     * deleted, even if you set the new one to NULL. If you want to keep that
4461     * old content object, use the elm_bg_overlay_unset() function.
4462     *
4463     * @ingroup Bg
4464     */
4465
4466    EAPI void          elm_bg_overlay_set(Evas_Object *obj, Evas_Object *overlay) EINA_ARG_NONNULL(1);
4467
4468    /**
4469     * Get the overlay object used for the background object.
4470     *
4471     * @param obj The bg object
4472     * @return The content that is being used
4473     *
4474     * Return the content object which is set for this widget
4475     *
4476     * @ingroup Bg
4477     */
4478    EAPI Evas_Object  *elm_bg_overlay_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4479
4480    /**
4481     * Get the overlay object used for the background object.
4482     *
4483     * @param obj The bg object
4484     * @return The content that was being used
4485     *
4486     * Unparent and return the overlay object which was set for this widget
4487     *
4488     * @ingroup Bg
4489     */
4490    EAPI Evas_Object  *elm_bg_overlay_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4491
4492    /**
4493     * Set the size of the pixmap representation of the image.
4494     *
4495     * This option just makes sense if an image is going to be set in the bg.
4496     *
4497     * @param obj The bg object
4498     * @param w The new width of the image pixmap representation.
4499     * @param h The new height of the image pixmap representation.
4500     *
4501     * This function sets a new size for pixmap representation of the given bg
4502     * image. It allows the image to be loaded already in the specified size,
4503     * reducing the memory usage and load time when loading a big image with load
4504     * size set to a smaller size.
4505     *
4506     * NOTE: this is just a hint, the real size of the pixmap may differ
4507     * depending on the type of image being loaded, being bigger than requested.
4508     *
4509     * @ingroup Bg
4510     */
4511    EAPI void          elm_bg_load_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
4512    /* smart callbacks called:
4513     */
4514
4515    /**
4516     * @defgroup Icon Icon
4517     *
4518     * @image html img/widget/icon/preview-00.png
4519     * @image latex img/widget/icon/preview-00.eps
4520     *
4521     * An object that provides standard icon images (delete, edit, arrows, etc.)
4522     * or a custom file (PNG, JPG, EDJE, etc.) used for an icon.
4523     *
4524     * The icon image requested can be in the elementary theme, or in the
4525     * freedesktop.org paths. It's possible to set the order of preference from
4526     * where the image will be used.
4527     *
4528     * This API is very similar to @ref Image, but with ready to use images.
4529     *
4530     * Default images provided by the theme are described below.
4531     *
4532     * The first list contains icons that were first intended to be used in
4533     * toolbars, but can be used in many other places too:
4534     * @li home
4535     * @li close
4536     * @li apps
4537     * @li arrow_up
4538     * @li arrow_down
4539     * @li arrow_left
4540     * @li arrow_right
4541     * @li chat
4542     * @li clock
4543     * @li delete
4544     * @li edit
4545     * @li refresh
4546     * @li folder
4547     * @li file
4548     *
4549     * Now some icons that were designed to be used in menus (but again, you can
4550     * use them anywhere else):
4551     * @li menu/home
4552     * @li menu/close
4553     * @li menu/apps
4554     * @li menu/arrow_up
4555     * @li menu/arrow_down
4556     * @li menu/arrow_left
4557     * @li menu/arrow_right
4558     * @li menu/chat
4559     * @li menu/clock
4560     * @li menu/delete
4561     * @li menu/edit
4562     * @li menu/refresh
4563     * @li menu/folder
4564     * @li menu/file
4565     *
4566     * And here we have some media player specific icons:
4567     * @li media_player/forward
4568     * @li media_player/info
4569     * @li media_player/next
4570     * @li media_player/pause
4571     * @li media_player/play
4572     * @li media_player/prev
4573     * @li media_player/rewind
4574     * @li media_player/stop
4575     *
4576     * Signals that you can add callbacks for are:
4577     *
4578     * "clicked" - This is called when a user has clicked the icon
4579     *
4580     * An example of usage for this API follows:
4581     * @li @ref tutorial_icon
4582     */
4583
4584    /**
4585     * @addtogroup Icon
4586     * @{
4587     */
4588
4589    typedef enum _Elm_Icon_Type
4590      {
4591         ELM_ICON_NONE,
4592         ELM_ICON_FILE,
4593         ELM_ICON_STANDARD
4594      } Elm_Icon_Type;
4595    /**
4596     * @enum _Elm_Icon_Lookup_Order
4597     * @typedef Elm_Icon_Lookup_Order
4598     *
4599     * Lookup order used by elm_icon_standard_set(). Should look for icons in the
4600     * theme, FDO paths, or both?
4601     *
4602     * @ingroup Icon
4603     */
4604    typedef enum _Elm_Icon_Lookup_Order
4605      {
4606         ELM_ICON_LOOKUP_FDO_THEME, /**< icon look up order: freedesktop, theme */
4607         ELM_ICON_LOOKUP_THEME_FDO, /**< icon look up order: theme, freedesktop */
4608         ELM_ICON_LOOKUP_FDO,       /**< icon look up order: freedesktop */
4609         ELM_ICON_LOOKUP_THEME      /**< icon look up order: theme */
4610      } Elm_Icon_Lookup_Order;
4611
4612    /**
4613     * Add a new icon object to the parent.
4614     *
4615     * @param parent The parent object
4616     * @return The new object or NULL if it cannot be created
4617     *
4618     * @see elm_icon_file_set()
4619     *
4620     * @ingroup Icon
4621     */
4622    EAPI Evas_Object          *elm_icon_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4623    /**
4624     * Set the file that will be used as icon.
4625     *
4626     * @param obj The icon object
4627     * @param file The path to file that will be used as icon image
4628     * @param group The group that the icon belongs to in edje file
4629     *
4630     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4631     *
4632     * @note The icon image set by this function can be changed by
4633     * elm_icon_standard_set().
4634     *
4635     * @see elm_icon_file_get()
4636     *
4637     * @ingroup Icon
4638     */
4639    EAPI Eina_Bool             elm_icon_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
4640    /**
4641     * Set a location in memory to be used as an icon
4642     *
4643     * @param obj The icon object
4644     * @param img The binary data that will be used as an image
4645     * @param size The size of binary data @p img
4646     * @param format Optional format of @p img to pass to the image loader
4647     * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
4648     *
4649     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4650     *
4651     * @note The icon image set by this function can be changed by
4652     * elm_icon_standard_set().
4653     *
4654     * @ingroup Icon
4655     */
4656    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);
4657    /**
4658     * Get the file that will be used as icon.
4659     *
4660     * @param obj The icon object
4661     * @param file The path to file that will be used as icon icon image
4662     * @param group The group that the icon belongs to in edje file
4663     *
4664     * @see elm_icon_file_set()
4665     *
4666     * @ingroup Icon
4667     */
4668    EAPI void                  elm_icon_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
4669    EAPI void                  elm_icon_thumb_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
4670    /**
4671     * Set the icon by icon standards names.
4672     *
4673     * @param obj The icon object
4674     * @param name The icon name
4675     *
4676     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4677     *
4678     * For example, freedesktop.org defines standard icon names such as "home",
4679     * "network", etc. There can be different icon sets to match those icon
4680     * keys. The @p name given as parameter is one of these "keys", and will be
4681     * used to look in the freedesktop.org paths and elementary theme. One can
4682     * change the lookup order with elm_icon_order_lookup_set().
4683     *
4684     * If name is not found in any of the expected locations and it is the
4685     * absolute path of an image file, this image will be used.
4686     *
4687     * @note The icon image set by this function can be changed by
4688     * elm_icon_file_set().
4689     *
4690     * @see elm_icon_standard_get()
4691     * @see elm_icon_file_set()
4692     *
4693     * @ingroup Icon
4694     */
4695    EAPI Eina_Bool             elm_icon_standard_set(Evas_Object *obj, const char *name) EINA_ARG_NONNULL(1);
4696    /**
4697     * Get the icon name set by icon standard names.
4698     *
4699     * @param obj The icon object
4700     * @return The icon name
4701     *
4702     * If the icon image was set using elm_icon_file_set() instead of
4703     * elm_icon_standard_set(), then this function will return @c NULL.
4704     *
4705     * @see elm_icon_standard_set()
4706     *
4707     * @ingroup Icon
4708     */
4709    EAPI const char           *elm_icon_standard_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4710    /**
4711     * Set the smooth effect for an icon object.
4712     *
4713     * @param obj The icon object
4714     * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
4715     * otherwise. Default is @c EINA_TRUE.
4716     *
4717     * Set the scaling algorithm to be used when scaling the icon image. Smooth
4718     * scaling provides a better resulting image, but is slower.
4719     *
4720     * The smooth scaling should be disabled when making animations that change
4721     * the icon size, since they will be faster. Animations that don't require
4722     * resizing of the icon can keep the smooth scaling enabled (even if the icon
4723     * is already scaled, since the scaled icon image will be cached).
4724     *
4725     * @see elm_icon_smooth_get()
4726     *
4727     * @ingroup Icon
4728     */
4729    EAPI void                  elm_icon_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
4730    /**
4731     * Get the smooth effect for an icon object.
4732     *
4733     * @param obj The icon object
4734     * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
4735     *
4736     * @see elm_icon_smooth_set()
4737     *
4738     * @ingroup Icon
4739     */
4740    EAPI Eina_Bool             elm_icon_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4741    /**
4742     * Disable scaling of this object.
4743     *
4744     * @param obj The icon object.
4745     * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
4746     * otherwise. Default is @c EINA_FALSE.
4747     *
4748     * This function disables scaling of the icon object through the function
4749     * elm_object_scale_set(). However, this does not affect the object
4750     * size/resize in any way. For that effect, take a look at
4751     * elm_icon_scale_set().
4752     *
4753     * @see elm_icon_no_scale_get()
4754     * @see elm_icon_scale_set()
4755     * @see elm_object_scale_set()
4756     *
4757     * @ingroup Icon
4758     */
4759    EAPI void                  elm_icon_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
4760    /**
4761     * Get whether scaling is disabled on the object.
4762     *
4763     * @param obj The icon object
4764     * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
4765     *
4766     * @see elm_icon_no_scale_set()
4767     *
4768     * @ingroup Icon
4769     */
4770    EAPI Eina_Bool             elm_icon_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4771    /**
4772     * Set if the object is (up/down) resizable.
4773     *
4774     * @param obj The icon object
4775     * @param scale_up A bool to set if the object is resizable up. Default is
4776     * @c EINA_TRUE.
4777     * @param scale_down A bool to set if the object is resizable down. Default
4778     * is @c EINA_TRUE.
4779     *
4780     * This function limits the icon object resize ability. If @p scale_up is set to
4781     * @c EINA_FALSE, the object can't have its height or width resized to a value
4782     * higher than the original icon size. Same is valid for @p scale_down.
4783     *
4784     * @see elm_icon_scale_get()
4785     *
4786     * @ingroup Icon
4787     */
4788    EAPI void                  elm_icon_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
4789    /**
4790     * Get if the object is (up/down) resizable.
4791     *
4792     * @param obj The icon object
4793     * @param scale_up A bool to set if the object is resizable up
4794     * @param scale_down A bool to set if the object is resizable down
4795     *
4796     * @see elm_icon_scale_set()
4797     *
4798     * @ingroup Icon
4799     */
4800    EAPI void                  elm_icon_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
4801    /**
4802     * Get the object's image size
4803     *
4804     * @param obj The icon object
4805     * @param w A pointer to store the width in
4806     * @param h A pointer to store the height in
4807     *
4808     * @ingroup Icon
4809     */
4810    EAPI void                  elm_icon_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
4811    /**
4812     * Set if the icon fill the entire object area.
4813     *
4814     * @param obj The icon object
4815     * @param fill_outside @c EINA_TRUE if the object is filled outside,
4816     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
4817     *
4818     * When the icon object is resized to a different aspect ratio from the
4819     * original icon image, the icon image will still keep its aspect. This flag
4820     * tells how the image should fill the object's area. They are: keep the
4821     * entire icon inside the limits of height and width of the object (@p
4822     * fill_outside is @c EINA_FALSE) or let the extra width or height go outside
4823     * of the object, and the icon will fill the entire object (@p fill_outside
4824     * is @c EINA_TRUE).
4825     *
4826     * @note Unlike @ref Image, there's no option in icon to set the aspect ratio
4827     * retain property to false. Thus, the icon image will always keep its
4828     * original aspect ratio.
4829     *
4830     * @see elm_icon_fill_outside_get()
4831     * @see elm_image_fill_outside_set()
4832     *
4833     * @ingroup Icon
4834     */
4835    EAPI void                  elm_icon_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
4836    /**
4837     * Get if the object is filled outside.
4838     *
4839     * @param obj The icon object
4840     * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
4841     *
4842     * @see elm_icon_fill_outside_set()
4843     *
4844     * @ingroup Icon
4845     */
4846    EAPI Eina_Bool             elm_icon_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4847    /**
4848     * Set the prescale size for the icon.
4849     *
4850     * @param obj The icon object
4851     * @param size The prescale size. This value is used for both width and
4852     * height.
4853     *
4854     * This function sets a new size for pixmap representation of the given
4855     * icon. It allows the icon to be loaded already in the specified size,
4856     * reducing the memory usage and load time when loading a big icon with load
4857     * size set to a smaller size.
4858     *
4859     * It's equivalent to the elm_bg_load_size_set() function for bg.
4860     *
4861     * @note this is just a hint, the real size of the pixmap may differ
4862     * depending on the type of icon being loaded, being bigger than requested.
4863     *
4864     * @see elm_icon_prescale_get()
4865     * @see elm_bg_load_size_set()
4866     *
4867     * @ingroup Icon
4868     */
4869    EAPI void                  elm_icon_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
4870    /**
4871     * Get the prescale size for the icon.
4872     *
4873     * @param obj The icon object
4874     * @return The prescale size
4875     *
4876     * @see elm_icon_prescale_set()
4877     *
4878     * @ingroup Icon
4879     */
4880    EAPI int                   elm_icon_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4881    /**
4882     * Sets the icon lookup order used by elm_icon_standard_set().
4883     *
4884     * @param obj The icon object
4885     * @param order The icon lookup order (can be one of
4886     * ELM_ICON_LOOKUP_FDO_THEME, ELM_ICON_LOOKUP_THEME_FDO, ELM_ICON_LOOKUP_FDO
4887     * or ELM_ICON_LOOKUP_THEME)
4888     *
4889     * @see elm_icon_order_lookup_get()
4890     * @see Elm_Icon_Lookup_Order
4891     *
4892     * @ingroup Icon
4893     */
4894    EAPI void                  elm_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
4895    /**
4896     * Gets the icon lookup order.
4897     *
4898     * @param obj The icon object
4899     * @return The icon lookup order
4900     *
4901     * @see elm_icon_order_lookup_set()
4902     * @see Elm_Icon_Lookup_Order
4903     *
4904     * @ingroup Icon
4905     */
4906    EAPI Elm_Icon_Lookup_Order elm_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4907    /**
4908     * Get if the icon supports animation or not.
4909     *
4910     * @param obj The icon object
4911     * @return @c EINA_TRUE if the icon supports animation,
4912     *         @c EINA_FALSE otherwise.
4913     *
4914     * Return if this elm icon's image can be animated. Currently Evas only
4915     * supports gif animation. If the return value is EINA_FALSE, other
4916     * elm_icon_animated_XXX APIs won't work.
4917     * @ingroup Icon
4918     */
4919    EAPI Eina_Bool           elm_icon_animated_available_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4920    /**
4921     * Set animation mode of the icon.
4922     *
4923     * @param obj The icon object
4924     * @param anim @c EINA_TRUE if the object do animation job,
4925     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
4926     *
4927     * Even though elm icon's file can be animated,
4928     * sometimes appication developer want to just first page of image.
4929     * In that time, don't call this function, because default value is EINA_FALSE
4930     * Only when you want icon support anition,
4931     * use this function and set animated to EINA_TURE
4932     * @ingroup Icon
4933     */
4934    EAPI void                elm_icon_animated_set(Evas_Object *obj, Eina_Bool animated) EINA_ARG_NONNULL(1);
4935    /**
4936     * Get animation mode of the icon.
4937     *
4938     * @param obj The icon object
4939     * @return The animation mode of the icon object
4940     * @see elm_icon_animated_set
4941     * @ingroup Icon
4942     */
4943    EAPI Eina_Bool           elm_icon_animated_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4944    /**
4945     * Set animation play mode of the icon.
4946     *
4947     * @param obj The icon object
4948     * @param play @c EINA_TRUE the object play animation images,
4949     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
4950     *
4951     * If you want to play elm icon's animation, you set play to EINA_TURE.
4952     * For example, you make gif player using this set/get API and click event.
4953     *
4954     * 1. Click event occurs
4955     * 2. Check play flag using elm_icon_animaged_play_get
4956     * 3. If elm icon was playing, set play to EINA_FALSE.
4957     *    Then animation will be stopped and vice versa
4958     * @ingroup Icon
4959     */
4960    EAPI void                elm_icon_animated_play_set(Evas_Object *obj, Eina_Bool play) EINA_ARG_NONNULL(1);
4961    /**
4962     * Get animation play mode of the icon.
4963     *
4964     * @param obj The icon object
4965     * @return The play mode of the icon object
4966     *
4967     * @see elm_icon_animated_lay_get
4968     * @ingroup Icon
4969     */
4970    EAPI Eina_Bool           elm_icon_animated_play_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4971
4972    /**
4973     * @}
4974     */
4975
4976    /**
4977     * @defgroup Image Image
4978     *
4979     * @image html img/widget/image/preview-00.png
4980     * @image latex img/widget/image/preview-00.eps
4981
4982     *
4983     * An object that allows one to load an image file to it. It can be used
4984     * anywhere like any other elementary widget.
4985     *
4986     * This widget provides most of the functionality provided from @ref Bg or @ref
4987     * Icon, but with a slightly different API (use the one that fits better your
4988     * needs).
4989     *
4990     * The features not provided by those two other image widgets are:
4991     * @li allowing to get the basic @c Evas_Object with elm_image_object_get();
4992     * @li change the object orientation with elm_image_orient_set();
4993     * @li and turning the image editable with elm_image_editable_set().
4994     *
4995     * Signals that you can add callbacks for are:
4996     *
4997     * @li @c "clicked" - This is called when a user has clicked the image
4998     *
4999     * An example of usage for this API follows:
5000     * @li @ref tutorial_image
5001     */
5002
5003    /**
5004     * @addtogroup Image
5005     * @{
5006     */
5007
5008    /**
5009     * @enum _Elm_Image_Orient
5010     * @typedef Elm_Image_Orient
5011     *
5012     * Possible orientation options for elm_image_orient_set().
5013     *
5014     * @image html elm_image_orient_set.png
5015     * @image latex elm_image_orient_set.eps width=\textwidth
5016     *
5017     * @ingroup Image
5018     */
5019    typedef enum _Elm_Image_Orient
5020      {
5021         ELM_IMAGE_ORIENT_NONE, /**< no orientation change */
5022         ELM_IMAGE_ROTATE_90_CW, /**< rotate 90 degrees clockwise */
5023         ELM_IMAGE_ROTATE_180_CW, /**< rotate 180 degrees clockwise */
5024         ELM_IMAGE_ROTATE_90_CCW, /**< rotate 90 degrees counter-clockwise (i.e. 270 degrees clockwise) */
5025         ELM_IMAGE_FLIP_HORIZONTAL, /**< flip image horizontally */
5026         ELM_IMAGE_FLIP_VERTICAL, /**< flip image vertically */
5027         ELM_IMAGE_FLIP_TRANSPOSE, /**< flip the image along the y = (side - x) line*/
5028         ELM_IMAGE_FLIP_TRANSVERSE /**< flip the image along the y = x line */
5029      } Elm_Image_Orient;
5030
5031    /**
5032     * Add a new image to the parent.
5033     *
5034     * @param parent The parent object
5035     * @return The new object or NULL if it cannot be created
5036     *
5037     * @see elm_image_file_set()
5038     *
5039     * @ingroup Image
5040     */
5041    EAPI Evas_Object     *elm_image_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5042    /**
5043     * Set the file that will be used as image.
5044     *
5045     * @param obj The image object
5046     * @param file The path to file that will be used as image
5047     * @param group The group that the image belongs in edje file (if it's an
5048     * edje image)
5049     *
5050     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5051     *
5052     * @see elm_image_file_get()
5053     *
5054     * @ingroup Image
5055     */
5056    EAPI Eina_Bool        elm_image_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
5057    /**
5058     * Get the file that will be used as image.
5059     *
5060     * @param obj The image object
5061     * @param file The path to file
5062     * @param group The group that the image belongs in edje file
5063     *
5064     * @see elm_image_file_set()
5065     *
5066     * @ingroup Image
5067     */
5068    EAPI void             elm_image_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
5069    /**
5070     * Set the smooth effect for an image.
5071     *
5072     * @param obj The image object
5073     * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
5074     * otherwise. Default is @c EINA_TRUE.
5075     *
5076     * Set the scaling algorithm to be used when scaling the image. Smooth
5077     * scaling provides a better resulting image, but is slower.
5078     *
5079     * The smooth scaling should be disabled when making animations that change
5080     * the image size, since it will be faster. Animations that don't require
5081     * resizing of the image can keep the smooth scaling enabled (even if the
5082     * image is already scaled, since the scaled image will be cached).
5083     *
5084     * @see elm_image_smooth_get()
5085     *
5086     * @ingroup Image
5087     */
5088    EAPI void             elm_image_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
5089    /**
5090     * Get the smooth effect for an image.
5091     *
5092     * @param obj The image object
5093     * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
5094     *
5095     * @see elm_image_smooth_get()
5096     *
5097     * @ingroup Image
5098     */
5099    EAPI Eina_Bool        elm_image_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5100    /**
5101     * Gets the current size of the image.
5102     *
5103     * @param obj The image object.
5104     * @param w Pointer to store width, or NULL.
5105     * @param h Pointer to store height, or NULL.
5106     *
5107     * This is the real size of the image, not the size of the object.
5108     *
5109     * On error, neither w or h will be written.
5110     *
5111     * @ingroup Image
5112     */
5113    EAPI void             elm_image_object_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
5114    /**
5115     * Disable scaling of this object.
5116     *
5117     * @param obj The image object.
5118     * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
5119     * otherwise. Default is @c EINA_FALSE.
5120     *
5121     * This function disables scaling of the elm_image widget through the
5122     * function elm_object_scale_set(). However, this does not affect the widget
5123     * size/resize in any way. For that effect, take a look at
5124     * elm_image_scale_set().
5125     *
5126     * @see elm_image_no_scale_get()
5127     * @see elm_image_scale_set()
5128     * @see elm_object_scale_set()
5129     *
5130     * @ingroup Image
5131     */
5132    EAPI void             elm_image_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
5133    /**
5134     * Get whether scaling is disabled on the object.
5135     *
5136     * @param obj The image object
5137     * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
5138     *
5139     * @see elm_image_no_scale_set()
5140     *
5141     * @ingroup Image
5142     */
5143    EAPI Eina_Bool        elm_image_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5144    /**
5145     * Set if the object is (up/down) resizable.
5146     *
5147     * @param obj The image object
5148     * @param scale_up A bool to set if the object is resizable up. Default is
5149     * @c EINA_TRUE.
5150     * @param scale_down A bool to set if the object is resizable down. Default
5151     * is @c EINA_TRUE.
5152     *
5153     * This function limits the image resize ability. If @p scale_up is set to
5154     * @c EINA_FALSE, the object can't have its height or width resized to a value
5155     * higher than the original image size. Same is valid for @p scale_down.
5156     *
5157     * @see elm_image_scale_get()
5158     *
5159     * @ingroup Image
5160     */
5161    EAPI void             elm_image_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
5162    /**
5163     * Get if the object is (up/down) resizable.
5164     *
5165     * @param obj The image object
5166     * @param scale_up A bool to set if the object is resizable up
5167     * @param scale_down A bool to set if the object is resizable down
5168     *
5169     * @see elm_image_scale_set()
5170     *
5171     * @ingroup Image
5172     */
5173    EAPI void             elm_image_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
5174    /**
5175     * Set if the image fill the entire object area when keeping the aspect ratio.
5176     *
5177     * @param obj The image object
5178     * @param fill_outside @c EINA_TRUE if the object is filled outside,
5179     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5180     *
5181     * When the image should keep its aspect ratio even if resized to another
5182     * aspect ratio, there are two possibilities to resize it: keep the entire
5183     * image inside the limits of height and width of the object (@p fill_outside
5184     * is @c EINA_FALSE) or let the extra width or height go outside of the object,
5185     * and the image will fill the entire object (@p fill_outside is @c EINA_TRUE).
5186     *
5187     * @note This option will have no effect if
5188     * elm_image_aspect_ratio_retained_set() is set to @c EINA_FALSE.
5189     *
5190     * @see elm_image_fill_outside_get()
5191     * @see elm_image_aspect_ratio_retained_set()
5192     *
5193     * @ingroup Image
5194     */
5195    EAPI void             elm_image_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
5196    /**
5197     * Get if the object is filled outside
5198     *
5199     * @param obj The image object
5200     * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
5201     *
5202     * @see elm_image_fill_outside_set()
5203     *
5204     * @ingroup Image
5205     */
5206    EAPI Eina_Bool        elm_image_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5207    /**
5208     * Set the prescale size for the image
5209     *
5210     * @param obj The image object
5211     * @param size The prescale size. This value is used for both width and
5212     * height.
5213     *
5214     * This function sets a new size for pixmap representation of the given
5215     * image. It allows the image to be loaded already in the specified size,
5216     * reducing the memory usage and load time when loading a big image with load
5217     * size set to a smaller size.
5218     *
5219     * It's equivalent to the elm_bg_load_size_set() function for bg.
5220     *
5221     * @note this is just a hint, the real size of the pixmap may differ
5222     * depending on the type of image being loaded, being bigger than requested.
5223     *
5224     * @see elm_image_prescale_get()
5225     * @see elm_bg_load_size_set()
5226     *
5227     * @ingroup Image
5228     */
5229    EAPI void             elm_image_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
5230    /**
5231     * Get the prescale size for the image
5232     *
5233     * @param obj The image object
5234     * @return The prescale size
5235     *
5236     * @see elm_image_prescale_set()
5237     *
5238     * @ingroup Image
5239     */
5240    EAPI int              elm_image_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5241    /**
5242     * Set the image orientation.
5243     *
5244     * @param obj The image object
5245     * @param orient The image orientation
5246     * (one of #ELM_IMAGE_ORIENT_NONE, #ELM_IMAGE_ROTATE_90_CW,
5247     *  #ELM_IMAGE_ROTATE_180_CW, #ELM_IMAGE_ROTATE_90_CCW,
5248     *  #ELM_IMAGE_FLIP_HORIZONTAL, #ELM_IMAGE_FLIP_VERTICAL,
5249     *  #ELM_IMAGE_FLIP_TRANSPOSE, #ELM_IMAGE_FLIP_TRANSVERSE).
5250     *  Default is #ELM_IMAGE_ORIENT_NONE.
5251     *
5252     * This function allows to rotate or flip the given image.
5253     *
5254     * @see elm_image_orient_get()
5255     * @see @ref Elm_Image_Orient
5256     *
5257     * @ingroup Image
5258     */
5259    EAPI void             elm_image_orient_set(Evas_Object *obj, Elm_Image_Orient orient) EINA_ARG_NONNULL(1);
5260    /**
5261     * Get the image orientation.
5262     *
5263     * @param obj The image object
5264     * @return The image orientation
5265     * (one of #ELM_IMAGE_ORIENT_NONE, #ELM_IMAGE_ROTATE_90_CW,
5266     *  #ELM_IMAGE_ROTATE_180_CW, #ELM_IMAGE_ROTATE_90_CCW,
5267     *  #ELM_IMAGE_FLIP_HORIZONTAL, #ELM_IMAGE_FLIP_VERTICAL,
5268     *  #ELM_IMAGE_FLIP_TRANSPOSE, #ELM_IMAGE_FLIP_TRANSVERSE)
5269     *
5270     * @see elm_image_orient_set()
5271     * @see @ref Elm_Image_Orient
5272     *
5273     * @ingroup Image
5274     */
5275    EAPI Elm_Image_Orient elm_image_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5276    /**
5277     * Make the image 'editable'.
5278     *
5279     * @param obj Image object.
5280     * @param set Turn on or off editability. Default is @c EINA_FALSE.
5281     *
5282     * This means the image is a valid drag target for drag and drop, and can be
5283     * cut or pasted too.
5284     *
5285     * @ingroup Image
5286     */
5287    EAPI void             elm_image_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
5288    /**
5289     * Make the image 'editable'.
5290     *
5291     * @param obj Image object.
5292     * @return Editability.
5293     *
5294     * This means the image is a valid drag target for drag and drop, and can be
5295     * cut or pasted too.
5296     *
5297     * @ingroup Image
5298     */
5299    EAPI Eina_Bool        elm_image_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5300    /**
5301     * Get the basic Evas_Image object from this object (widget).
5302     *
5303     * @param obj The image object to get the inlined image from
5304     * @return The inlined image object, or NULL if none exists
5305     *
5306     * This function allows one to get the underlying @c Evas_Object of type
5307     * Image from this elementary widget. It can be useful to do things like get
5308     * the pixel data, save the image to a file, etc.
5309     *
5310     * @note Be careful to not manipulate it, as it is under control of
5311     * elementary.
5312     *
5313     * @ingroup Image
5314     */
5315    EAPI Evas_Object     *elm_image_object_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5316    /**
5317     * Set whether the original aspect ratio of the image should be kept on resize.
5318     *
5319     * @param obj The image object.
5320     * @param retained @c EINA_TRUE if the image should retain the aspect,
5321     * @c EINA_FALSE otherwise.
5322     *
5323     * The original aspect ratio (width / height) of the image is usually
5324     * distorted to match the object's size. Enabling this option will retain
5325     * this original aspect, and the way that the image is fit into the object's
5326     * area depends on the option set by elm_image_fill_outside_set().
5327     *
5328     * @see elm_image_aspect_ratio_retained_get()
5329     * @see elm_image_fill_outside_set()
5330     *
5331     * @ingroup Image
5332     */
5333    EAPI void             elm_image_aspect_ratio_retained_set(Evas_Object *obj, Eina_Bool retained) EINA_ARG_NONNULL(1);
5334    /**
5335     * Get if the object retains the original aspect ratio.
5336     *
5337     * @param obj The image object.
5338     * @return @c EINA_TRUE if the object keeps the original aspect, @c EINA_FALSE
5339     * otherwise.
5340     *
5341     * @ingroup Image
5342     */
5343    EAPI Eina_Bool        elm_image_aspect_ratio_retained_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5344
5345    /**
5346     * @}
5347     */
5348
5349    /* glview */
5350    typedef void (*Elm_GLView_Func_Cb)(Evas_Object *obj);
5351
5352    typedef enum _Elm_GLView_Mode
5353      {
5354         ELM_GLVIEW_ALPHA   = 1,
5355         ELM_GLVIEW_DEPTH   = 2,
5356         ELM_GLVIEW_STENCIL = 4
5357      } Elm_GLView_Mode;
5358
5359    /**
5360     * Defines a policy for the glview resizing.
5361     *
5362     * @note Default is ELM_GLVIEW_RESIZE_POLICY_RECREATE
5363     */
5364    typedef enum _Elm_GLView_Resize_Policy
5365      {
5366         ELM_GLVIEW_RESIZE_POLICY_RECREATE = 1,      /**< Resize the internal surface along with the image */
5367         ELM_GLVIEW_RESIZE_POLICY_SCALE    = 2       /**< Only reize the internal image and not the surface */
5368      } Elm_GLView_Resize_Policy;
5369
5370    typedef enum _Elm_GLView_Render_Policy
5371      {
5372         ELM_GLVIEW_RENDER_POLICY_ON_DEMAND = 1,     /**< Render only when there is a need for redrawing */
5373         ELM_GLVIEW_RENDER_POLICY_ALWAYS    = 2      /**< Render always even when it is not visible */
5374      } Elm_GLView_Render_Policy;
5375
5376    /**
5377     * @defgroup GLView
5378     *
5379     * A simple GLView widget that allows GL rendering.
5380     *
5381     * Signals that you can add callbacks for are:
5382     *
5383     * @{
5384     */
5385
5386    /**
5387     * Add a new glview to the parent
5388     *
5389     * @param parent The parent object
5390     * @return The new object or NULL if it cannot be created
5391     *
5392     * @ingroup GLView
5393     */
5394    EAPI Evas_Object     *elm_glview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5395
5396    /**
5397     * Sets the size of the glview
5398     *
5399     * @param obj The glview object
5400     * @param width width of the glview object
5401     * @param height height of the glview object
5402     *
5403     * @ingroup GLView
5404     */
5405    EAPI void             elm_glview_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
5406
5407    /**
5408     * Gets the size of the glview.
5409     *
5410     * @param obj The glview object
5411     * @param width width of the glview object
5412     * @param height height of the glview object
5413     *
5414     * Note that this function returns the actual image size of the
5415     * glview.  This means that when the scale policy is set to
5416     * ELM_GLVIEW_RESIZE_POLICY_SCALE, it'll return the non-scaled
5417     * size.
5418     *
5419     * @ingroup GLView
5420     */
5421    EAPI void             elm_glview_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
5422
5423    /**
5424     * Gets the gl api struct for gl rendering
5425     *
5426     * @param obj The glview object
5427     * @return The api object or NULL if it cannot be created
5428     *
5429     * @ingroup GLView
5430     */
5431    EAPI Evas_GL_API     *elm_glview_gl_api_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5432
5433    /**
5434     * Set the mode of the GLView. Supports Three simple modes.
5435     *
5436     * @param obj The glview object
5437     * @param mode The mode Options OR'ed enabling Alpha, Depth, Stencil.
5438     * @return True if set properly.
5439     *
5440     * @ingroup GLView
5441     */
5442    EAPI Eina_Bool        elm_glview_mode_set(Evas_Object *obj, Elm_GLView_Mode mode) EINA_ARG_NONNULL(1);
5443
5444    /**
5445     * Set the resize policy for the glview object.
5446     *
5447     * @param obj The glview object.
5448     * @param policy The scaling policy.
5449     *
5450     * By default, the resize policy is set to
5451     * ELM_GLVIEW_RESIZE_POLICY_RECREATE.  When resize is called it
5452     * destroys the previous surface and recreates the newly specified
5453     * size. If the policy is set to ELM_GLVIEW_RESIZE_POLICY_SCALE,
5454     * however, glview only scales the image object and not the underlying
5455     * GL Surface.
5456     *
5457     * @ingroup GLView
5458     */
5459    EAPI Eina_Bool        elm_glview_resize_policy_set(Evas_Object *obj, Elm_GLView_Resize_Policy policy) EINA_ARG_NONNULL(1);
5460
5461    /**
5462     * Set the render policy for the glview object.
5463     *
5464     * @param obj The glview object.
5465     * @param policy The render policy.
5466     *
5467     * By default, the render policy is set to
5468     * ELM_GLVIEW_RENDER_POLICY_ON_DEMAND.  This policy is set such
5469     * that during the render loop, glview is only redrawn if it needs
5470     * to be redrawn. (i.e. When it is visible) If the policy is set to
5471     * ELM_GLVIEWW_RENDER_POLICY_ALWAYS, it redraws regardless of
5472     * whether it is visible/need redrawing or not.
5473     *
5474     * @ingroup GLView
5475     */
5476    EAPI Eina_Bool        elm_glview_render_policy_set(Evas_Object *obj, Elm_GLView_Render_Policy policy) EINA_ARG_NONNULL(1);
5477
5478    /**
5479     * Set the init function that runs once in the main loop.
5480     *
5481     * @param obj The glview object.
5482     * @param func The init function to be registered.
5483     *
5484     * The registered init function gets called once during the render loop.
5485     *
5486     * @ingroup GLView
5487     */
5488    EAPI void             elm_glview_init_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5489
5490    /**
5491     * Set the render function that runs in the main loop.
5492     *
5493     * @param obj The glview object.
5494     * @param func The delete function to be registered.
5495     *
5496     * The registered del function gets called when GLView object is deleted.
5497     *
5498     * @ingroup GLView
5499     */
5500    EAPI void             elm_glview_del_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5501
5502    /**
5503     * Set the resize function that gets called when resize happens.
5504     *
5505     * @param obj The glview object.
5506     * @param func The resize function to be registered.
5507     *
5508     * @ingroup GLView
5509     */
5510    EAPI void             elm_glview_resize_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5511
5512    /**
5513     * Set the render function that runs in the main loop.
5514     *
5515     * @param obj The glview object.
5516     * @param func The render function to be registered.
5517     *
5518     * @ingroup GLView
5519     */
5520    EAPI void             elm_glview_render_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5521
5522    /**
5523     * Notifies that there has been changes in the GLView.
5524     *
5525     * @param obj The glview object.
5526     *
5527     * @ingroup GLView
5528     */
5529    EAPI void             elm_glview_changed_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
5530
5531    /**
5532     * @}
5533     */
5534
5535    /* box */
5536    /**
5537     * @defgroup Box Box
5538     *
5539     * @image html img/widget/box/preview-00.png
5540     * @image latex img/widget/box/preview-00.eps width=\textwidth
5541     *
5542     * @image html img/box.png
5543     * @image latex img/box.eps width=\textwidth
5544     *
5545     * A box arranges objects in a linear fashion, governed by a layout function
5546     * that defines the details of this arrangement.
5547     *
5548     * By default, the box will use an internal function to set the layout to
5549     * a single row, either vertical or horizontal. This layout is affected
5550     * by a number of parameters, such as the homogeneous flag set by
5551     * elm_box_homogeneous_set(), the values given by elm_box_padding_set() and
5552     * elm_box_align_set() and the hints set to each object in the box.
5553     *
5554     * For this default layout, it's possible to change the orientation with
5555     * elm_box_horizontal_set(). The box will start in the vertical orientation,
5556     * placing its elements ordered from top to bottom. When horizontal is set,
5557     * the order will go from left to right. If the box is set to be
5558     * homogeneous, every object in it will be assigned the same space, that
5559     * of the largest object. Padding can be used to set some spacing between
5560     * the cell given to each object. The alignment of the box, set with
5561     * elm_box_align_set(), determines how the bounding box of all the elements
5562     * will be placed within the space given to the box widget itself.
5563     *
5564     * The size hints of each object also affect how they are placed and sized
5565     * within the box. evas_object_size_hint_min_set() will give the minimum
5566     * size the object can have, and the box will use it as the basis for all
5567     * latter calculations. Elementary widgets set their own minimum size as
5568     * needed, so there's rarely any need to use it manually.
5569     *
5570     * evas_object_size_hint_weight_set(), when not in homogeneous mode, is
5571     * used to tell whether the object will be allocated the minimum size it
5572     * needs or if the space given to it should be expanded. It's important
5573     * to realize that expanding the size given to the object is not the same
5574     * thing as resizing the object. It could very well end being a small
5575     * widget floating in a much larger empty space. If not set, the weight
5576     * for objects will normally be 0.0 for both axis, meaning the widget will
5577     * not be expanded. To take as much space possible, set the weight to
5578     * EVAS_HINT_EXPAND (defined to 1.0) for the desired axis to expand.
5579     *
5580     * Besides how much space each object is allocated, it's possible to control
5581     * how the widget will be placed within that space using
5582     * evas_object_size_hint_align_set(). By default, this value will be 0.5
5583     * for both axis, meaning the object will be centered, but any value from
5584     * 0.0 (left or top, for the @c x and @c y axis, respectively) to 1.0
5585     * (right or bottom) can be used. The special value EVAS_HINT_FILL, which
5586     * is -1.0, means the object will be resized to fill the entire space it
5587     * was allocated.
5588     *
5589     * In addition, customized functions to define the layout can be set, which
5590     * allow the application developer to organize the objects within the box
5591     * in any number of ways.
5592     *
5593     * The special elm_box_layout_transition() function can be used
5594     * to switch from one layout to another, animating the motion of the
5595     * children of the box.
5596     *
5597     * @note Objects should not be added to box objects using _add() calls.
5598     *
5599     * Some examples on how to use boxes follow:
5600     * @li @ref box_example_01
5601     * @li @ref box_example_02
5602     *
5603     * @{
5604     */
5605    /**
5606     * @typedef Elm_Box_Transition
5607     *
5608     * Opaque handler containing the parameters to perform an animated
5609     * transition of the layout the box uses.
5610     *
5611     * @see elm_box_transition_new()
5612     * @see elm_box_layout_set()
5613     * @see elm_box_layout_transition()
5614     */
5615    typedef struct _Elm_Box_Transition Elm_Box_Transition;
5616
5617    /**
5618     * Add a new box to the parent
5619     *
5620     * By default, the box will be in vertical mode and non-homogeneous.
5621     *
5622     * @param parent The parent object
5623     * @return The new object or NULL if it cannot be created
5624     */
5625    EAPI Evas_Object        *elm_box_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5626    /**
5627     * Set the horizontal orientation
5628     *
5629     * By default, box object arranges their contents vertically from top to
5630     * bottom.
5631     * By calling this function with @p horizontal as EINA_TRUE, the box will
5632     * become horizontal, arranging contents from left to right.
5633     *
5634     * @note This flag is ignored if a custom layout function is set.
5635     *
5636     * @param obj The box object
5637     * @param horizontal The horizontal flag (EINA_TRUE = horizontal,
5638     * EINA_FALSE = vertical)
5639     */
5640    EAPI void                elm_box_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
5641    /**
5642     * Get the horizontal orientation
5643     *
5644     * @param obj The box object
5645     * @return EINA_TRUE if the box is set to horizontal mode, EINA_FALSE otherwise
5646     */
5647    EAPI Eina_Bool           elm_box_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5648    /**
5649     * Set the box to arrange its children homogeneously
5650     *
5651     * If enabled, homogeneous layout makes all items the same size, according
5652     * to the size of the largest of its children.
5653     *
5654     * @note This flag is ignored if a custom layout function is set.
5655     *
5656     * @param obj The box object
5657     * @param homogeneous The homogeneous flag
5658     */
5659    EAPI void                elm_box_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
5660    /**
5661     * Get whether the box is using homogeneous mode or not
5662     *
5663     * @param obj The box object
5664     * @return EINA_TRUE if it's homogeneous, EINA_FALSE otherwise
5665     */
5666    EAPI Eina_Bool           elm_box_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5667    EINA_DEPRECATED EAPI void elm_box_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
5668    EINA_DEPRECATED EAPI Eina_Bool elm_box_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5669    /**
5670     * Add an object to the beginning of the pack list
5671     *
5672     * Pack @p subobj into the box @p obj, placing it first in the list of
5673     * children objects. The actual position the object will get on screen
5674     * depends on the layout used. If no custom layout is set, it will be at
5675     * the top or left, depending if the box is vertical or horizontal,
5676     * respectively.
5677     *
5678     * @param obj The box object
5679     * @param subobj The object to add to the box
5680     *
5681     * @see elm_box_pack_end()
5682     * @see elm_box_pack_before()
5683     * @see elm_box_pack_after()
5684     * @see elm_box_unpack()
5685     * @see elm_box_unpack_all()
5686     * @see elm_box_clear()
5687     */
5688    EAPI void                elm_box_pack_start(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5689    /**
5690     * Add an object at the end of the pack list
5691     *
5692     * Pack @p subobj into the box @p obj, placing it last in the list of
5693     * children objects. The actual position the object will get on screen
5694     * depends on the layout used. If no custom layout is set, it will be at
5695     * the bottom or right, depending if the box is vertical or horizontal,
5696     * respectively.
5697     *
5698     * @param obj The box object
5699     * @param subobj The object to add to the box
5700     *
5701     * @see elm_box_pack_start()
5702     * @see elm_box_pack_before()
5703     * @see elm_box_pack_after()
5704     * @see elm_box_unpack()
5705     * @see elm_box_unpack_all()
5706     * @see elm_box_clear()
5707     */
5708    EAPI void                elm_box_pack_end(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5709    /**
5710     * Adds an object to the box before the indicated object
5711     *
5712     * This will add the @p subobj to the box indicated before the object
5713     * indicated with @p before. If @p before is not already in the box, results
5714     * are undefined. Before means either to the left of the indicated object or
5715     * above it depending on orientation.
5716     *
5717     * @param obj The box object
5718     * @param subobj The object to add to the box
5719     * @param before The object before which to add it
5720     *
5721     * @see elm_box_pack_start()
5722     * @see elm_box_pack_end()
5723     * @see elm_box_pack_after()
5724     * @see elm_box_unpack()
5725     * @see elm_box_unpack_all()
5726     * @see elm_box_clear()
5727     */
5728    EAPI void                elm_box_pack_before(Evas_Object *obj, Evas_Object *subobj, Evas_Object *before) EINA_ARG_NONNULL(1);
5729    /**
5730     * Adds an object to the box after the indicated object
5731     *
5732     * This will add the @p subobj to the box indicated after the object
5733     * indicated with @p after. If @p after is not already in the box, results
5734     * are undefined. After means either to the right of the indicated object or
5735     * below it depending on orientation.
5736     *
5737     * @param obj The box object
5738     * @param subobj The object to add to the box
5739     * @param after The object after which to add it
5740     *
5741     * @see elm_box_pack_start()
5742     * @see elm_box_pack_end()
5743     * @see elm_box_pack_before()
5744     * @see elm_box_unpack()
5745     * @see elm_box_unpack_all()
5746     * @see elm_box_clear()
5747     */
5748    EAPI void                elm_box_pack_after(Evas_Object *obj, Evas_Object *subobj, Evas_Object *after) EINA_ARG_NONNULL(1);
5749    /**
5750     * Clear the box of all children
5751     *
5752     * Remove all the elements contained by the box, deleting the respective
5753     * objects.
5754     *
5755     * @param obj The box object
5756     *
5757     * @see elm_box_unpack()
5758     * @see elm_box_unpack_all()
5759     */
5760    EAPI void                elm_box_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
5761    /**
5762     * Unpack a box item
5763     *
5764     * Remove the object given by @p subobj from the box @p obj without
5765     * deleting it.
5766     *
5767     * @param obj The box object
5768     *
5769     * @see elm_box_unpack_all()
5770     * @see elm_box_clear()
5771     */
5772    EAPI void                elm_box_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5773    /**
5774     * Remove all items from the box, without deleting them
5775     *
5776     * Clear the box from all children, but don't delete the respective objects.
5777     * If no other references of the box children exist, the objects will never
5778     * be deleted, and thus the application will leak the memory. Make sure
5779     * when using this function that you hold a reference to all the objects
5780     * in the box @p obj.
5781     *
5782     * @param obj The box object
5783     *
5784     * @see elm_box_clear()
5785     * @see elm_box_unpack()
5786     */
5787    EAPI void                elm_box_unpack_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
5788    /**
5789     * Retrieve a list of the objects packed into the box
5790     *
5791     * Returns a new @c Eina_List with a pointer to @c Evas_Object in its nodes.
5792     * The order of the list corresponds to the packing order the box uses.
5793     *
5794     * You must free this list with eina_list_free() once you are done with it.
5795     *
5796     * @param obj The box object
5797     */
5798    EAPI const Eina_List    *elm_box_children_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5799    /**
5800     * Set the space (padding) between the box's elements.
5801     *
5802     * Extra space in pixels that will be added between a box child and its
5803     * neighbors after its containing cell has been calculated. This padding
5804     * is set for all elements in the box, besides any possible padding that
5805     * individual elements may have through their size hints.
5806     *
5807     * @param obj The box object
5808     * @param horizontal The horizontal space between elements
5809     * @param vertical The vertical space between elements
5810     */
5811    EAPI void                elm_box_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
5812    /**
5813     * Get the space (padding) between the box's elements.
5814     *
5815     * @param obj The box object
5816     * @param horizontal The horizontal space between elements
5817     * @param vertical The vertical space between elements
5818     *
5819     * @see elm_box_padding_set()
5820     */
5821    EAPI void                elm_box_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
5822    /**
5823     * Set the alignment of the whole bouding box of contents.
5824     *
5825     * Sets how the bounding box containing all the elements of the box, after
5826     * their sizes and position has been calculated, will be aligned within
5827     * the space given for the whole box widget.
5828     *
5829     * @param obj The box object
5830     * @param horizontal The horizontal alignment of elements
5831     * @param vertical The vertical alignment of elements
5832     */
5833    EAPI void                elm_box_align_set(Evas_Object *obj, double horizontal, double vertical) EINA_ARG_NONNULL(1);
5834    /**
5835     * Get the alignment of the whole bouding box of contents.
5836     *
5837     * @param obj The box object
5838     * @param horizontal The horizontal alignment of elements
5839     * @param vertical The vertical alignment of elements
5840     *
5841     * @see elm_box_align_set()
5842     */
5843    EAPI void                elm_box_align_get(const Evas_Object *obj, double *horizontal, double *vertical) EINA_ARG_NONNULL(1);
5844
5845    /**
5846     * Set the layout defining function to be used by the box
5847     *
5848     * Whenever anything changes that requires the box in @p obj to recalculate
5849     * the size and position of its elements, the function @p cb will be called
5850     * to determine what the layout of the children will be.
5851     *
5852     * Once a custom function is set, everything about the children layout
5853     * is defined by it. The flags set by elm_box_horizontal_set() and
5854     * elm_box_homogeneous_set() no longer have any meaning, and the values
5855     * given by elm_box_padding_set() and elm_box_align_set() are up to this
5856     * layout function to decide if they are used and how. These last two
5857     * will be found in the @c priv parameter, of type @c Evas_Object_Box_Data,
5858     * passed to @p cb. The @c Evas_Object the function receives is not the
5859     * Elementary widget, but the internal Evas Box it uses, so none of the
5860     * functions described here can be used on it.
5861     *
5862     * Any of the layout functions in @c Evas can be used here, as well as the
5863     * special elm_box_layout_transition().
5864     *
5865     * The final @p data argument received by @p cb is the same @p data passed
5866     * here, and the @p free_data function will be called to free it
5867     * whenever the box is destroyed or another layout function is set.
5868     *
5869     * Setting @p cb to NULL will revert back to the default layout function.
5870     *
5871     * @param obj The box object
5872     * @param cb The callback function used for layout
5873     * @param data Data that will be passed to layout function
5874     * @param free_data Function called to free @p data
5875     *
5876     * @see elm_box_layout_transition()
5877     */
5878    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);
5879    /**
5880     * Special layout function that animates the transition from one layout to another
5881     *
5882     * Normally, when switching the layout function for a box, this will be
5883     * reflected immediately on screen on the next render, but it's also
5884     * possible to do this through an animated transition.
5885     *
5886     * This is done by creating an ::Elm_Box_Transition and setting the box
5887     * layout to this function.
5888     *
5889     * For example:
5890     * @code
5891     * Elm_Box_Transition *t = elm_box_transition_new(1.0,
5892     *                            evas_object_box_layout_vertical, // start
5893     *                            NULL, // data for initial layout
5894     *                            NULL, // free function for initial data
5895     *                            evas_object_box_layout_horizontal, // end
5896     *                            NULL, // data for final layout
5897     *                            NULL, // free function for final data
5898     *                            anim_end, // will be called when animation ends
5899     *                            NULL); // data for anim_end function\
5900     * elm_box_layout_set(box, elm_box_layout_transition, t,
5901     *                    elm_box_transition_free);
5902     * @endcode
5903     *
5904     * @note This function can only be used with elm_box_layout_set(). Calling
5905     * it directly will not have the expected results.
5906     *
5907     * @see elm_box_transition_new
5908     * @see elm_box_transition_free
5909     * @see elm_box_layout_set
5910     */
5911    EAPI void                elm_box_layout_transition(Evas_Object *obj, Evas_Object_Box_Data *priv, void *data);
5912    /**
5913     * Create a new ::Elm_Box_Transition to animate the switch of layouts
5914     *
5915     * If you want to animate the change from one layout to another, you need
5916     * to set the layout function of the box to elm_box_layout_transition(),
5917     * passing as user data to it an instance of ::Elm_Box_Transition with the
5918     * necessary information to perform this animation. The free function to
5919     * set for the layout is elm_box_transition_free().
5920     *
5921     * The parameters to create an ::Elm_Box_Transition sum up to how long
5922     * will it be, in seconds, a layout function to describe the initial point,
5923     * another for the final position of the children and one function to be
5924     * called when the whole animation ends. This last function is useful to
5925     * set the definitive layout for the box, usually the same as the end
5926     * layout for the animation, but could be used to start another transition.
5927     *
5928     * @param start_layout The layout function that will be used to start the animation
5929     * @param start_layout_data The data to be passed the @p start_layout function
5930     * @param start_layout_free_data Function to free @p start_layout_data
5931     * @param end_layout The layout function that will be used to end the animation
5932     * @param end_layout_free_data The data to be passed the @p end_layout function
5933     * @param end_layout_free_data Function to free @p end_layout_data
5934     * @param transition_end_cb Callback function called when animation ends
5935     * @param transition_end_data Data to be passed to @p transition_end_cb
5936     * @return An instance of ::Elm_Box_Transition
5937     *
5938     * @see elm_box_transition_new
5939     * @see elm_box_layout_transition
5940     */
5941    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);
5942    /**
5943     * Free a Elm_Box_Transition instance created with elm_box_transition_new().
5944     *
5945     * This function is mostly useful as the @c free_data parameter in
5946     * elm_box_layout_set() when elm_box_layout_transition().
5947     *
5948     * @param data The Elm_Box_Transition instance to be freed.
5949     *
5950     * @see elm_box_transition_new
5951     * @see elm_box_layout_transition
5952     */
5953    EAPI void                elm_box_transition_free(void *data);
5954    /**
5955     * @}
5956     */
5957
5958    /* button */
5959    /**
5960     * @defgroup Button Button
5961     *
5962     * @image html img/widget/button/preview-00.png
5963     * @image latex img/widget/button/preview-00.eps
5964     * @image html img/widget/button/preview-01.png
5965     * @image latex img/widget/button/preview-01.eps
5966     * @image html img/widget/button/preview-02.png
5967     * @image latex img/widget/button/preview-02.eps
5968     *
5969     * This is a push-button. Press it and run some function. It can contain
5970     * a simple label and icon object and it also has an autorepeat feature.
5971     *
5972     * This widgets emits the following signals:
5973     * @li "clicked": the user clicked the button (press/release).
5974     * @li "repeated": the user pressed the button without releasing it.
5975     * @li "pressed": button was pressed.
5976     * @li "unpressed": button was released after being pressed.
5977     * In all three cases, the @c event parameter of the callback will be
5978     * @c NULL.
5979     *
5980     * Also, defined in the default theme, the button has the following styles
5981     * available:
5982     * @li default: a normal button.
5983     * @li anchor: Like default, but the button fades away when the mouse is not
5984     * over it, leaving only the text or icon.
5985     * @li hoversel_vertical: Internally used by @ref Hoversel to give a
5986     * continuous look across its options.
5987     * @li hoversel_vertical_entry: Another internal for @ref Hoversel.
5988     *
5989     * Follow through a complete example @ref button_example_01 "here".
5990     * @{
5991     */
5992    /**
5993     * Add a new button to the parent's canvas
5994     *
5995     * @param parent The parent object
5996     * @return The new object or NULL if it cannot be created
5997     */
5998    EAPI Evas_Object *elm_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5999    /**
6000     * Set the label used in the button
6001     *
6002     * The passed @p label can be NULL to clean any existing text in it and
6003     * leave the button as an icon only object.
6004     *
6005     * @param obj The button object
6006     * @param label The text will be written on the button
6007     * @deprecated use elm_object_text_set() instead.
6008     */
6009    EINA_DEPRECATED EAPI void         elm_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6010    /**
6011     * Get the label set for the button
6012     *
6013     * The string returned is an internal pointer and should not be freed or
6014     * altered. It will also become invalid when the button is destroyed.
6015     * The string returned, if not NULL, is a stringshare, so if you need to
6016     * keep it around even after the button is destroyed, you can use
6017     * eina_stringshare_ref().
6018     *
6019     * @param obj The button object
6020     * @return The text set to the label, or NULL if nothing is set
6021     * @deprecated use elm_object_text_set() instead.
6022     */
6023    EINA_DEPRECATED EAPI const char  *elm_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6024    /**
6025     * Set the icon used for the button
6026     *
6027     * Setting a new icon will delete any other that was previously set, making
6028     * any reference to them invalid. If you need to maintain the previous
6029     * object alive, unset it first with elm_button_icon_unset().
6030     *
6031     * @param obj The button object
6032     * @param icon The icon object for the button
6033     */
6034    EAPI void         elm_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6035    /**
6036     * Get the icon used for the button
6037     *
6038     * Return the icon object which is set for this widget. If the button is
6039     * destroyed or another icon is set, the returned object will be deleted
6040     * and any reference to it will be invalid.
6041     *
6042     * @param obj The button object
6043     * @return The icon object that is being used
6044     *
6045     * @see elm_button_icon_unset()
6046     */
6047    EAPI Evas_Object *elm_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6048    /**
6049     * Remove the icon set without deleting it and return the object
6050     *
6051     * This function drops the reference the button holds of the icon object
6052     * and returns this last object. It is used in case you want to remove any
6053     * icon, or set another one, without deleting the actual object. The button
6054     * will be left without an icon set.
6055     *
6056     * @param obj The button object
6057     * @return The icon object that was being used
6058     */
6059    EAPI Evas_Object *elm_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6060    /**
6061     * Turn on/off the autorepeat event generated when the button is kept pressed
6062     *
6063     * When off, no autorepeat is performed and buttons emit a normal @c clicked
6064     * signal when they are clicked.
6065     *
6066     * When on, keeping a button pressed will continuously emit a @c repeated
6067     * signal until the button is released. The time it takes until it starts
6068     * emitting the signal is given by
6069     * elm_button_autorepeat_initial_timeout_set(), and the time between each
6070     * new emission by elm_button_autorepeat_gap_timeout_set().
6071     *
6072     * @param obj The button object
6073     * @param on  A bool to turn on/off the event
6074     */
6075    EAPI void         elm_button_autorepeat_set(Evas_Object *obj, Eina_Bool on) EINA_ARG_NONNULL(1);
6076    /**
6077     * Get whether the autorepeat feature is enabled
6078     *
6079     * @param obj The button object
6080     * @return EINA_TRUE if autorepeat is on, EINA_FALSE otherwise
6081     *
6082     * @see elm_button_autorepeat_set()
6083     */
6084    EAPI Eina_Bool    elm_button_autorepeat_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6085    /**
6086     * Set the initial timeout before the autorepeat event is generated
6087     *
6088     * Sets the timeout, in seconds, since the button is pressed until the
6089     * first @c repeated signal is emitted. If @p t is 0.0 or less, there
6090     * won't be any delay and the even will be fired the moment the button is
6091     * pressed.
6092     *
6093     * @param obj The button object
6094     * @param t   Timeout in seconds
6095     *
6096     * @see elm_button_autorepeat_set()
6097     * @see elm_button_autorepeat_gap_timeout_set()
6098     */
6099    EAPI void         elm_button_autorepeat_initial_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
6100    /**
6101     * Get the initial timeout before the autorepeat event is generated
6102     *
6103     * @param obj The button object
6104     * @return Timeout in seconds
6105     *
6106     * @see elm_button_autorepeat_initial_timeout_set()
6107     */
6108    EAPI double       elm_button_autorepeat_initial_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6109    /**
6110     * Set the interval between each generated autorepeat event
6111     *
6112     * After the first @c repeated event is fired, all subsequent ones will
6113     * follow after a delay of @p t seconds for each.
6114     *
6115     * @param obj The button object
6116     * @param t   Interval in seconds
6117     *
6118     * @see elm_button_autorepeat_initial_timeout_set()
6119     */
6120    EAPI void         elm_button_autorepeat_gap_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
6121    /**
6122     * Get the interval between each generated autorepeat event
6123     *
6124     * @param obj The button object
6125     * @return Interval in seconds
6126     */
6127    EAPI double       elm_button_autorepeat_gap_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6128    /**
6129     * @}
6130     */
6131
6132    /**
6133     * @defgroup File_Selector_Button File Selector Button
6134     *
6135     * @image html img/widget/fileselector_button/preview-00.png
6136     * @image latex img/widget/fileselector_button/preview-00.eps
6137     * @image html img/widget/fileselector_button/preview-01.png
6138     * @image latex img/widget/fileselector_button/preview-01.eps
6139     * @image html img/widget/fileselector_button/preview-02.png
6140     * @image latex img/widget/fileselector_button/preview-02.eps
6141     *
6142     * This is a button that, when clicked, creates an Elementary
6143     * window (or inner window) <b> with a @ref Fileselector "file
6144     * selector widget" within</b>. When a file is chosen, the (inner)
6145     * window is closed and the button emits a signal having the
6146     * selected file as it's @c event_info.
6147     *
6148     * This widget encapsulates operations on its internal file
6149     * selector on its own API. There is less control over its file
6150     * selector than that one would have instatiating one directly.
6151     *
6152     * The following styles are available for this button:
6153     * @li @c "default"
6154     * @li @c "anchor"
6155     * @li @c "hoversel_vertical"
6156     * @li @c "hoversel_vertical_entry"
6157     *
6158     * Smart callbacks one can register to:
6159     * - @c "file,chosen" - the user has selected a path, whose string
6160     *   pointer comes as the @c event_info data (a stringshared
6161     *   string)
6162     *
6163     * Here is an example on its usage:
6164     * @li @ref fileselector_button_example
6165     *
6166     * @see @ref File_Selector_Entry for a similar widget.
6167     * @{
6168     */
6169
6170    /**
6171     * Add a new file selector button widget to the given parent
6172     * Elementary (container) object
6173     *
6174     * @param parent The parent object
6175     * @return a new file selector button widget handle or @c NULL, on
6176     * errors
6177     */
6178    EAPI Evas_Object *elm_fileselector_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6179
6180    /**
6181     * Set the label for a given file selector button widget
6182     *
6183     * @param obj The file selector button widget
6184     * @param label The text label to be displayed on @p obj
6185     *
6186     * @deprecated use elm_object_text_set() instead.
6187     */
6188    EINA_DEPRECATED EAPI void         elm_fileselector_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6189
6190    /**
6191     * Get the label set for a given file selector button widget
6192     *
6193     * @param obj The file selector button widget
6194     * @return The button label
6195     *
6196     * @deprecated use elm_object_text_set() instead.
6197     */
6198    EINA_DEPRECATED EAPI const char  *elm_fileselector_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6199
6200    /**
6201     * Set the icon on a given file selector button widget
6202     *
6203     * @param obj The file selector button widget
6204     * @param icon The icon object for the button
6205     *
6206     * Once the icon object is set, a previously set one will be
6207     * deleted. If you want to keep the latter, use the
6208     * elm_fileselector_button_icon_unset() function.
6209     *
6210     * @see elm_fileselector_button_icon_get()
6211     */
6212    EAPI void         elm_fileselector_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6213
6214    /**
6215     * Get the icon set for a given file selector button widget
6216     *
6217     * @param obj The file selector button widget
6218     * @return The icon object currently set on @p obj or @c NULL, if
6219     * none is
6220     *
6221     * @see elm_fileselector_button_icon_set()
6222     */
6223    EAPI Evas_Object *elm_fileselector_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6224
6225    /**
6226     * Unset the icon used in a given file selector button widget
6227     *
6228     * @param obj The file selector button widget
6229     * @return The icon object that was being used on @p obj or @c
6230     * NULL, on errors
6231     *
6232     * Unparent and return the icon object which was set for this
6233     * widget.
6234     *
6235     * @see elm_fileselector_button_icon_set()
6236     */
6237    EAPI Evas_Object *elm_fileselector_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6238
6239    /**
6240     * Set the title for a given file selector button widget's window
6241     *
6242     * @param obj The file selector button widget
6243     * @param title The title string
6244     *
6245     * This will change the window's title, when the file selector pops
6246     * out after a click on the button. Those windows have the default
6247     * (unlocalized) value of @c "Select a file" as titles.
6248     *
6249     * @note It will only take any effect if the file selector
6250     * button widget is @b not under "inwin mode".
6251     *
6252     * @see elm_fileselector_button_window_title_get()
6253     */
6254    EAPI void         elm_fileselector_button_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
6255
6256    /**
6257     * Get the title set for a given file selector button widget's
6258     * window
6259     *
6260     * @param obj The file selector button widget
6261     * @return Title of the file selector button's window
6262     *
6263     * @see elm_fileselector_button_window_title_get() for more details
6264     */
6265    EAPI const char  *elm_fileselector_button_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6266
6267    /**
6268     * Set the size of a given file selector button widget's window,
6269     * holding the file selector itself.
6270     *
6271     * @param obj The file selector button widget
6272     * @param width The window's width
6273     * @param height The window's height
6274     *
6275     * @note it will only take any effect if the file selector button
6276     * widget is @b not under "inwin mode". The default size for the
6277     * window (when applicable) is 400x400 pixels.
6278     *
6279     * @see elm_fileselector_button_window_size_get()
6280     */
6281    EAPI void         elm_fileselector_button_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6282
6283    /**
6284     * Get the size of a given file selector button widget's window,
6285     * holding the file selector itself.
6286     *
6287     * @param obj The file selector button widget
6288     * @param width Pointer into which to store the width value
6289     * @param height Pointer into which to store the height value
6290     *
6291     * @note Use @c NULL pointers on the size values you're not
6292     * interested in: they'll be ignored by the function.
6293     *
6294     * @see elm_fileselector_button_window_size_set(), for more details
6295     */
6296    EAPI void         elm_fileselector_button_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6297
6298    /**
6299     * Set the initial file system path for a given file selector
6300     * button widget
6301     *
6302     * @param obj The file selector button widget
6303     * @param path The path string
6304     *
6305     * It must be a <b>directory</b> path, which will have the contents
6306     * displayed initially in the file selector's view, when invoked
6307     * from @p obj. The default initial path is the @c "HOME"
6308     * environment variable's value.
6309     *
6310     * @see elm_fileselector_button_path_get()
6311     */
6312    EAPI void         elm_fileselector_button_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6313
6314    /**
6315     * Get the initial file system path set for a given file selector
6316     * button widget
6317     *
6318     * @param obj The file selector button widget
6319     * @return path The path string
6320     *
6321     * @see elm_fileselector_button_path_set() for more details
6322     */
6323    EAPI const char  *elm_fileselector_button_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6324
6325    /**
6326     * Enable/disable a tree view in the given file selector button
6327     * widget's internal file selector
6328     *
6329     * @param obj The file selector button widget
6330     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
6331     * disable
6332     *
6333     * This has the same effect as elm_fileselector_expandable_set(),
6334     * but now applied to a file selector button's internal file
6335     * selector.
6336     *
6337     * @note There's no way to put a file selector button's internal
6338     * file selector in "grid mode", as one may do with "pure" file
6339     * selectors.
6340     *
6341     * @see elm_fileselector_expandable_get()
6342     */
6343    EAPI void         elm_fileselector_button_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6344
6345    /**
6346     * Get whether tree view is enabled for the given file selector
6347     * button widget's internal file selector
6348     *
6349     * @param obj The file selector button widget
6350     * @return @c EINA_TRUE if @p obj widget's internal file selector
6351     * is in tree view, @c EINA_FALSE otherwise (and or errors)
6352     *
6353     * @see elm_fileselector_expandable_set() for more details
6354     */
6355    EAPI Eina_Bool    elm_fileselector_button_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6356
6357    /**
6358     * Set whether a given file selector button widget's internal file
6359     * selector is to display folders only or the directory contents,
6360     * as well.
6361     *
6362     * @param obj The file selector button widget
6363     * @param only @c EINA_TRUE to make @p obj widget's internal file
6364     * selector only display directories, @c EINA_FALSE to make files
6365     * to be displayed in it too
6366     *
6367     * This has the same effect as elm_fileselector_folder_only_set(),
6368     * but now applied to a file selector button's internal file
6369     * selector.
6370     *
6371     * @see elm_fileselector_folder_only_get()
6372     */
6373    EAPI void         elm_fileselector_button_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6374
6375    /**
6376     * Get whether a given file selector button widget's internal file
6377     * selector is displaying folders only or the directory contents,
6378     * as well.
6379     *
6380     * @param obj The file selector button widget
6381     * @return @c EINA_TRUE if @p obj widget's internal file
6382     * selector is only displaying directories, @c EINA_FALSE if files
6383     * are being displayed in it too (and on errors)
6384     *
6385     * @see elm_fileselector_button_folder_only_set() for more details
6386     */
6387    EAPI Eina_Bool    elm_fileselector_button_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6388
6389    /**
6390     * Enable/disable the file name entry box where the user can type
6391     * in a name for a file, in a given file selector button widget's
6392     * internal file selector.
6393     *
6394     * @param obj The file selector button widget
6395     * @param is_save @c EINA_TRUE to make @p obj widget's internal
6396     * file selector a "saving dialog", @c EINA_FALSE otherwise
6397     *
6398     * This has the same effect as elm_fileselector_is_save_set(),
6399     * but now applied to a file selector button's internal file
6400     * selector.
6401     *
6402     * @see elm_fileselector_is_save_get()
6403     */
6404    EAPI void         elm_fileselector_button_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6405
6406    /**
6407     * Get whether the given file selector button widget's internal
6408     * file selector is in "saving dialog" mode
6409     *
6410     * @param obj The file selector button widget
6411     * @return @c EINA_TRUE, if @p obj widget's internal file selector
6412     * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
6413     * errors)
6414     *
6415     * @see elm_fileselector_button_is_save_set() for more details
6416     */
6417    EAPI Eina_Bool    elm_fileselector_button_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6418
6419    /**
6420     * Set whether a given file selector button widget's internal file
6421     * selector will raise an Elementary "inner window", instead of a
6422     * dedicated Elementary window. By default, it won't.
6423     *
6424     * @param obj The file selector button widget
6425     * @param value @c EINA_TRUE to make it use an inner window, @c
6426     * EINA_TRUE to make it use a dedicated window
6427     *
6428     * @see elm_win_inwin_add() for more information on inner windows
6429     * @see elm_fileselector_button_inwin_mode_get()
6430     */
6431    EAPI void         elm_fileselector_button_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6432
6433    /**
6434     * Get whether a given file selector button widget's internal file
6435     * selector will raise an Elementary "inner window", instead of a
6436     * dedicated Elementary window.
6437     *
6438     * @param obj The file selector button widget
6439     * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
6440     * if it will use a dedicated window
6441     *
6442     * @see elm_fileselector_button_inwin_mode_set() for more details
6443     */
6444    EAPI Eina_Bool    elm_fileselector_button_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6445
6446    /**
6447     * @}
6448     */
6449
6450     /**
6451     * @defgroup File_Selector_Entry File Selector Entry
6452     *
6453     * @image html img/widget/fileselector_entry/preview-00.png
6454     * @image latex img/widget/fileselector_entry/preview-00.eps
6455     *
6456     * This is an entry made to be filled with or display a <b>file
6457     * system path string</b>. Besides the entry itself, the widget has
6458     * a @ref File_Selector_Button "file selector button" on its side,
6459     * which will raise an internal @ref Fileselector "file selector widget",
6460     * when clicked, for path selection aided by file system
6461     * navigation.
6462     *
6463     * This file selector may appear in an Elementary window or in an
6464     * inner window. When a file is chosen from it, the (inner) window
6465     * is closed and the selected file's path string is exposed both as
6466     * an smart event and as the new text on the entry.
6467     *
6468     * This widget encapsulates operations on its internal file
6469     * selector on its own API. There is less control over its file
6470     * selector than that one would have instatiating one directly.
6471     *
6472     * Smart callbacks one can register to:
6473     * - @c "changed" - The text within the entry was changed
6474     * - @c "activated" - The entry has had editing finished and
6475     *   changes are to be "committed"
6476     * - @c "press" - The entry has been clicked
6477     * - @c "longpressed" - The entry has been clicked (and held) for a
6478     *   couple seconds
6479     * - @c "clicked" - The entry has been clicked
6480     * - @c "clicked,double" - The entry has been double clicked
6481     * - @c "focused" - The entry has received focus
6482     * - @c "unfocused" - The entry has lost focus
6483     * - @c "selection,paste" - A paste action has occurred on the
6484     *   entry
6485     * - @c "selection,copy" - A copy action has occurred on the entry
6486     * - @c "selection,cut" - A cut action has occurred on the entry
6487     * - @c "unpressed" - The file selector entry's button was released
6488     *   after being pressed.
6489     * - @c "file,chosen" - The user has selected a path via the file
6490     *   selector entry's internal file selector, whose string pointer
6491     *   comes as the @c event_info data (a stringshared string)
6492     *
6493     * Here is an example on its usage:
6494     * @li @ref fileselector_entry_example
6495     *
6496     * @see @ref File_Selector_Button for a similar widget.
6497     * @{
6498     */
6499
6500    /**
6501     * Add a new file selector entry widget to the given parent
6502     * Elementary (container) object
6503     *
6504     * @param parent The parent object
6505     * @return a new file selector entry widget handle or @c NULL, on
6506     * errors
6507     */
6508    EAPI Evas_Object *elm_fileselector_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6509
6510    /**
6511     * Set the label for a given file selector entry widget's button
6512     *
6513     * @param obj The file selector entry widget
6514     * @param label The text label to be displayed on @p obj widget's
6515     * button
6516     *
6517     * @deprecated use elm_object_text_set() instead.
6518     */
6519    EINA_DEPRECATED EAPI void         elm_fileselector_entry_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6520
6521    /**
6522     * Get the label set for a given file selector entry widget's button
6523     *
6524     * @param obj The file selector entry widget
6525     * @return The widget button's label
6526     *
6527     * @deprecated use elm_object_text_set() instead.
6528     */
6529    EINA_DEPRECATED EAPI const char  *elm_fileselector_entry_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6530
6531    /**
6532     * Set the icon on a given file selector entry widget's button
6533     *
6534     * @param obj The file selector entry widget
6535     * @param icon The icon object for the entry's button
6536     *
6537     * Once the icon object is set, a previously set one will be
6538     * deleted. If you want to keep the latter, use the
6539     * elm_fileselector_entry_button_icon_unset() function.
6540     *
6541     * @see elm_fileselector_entry_button_icon_get()
6542     */
6543    EAPI void         elm_fileselector_entry_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6544
6545    /**
6546     * Get the icon set for a given file selector entry widget's button
6547     *
6548     * @param obj The file selector entry widget
6549     * @return The icon object currently set on @p obj widget's button
6550     * or @c NULL, if none is
6551     *
6552     * @see elm_fileselector_entry_button_icon_set()
6553     */
6554    EAPI Evas_Object *elm_fileselector_entry_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6555
6556    /**
6557     * Unset the icon used in a given file selector entry widget's
6558     * button
6559     *
6560     * @param obj The file selector entry widget
6561     * @return The icon object that was being used on @p obj widget's
6562     * button or @c NULL, on errors
6563     *
6564     * Unparent and return the icon object which was set for this
6565     * widget's button.
6566     *
6567     * @see elm_fileselector_entry_button_icon_set()
6568     */
6569    EAPI Evas_Object *elm_fileselector_entry_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6570
6571    /**
6572     * Set the title for a given file selector entry widget's window
6573     *
6574     * @param obj The file selector entry widget
6575     * @param title The title string
6576     *
6577     * This will change the window's title, when the file selector pops
6578     * out after a click on the entry's button. Those windows have the
6579     * default (unlocalized) value of @c "Select a file" as titles.
6580     *
6581     * @note It will only take any effect if the file selector
6582     * entry widget is @b not under "inwin mode".
6583     *
6584     * @see elm_fileselector_entry_window_title_get()
6585     */
6586    EAPI void         elm_fileselector_entry_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
6587
6588    /**
6589     * Get the title set for a given file selector entry widget's
6590     * window
6591     *
6592     * @param obj The file selector entry widget
6593     * @return Title of the file selector entry's window
6594     *
6595     * @see elm_fileselector_entry_window_title_get() for more details
6596     */
6597    EAPI const char  *elm_fileselector_entry_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6598
6599    /**
6600     * Set the size of a given file selector entry widget's window,
6601     * holding the file selector itself.
6602     *
6603     * @param obj The file selector entry widget
6604     * @param width The window's width
6605     * @param height The window's height
6606     *
6607     * @note it will only take any effect if the file selector entry
6608     * widget is @b not under "inwin mode". The default size for the
6609     * window (when applicable) is 400x400 pixels.
6610     *
6611     * @see elm_fileselector_entry_window_size_get()
6612     */
6613    EAPI void         elm_fileselector_entry_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6614
6615    /**
6616     * Get the size of a given file selector entry widget's window,
6617     * holding the file selector itself.
6618     *
6619     * @param obj The file selector entry widget
6620     * @param width Pointer into which to store the width value
6621     * @param height Pointer into which to store the height value
6622     *
6623     * @note Use @c NULL pointers on the size values you're not
6624     * interested in: they'll be ignored by the function.
6625     *
6626     * @see elm_fileselector_entry_window_size_set(), for more details
6627     */
6628    EAPI void         elm_fileselector_entry_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6629
6630    /**
6631     * Set the initial file system path and the entry's path string for
6632     * a given file selector entry widget
6633     *
6634     * @param obj The file selector entry widget
6635     * @param path The path string
6636     *
6637     * It must be a <b>directory</b> path, which will have the contents
6638     * displayed initially in the file selector's view, when invoked
6639     * from @p obj. The default initial path is the @c "HOME"
6640     * environment variable's value.
6641     *
6642     * @see elm_fileselector_entry_path_get()
6643     */
6644    EAPI void         elm_fileselector_entry_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6645
6646    /**
6647     * Get the entry's path string for a given file selector entry
6648     * widget
6649     *
6650     * @param obj The file selector entry widget
6651     * @return path The path string
6652     *
6653     * @see elm_fileselector_entry_path_set() for more details
6654     */
6655    EAPI const char  *elm_fileselector_entry_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6656
6657    /**
6658     * Enable/disable a tree view in the given file selector entry
6659     * widget's internal file selector
6660     *
6661     * @param obj The file selector entry widget
6662     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
6663     * disable
6664     *
6665     * This has the same effect as elm_fileselector_expandable_set(),
6666     * but now applied to a file selector entry's internal file
6667     * selector.
6668     *
6669     * @note There's no way to put a file selector entry's internal
6670     * file selector in "grid mode", as one may do with "pure" file
6671     * selectors.
6672     *
6673     * @see elm_fileselector_expandable_get()
6674     */
6675    EAPI void         elm_fileselector_entry_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6676
6677    /**
6678     * Get whether tree view is enabled for the given file selector
6679     * entry widget's internal file selector
6680     *
6681     * @param obj The file selector entry widget
6682     * @return @c EINA_TRUE if @p obj widget's internal file selector
6683     * is in tree view, @c EINA_FALSE otherwise (and or errors)
6684     *
6685     * @see elm_fileselector_expandable_set() for more details
6686     */
6687    EAPI Eina_Bool    elm_fileselector_entry_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6688
6689    /**
6690     * Set whether a given file selector entry widget's internal file
6691     * selector is to display folders only or the directory contents,
6692     * as well.
6693     *
6694     * @param obj The file selector entry widget
6695     * @param only @c EINA_TRUE to make @p obj widget's internal file
6696     * selector only display directories, @c EINA_FALSE to make files
6697     * to be displayed in it too
6698     *
6699     * This has the same effect as elm_fileselector_folder_only_set(),
6700     * but now applied to a file selector entry's internal file
6701     * selector.
6702     *
6703     * @see elm_fileselector_folder_only_get()
6704     */
6705    EAPI void         elm_fileselector_entry_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6706
6707    /**
6708     * Get whether a given file selector entry widget's internal file
6709     * selector is displaying folders only or the directory contents,
6710     * as well.
6711     *
6712     * @param obj The file selector entry widget
6713     * @return @c EINA_TRUE if @p obj widget's internal file
6714     * selector is only displaying directories, @c EINA_FALSE if files
6715     * are being displayed in it too (and on errors)
6716     *
6717     * @see elm_fileselector_entry_folder_only_set() for more details
6718     */
6719    EAPI Eina_Bool    elm_fileselector_entry_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6720
6721    /**
6722     * Enable/disable the file name entry box where the user can type
6723     * in a name for a file, in a given file selector entry widget's
6724     * internal file selector.
6725     *
6726     * @param obj The file selector entry widget
6727     * @param is_save @c EINA_TRUE to make @p obj widget's internal
6728     * file selector a "saving dialog", @c EINA_FALSE otherwise
6729     *
6730     * This has the same effect as elm_fileselector_is_save_set(),
6731     * but now applied to a file selector entry's internal file
6732     * selector.
6733     *
6734     * @see elm_fileselector_is_save_get()
6735     */
6736    EAPI void         elm_fileselector_entry_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6737
6738    /**
6739     * Get whether the given file selector entry widget's internal
6740     * file selector is in "saving dialog" mode
6741     *
6742     * @param obj The file selector entry widget
6743     * @return @c EINA_TRUE, if @p obj widget's internal file selector
6744     * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
6745     * errors)
6746     *
6747     * @see elm_fileselector_entry_is_save_set() for more details
6748     */
6749    EAPI Eina_Bool    elm_fileselector_entry_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6750
6751    /**
6752     * Set whether a given file selector entry widget's internal file
6753     * selector will raise an Elementary "inner window", instead of a
6754     * dedicated Elementary window. By default, it won't.
6755     *
6756     * @param obj The file selector entry widget
6757     * @param value @c EINA_TRUE to make it use an inner window, @c
6758     * EINA_TRUE to make it use a dedicated window
6759     *
6760     * @see elm_win_inwin_add() for more information on inner windows
6761     * @see elm_fileselector_entry_inwin_mode_get()
6762     */
6763    EAPI void         elm_fileselector_entry_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6764
6765    /**
6766     * Get whether a given file selector entry widget's internal file
6767     * selector will raise an Elementary "inner window", instead of a
6768     * dedicated Elementary window.
6769     *
6770     * @param obj The file selector entry widget
6771     * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
6772     * if it will use a dedicated window
6773     *
6774     * @see elm_fileselector_entry_inwin_mode_set() for more details
6775     */
6776    EAPI Eina_Bool    elm_fileselector_entry_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6777
6778    /**
6779     * Set the initial file system path for a given file selector entry
6780     * widget
6781     *
6782     * @param obj The file selector entry widget
6783     * @param path The path string
6784     *
6785     * It must be a <b>directory</b> path, which will have the contents
6786     * displayed initially in the file selector's view, when invoked
6787     * from @p obj. The default initial path is the @c "HOME"
6788     * environment variable's value.
6789     *
6790     * @see elm_fileselector_entry_path_get()
6791     */
6792    EAPI void         elm_fileselector_entry_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6793
6794    /**
6795     * Get the parent directory's path to the latest file selection on
6796     * a given filer selector entry widget
6797     *
6798     * @param obj The file selector object
6799     * @return The (full) path of the directory of the last selection
6800     * on @p obj widget, a @b stringshared string
6801     *
6802     * @see elm_fileselector_entry_path_set()
6803     */
6804    EAPI const char  *elm_fileselector_entry_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6805
6806    /**
6807     * @}
6808     */
6809
6810    /**
6811     * @defgroup Scroller Scroller
6812     *
6813     * A scroller holds a single object and "scrolls it around". This means that
6814     * it allows the user to use a scrollbar (or a finger) to drag the viewable
6815     * region around, allowing to move through a much larger object that is
6816     * contained in the scroller. The scroiller will always have a small minimum
6817     * size by default as it won't be limited by the contents of the scroller.
6818     *
6819     * Signals that you can add callbacks for are:
6820     * @li "edge,left" - the left edge of the content has been reached
6821     * @li "edge,right" - the right edge of the content has been reached
6822     * @li "edge,top" - the top edge of the content has been reached
6823     * @li "edge,bottom" - the bottom edge of the content has been reached
6824     * @li "scroll" - the content has been scrolled (moved)
6825     * @li "scroll,anim,start" - scrolling animation has started
6826     * @li "scroll,anim,stop" - scrolling animation has stopped
6827     * @li "scroll,drag,start" - dragging the contents around has started
6828     * @li "scroll,drag,stop" - dragging the contents around has stopped
6829     * @note The "scroll,anim,*" and "scroll,drag,*" signals are only emitted by
6830     * user intervetion.
6831     *
6832     * @note When Elemementary is in embedded mode the scrollbars will not be
6833     * dragable, they appear merely as indicators of how much has been scrolled.
6834     * @note When Elementary is in desktop mode the thumbscroll(a.k.a.
6835     * fingerscroll) won't work.
6836     *
6837     * In @ref tutorial_scroller you'll find an example of how to use most of
6838     * this API.
6839     * @{
6840     */
6841    /**
6842     * @brief Type that controls when scrollbars should appear.
6843     *
6844     * @see elm_scroller_policy_set()
6845     */
6846    typedef enum _Elm_Scroller_Policy
6847      {
6848         ELM_SCROLLER_POLICY_AUTO = 0, /**< Show scrollbars as needed */
6849         ELM_SCROLLER_POLICY_ON, /**< Always show scrollbars */
6850         ELM_SCROLLER_POLICY_OFF, /**< Never show scrollbars */
6851         ELM_SCROLLER_POLICY_LAST
6852      } Elm_Scroller_Policy;
6853    /**
6854     * @brief Add a new scroller to the parent
6855     *
6856     * @param parent The parent object
6857     * @return The new object or NULL if it cannot be created
6858     */
6859    EAPI Evas_Object *elm_scroller_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6860    /**
6861     * @brief Set the content of the scroller widget (the object to be scrolled around).
6862     *
6863     * @param obj The scroller object
6864     * @param content The new content object
6865     *
6866     * Once the content object is set, a previously set one will be deleted.
6867     * If you want to keep that old content object, use the
6868     * elm_scroller_content_unset() function.
6869     */
6870    EAPI void         elm_scroller_content_set(Evas_Object *obj, Evas_Object *child) EINA_ARG_NONNULL(1);
6871    /**
6872     * @brief Get the content of the scroller widget
6873     *
6874     * @param obj The slider object
6875     * @return The content that is being used
6876     *
6877     * Return the content object which is set for this widget
6878     *
6879     * @see elm_scroller_content_set()
6880     */
6881    EAPI Evas_Object *elm_scroller_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6882    /**
6883     * @brief Unset the content of the scroller widget
6884     *
6885     * @param obj The slider object
6886     * @return The content that was being used
6887     *
6888     * Unparent and return the content object which was set for this widget
6889     *
6890     * @see elm_scroller_content_set()
6891     */
6892    EAPI Evas_Object *elm_scroller_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6893    /**
6894     * @brief Set custom theme elements for the scroller
6895     *
6896     * @param obj The scroller object
6897     * @param widget The widget name to use (default is "scroller")
6898     * @param base The base name to use (default is "base")
6899     */
6900    EAPI void         elm_scroller_custom_widget_base_theme_set(Evas_Object *obj, const char *widget, const char *base) EINA_ARG_NONNULL(1, 2, 3);
6901    /**
6902     * @brief Make the scroller minimum size limited to the minimum size of the content
6903     *
6904     * @param obj The scroller object
6905     * @param w Enable limiting minimum size horizontally
6906     * @param h Enable limiting minimum size vertically
6907     *
6908     * By default the scroller will be as small as its design allows,
6909     * irrespective of its content. This will make the scroller minimum size the
6910     * right size horizontally and/or vertically to perfectly fit its content in
6911     * that direction.
6912     */
6913    EAPI void         elm_scroller_content_min_limit(Evas_Object *obj, Eina_Bool w, Eina_Bool h) EINA_ARG_NONNULL(1);
6914    /**
6915     * @brief Show a specific virtual region within the scroller content object
6916     *
6917     * @param obj The scroller object
6918     * @param x X coordinate of the region
6919     * @param y Y coordinate of the region
6920     * @param w Width of the region
6921     * @param h Height of the region
6922     *
6923     * This will ensure all (or part if it does not fit) of the designated
6924     * region in the virtual content object (0, 0 starting at the top-left of the
6925     * virtual content object) is shown within the scroller.
6926     */
6927    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);
6928    /**
6929     * @brief Set the scrollbar visibility policy
6930     *
6931     * @param obj The scroller object
6932     * @param policy_h Horizontal scrollbar policy
6933     * @param policy_v Vertical scrollbar policy
6934     *
6935     * This sets the scrollbar visibility policy for the given scroller.
6936     * ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is
6937     * needed, and otherwise kept hidden. ELM_SCROLLER_POLICY_ON turns it on all
6938     * the time, and ELM_SCROLLER_POLICY_OFF always keeps it off. This applies
6939     * respectively for the horizontal and vertical scrollbars.
6940     */
6941    EAPI void         elm_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
6942    /**
6943     * @brief Gets scrollbar visibility policy
6944     *
6945     * @param obj The scroller object
6946     * @param policy_h Horizontal scrollbar policy
6947     * @param policy_v Vertical scrollbar policy
6948     *
6949     * @see elm_scroller_policy_set()
6950     */
6951    EAPI void         elm_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v) EINA_ARG_NONNULL(1);
6952    /**
6953     * @brief Get the currently visible content region
6954     *
6955     * @param obj The scroller object
6956     * @param x X coordinate of the region
6957     * @param y Y coordinate of the region
6958     * @param w Width of the region
6959     * @param h Height of the region
6960     *
6961     * This gets the current region in the content object that is visible through
6962     * the scroller. The region co-ordinates are returned in the @p x, @p y, @p
6963     * w, @p h values pointed to.
6964     *
6965     * @note All coordinates are relative to the content.
6966     *
6967     * @see elm_scroller_region_show()
6968     */
6969    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);
6970    /**
6971     * @brief Get the size of the content object
6972     *
6973     * @param obj The scroller object
6974     * @param w Width return
6975     * @param h Height return
6976     *
6977     * This gets the size of the content object of the scroller.
6978     */
6979    EAPI void         elm_scroller_child_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
6980    /**
6981     * @brief Set bouncing behavior
6982     *
6983     * @param obj The scroller object
6984     * @param h_bounce Will the scroller bounce horizontally or not
6985     * @param v_bounce Will the scroller bounce vertically or not
6986     *
6987     * When scrolling, the scroller may "bounce" when reaching an edge of the
6988     * content object. This is a visual way to indicate the end has been reached.
6989     * This is enabled by default for both axis. This will set if it is enabled
6990     * for that axis with the boolean parameters for each axis.
6991     */
6992    EAPI void         elm_scroller_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
6993    /**
6994     * @brief Get the bounce mode
6995     *
6996     * @param obj The Scroller object
6997     * @param h_bounce Allow bounce horizontally
6998     * @param v_bounce Allow bounce vertically
6999     *
7000     * @see elm_scroller_bounce_set()
7001     */
7002    EAPI void         elm_scroller_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
7003    /**
7004     * @brief Set scroll page size relative to viewport size.
7005     *
7006     * @param obj The scroller object
7007     * @param h_pagerel The horizontal page relative size
7008     * @param v_pagerel The vertical page relative size
7009     *
7010     * The scroller is capable of limiting scrolling by the user to "pages". That
7011     * is to jump by and only show a "whole page" at a time as if the continuous
7012     * area of the scroller content is split into page sized pieces. This sets
7013     * the size of a page relative to the viewport of the scroller. 1.0 is "1
7014     * viewport" is size (horizontally or vertically). 0.0 turns it off in that
7015     * axis. This is mutually exclusive with page size
7016     * (see elm_scroller_page_size_set()  for more information). Likewise 0.5
7017     * is "half a viewport". Sane usable valus are normally between 0.0 and 1.0
7018     * including 1.0. If you only want 1 axis to be page "limited", use 0.0 for
7019     * the other axis.
7020     */
7021    EAPI void         elm_scroller_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
7022    /**
7023     * @brief Set scroll page size.
7024     *
7025     * @param obj The scroller object
7026     * @param h_pagesize The horizontal page size
7027     * @param v_pagesize The vertical page size
7028     *
7029     * This sets the page size to an absolute fixed value, with 0 turning it off
7030     * for that axis.
7031     *
7032     * @see elm_scroller_page_relative_set()
7033     */
7034    EAPI void         elm_scroller_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
7035    /**
7036     * @brief Get scroll current page number.
7037     *
7038     * @param obj The scroller object
7039     * @param h_pagenumber The horizoptal page number
7040     * @param v_pagenumber The vertical page number
7041     *
7042     * The page number starts from 0. 0 is the first page.
7043     * Current page means the page which meet the top-left of the viewport.
7044     * If there are two or more pages in the viewport, it returns the number of page
7045     * which meet the top-left of the viewport.
7046     *
7047     * @see elm_scroller_last_page_get()
7048     * @see elm_scroller_page_show()
7049     * @see elm_scroller_page_brint_in()
7050     */
7051    EAPI void         elm_scroller_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
7052    /**
7053     * @brief Get scroll last page number.
7054     *
7055     * @param obj The scroller object
7056     * @param h_pagenumber The horizoptal page number
7057     * @param v_pagenumber The vertical page number
7058     *
7059     * The page number starts from 0. 0 is the first page.
7060     * This returns the last page number among the pages.
7061     *
7062     * @see elm_scroller_current_page_get()
7063     * @see elm_scroller_page_show()
7064     * @see elm_scroller_page_brint_in()
7065     */
7066    EAPI void         elm_scroller_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
7067    /**
7068     * Show a specific virtual region within the scroller content object by page number.
7069     *
7070     * @param obj The scroller object
7071     * @param h_pagenumber The horizoptal page number
7072     * @param v_pagenumber The vertical page number
7073     *
7074     * 0, 0 of the indicated page is located at the top-left of the viewport.
7075     * This will jump to the page directly without animation.
7076     *
7077     * Example of usage:
7078     *
7079     * @code
7080     * sc = elm_scroller_add(win);
7081     * elm_scroller_content_set(sc, content);
7082     * elm_scroller_page_relative_set(sc, 1, 0);
7083     * elm_scroller_current_page_get(sc, &h_page, &v_page);
7084     * elm_scroller_page_show(sc, h_page + 1, v_page);
7085     * @endcode
7086     *
7087     * @see elm_scroller_page_bring_in()
7088     */
7089    EAPI void         elm_scroller_page_show(Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
7090    /**
7091     * Show a specific virtual region within the scroller content object by page number.
7092     *
7093     * @param obj The scroller object
7094     * @param h_pagenumber The horizoptal page number
7095     * @param v_pagenumber The vertical page number
7096     *
7097     * 0, 0 of the indicated page is located at the top-left of the viewport.
7098     * This will slide to the page with animation.
7099     *
7100     * Example of usage:
7101     *
7102     * @code
7103     * sc = elm_scroller_add(win);
7104     * elm_scroller_content_set(sc, content);
7105     * elm_scroller_page_relative_set(sc, 1, 0);
7106     * elm_scroller_last_page_get(sc, &h_page, &v_page);
7107     * elm_scroller_page_bring_in(sc, h_page, v_page);
7108     * @endcode
7109     *
7110     * @see elm_scroller_page_show()
7111     */
7112    EAPI void         elm_scroller_page_bring_in(Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
7113    /**
7114     * @brief Show a specific virtual region within the scroller content object.
7115     *
7116     * @param obj The scroller object
7117     * @param x X coordinate of the region
7118     * @param y Y coordinate of the region
7119     * @param w Width of the region
7120     * @param h Height of the region
7121     *
7122     * This will ensure all (or part if it does not fit) of the designated
7123     * region in the virtual content object (0, 0 starting at the top-left of the
7124     * virtual content object) is shown within the scroller. Unlike
7125     * elm_scroller_region_show(), this allow the scroller to "smoothly slide"
7126     * to this location (if configuration in general calls for transitions). It
7127     * may not jump immediately to the new location and make take a while and
7128     * show other content along the way.
7129     *
7130     * @see elm_scroller_region_show()
7131     */
7132    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);
7133    /**
7134     * @brief Set event propagation on a scroller
7135     *
7136     * @param obj The scroller object
7137     * @param propagation If propagation is enabled or not
7138     *
7139     * This enables or disabled event propagation from the scroller content to
7140     * the scroller and its parent. By default event propagation is disabled.
7141     */
7142    EAPI void         elm_scroller_propagate_events_set(Evas_Object *obj, Eina_Bool propagation);
7143    /**
7144     * @brief Get event propagation for a scroller
7145     *
7146     * @param obj The scroller object
7147     * @return The propagation state
7148     *
7149     * This gets the event propagation for a scroller.
7150     *
7151     * @see elm_scroller_propagate_events_set()
7152     */
7153    EAPI Eina_Bool    elm_scroller_propagate_events_get(const Evas_Object *obj);
7154    /**
7155     * @}
7156     */
7157
7158    /**
7159     * @defgroup Label Label
7160     *
7161     * @image html img/widget/label/preview-00.png
7162     * @image latex img/widget/label/preview-00.eps
7163     *
7164     * @brief Widget to display text, with simple html-like markup.
7165     *
7166     * The Label widget @b doesn't allow text to overflow its boundaries, if the
7167     * text doesn't fit the geometry of the label it will be ellipsized or be
7168     * cut. Elementary provides several themes for this widget:
7169     * @li default - No animation
7170     * @li marker - Centers the text in the label and make it bold by default
7171     * @li slide_long - The entire text appears from the right of the screen and
7172     * slides until it disappears in the left of the screen(reappering on the
7173     * right again).
7174     * @li slide_short - The text appears in the left of the label and slides to
7175     * the right to show the overflow. When all of the text has been shown the
7176     * position is reset.
7177     * @li slide_bounce - The text appears in the left of the label and slides to
7178     * the right to show the overflow. When all of the text has been shown the
7179     * animation reverses, moving the text to the left.
7180     *
7181     * Custom themes can of course invent new markup tags and style them any way
7182     * they like.
7183     *
7184     * See @ref tutorial_label for a demonstration of how to use a label widget.
7185     * @{
7186     */
7187    /**
7188     * @brief Add a new label to the parent
7189     *
7190     * @param parent The parent object
7191     * @return The new object or NULL if it cannot be created
7192     */
7193    EAPI Evas_Object *elm_label_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7194    /**
7195     * @brief Set the label on the label object
7196     *
7197     * @param obj The label object
7198     * @param label The label will be used on the label object
7199     * @deprecated See elm_object_text_set()
7200     */
7201    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 */
7202    /**
7203     * @brief Get the label used on the label object
7204     *
7205     * @param obj The label object
7206     * @return The string inside the label
7207     * @deprecated See elm_object_text_get()
7208     */
7209    EINA_DEPRECATED EAPI const char *elm_label_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1); /* deprecated, use elm_object_text_get instead */
7210    /**
7211     * @brief Set the wrapping behavior of the label
7212     *
7213     * @param obj The label object
7214     * @param wrap To wrap text or not
7215     *
7216     * By default no wrapping is done. Possible values for @p wrap are:
7217     * @li ELM_WRAP_NONE - No wrapping
7218     * @li ELM_WRAP_CHAR - wrap between characters
7219     * @li ELM_WRAP_WORD - wrap between words
7220     * @li ELM_WRAP_MIXED - Word wrap, and if that fails, char wrap
7221     */
7222    EAPI void         elm_label_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
7223    /**
7224     * @brief Get the wrapping behavior of the label
7225     *
7226     * @param obj The label object
7227     * @return Wrap type
7228     *
7229     * @see elm_label_line_wrap_set()
7230     */
7231    EAPI Elm_Wrap_Type elm_label_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7232    /**
7233     * @brief Set wrap width of the label
7234     *
7235     * @param obj The label object
7236     * @param w The wrap width in pixels at a minimum where words need to wrap
7237     *
7238     * This function sets the maximum width size hint of the label.
7239     *
7240     * @warning This is only relevant if the label is inside a container.
7241     */
7242    EAPI void         elm_label_wrap_width_set(Evas_Object *obj, Evas_Coord w) EINA_ARG_NONNULL(1);
7243    /**
7244     * @brief Get wrap width of the label
7245     *
7246     * @param obj The label object
7247     * @return The wrap width in pixels at a minimum where words need to wrap
7248     *
7249     * @see elm_label_wrap_width_set()
7250     */
7251    EAPI Evas_Coord   elm_label_wrap_width_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7252    /**
7253     * @brief Set wrap height of the label
7254     *
7255     * @param obj The label object
7256     * @param h The wrap height in pixels at a minimum where words need to wrap
7257     *
7258     * This function sets the maximum height size hint of the label.
7259     *
7260     * @warning This is only relevant if the label is inside a container.
7261     */
7262    EAPI void         elm_label_wrap_height_set(Evas_Object *obj, Evas_Coord h) EINA_ARG_NONNULL(1);
7263    /**
7264     * @brief get wrap width of the label
7265     *
7266     * @param obj The label object
7267     * @return The wrap height in pixels at a minimum where words need to wrap
7268     */
7269    EAPI Evas_Coord   elm_label_wrap_height_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7270    /**
7271     * @brief Set the font size on the label object.
7272     *
7273     * @param obj The label object
7274     * @param size font size
7275     *
7276     * @warning NEVER use this. It is for hyper-special cases only. use styles
7277     * instead. e.g. "big", "medium", "small" - or better name them by use:
7278     * "title", "footnote", "quote" etc.
7279     */
7280    EAPI void         elm_label_fontsize_set(Evas_Object *obj, int fontsize) EINA_ARG_NONNULL(1);
7281    /**
7282     * @brief Set the text color on the label object
7283     *
7284     * @param obj The label object
7285     * @param r Red property background color of The label object
7286     * @param g Green property background color of The label object
7287     * @param b Blue property background color of The label object
7288     * @param a Alpha property background color of The label object
7289     *
7290     * @warning NEVER use this. It is for hyper-special cases only. use styles
7291     * instead. e.g. "big", "medium", "small" - or better name them by use:
7292     * "title", "footnote", "quote" etc.
7293     */
7294    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);
7295    /**
7296     * @brief Set the text align on the label object
7297     *
7298     * @param obj The label object
7299     * @param align align mode ("left", "center", "right")
7300     *
7301     * @warning NEVER use this. It is for hyper-special cases only. use styles
7302     * instead. e.g. "big", "medium", "small" - or better name them by use:
7303     * "title", "footnote", "quote" etc.
7304     */
7305    EAPI void         elm_label_text_align_set(Evas_Object *obj, const char *alignmode) EINA_ARG_NONNULL(1);
7306    /**
7307     * @brief Set background color of the label
7308     *
7309     * @param obj The label object
7310     * @param r Red property background color of The label object
7311     * @param g Green property background color of The label object
7312     * @param b Blue property background color of The label object
7313     * @param a Alpha property background alpha of The label object
7314     *
7315     * @warning NEVER use this. It is for hyper-special cases only. use styles
7316     * instead. e.g. "big", "medium", "small" - or better name them by use:
7317     * "title", "footnote", "quote" etc.
7318     */
7319    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);
7320    /**
7321     * @brief Set the ellipsis behavior of the label
7322     *
7323     * @param obj The label object
7324     * @param ellipsis To ellipsis text or not
7325     *
7326     * If set to true and the text doesn't fit in the label an ellipsis("...")
7327     * will be shown at the end of the widget.
7328     *
7329     * @warning This doesn't work with slide(elm_label_slide_set()) or if the
7330     * choosen wrap method was ELM_WRAP_WORD.
7331     */
7332    EAPI void         elm_label_ellipsis_set(Evas_Object *obj, Eina_Bool ellipsis) EINA_ARG_NONNULL(1);
7333    /**
7334     * @brief Set the text slide of the label
7335     *
7336     * @param obj The label object
7337     * @param slide To start slide or stop
7338     *
7339     * If set to true the text of the label will slide throught the length of
7340     * label.
7341     *
7342     * @warning This only work with the themes "slide_short", "slide_long" and
7343     * "slide_bounce".
7344     */
7345    EAPI void         elm_label_slide_set(Evas_Object *obj, Eina_Bool slide) EINA_ARG_NONNULL(1);
7346    /**
7347     * @brief Get the text slide mode of the label
7348     *
7349     * @param obj The label object
7350     * @return slide slide mode value
7351     *
7352     * @see elm_label_slide_set()
7353     */
7354    EAPI Eina_Bool    elm_label_slide_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
7355    /**
7356     * @brief Set the slide duration(speed) of the label
7357     *
7358     * @param obj The label object
7359     * @return The duration in seconds in moving text from slide begin position
7360     * to slide end position
7361     */
7362    EAPI void         elm_label_slide_duration_set(Evas_Object *obj, double duration) EINA_ARG_NONNULL(1);
7363    /**
7364     * @brief Get the slide duration(speed) of the label
7365     *
7366     * @param obj The label object
7367     * @return The duration time in moving text from slide begin position to slide end position
7368     *
7369     * @see elm_label_slide_duration_set()
7370     */
7371    EAPI double       elm_label_slide_duration_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
7372    /**
7373     * @}
7374     */
7375
7376    /**
7377     * @defgroup Toggle Toggle
7378     *
7379     * @image html img/widget/toggle/preview-00.png
7380     * @image latex img/widget/toggle/preview-00.eps
7381     *
7382     * @brief A toggle is a slider which can be used to toggle between
7383     * two values.  It has two states: on and off.
7384     *
7385     * Signals that you can add callbacks for are:
7386     * @li "changed" - Whenever the toggle value has been changed.  Is not called
7387     *                 until the toggle is released by the cursor (assuming it
7388     *                 has been triggered by the cursor in the first place).
7389     *
7390     * @ref tutorial_toggle show how to use a toggle.
7391     * @{
7392     */
7393    /**
7394     * @brief Add a toggle to @p parent.
7395     *
7396     * @param parent The parent object
7397     *
7398     * @return The toggle object
7399     */
7400    EAPI Evas_Object *elm_toggle_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7401    /**
7402     * @brief Sets the label to be displayed with the toggle.
7403     *
7404     * @param obj The toggle object
7405     * @param label The label to be displayed
7406     *
7407     * @deprecated use elm_object_text_set() instead.
7408     */
7409    EINA_DEPRECATED EAPI void         elm_toggle_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7410    /**
7411     * @brief Gets the label of the toggle
7412     *
7413     * @param obj  toggle object
7414     * @return The label of the toggle
7415     *
7416     * @deprecated use elm_object_text_get() instead.
7417     */
7418    EINA_DEPRECATED EAPI const char  *elm_toggle_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7419    /**
7420     * @brief Set the icon used for the toggle
7421     *
7422     * @param obj The toggle object
7423     * @param icon The icon object for the button
7424     *
7425     * Once the icon object is set, a previously set one will be deleted
7426     * If you want to keep that old content object, use the
7427     * elm_toggle_icon_unset() function.
7428     */
7429    EAPI void         elm_toggle_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
7430    /**
7431     * @brief Get the icon used for the toggle
7432     *
7433     * @param obj The toggle object
7434     * @return The icon object that is being used
7435     *
7436     * Return the icon object which is set for this widget.
7437     *
7438     * @see elm_toggle_icon_set()
7439     */
7440    EAPI Evas_Object *elm_toggle_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7441    /**
7442     * @brief Unset the icon used for the toggle
7443     *
7444     * @param obj The toggle object
7445     * @return The icon object that was being used
7446     *
7447     * Unparent and return the icon object which was set for this widget.
7448     *
7449     * @see elm_toggle_icon_set()
7450     */
7451    EAPI Evas_Object *elm_toggle_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7452    /**
7453     * @brief Sets the labels to be associated with the on and off states of the toggle.
7454     *
7455     * @param obj The toggle object
7456     * @param onlabel The label displayed when the toggle is in the "on" state
7457     * @param offlabel The label displayed when the toggle is in the "off" state
7458     */
7459    EAPI void         elm_toggle_states_labels_set(Evas_Object *obj, const char *onlabel, const char *offlabel) EINA_ARG_NONNULL(1);
7460    /**
7461     * @brief Gets the labels associated with the on and off states of the toggle.
7462     *
7463     * @param obj The toggle object
7464     * @param onlabel A char** to place the onlabel of @p obj into
7465     * @param offlabel A char** to place the offlabel of @p obj into
7466     */
7467    EAPI void         elm_toggle_states_labels_get(const Evas_Object *obj, const char **onlabel, const char **offlabel) EINA_ARG_NONNULL(1);
7468    /**
7469     * @brief Sets the state of the toggle to @p state.
7470     *
7471     * @param obj The toggle object
7472     * @param state The state of @p obj
7473     */
7474    EAPI void         elm_toggle_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
7475    /**
7476     * @brief Gets the state of the toggle to @p state.
7477     *
7478     * @param obj The toggle object
7479     * @return The state of @p obj
7480     */
7481    EAPI Eina_Bool    elm_toggle_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7482    /**
7483     * @brief Sets the state pointer of the toggle to @p statep.
7484     *
7485     * @param obj The toggle object
7486     * @param statep The state pointer of @p obj
7487     */
7488    EAPI void         elm_toggle_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
7489    /**
7490     * @}
7491     */
7492
7493    /**
7494     * @defgroup Frame Frame
7495     *
7496     * @image html img/widget/frame/preview-00.png
7497     * @image latex img/widget/frame/preview-00.eps
7498     *
7499     * @brief Frame is a widget that holds some content and has a title.
7500     *
7501     * The default look is a frame with a title, but Frame supports multple
7502     * styles:
7503     * @li default
7504     * @li pad_small
7505     * @li pad_medium
7506     * @li pad_large
7507     * @li pad_huge
7508     * @li outdent_top
7509     * @li outdent_bottom
7510     *
7511     * Of all this styles only default shows the title. Frame emits no signals.
7512     *
7513     * For a detailed example see the @ref tutorial_frame.
7514     *
7515     * @{
7516     */
7517    /**
7518     * @brief Add a new frame to the parent
7519     *
7520     * @param parent The parent object
7521     * @return The new object or NULL if it cannot be created
7522     */
7523    EAPI Evas_Object *elm_frame_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7524    /**
7525     * @brief Set the frame label
7526     *
7527     * @param obj The frame object
7528     * @param label The label of this frame object
7529     *
7530     * @deprecated use elm_object_text_set() instead.
7531     */
7532    EINA_DEPRECATED EAPI void         elm_frame_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7533    /**
7534     * @brief Get the frame label
7535     *
7536     * @param obj The frame object
7537     *
7538     * @return The label of this frame objet or NULL if unable to get frame
7539     *
7540     * @deprecated use elm_object_text_get() instead.
7541     */
7542    EINA_DEPRECATED EAPI const char  *elm_frame_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7543    /**
7544     * @brief Set the content of the frame widget
7545     *
7546     * Once the content object is set, a previously set one will be deleted.
7547     * If you want to keep that old content object, use the
7548     * elm_frame_content_unset() function.
7549     *
7550     * @param obj The frame object
7551     * @param content The content will be filled in this frame object
7552     */
7553    EAPI void         elm_frame_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
7554    /**
7555     * @brief Get the content of the frame widget
7556     *
7557     * Return the content object which is set for this widget
7558     *
7559     * @param obj The frame object
7560     * @return The content that is being used
7561     */
7562    EAPI Evas_Object *elm_frame_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7563    /**
7564     * @brief Unset the content of the frame widget
7565     *
7566     * Unparent and return the content object which was set for this widget
7567     *
7568     * @param obj The frame object
7569     * @return The content that was being used
7570     */
7571    EAPI Evas_Object *elm_frame_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7572    /**
7573     * @}
7574     */
7575
7576    /**
7577     * @defgroup Table Table
7578     *
7579     * A container widget to arrange other widgets in a table where items can
7580     * also span multiple columns or rows - even overlap (and then be raised or
7581     * lowered accordingly to adjust stacking if they do overlap).
7582     *
7583     * The followin are examples of how to use a table:
7584     * @li @ref tutorial_table_01
7585     * @li @ref tutorial_table_02
7586     *
7587     * @{
7588     */
7589    /**
7590     * @brief Add a new table to the parent
7591     *
7592     * @param parent The parent object
7593     * @return The new object or NULL if it cannot be created
7594     */
7595    EAPI Evas_Object *elm_table_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7596    /**
7597     * @brief Set the homogeneous layout in the table
7598     *
7599     * @param obj The layout object
7600     * @param homogeneous A boolean to set if the layout is homogeneous in the
7601     * table (EINA_TRUE = homogeneous,  EINA_FALSE = no homogeneous)
7602     */
7603    EAPI void         elm_table_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
7604    /**
7605     * @brief Get the current table homogeneous mode.
7606     *
7607     * @param obj The table object
7608     * @return A boolean to indicating if the layout is homogeneous in the table
7609     * (EINA_TRUE = homogeneous,  EINA_FALSE = no homogeneous)
7610     */
7611    EAPI Eina_Bool    elm_table_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7612    /**
7613     * @warning <b>Use elm_table_homogeneous_set() instead</b>
7614     */
7615    EINA_DEPRECATED EAPI void elm_table_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
7616    /**
7617     * @warning <b>Use elm_table_homogeneous_get() instead</b>
7618     */
7619    EINA_DEPRECATED EAPI Eina_Bool elm_table_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7620    /**
7621     * @brief Set padding between cells.
7622     *
7623     * @param obj The layout object.
7624     * @param horizontal set the horizontal padding.
7625     * @param vertical set the vertical padding.
7626     *
7627     * Default value is 0.
7628     */
7629    EAPI void         elm_table_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
7630    /**
7631     * @brief Get padding between cells.
7632     *
7633     * @param obj The layout object.
7634     * @param horizontal set the horizontal padding.
7635     * @param vertical set the vertical padding.
7636     */
7637    EAPI void         elm_table_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
7638    /**
7639     * @brief Add a subobject on the table with the coordinates passed
7640     *
7641     * @param obj The table object
7642     * @param subobj The subobject to be added to the table
7643     * @param x Row number
7644     * @param y Column number
7645     * @param w rowspan
7646     * @param h colspan
7647     *
7648     * @note All positioning inside the table is relative to rows and columns, so
7649     * a value of 0 for x and y, means the top left cell of the table, and a
7650     * value of 1 for w and h means @p subobj only takes that 1 cell.
7651     */
7652    EAPI void         elm_table_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
7653    /**
7654     * @brief Remove child from table.
7655     *
7656     * @param obj The table object
7657     * @param subobj The subobject
7658     */
7659    EAPI void         elm_table_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
7660    /**
7661     * @brief Faster way to remove all child objects from a table object.
7662     *
7663     * @param obj The table object
7664     * @param clear If true, will delete children, else just remove from table.
7665     */
7666    EAPI void         elm_table_clear(Evas_Object *obj, Eina_Bool clear) EINA_ARG_NONNULL(1);
7667    /**
7668     * @brief Set the packing location of an existing child of the table
7669     *
7670     * @param subobj The subobject to be modified in the table
7671     * @param x Row number
7672     * @param y Column number
7673     * @param w rowspan
7674     * @param h colspan
7675     *
7676     * Modifies the position of an object already in the table.
7677     *
7678     * @note All positioning inside the table is relative to rows and columns, so
7679     * a value of 0 for x and y, means the top left cell of the table, and a
7680     * value of 1 for w and h means @p subobj only takes that 1 cell.
7681     */
7682    EAPI void         elm_table_pack_set(Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
7683    /**
7684     * @brief Get the packing location of an existing child of the table
7685     *
7686     * @param subobj The subobject to be modified in the table
7687     * @param x Row number
7688     * @param y Column number
7689     * @param w rowspan
7690     * @param h colspan
7691     *
7692     * @see elm_table_pack_set()
7693     */
7694    EAPI void         elm_table_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
7695    /**
7696     * @}
7697     */
7698
7699    /**
7700     * @defgroup Gengrid Gengrid (Generic grid)
7701     *
7702     * This widget aims to position objects in a grid layout while
7703     * actually creating and rendering only the visible ones, using the
7704     * same idea as the @ref Genlist "genlist": the user defines a @b
7705     * class for each item, specifying functions that will be called at
7706     * object creation, deletion, etc. When those items are selected by
7707     * the user, a callback function is issued. Users may interact with
7708     * a gengrid via the mouse (by clicking on items to select them and
7709     * clicking on the grid's viewport and swiping to pan the whole
7710     * view) or via the keyboard, navigating through item with the
7711     * arrow keys.
7712     *
7713     * @section Gengrid_Layouts Gengrid layouts
7714     *
7715     * Gengrids may layout its items in one of two possible layouts:
7716     * - horizontal or
7717     * - vertical.
7718     *
7719     * When in "horizontal mode", items will be placed in @b columns,
7720     * from top to bottom and, when the space for a column is filled,
7721     * another one is started on the right, thus expanding the grid
7722     * horizontally, making for horizontal scrolling. When in "vertical
7723     * mode" , though, items will be placed in @b rows, from left to
7724     * right and, when the space for a row is filled, another one is
7725     * started below, thus expanding the grid vertically (and making
7726     * for vertical scrolling).
7727     *
7728     * @section Gengrid_Items Gengrid items
7729     *
7730     * An item in a gengrid can have 0 or more text labels (they can be
7731     * regular text or textblock Evas objects - that's up to the style
7732     * to determine), 0 or more icons (which are simply objects
7733     * swallowed into the gengrid item's theming Edje object) and 0 or
7734     * more <b>boolean states</b>, which have the behavior left to the
7735     * user to define. The Edje part names for each of these properties
7736     * will be looked up, in the theme file for the gengrid, under the
7737     * Edje (string) data items named @c "labels", @c "icons" and @c
7738     * "states", respectively. For each of those properties, if more
7739     * than one part is provided, they must have names listed separated
7740     * by spaces in the data fields. For the default gengrid item
7741     * theme, we have @b one label part (@c "elm.text"), @b two icon
7742     * parts (@c "elm.swalllow.icon" and @c "elm.swallow.end") and @b
7743     * no state parts.
7744     *
7745     * A gengrid item may be at one of several styles. Elementary
7746     * provides one by default - "default", but this can be extended by
7747     * system or application custom themes/overlays/extensions (see
7748     * @ref Theme "themes" for more details).
7749     *
7750     * @section Gengrid_Item_Class Gengrid item classes
7751     *
7752     * In order to have the ability to add and delete items on the fly,
7753     * gengrid implements a class (callback) system where the
7754     * application provides a structure with information about that
7755     * type of item (gengrid may contain multiple different items with
7756     * different classes, states and styles). Gengrid will call the
7757     * functions in this struct (methods) when an item is "realized"
7758     * (i.e., created dynamically, while the user is scrolling the
7759     * grid). All objects will simply be deleted when no longer needed
7760     * with evas_object_del(). The #Elm_GenGrid_Item_Class structure
7761     * contains the following members:
7762     * - @c item_style - This is a constant string and simply defines
7763     * the name of the item style. It @b must be specified and the
7764     * default should be @c "default".
7765     * - @c func.label_get - This function is called when an item
7766     * object is actually created. The @c data parameter will point to
7767     * the same data passed to elm_gengrid_item_append() and related
7768     * item creation functions. The @c obj parameter is the gengrid
7769     * object itself, while the @c part one is the name string of one
7770     * of the existing text parts in the Edje group implementing the
7771     * item's theme. This function @b must return a strdup'()ed string,
7772     * as the caller will free() it when done. See
7773     * #Elm_Gengrid_Item_Label_Get_Cb.
7774     * - @c func.icon_get - This function is called when an item object
7775     * is actually created. The @c data parameter will point to the
7776     * same data passed to elm_gengrid_item_append() and related item
7777     * creation functions. The @c obj parameter is the gengrid object
7778     * itself, while the @c part one is the name string of one of the
7779     * existing (icon) swallow parts in the Edje group implementing the
7780     * item's theme. It must return @c NULL, when no icon is desired,
7781     * or a valid object handle, otherwise. The object will be deleted
7782     * by the gengrid on its deletion or when the item is "unrealized".
7783     * See #Elm_Gengrid_Item_Icon_Get_Cb.
7784     * - @c func.state_get - This function is called when an item
7785     * object is actually created. The @c data parameter will point to
7786     * the same data passed to elm_gengrid_item_append() and related
7787     * item creation functions. The @c obj parameter is the gengrid
7788     * object itself, while the @c part one is the name string of one
7789     * of the state parts in the Edje group implementing the item's
7790     * theme. Return @c EINA_FALSE for false/off or @c EINA_TRUE for
7791     * true/on. Gengrids will emit a signal to its theming Edje object
7792     * with @c "elm,state,XXX,active" and @c "elm" as "emission" and
7793     * "source" arguments, respectively, when the state is true (the
7794     * default is false), where @c XXX is the name of the (state) part.
7795     * See #Elm_Gengrid_Item_State_Get_Cb.
7796     * - @c func.del - This is called when elm_gengrid_item_del() is
7797     * called on an item or elm_gengrid_clear() is called on the
7798     * gengrid. This is intended for use when gengrid items are
7799     * deleted, so any data attached to the item (e.g. its data
7800     * parameter on creation) can be deleted. See #Elm_Gengrid_Item_Del_Cb.
7801     *
7802     * @section Gengrid_Usage_Hints Usage hints
7803     *
7804     * If the user wants to have multiple items selected at the same
7805     * time, elm_gengrid_multi_select_set() will permit it. If the
7806     * gengrid is single-selection only (the default), then
7807     * elm_gengrid_select_item_get() will return the selected item or
7808     * @c NULL, if none is selected. If the gengrid is under
7809     * multi-selection, then elm_gengrid_selected_items_get() will
7810     * return a list (that is only valid as long as no items are
7811     * modified (added, deleted, selected or unselected) of child items
7812     * on a gengrid.
7813     *
7814     * If an item changes (internal (boolean) state, label or icon
7815     * changes), then use elm_gengrid_item_update() to have gengrid
7816     * update the item with the new state. A gengrid will re-"realize"
7817     * the item, thus calling the functions in the
7818     * #Elm_Gengrid_Item_Class set for that item.
7819     *
7820     * To programmatically (un)select an item, use
7821     * elm_gengrid_item_selected_set(). To get its selected state use
7822     * elm_gengrid_item_selected_get(). To make an item disabled
7823     * (unable to be selected and appear differently) use
7824     * elm_gengrid_item_disabled_set() to set this and
7825     * elm_gengrid_item_disabled_get() to get the disabled state.
7826     *
7827     * Grid cells will only have their selection smart callbacks called
7828     * when firstly getting selected. Any further clicks will do
7829     * nothing, unless you enable the "always select mode", with
7830     * elm_gengrid_always_select_mode_set(), thus making every click to
7831     * issue selection callbacks. elm_gengrid_no_select_mode_set() will
7832     * turn off the ability to select items entirely in the widget and
7833     * they will neither appear selected nor call the selection smart
7834     * callbacks.
7835     *
7836     * Remember that you can create new styles and add your own theme
7837     * augmentation per application with elm_theme_extension_add(). If
7838     * you absolutely must have a specific style that overrides any
7839     * theme the user or system sets up you can use
7840     * elm_theme_overlay_add() to add such a file.
7841     *
7842     * @section Gengrid_Smart_Events Gengrid smart events
7843     *
7844     * Smart events that you can add callbacks for are:
7845     * - @c "activated" - The user has double-clicked or pressed
7846     *   (enter|return|spacebar) on an item. The @c event_info parameter
7847     *   is the gengrid item that was activated.
7848     * - @c "clicked,double" - The user has double-clicked an item.
7849     *   The @c event_info parameter is the gengrid item that was double-clicked.
7850     * - @c "longpressed" - This is called when the item is pressed for a certain
7851     *   amount of time. By default it's 1 second.
7852     * - @c "selected" - The user has made an item selected. The
7853     *   @c event_info parameter is the gengrid item that was selected.
7854     * - @c "unselected" - The user has made an item unselected. The
7855     *   @c event_info parameter is the gengrid item that was unselected.
7856     * - @c "realized" - This is called when the item in the gengrid
7857     *   has its implementing Evas object instantiated, de facto. @c
7858     *   event_info is the gengrid item that was created. The object
7859     *   may be deleted at any time, so it is highly advised to the
7860     *   caller @b not to use the object pointer returned from
7861     *   elm_gengrid_item_object_get(), because it may point to freed
7862     *   objects.
7863     * - @c "unrealized" - This is called when the implementing Evas
7864     *   object for this item is deleted. @c event_info is the gengrid
7865     *   item that was deleted.
7866     * - @c "changed" - Called when an item is added, removed, resized
7867     *   or moved and when the gengrid is resized or gets "horizontal"
7868     *   property changes.
7869     * - @c "scroll,anim,start" - This is called when scrolling animation has
7870     *   started.
7871     * - @c "scroll,anim,stop" - This is called when scrolling animation has
7872     *   stopped.
7873     * - @c "drag,start,up" - Called when the item in the gengrid has
7874     *   been dragged (not scrolled) up.
7875     * - @c "drag,start,down" - Called when the item in the gengrid has
7876     *   been dragged (not scrolled) down.
7877     * - @c "drag,start,left" - Called when the item in the gengrid has
7878     *   been dragged (not scrolled) left.
7879     * - @c "drag,start,right" - Called when the item in the gengrid has
7880     *   been dragged (not scrolled) right.
7881     * - @c "drag,stop" - Called when the item in the gengrid has
7882     *   stopped being dragged.
7883     * - @c "drag" - Called when the item in the gengrid is being
7884     *   dragged.
7885     * - @c "scroll" - called when the content has been scrolled
7886     *   (moved).
7887     * - @c "scroll,drag,start" - called when dragging the content has
7888     *   started.
7889     * - @c "scroll,drag,stop" - called when dragging the content has
7890     *   stopped.
7891     *
7892     * List of gengrid examples:
7893     * @li @ref gengrid_example
7894     */
7895
7896    /**
7897     * @addtogroup Gengrid
7898     * @{
7899     */
7900
7901    typedef struct _Elm_Gengrid_Item_Class Elm_Gengrid_Item_Class; /**< Gengrid item class definition structs */
7902    typedef struct _Elm_Gengrid_Item_Class_Func Elm_Gengrid_Item_Class_Func; /**< Class functions for gengrid item classes. */
7903    typedef struct _Elm_Gengrid_Item Elm_Gengrid_Item; /**< Gengrid item handles */
7904    typedef char        *(*Elm_Gengrid_Item_Label_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< Label fetching class function for gengrid item classes. */
7905    typedef Evas_Object *(*Elm_Gengrid_Item_Icon_Get_Cb)  (void *data, Evas_Object *obj, const char *part); /**< Icon fetching class function for gengrid item classes. */
7906    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. */
7907    typedef void         (*Elm_Gengrid_Item_Del_Cb)      (void *data, Evas_Object *obj); /**< Deletion class function for gengrid item classes. */
7908
7909    typedef char        *(*GridItemLabelGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Gengrid_Item_Label_Get_Cb. */
7910    typedef Evas_Object *(*GridItemIconGetFunc)  (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Gengrid_Item_Icon_Get_Cb. */
7911    typedef Eina_Bool    (*GridItemStateGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Gengrid_Item_State_Get_Cb. */
7912    typedef void         (*GridItemDelFunc)      (void *data, Evas_Object *obj) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Gengrid_Item_Del_Cb. */
7913
7914    /**
7915     * @struct _Elm_Gengrid_Item_Class
7916     *
7917     * Gengrid item class definition. See @ref Gengrid_Item_Class for
7918     * field details.
7919     */
7920    struct _Elm_Gengrid_Item_Class
7921      {
7922         const char             *item_style;
7923         struct _Elm_Gengrid_Item_Class_Func
7924           {
7925              Elm_Gengrid_Item_Label_Get_Cb label_get;
7926              Elm_Gengrid_Item_Icon_Get_Cb  icon_get;
7927              Elm_Gengrid_Item_State_Get_Cb state_get;
7928              Elm_Gengrid_Item_Del_Cb       del;
7929           } func;
7930      }; /**< #Elm_Gengrid_Item_Class member definitions */
7931
7932    /**
7933     * Add a new gengrid widget to the given parent Elementary
7934     * (container) object
7935     *
7936     * @param parent The parent object
7937     * @return a new gengrid widget handle or @c NULL, on errors
7938     *
7939     * This function inserts a new gengrid widget on the canvas.
7940     *
7941     * @see elm_gengrid_item_size_set()
7942     * @see elm_gengrid_group_item_size_set()
7943     * @see elm_gengrid_horizontal_set()
7944     * @see elm_gengrid_item_append()
7945     * @see elm_gengrid_item_del()
7946     * @see elm_gengrid_clear()
7947     *
7948     * @ingroup Gengrid
7949     */
7950    EAPI Evas_Object       *elm_gengrid_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7951
7952    /**
7953     * Set the size for the items of a given gengrid widget
7954     *
7955     * @param obj The gengrid object.
7956     * @param w The items' width.
7957     * @param h The items' height;
7958     *
7959     * A gengrid, after creation, has still no information on the size
7960     * to give to each of its cells. So, you most probably will end up
7961     * with squares one @ref Fingers "finger" wide, the default
7962     * size. Use this function to force a custom size for you items,
7963     * making them as big as you wish.
7964     *
7965     * @see elm_gengrid_item_size_get()
7966     *
7967     * @ingroup Gengrid
7968     */
7969    EAPI void               elm_gengrid_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
7970
7971    /**
7972     * Get the size set for the items of a given gengrid widget
7973     *
7974     * @param obj The gengrid object.
7975     * @param w Pointer to a variable where to store the items' width.
7976     * @param h Pointer to a variable where to store the items' height.
7977     *
7978     * @note Use @c NULL pointers on the size values you're not
7979     * interested in: they'll be ignored by the function.
7980     *
7981     * @see elm_gengrid_item_size_get() for more details
7982     *
7983     * @ingroup Gengrid
7984     */
7985    EAPI void               elm_gengrid_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
7986
7987    /**
7988     * Set the size for the group items of a given gengrid widget
7989     *
7990     * @param obj The gengrid object.
7991     * @param w The group items' width.
7992     * @param h The group items' height;
7993     *
7994     * A gengrid, after creation, has still no information on the size
7995     * to give to each of its cells. So, you most probably will end up
7996     * with squares one @ref Fingers "finger" wide, the default
7997     * size. Use this function to force a custom size for you group items,
7998     * making them as big as you wish.
7999     *
8000     * @see elm_gengrid_group_item_size_get()
8001     *
8002     * @ingroup Gengrid
8003     */
8004    EAPI void               elm_gengrid_group_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
8005
8006    /**
8007     * Get the size set for the group items of a given gengrid widget
8008     *
8009     * @param obj The gengrid object.
8010     * @param w Pointer to a variable where to store the group items' width.
8011     * @param h Pointer to a variable where to store the group items' height.
8012     *
8013     * @note Use @c NULL pointers on the size values you're not
8014     * interested in: they'll be ignored by the function.
8015     *
8016     * @see elm_gengrid_group_item_size_get() for more details
8017     *
8018     * @ingroup Gengrid
8019     */
8020    EAPI void               elm_gengrid_group_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
8021
8022    /**
8023     * Set the items grid's alignment within a given gengrid widget
8024     *
8025     * @param obj The gengrid object.
8026     * @param align_x Alignment in the horizontal axis (0 <= align_x <= 1).
8027     * @param align_y Alignment in the vertical axis (0 <= align_y <= 1).
8028     *
8029     * This sets the alignment of the whole grid of items of a gengrid
8030     * within its given viewport. By default, those values are both
8031     * 0.5, meaning that the gengrid will have its items grid placed
8032     * exactly in the middle of its viewport.
8033     *
8034     * @note If given alignment values are out of the cited ranges,
8035     * they'll be changed to the nearest boundary values on the valid
8036     * ranges.
8037     *
8038     * @see elm_gengrid_align_get()
8039     *
8040     * @ingroup Gengrid
8041     */
8042    EAPI void               elm_gengrid_align_set(Evas_Object *obj, double align_x, double align_y) EINA_ARG_NONNULL(1);
8043
8044    /**
8045     * Get the items grid's alignment values within a given gengrid
8046     * widget
8047     *
8048     * @param obj The gengrid object.
8049     * @param align_x Pointer to a variable where to store the
8050     * horizontal alignment.
8051     * @param align_y Pointer to a variable where to store the vertical
8052     * alignment.
8053     *
8054     * @note Use @c NULL pointers on the alignment values you're not
8055     * interested in: they'll be ignored by the function.
8056     *
8057     * @see elm_gengrid_align_set() for more details
8058     *
8059     * @ingroup Gengrid
8060     */
8061    EAPI void               elm_gengrid_align_get(const Evas_Object *obj, double *align_x, double *align_y) EINA_ARG_NONNULL(1);
8062
8063    /**
8064     * Set whether a given gengrid widget is or not able have items
8065     * @b reordered
8066     *
8067     * @param obj The gengrid object
8068     * @param reorder_mode Use @c EINA_TRUE to turn reoderding on,
8069     * @c EINA_FALSE to turn it off
8070     *
8071     * If a gengrid is set to allow reordering, a click held for more
8072     * than 0.5 over a given item will highlight it specially,
8073     * signalling the gengrid has entered the reordering state. From
8074     * that time on, the user will be able to, while still holding the
8075     * mouse button down, move the item freely in the gengrid's
8076     * viewport, replacing to said item to the locations it goes to.
8077     * The replacements will be animated and, whenever the user
8078     * releases the mouse button, the item being replaced gets a new
8079     * definitive place in the grid.
8080     *
8081     * @see elm_gengrid_reorder_mode_get()
8082     *
8083     * @ingroup Gengrid
8084     */
8085    EAPI void               elm_gengrid_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
8086
8087    /**
8088     * Get whether a given gengrid widget is or not able have items
8089     * @b reordered
8090     *
8091     * @param obj The gengrid object
8092     * @return @c EINA_TRUE, if reoderding is on, @c EINA_FALSE if it's
8093     * off
8094     *
8095     * @see elm_gengrid_reorder_mode_set() for more details
8096     *
8097     * @ingroup Gengrid
8098     */
8099    EAPI Eina_Bool          elm_gengrid_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8100
8101    /**
8102     * Append a new item in a given gengrid widget.
8103     *
8104     * @param obj The gengrid object.
8105     * @param gic The item class for the item.
8106     * @param data The item data.
8107     * @param func Convenience function called when the item is
8108     * selected.
8109     * @param func_data Data to be passed to @p func.
8110     * @return A handle to the item added or @c NULL, on errors.
8111     *
8112     * This adds an item to the beginning of the gengrid.
8113     *
8114     * @see elm_gengrid_item_prepend()
8115     * @see elm_gengrid_item_insert_before()
8116     * @see elm_gengrid_item_insert_after()
8117     * @see elm_gengrid_item_del()
8118     *
8119     * @ingroup Gengrid
8120     */
8121    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);
8122
8123    /**
8124     * Prepend a new item in a given gengrid widget.
8125     *
8126     * @param obj The gengrid object.
8127     * @param gic The item class for the item.
8128     * @param data The item data.
8129     * @param func Convenience function called when the item is
8130     * selected.
8131     * @param func_data Data to be passed to @p func.
8132     * @return A handle to the item added or @c NULL, on errors.
8133     *
8134     * This adds an item to the end of the gengrid.
8135     *
8136     * @see elm_gengrid_item_append()
8137     * @see elm_gengrid_item_insert_before()
8138     * @see elm_gengrid_item_insert_after()
8139     * @see elm_gengrid_item_del()
8140     *
8141     * @ingroup Gengrid
8142     */
8143    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);
8144
8145    /**
8146     * Insert an item before another in a gengrid widget
8147     *
8148     * @param obj The gengrid object.
8149     * @param gic The item class for the item.
8150     * @param data The item data.
8151     * @param relative The item to place this new one before.
8152     * @param func Convenience function called when the item is
8153     * selected.
8154     * @param func_data Data to be passed to @p func.
8155     * @return A handle to the item added or @c NULL, on errors.
8156     *
8157     * This inserts an item before another in the gengrid.
8158     *
8159     * @see elm_gengrid_item_append()
8160     * @see elm_gengrid_item_prepend()
8161     * @see elm_gengrid_item_insert_after()
8162     * @see elm_gengrid_item_del()
8163     *
8164     * @ingroup Gengrid
8165     */
8166    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);
8167
8168    /**
8169     * Insert an item after another in a gengrid widget
8170     *
8171     * @param obj The gengrid object.
8172     * @param gic The item class for the item.
8173     * @param data The item data.
8174     * @param relative The item to place this new one after.
8175     * @param func Convenience function called when the item is
8176     * selected.
8177     * @param func_data Data to be passed to @p func.
8178     * @return A handle to the item added or @c NULL, on errors.
8179     *
8180     * This inserts an item after another in the gengrid.
8181     *
8182     * @see elm_gengrid_item_append()
8183     * @see elm_gengrid_item_prepend()
8184     * @see elm_gengrid_item_insert_after()
8185     * @see elm_gengrid_item_del()
8186     *
8187     * @ingroup Gengrid
8188     */
8189    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);
8190
8191    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);
8192
8193    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);
8194
8195    /**
8196     * Set whether items on a given gengrid widget are to get their
8197     * selection callbacks issued for @b every subsequent selection
8198     * click on them or just for the first click.
8199     *
8200     * @param obj The gengrid object
8201     * @param always_select @c EINA_TRUE to make items "always
8202     * selected", @c EINA_FALSE, otherwise
8203     *
8204     * By default, grid items will only call their selection callback
8205     * function when firstly getting selected, any subsequent further
8206     * clicks will do nothing. With this call, you make those
8207     * subsequent clicks also to issue the selection callbacks.
8208     *
8209     * @note <b>Double clicks</b> will @b always be reported on items.
8210     *
8211     * @see elm_gengrid_always_select_mode_get()
8212     *
8213     * @ingroup Gengrid
8214     */
8215    EAPI void               elm_gengrid_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
8216
8217    /**
8218     * Get whether items on a given gengrid widget have their selection
8219     * callbacks issued for @b every subsequent selection click on them
8220     * or just for the first click.
8221     *
8222     * @param obj The gengrid object.
8223     * @return @c EINA_TRUE if the gengrid items are "always selected",
8224     * @c EINA_FALSE, otherwise
8225     *
8226     * @see elm_gengrid_always_select_mode_set() for more details
8227     *
8228     * @ingroup Gengrid
8229     */
8230    EAPI Eina_Bool          elm_gengrid_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8231
8232    /**
8233     * Set whether items on a given gengrid widget can be selected or not.
8234     *
8235     * @param obj The gengrid object
8236     * @param no_select @c EINA_TRUE to make items selectable,
8237     * @c EINA_FALSE otherwise
8238     *
8239     * This will make items in @p obj selectable or not. In the latter
8240     * case, any user interaction on the gengrid items will neither make
8241     * them appear selected nor them call their selection callback
8242     * functions.
8243     *
8244     * @see elm_gengrid_no_select_mode_get()
8245     *
8246     * @ingroup Gengrid
8247     */
8248    EAPI void               elm_gengrid_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
8249
8250    /**
8251     * Get whether items on a given gengrid widget can be selected or
8252     * not.
8253     *
8254     * @param obj The gengrid object
8255     * @return @c EINA_TRUE, if items are selectable, @c EINA_FALSE
8256     * otherwise
8257     *
8258     * @see elm_gengrid_no_select_mode_set() for more details
8259     *
8260     * @ingroup Gengrid
8261     */
8262    EAPI Eina_Bool          elm_gengrid_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8263
8264    /**
8265     * Enable or disable multi-selection in a given gengrid widget
8266     *
8267     * @param obj The gengrid object.
8268     * @param multi @c EINA_TRUE, to enable multi-selection,
8269     * @c EINA_FALSE to disable it.
8270     *
8271     * Multi-selection is the ability for one to have @b more than one
8272     * item selected, on a given gengrid, simultaneously. When it is
8273     * enabled, a sequence of clicks on different items will make them
8274     * all selected, progressively. A click on an already selected item
8275     * will unselect it. If interecting via the keyboard,
8276     * multi-selection is enabled while holding the "Shift" key.
8277     *
8278     * @note By default, multi-selection is @b disabled on gengrids
8279     *
8280     * @see elm_gengrid_multi_select_get()
8281     *
8282     * @ingroup Gengrid
8283     */
8284    EAPI void               elm_gengrid_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
8285
8286    /**
8287     * Get whether multi-selection is enabled or disabled for a given
8288     * gengrid widget
8289     *
8290     * @param obj The gengrid object.
8291     * @return @c EINA_TRUE, if multi-selection is enabled, @c
8292     * EINA_FALSE otherwise
8293     *
8294     * @see elm_gengrid_multi_select_set() for more details
8295     *
8296     * @ingroup Gengrid
8297     */
8298    EAPI Eina_Bool          elm_gengrid_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8299
8300    /**
8301     * Enable or disable bouncing effect for a given gengrid widget
8302     *
8303     * @param obj The gengrid object
8304     * @param h_bounce @c EINA_TRUE, to enable @b horizontal bouncing,
8305     * @c EINA_FALSE to disable it
8306     * @param v_bounce @c EINA_TRUE, to enable @b vertical bouncing,
8307     * @c EINA_FALSE to disable it
8308     *
8309     * The bouncing effect occurs whenever one reaches the gengrid's
8310     * edge's while panning it -- it will scroll past its limits a
8311     * little bit and return to the edge again, in a animated for,
8312     * automatically.
8313     *
8314     * @note By default, gengrids have bouncing enabled on both axis
8315     *
8316     * @see elm_gengrid_bounce_get()
8317     *
8318     * @ingroup Gengrid
8319     */
8320    EAPI void               elm_gengrid_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
8321
8322    /**
8323     * Get whether bouncing effects are enabled or disabled, for a
8324     * given gengrid widget, on each axis
8325     *
8326     * @param obj The gengrid object
8327     * @param h_bounce Pointer to a variable where to store the
8328     * horizontal bouncing flag.
8329     * @param v_bounce Pointer to a variable where to store the
8330     * vertical bouncing flag.
8331     *
8332     * @see elm_gengrid_bounce_set() for more details
8333     *
8334     * @ingroup Gengrid
8335     */
8336    EAPI void               elm_gengrid_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
8337
8338    /**
8339     * Set a given gengrid widget's scrolling page size, relative to
8340     * its viewport size.
8341     *
8342     * @param obj The gengrid object
8343     * @param h_pagerel The horizontal page (relative) size
8344     * @param v_pagerel The vertical page (relative) size
8345     *
8346     * The gengrid's scroller is capable of binding scrolling by the
8347     * user to "pages". It means that, while scrolling and, specially
8348     * after releasing the mouse button, the grid will @b snap to the
8349     * nearest displaying page's area. When page sizes are set, the
8350     * grid's continuous content area is split into (equal) page sized
8351     * pieces.
8352     *
8353     * This function sets the size of a page <b>relatively to the
8354     * viewport dimensions</b> of the gengrid, for each axis. A value
8355     * @c 1.0 means "the exact viewport's size", in that axis, while @c
8356     * 0.0 turns paging off in that axis. Likewise, @c 0.5 means "half
8357     * a viewport". Sane usable values are, than, between @c 0.0 and @c
8358     * 1.0. Values beyond those will make it behave behave
8359     * inconsistently. If you only want one axis to snap to pages, use
8360     * the value @c 0.0 for the other one.
8361     *
8362     * There is a function setting page size values in @b absolute
8363     * values, too -- elm_gengrid_page_size_set(). Naturally, its use
8364     * is mutually exclusive to this one.
8365     *
8366     * @see elm_gengrid_page_relative_get()
8367     *
8368     * @ingroup Gengrid
8369     */
8370    EAPI void               elm_gengrid_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
8371
8372    /**
8373     * Get a given gengrid widget's scrolling page size, relative to
8374     * its viewport size.
8375     *
8376     * @param obj The gengrid object
8377     * @param h_pagerel Pointer to a variable where to store the
8378     * horizontal page (relative) size
8379     * @param v_pagerel Pointer to a variable where to store the
8380     * vertical page (relative) size
8381     *
8382     * @see elm_gengrid_page_relative_set() for more details
8383     *
8384     * @ingroup Gengrid
8385     */
8386    EAPI void               elm_gengrid_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel) EINA_ARG_NONNULL(1);
8387
8388    /**
8389     * Set a given gengrid widget's scrolling page size
8390     *
8391     * @param obj The gengrid object
8392     * @param h_pagerel The horizontal page size, in pixels
8393     * @param v_pagerel The vertical page size, in pixels
8394     *
8395     * The gengrid's scroller is capable of binding scrolling by the
8396     * user to "pages". It means that, while scrolling and, specially
8397     * after releasing the mouse button, the grid will @b snap to the
8398     * nearest displaying page's area. When page sizes are set, the
8399     * grid's continuous content area is split into (equal) page sized
8400     * pieces.
8401     *
8402     * This function sets the size of a page of the gengrid, in pixels,
8403     * for each axis. Sane usable values are, between @c 0 and the
8404     * dimensions of @p obj, for each axis. Values beyond those will
8405     * make it behave behave inconsistently. If you only want one axis
8406     * to snap to pages, use the value @c 0 for the other one.
8407     *
8408     * There is a function setting page size values in @b relative
8409     * values, too -- elm_gengrid_page_relative_set(). Naturally, its
8410     * use is mutually exclusive to this one.
8411     *
8412     * @ingroup Gengrid
8413     */
8414    EAPI void               elm_gengrid_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
8415
8416    /**
8417     * Set for what direction a given gengrid widget will expand while
8418     * placing its items.
8419     *
8420     * @param obj The gengrid object.
8421     * @param setting @c EINA_TRUE to make the gengrid expand
8422     * horizontally, @c EINA_FALSE to expand vertically.
8423     *
8424     * When in "horizontal mode" (@c EINA_TRUE), items will be placed
8425     * in @b columns, from top to bottom and, when the space for a
8426     * column is filled, another one is started on the right, thus
8427     * expanding the grid horizontally. When in "vertical mode"
8428     * (@c EINA_FALSE), though, items will be placed in @b rows, from left
8429     * to right and, when the space for a row is filled, another one is
8430     * started below, thus expanding the grid vertically.
8431     *
8432     * @see elm_gengrid_horizontal_get()
8433     *
8434     * @ingroup Gengrid
8435     */
8436    EAPI void               elm_gengrid_horizontal_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
8437
8438    /**
8439     * Get for what direction a given gengrid widget will expand while
8440     * placing its items.
8441     *
8442     * @param obj The gengrid object.
8443     * @return @c EINA_TRUE, if @p obj is set to expand horizontally,
8444     * @c EINA_FALSE if it's set to expand vertically.
8445     *
8446     * @see elm_gengrid_horizontal_set() for more detais
8447     *
8448     * @ingroup Gengrid
8449     */
8450    EAPI Eina_Bool          elm_gengrid_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8451
8452    /**
8453     * Get the first item in a given gengrid widget
8454     *
8455     * @param obj The gengrid object
8456     * @return The first item's handle or @c NULL, if there are no
8457     * items in @p obj (and on errors)
8458     *
8459     * This returns the first item in the @p obj's internal list of
8460     * items.
8461     *
8462     * @see elm_gengrid_last_item_get()
8463     *
8464     * @ingroup Gengrid
8465     */
8466    EAPI Elm_Gengrid_Item  *elm_gengrid_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8467
8468    /**
8469     * Get the last item in a given gengrid widget
8470     *
8471     * @param obj The gengrid object
8472     * @return The last item's handle or @c NULL, if there are no
8473     * items in @p obj (and on errors)
8474     *
8475     * This returns the last item in the @p obj's internal list of
8476     * items.
8477     *
8478     * @see elm_gengrid_first_item_get()
8479     *
8480     * @ingroup Gengrid
8481     */
8482    EAPI Elm_Gengrid_Item  *elm_gengrid_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8483
8484    /**
8485     * Get the @b next item in a gengrid widget's internal list of items,
8486     * given a handle to one of those items.
8487     *
8488     * @param item The gengrid item to fetch next from
8489     * @return The item after @p item, or @c NULL if there's none (and
8490     * on errors)
8491     *
8492     * This returns the item placed after the @p item, on the container
8493     * gengrid.
8494     *
8495     * @see elm_gengrid_item_prev_get()
8496     *
8497     * @ingroup Gengrid
8498     */
8499    EAPI Elm_Gengrid_Item  *elm_gengrid_item_next_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8500
8501    /**
8502     * Get the @b previous item in a gengrid widget's internal list of items,
8503     * given a handle to one of those items.
8504     *
8505     * @param item The gengrid item to fetch previous from
8506     * @return The item before @p item, or @c NULL if there's none (and
8507     * on errors)
8508     *
8509     * This returns the item placed before the @p item, on the container
8510     * gengrid.
8511     *
8512     * @see elm_gengrid_item_next_get()
8513     *
8514     * @ingroup Gengrid
8515     */
8516    EAPI Elm_Gengrid_Item  *elm_gengrid_item_prev_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8517
8518    /**
8519     * Get the gengrid object's handle which contains a given gengrid
8520     * item
8521     *
8522     * @param item The item to fetch the container from
8523     * @return The gengrid (parent) object
8524     *
8525     * This returns the gengrid object itself that an item belongs to.
8526     *
8527     * @ingroup Gengrid
8528     */
8529    EAPI Evas_Object       *elm_gengrid_item_gengrid_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8530
8531    /**
8532     * Remove a gengrid item from the its parent, deleting it.
8533     *
8534     * @param item The item to be removed.
8535     * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
8536     *
8537     * @see elm_gengrid_clear(), to remove all items in a gengrid at
8538     * once.
8539     *
8540     * @ingroup Gengrid
8541     */
8542    EAPI void               elm_gengrid_item_del(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8543
8544    /**
8545     * Update the contents of a given gengrid item
8546     *
8547     * @param item The gengrid item
8548     *
8549     * This updates an item by calling all the item class functions
8550     * again to get the icons, labels and states. Use this when the
8551     * original item data has changed and you want thta changes to be
8552     * reflected.
8553     *
8554     * @ingroup Gengrid
8555     */
8556    EAPI void               elm_gengrid_item_update(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8557    EAPI const Elm_Gengrid_Item_Class *elm_gengrid_item_item_class_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8558    EAPI void               elm_gengrid_item_item_class_set(Elm_Gengrid_Item *item, const Elm_Gengrid_Item_Class *gic) EINA_ARG_NONNULL(1, 2);
8559
8560    /**
8561     * Return the data associated to a given gengrid item
8562     *
8563     * @param item The gengrid item.
8564     * @return the data associated to this item.
8565     *
8566     * This returns the @c data value passed on the
8567     * elm_gengrid_item_append() and related item addition calls.
8568     *
8569     * @see elm_gengrid_item_append()
8570     * @see elm_gengrid_item_data_set()
8571     *
8572     * @ingroup Gengrid
8573     */
8574    EAPI void              *elm_gengrid_item_data_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8575
8576    /**
8577     * Set the data associated to a given gengrid item
8578     *
8579     * @param item The gengrid item
8580     * @param data The new data pointer to set on it
8581     *
8582     * This @b overrides the @c data value passed on the
8583     * elm_gengrid_item_append() and related item addition calls. This
8584     * function @b won't call elm_gengrid_item_update() automatically,
8585     * so you'd issue it afterwards if you want to hove the item
8586     * updated to reflect the that new data.
8587     *
8588     * @see elm_gengrid_item_data_get()
8589     *
8590     * @ingroup Gengrid
8591     */
8592    EAPI void               elm_gengrid_item_data_set(Elm_Gengrid_Item *item, const void *data) EINA_ARG_NONNULL(1);
8593
8594    /**
8595     * Get a given gengrid item's position, relative to the whole
8596     * gengrid's grid area.
8597     *
8598     * @param item The Gengrid item.
8599     * @param x Pointer to variable where to store the item's <b>row
8600     * number</b>.
8601     * @param y Pointer to variable where to store the item's <b>column
8602     * number</b>.
8603     *
8604     * This returns the "logical" position of the item whithin the
8605     * gengrid. For example, @c (0, 1) would stand for first row,
8606     * second column.
8607     *
8608     * @ingroup Gengrid
8609     */
8610    EAPI void               elm_gengrid_item_pos_get(const Elm_Gengrid_Item *item, unsigned int *x, unsigned int *y) EINA_ARG_NONNULL(1);
8611
8612    /**
8613     * Set whether a given gengrid item is selected or not
8614     *
8615     * @param item The gengrid item
8616     * @param selected Use @c EINA_TRUE, to make it selected, @c
8617     * EINA_FALSE to make it unselected
8618     *
8619     * This sets the selected state of an item. If multi selection is
8620     * not enabled on the containing gengrid and @p selected is @c
8621     * EINA_TRUE, any other previously selected items will get
8622     * unselected in favor of this new one.
8623     *
8624     * @see elm_gengrid_item_selected_get()
8625     *
8626     * @ingroup Gengrid
8627     */
8628    EAPI void               elm_gengrid_item_selected_set(Elm_Gengrid_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
8629
8630    /**
8631     * Get whether a given gengrid item is selected or not
8632     *
8633     * @param item The gengrid item
8634     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
8635     *
8636     * @see elm_gengrid_item_selected_set() for more details
8637     *
8638     * @ingroup Gengrid
8639     */
8640    EAPI Eina_Bool          elm_gengrid_item_selected_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8641
8642    /**
8643     * Get the real Evas object created to implement the view of a
8644     * given gengrid item
8645     *
8646     * @param item The gengrid item.
8647     * @return the Evas object implementing this item's view.
8648     *
8649     * This returns the actual Evas object used to implement the
8650     * specified gengrid item's view. This may be @c NULL, as it may
8651     * not have been created or may have been deleted, at any time, by
8652     * the gengrid. <b>Do not modify this object</b> (move, resize,
8653     * show, hide, etc.), as the gengrid is controlling it. This
8654     * function is for querying, emitting custom signals or hooking
8655     * lower level callbacks for events on that object. Do not delete
8656     * this object under any circumstances.
8657     *
8658     * @see elm_gengrid_item_data_get()
8659     *
8660     * @ingroup Gengrid
8661     */
8662    EAPI const Evas_Object *elm_gengrid_item_object_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8663
8664    /**
8665     * Show the portion of a gengrid's internal grid containing a given
8666     * item, @b immediately.
8667     *
8668     * @param item The item to display
8669     *
8670     * This causes gengrid to @b redraw its viewport's contents to the
8671     * region contining the given @p item item, if it is not fully
8672     * visible.
8673     *
8674     * @see elm_gengrid_item_bring_in()
8675     *
8676     * @ingroup Gengrid
8677     */
8678    EAPI void               elm_gengrid_item_show(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8679
8680    /**
8681     * Animatedly bring in, to the visible are of a gengrid, a given
8682     * item on it.
8683     *
8684     * @param item The gengrid item to display
8685     *
8686     * This causes gengrig to jump to the given @p item item and show
8687     * it (by scrolling), if it is not fully visible. This will use
8688     * animation to do so and take a period of time to complete.
8689     *
8690     * @see elm_gengrid_item_show()
8691     *
8692     * @ingroup Gengrid
8693     */
8694    EAPI void               elm_gengrid_item_bring_in(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8695
8696    /**
8697     * Set whether a given gengrid item is disabled or not.
8698     *
8699     * @param item The gengrid item
8700     * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
8701     * to enable it back.
8702     *
8703     * A disabled item cannot be selected or unselected. It will also
8704     * change its appearance, to signal the user it's disabled.
8705     *
8706     * @see elm_gengrid_item_disabled_get()
8707     *
8708     * @ingroup Gengrid
8709     */
8710    EAPI void               elm_gengrid_item_disabled_set(Elm_Gengrid_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
8711
8712    /**
8713     * Get whether a given gengrid item is disabled or not.
8714     *
8715     * @param item The gengrid item
8716     * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
8717     * (and on errors).
8718     *
8719     * @see elm_gengrid_item_disabled_set() for more details
8720     *
8721     * @ingroup Gengrid
8722     */
8723    EAPI Eina_Bool          elm_gengrid_item_disabled_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8724
8725    /**
8726     * Set the text to be shown in a given gengrid item's tooltips.
8727     *
8728     * @param item The gengrid item
8729     * @param text The text to set in the content
8730     *
8731     * This call will setup the text to be used as tooltip to that item
8732     * (analogous to elm_object_tooltip_text_set(), but being item
8733     * tooltips with higher precedence than object tooltips). It can
8734     * have only one tooltip at a time, so any previous tooltip data
8735     * will get removed.
8736     *
8737     * @ingroup Gengrid
8738     */
8739    EAPI void               elm_gengrid_item_tooltip_text_set(Elm_Gengrid_Item *item, const char *text) EINA_ARG_NONNULL(1);
8740
8741    /**
8742     * Set the content to be shown in a given gengrid item's tooltips
8743     *
8744     * @param item The gengrid item.
8745     * @param func The function returning the tooltip contents.
8746     * @param data What to provide to @a func as callback data/context.
8747     * @param del_cb Called when data is not needed anymore, either when
8748     *        another callback replaces @p func, the tooltip is unset with
8749     *        elm_gengrid_item_tooltip_unset() or the owner @p item
8750     *        dies. This callback receives as its first parameter the
8751     *        given @p data, being @c event_info the item handle.
8752     *
8753     * This call will setup the tooltip's contents to @p item
8754     * (analogous to elm_object_tooltip_content_cb_set(), but being
8755     * item tooltips with higher precedence than object tooltips). It
8756     * can have only one tooltip at a time, so any previous tooltip
8757     * content will get removed. @p func (with @p data) will be called
8758     * every time Elementary needs to show the tooltip and it should
8759     * return a valid Evas object, which will be fully managed by the
8760     * tooltip system, getting deleted when the tooltip is gone.
8761     *
8762     * @ingroup Gengrid
8763     */
8764    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);
8765
8766    /**
8767     * Unset a tooltip from a given gengrid item
8768     *
8769     * @param item gengrid item to remove a previously set tooltip from.
8770     *
8771     * This call removes any tooltip set on @p item. The callback
8772     * provided as @c del_cb to
8773     * elm_gengrid_item_tooltip_content_cb_set() will be called to
8774     * notify it is not used anymore (and have resources cleaned, if
8775     * need be).
8776     *
8777     * @see elm_gengrid_item_tooltip_content_cb_set()
8778     *
8779     * @ingroup Gengrid
8780     */
8781    EAPI void               elm_gengrid_item_tooltip_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8782
8783    /**
8784     * Set a different @b style for a given gengrid item's tooltip.
8785     *
8786     * @param item gengrid item with tooltip set
8787     * @param style the <b>theme style</b> to use on tooltips (e.g. @c
8788     * "default", @c "transparent", etc)
8789     *
8790     * Tooltips can have <b>alternate styles</b> to be displayed on,
8791     * which are defined by the theme set on Elementary. This function
8792     * works analogously as elm_object_tooltip_style_set(), but here
8793     * applied only to gengrid item objects. The default style for
8794     * tooltips is @c "default".
8795     *
8796     * @note before you set a style you should define a tooltip with
8797     *       elm_gengrid_item_tooltip_content_cb_set() or
8798     *       elm_gengrid_item_tooltip_text_set()
8799     *
8800     * @see elm_gengrid_item_tooltip_style_get()
8801     *
8802     * @ingroup Gengrid
8803     */
8804    EAPI void               elm_gengrid_item_tooltip_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
8805
8806    /**
8807     * Get the style set a given gengrid item's tooltip.
8808     *
8809     * @param item gengrid item with tooltip already set on.
8810     * @return style the theme style in use, which defaults to
8811     *         "default". If the object does not have a tooltip set,
8812     *         then @c NULL is returned.
8813     *
8814     * @see elm_gengrid_item_tooltip_style_set() for more details
8815     *
8816     * @ingroup Gengrid
8817     */
8818    EAPI const char        *elm_gengrid_item_tooltip_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8819    /**
8820     * @brief Disable size restrictions on an object's tooltip
8821     * @param item The tooltip's anchor object
8822     * @param disable If EINA_TRUE, size restrictions are disabled
8823     * @return EINA_FALSE on failure, EINA_TRUE on success
8824     *
8825     * This function allows a tooltip to expand beyond its parant window's canvas.
8826     * It will instead be limited only by the size of the display.
8827     */
8828    EAPI Eina_Bool          elm_gengrid_item_tooltip_size_restrict_disable(Elm_Gengrid_Item *item, Eina_Bool disable);
8829    /**
8830     * @brief Retrieve size restriction state of an object's tooltip
8831     * @param item The tooltip's anchor object
8832     * @return If EINA_TRUE, size restrictions are disabled
8833     *
8834     * This function returns whether a tooltip is allowed to expand beyond
8835     * its parant window's canvas.
8836     * It will instead be limited only by the size of the display.
8837     */
8838    EAPI Eina_Bool          elm_gengrid_item_tooltip_size_restrict_disabled_get(const Elm_Gengrid_Item *item);
8839    /**
8840     * Set the type of mouse pointer/cursor decoration to be shown,
8841     * when the mouse pointer is over the given gengrid widget item
8842     *
8843     * @param item gengrid item to customize cursor on
8844     * @param cursor the cursor type's name
8845     *
8846     * This function works analogously as elm_object_cursor_set(), but
8847     * here the cursor's changing area is restricted to the item's
8848     * area, and not the whole widget's. Note that that item cursors
8849     * have precedence over widget cursors, so that a mouse over @p
8850     * item will always show cursor @p type.
8851     *
8852     * If this function is called twice for an object, a previously set
8853     * cursor will be unset on the second call.
8854     *
8855     * @see elm_object_cursor_set()
8856     * @see elm_gengrid_item_cursor_get()
8857     * @see elm_gengrid_item_cursor_unset()
8858     *
8859     * @ingroup Gengrid
8860     */
8861    EAPI void               elm_gengrid_item_cursor_set(Elm_Gengrid_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
8862
8863    /**
8864     * Get the type of mouse pointer/cursor decoration set to be shown,
8865     * when the mouse pointer is over the given gengrid widget item
8866     *
8867     * @param item gengrid item with custom cursor set
8868     * @return the cursor type's name or @c NULL, if no custom cursors
8869     * were set to @p item (and on errors)
8870     *
8871     * @see elm_object_cursor_get()
8872     * @see elm_gengrid_item_cursor_set() for more details
8873     * @see elm_gengrid_item_cursor_unset()
8874     *
8875     * @ingroup Gengrid
8876     */
8877    EAPI const char        *elm_gengrid_item_cursor_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8878
8879    /**
8880     * Unset any custom mouse pointer/cursor decoration set to be
8881     * shown, when the mouse pointer is over the given gengrid widget
8882     * item, thus making it show the @b default cursor again.
8883     *
8884     * @param item a gengrid item
8885     *
8886     * Use this call to undo any custom settings on this item's cursor
8887     * decoration, bringing it back to defaults (no custom style set).
8888     *
8889     * @see elm_object_cursor_unset()
8890     * @see elm_gengrid_item_cursor_set() for more details
8891     *
8892     * @ingroup Gengrid
8893     */
8894    EAPI void               elm_gengrid_item_cursor_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8895
8896    /**
8897     * Set a different @b style for a given custom cursor set for a
8898     * gengrid item.
8899     *
8900     * @param item gengrid item with custom cursor set
8901     * @param style the <b>theme style</b> to use (e.g. @c "default",
8902     * @c "transparent", etc)
8903     *
8904     * This function only makes sense when one is using custom mouse
8905     * cursor decorations <b>defined in a theme file</b> , which can
8906     * have, given a cursor name/type, <b>alternate styles</b> on
8907     * it. It works analogously as elm_object_cursor_style_set(), but
8908     * here applied only to gengrid item objects.
8909     *
8910     * @warning Before you set a cursor style you should have defined a
8911     *       custom cursor previously on the item, with
8912     *       elm_gengrid_item_cursor_set()
8913     *
8914     * @see elm_gengrid_item_cursor_engine_only_set()
8915     * @see elm_gengrid_item_cursor_style_get()
8916     *
8917     * @ingroup Gengrid
8918     */
8919    EAPI void               elm_gengrid_item_cursor_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
8920
8921    /**
8922     * Get the current @b style set for a given gengrid item's custom
8923     * cursor
8924     *
8925     * @param item gengrid item with custom cursor set.
8926     * @return style the cursor style in use. If the object does not
8927     *         have a cursor set, then @c NULL is returned.
8928     *
8929     * @see elm_gengrid_item_cursor_style_set() for more details
8930     *
8931     * @ingroup Gengrid
8932     */
8933    EAPI const char        *elm_gengrid_item_cursor_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8934
8935    /**
8936     * Set if the (custom) cursor for a given gengrid item should be
8937     * searched in its theme, also, or should only rely on the
8938     * rendering engine.
8939     *
8940     * @param item item with custom (custom) cursor already set on
8941     * @param engine_only Use @c EINA_TRUE to have cursors looked for
8942     * only on those provided by the rendering engine, @c EINA_FALSE to
8943     * have them searched on the widget's theme, as well.
8944     *
8945     * @note This call is of use only if you've set a custom cursor
8946     * for gengrid items, with elm_gengrid_item_cursor_set().
8947     *
8948     * @note By default, cursors will only be looked for between those
8949     * provided by the rendering engine.
8950     *
8951     * @ingroup Gengrid
8952     */
8953    EAPI void               elm_gengrid_item_cursor_engine_only_set(Elm_Gengrid_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
8954
8955    /**
8956     * Get if the (custom) cursor for a given gengrid item is being
8957     * searched in its theme, also, or is only relying on the rendering
8958     * engine.
8959     *
8960     * @param item a gengrid item
8961     * @return @c EINA_TRUE, if cursors are being looked for only on
8962     * those provided by the rendering engine, @c EINA_FALSE if they
8963     * are being searched on the widget's theme, as well.
8964     *
8965     * @see elm_gengrid_item_cursor_engine_only_set(), for more details
8966     *
8967     * @ingroup Gengrid
8968     */
8969    EAPI Eina_Bool          elm_gengrid_item_cursor_engine_only_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8970
8971    /**
8972     * Remove all items from a given gengrid widget
8973     *
8974     * @param obj The gengrid object.
8975     *
8976     * This removes (and deletes) all items in @p obj, leaving it
8977     * empty.
8978     *
8979     * @see elm_gengrid_item_del(), to remove just one item.
8980     *
8981     * @ingroup Gengrid
8982     */
8983    EAPI void               elm_gengrid_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
8984
8985    /**
8986     * Get the selected item in a given gengrid widget
8987     *
8988     * @param obj The gengrid object.
8989     * @return The selected item's handleor @c NULL, if none is
8990     * selected at the moment (and on errors)
8991     *
8992     * This returns the selected item in @p obj. If multi selection is
8993     * enabled on @p obj (@see elm_gengrid_multi_select_set()), only
8994     * the first item in the list is selected, which might not be very
8995     * useful. For that case, see elm_gengrid_selected_items_get().
8996     *
8997     * @ingroup Gengrid
8998     */
8999    EAPI Elm_Gengrid_Item  *elm_gengrid_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9000
9001    /**
9002     * Get <b>a list</b> of selected items in a given gengrid
9003     *
9004     * @param obj The gengrid object.
9005     * @return The list of selected items or @c NULL, if none is
9006     * selected at the moment (and on errors)
9007     *
9008     * This returns a list of the selected items, in the order that
9009     * they appear in the grid. This list is only valid as long as no
9010     * more items are selected or unselected (or unselected implictly
9011     * by deletion). The list contains #Elm_Gengrid_Item pointers as
9012     * data, naturally.
9013     *
9014     * @see elm_gengrid_selected_item_get()
9015     *
9016     * @ingroup Gengrid
9017     */
9018    EAPI const Eina_List   *elm_gengrid_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9019
9020    /**
9021     * @}
9022     */
9023
9024    /**
9025     * @defgroup Clock Clock
9026     *
9027     * @image html img/widget/clock/preview-00.png
9028     * @image latex img/widget/clock/preview-00.eps
9029     *
9030     * This is a @b digital clock widget. In its default theme, it has a
9031     * vintage "flipping numbers clock" appearance, which will animate
9032     * sheets of individual algarisms individually as time goes by.
9033     *
9034     * A newly created clock will fetch system's time (already
9035     * considering local time adjustments) to start with, and will tick
9036     * accondingly. It may or may not show seconds.
9037     *
9038     * Clocks have an @b edition mode. When in it, the sheets will
9039     * display extra arrow indications on the top and bottom and the
9040     * user may click on them to raise or lower the time values. After
9041     * it's told to exit edition mode, it will keep ticking with that
9042     * new time set (it keeps the difference from local time).
9043     *
9044     * Also, when under edition mode, user clicks on the cited arrows
9045     * which are @b held for some time will make the clock to flip the
9046     * sheet, thus editing the time, continuosly and automatically for
9047     * the user. The interval between sheet flips will keep growing in
9048     * time, so that it helps the user to reach a time which is distant
9049     * from the one set.
9050     *
9051     * The time display is, by default, in military mode (24h), but an
9052     * am/pm indicator may be optionally shown, too, when it will
9053     * switch to 12h.
9054     *
9055     * Smart callbacks one can register to:
9056     * - "changed" - the clock's user changed the time
9057     *
9058     * Here is an example on its usage:
9059     * @li @ref clock_example
9060     */
9061
9062    /**
9063     * @addtogroup Clock
9064     * @{
9065     */
9066
9067    /**
9068     * Identifiers for which clock digits should be editable, when a
9069     * clock widget is in edition mode. Values may be ORed together to
9070     * make a mask, naturally.
9071     *
9072     * @see elm_clock_edit_set()
9073     * @see elm_clock_digit_edit_set()
9074     */
9075    typedef enum _Elm_Clock_Digedit
9076      {
9077         ELM_CLOCK_NONE         = 0, /**< Default value. Means that all digits are editable, when in edition mode. */
9078         ELM_CLOCK_HOUR_DECIMAL = 1 << 0, /**< Decimal algarism of hours value should be editable */
9079         ELM_CLOCK_HOUR_UNIT    = 1 << 1, /**< Unit algarism of hours value should be editable */
9080         ELM_CLOCK_MIN_DECIMAL  = 1 << 2, /**< Decimal algarism of minutes value should be editable */
9081         ELM_CLOCK_MIN_UNIT     = 1 << 3, /**< Unit algarism of minutes value should be editable */
9082         ELM_CLOCK_SEC_DECIMAL  = 1 << 4, /**< Decimal algarism of seconds value should be editable */
9083         ELM_CLOCK_SEC_UNIT     = 1 << 5, /**< Unit algarism of seconds value should be editable */
9084         ELM_CLOCK_ALL          = (1 << 6) - 1 /**< All digits should be editable */
9085      } Elm_Clock_Digedit;
9086
9087    /**
9088     * Add a new clock widget to the given parent Elementary
9089     * (container) object
9090     *
9091     * @param parent The parent object
9092     * @return a new clock widget handle or @c NULL, on errors
9093     *
9094     * This function inserts a new clock widget on the canvas.
9095     *
9096     * @ingroup Clock
9097     */
9098    EAPI Evas_Object      *elm_clock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9099
9100    /**
9101     * Set a clock widget's time, programmatically
9102     *
9103     * @param obj The clock widget object
9104     * @param hrs The hours to set
9105     * @param min The minutes to set
9106     * @param sec The secondes to set
9107     *
9108     * This function updates the time that is showed by the clock
9109     * widget.
9110     *
9111     *  Values @b must be set within the following ranges:
9112     * - 0 - 23, for hours
9113     * - 0 - 59, for minutes
9114     * - 0 - 59, for seconds,
9115     *
9116     * even if the clock is not in "military" mode.
9117     *
9118     * @warning The behavior for values set out of those ranges is @b
9119     * indefined.
9120     *
9121     * @ingroup Clock
9122     */
9123    EAPI void              elm_clock_time_set(Evas_Object *obj, int hrs, int min, int sec) EINA_ARG_NONNULL(1);
9124
9125    /**
9126     * Get a clock widget's time values
9127     *
9128     * @param obj The clock object
9129     * @param[out] hrs Pointer to the variable to get the hours value
9130     * @param[out] min Pointer to the variable to get the minutes value
9131     * @param[out] sec Pointer to the variable to get the seconds value
9132     *
9133     * This function gets the time set for @p obj, returning
9134     * it on the variables passed as the arguments to function
9135     *
9136     * @note Use @c NULL pointers on the time values you're not
9137     * interested in: they'll be ignored by the function.
9138     *
9139     * @ingroup Clock
9140     */
9141    EAPI void              elm_clock_time_get(const Evas_Object *obj, int *hrs, int *min, int *sec) EINA_ARG_NONNULL(1);
9142
9143    /**
9144     * Set whether a given clock widget is under <b>edition mode</b> or
9145     * under (default) displaying-only mode.
9146     *
9147     * @param obj The clock object
9148     * @param edit @c EINA_TRUE to put it in edition, @c EINA_FALSE to
9149     * put it back to "displaying only" mode
9150     *
9151     * This function makes a clock's time to be editable or not <b>by
9152     * user interaction</b>. When in edition mode, clocks @b stop
9153     * ticking, until one brings them back to canonical mode. The
9154     * elm_clock_digit_edit_set() function will influence which digits
9155     * of the clock will be editable. By default, all of them will be
9156     * (#ELM_CLOCK_NONE).
9157     *
9158     * @note am/pm sheets, if being shown, will @b always be editable
9159     * under edition mode.
9160     *
9161     * @see elm_clock_edit_get()
9162     *
9163     * @ingroup Clock
9164     */
9165    EAPI void              elm_clock_edit_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
9166
9167    /**
9168     * Retrieve whether a given clock widget is under <b>edition
9169     * mode</b> or under (default) displaying-only mode.
9170     *
9171     * @param obj The clock object
9172     * @param edit @c EINA_TRUE, if it's in edition mode, @c EINA_FALSE
9173     * otherwise
9174     *
9175     * This function retrieves whether the clock's time can be edited
9176     * or not by user interaction.
9177     *
9178     * @see elm_clock_edit_set() for more details
9179     *
9180     * @ingroup Clock
9181     */
9182    EAPI Eina_Bool         elm_clock_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9183
9184    /**
9185     * Set what digits of the given clock widget should be editable
9186     * when in edition mode.
9187     *
9188     * @param obj The clock object
9189     * @param digedit Bit mask indicating the digits to be editable
9190     * (values in #Elm_Clock_Digedit).
9191     *
9192     * If the @p digedit param is #ELM_CLOCK_NONE, editing will be
9193     * disabled on @p obj (same effect as elm_clock_edit_set(), with @c
9194     * EINA_FALSE).
9195     *
9196     * @see elm_clock_digit_edit_get()
9197     *
9198     * @ingroup Clock
9199     */
9200    EAPI void              elm_clock_digit_edit_set(Evas_Object *obj, Elm_Clock_Digedit digedit) EINA_ARG_NONNULL(1);
9201
9202    /**
9203     * Retrieve what digits of the given clock widget should be
9204     * editable when in edition mode.
9205     *
9206     * @param obj The clock object
9207     * @return Bit mask indicating the digits to be editable
9208     * (values in #Elm_Clock_Digedit).
9209     *
9210     * @see elm_clock_digit_edit_set() for more details
9211     *
9212     * @ingroup Clock
9213     */
9214    EAPI Elm_Clock_Digedit elm_clock_digit_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9215
9216    /**
9217     * Set if the given clock widget must show hours in military or
9218     * am/pm mode
9219     *
9220     * @param obj The clock object
9221     * @param am_pm @c EINA_TRUE to put it in am/pm mode, @c EINA_FALSE
9222     * to military mode
9223     *
9224     * This function sets if the clock must show hours in military or
9225     * am/pm mode. In some countries like Brazil the military mode
9226     * (00-24h-format) is used, in opposition to the USA, where the
9227     * am/pm mode is more commonly used.
9228     *
9229     * @see elm_clock_show_am_pm_get()
9230     *
9231     * @ingroup Clock
9232     */
9233    EAPI void              elm_clock_show_am_pm_set(Evas_Object *obj, Eina_Bool am_pm) EINA_ARG_NONNULL(1);
9234
9235    /**
9236     * Get if the given clock widget shows hours in military or am/pm
9237     * mode
9238     *
9239     * @param obj The clock object
9240     * @return @c EINA_TRUE, if in am/pm mode, @c EINA_FALSE if in
9241     * military
9242     *
9243     * This function gets if the clock shows hours in military or am/pm
9244     * mode.
9245     *
9246     * @see elm_clock_show_am_pm_set() for more details
9247     *
9248     * @ingroup Clock
9249     */
9250    EAPI Eina_Bool         elm_clock_show_am_pm_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9251
9252    /**
9253     * Set if the given clock widget must show time with seconds or not
9254     *
9255     * @param obj The clock object
9256     * @param seconds @c EINA_TRUE to show seconds, @c EINA_FALSE otherwise
9257     *
9258     * This function sets if the given clock must show or not elapsed
9259     * seconds. By default, they are @b not shown.
9260     *
9261     * @see elm_clock_show_seconds_get()
9262     *
9263     * @ingroup Clock
9264     */
9265    EAPI void              elm_clock_show_seconds_set(Evas_Object *obj, Eina_Bool seconds) EINA_ARG_NONNULL(1);
9266
9267    /**
9268     * Get whether the given clock widget is showing time with seconds
9269     * or not
9270     *
9271     * @param obj The clock object
9272     * @return @c EINA_TRUE if it's showing seconds, @c EINA_FALSE otherwise
9273     *
9274     * This function gets whether @p obj is showing or not the elapsed
9275     * seconds.
9276     *
9277     * @see elm_clock_show_seconds_set()
9278     *
9279     * @ingroup Clock
9280     */
9281    EAPI Eina_Bool         elm_clock_show_seconds_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9282
9283    /**
9284     * Set the interval on time updates for an user mouse button hold
9285     * on clock widgets' time edition.
9286     *
9287     * @param obj The clock object
9288     * @param interval The (first) interval value in seconds
9289     *
9290     * This interval value is @b decreased while the user holds the
9291     * mouse pointer either incrementing or decrementing a given the
9292     * clock digit's value.
9293     *
9294     * This helps the user to get to a given time distant from the
9295     * current one easier/faster, as it will start to flip quicker and
9296     * quicker on mouse button holds.
9297     *
9298     * The calculation for the next flip interval value, starting from
9299     * the one set with this call, is the previous interval divided by
9300     * 1.05, so it decreases a little bit.
9301     *
9302     * The default starting interval value for automatic flips is
9303     * @b 0.85 seconds.
9304     *
9305     * @see elm_clock_interval_get()
9306     *
9307     * @ingroup Clock
9308     */
9309    EAPI void              elm_clock_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
9310
9311    /**
9312     * Get the interval on time updates for an user mouse button hold
9313     * on clock widgets' time edition.
9314     *
9315     * @param obj The clock object
9316     * @return The (first) interval value, in seconds, set on it
9317     *
9318     * @see elm_clock_interval_set() for more details
9319     *
9320     * @ingroup Clock
9321     */
9322    EAPI double            elm_clock_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9323
9324    /**
9325     * @}
9326     */
9327
9328    /**
9329     * @defgroup Layout Layout
9330     *
9331     * @image html img/widget/layout/preview-00.png
9332     * @image latex img/widget/layout/preview-00.eps width=\textwidth
9333     *
9334     * @image html img/layout-predefined.png
9335     * @image latex img/layout-predefined.eps width=\textwidth
9336     *
9337     * This is a container widget that takes a standard Edje design file and
9338     * wraps it very thinly in a widget.
9339     *
9340     * An Edje design (theme) file has a very wide range of possibilities to
9341     * describe the behavior of elements added to the Layout. Check out the Edje
9342     * documentation and the EDC reference to get more information about what can
9343     * be done with Edje.
9344     *
9345     * Just like @ref List, @ref Box, and other container widgets, any
9346     * object added to the Layout will become its child, meaning that it will be
9347     * deleted if the Layout is deleted, move if the Layout is moved, and so on.
9348     *
9349     * The Layout widget can contain as many Contents, Boxes or Tables as
9350     * described in its theme file. For instance, objects can be added to
9351     * different Tables by specifying the respective Table part names. The same
9352     * is valid for Content and Box.
9353     *
9354     * The objects added as child of the Layout will behave as described in the
9355     * part description where they were added. There are 3 possible types of
9356     * parts where a child can be added:
9357     *
9358     * @section secContent Content (SWALLOW part)
9359     *
9360     * Only one object can be added to the @c SWALLOW part (but you still can
9361     * have many @c SWALLOW parts and one object on each of them). Use the @c
9362     * elm_layout_content_* set of functions to set, retrieve and unset objects
9363     * as content of the @c SWALLOW. After being set to this part, the object
9364     * size, position, visibility, clipping and other description properties
9365     * will be totally controled by the description of the given part (inside
9366     * the Edje theme file).
9367     *
9368     * One can use @c evas_object_size_hint_* functions on the child to have some
9369     * kind of control over its behavior, but the resulting behavior will still
9370     * depend heavily on the @c SWALLOW part description.
9371     *
9372     * The Edje theme also can change the part description, based on signals or
9373     * scripts running inside the theme. This change can also be animated. All of
9374     * this will affect the child object set as content accordingly. The object
9375     * size will be changed if the part size is changed, it will animate move if
9376     * the part is moving, and so on.
9377     *
9378     * The following picture demonstrates a Layout widget with a child object
9379     * added to its @c SWALLOW:
9380     *
9381     * @image html layout_swallow.png
9382     * @image latex layout_swallow.eps width=\textwidth
9383     *
9384     * @section secBox Box (BOX part)
9385     *
9386     * An Edje @c BOX part is very similar to the Elementary @ref Box widget. It
9387     * allows one to add objects to the box and have them distributed along its
9388     * area, accordingly to the specified @a layout property (now by @a layout we
9389     * mean the chosen layouting design of the Box, not the Layout widget
9390     * itself).
9391     *
9392     * A similar effect for having a box with its position, size and other things
9393     * controled by the Layout theme would be to create an Elementary @ref Box
9394     * widget and add it as a Content in the @c SWALLOW part.
9395     *
9396     * The main difference of using the Layout Box is that its behavior, the box
9397     * properties like layouting format, padding, align, etc. will be all
9398     * controled by the theme. This means, for example, that a signal could be
9399     * sent to the Layout theme (with elm_object_signal_emit()) and the theme
9400     * handled the signal by changing the box padding, or align, or both. Using
9401     * the Elementary @ref Box widget is not necessarily harder or easier, it
9402     * just depends on the circunstances and requirements.
9403     *
9404     * The Layout Box can be used through the @c elm_layout_box_* set of
9405     * functions.
9406     *
9407     * The following picture demonstrates a Layout widget with many child objects
9408     * added to its @c BOX part:
9409     *
9410     * @image html layout_box.png
9411     * @image latex layout_box.eps width=\textwidth
9412     *
9413     * @section secTable Table (TABLE part)
9414     *
9415     * Just like the @ref secBox, the Layout Table is very similar to the
9416     * Elementary @ref Table widget. It allows one to add objects to the Table
9417     * specifying the row and column where the object should be added, and any
9418     * column or row span if necessary.
9419     *
9420     * Again, we could have this design by adding a @ref Table widget to the @c
9421     * SWALLOW part using elm_layout_content_set(). The same difference happens
9422     * here when choosing to use the Layout Table (a @c TABLE part) instead of
9423     * the @ref Table plus @c SWALLOW part. It's just a matter of convenience.
9424     *
9425     * The Layout Table can be used through the @c elm_layout_table_* set of
9426     * functions.
9427     *
9428     * The following picture demonstrates a Layout widget with many child objects
9429     * added to its @c TABLE part:
9430     *
9431     * @image html layout_table.png
9432     * @image latex layout_table.eps width=\textwidth
9433     *
9434     * @section secPredef Predefined Layouts
9435     *
9436     * Another interesting thing about the Layout widget is that it offers some
9437     * predefined themes that come with the default Elementary theme. These
9438     * themes can be set by the call elm_layout_theme_set(), and provide some
9439     * basic functionality depending on the theme used.
9440     *
9441     * Most of them already send some signals, some already provide a toolbar or
9442     * back and next buttons.
9443     *
9444     * These are available predefined theme layouts. All of them have class = @c
9445     * layout, group = @c application, and style = one of the following options:
9446     *
9447     * @li @c toolbar-content - application with toolbar and main content area
9448     * @li @c toolbar-content-back - application with toolbar and main content
9449     * area with a back button and title area
9450     * @li @c toolbar-content-back-next - application with toolbar and main
9451     * content area with a back and next buttons and title area
9452     * @li @c content-back - application with a main content area with a back
9453     * button and title area
9454     * @li @c content-back-next - application with a main content area with a
9455     * back and next buttons and title area
9456     * @li @c toolbar-vbox - application with toolbar and main content area as a
9457     * vertical box
9458     * @li @c toolbar-table - application with toolbar and main content area as a
9459     * table
9460     *
9461     * @section secExamples Examples
9462     *
9463     * Some examples of the Layout widget can be found here:
9464     * @li @ref layout_example_01
9465     * @li @ref layout_example_02
9466     * @li @ref layout_example_03
9467     * @li @ref layout_example_edc
9468     *
9469     */
9470
9471    /**
9472     * Add a new layout to the parent
9473     *
9474     * @param parent The parent object
9475     * @return The new object or NULL if it cannot be created
9476     *
9477     * @see elm_layout_file_set()
9478     * @see elm_layout_theme_set()
9479     *
9480     * @ingroup Layout
9481     */
9482    EAPI Evas_Object       *elm_layout_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9483    /**
9484     * Set the file that will be used as layout
9485     *
9486     * @param obj The layout object
9487     * @param file The path to file (edj) that will be used as layout
9488     * @param group The group that the layout belongs in edje file
9489     *
9490     * @return (1 = success, 0 = error)
9491     *
9492     * @ingroup Layout
9493     */
9494    EAPI Eina_Bool          elm_layout_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
9495    /**
9496     * Set the edje group from the elementary theme that will be used as layout
9497     *
9498     * @param obj The layout object
9499     * @param clas the clas of the group
9500     * @param group the group
9501     * @param style the style to used
9502     *
9503     * @return (1 = success, 0 = error)
9504     *
9505     * @ingroup Layout
9506     */
9507    EAPI Eina_Bool          elm_layout_theme_set(Evas_Object *obj, const char *clas, const char *group, const char *style) EINA_ARG_NONNULL(1);
9508    /**
9509     * Set the layout content.
9510     *
9511     * @param obj The layout object
9512     * @param swallow The swallow part name in the edje file
9513     * @param content The child that will be added in this layout object
9514     *
9515     * Once the content object is set, a previously set one will be deleted.
9516     * If you want to keep that old content object, use the
9517     * elm_layout_content_unset() function.
9518     *
9519     * @note In an Edje theme, the part used as a content container is called @c
9520     * SWALLOW. This is why the parameter name is called @p swallow, but it is
9521     * expected to be a part name just like the second parameter of
9522     * elm_layout_box_append().
9523     *
9524     * @see elm_layout_box_append()
9525     * @see elm_layout_content_get()
9526     * @see elm_layout_content_unset()
9527     * @see @ref secBox
9528     *
9529     * @ingroup Layout
9530     */
9531    EAPI void               elm_layout_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
9532    /**
9533     * Get the child object in the given content part.
9534     *
9535     * @param obj The layout object
9536     * @param swallow The SWALLOW part to get its content
9537     *
9538     * @return The swallowed object or NULL if none or an error occurred
9539     *
9540     * @see elm_layout_content_set()
9541     *
9542     * @ingroup Layout
9543     */
9544    EAPI Evas_Object       *elm_layout_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
9545    /**
9546     * Unset the layout content.
9547     *
9548     * @param obj The layout object
9549     * @param swallow The swallow part name in the edje file
9550     * @return The content that was being used
9551     *
9552     * Unparent and return the content object which was set for this part.
9553     *
9554     * @see elm_layout_content_set()
9555     *
9556     * @ingroup Layout
9557     */
9558     EAPI Evas_Object       *elm_layout_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
9559    /**
9560     * Set the text of the given part
9561     *
9562     * @param obj The layout object
9563     * @param part The TEXT part where to set the text
9564     * @param text The text to set
9565     *
9566     * @ingroup Layout
9567     * @deprecated use elm_object_text_* instead.
9568     */
9569    EINA_DEPRECATED EAPI void               elm_layout_text_set(Evas_Object *obj, const char *part, const char *text) EINA_ARG_NONNULL(1);
9570    /**
9571     * Get the text set in the given part
9572     *
9573     * @param obj The layout object
9574     * @param part The TEXT part to retrieve the text off
9575     *
9576     * @return The text set in @p part
9577     *
9578     * @ingroup Layout
9579     * @deprecated use elm_object_text_* instead.
9580     */
9581    EINA_DEPRECATED EAPI const char        *elm_layout_text_get(const Evas_Object *obj, const char *part) EINA_ARG_NONNULL(1);
9582    /**
9583     * Append child to layout box part.
9584     *
9585     * @param obj the layout object
9586     * @param part the box part to which the object will be appended.
9587     * @param child the child object to append to box.
9588     *
9589     * Once the object is appended, it will become child of the layout. Its
9590     * lifetime will be bound to the layout, whenever the layout dies the child
9591     * will be deleted automatically. One should use elm_layout_box_remove() to
9592     * make this layout forget about the object.
9593     *
9594     * @see elm_layout_box_prepend()
9595     * @see elm_layout_box_insert_before()
9596     * @see elm_layout_box_insert_at()
9597     * @see elm_layout_box_remove()
9598     *
9599     * @ingroup Layout
9600     */
9601    EAPI void               elm_layout_box_append(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
9602    /**
9603     * Prepend child to layout box part.
9604     *
9605     * @param obj the layout object
9606     * @param part the box part to prepend.
9607     * @param child the child object to prepend to box.
9608     *
9609     * Once the object is prepended, it will become child of the layout. Its
9610     * lifetime will be bound to the layout, whenever the layout dies the child
9611     * will be deleted automatically. One should use elm_layout_box_remove() to
9612     * make this layout forget about the object.
9613     *
9614     * @see elm_layout_box_append()
9615     * @see elm_layout_box_insert_before()
9616     * @see elm_layout_box_insert_at()
9617     * @see elm_layout_box_remove()
9618     *
9619     * @ingroup Layout
9620     */
9621    EAPI void               elm_layout_box_prepend(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
9622    /**
9623     * Insert child to layout box part before a reference object.
9624     *
9625     * @param obj the layout object
9626     * @param part the box part to insert.
9627     * @param child the child object to insert into box.
9628     * @param reference another reference object to insert before in box.
9629     *
9630     * Once the object is inserted, it will become child of the layout. Its
9631     * lifetime will be bound to the layout, whenever the layout dies the child
9632     * will be deleted automatically. One should use elm_layout_box_remove() to
9633     * make this layout forget about the object.
9634     *
9635     * @see elm_layout_box_append()
9636     * @see elm_layout_box_prepend()
9637     * @see elm_layout_box_insert_before()
9638     * @see elm_layout_box_remove()
9639     *
9640     * @ingroup Layout
9641     */
9642    EAPI void               elm_layout_box_insert_before(Evas_Object *obj, const char *part, Evas_Object *child, const Evas_Object *reference) EINA_ARG_NONNULL(1);
9643    /**
9644     * Insert child to layout box part at a given position.
9645     *
9646     * @param obj the layout object
9647     * @param part the box part to insert.
9648     * @param child the child object to insert into box.
9649     * @param pos the numeric position >=0 to insert the child.
9650     *
9651     * Once the object is inserted, it will become child of the layout. Its
9652     * lifetime will be bound to the layout, whenever the layout dies the child
9653     * will be deleted automatically. One should use elm_layout_box_remove() to
9654     * make this layout forget about the object.
9655     *
9656     * @see elm_layout_box_append()
9657     * @see elm_layout_box_prepend()
9658     * @see elm_layout_box_insert_before()
9659     * @see elm_layout_box_remove()
9660     *
9661     * @ingroup Layout
9662     */
9663    EAPI void               elm_layout_box_insert_at(Evas_Object *obj, const char *part, Evas_Object *child, unsigned int pos) EINA_ARG_NONNULL(1);
9664    /**
9665     * Remove a child of the given part box.
9666     *
9667     * @param obj The layout object
9668     * @param part The box part name to remove child.
9669     * @param child The object to remove from box.
9670     * @return The object that was being used, or NULL if not found.
9671     *
9672     * The object will be removed from the box part and its lifetime will
9673     * not be handled by the layout anymore. This is equivalent to
9674     * elm_layout_content_unset() for box.
9675     *
9676     * @see elm_layout_box_append()
9677     * @see elm_layout_box_remove_all()
9678     *
9679     * @ingroup Layout
9680     */
9681    EAPI Evas_Object       *elm_layout_box_remove(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1, 2, 3);
9682    /**
9683     * Remove all child of the given part box.
9684     *
9685     * @param obj The layout object
9686     * @param part The box part name to remove child.
9687     * @param clear If EINA_TRUE, then all objects will be deleted as
9688     *        well, otherwise they will just be removed and will be
9689     *        dangling on the canvas.
9690     *
9691     * The objects will be removed from the box part and their lifetime will
9692     * not be handled by the layout anymore. This is equivalent to
9693     * elm_layout_box_remove() for all box children.
9694     *
9695     * @see elm_layout_box_append()
9696     * @see elm_layout_box_remove()
9697     *
9698     * @ingroup Layout
9699     */
9700    EAPI void               elm_layout_box_remove_all(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
9701    /**
9702     * Insert child to layout table part.
9703     *
9704     * @param obj the layout object
9705     * @param part the box part to pack child.
9706     * @param child_obj the child object to pack into table.
9707     * @param col the column to which the child should be added. (>= 0)
9708     * @param row the row to which the child should be added. (>= 0)
9709     * @param colspan how many columns should be used to store this object. (>=
9710     *        1)
9711     * @param rowspan how many rows should be used to store this object. (>= 1)
9712     *
9713     * Once the object is inserted, it will become child of the table. Its
9714     * lifetime will be bound to the layout, and whenever the layout dies the
9715     * child will be deleted automatically. One should use
9716     * elm_layout_table_remove() to make this layout forget about the object.
9717     *
9718     * If @p colspan or @p rowspan are bigger than 1, that object will occupy
9719     * more space than a single cell. For instance, the following code:
9720     * @code
9721     * elm_layout_table_pack(layout, "table_part", child, 0, 1, 3, 1);
9722     * @endcode
9723     *
9724     * Would result in an object being added like the following picture:
9725     *
9726     * @image html layout_colspan.png
9727     * @image latex layout_colspan.eps width=\textwidth
9728     *
9729     * @see elm_layout_table_unpack()
9730     * @see elm_layout_table_clear()
9731     *
9732     * @ingroup Layout
9733     */
9734    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);
9735    /**
9736     * Unpack (remove) a child of the given part table.
9737     *
9738     * @param obj The layout object
9739     * @param part The table part name to remove child.
9740     * @param child_obj The object to remove from table.
9741     * @return The object that was being used, or NULL if not found.
9742     *
9743     * The object will be unpacked from the table part and its lifetime
9744     * will not be handled by the layout anymore. This is equivalent to
9745     * elm_layout_content_unset() for table.
9746     *
9747     * @see elm_layout_table_pack()
9748     * @see elm_layout_table_clear()
9749     *
9750     * @ingroup Layout
9751     */
9752    EAPI Evas_Object       *elm_layout_table_unpack(Evas_Object *obj, const char *part, Evas_Object *child_obj) EINA_ARG_NONNULL(1, 2, 3);
9753    /**
9754     * Remove all child of the given part table.
9755     *
9756     * @param obj The layout object
9757     * @param part The table part name to remove child.
9758     * @param clear If EINA_TRUE, then all objects will be deleted as
9759     *        well, otherwise they will just be removed and will be
9760     *        dangling on the canvas.
9761     *
9762     * The objects will be removed from the table part and their lifetime will
9763     * not be handled by the layout anymore. This is equivalent to
9764     * elm_layout_table_unpack() for all table children.
9765     *
9766     * @see elm_layout_table_pack()
9767     * @see elm_layout_table_unpack()
9768     *
9769     * @ingroup Layout
9770     */
9771    EAPI void               elm_layout_table_clear(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
9772    /**
9773     * Get the edje layout
9774     *
9775     * @param obj The layout object
9776     *
9777     * @return A Evas_Object with the edje layout settings loaded
9778     * with function elm_layout_file_set
9779     *
9780     * This returns the edje object. It is not expected to be used to then
9781     * swallow objects via edje_object_part_swallow() for example. Use
9782     * elm_layout_content_set() instead so child object handling and sizing is
9783     * done properly.
9784     *
9785     * @note This function should only be used if you really need to call some
9786     * low level Edje function on this edje object. All the common stuff (setting
9787     * text, emitting signals, hooking callbacks to signals, etc.) can be done
9788     * with proper elementary functions.
9789     *
9790     * @see elm_object_signal_callback_add()
9791     * @see elm_object_signal_emit()
9792     * @see elm_object_text_part_set()
9793     * @see elm_layout_content_set()
9794     * @see elm_layout_box_append()
9795     * @see elm_layout_table_pack()
9796     * @see elm_layout_data_get()
9797     *
9798     * @ingroup Layout
9799     */
9800    EAPI Evas_Object       *elm_layout_edje_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9801    /**
9802     * Get the edje data from the given layout
9803     *
9804     * @param obj The layout object
9805     * @param key The data key
9806     *
9807     * @return The edje data string
9808     *
9809     * This function fetches data specified inside the edje theme of this layout.
9810     * This function return NULL if data is not found.
9811     *
9812     * In EDC this comes from a data block within the group block that @p
9813     * obj was loaded from. E.g.
9814     *
9815     * @code
9816     * collections {
9817     *   group {
9818     *     name: "a_group";
9819     *     data {
9820     *       item: "key1" "value1";
9821     *       item: "key2" "value2";
9822     *     }
9823     *   }
9824     * }
9825     * @endcode
9826     *
9827     * @ingroup Layout
9828     */
9829    EAPI const char        *elm_layout_data_get(const Evas_Object *obj, const char *key) EINA_ARG_NONNULL(1, 2);
9830    /**
9831     * Eval sizing
9832     *
9833     * @param obj The layout object
9834     *
9835     * Manually forces a sizing re-evaluation. This is useful when the minimum
9836     * size required by the edje theme of this layout has changed. The change on
9837     * the minimum size required by the edje theme is not immediately reported to
9838     * the elementary layout, so one needs to call this function in order to tell
9839     * the widget (layout) that it needs to reevaluate its own size.
9840     *
9841     * The minimum size of the theme is calculated based on minimum size of
9842     * parts, the size of elements inside containers like box and table, etc. All
9843     * of this can change due to state changes, and that's when this function
9844     * should be called.
9845     *
9846     * Also note that a standard signal of "size,eval" "elm" emitted from the
9847     * edje object will cause this to happen too.
9848     *
9849     * @ingroup Layout
9850     */
9851    EAPI void               elm_layout_sizing_eval(Evas_Object *obj) EINA_ARG_NONNULL(1);
9852
9853    /**
9854     * Sets a specific cursor for an edje part.
9855     *
9856     * @param obj The layout object.
9857     * @param part_name a part from loaded edje group.
9858     * @param cursor cursor name to use, see Elementary_Cursor.h
9859     *
9860     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
9861     *         part not exists or it has "mouse_events: 0".
9862     *
9863     * @ingroup Layout
9864     */
9865    EAPI Eina_Bool          elm_layout_part_cursor_set(Evas_Object *obj, const char *part_name, const char *cursor) EINA_ARG_NONNULL(1, 2);
9866
9867    /**
9868     * Get the cursor to be shown when mouse is over an edje part
9869     *
9870     * @param obj The layout object.
9871     * @param part_name a part from loaded edje group.
9872     * @return the cursor name.
9873     *
9874     * @ingroup Layout
9875     */
9876    EAPI const char        *elm_layout_part_cursor_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
9877
9878    /**
9879     * Unsets a cursor previously set with elm_layout_part_cursor_set().
9880     *
9881     * @param obj The layout object.
9882     * @param part_name a part from loaded edje group, that had a cursor set
9883     *        with elm_layout_part_cursor_set().
9884     *
9885     * @ingroup Layout
9886     */
9887    EAPI void               elm_layout_part_cursor_unset(Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
9888
9889    /**
9890     * Sets a specific cursor style for an edje part.
9891     *
9892     * @param obj The layout object.
9893     * @param part_name a part from loaded edje group.
9894     * @param style the theme style to use (default, transparent, ...)
9895     *
9896     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
9897     *         part not exists or it did not had a cursor set.
9898     *
9899     * @ingroup Layout
9900     */
9901    EAPI Eina_Bool          elm_layout_part_cursor_style_set(Evas_Object *obj, const char *part_name, const char *style) EINA_ARG_NONNULL(1, 2);
9902
9903    /**
9904     * Gets a specific cursor style for an edje part.
9905     *
9906     * @param obj The layout object.
9907     * @param part_name a part from loaded edje group.
9908     *
9909     * @return the theme style in use, defaults to "default". If the
9910     *         object does not have a cursor set, then NULL is returned.
9911     *
9912     * @ingroup Layout
9913     */
9914    EAPI const char        *elm_layout_part_cursor_style_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
9915
9916    /**
9917     * Sets if the cursor set should be searched on the theme or should use
9918     * the provided by the engine, only.
9919     *
9920     * @note before you set if should look on theme you should define a
9921     * cursor with elm_layout_part_cursor_set(). By default it will only
9922     * look for cursors provided by the engine.
9923     *
9924     * @param obj The layout object.
9925     * @param part_name a part from loaded edje group.
9926     * @param engine_only if cursors should be just provided by the engine
9927     *        or should also search on widget's theme as well
9928     *
9929     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
9930     *         part not exists or it did not had a cursor set.
9931     *
9932     * @ingroup Layout
9933     */
9934    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);
9935
9936    /**
9937     * Gets a specific cursor engine_only for an edje part.
9938     *
9939     * @param obj The layout object.
9940     * @param part_name a part from loaded edje group.
9941     *
9942     * @return whenever the cursor is just provided by engine or also from theme.
9943     *
9944     * @ingroup Layout
9945     */
9946    EAPI Eina_Bool          elm_layout_part_cursor_engine_only_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
9947
9948 /**
9949  * @def elm_layout_icon_set
9950  * Convienience macro to set the icon object in a layout that follows the
9951  * Elementary naming convention for its parts.
9952  *
9953  * @ingroup Layout
9954  */
9955 #define elm_layout_icon_set(_ly, _obj) \
9956   do { \
9957     const char *sig; \
9958     elm_layout_content_set((_ly), "elm.swallow.icon", (_obj)); \
9959     if ((_obj)) sig = "elm,state,icon,visible"; \
9960     else sig = "elm,state,icon,hidden"; \
9961     elm_object_signal_emit((_ly), sig, "elm"); \
9962   } while (0)
9963
9964 /**
9965  * @def elm_layout_icon_get
9966  * Convienience macro to get the icon object from a layout that follows the
9967  * Elementary naming convention for its parts.
9968  *
9969  * @ingroup Layout
9970  */
9971 #define elm_layout_icon_get(_ly) \
9972   elm_layout_content_get((_ly), "elm.swallow.icon")
9973
9974 /**
9975  * @def elm_layout_end_set
9976  * Convienience macro to set the end object in a layout that follows the
9977  * Elementary naming convention for its parts.
9978  *
9979  * @ingroup Layout
9980  */
9981 #define elm_layout_end_set(_ly, _obj) \
9982   do { \
9983     const char *sig; \
9984     elm_layout_content_set((_ly), "elm.swallow.end", (_obj)); \
9985     if ((_obj)) sig = "elm,state,end,visible"; \
9986     else sig = "elm,state,end,hidden"; \
9987     elm_object_signal_emit((_ly), sig, "elm"); \
9988   } while (0)
9989
9990 /**
9991  * @def elm_layout_end_get
9992  * Convienience macro to get the end object in a layout that follows the
9993  * Elementary naming convention for its parts.
9994  *
9995  * @ingroup Layout
9996  */
9997 #define elm_layout_end_get(_ly) \
9998   elm_layout_content_get((_ly), "elm.swallow.end")
9999
10000 /**
10001  * @def elm_layout_label_set
10002  * Convienience macro to set the label in a layout that follows the
10003  * Elementary naming convention for its parts.
10004  *
10005  * @ingroup Layout
10006  * @deprecated use elm_object_text_* instead.
10007  */
10008 #define elm_layout_label_set(_ly, _txt) \
10009   elm_layout_text_set((_ly), "elm.text", (_txt))
10010
10011 /**
10012  * @def elm_layout_label_get
10013  * Convienience macro to get the label in a layout that follows the
10014  * Elementary naming convention for its parts.
10015  *
10016  * @ingroup Layout
10017  * @deprecated use elm_object_text_* instead.
10018  */
10019 #define elm_layout_label_get(_ly) \
10020   elm_layout_text_get((_ly), "elm.text")
10021
10022    /* smart callbacks called:
10023     * "theme,changed" - when elm theme is changed.
10024     */
10025
10026    /**
10027     * @defgroup Notify Notify
10028     *
10029     * @image html img/widget/notify/preview-00.png
10030     * @image latex img/widget/notify/preview-00.eps
10031     *
10032     * Display a container in a particular region of the parent(top, bottom,
10033     * etc.  A timeout can be set to automatically hide the notify. This is so
10034     * that, after an evas_object_show() on a notify object, if a timeout was set
10035     * on it, it will @b automatically get hidden after that time.
10036     *
10037     * Signals that you can add callbacks for are:
10038     * @li "timeout" - when timeout happens on notify and it's hidden
10039     * @li "block,clicked" - when a click outside of the notify happens
10040     *
10041     * @ref tutorial_notify show usage of the API.
10042     *
10043     * @{
10044     */
10045    /**
10046     * @brief Possible orient values for notify.
10047     *
10048     * This values should be used in conjunction to elm_notify_orient_set() to
10049     * set the position in which the notify should appear(relative to its parent)
10050     * and in conjunction with elm_notify_orient_get() to know where the notify
10051     * is appearing.
10052     */
10053    typedef enum _Elm_Notify_Orient
10054      {
10055         ELM_NOTIFY_ORIENT_TOP, /**< Notify should appear in the top of parent, default */
10056         ELM_NOTIFY_ORIENT_CENTER, /**< Notify should appear in the center of parent */
10057         ELM_NOTIFY_ORIENT_BOTTOM, /**< Notify should appear in the bottom of parent */
10058         ELM_NOTIFY_ORIENT_LEFT, /**< Notify should appear in the left of parent */
10059         ELM_NOTIFY_ORIENT_RIGHT, /**< Notify should appear in the right of parent */
10060         ELM_NOTIFY_ORIENT_TOP_LEFT, /**< Notify should appear in the top left of parent */
10061         ELM_NOTIFY_ORIENT_TOP_RIGHT, /**< Notify should appear in the top right of parent */
10062         ELM_NOTIFY_ORIENT_BOTTOM_LEFT, /**< Notify should appear in the bottom left of parent */
10063         ELM_NOTIFY_ORIENT_BOTTOM_RIGHT, /**< Notify should appear in the bottom right of parent */
10064         ELM_NOTIFY_ORIENT_LAST /**< Sentinel value, @b don't use */
10065      } Elm_Notify_Orient;
10066    /**
10067     * @brief Add a new notify to the parent
10068     *
10069     * @param parent The parent object
10070     * @return The new object or NULL if it cannot be created
10071     */
10072    EAPI Evas_Object      *elm_notify_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10073    /**
10074     * @brief Set the content of the notify widget
10075     *
10076     * @param obj The notify object
10077     * @param content The content will be filled in this notify object
10078     *
10079     * Once the content object is set, a previously set one will be deleted. If
10080     * you want to keep that old content object, use the
10081     * elm_notify_content_unset() function.
10082     */
10083    EAPI void              elm_notify_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
10084    /**
10085     * @brief Unset the content of the notify widget
10086     *
10087     * @param obj The notify object
10088     * @return The content that was being used
10089     *
10090     * Unparent and return the content object which was set for this widget
10091     *
10092     * @see elm_notify_content_set()
10093     */
10094    EAPI Evas_Object      *elm_notify_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
10095    /**
10096     * @brief Return the content of the notify widget
10097     *
10098     * @param obj The notify object
10099     * @return The content that is being used
10100     *
10101     * @see elm_notify_content_set()
10102     */
10103    EAPI Evas_Object      *elm_notify_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10104    /**
10105     * @brief Set the notify parent
10106     *
10107     * @param obj The notify object
10108     * @param content The new parent
10109     *
10110     * Once the parent object is set, a previously set one will be disconnected
10111     * and replaced.
10112     */
10113    EAPI void              elm_notify_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
10114    /**
10115     * @brief Get the notify parent
10116     *
10117     * @param obj The notify object
10118     * @return The parent
10119     *
10120     * @see elm_notify_parent_set()
10121     */
10122    EAPI Evas_Object      *elm_notify_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10123    /**
10124     * @brief Set the orientation
10125     *
10126     * @param obj The notify object
10127     * @param orient The new orientation
10128     *
10129     * Sets the position in which the notify will appear in its parent.
10130     *
10131     * @see @ref Elm_Notify_Orient for possible values.
10132     */
10133    EAPI void              elm_notify_orient_set(Evas_Object *obj, Elm_Notify_Orient orient) EINA_ARG_NONNULL(1);
10134    /**
10135     * @brief Return the orientation
10136     * @param obj The notify object
10137     * @return The orientation of the notification
10138     *
10139     * @see elm_notify_orient_set()
10140     * @see Elm_Notify_Orient
10141     */
10142    EAPI Elm_Notify_Orient elm_notify_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10143    /**
10144     * @brief Set the time interval after which the notify window is going to be
10145     * hidden.
10146     *
10147     * @param obj The notify object
10148     * @param time The timeout in seconds
10149     *
10150     * This function sets a timeout and starts the timer controlling when the
10151     * notify is hidden. Since calling evas_object_show() on a notify restarts
10152     * the timer controlling when the notify is hidden, setting this before the
10153     * notify is shown will in effect mean starting the timer when the notify is
10154     * shown.
10155     *
10156     * @note Set a value <= 0.0 to disable a running timer.
10157     *
10158     * @note If the value > 0.0 and the notify is previously visible, the
10159     * timer will be started with this value, canceling any running timer.
10160     */
10161    EAPI void              elm_notify_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
10162    /**
10163     * @brief Return the timeout value (in seconds)
10164     * @param obj the notify object
10165     *
10166     * @see elm_notify_timeout_set()
10167     */
10168    EAPI double            elm_notify_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10169    /**
10170     * @brief Sets whether events should be passed to by a click outside
10171     * its area.
10172     *
10173     * @param obj The notify object
10174     * @param repeats EINA_TRUE Events are repeats, else no
10175     *
10176     * When true if the user clicks outside the window the events will be caught
10177     * by the others widgets, else the events are blocked.
10178     *
10179     * @note The default value is EINA_TRUE.
10180     */
10181    EAPI void              elm_notify_repeat_events_set(Evas_Object *obj, Eina_Bool repeat) EINA_ARG_NONNULL(1);
10182    /**
10183     * @brief Return true if events are repeat below the notify object
10184     * @param obj the notify object
10185     *
10186     * @see elm_notify_repeat_events_set()
10187     */
10188    EAPI Eina_Bool         elm_notify_repeat_events_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10189    /**
10190     * @}
10191     */
10192
10193    /**
10194     * @defgroup Hover Hover
10195     *
10196     * @image html img/widget/hover/preview-00.png
10197     * @image latex img/widget/hover/preview-00.eps
10198     *
10199     * A Hover object will hover over its @p parent object at the @p target
10200     * location. Anything in the background will be given a darker coloring to
10201     * indicate that the hover object is on top (at the default theme). When the
10202     * hover is clicked it is dismissed(hidden), if the contents of the hover are
10203     * clicked that @b doesn't cause the hover to be dismissed.
10204     *
10205     * @note The hover object will take up the entire space of @p target
10206     * object.
10207     *
10208     * Elementary has the following styles for the hover widget:
10209     * @li default
10210     * @li popout
10211     * @li menu
10212     * @li hoversel_vertical
10213     *
10214     * The following are the available position for content:
10215     * @li left
10216     * @li top-left
10217     * @li top
10218     * @li top-right
10219     * @li right
10220     * @li bottom-right
10221     * @li bottom
10222     * @li bottom-left
10223     * @li middle
10224     * @li smart
10225     *
10226     * Signals that you can add callbacks for are:
10227     * @li "clicked" - the user clicked the empty space in the hover to dismiss
10228     * @li "smart,changed" - a content object placed under the "smart"
10229     *                   policy was replaced to a new slot direction.
10230     *
10231     * See @ref tutorial_hover for more information.
10232     *
10233     * @{
10234     */
10235    typedef enum _Elm_Hover_Axis
10236      {
10237         ELM_HOVER_AXIS_NONE, /**< ELM_HOVER_AXIS_NONE -- no prefered orientation */
10238         ELM_HOVER_AXIS_HORIZONTAL, /**< ELM_HOVER_AXIS_HORIZONTAL -- horizontal */
10239         ELM_HOVER_AXIS_VERTICAL, /**< ELM_HOVER_AXIS_VERTICAL -- vertical */
10240         ELM_HOVER_AXIS_BOTH /**< ELM_HOVER_AXIS_BOTH -- both */
10241      } Elm_Hover_Axis;
10242    /**
10243     * @brief Adds a hover object to @p parent
10244     *
10245     * @param parent The parent object
10246     * @return The hover object or NULL if one could not be created
10247     */
10248    EAPI Evas_Object *elm_hover_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10249    /**
10250     * @brief Sets the target object for the hover.
10251     *
10252     * @param obj The hover object
10253     * @param target The object to center the hover onto. The hover
10254     *
10255     * This function will cause the hover to be centered on the target object.
10256     */
10257    EAPI void         elm_hover_target_set(Evas_Object *obj, Evas_Object *target) EINA_ARG_NONNULL(1);
10258    /**
10259     * @brief Gets the target object for the hover.
10260     *
10261     * @param obj The hover object
10262     * @param parent The object to locate the hover over.
10263     *
10264     * @see elm_hover_target_set()
10265     */
10266    EAPI Evas_Object *elm_hover_target_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10267    /**
10268     * @brief Sets the parent object for the hover.
10269     *
10270     * @param obj The hover object
10271     * @param parent The object to locate the hover over.
10272     *
10273     * This function will cause the hover to take up the entire space that the
10274     * parent object fills.
10275     */
10276    EAPI void         elm_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
10277    /**
10278     * @brief Gets the parent object for the hover.
10279     *
10280     * @param obj The hover object
10281     * @return The parent object to locate the hover over.
10282     *
10283     * @see elm_hover_parent_set()
10284     */
10285    EAPI Evas_Object *elm_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10286    /**
10287     * @brief Sets the content of the hover object and the direction in which it
10288     * will pop out.
10289     *
10290     * @param obj The hover object
10291     * @param swallow The direction that the object will be displayed
10292     * at. Accepted values are "left", "top-left", "top", "top-right",
10293     * "right", "bottom-right", "bottom", "bottom-left", "middle" and
10294     * "smart".
10295     * @param content The content to place at @p swallow
10296     *
10297     * Once the content object is set for a given direction, a previously
10298     * set one (on the same direction) will be deleted. If you want to
10299     * keep that old content object, use the elm_hover_content_unset()
10300     * function.
10301     *
10302     * All directions may have contents at the same time, except for
10303     * "smart". This is a special placement hint and its use case
10304     * independs of the calculations coming from
10305     * elm_hover_best_content_location_get(). Its use is for cases when
10306     * one desires only one hover content, but with a dinamic special
10307     * placement within the hover area. The content's geometry, whenever
10308     * it changes, will be used to decide on a best location not
10309     * extrapolating the hover's parent object view to show it in (still
10310     * being the hover's target determinant of its medium part -- move and
10311     * resize it to simulate finger sizes, for example). If one of the
10312     * directions other than "smart" are used, a previously content set
10313     * using it will be deleted, and vice-versa.
10314     */
10315    EAPI void         elm_hover_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
10316    /**
10317     * @brief Get the content of the hover object, in a given direction.
10318     *
10319     * Return the content object which was set for this widget in the
10320     * @p swallow direction.
10321     *
10322     * @param obj The hover object
10323     * @param swallow The direction that the object was display at.
10324     * @return The content that was being used
10325     *
10326     * @see elm_hover_content_set()
10327     */
10328    EAPI Evas_Object *elm_hover_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10329    /**
10330     * @brief Unset the content of the hover object, in a given direction.
10331     *
10332     * Unparent and return the content object set at @p swallow direction.
10333     *
10334     * @param obj The hover object
10335     * @param swallow The direction that the object was display at.
10336     * @return The content that was being used.
10337     *
10338     * @see elm_hover_content_set()
10339     */
10340    EAPI Evas_Object *elm_hover_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10341    /**
10342     * @brief Returns the best swallow location for content in the hover.
10343     *
10344     * @param obj The hover object
10345     * @param pref_axis The preferred orientation axis for the hover object to use
10346     * @return The edje location to place content into the hover or @c
10347     *         NULL, on errors.
10348     *
10349     * Best is defined here as the location at which there is the most available
10350     * space.
10351     *
10352     * @p pref_axis may be one of
10353     * - @c ELM_HOVER_AXIS_NONE -- no prefered orientation
10354     * - @c ELM_HOVER_AXIS_HORIZONTAL -- horizontal
10355     * - @c ELM_HOVER_AXIS_VERTICAL -- vertical
10356     * - @c ELM_HOVER_AXIS_BOTH -- both
10357     *
10358     * If ELM_HOVER_AXIS_HORIZONTAL is choosen the returned position will
10359     * nescessarily be along the horizontal axis("left" or "right"). If
10360     * ELM_HOVER_AXIS_VERTICAL is choosen the returned position will nescessarily
10361     * be along the vertical axis("top" or "bottom"). Chossing
10362     * ELM_HOVER_AXIS_BOTH or ELM_HOVER_AXIS_NONE has the same effect and the
10363     * returned position may be in either axis.
10364     *
10365     * @see elm_hover_content_set()
10366     */
10367    EAPI const char  *elm_hover_best_content_location_get(const Evas_Object *obj, Elm_Hover_Axis pref_axis) EINA_ARG_NONNULL(1);
10368    /**
10369     * @}
10370     */
10371
10372    /* entry */
10373    /**
10374     * @defgroup Entry Entry
10375     *
10376     * @image html img/widget/entry/preview-00.png
10377     * @image latex img/widget/entry/preview-00.eps width=\textwidth
10378     * @image html img/widget/entry/preview-01.png
10379     * @image latex img/widget/entry/preview-01.eps width=\textwidth
10380     * @image html img/widget/entry/preview-02.png
10381     * @image latex img/widget/entry/preview-02.eps width=\textwidth
10382     * @image html img/widget/entry/preview-03.png
10383     * @image latex img/widget/entry/preview-03.eps width=\textwidth
10384     *
10385     * An entry is a convenience widget which shows a box that the user can
10386     * enter text into. Entries by default don't scroll, so they grow to
10387     * accomodate the entire text, resizing the parent window as needed. This
10388     * can be changed with the elm_entry_scrollable_set() function.
10389     *
10390     * They can also be single line or multi line (the default) and when set
10391     * to multi line mode they support text wrapping in any of the modes
10392     * indicated by #Elm_Wrap_Type.
10393     *
10394     * Other features include password mode, filtering of inserted text with
10395     * elm_entry_text_filter_append() and related functions, inline "items" and
10396     * formatted markup text.
10397     *
10398     * @section entry-markup Formatted text
10399     *
10400     * The markup tags supported by the Entry are defined by the theme, but
10401     * even when writing new themes or extensions it's a good idea to stick to
10402     * a sane default, to maintain coherency and avoid application breakages.
10403     * Currently defined by the default theme are the following tags:
10404     * @li \<br\>: Inserts a line break.
10405     * @li \<ps\>: Inserts a paragraph separator. This is preferred over line
10406     * breaks.
10407     * @li \<tab\>: Inserts a tab.
10408     * @li \<em\>...\</em\>: Emphasis. Sets the @em oblique style for the
10409     * enclosed text.
10410     * @li \<b\>...\</b\>: Sets the @b bold style for the enclosed text.
10411     * @li \<link\>...\</link\>: Underlines the enclosed text.
10412     * @li \<hilight\>...\</hilight\>: Hilights the enclosed text.
10413     *
10414     * @section entry-special Special markups
10415     *
10416     * Besides those used to format text, entries support two special markup
10417     * tags used to insert clickable portions of text or items inlined within
10418     * the text.
10419     *
10420     * @subsection entry-anchors Anchors
10421     *
10422     * Anchors are similar to HTML anchors. Text can be surrounded by \<a\> and
10423     * \</a\> tags and an event will be generated when this text is clicked,
10424     * like this:
10425     *
10426     * @code
10427     * This text is outside <a href=anc-01>but this one is an anchor</a>
10428     * @endcode
10429     *
10430     * The @c href attribute in the opening tag gives the name that will be
10431     * used to identify the anchor and it can be any valid utf8 string.
10432     *
10433     * When an anchor is clicked, an @c "anchor,clicked" signal is emitted with
10434     * an #Elm_Entry_Anchor_Info in the @c event_info parameter for the
10435     * callback function. The same applies for "anchor,in" (mouse in), "anchor,out"
10436     * (mouse out), "anchor,down" (mouse down), and "anchor,up" (mouse up) events on
10437     * an anchor.
10438     *
10439     * @subsection entry-items Items
10440     *
10441     * Inlined in the text, any other @c Evas_Object can be inserted by using
10442     * \<item\> tags this way:
10443     *
10444     * @code
10445     * <item size=16x16 vsize=full href=emoticon/haha></item>
10446     * @endcode
10447     *
10448     * Just like with anchors, the @c href identifies each item, but these need,
10449     * in addition, to indicate their size, which is done using any one of
10450     * @c size, @c absize or @c relsize attributes. These attributes take their
10451     * value in the WxH format, where W is the width and H the height of the
10452     * item.
10453     *
10454     * @li absize: Absolute pixel size for the item. Whatever value is set will
10455     * be the item's size regardless of any scale value the object may have
10456     * been set to. The final line height will be adjusted to fit larger items.
10457     * @li size: Similar to @c absize, but it's adjusted to the scale value set
10458     * for the object.
10459     * @li relsize: Size is adjusted for the item to fit within the current
10460     * line height.
10461     *
10462     * Besides their size, items are specificed a @c vsize value that affects
10463     * how their final size and position are calculated. The possible values
10464     * are:
10465     * @li ascent: Item will be placed within the line's baseline and its
10466     * ascent. That is, the height between the line where all characters are
10467     * positioned and the highest point in the line. For @c size and @c absize
10468     * items, the descent value will be added to the total line height to make
10469     * them fit. @c relsize items will be adjusted to fit within this space.
10470     * @li full: Items will be placed between the descent and ascent, or the
10471     * lowest point in the line and its highest.
10472     *
10473     * The next image shows different configurations of items and how they
10474     * are the previously mentioned options affect their sizes. In all cases,
10475     * the green line indicates the ascent, blue for the baseline and red for
10476     * the descent.
10477     *
10478     * @image html entry_item.png
10479     * @image latex entry_item.eps width=\textwidth
10480     *
10481     * And another one to show how size differs from absize. In the first one,
10482     * the scale value is set to 1.0, while the second one is using one of 2.0.
10483     *
10484     * @image html entry_item_scale.png
10485     * @image latex entry_item_scale.eps width=\textwidth
10486     *
10487     * After the size for an item is calculated, the entry will request an
10488     * object to place in its space. For this, the functions set with
10489     * elm_entry_item_provider_append() and related functions will be called
10490     * in order until one of them returns a @c non-NULL value. If no providers
10491     * are available, or all of them return @c NULL, then the entry falls back
10492     * to one of the internal defaults, provided the name matches with one of
10493     * them.
10494     *
10495     * All of the following are currently supported:
10496     *
10497     * - emoticon/angry
10498     * - emoticon/angry-shout
10499     * - emoticon/crazy-laugh
10500     * - emoticon/evil-laugh
10501     * - emoticon/evil
10502     * - emoticon/goggle-smile
10503     * - emoticon/grumpy
10504     * - emoticon/grumpy-smile
10505     * - emoticon/guilty
10506     * - emoticon/guilty-smile
10507     * - emoticon/haha
10508     * - emoticon/half-smile
10509     * - emoticon/happy-panting
10510     * - emoticon/happy
10511     * - emoticon/indifferent
10512     * - emoticon/kiss
10513     * - emoticon/knowing-grin
10514     * - emoticon/laugh
10515     * - emoticon/little-bit-sorry
10516     * - emoticon/love-lots
10517     * - emoticon/love
10518     * - emoticon/minimal-smile
10519     * - emoticon/not-happy
10520     * - emoticon/not-impressed
10521     * - emoticon/omg
10522     * - emoticon/opensmile
10523     * - emoticon/smile
10524     * - emoticon/sorry
10525     * - emoticon/squint-laugh
10526     * - emoticon/surprised
10527     * - emoticon/suspicious
10528     * - emoticon/tongue-dangling
10529     * - emoticon/tongue-poke
10530     * - emoticon/uh
10531     * - emoticon/unhappy
10532     * - emoticon/very-sorry
10533     * - emoticon/what
10534     * - emoticon/wink
10535     * - emoticon/worried
10536     * - emoticon/wtf
10537     *
10538     * Alternatively, an item may reference an image by its path, using
10539     * the URI form @c file:///path/to/an/image.png and the entry will then
10540     * use that image for the item.
10541     *
10542     * @section entry-files Loading and saving files
10543     *
10544     * Entries have convinience functions to load text from a file and save
10545     * changes back to it after a short delay. The automatic saving is enabled
10546     * by default, but can be disabled with elm_entry_autosave_set() and files
10547     * can be loaded directly as plain text or have any markup in them
10548     * recognized. See elm_entry_file_set() for more details.
10549     *
10550     * @section entry-signals Emitted signals
10551     *
10552     * This widget emits the following signals:
10553     *
10554     * @li "changed": The text within the entry was changed.
10555     * @li "changed,user": The text within the entry was changed because of user interaction.
10556     * @li "activated": The enter key was pressed on a single line entry.
10557     * @li "press": A mouse button has been pressed on the entry.
10558     * @li "longpressed": A mouse button has been pressed and held for a couple
10559     * seconds.
10560     * @li "clicked": The entry has been clicked (mouse press and release).
10561     * @li "clicked,double": The entry has been double clicked.
10562     * @li "clicked,triple": The entry has been triple clicked.
10563     * @li "focused": The entry has received focus.
10564     * @li "unfocused": The entry has lost focus.
10565     * @li "selection,paste": A paste of the clipboard contents was requested.
10566     * @li "selection,copy": A copy of the selected text into the clipboard was
10567     * requested.
10568     * @li "selection,cut": A cut of the selected text into the clipboard was
10569     * requested.
10570     * @li "selection,start": A selection has begun and no previous selection
10571     * existed.
10572     * @li "selection,changed": The current selection has changed.
10573     * @li "selection,cleared": The current selection has been cleared.
10574     * @li "cursor,changed": The cursor has changed position.
10575     * @li "anchor,clicked": An anchor has been clicked. The event_info
10576     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10577     * @li "anchor,in": Mouse cursor has moved into an anchor. The event_info
10578     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10579     * @li "anchor,out": Mouse cursor has moved out of an anchor. The event_info
10580     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10581     * @li "anchor,up": Mouse button has been unpressed on an anchor. The event_info
10582     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10583     * @li "anchor,down": Mouse button has been pressed on an anchor. The event_info
10584     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10585     * @li "preedit,changed": The preedit string has changed.
10586     *
10587     * @section entry-examples
10588     *
10589     * An overview of the Entry API can be seen in @ref entry_example_01
10590     *
10591     * @{
10592     */
10593    /**
10594     * @typedef Elm_Entry_Anchor_Info
10595     *
10596     * The info sent in the callback for the "anchor,clicked" signals emitted
10597     * by entries.
10598     */
10599    typedef struct _Elm_Entry_Anchor_Info Elm_Entry_Anchor_Info;
10600    /**
10601     * @struct _Elm_Entry_Anchor_Info
10602     *
10603     * The info sent in the callback for the "anchor,clicked" signals emitted
10604     * by entries.
10605     */
10606    struct _Elm_Entry_Anchor_Info
10607      {
10608         const char *name; /**< The name of the anchor, as stated in its href */
10609         int         button; /**< The mouse button used to click on it */
10610         Evas_Coord  x, /**< Anchor geometry, relative to canvas */
10611                     y, /**< Anchor geometry, relative to canvas */
10612                     w, /**< Anchor geometry, relative to canvas */
10613                     h; /**< Anchor geometry, relative to canvas */
10614      };
10615    /**
10616     * @typedef Elm_Entry_Filter_Cb
10617     * This callback type is used by entry filters to modify text.
10618     * @param data The data specified as the last param when adding the filter
10619     * @param entry The entry object
10620     * @param text A pointer to the location of the text being filtered. This data can be modified,
10621     * but any additional allocations must be managed by the user.
10622     * @see elm_entry_text_filter_append
10623     * @see elm_entry_text_filter_prepend
10624     */
10625    typedef void (*Elm_Entry_Filter_Cb)(void *data, Evas_Object *entry, char **text);
10626
10627    /**
10628     * This adds an entry to @p parent object.
10629     *
10630     * By default, entries are:
10631     * @li not scrolled
10632     * @li multi-line
10633     * @li word wrapped
10634     * @li autosave is enabled
10635     *
10636     * @param parent The parent object
10637     * @return The new object or NULL if it cannot be created
10638     */
10639    EAPI Evas_Object *elm_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10640    /**
10641     * Sets the entry to single line mode.
10642     *
10643     * In single line mode, entries don't ever wrap when the text reaches the
10644     * edge, and instead they keep growing horizontally. Pressing the @c Enter
10645     * key will generate an @c "activate" event instead of adding a new line.
10646     *
10647     * When @p single_line is @c EINA_FALSE, line wrapping takes effect again
10648     * and pressing enter will break the text into a different line
10649     * without generating any events.
10650     *
10651     * @param obj The entry object
10652     * @param single_line If true, the text in the entry
10653     * will be on a single line.
10654     */
10655    EAPI void         elm_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
10656    /**
10657     * Gets whether the entry is set to be single line.
10658     *
10659     * @param obj The entry object
10660     * @return single_line If true, the text in the entry is set to display
10661     * on a single line.
10662     *
10663     * @see elm_entry_single_line_set()
10664     */
10665    EAPI Eina_Bool    elm_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10666    /**
10667     * Sets the entry to password mode.
10668     *
10669     * In password mode, entries are implicitly single line and the display of
10670     * any text in them is replaced with asterisks (*).
10671     *
10672     * @param obj The entry object
10673     * @param password If true, password mode is enabled.
10674     */
10675    EAPI void         elm_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
10676    /**
10677     * Gets whether the entry is set to password mode.
10678     *
10679     * @param obj The entry object
10680     * @return If true, the entry is set to display all characters
10681     * as asterisks (*).
10682     *
10683     * @see elm_entry_password_set()
10684     */
10685    EAPI Eina_Bool    elm_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10686    /**
10687     * This sets the text displayed within the entry to @p entry.
10688     *
10689     * @param obj The entry object
10690     * @param entry The text to be displayed
10691     *
10692     * @deprecated Use elm_object_text_set() instead.
10693     */
10694    EAPI void         elm_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
10695    /**
10696     * This returns the text currently shown in object @p entry.
10697     * See also elm_entry_entry_set().
10698     *
10699     * @param obj The entry object
10700     * @return The currently displayed text or NULL on failure
10701     *
10702     * @deprecated Use elm_object_text_get() instead.
10703     */
10704    EAPI const char  *elm_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10705    /**
10706     * Appends @p entry to the text of the entry.
10707     *
10708     * Adds the text in @p entry to the end of any text already present in the
10709     * widget.
10710     *
10711     * The appended text is subject to any filters set for the widget.
10712     *
10713     * @param obj The entry object
10714     * @param entry The text to be displayed
10715     *
10716     * @see elm_entry_text_filter_append()
10717     */
10718    EAPI void         elm_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
10719    /**
10720     * Gets whether the entry is empty.
10721     *
10722     * Empty means no text at all. If there are any markup tags, like an item
10723     * tag for which no provider finds anything, and no text is displayed, this
10724     * function still returns EINA_FALSE.
10725     *
10726     * @param obj The entry object
10727     * @return EINA_TRUE if the entry is empty, EINA_FALSE otherwise.
10728     */
10729    EAPI Eina_Bool    elm_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10730    /**
10731     * Gets any selected text within the entry.
10732     *
10733     * If there's any selected text in the entry, this function returns it as
10734     * a string in markup format. NULL is returned if no selection exists or
10735     * if an error occurred.
10736     *
10737     * The returned value points to an internal string and should not be freed
10738     * or modified in any way. If the @p entry object is deleted or its
10739     * contents are changed, the returned pointer should be considered invalid.
10740     *
10741     * @param obj The entry object
10742     * @return The selected text within the entry or NULL on failure
10743     */
10744    EAPI const char  *elm_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10745    /**
10746     * Inserts the given text into the entry at the current cursor position.
10747     *
10748     * This inserts text at the cursor position as if it was typed
10749     * by the user (note that this also allows markup which a user
10750     * can't just "type" as it would be converted to escaped text, so this
10751     * call can be used to insert things like emoticon items or bold push/pop
10752     * tags, other font and color change tags etc.)
10753     *
10754     * If any selection exists, it will be replaced by the inserted text.
10755     *
10756     * The inserted text is subject to any filters set for the widget.
10757     *
10758     * @param obj The entry object
10759     * @param entry The text to insert
10760     *
10761     * @see elm_entry_text_filter_append()
10762     */
10763    EAPI void         elm_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
10764    /**
10765     * Set the line wrap type to use on multi-line entries.
10766     *
10767     * Sets the wrap type used by the entry to any of the specified in
10768     * #Elm_Wrap_Type. This tells how the text will be implicitly cut into a new
10769     * line (without inserting a line break or paragraph separator) when it
10770     * reaches the far edge of the widget.
10771     *
10772     * Note that this only makes sense for multi-line entries. A widget set
10773     * to be single line will never wrap.
10774     *
10775     * @param obj The entry object
10776     * @param wrap The wrap mode to use. See #Elm_Wrap_Type for details on them
10777     */
10778    EAPI void         elm_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
10779    /**
10780     * Gets the wrap mode the entry was set to use.
10781     *
10782     * @param obj The entry object
10783     * @return Wrap type
10784     *
10785     * @see also elm_entry_line_wrap_set()
10786     */
10787    EAPI Elm_Wrap_Type elm_entry_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10788    /**
10789     * Sets if the entry is to be editable or not.
10790     *
10791     * By default, entries are editable and when focused, any text input by the
10792     * user will be inserted at the current cursor position. But calling this
10793     * function with @p editable as EINA_FALSE will prevent the user from
10794     * inputting text into the entry.
10795     *
10796     * The only way to change the text of a non-editable entry is to use
10797     * elm_object_text_set(), elm_entry_entry_insert() and other related
10798     * functions.
10799     *
10800     * @param obj The entry object
10801     * @param editable If EINA_TRUE, user input will be inserted in the entry,
10802     * if not, the entry is read-only and no user input is allowed.
10803     */
10804    EAPI void         elm_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
10805    /**
10806     * Gets whether the entry is editable or not.
10807     *
10808     * @param obj The entry object
10809     * @return If true, the entry is editable by the user.
10810     * If false, it is not editable by the user
10811     *
10812     * @see elm_entry_editable_set()
10813     */
10814    EAPI Eina_Bool    elm_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10815    /**
10816     * This drops any existing text selection within the entry.
10817     *
10818     * @param obj The entry object
10819     */
10820    EAPI void         elm_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
10821    /**
10822     * This selects all text within the entry.
10823     *
10824     * @param obj The entry object
10825     */
10826    EAPI void         elm_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
10827    /**
10828     * This moves the cursor one place to the right within the entry.
10829     *
10830     * @param obj The entry object
10831     * @return EINA_TRUE upon success, EINA_FALSE upon failure
10832     */
10833    EAPI Eina_Bool    elm_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
10834    /**
10835     * This moves the cursor one place to the left within the entry.
10836     *
10837     * @param obj The entry object
10838     * @return EINA_TRUE upon success, EINA_FALSE upon failure
10839     */
10840    EAPI Eina_Bool    elm_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
10841    /**
10842     * This moves the cursor one line up within the entry.
10843     *
10844     * @param obj The entry object
10845     * @return EINA_TRUE upon success, EINA_FALSE upon failure
10846     */
10847    EAPI Eina_Bool    elm_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
10848    /**
10849     * This moves the cursor one line down within the entry.
10850     *
10851     * @param obj The entry object
10852     * @return EINA_TRUE upon success, EINA_FALSE upon failure
10853     */
10854    EAPI Eina_Bool    elm_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
10855    /**
10856     * This moves the cursor to the beginning of the entry.
10857     *
10858     * @param obj The entry object
10859     */
10860    EAPI void         elm_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
10861    /**
10862     * This moves the cursor to the end of the entry.
10863     *
10864     * @param obj The entry object
10865     */
10866    EAPI void         elm_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
10867    /**
10868     * This moves the cursor to the beginning of the current line.
10869     *
10870     * @param obj The entry object
10871     */
10872    EAPI void         elm_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
10873    /**
10874     * This moves the cursor to the end of the current line.
10875     *
10876     * @param obj The entry object
10877     */
10878    EAPI void         elm_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
10879    /**
10880     * This begins a selection within the entry as though
10881     * the user were holding down the mouse button to make a selection.
10882     *
10883     * @param obj The entry object
10884     */
10885    EAPI void         elm_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
10886    /**
10887     * This ends a selection within the entry as though
10888     * the user had just released the mouse button while making a selection.
10889     *
10890     * @param obj The entry object
10891     */
10892    EAPI void         elm_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
10893    /**
10894     * Gets whether a format node exists at the current cursor position.
10895     *
10896     * A format node is anything that defines how the text is rendered. It can
10897     * be a visible format node, such as a line break or a paragraph separator,
10898     * or an invisible one, such as bold begin or end tag.
10899     * This function returns whether any format node exists at the current
10900     * cursor position.
10901     *
10902     * @param obj The entry object
10903     * @return EINA_TRUE if the current cursor position contains a format node,
10904     * EINA_FALSE otherwise.
10905     *
10906     * @see elm_entry_cursor_is_visible_format_get()
10907     */
10908    EAPI Eina_Bool    elm_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10909    /**
10910     * Gets if the current cursor position holds a visible format node.
10911     *
10912     * @param obj The entry object
10913     * @return EINA_TRUE if the current cursor is a visible format, EINA_FALSE
10914     * if it's an invisible one or no format exists.
10915     *
10916     * @see elm_entry_cursor_is_format_get()
10917     */
10918    EAPI Eina_Bool    elm_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10919    /**
10920     * Gets the character pointed by the cursor at its current position.
10921     *
10922     * This function returns a string with the utf8 character stored at the
10923     * current cursor position.
10924     * Only the text is returned, any format that may exist will not be part
10925     * of the return value.
10926     *
10927     * @param obj The entry object
10928     * @return The text pointed by the cursors.
10929     */
10930    EAPI const char  *elm_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10931    /**
10932     * This function returns the geometry of the cursor.
10933     *
10934     * It's useful if you want to draw something on the cursor (or where it is),
10935     * or for example in the case of scrolled entry where you want to show the
10936     * cursor.
10937     *
10938     * @param obj The entry object
10939     * @param x returned geometry
10940     * @param y returned geometry
10941     * @param w returned geometry
10942     * @param h returned geometry
10943     * @return EINA_TRUE upon success, EINA_FALSE upon failure
10944     */
10945    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);
10946    /**
10947     * Sets the cursor position in the entry to the given value
10948     *
10949     * The value in @p pos is the index of the character position within the
10950     * contents of the string as returned by elm_entry_cursor_pos_get().
10951     *
10952     * @param obj The entry object
10953     * @param pos The position of the cursor
10954     */
10955    EAPI void         elm_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
10956    /**
10957     * Retrieves the current position of the cursor in the entry
10958     *
10959     * @param obj The entry object
10960     * @return The cursor position
10961     */
10962    EAPI int          elm_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10963    /**
10964     * This executes a "cut" action on the selected text in the entry.
10965     *
10966     * @param obj The entry object
10967     */
10968    EAPI void         elm_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
10969    /**
10970     * This executes a "copy" action on the selected text in the entry.
10971     *
10972     * @param obj The entry object
10973     */
10974    EAPI void         elm_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
10975    /**
10976     * This executes a "paste" action in the entry.
10977     *
10978     * @param obj The entry object
10979     */
10980    EAPI void         elm_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
10981    /**
10982     * This clears and frees the items in a entry's contextual (longpress)
10983     * menu.
10984     *
10985     * @param obj The entry object
10986     *
10987     * @see elm_entry_context_menu_item_add()
10988     */
10989    EAPI void         elm_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
10990    /**
10991     * This adds an item to the entry's contextual menu.
10992     *
10993     * A longpress on an entry will make the contextual menu show up, if this
10994     * hasn't been disabled with elm_entry_context_menu_disabled_set().
10995     * By default, this menu provides a few options like enabling selection mode,
10996     * which is useful on embedded devices that need to be explicit about it,
10997     * and when a selection exists it also shows the copy and cut actions.
10998     *
10999     * With this function, developers can add other options to this menu to
11000     * perform any action they deem necessary.
11001     *
11002     * @param obj The entry object
11003     * @param label The item's text label
11004     * @param icon_file The item's icon file
11005     * @param icon_type The item's icon type
11006     * @param func The callback to execute when the item is clicked
11007     * @param data The data to associate with the item for related functions
11008     */
11009    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);
11010    /**
11011     * This disables the entry's contextual (longpress) menu.
11012     *
11013     * @param obj The entry object
11014     * @param disabled If true, the menu is disabled
11015     */
11016    EAPI void         elm_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
11017    /**
11018     * This returns whether the entry's contextual (longpress) menu is
11019     * disabled.
11020     *
11021     * @param obj The entry object
11022     * @return If true, the menu is disabled
11023     */
11024    EAPI Eina_Bool    elm_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11025    /**
11026     * This appends a custom item provider to the list for that entry
11027     *
11028     * This appends the given callback. The list is walked from beginning to end
11029     * with each function called given the item href string in the text. If the
11030     * function returns an object handle other than NULL (it should create an
11031     * object to do this), then this object is used to replace that item. If
11032     * not the next provider is called until one provides an item object, or the
11033     * default provider in entry does.
11034     *
11035     * @param obj The entry object
11036     * @param func The function called to provide the item object
11037     * @param data The data passed to @p func
11038     *
11039     * @see @ref entry-items
11040     */
11041    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);
11042    /**
11043     * This prepends a custom item provider to the list for that entry
11044     *
11045     * This prepends the given callback. See elm_entry_item_provider_append() for
11046     * more information
11047     *
11048     * @param obj The entry object
11049     * @param func The function called to provide the item object
11050     * @param data The data passed to @p func
11051     */
11052    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);
11053    /**
11054     * This removes a custom item provider to the list for that entry
11055     *
11056     * This removes the given callback. See elm_entry_item_provider_append() for
11057     * more information
11058     *
11059     * @param obj The entry object
11060     * @param func The function called to provide the item object
11061     * @param data The data passed to @p func
11062     */
11063    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);
11064    /**
11065     * Append a filter function for text inserted in the entry
11066     *
11067     * Append the given callback to the list. This functions will be called
11068     * whenever any text is inserted into the entry, with the text to be inserted
11069     * as a parameter. The callback function is free to alter the text in any way
11070     * it wants, but it must remember to free the given pointer and update it.
11071     * If the new text is to be discarded, the function can free it and set its
11072     * text parameter to NULL. This will also prevent any following filters from
11073     * being called.
11074     *
11075     * @param obj The entry object
11076     * @param func The function to use as text filter
11077     * @param data User data to pass to @p func
11078     */
11079    EAPI void         elm_entry_text_filter_append(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11080    /**
11081     * Prepend a filter function for text insdrted in the entry
11082     *
11083     * Prepend the given callback to the list. See elm_entry_text_filter_append()
11084     * for more information
11085     *
11086     * @param obj The entry object
11087     * @param func The function to use as text filter
11088     * @param data User data to pass to @p func
11089     */
11090    EAPI void         elm_entry_text_filter_prepend(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11091    /**
11092     * Remove a filter from the list
11093     *
11094     * Removes the given callback from the filter list. See
11095     * elm_entry_text_filter_append() for more information.
11096     *
11097     * @param obj The entry object
11098     * @param func The filter function to remove
11099     * @param data The user data passed when adding the function
11100     */
11101    EAPI void         elm_entry_text_filter_remove(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11102    /**
11103     * This converts a markup (HTML-like) string into UTF-8.
11104     *
11105     * The returned string is a malloc'ed buffer and it should be freed when
11106     * not needed anymore.
11107     *
11108     * @param s The string (in markup) to be converted
11109     * @return The converted string (in UTF-8). It should be freed.
11110     */
11111    EAPI char        *elm_entry_markup_to_utf8(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
11112    /**
11113     * This converts a UTF-8 string into markup (HTML-like).
11114     *
11115     * The returned string is a malloc'ed buffer and it should be freed when
11116     * not needed anymore.
11117     *
11118     * @param s The string (in UTF-8) to be converted
11119     * @return The converted string (in markup). It should be freed.
11120     */
11121    EAPI char        *elm_entry_utf8_to_markup(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
11122    /**
11123     * This sets the file (and implicitly loads it) for the text to display and
11124     * then edit. All changes are written back to the file after a short delay if
11125     * the entry object is set to autosave (which is the default).
11126     *
11127     * If the entry had any other file set previously, any changes made to it
11128     * will be saved if the autosave feature is enabled, otherwise, the file
11129     * will be silently discarded and any non-saved changes will be lost.
11130     *
11131     * @param obj The entry object
11132     * @param file The path to the file to load and save
11133     * @param format The file format
11134     */
11135    EAPI void         elm_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
11136    /**
11137     * Gets the file being edited by the entry.
11138     *
11139     * This function can be used to retrieve any file set on the entry for
11140     * edition, along with the format used to load and save it.
11141     *
11142     * @param obj The entry object
11143     * @param file The path to the file to load and save
11144     * @param format The file format
11145     */
11146    EAPI void         elm_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
11147    /**
11148     * This function writes any changes made to the file set with
11149     * elm_entry_file_set()
11150     *
11151     * @param obj The entry object
11152     */
11153    EAPI void         elm_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
11154    /**
11155     * This sets the entry object to 'autosave' the loaded text file or not.
11156     *
11157     * @param obj The entry object
11158     * @param autosave Autosave the loaded file or not
11159     *
11160     * @see elm_entry_file_set()
11161     */
11162    EAPI void         elm_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
11163    /**
11164     * This gets the entry object's 'autosave' status.
11165     *
11166     * @param obj The entry object
11167     * @return Autosave the loaded file or not
11168     *
11169     * @see elm_entry_file_set()
11170     */
11171    EAPI Eina_Bool    elm_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11172    /**
11173     * Control pasting of text and images for the widget.
11174     *
11175     * Normally the entry allows both text and images to be pasted.  By setting
11176     * textonly to be true, this prevents images from being pasted.
11177     *
11178     * Note this only changes the behaviour of text.
11179     *
11180     * @param obj The entry object
11181     * @param textonly paste mode - EINA_TRUE is text only, EINA_FALSE is
11182     * text+image+other.
11183     */
11184    EAPI void         elm_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
11185    /**
11186     * Getting elm_entry text paste/drop mode.
11187     *
11188     * In textonly mode, only text may be pasted or dropped into the widget.
11189     *
11190     * @param obj The entry object
11191     * @return If the widget only accepts text from pastes.
11192     */
11193    EAPI Eina_Bool    elm_entry_cnp_textonly_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11194    /**
11195     * Enable or disable scrolling in entry
11196     *
11197     * Normally the entry is not scrollable unless you enable it with this call.
11198     *
11199     * @param obj The entry object
11200     * @param scroll EINA_TRUE if it is to be scrollable, EINA_FALSE otherwise
11201     */
11202    EAPI void         elm_entry_scrollable_set(Evas_Object *obj, Eina_Bool scroll);
11203    /**
11204     * Get the scrollable state of the entry
11205     *
11206     * Normally the entry is not scrollable. This gets the scrollable state
11207     * of the entry. See elm_entry_scrollable_set() for more information.
11208     *
11209     * @param obj The entry object
11210     * @return The scrollable state
11211     */
11212    EAPI Eina_Bool    elm_entry_scrollable_get(const Evas_Object *obj);
11213    /**
11214     * This sets a widget to be displayed to the left of a scrolled entry.
11215     *
11216     * @param obj The scrolled entry object
11217     * @param icon The widget to display on the left side of the scrolled
11218     * entry.
11219     *
11220     * @note A previously set widget will be destroyed.
11221     * @note If the object being set does not have minimum size hints set,
11222     * it won't get properly displayed.
11223     *
11224     * @see elm_entry_end_set()
11225     */
11226    EAPI void         elm_entry_icon_set(Evas_Object *obj, Evas_Object *icon);
11227    /**
11228     * Gets the leftmost widget of the scrolled entry. This object is
11229     * owned by the scrolled entry and should not be modified.
11230     *
11231     * @param obj The scrolled entry object
11232     * @return the left widget inside the scroller
11233     */
11234    EAPI Evas_Object *elm_entry_icon_get(const Evas_Object *obj);
11235    /**
11236     * Unset the leftmost widget of the scrolled entry, unparenting and
11237     * returning it.
11238     *
11239     * @param obj The scrolled entry object
11240     * @return the previously set icon sub-object of this entry, on
11241     * success.
11242     *
11243     * @see elm_entry_icon_set()
11244     */
11245    EAPI Evas_Object *elm_entry_icon_unset(Evas_Object *obj);
11246    /**
11247     * Sets the visibility of the left-side widget of the scrolled entry,
11248     * set by elm_entry_icon_set().
11249     *
11250     * @param obj The scrolled entry object
11251     * @param setting EINA_TRUE if the object should be displayed,
11252     * EINA_FALSE if not.
11253     */
11254    EAPI void         elm_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting);
11255    /**
11256     * This sets a widget to be displayed to the end of a scrolled entry.
11257     *
11258     * @param obj The scrolled entry object
11259     * @param end The widget to display on the right side of the scrolled
11260     * entry.
11261     *
11262     * @note A previously set widget will be destroyed.
11263     * @note If the object being set does not have minimum size hints set,
11264     * it won't get properly displayed.
11265     *
11266     * @see elm_entry_icon_set
11267     */
11268    EAPI void         elm_entry_end_set(Evas_Object *obj, Evas_Object *end);
11269    /**
11270     * Gets the endmost widget of the scrolled entry. This object is owned
11271     * by the scrolled entry and should not be modified.
11272     *
11273     * @param obj The scrolled entry object
11274     * @return the right widget inside the scroller
11275     */
11276    EAPI Evas_Object *elm_entry_end_get(const Evas_Object *obj);
11277    /**
11278     * Unset the endmost widget of the scrolled entry, unparenting and
11279     * returning it.
11280     *
11281     * @param obj The scrolled entry object
11282     * @return the previously set icon sub-object of this entry, on
11283     * success.
11284     *
11285     * @see elm_entry_icon_set()
11286     */
11287    EAPI Evas_Object *elm_entry_end_unset(Evas_Object *obj);
11288    /**
11289     * Sets the visibility of the end widget of the scrolled entry, set by
11290     * elm_entry_end_set().
11291     *
11292     * @param obj The scrolled entry object
11293     * @param setting EINA_TRUE if the object should be displayed,
11294     * EINA_FALSE if not.
11295     */
11296    EAPI void         elm_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting);
11297    /**
11298     * This sets the scrolled entry's scrollbar policy (ie. enabling/disabling
11299     * them).
11300     *
11301     * Setting an entry to single-line mode with elm_entry_single_line_set()
11302     * will automatically disable the display of scrollbars when the entry
11303     * moves inside its scroller.
11304     *
11305     * @param obj The scrolled entry object
11306     * @param h The horizontal scrollbar policy to apply
11307     * @param v The vertical scrollbar policy to apply
11308     */
11309    EAPI void         elm_entry_scrollbar_policy_set(Evas_Object *obj, Elm_Scroller_Policy h, Elm_Scroller_Policy v);
11310    /**
11311     * This enables/disables bouncing within the entry.
11312     *
11313     * This function sets whether the entry will bounce when scrolling reaches
11314     * the end of the contained entry.
11315     *
11316     * @param obj The scrolled entry object
11317     * @param h The horizontal bounce state
11318     * @param v The vertical bounce state
11319     */
11320    EAPI void         elm_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
11321    /**
11322     * Get the bounce mode
11323     *
11324     * @param obj The Entry object
11325     * @param h_bounce Allow bounce horizontally
11326     * @param v_bounce Allow bounce vertically
11327     */
11328    EAPI void         elm_entry_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
11329
11330    /* pre-made filters for entries */
11331    /**
11332     * @typedef Elm_Entry_Filter_Limit_Size
11333     *
11334     * Data for the elm_entry_filter_limit_size() entry filter.
11335     */
11336    typedef struct _Elm_Entry_Filter_Limit_Size Elm_Entry_Filter_Limit_Size;
11337    /**
11338     * @struct _Elm_Entry_Filter_Limit_Size
11339     *
11340     * Data for the elm_entry_filter_limit_size() entry filter.
11341     */
11342    struct _Elm_Entry_Filter_Limit_Size
11343      {
11344         int max_char_count; /**< The maximum number of characters allowed. */
11345         int max_byte_count; /**< The maximum number of bytes allowed*/
11346      };
11347    /**
11348     * Filter inserted text based on user defined character and byte limits
11349     *
11350     * Add this filter to an entry to limit the characters that it will accept
11351     * based the the contents of the provided #Elm_Entry_Filter_Limit_Size.
11352     * The funtion works on the UTF-8 representation of the string, converting
11353     * it from the set markup, thus not accounting for any format in it.
11354     *
11355     * The user must create an #Elm_Entry_Filter_Limit_Size structure and pass
11356     * it as data when setting the filter. In it, it's possible to set limits
11357     * by character count or bytes (any of them is disabled if 0), and both can
11358     * be set at the same time. In that case, it first checks for characters,
11359     * then bytes.
11360     *
11361     * The function will cut the inserted text in order to allow only the first
11362     * number of characters that are still allowed. The cut is made in
11363     * characters, even when limiting by bytes, in order to always contain
11364     * valid ones and avoid half unicode characters making it in.
11365     *
11366     * This filter, like any others, does not apply when setting the entry text
11367     * directly with elm_object_text_set() (or the deprecated
11368     * elm_entry_entry_set()).
11369     */
11370    EAPI void         elm_entry_filter_limit_size(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 2, 3);
11371    /**
11372     * @typedef Elm_Entry_Filter_Accept_Set
11373     *
11374     * Data for the elm_entry_filter_accept_set() entry filter.
11375     */
11376    typedef struct _Elm_Entry_Filter_Accept_Set Elm_Entry_Filter_Accept_Set;
11377    /**
11378     * @struct _Elm_Entry_Filter_Accept_Set
11379     *
11380     * Data for the elm_entry_filter_accept_set() entry filter.
11381     */
11382    struct _Elm_Entry_Filter_Accept_Set
11383      {
11384         const char *accepted; /**< Set of characters accepted in the entry. */
11385         const char *rejected; /**< Set of characters rejected from the entry. */
11386      };
11387    /**
11388     * Filter inserted text based on accepted or rejected sets of characters
11389     *
11390     * Add this filter to an entry to restrict the set of accepted characters
11391     * based on the sets in the provided #Elm_Entry_Filter_Accept_Set.
11392     * This structure contains both accepted and rejected sets, but they are
11393     * mutually exclusive.
11394     *
11395     * The @c accepted set takes preference, so if it is set, the filter will
11396     * only work based on the accepted characters, ignoring anything in the
11397     * @c rejected value. If @c accepted is @c NULL, then @c rejected is used.
11398     *
11399     * In both cases, the function filters by matching utf8 characters to the
11400     * raw markup text, so it can be used to remove formatting tags.
11401     *
11402     * This filter, like any others, does not apply when setting the entry text
11403     * directly with elm_object_text_set() (or the deprecated
11404     * elm_entry_entry_set()).
11405     */
11406    EAPI void         elm_entry_filter_accept_set(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 3);
11407    /**
11408     * Set the input panel layout of the entry
11409     *
11410     * @param obj The entry object
11411     * @param layout layout type
11412     */
11413    EAPI void elm_entry_input_panel_layout_set(Evas_Object *obj, Elm_Input_Panel_Layout layout) EINA_ARG_NONNULL(1);
11414    /**
11415     * Get the input panel layout of the entry
11416     *
11417     * @param obj The entry object
11418     * @return layout type
11419     *
11420     * @see elm_entry_input_panel_layout_set
11421     */
11422    EAPI Elm_Input_Panel_Layout elm_entry_input_panel_layout_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
11423    /**
11424     * @}
11425     */
11426
11427    /* composite widgets - these basically put together basic widgets above
11428     * in convenient packages that do more than basic stuff */
11429
11430    /* anchorview */
11431    /**
11432     * @defgroup Anchorview Anchorview
11433     *
11434     * @image html img/widget/anchorview/preview-00.png
11435     * @image latex img/widget/anchorview/preview-00.eps
11436     *
11437     * Anchorview is for displaying text that contains markup with anchors
11438     * like <c>\<a href=1234\>something\</\></c> in it.
11439     *
11440     * Besides being styled differently, the anchorview widget provides the
11441     * necessary functionality so that clicking on these anchors brings up a
11442     * popup with user defined content such as "call", "add to contacts" or
11443     * "open web page". This popup is provided using the @ref Hover widget.
11444     *
11445     * This widget is very similar to @ref Anchorblock, so refer to that
11446     * widget for an example. The only difference Anchorview has is that the
11447     * widget is already provided with scrolling functionality, so if the
11448     * text set to it is too large to fit in the given space, it will scroll,
11449     * whereas the @ref Anchorblock widget will keep growing to ensure all the
11450     * text can be displayed.
11451     *
11452     * This widget emits the following signals:
11453     * @li "anchor,clicked": will be called when an anchor is clicked. The
11454     * @p event_info parameter on the callback will be a pointer of type
11455     * ::Elm_Entry_Anchorview_Info.
11456     *
11457     * See @ref Anchorblock for an example on how to use both of them.
11458     *
11459     * @see Anchorblock
11460     * @see Entry
11461     * @see Hover
11462     *
11463     * @{
11464     */
11465    /**
11466     * @typedef Elm_Entry_Anchorview_Info
11467     *
11468     * The info sent in the callback for "anchor,clicked" signals emitted by
11469     * the Anchorview widget.
11470     */
11471    typedef struct _Elm_Entry_Anchorview_Info Elm_Entry_Anchorview_Info;
11472    /**
11473     * @struct _Elm_Entry_Anchorview_Info
11474     *
11475     * The info sent in the callback for "anchor,clicked" signals emitted by
11476     * the Anchorview widget.
11477     */
11478    struct _Elm_Entry_Anchorview_Info
11479      {
11480         const char     *name; /**< Name of the anchor, as indicated in its href
11481                                    attribute */
11482         int             button; /**< The mouse button used to click on it */
11483         Evas_Object    *hover; /**< The hover object to use for the popup */
11484         struct {
11485              Evas_Coord    x, y, w, h;
11486         } anchor, /**< Geometry selection of text used as anchor */
11487           hover_parent; /**< Geometry of the object used as parent by the
11488                              hover */
11489         Eina_Bool       hover_left : 1; /**< Hint indicating if there's space
11490                                              for content on the left side of
11491                                              the hover. Before calling the
11492                                              callback, the widget will make the
11493                                              necessary calculations to check
11494                                              which sides are fit to be set with
11495                                              content, based on the position the
11496                                              hover is activated and its distance
11497                                              to the edges of its parent object
11498                                              */
11499         Eina_Bool       hover_right : 1; /**< Hint indicating content fits on
11500                                               the right side of the hover.
11501                                               See @ref hover_left */
11502         Eina_Bool       hover_top : 1; /**< Hint indicating content fits on top
11503                                             of the hover. See @ref hover_left */
11504         Eina_Bool       hover_bottom : 1; /**< Hint indicating content fits
11505                                                below the hover. See @ref
11506                                                hover_left */
11507      };
11508    /**
11509     * Add a new Anchorview object
11510     *
11511     * @param parent The parent object
11512     * @return The new object or NULL if it cannot be created
11513     */
11514    EAPI Evas_Object *elm_anchorview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11515    /**
11516     * Set the text to show in the anchorview
11517     *
11518     * Sets the text of the anchorview to @p text. This text can include markup
11519     * format tags, including <c>\<a href=anchorname\></c> to begin a segment of
11520     * text that will be specially styled and react to click events, ended with
11521     * either of \</a\> or \</\>. When clicked, the anchor will emit an
11522     * "anchor,clicked" signal that you can attach a callback to with
11523     * evas_object_smart_callback_add(). The name of the anchor given in the
11524     * event info struct will be the one set in the href attribute, in this
11525     * case, anchorname.
11526     *
11527     * Other markup can be used to style the text in different ways, but it's
11528     * up to the style defined in the theme which tags do what.
11529     * @deprecated use elm_object_text_set() instead.
11530     */
11531    EINA_DEPRECATED EAPI void         elm_anchorview_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
11532    /**
11533     * Get the markup text set for the anchorview
11534     *
11535     * Retrieves the text set on the anchorview, with markup tags included.
11536     *
11537     * @param obj The anchorview object
11538     * @return The markup text set or @c NULL if nothing was set or an error
11539     * occurred
11540     * @deprecated use elm_object_text_set() instead.
11541     */
11542    EINA_DEPRECATED EAPI const char  *elm_anchorview_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11543    /**
11544     * Set the parent of the hover popup
11545     *
11546     * Sets the parent object to use by the hover created by the anchorview
11547     * when an anchor is clicked. See @ref Hover for more details on this.
11548     * If no parent is set, the same anchorview object will be used.
11549     *
11550     * @param obj The anchorview object
11551     * @param parent The object to use as parent for the hover
11552     */
11553    EAPI void         elm_anchorview_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
11554    /**
11555     * Get the parent of the hover popup
11556     *
11557     * Get the object used as parent for the hover created by the anchorview
11558     * widget. See @ref Hover for more details on this.
11559     *
11560     * @param obj The anchorview object
11561     * @return The object used as parent for the hover, NULL if none is set.
11562     */
11563    EAPI Evas_Object *elm_anchorview_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11564    /**
11565     * Set the style that the hover should use
11566     *
11567     * When creating the popup hover, anchorview will request that it's
11568     * themed according to @p style.
11569     *
11570     * @param obj The anchorview object
11571     * @param style The style to use for the underlying hover
11572     *
11573     * @see elm_object_style_set()
11574     */
11575    EAPI void         elm_anchorview_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
11576    /**
11577     * Get the style that the hover should use
11578     *
11579     * Get the style the hover created by anchorview will use.
11580     *
11581     * @param obj The anchorview object
11582     * @return The style to use by the hover. NULL means the default is used.
11583     *
11584     * @see elm_object_style_set()
11585     */
11586    EAPI const char  *elm_anchorview_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11587    /**
11588     * Ends the hover popup in the anchorview
11589     *
11590     * When an anchor is clicked, the anchorview widget will create a hover
11591     * object to use as a popup with user provided content. This function
11592     * terminates this popup, returning the anchorview to its normal state.
11593     *
11594     * @param obj The anchorview object
11595     */
11596    EAPI void         elm_anchorview_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
11597    /**
11598     * Set bouncing behaviour when the scrolled content reaches an edge
11599     *
11600     * Tell the internal scroller object whether it should bounce or not
11601     * when it reaches the respective edges for each axis.
11602     *
11603     * @param obj The anchorview object
11604     * @param h_bounce Whether to bounce or not in the horizontal axis
11605     * @param v_bounce Whether to bounce or not in the vertical axis
11606     *
11607     * @see elm_scroller_bounce_set()
11608     */
11609    EAPI void         elm_anchorview_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
11610    /**
11611     * Get the set bouncing behaviour of the internal scroller
11612     *
11613     * Get whether the internal scroller should bounce when the edge of each
11614     * axis is reached scrolling.
11615     *
11616     * @param obj The anchorview object
11617     * @param h_bounce Pointer where to store the bounce state of the horizontal
11618     *                 axis
11619     * @param v_bounce Pointer where to store the bounce state of the vertical
11620     *                 axis
11621     *
11622     * @see elm_scroller_bounce_get()
11623     */
11624    EAPI void         elm_anchorview_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
11625    /**
11626     * Appends a custom item provider to the given anchorview
11627     *
11628     * Appends the given function to the list of items providers. This list is
11629     * called, one function at a time, with the given @p data pointer, the
11630     * anchorview object and, in the @p item parameter, the item name as
11631     * referenced in its href string. Following functions in the list will be
11632     * called in order until one of them returns something different to NULL,
11633     * which should be an Evas_Object which will be used in place of the item
11634     * element.
11635     *
11636     * Items in the markup text take the form \<item relsize=16x16 vsize=full
11637     * href=item/name\>\</item\>
11638     *
11639     * @param obj The anchorview object
11640     * @param func The function to add to the list of providers
11641     * @param data User data that will be passed to the callback function
11642     *
11643     * @see elm_entry_item_provider_append()
11644     */
11645    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);
11646    /**
11647     * Prepend a custom item provider to the given anchorview
11648     *
11649     * Like elm_anchorview_item_provider_append(), but it adds the function
11650     * @p func to the beginning of the list, instead of the end.
11651     *
11652     * @param obj The anchorview object
11653     * @param func The function to add to the list of providers
11654     * @param data User data that will be passed to the callback function
11655     */
11656    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);
11657    /**
11658     * Remove a custom item provider from the list of the given anchorview
11659     *
11660     * Removes the function and data pairing that matches @p func and @p data.
11661     * That is, unless the same function and same user data are given, the
11662     * function will not be removed from the list. This allows us to add the
11663     * same callback several times, with different @p data pointers and be
11664     * able to remove them later without conflicts.
11665     *
11666     * @param obj The anchorview object
11667     * @param func The function to remove from the list
11668     * @param data The data matching the function to remove from the list
11669     */
11670    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);
11671    /**
11672     * @}
11673     */
11674
11675    /* anchorblock */
11676    /**
11677     * @defgroup Anchorblock Anchorblock
11678     *
11679     * @image html img/widget/anchorblock/preview-00.png
11680     * @image latex img/widget/anchorblock/preview-00.eps
11681     *
11682     * Anchorblock is for displaying text that contains markup with anchors
11683     * like <c>\<a href=1234\>something\</\></c> in it.
11684     *
11685     * Besides being styled differently, the anchorblock widget provides the
11686     * necessary functionality so that clicking on these anchors brings up a
11687     * popup with user defined content such as "call", "add to contacts" or
11688     * "open web page". This popup is provided using the @ref Hover widget.
11689     *
11690     * This widget emits the following signals:
11691     * @li "anchor,clicked": will be called when an anchor is clicked. The
11692     * @p event_info parameter on the callback will be a pointer of type
11693     * ::Elm_Entry_Anchorblock_Info.
11694     *
11695     * @see Anchorview
11696     * @see Entry
11697     * @see Hover
11698     *
11699     * Since examples are usually better than plain words, we might as well
11700     * try @ref tutorial_anchorblock_example "one".
11701     */
11702    /**
11703     * @addtogroup Anchorblock
11704     * @{
11705     */
11706    /**
11707     * @typedef Elm_Entry_Anchorblock_Info
11708     *
11709     * The info sent in the callback for "anchor,clicked" signals emitted by
11710     * the Anchorblock widget.
11711     */
11712    typedef struct _Elm_Entry_Anchorblock_Info Elm_Entry_Anchorblock_Info;
11713    /**
11714     * @struct _Elm_Entry_Anchorblock_Info
11715     *
11716     * The info sent in the callback for "anchor,clicked" signals emitted by
11717     * the Anchorblock widget.
11718     */
11719    struct _Elm_Entry_Anchorblock_Info
11720      {
11721         const char     *name; /**< Name of the anchor, as indicated in its href
11722                                    attribute */
11723         int             button; /**< The mouse button used to click on it */
11724         Evas_Object    *hover; /**< The hover object to use for the popup */
11725         struct {
11726              Evas_Coord    x, y, w, h;
11727         } anchor, /**< Geometry selection of text used as anchor */
11728           hover_parent; /**< Geometry of the object used as parent by the
11729                              hover */
11730         Eina_Bool       hover_left : 1; /**< Hint indicating if there's space
11731                                              for content on the left side of
11732                                              the hover. Before calling the
11733                                              callback, the widget will make the
11734                                              necessary calculations to check
11735                                              which sides are fit to be set with
11736                                              content, based on the position the
11737                                              hover is activated and its distance
11738                                              to the edges of its parent object
11739                                              */
11740         Eina_Bool       hover_right : 1; /**< Hint indicating content fits on
11741                                               the right side of the hover.
11742                                               See @ref hover_left */
11743         Eina_Bool       hover_top : 1; /**< Hint indicating content fits on top
11744                                             of the hover. See @ref hover_left */
11745         Eina_Bool       hover_bottom : 1; /**< Hint indicating content fits
11746                                                below the hover. See @ref
11747                                                hover_left */
11748      };
11749    /**
11750     * Add a new Anchorblock object
11751     *
11752     * @param parent The parent object
11753     * @return The new object or NULL if it cannot be created
11754     */
11755    EAPI Evas_Object *elm_anchorblock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11756    /**
11757     * Set the text to show in the anchorblock
11758     *
11759     * Sets the text of the anchorblock to @p text. This text can include markup
11760     * format tags, including <c>\<a href=anchorname\></a></c> to begin a segment
11761     * of text that will be specially styled and react to click events, ended
11762     * with either of \</a\> or \</\>. When clicked, the anchor will emit an
11763     * "anchor,clicked" signal that you can attach a callback to with
11764     * evas_object_smart_callback_add(). The name of the anchor given in the
11765     * event info struct will be the one set in the href attribute, in this
11766     * case, anchorname.
11767     *
11768     * Other markup can be used to style the text in different ways, but it's
11769     * up to the style defined in the theme which tags do what.
11770     * @deprecated use elm_object_text_set() instead.
11771     */
11772    EINA_DEPRECATED EAPI void         elm_anchorblock_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
11773    /**
11774     * Get the markup text set for the anchorblock
11775     *
11776     * Retrieves the text set on the anchorblock, with markup tags included.
11777     *
11778     * @param obj The anchorblock object
11779     * @return The markup text set or @c NULL if nothing was set or an error
11780     * occurred
11781     * @deprecated use elm_object_text_set() instead.
11782     */
11783    EINA_DEPRECATED EAPI const char  *elm_anchorblock_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11784    /**
11785     * Set the parent of the hover popup
11786     *
11787     * Sets the parent object to use by the hover created by the anchorblock
11788     * when an anchor is clicked. See @ref Hover for more details on this.
11789     *
11790     * @param obj The anchorblock object
11791     * @param parent The object to use as parent for the hover
11792     */
11793    EAPI void         elm_anchorblock_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
11794    /**
11795     * Get the parent of the hover popup
11796     *
11797     * Get the object used as parent for the hover created by the anchorblock
11798     * widget. See @ref Hover for more details on this.
11799     * If no parent is set, the same anchorblock object will be used.
11800     *
11801     * @param obj The anchorblock object
11802     * @return The object used as parent for the hover, NULL if none is set.
11803     */
11804    EAPI Evas_Object *elm_anchorblock_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11805    /**
11806     * Set the style that the hover should use
11807     *
11808     * When creating the popup hover, anchorblock will request that it's
11809     * themed according to @p style.
11810     *
11811     * @param obj The anchorblock object
11812     * @param style The style to use for the underlying hover
11813     *
11814     * @see elm_object_style_set()
11815     */
11816    EAPI void         elm_anchorblock_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
11817    /**
11818     * Get the style that the hover should use
11819     *
11820     * Get the style the hover created by anchorblock will use.
11821     *
11822     * @param obj The anchorblock object
11823     * @return The style to use by the hover. NULL means the default is used.
11824     *
11825     * @see elm_object_style_set()
11826     */
11827    EAPI const char  *elm_anchorblock_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11828    /**
11829     * Ends the hover popup in the anchorblock
11830     *
11831     * When an anchor is clicked, the anchorblock widget will create a hover
11832     * object to use as a popup with user provided content. This function
11833     * terminates this popup, returning the anchorblock to its normal state.
11834     *
11835     * @param obj The anchorblock object
11836     */
11837    EAPI void         elm_anchorblock_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
11838    /**
11839     * Appends a custom item provider to the given anchorblock
11840     *
11841     * Appends the given function to the list of items providers. This list is
11842     * called, one function at a time, with the given @p data pointer, the
11843     * anchorblock object and, in the @p item parameter, the item name as
11844     * referenced in its href string. Following functions in the list will be
11845     * called in order until one of them returns something different to NULL,
11846     * which should be an Evas_Object which will be used in place of the item
11847     * element.
11848     *
11849     * Items in the markup text take the form \<item relsize=16x16 vsize=full
11850     * href=item/name\>\</item\>
11851     *
11852     * @param obj The anchorblock object
11853     * @param func The function to add to the list of providers
11854     * @param data User data that will be passed to the callback function
11855     *
11856     * @see elm_entry_item_provider_append()
11857     */
11858    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);
11859    /**
11860     * Prepend a custom item provider to the given anchorblock
11861     *
11862     * Like elm_anchorblock_item_provider_append(), but it adds the function
11863     * @p func to the beginning of the list, instead of the end.
11864     *
11865     * @param obj The anchorblock object
11866     * @param func The function to add to the list of providers
11867     * @param data User data that will be passed to the callback function
11868     */
11869    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);
11870    /**
11871     * Remove a custom item provider from the list of the given anchorblock
11872     *
11873     * Removes the function and data pairing that matches @p func and @p data.
11874     * That is, unless the same function and same user data are given, the
11875     * function will not be removed from the list. This allows us to add the
11876     * same callback several times, with different @p data pointers and be
11877     * able to remove them later without conflicts.
11878     *
11879     * @param obj The anchorblock object
11880     * @param func The function to remove from the list
11881     * @param data The data matching the function to remove from the list
11882     */
11883    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);
11884    /**
11885     * @}
11886     */
11887
11888    /**
11889     * @defgroup Bubble Bubble
11890     *
11891     * @image html img/widget/bubble/preview-00.png
11892     * @image latex img/widget/bubble/preview-00.eps
11893     * @image html img/widget/bubble/preview-01.png
11894     * @image latex img/widget/bubble/preview-01.eps
11895     * @image html img/widget/bubble/preview-02.png
11896     * @image latex img/widget/bubble/preview-02.eps
11897     *
11898     * @brief The Bubble is a widget to show text similarly to how speech is
11899     * represented in comics.
11900     *
11901     * The bubble widget contains 5 important visual elements:
11902     * @li The frame is a rectangle with rounded rectangles and an "arrow".
11903     * @li The @p icon is an image to which the frame's arrow points to.
11904     * @li The @p label is a text which appears to the right of the icon if the
11905     * corner is "top_left" or "bottom_left" and is right aligned to the frame
11906     * otherwise.
11907     * @li The @p info is a text which appears to the right of the label. Info's
11908     * font is of a ligther color than label.
11909     * @li The @p content is an evas object that is shown inside the frame.
11910     *
11911     * The position of the arrow, icon, label and info depends on which corner is
11912     * selected. The four available corners are:
11913     * @li "top_left" - Default
11914     * @li "top_right"
11915     * @li "bottom_left"
11916     * @li "bottom_right"
11917     *
11918     * Signals that you can add callbacks for are:
11919     * @li "clicked" - This is called when a user has clicked the bubble.
11920     *
11921     * For an example of using a buble see @ref bubble_01_example_page "this".
11922     *
11923     * @{
11924     */
11925    /**
11926     * Add a new bubble to the parent
11927     *
11928     * @param parent The parent object
11929     * @return The new object or NULL if it cannot be created
11930     *
11931     * This function adds a text bubble to the given parent evas object.
11932     */
11933    EAPI Evas_Object *elm_bubble_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11934    /**
11935     * Set the label of the bubble
11936     *
11937     * @param obj The bubble object
11938     * @param label The string to set in the label
11939     *
11940     * This function sets the title of the bubble. Where this appears depends on
11941     * the selected corner.
11942     * @deprecated use elm_object_text_set() instead.
11943     */
11944    EINA_DEPRECATED EAPI void         elm_bubble_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
11945    /**
11946     * Get the label of the bubble
11947     *
11948     * @param obj The bubble object
11949     * @return The string of set in the label
11950     *
11951     * This function gets the title of the bubble.
11952     * @deprecated use elm_object_text_get() instead.
11953     */
11954    EINA_DEPRECATED EAPI const char  *elm_bubble_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11955    /**
11956     * Set the info of the bubble
11957     *
11958     * @param obj The bubble object
11959     * @param info The given info about the bubble
11960     *
11961     * This function sets the info of the bubble. Where this appears depends on
11962     * the selected corner.
11963     * @deprecated use elm_object_text_part_set() instead. (with "info" as the parameter).
11964     */
11965    EINA_DEPRECATED EAPI void         elm_bubble_info_set(Evas_Object *obj, const char *info) EINA_ARG_NONNULL(1);
11966    /**
11967     * Get the info of the bubble
11968     *
11969     * @param obj The bubble object
11970     *
11971     * @return The "info" string of the bubble
11972     *
11973     * This function gets the info text.
11974     * @deprecated use elm_object_text_part_get() instead. (with "info" as the parameter).
11975     */
11976    EINA_DEPRECATED EAPI const char  *elm_bubble_info_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11977    /**
11978     * Set the content to be shown in the bubble
11979     *
11980     * Once the content object is set, a previously set one will be deleted.
11981     * If you want to keep the old content object, use the
11982     * elm_bubble_content_unset() function.
11983     *
11984     * @param obj The bubble object
11985     * @param content The given content of the bubble
11986     *
11987     * This function sets the content shown on the middle of the bubble.
11988     */
11989    EAPI void         elm_bubble_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
11990    /**
11991     * Get the content shown in the bubble
11992     *
11993     * Return the content object which is set for this widget.
11994     *
11995     * @param obj The bubble object
11996     * @return The content that is being used
11997     */
11998    EAPI Evas_Object *elm_bubble_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11999    /**
12000     * Unset the content shown in the bubble
12001     *
12002     * Unparent and return the content object which was set for this widget.
12003     *
12004     * @param obj The bubble object
12005     * @return The content that was being used
12006     */
12007    EAPI Evas_Object *elm_bubble_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12008    /**
12009     * Set the icon of the bubble
12010     *
12011     * Once the icon object is set, a previously set one will be deleted.
12012     * If you want to keep the old content object, use the
12013     * elm_icon_content_unset() function.
12014     *
12015     * @param obj The bubble object
12016     * @param icon The given icon for the bubble
12017     */
12018    EAPI void         elm_bubble_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
12019    /**
12020     * Get the icon of the bubble
12021     *
12022     * @param obj The bubble object
12023     * @return The icon for the bubble
12024     *
12025     * This function gets the icon shown on the top left of bubble.
12026     */
12027    EAPI Evas_Object *elm_bubble_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12028    /**
12029     * Unset the icon of the bubble
12030     *
12031     * Unparent and return the icon object which was set for this widget.
12032     *
12033     * @param obj The bubble object
12034     * @return The icon that was being used
12035     */
12036    EAPI Evas_Object *elm_bubble_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12037    /**
12038     * Set the corner of the bubble
12039     *
12040     * @param obj The bubble object.
12041     * @param corner The given corner for the bubble.
12042     *
12043     * This function sets the corner of the bubble. The corner will be used to
12044     * determine where the arrow in the frame points to and where label, icon and
12045     * info arre shown.
12046     *
12047     * Possible values for corner are:
12048     * @li "top_left" - Default
12049     * @li "top_right"
12050     * @li "bottom_left"
12051     * @li "bottom_right"
12052     */
12053    EAPI void         elm_bubble_corner_set(Evas_Object *obj, const char *corner) EINA_ARG_NONNULL(1, 2);
12054    /**
12055     * Get the corner of the bubble
12056     *
12057     * @param obj The bubble object.
12058     * @return The given corner for the bubble.
12059     *
12060     * This function gets the selected corner of the bubble.
12061     */
12062    EAPI const char  *elm_bubble_corner_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12063    /**
12064     * @}
12065     */
12066
12067    /**
12068     * @defgroup Photo Photo
12069     *
12070     * For displaying the photo of a person (contact). Simple yet
12071     * with a very specific purpose.
12072     *
12073     * Signals that you can add callbacks for are:
12074     *
12075     * "clicked" - This is called when a user has clicked the photo
12076     * "drag,start" - Someone started dragging the image out of the object
12077     * "drag,end" - Dragged item was dropped (somewhere)
12078     *
12079     * @{
12080     */
12081
12082    /**
12083     * Add a new photo to the parent
12084     *
12085     * @param parent The parent object
12086     * @return The new object or NULL if it cannot be created
12087     *
12088     * @ingroup Photo
12089     */
12090    EAPI Evas_Object *elm_photo_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12091
12092    /**
12093     * Set the file that will be used as photo
12094     *
12095     * @param obj The photo object
12096     * @param file The path to file that will be used as photo
12097     *
12098     * @return (1 = success, 0 = error)
12099     *
12100     * @ingroup Photo
12101     */
12102    EAPI Eina_Bool    elm_photo_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
12103
12104     /**
12105     * Set the file that will be used as thumbnail in the photo.
12106     *
12107     * @param obj The photo object.
12108     * @param file The path to file that will be used as thumb.
12109     * @param group The key used in case of an EET file.
12110     *
12111     * @ingroup Photo
12112     */
12113    EAPI void         elm_photo_thumb_set(const Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
12114
12115    /**
12116     * Set the size that will be used on the photo
12117     *
12118     * @param obj The photo object
12119     * @param size The size that the photo will be
12120     *
12121     * @ingroup Photo
12122     */
12123    EAPI void         elm_photo_size_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
12124
12125    /**
12126     * Set if the photo should be completely visible or not.
12127     *
12128     * @param obj The photo object
12129     * @param fill if true the photo will be completely visible
12130     *
12131     * @ingroup Photo
12132     */
12133    EAPI void         elm_photo_fill_inside_set(Evas_Object *obj, Eina_Bool fill) EINA_ARG_NONNULL(1);
12134
12135    /**
12136     * Set editability of the photo.
12137     *
12138     * An editable photo can be dragged to or from, and can be cut or
12139     * pasted too.  Note that pasting an image or dropping an item on
12140     * the image will delete the existing content.
12141     *
12142     * @param obj The photo object.
12143     * @param set To set of clear editablity.
12144     */
12145    EAPI void         elm_photo_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
12146
12147    /**
12148     * @}
12149     */
12150
12151    /* gesture layer */
12152    /**
12153     * @defgroup Elm_Gesture_Layer Gesture Layer
12154     * Gesture Layer Usage:
12155     *
12156     * Use Gesture Layer to detect gestures.
12157     * The advantage is that you don't have to implement
12158     * gesture detection, just set callbacks of gesture state.
12159     * By using gesture layer we make standard interface.
12160     *
12161     * In order to use Gesture Layer you start with @ref elm_gesture_layer_add
12162     * with a parent object parameter.
12163     * Next 'activate' gesture layer with a @ref elm_gesture_layer_attach
12164     * call. Usually with same object as target (2nd parameter).
12165     *
12166     * Now you need to tell gesture layer what gestures you follow.
12167     * This is done with @ref elm_gesture_layer_cb_set call.
12168     * By setting the callback you actually saying to gesture layer:
12169     * I would like to know when the gesture @ref Elm_Gesture_Types
12170     * switches to state @ref Elm_Gesture_State.
12171     *
12172     * Next, you need to implement the actual action that follows the input
12173     * in your callback.
12174     *
12175     * Note that if you like to stop being reported about a gesture, just set
12176     * all callbacks referring this gesture to NULL.
12177     * (again with @ref elm_gesture_layer_cb_set)
12178     *
12179     * The information reported by gesture layer to your callback is depending
12180     * on @ref Elm_Gesture_Types:
12181     * @ref Elm_Gesture_Taps_Info is the info reported for tap gestures:
12182     * @ref ELM_GESTURE_N_TAPS, @ref ELM_GESTURE_N_LONG_TAPS,
12183     * @ref ELM_GESTURE_N_DOUBLE_TAPS, @ref ELM_GESTURE_N_TRIPLE_TAPS.
12184     *
12185     * @ref Elm_Gesture_Momentum_Info is info reported for momentum gestures:
12186     * @ref ELM_GESTURE_MOMENTUM.
12187     *
12188     * @ref Elm_Gesture_Line_Info is the info reported for line gestures:
12189     * (this also contains @ref Elm_Gesture_Momentum_Info internal structure)
12190     * @ref ELM_GESTURE_N_LINES, @ref ELM_GESTURE_N_FLICKS.
12191     * Note that we consider a flick as a line-gesture that should be completed
12192     * in flick-time-limit as defined in @ref Config.
12193     *
12194     * @ref Elm_Gesture_Zoom_Info is the info reported for @ref ELM_GESTURE_ZOOM gesture.
12195     *
12196     * @ref Elm_Gesture_Rotate_Info is the info reported for @ref ELM_GESTURE_ROTATE gesture.
12197     *
12198     *
12199     * Gesture Layer Tweaks:
12200     *
12201     * Note that line, flick, gestures can start without the need to remove fingers from surface.
12202     * When user fingers rests on same-spot gesture is ended and starts again when fingers moved.
12203     *
12204     * Setting glayer_continues_enable to false in @ref Config will change this behavior
12205     * so gesture starts when user touches (a *DOWN event) touch-surface
12206     * and ends when no fingers touches surface (a *UP event).
12207     */
12208
12209    /**
12210     * @enum _Elm_Gesture_Types
12211     * Enum of supported gesture types.
12212     * @ingroup Elm_Gesture_Layer
12213     */
12214    enum _Elm_Gesture_Types
12215      {
12216         ELM_GESTURE_FIRST = 0,
12217
12218         ELM_GESTURE_N_TAPS, /**< N fingers single taps */
12219         ELM_GESTURE_N_LONG_TAPS, /**< N fingers single long-taps */
12220         ELM_GESTURE_N_DOUBLE_TAPS, /**< N fingers double-single taps */
12221         ELM_GESTURE_N_TRIPLE_TAPS, /**< N fingers triple-single taps */
12222
12223         ELM_GESTURE_MOMENTUM, /**< Reports momentum in the dircetion of move */
12224
12225         ELM_GESTURE_N_LINES, /**< N fingers line gesture */
12226         ELM_GESTURE_N_FLICKS, /**< N fingers flick gesture */
12227
12228         ELM_GESTURE_ZOOM, /**< Zoom */
12229         ELM_GESTURE_ROTATE, /**< Rotate */
12230
12231         ELM_GESTURE_LAST
12232      };
12233
12234    /**
12235     * @typedef Elm_Gesture_Types
12236     * gesture types enum
12237     * @ingroup Elm_Gesture_Layer
12238     */
12239    typedef enum _Elm_Gesture_Types Elm_Gesture_Types;
12240
12241    /**
12242     * @enum _Elm_Gesture_State
12243     * Enum of gesture states.
12244     * @ingroup Elm_Gesture_Layer
12245     */
12246    enum _Elm_Gesture_State
12247      {
12248         ELM_GESTURE_STATE_UNDEFINED = -1, /**< Gesture not STARTed */
12249         ELM_GESTURE_STATE_START,          /**< Gesture STARTed     */
12250         ELM_GESTURE_STATE_MOVE,           /**< Gesture is ongoing  */
12251         ELM_GESTURE_STATE_END,            /**< Gesture completed   */
12252         ELM_GESTURE_STATE_ABORT    /**< Onging gesture was ABORTed */
12253      };
12254
12255    /**
12256     * @typedef Elm_Gesture_State
12257     * gesture states enum
12258     * @ingroup Elm_Gesture_Layer
12259     */
12260    typedef enum _Elm_Gesture_State Elm_Gesture_State;
12261
12262    /**
12263     * @struct _Elm_Gesture_Taps_Info
12264     * Struct holds taps info for user
12265     * @ingroup Elm_Gesture_Layer
12266     */
12267    struct _Elm_Gesture_Taps_Info
12268      {
12269         Evas_Coord x, y;         /**< Holds center point between fingers */
12270         unsigned int n;          /**< Number of fingers tapped           */
12271         unsigned int timestamp;  /**< event timestamp       */
12272      };
12273
12274    /**
12275     * @typedef Elm_Gesture_Taps_Info
12276     * holds taps info for user
12277     * @ingroup Elm_Gesture_Layer
12278     */
12279    typedef struct _Elm_Gesture_Taps_Info Elm_Gesture_Taps_Info;
12280
12281    /**
12282     * @struct _Elm_Gesture_Momentum_Info
12283     * Struct holds momentum info for user
12284     * x1 and y1 are not necessarily in sync
12285     * x1 holds x value of x direction starting point
12286     * and same holds for y1.
12287     * This is noticeable when doing V-shape movement
12288     * @ingroup Elm_Gesture_Layer
12289     */
12290    struct _Elm_Gesture_Momentum_Info
12291      {  /* Report line ends, timestamps, and momentum computed        */
12292         Evas_Coord x1; /**< Final-swipe direction starting point on X */
12293         Evas_Coord y1; /**< Final-swipe direction starting point on Y */
12294         Evas_Coord x2; /**< Final-swipe direction ending point on X   */
12295         Evas_Coord y2; /**< Final-swipe direction ending point on Y   */
12296
12297         unsigned int tx; /**< Timestamp of start of final x-swipe */
12298         unsigned int ty; /**< Timestamp of start of final y-swipe */
12299
12300         Evas_Coord mx; /**< Momentum on X */
12301         Evas_Coord my; /**< Momentum on Y */
12302      };
12303
12304    /**
12305     * @typedef Elm_Gesture_Momentum_Info
12306     * holds momentum info for user
12307     * @ingroup Elm_Gesture_Layer
12308     */
12309     typedef struct _Elm_Gesture_Momentum_Info Elm_Gesture_Momentum_Info;
12310
12311    /**
12312     * @struct _Elm_Gesture_Line_Info
12313     * Struct holds line info for user
12314     * @ingroup Elm_Gesture_Layer
12315     */
12316    struct _Elm_Gesture_Line_Info
12317      {  /* Report line ends, timestamps, and momentum computed      */
12318         Elm_Gesture_Momentum_Info momentum; /**< Line momentum info */
12319         unsigned int n;            /**< Number of fingers (lines)   */
12320         /* FIXME should be radians, bot degrees */
12321         double angle;              /**< Angle (direction) of lines  */
12322      };
12323
12324    /**
12325     * @typedef Elm_Gesture_Line_Info
12326     * Holds line info for user
12327     * @ingroup Elm_Gesture_Layer
12328     */
12329     typedef struct  _Elm_Gesture_Line_Info Elm_Gesture_Line_Info;
12330
12331    /**
12332     * @struct _Elm_Gesture_Zoom_Info
12333     * Struct holds zoom info for user
12334     * @ingroup Elm_Gesture_Layer
12335     */
12336    struct _Elm_Gesture_Zoom_Info
12337      {
12338         Evas_Coord x, y;       /**< Holds zoom center point reported to user  */
12339         Evas_Coord radius; /**< Holds radius between fingers reported to user */
12340         double zoom;            /**< Zoom value: 1.0 means no zoom             */
12341         double momentum;        /**< Zoom momentum: zoom growth per second (NOT YET SUPPORTED) */
12342      };
12343
12344    /**
12345     * @typedef Elm_Gesture_Zoom_Info
12346     * Holds zoom info for user
12347     * @ingroup Elm_Gesture_Layer
12348     */
12349    typedef struct _Elm_Gesture_Zoom_Info Elm_Gesture_Zoom_Info;
12350
12351    /**
12352     * @struct _Elm_Gesture_Rotate_Info
12353     * Struct holds rotation info for user
12354     * @ingroup Elm_Gesture_Layer
12355     */
12356    struct _Elm_Gesture_Rotate_Info
12357      {
12358         Evas_Coord x, y;   /**< Holds zoom center point reported to user      */
12359         Evas_Coord radius; /**< Holds radius between fingers reported to user */
12360         double base_angle; /**< Holds start-angle */
12361         double angle;      /**< Rotation value: 0.0 means no rotation         */
12362         double momentum;   /**< Rotation momentum: rotation done per second (NOT YET SUPPORTED) */
12363      };
12364
12365    /**
12366     * @typedef Elm_Gesture_Rotate_Info
12367     * Holds rotation info for user
12368     * @ingroup Elm_Gesture_Layer
12369     */
12370    typedef struct _Elm_Gesture_Rotate_Info Elm_Gesture_Rotate_Info;
12371
12372    /**
12373     * @typedef Elm_Gesture_Event_Cb
12374     * User callback used to stream gesture info from gesture layer
12375     * @param data user data
12376     * @param event_info gesture report info
12377     * Returns a flag field to be applied on the causing event.
12378     * You should probably return EVAS_EVENT_FLAG_ON_HOLD if your widget acted
12379     * upon the event, in an irreversible way.
12380     *
12381     * @ingroup Elm_Gesture_Layer
12382     */
12383    typedef Evas_Event_Flags (*Elm_Gesture_Event_Cb) (void *data, void *event_info);
12384
12385    /**
12386     * Use function to set callbacks to be notified about
12387     * change of state of gesture.
12388     * When a user registers a callback with this function
12389     * this means this gesture has to be tested.
12390     *
12391     * When ALL callbacks for a gesture are set to NULL
12392     * it means user isn't interested in gesture-state
12393     * and it will not be tested.
12394     *
12395     * @param obj Pointer to gesture-layer.
12396     * @param idx The gesture you would like to track its state.
12397     * @param cb callback function pointer.
12398     * @param cb_type what event this callback tracks: START, MOVE, END, ABORT.
12399     * @param data user info to be sent to callback (usually, Smart Data)
12400     *
12401     * @ingroup Elm_Gesture_Layer
12402     */
12403    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);
12404
12405    /**
12406     * Call this function to get repeat-events settings.
12407     *
12408     * @param obj Pointer to gesture-layer.
12409     *
12410     * @return repeat events settings.
12411     * @see elm_gesture_layer_hold_events_set()
12412     * @ingroup Elm_Gesture_Layer
12413     */
12414    EAPI Eina_Bool elm_gesture_layer_hold_events_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
12415
12416    /**
12417     * This function called in order to make gesture-layer repeat events.
12418     * Set this of you like to get the raw events only if gestures were not detected.
12419     * Clear this if you like gesture layer to fwd events as testing gestures.
12420     *
12421     * @param obj Pointer to gesture-layer.
12422     * @param r Repeat: TRUE/FALSE
12423     *
12424     * @ingroup Elm_Gesture_Layer
12425     */
12426    EAPI void elm_gesture_layer_hold_events_set(Evas_Object *obj, Eina_Bool r) EINA_ARG_NONNULL(1);
12427
12428    /**
12429     * This function sets step-value for zoom action.
12430     * Set step to any positive value.
12431     * Cancel step setting by setting to 0.0
12432     *
12433     * @param obj Pointer to gesture-layer.
12434     * @param s new zoom step value.
12435     *
12436     * @ingroup Elm_Gesture_Layer
12437     */
12438    EAPI void elm_gesture_layer_zoom_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
12439
12440    /**
12441     * This function sets step-value for rotate action.
12442     * Set step to any positive value.
12443     * Cancel step setting by setting to 0.0
12444     *
12445     * @param obj Pointer to gesture-layer.
12446     * @param s new roatate step value.
12447     *
12448     * @ingroup Elm_Gesture_Layer
12449     */
12450    EAPI void elm_gesture_layer_rotate_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
12451
12452    /**
12453     * This function called to attach gesture-layer to an Evas_Object.
12454     * @param obj Pointer to gesture-layer.
12455     * @param t Pointer to underlying object (AKA Target)
12456     *
12457     * @return TRUE, FALSE on success, failure.
12458     *
12459     * @ingroup Elm_Gesture_Layer
12460     */
12461    EAPI Eina_Bool elm_gesture_layer_attach(Evas_Object *obj, Evas_Object *t) EINA_ARG_NONNULL(1, 2);
12462
12463    /**
12464     * Call this function to construct a new gesture-layer object.
12465     * This does not activate the gesture layer. You have to
12466     * call elm_gesture_layer_attach in order to 'activate' gesture-layer.
12467     *
12468     * @param parent the parent object.
12469     *
12470     * @return Pointer to new gesture-layer object.
12471     *
12472     * @ingroup Elm_Gesture_Layer
12473     */
12474    EAPI Evas_Object *elm_gesture_layer_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12475
12476    /**
12477     * @defgroup Thumb Thumb
12478     *
12479     * @image html img/widget/thumb/preview-00.png
12480     * @image latex img/widget/thumb/preview-00.eps
12481     *
12482     * A thumb object is used for displaying the thumbnail of an image or video.
12483     * You must have compiled Elementary with Ethumb_Client support and the DBus
12484     * service must be present and auto-activated in order to have thumbnails to
12485     * be generated.
12486     *
12487     * Once the thumbnail object becomes visible, it will check if there is a
12488     * previously generated thumbnail image for the file set on it. If not, it
12489     * will start generating this thumbnail.
12490     *
12491     * Different config settings will cause different thumbnails to be generated
12492     * even on the same file.
12493     *
12494     * Generated thumbnails are stored under @c $HOME/.thumbnails/. Check the
12495     * Ethumb documentation to change this path, and to see other configuration
12496     * options.
12497     *
12498     * Signals that you can add callbacks for are:
12499     *
12500     * - "clicked" - This is called when a user has clicked the thumb without dragging
12501     *             around.
12502     * - "clicked,double" - This is called when a user has double-clicked the thumb.
12503     * - "press" - This is called when a user has pressed down the thumb.
12504     * - "generate,start" - The thumbnail generation started.
12505     * - "generate,stop" - The generation process stopped.
12506     * - "generate,error" - The generation failed.
12507     * - "load,error" - The thumbnail image loading failed.
12508     *
12509     * available styles:
12510     * - default
12511     * - noframe
12512     *
12513     * An example of use of thumbnail:
12514     *
12515     * - @ref thumb_example_01
12516     */
12517
12518    /**
12519     * @addtogroup Thumb
12520     * @{
12521     */
12522
12523    /**
12524     * @enum _Elm_Thumb_Animation_Setting
12525     * @typedef Elm_Thumb_Animation_Setting
12526     *
12527     * Used to set if a video thumbnail is animating or not.
12528     *
12529     * @ingroup Thumb
12530     */
12531    typedef enum _Elm_Thumb_Animation_Setting
12532      {
12533         ELM_THUMB_ANIMATION_START = 0, /**< Play animation once */
12534         ELM_THUMB_ANIMATION_LOOP,      /**< Keep playing animation until stop is requested */
12535         ELM_THUMB_ANIMATION_STOP,      /**< Stop playing the animation */
12536         ELM_THUMB_ANIMATION_LAST
12537      } Elm_Thumb_Animation_Setting;
12538
12539    /**
12540     * Add a new thumb object to the parent.
12541     *
12542     * @param parent The parent object.
12543     * @return The new object or NULL if it cannot be created.
12544     *
12545     * @see elm_thumb_file_set()
12546     * @see elm_thumb_ethumb_client_get()
12547     *
12548     * @ingroup Thumb
12549     */
12550    EAPI Evas_Object                 *elm_thumb_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12551    /**
12552     * Reload thumbnail if it was generated before.
12553     *
12554     * @param obj The thumb object to reload
12555     *
12556     * This is useful if the ethumb client configuration changed, like its
12557     * size, aspect or any other property one set in the handle returned
12558     * by elm_thumb_ethumb_client_get().
12559     *
12560     * If the options didn't change, the thumbnail won't be generated again, but
12561     * the old one will still be used.
12562     *
12563     * @see elm_thumb_file_set()
12564     *
12565     * @ingroup Thumb
12566     */
12567    EAPI void                         elm_thumb_reload(Evas_Object *obj) EINA_ARG_NONNULL(1);
12568    /**
12569     * Set the file that will be used as thumbnail.
12570     *
12571     * @param obj The thumb object.
12572     * @param file The path to file that will be used as thumb.
12573     * @param key The key used in case of an EET file.
12574     *
12575     * The file can be an image or a video (in that case, acceptable extensions are:
12576     * avi, mp4, ogv, mov, mpg and wmv). To start the video animation, use the
12577     * function elm_thumb_animate().
12578     *
12579     * @see elm_thumb_file_get()
12580     * @see elm_thumb_reload()
12581     * @see elm_thumb_animate()
12582     *
12583     * @ingroup Thumb
12584     */
12585    EAPI void                         elm_thumb_file_set(Evas_Object *obj, const char *file, const char *key) EINA_ARG_NONNULL(1);
12586    /**
12587     * Get the image or video path and key used to generate the thumbnail.
12588     *
12589     * @param obj The thumb object.
12590     * @param file Pointer to filename.
12591     * @param key Pointer to key.
12592     *
12593     * @see elm_thumb_file_set()
12594     * @see elm_thumb_path_get()
12595     *
12596     * @ingroup Thumb
12597     */
12598    EAPI void                         elm_thumb_file_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
12599    /**
12600     * Get the path and key to the image or video generated by ethumb.
12601     *
12602     * One just need to make sure that the thumbnail was generated before getting
12603     * its path; otherwise, the path will be NULL. One way to do that is by asking
12604     * for the path when/after the "generate,stop" smart callback is called.
12605     *
12606     * @param obj The thumb object.
12607     * @param file Pointer to thumb path.
12608     * @param key Pointer to thumb key.
12609     *
12610     * @see elm_thumb_file_get()
12611     *
12612     * @ingroup Thumb
12613     */
12614    EAPI void                         elm_thumb_path_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
12615    /**
12616     * Set the animation state for the thumb object. If its content is an animated
12617     * video, you may start/stop the animation or tell it to play continuously and
12618     * looping.
12619     *
12620     * @param obj The thumb object.
12621     * @param setting The animation setting.
12622     *
12623     * @see elm_thumb_file_set()
12624     *
12625     * @ingroup Thumb
12626     */
12627    EAPI void                         elm_thumb_animate_set(Evas_Object *obj, Elm_Thumb_Animation_Setting s) EINA_ARG_NONNULL(1);
12628    /**
12629     * Get the animation state for the thumb object.
12630     *
12631     * @param obj The thumb object.
12632     * @return getting The animation setting or @c ELM_THUMB_ANIMATION_LAST,
12633     * on errors.
12634     *
12635     * @see elm_thumb_animate_set()
12636     *
12637     * @ingroup Thumb
12638     */
12639    EAPI Elm_Thumb_Animation_Setting  elm_thumb_animate_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12640    /**
12641     * Get the ethumb_client handle so custom configuration can be made.
12642     *
12643     * @return Ethumb_Client instance or NULL.
12644     *
12645     * This must be called before the objects are created to be sure no object is
12646     * visible and no generation started.
12647     *
12648     * Example of usage:
12649     *
12650     * @code
12651     * #include <Elementary.h>
12652     * #ifndef ELM_LIB_QUICKLAUNCH
12653     * EAPI_MAIN int
12654     * elm_main(int argc, char **argv)
12655     * {
12656     *    Ethumb_Client *client;
12657     *
12658     *    elm_need_ethumb();
12659     *
12660     *    // ... your code
12661     *
12662     *    client = elm_thumb_ethumb_client_get();
12663     *    if (!client)
12664     *      {
12665     *         ERR("could not get ethumb_client");
12666     *         return 1;
12667     *      }
12668     *    ethumb_client_size_set(client, 100, 100);
12669     *    ethumb_client_crop_align_set(client, 0.5, 0.5);
12670     *    // ... your code
12671     *
12672     *    // Create elm_thumb objects here
12673     *
12674     *    elm_run();
12675     *    elm_shutdown();
12676     *    return 0;
12677     * }
12678     * #endif
12679     * ELM_MAIN()
12680     * @endcode
12681     *
12682     * @note There's only one client handle for Ethumb, so once a configuration
12683     * change is done to it, any other request for thumbnails (for any thumbnail
12684     * object) will use that configuration. Thus, this configuration is global.
12685     *
12686     * @ingroup Thumb
12687     */
12688    EAPI void                        *elm_thumb_ethumb_client_get(void);
12689    /**
12690     * Get the ethumb_client connection state.
12691     *
12692     * @return EINA_TRUE if the client is connected to the server or EINA_FALSE
12693     * otherwise.
12694     */
12695    EAPI Eina_Bool                    elm_thumb_ethumb_client_connected(void);
12696    /**
12697     * Make the thumbnail 'editable'.
12698     *
12699     * @param obj Thumb object.
12700     * @param set Turn on or off editability. Default is @c EINA_FALSE.
12701     *
12702     * This means the thumbnail is a valid drag target for drag and drop, and can be
12703     * cut or pasted too.
12704     *
12705     * @see elm_thumb_editable_get()
12706     *
12707     * @ingroup Thumb
12708     */
12709    EAPI Eina_Bool                    elm_thumb_editable_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
12710    /**
12711     * Make the thumbnail 'editable'.
12712     *
12713     * @param obj Thumb object.
12714     * @return Editability.
12715     *
12716     * This means the thumbnail is a valid drag target for drag and drop, and can be
12717     * cut or pasted too.
12718     *
12719     * @see elm_thumb_editable_set()
12720     *
12721     * @ingroup Thumb
12722     */
12723    EAPI Eina_Bool                    elm_thumb_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12724
12725    /**
12726     * @}
12727     */
12728
12729    /**
12730     * @defgroup Hoversel Hoversel
12731     *
12732     * @image html img/widget/hoversel/preview-00.png
12733     * @image latex img/widget/hoversel/preview-00.eps
12734     *
12735     * A hoversel is a button that pops up a list of items (automatically
12736     * choosing the direction to display) that have a label and, optionally, an
12737     * icon to select from. It is a convenience widget to avoid the need to do
12738     * all the piecing together yourself. It is intended for a small number of
12739     * items in the hoversel menu (no more than 8), though is capable of many
12740     * more.
12741     *
12742     * Signals that you can add callbacks for are:
12743     * "clicked" - the user clicked the hoversel button and popped up the sel
12744     * "selected" - an item in the hoversel list is selected. event_info is the item
12745     * "dismissed" - the hover is dismissed
12746     *
12747     * See @ref tutorial_hoversel for an example.
12748     * @{
12749     */
12750    typedef struct _Elm_Hoversel_Item Elm_Hoversel_Item; /**< Item of Elm_Hoversel. Sub-type of Elm_Widget_Item */
12751    /**
12752     * @brief Add a new Hoversel object
12753     *
12754     * @param parent The parent object
12755     * @return The new object or NULL if it cannot be created
12756     */
12757    EAPI Evas_Object       *elm_hoversel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12758    /**
12759     * @brief This sets the hoversel to expand horizontally.
12760     *
12761     * @param obj The hoversel object
12762     * @param horizontal If true, the hover will expand horizontally to the
12763     * right.
12764     *
12765     * @note The initial button will display horizontally regardless of this
12766     * setting.
12767     */
12768    EAPI void               elm_hoversel_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
12769    /**
12770     * @brief This returns whether the hoversel is set to expand horizontally.
12771     *
12772     * @param obj The hoversel object
12773     * @return If true, the hover will expand horizontally to the right.
12774     *
12775     * @see elm_hoversel_horizontal_set()
12776     */
12777    EAPI Eina_Bool          elm_hoversel_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12778    /**
12779     * @brief Set the Hover parent
12780     *
12781     * @param obj The hoversel object
12782     * @param parent The parent to use
12783     *
12784     * Sets the hover parent object, the area that will be darkened when the
12785     * hoversel is clicked. Should probably be the window that the hoversel is
12786     * in. See @ref Hover objects for more information.
12787     */
12788    EAPI void               elm_hoversel_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
12789    /**
12790     * @brief Get the Hover parent
12791     *
12792     * @param obj The hoversel object
12793     * @return The used parent
12794     *
12795     * Gets the hover parent object.
12796     *
12797     * @see elm_hoversel_hover_parent_set()
12798     */
12799    EAPI Evas_Object       *elm_hoversel_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12800    /**
12801     * @brief Set the hoversel button label
12802     *
12803     * @param obj The hoversel object
12804     * @param label The label text.
12805     *
12806     * This sets the label of the button that is always visible (before it is
12807     * clicked and expanded).
12808     *
12809     * @deprecated elm_object_text_set()
12810     */
12811    EINA_DEPRECATED EAPI void               elm_hoversel_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
12812    /**
12813     * @brief Get the hoversel button label
12814     *
12815     * @param obj The hoversel object
12816     * @return The label text.
12817     *
12818     * @deprecated elm_object_text_get()
12819     */
12820    EINA_DEPRECATED EAPI const char        *elm_hoversel_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12821    /**
12822     * @brief Set the icon of the hoversel button
12823     *
12824     * @param obj The hoversel object
12825     * @param icon The icon object
12826     *
12827     * Sets the icon of the button that is always visible (before it is clicked
12828     * and expanded).  Once the icon object is set, a previously set one will be
12829     * deleted, if you want to keep that old content object, use the
12830     * elm_hoversel_icon_unset() function.
12831     *
12832     * @see elm_button_icon_set()
12833     */
12834    EAPI void               elm_hoversel_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
12835    /**
12836     * @brief Get the icon of the hoversel button
12837     *
12838     * @param obj The hoversel object
12839     * @return The icon object
12840     *
12841     * Get the icon of the button that is always visible (before it is clicked
12842     * and expanded). Also see elm_button_icon_get().
12843     *
12844     * @see elm_hoversel_icon_set()
12845     */
12846    EAPI Evas_Object       *elm_hoversel_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12847    /**
12848     * @brief Get and unparent the icon of the hoversel button
12849     *
12850     * @param obj The hoversel object
12851     * @return The icon object that was being used
12852     *
12853     * Unparent and return the icon of the button that is always visible
12854     * (before it is clicked and expanded).
12855     *
12856     * @see elm_hoversel_icon_set()
12857     * @see elm_button_icon_unset()
12858     */
12859    EAPI Evas_Object       *elm_hoversel_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12860    /**
12861     * @brief This triggers the hoversel popup from code, the same as if the user
12862     * had clicked the button.
12863     *
12864     * @param obj The hoversel object
12865     */
12866    EAPI void               elm_hoversel_hover_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
12867    /**
12868     * @brief This dismisses the hoversel popup as if the user had clicked
12869     * outside the hover.
12870     *
12871     * @param obj The hoversel object
12872     */
12873    EAPI void               elm_hoversel_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
12874    /**
12875     * @brief Returns whether the hoversel is expanded.
12876     *
12877     * @param obj The hoversel object
12878     * @return  This will return EINA_TRUE if the hoversel is expanded or
12879     * EINA_FALSE if it is not expanded.
12880     */
12881    EAPI Eina_Bool          elm_hoversel_expanded_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12882    /**
12883     * @brief This will remove all the children items from the hoversel.
12884     *
12885     * @param obj The hoversel object
12886     *
12887     * @warning Should @b not be called while the hoversel is active; use
12888     * elm_hoversel_expanded_get() to check first.
12889     *
12890     * @see elm_hoversel_item_del_cb_set()
12891     * @see elm_hoversel_item_del()
12892     */
12893    EAPI void               elm_hoversel_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
12894    /**
12895     * @brief Get the list of items within the given hoversel.
12896     *
12897     * @param obj The hoversel object
12898     * @return Returns a list of Elm_Hoversel_Item*
12899     *
12900     * @see elm_hoversel_item_add()
12901     */
12902    EAPI const Eina_List   *elm_hoversel_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12903    /**
12904     * @brief Add an item to the hoversel button
12905     *
12906     * @param obj The hoversel object
12907     * @param label The text label to use for the item (NULL if not desired)
12908     * @param icon_file An image file path on disk to use for the icon or standard
12909     * icon name (NULL if not desired)
12910     * @param icon_type The icon type if relevant
12911     * @param func Convenience function to call when this item is selected
12912     * @param data Data to pass to item-related functions
12913     * @return A handle to the item added.
12914     *
12915     * This adds an item to the hoversel to show when it is clicked. Note: if you
12916     * need to use an icon from an edje file then use
12917     * elm_hoversel_item_icon_set() right after the this function, and set
12918     * icon_file to NULL here.
12919     *
12920     * For more information on what @p icon_file and @p icon_type are see the
12921     * @ref Icon "icon documentation".
12922     */
12923    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);
12924    /**
12925     * @brief Delete an item from the hoversel
12926     *
12927     * @param item The item to delete
12928     *
12929     * This deletes the item from the hoversel (should not be called while the
12930     * hoversel is active; use elm_hoversel_expanded_get() to check first).
12931     *
12932     * @see elm_hoversel_item_add()
12933     * @see elm_hoversel_item_del_cb_set()
12934     */
12935    EAPI void               elm_hoversel_item_del(Elm_Hoversel_Item *item) EINA_ARG_NONNULL(1);
12936    /**
12937     * @brief Set the function to be called when an item from the hoversel is
12938     * freed.
12939     *
12940     * @param item The item to set the callback on
12941     * @param func The function called
12942     *
12943     * That function will receive these parameters:
12944     * @li void *item_data
12945     * @li Evas_Object *the_item_object
12946     * @li Elm_Hoversel_Item *the_object_struct
12947     *
12948     * @see elm_hoversel_item_add()
12949     */
12950    EAPI void               elm_hoversel_item_del_cb_set(Elm_Hoversel_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
12951    /**
12952     * @brief This returns the data pointer supplied with elm_hoversel_item_add()
12953     * that will be passed to associated function callbacks.
12954     *
12955     * @param item The item to get the data from
12956     * @return The data pointer set with elm_hoversel_item_add()
12957     *
12958     * @see elm_hoversel_item_add()
12959     */
12960    EAPI void              *elm_hoversel_item_data_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
12961    /**
12962     * @brief This returns the label text of the given hoversel item.
12963     *
12964     * @param item The item to get the label
12965     * @return The label text of the hoversel item
12966     *
12967     * @see elm_hoversel_item_add()
12968     */
12969    EAPI const char        *elm_hoversel_item_label_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
12970    /**
12971     * @brief This sets the icon for the given hoversel item.
12972     *
12973     * @param item The item to set the icon
12974     * @param icon_file An image file path on disk to use for the icon or standard
12975     * icon name
12976     * @param icon_group The edje group to use if @p icon_file is an edje file. Set this
12977     * to NULL if the icon is not an edje file
12978     * @param icon_type The icon type
12979     *
12980     * The icon can be loaded from the standard set, from an image file, or from
12981     * an edje file.
12982     *
12983     * @see elm_hoversel_item_add()
12984     */
12985    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);
12986    /**
12987     * @brief Get the icon object of the hoversel item
12988     *
12989     * @param item The item to get the icon from
12990     * @param icon_file The image file path on disk used for the icon or standard
12991     * icon name
12992     * @param icon_group The edje group used if @p icon_file is an edje file. NULL
12993     * if the icon is not an edje file
12994     * @param icon_type The icon type
12995     *
12996     * @see elm_hoversel_item_icon_set()
12997     * @see elm_hoversel_item_add()
12998     */
12999    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);
13000    /**
13001     * @}
13002     */
13003
13004    /**
13005     * @defgroup Toolbar Toolbar
13006     * @ingroup Elementary
13007     *
13008     * @image html img/widget/toolbar/preview-00.png
13009     * @image latex img/widget/toolbar/preview-00.eps width=\textwidth
13010     *
13011     * @image html img/toolbar.png
13012     * @image latex img/toolbar.eps width=\textwidth
13013     *
13014     * A toolbar is a widget that displays a list of items inside
13015     * a box. It can be scrollable, show a menu with items that don't fit
13016     * to toolbar size or even crop them.
13017     *
13018     * Only one item can be selected at a time.
13019     *
13020     * Items can have multiple states, or show menus when selected by the user.
13021     *
13022     * Smart callbacks one can listen to:
13023     * - "clicked" - when the user clicks on a toolbar item and becomes selected.
13024     *
13025     * Available styles for it:
13026     * - @c "default"
13027     * - @c "transparent" - no background or shadow, just show the content
13028     *
13029     * List of examples:
13030     * @li @ref toolbar_example_01
13031     * @li @ref toolbar_example_02
13032     * @li @ref toolbar_example_03
13033     */
13034
13035    /**
13036     * @addtogroup Toolbar
13037     * @{
13038     */
13039
13040    /**
13041     * @enum _Elm_Toolbar_Shrink_Mode
13042     * @typedef Elm_Toolbar_Shrink_Mode
13043     *
13044     * Set toolbar's items display behavior, it can be scrollabel,
13045     * show a menu with exceeding items, or simply hide them.
13046     *
13047     * @note Default value is #ELM_TOOLBAR_SHRINK_MENU. It reads value
13048     * from elm config.
13049     *
13050     * Values <b> don't </b> work as bitmask, only one can be choosen.
13051     *
13052     * @see elm_toolbar_mode_shrink_set()
13053     * @see elm_toolbar_mode_shrink_get()
13054     *
13055     * @ingroup Toolbar
13056     */
13057    typedef enum _Elm_Toolbar_Shrink_Mode
13058      {
13059         ELM_TOOLBAR_SHRINK_NONE,   /**< Set toolbar minimun size to fit all the items. */
13060         ELM_TOOLBAR_SHRINK_HIDE,   /**< Hide exceeding items. */
13061         ELM_TOOLBAR_SHRINK_SCROLL, /**< Allow accessing exceeding items through a scroller. */
13062         ELM_TOOLBAR_SHRINK_MENU    /**< Inserts a button to pop up a menu with exceeding items. */
13063      } Elm_Toolbar_Shrink_Mode;
13064
13065    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(). */
13066
13067    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(). */
13068
13069    /**
13070     * Add a new toolbar widget to the given parent Elementary
13071     * (container) object.
13072     *
13073     * @param parent The parent object.
13074     * @return a new toolbar widget handle or @c NULL, on errors.
13075     *
13076     * This function inserts a new toolbar widget on the canvas.
13077     *
13078     * @ingroup Toolbar
13079     */
13080    EAPI Evas_Object            *elm_toolbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13081
13082    /**
13083     * Set the icon size, in pixels, to be used by toolbar items.
13084     *
13085     * @param obj The toolbar object
13086     * @param icon_size The icon size in pixels
13087     *
13088     * @note Default value is @c 32. It reads value from elm config.
13089     *
13090     * @see elm_toolbar_icon_size_get()
13091     *
13092     * @ingroup Toolbar
13093     */
13094    EAPI void                    elm_toolbar_icon_size_set(Evas_Object *obj, int icon_size) EINA_ARG_NONNULL(1);
13095
13096    /**
13097     * Get the icon size, in pixels, to be used by toolbar items.
13098     *
13099     * @param obj The toolbar object.
13100     * @return The icon size in pixels.
13101     *
13102     * @see elm_toolbar_icon_size_set() for details.
13103     *
13104     * @ingroup Toolbar
13105     */
13106    EAPI int                     elm_toolbar_icon_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13107
13108    /**
13109     * Sets icon lookup order, for toolbar items' icons.
13110     *
13111     * @param obj The toolbar object.
13112     * @param order The icon lookup order.
13113     *
13114     * Icons added before calling this function will not be affected.
13115     * The default lookup order is #ELM_ICON_LOOKUP_THEME_FDO.
13116     *
13117     * @see elm_toolbar_icon_order_lookup_get()
13118     *
13119     * @ingroup Toolbar
13120     */
13121    EAPI void                    elm_toolbar_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
13122
13123    /**
13124     * Gets the icon lookup order.
13125     *
13126     * @param obj The toolbar object.
13127     * @return The icon lookup order.
13128     *
13129     * @see elm_toolbar_icon_order_lookup_set() for details.
13130     *
13131     * @ingroup Toolbar
13132     */
13133    EAPI Elm_Icon_Lookup_Order   elm_toolbar_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13134
13135    /**
13136     * Set whether the toolbar items' should be selected by the user or not.
13137     *
13138     * @param obj The toolbar object.
13139     * @param wrap @c EINA_TRUE to disable selection or @c EINA_FALSE to
13140     * enable it.
13141     *
13142     * This will turn off the ability to select items entirely and they will
13143     * neither appear selected nor emit selected signals. The clicked
13144     * callback function will still be called.
13145     *
13146     * Selection is enabled by default.
13147     *
13148     * @see elm_toolbar_no_select_mode_get().
13149     *
13150     * @ingroup Toolbar
13151     */
13152    EAPI void                    elm_toolbar_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
13153
13154    /**
13155     * Set whether the toolbar items' should be selected by the user or not.
13156     *
13157     * @param obj The toolbar object.
13158     * @return @c EINA_TRUE means items can be selected. @c EINA_FALSE indicates
13159     * they can't. If @p obj is @c NULL, @c EINA_FALSE is returned.
13160     *
13161     * @see elm_toolbar_no_select_mode_set() for details.
13162     *
13163     * @ingroup Toolbar
13164     */
13165    EAPI Eina_Bool               elm_toolbar_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13166
13167    /**
13168     * Append item to the toolbar.
13169     *
13170     * @param obj The toolbar object.
13171     * @param icon A string with icon name or the absolute path of an image file.
13172     * @param label The label of the item.
13173     * @param func The function to call when the item is clicked.
13174     * @param data The data to associate with the item for related callbacks.
13175     * @return The created item or @c NULL upon failure.
13176     *
13177     * A new item will be created and appended to the toolbar, i.e., will
13178     * be set as @b last item.
13179     *
13180     * Items created with this method can be deleted with
13181     * elm_toolbar_item_del().
13182     *
13183     * Associated @p data can be properly freed when item is deleted if a
13184     * callback function is set with elm_toolbar_item_del_cb_set().
13185     *
13186     * If a function is passed as argument, it will be called everytime this item
13187     * is selected, i.e., the user clicks over an unselected item.
13188     * If such function isn't needed, just passing
13189     * @c NULL as @p func is enough. The same should be done for @p data.
13190     *
13191     * Toolbar will load icon image from fdo or current theme.
13192     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
13193     * If an absolute path is provided it will load it direct from a file.
13194     *
13195     * @see elm_toolbar_item_icon_set()
13196     * @see elm_toolbar_item_del()
13197     * @see elm_toolbar_item_del_cb_set()
13198     *
13199     * @ingroup Toolbar
13200     */
13201    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);
13202
13203    /**
13204     * Prepend item to the toolbar.
13205     *
13206     * @param obj The toolbar object.
13207     * @param icon A string with icon name or the absolute path of an image file.
13208     * @param label The label of the item.
13209     * @param func The function to call when the item is clicked.
13210     * @param data The data to associate with the item for related callbacks.
13211     * @return The created item or @c NULL upon failure.
13212     *
13213     * A new item will be created and prepended to the toolbar, i.e., will
13214     * be set as @b first item.
13215     *
13216     * Items created with this method can be deleted with
13217     * elm_toolbar_item_del().
13218     *
13219     * Associated @p data can be properly freed when item is deleted if a
13220     * callback function is set with elm_toolbar_item_del_cb_set().
13221     *
13222     * If a function is passed as argument, it will be called everytime this item
13223     * is selected, i.e., the user clicks over an unselected item.
13224     * If such function isn't needed, just passing
13225     * @c NULL as @p func is enough. The same should be done for @p data.
13226     *
13227     * Toolbar will load icon image from fdo or current theme.
13228     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
13229     * If an absolute path is provided it will load it direct from a file.
13230     *
13231     * @see elm_toolbar_item_icon_set()
13232     * @see elm_toolbar_item_del()
13233     * @see elm_toolbar_item_del_cb_set()
13234     *
13235     * @ingroup Toolbar
13236     */
13237    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);
13238
13239    /**
13240     * Insert a new item into the toolbar object before item @p before.
13241     *
13242     * @param obj The toolbar object.
13243     * @param before The toolbar item to insert before.
13244     * @param icon A string with icon name or the absolute path of an image file.
13245     * @param label The label of the item.
13246     * @param func The function to call when the item is clicked.
13247     * @param data The data to associate with the item for related callbacks.
13248     * @return The created item or @c NULL upon failure.
13249     *
13250     * A new item will be created and added to the toolbar. Its position in
13251     * this toolbar will be just before item @p before.
13252     *
13253     * Items created with this method can be deleted with
13254     * elm_toolbar_item_del().
13255     *
13256     * Associated @p data can be properly freed when item is deleted if a
13257     * callback function is set with elm_toolbar_item_del_cb_set().
13258     *
13259     * If a function is passed as argument, it will be called everytime this item
13260     * is selected, i.e., the user clicks over an unselected item.
13261     * If such function isn't needed, just passing
13262     * @c NULL as @p func is enough. The same should be done for @p data.
13263     *
13264     * Toolbar will load icon image from fdo or current theme.
13265     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
13266     * If an absolute path is provided it will load it direct from a file.
13267     *
13268     * @see elm_toolbar_item_icon_set()
13269     * @see elm_toolbar_item_del()
13270     * @see elm_toolbar_item_del_cb_set()
13271     *
13272     * @ingroup Toolbar
13273     */
13274    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);
13275
13276    /**
13277     * Insert a new item into the toolbar object after item @p after.
13278     *
13279     * @param obj The toolbar object.
13280     * @param before The toolbar item to insert before.
13281     * @param icon A string with icon name or the absolute path of an image file.
13282     * @param label The label of the item.
13283     * @param func The function to call when the item is clicked.
13284     * @param data The data to associate with the item for related callbacks.
13285     * @return The created item or @c NULL upon failure.
13286     *
13287     * A new item will be created and added to the toolbar. Its position in
13288     * this toolbar will be just after item @p after.
13289     *
13290     * Items created with this method can be deleted with
13291     * elm_toolbar_item_del().
13292     *
13293     * Associated @p data can be properly freed when item is deleted if a
13294     * callback function is set with elm_toolbar_item_del_cb_set().
13295     *
13296     * If a function is passed as argument, it will be called everytime this item
13297     * is selected, i.e., the user clicks over an unselected item.
13298     * If such function isn't needed, just passing
13299     * @c NULL as @p func is enough. The same should be done for @p data.
13300     *
13301     * Toolbar will load icon image from fdo or current theme.
13302     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
13303     * If an absolute path is provided it will load it direct from a file.
13304     *
13305     * @see elm_toolbar_item_icon_set()
13306     * @see elm_toolbar_item_del()
13307     * @see elm_toolbar_item_del_cb_set()
13308     *
13309     * @ingroup Toolbar
13310     */
13311    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);
13312
13313    /**
13314     * Get the first item in the given toolbar widget's list of
13315     * items.
13316     *
13317     * @param obj The toolbar object
13318     * @return The first item or @c NULL, if it has no items (and on
13319     * errors)
13320     *
13321     * @see elm_toolbar_item_append()
13322     * @see elm_toolbar_last_item_get()
13323     *
13324     * @ingroup Toolbar
13325     */
13326    EAPI Elm_Toolbar_Item       *elm_toolbar_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13327
13328    /**
13329     * Get the last item in the given toolbar widget's list of
13330     * items.
13331     *
13332     * @param obj The toolbar object
13333     * @return The last item or @c NULL, if it has no items (and on
13334     * errors)
13335     *
13336     * @see elm_toolbar_item_prepend()
13337     * @see elm_toolbar_first_item_get()
13338     *
13339     * @ingroup Toolbar
13340     */
13341    EAPI Elm_Toolbar_Item       *elm_toolbar_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13342
13343    /**
13344     * Get the item after @p item in toolbar.
13345     *
13346     * @param item The toolbar item.
13347     * @return The item after @p item, or @c NULL if none or on failure.
13348     *
13349     * @note If it is the last item, @c NULL will be returned.
13350     *
13351     * @see elm_toolbar_item_append()
13352     *
13353     * @ingroup Toolbar
13354     */
13355    EAPI Elm_Toolbar_Item       *elm_toolbar_item_next_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13356
13357    /**
13358     * Get the item before @p item in toolbar.
13359     *
13360     * @param item The toolbar item.
13361     * @return The item before @p item, or @c NULL if none or on failure.
13362     *
13363     * @note If it is the first item, @c NULL will be returned.
13364     *
13365     * @see elm_toolbar_item_prepend()
13366     *
13367     * @ingroup Toolbar
13368     */
13369    EAPI Elm_Toolbar_Item       *elm_toolbar_item_prev_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13370
13371    /**
13372     * Get the toolbar object from an item.
13373     *
13374     * @param item The item.
13375     * @return The toolbar object.
13376     *
13377     * This returns the toolbar object itself that an item belongs to.
13378     *
13379     * @ingroup Toolbar
13380     */
13381    EAPI Evas_Object            *elm_toolbar_item_toolbar_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13382
13383    /**
13384     * Set the priority of a toolbar item.
13385     *
13386     * @param item The toolbar item.
13387     * @param priority The item priority. The default is zero.
13388     *
13389     * This is used only when the toolbar shrink mode is set to
13390     * #ELM_TOOLBAR_SHRINK_MENU or #ELM_TOOLBAR_SHRINK_HIDE.
13391     * When space is less than required, items with low priority
13392     * will be removed from the toolbar and added to a dynamically-created menu,
13393     * while items with higher priority will remain on the toolbar,
13394     * with the same order they were added.
13395     *
13396     * @see elm_toolbar_item_priority_get()
13397     *
13398     * @ingroup Toolbar
13399     */
13400    EAPI void                    elm_toolbar_item_priority_set(Elm_Toolbar_Item *item, int priority) EINA_ARG_NONNULL(1);
13401
13402    /**
13403     * Get the priority of a toolbar item.
13404     *
13405     * @param item The toolbar item.
13406     * @return The @p item priority, or @c 0 on failure.
13407     *
13408     * @see elm_toolbar_item_priority_set() for details.
13409     *
13410     * @ingroup Toolbar
13411     */
13412    EAPI int                     elm_toolbar_item_priority_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13413
13414    /**
13415     * Get the label of item.
13416     *
13417     * @param item The item of toolbar.
13418     * @return The label of item.
13419     *
13420     * The return value is a pointer to the label associated to @p item when
13421     * it was created, with function elm_toolbar_item_append() or similar,
13422     * or later,
13423     * with function elm_toolbar_item_label_set. If no label
13424     * was passed as argument, it will return @c NULL.
13425     *
13426     * @see elm_toolbar_item_label_set() for more details.
13427     * @see elm_toolbar_item_append()
13428     *
13429     * @ingroup Toolbar
13430     */
13431    EAPI const char             *elm_toolbar_item_label_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13432
13433    /**
13434     * Set the label of item.
13435     *
13436     * @param item The item of toolbar.
13437     * @param text The label of item.
13438     *
13439     * The label to be displayed by the item.
13440     * Label will be placed at icons bottom (if set).
13441     *
13442     * If a label was passed as argument on item creation, with function
13443     * elm_toolbar_item_append() or similar, it will be already
13444     * displayed by the item.
13445     *
13446     * @see elm_toolbar_item_label_get()
13447     * @see elm_toolbar_item_append()
13448     *
13449     * @ingroup Toolbar
13450     */
13451    EAPI void                    elm_toolbar_item_label_set(Elm_Toolbar_Item *item, const char *label) EINA_ARG_NONNULL(1);
13452
13453    /**
13454     * Return the data associated with a given toolbar widget item.
13455     *
13456     * @param item The toolbar widget item handle.
13457     * @return The data associated with @p item.
13458     *
13459     * @see elm_toolbar_item_data_set()
13460     *
13461     * @ingroup Toolbar
13462     */
13463    EAPI void                   *elm_toolbar_item_data_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13464
13465    /**
13466     * Set the data associated with a given toolbar widget item.
13467     *
13468     * @param item The toolbar widget item handle.
13469     * @param data The new data pointer to set to @p item.
13470     *
13471     * This sets new item data on @p item.
13472     *
13473     * @warning The old data pointer won't be touched by this function, so
13474     * the user had better to free that old data himself/herself.
13475     *
13476     * @ingroup Toolbar
13477     */
13478    EAPI void                    elm_toolbar_item_data_set(Elm_Toolbar_Item *item, const void *data) EINA_ARG_NONNULL(1);
13479
13480    /**
13481     * Returns a pointer to a toolbar item by its label.
13482     *
13483     * @param obj The toolbar object.
13484     * @param label The label of the item to find.
13485     *
13486     * @return The pointer to the toolbar item matching @p label or @c NULL
13487     * on failure.
13488     *
13489     * @ingroup Toolbar
13490     */
13491    EAPI Elm_Toolbar_Item       *elm_toolbar_item_find_by_label(const Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
13492
13493    /*
13494     * Get whether the @p item is selected or not.
13495     *
13496     * @param item The toolbar item.
13497     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
13498     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
13499     *
13500     * @see elm_toolbar_selected_item_set() for details.
13501     * @see elm_toolbar_item_selected_get()
13502     *
13503     * @ingroup Toolbar
13504     */
13505    EAPI Eina_Bool               elm_toolbar_item_selected_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13506
13507    /**
13508     * Set the selected state of an item.
13509     *
13510     * @param item The toolbar item
13511     * @param selected The selected state
13512     *
13513     * This sets the selected state of the given item @p it.
13514     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
13515     *
13516     * If a new item is selected the previosly selected will be unselected.
13517     * Previoulsy selected item can be get with function
13518     * elm_toolbar_selected_item_get().
13519     *
13520     * Selected items will be highlighted.
13521     *
13522     * @see elm_toolbar_item_selected_get()
13523     * @see elm_toolbar_selected_item_get()
13524     *
13525     * @ingroup Toolbar
13526     */
13527    EAPI void                    elm_toolbar_item_selected_set(Elm_Toolbar_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
13528
13529    /**
13530     * Get the selected item.
13531     *
13532     * @param obj The toolbar object.
13533     * @return The selected toolbar item.
13534     *
13535     * The selected item can be unselected with function
13536     * elm_toolbar_item_selected_set().
13537     *
13538     * The selected item always will be highlighted on toolbar.
13539     *
13540     * @see elm_toolbar_selected_items_get()
13541     *
13542     * @ingroup Toolbar
13543     */
13544    EAPI Elm_Toolbar_Item       *elm_toolbar_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13545
13546    /**
13547     * Set the icon associated with @p item.
13548     *
13549     * @param obj The parent of this item.
13550     * @param item The toolbar item.
13551     * @param icon A string with icon name or the absolute path of an image file.
13552     *
13553     * Toolbar will load icon image from fdo or current theme.
13554     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
13555     * If an absolute path is provided it will load it direct from a file.
13556     *
13557     * @see elm_toolbar_icon_order_lookup_set()
13558     * @see elm_toolbar_icon_order_lookup_get()
13559     *
13560     * @ingroup Toolbar
13561     */
13562    EAPI void                    elm_toolbar_item_icon_set(Elm_Toolbar_Item *item, const char *icon) EINA_ARG_NONNULL(1);
13563
13564    /**
13565     * Get the string used to set the icon of @p item.
13566     *
13567     * @param item The toolbar item.
13568     * @return The string associated with the icon object.
13569     *
13570     * @see elm_toolbar_item_icon_set() for details.
13571     *
13572     * @ingroup Toolbar
13573     */
13574    EAPI const char             *elm_toolbar_item_icon_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13575
13576    /**
13577     * Delete them item from the toolbar.
13578     *
13579     * @param item The item of toolbar to be deleted.
13580     *
13581     * @see elm_toolbar_item_append()
13582     * @see elm_toolbar_item_del_cb_set()
13583     *
13584     * @ingroup Toolbar
13585     */
13586    EAPI void                    elm_toolbar_item_del(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13587
13588    /**
13589     * Set the function called when a toolbar item is freed.
13590     *
13591     * @param item The item to set the callback on.
13592     * @param func The function called.
13593     *
13594     * If there is a @p func, then it will be called prior item's memory release.
13595     * That will be called with the following arguments:
13596     * @li item's data;
13597     * @li item's Evas object;
13598     * @li item itself;
13599     *
13600     * This way, a data associated to a toolbar item could be properly freed.
13601     *
13602     * @ingroup Toolbar
13603     */
13604    EAPI void                    elm_toolbar_item_del_cb_set(Elm_Toolbar_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
13605
13606    /**
13607     * Get a value whether toolbar item is disabled or not.
13608     *
13609     * @param item The item.
13610     * @return The disabled state.
13611     *
13612     * @see elm_toolbar_item_disabled_set() for more details.
13613     *
13614     * @ingroup Toolbar
13615     */
13616    EAPI Eina_Bool               elm_toolbar_item_disabled_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13617
13618    /**
13619     * Sets the disabled/enabled state of a toolbar item.
13620     *
13621     * @param item The item.
13622     * @param disabled The disabled state.
13623     *
13624     * A disabled item cannot be selected or unselected. It will also
13625     * change its appearance (generally greyed out). This sets the
13626     * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
13627     * enabled).
13628     *
13629     * @ingroup Toolbar
13630     */
13631    EAPI void                    elm_toolbar_item_disabled_set(Elm_Toolbar_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
13632
13633    /**
13634     * Set or unset item as a separator.
13635     *
13636     * @param item The toolbar item.
13637     * @param setting @c EINA_TRUE to set item @p item as separator or
13638     * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
13639     *
13640     * Items aren't set as separator by default.
13641     *
13642     * If set as separator it will display separator theme, so won't display
13643     * icons or label.
13644     *
13645     * @see elm_toolbar_item_separator_get()
13646     *
13647     * @ingroup Toolbar
13648     */
13649    EAPI void                    elm_toolbar_item_separator_set(Elm_Toolbar_Item *item, Eina_Bool separator) EINA_ARG_NONNULL(1);
13650
13651    /**
13652     * Get a value whether item is a separator or not.
13653     *
13654     * @param item The toolbar item.
13655     * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
13656     * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
13657     *
13658     * @see elm_toolbar_item_separator_set() for details.
13659     *
13660     * @ingroup Toolbar
13661     */
13662    EAPI Eina_Bool               elm_toolbar_item_separator_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13663
13664    /**
13665     * Set the shrink state of toolbar @p obj.
13666     *
13667     * @param obj The toolbar object.
13668     * @param shrink_mode Toolbar's items display behavior.
13669     *
13670     * The toolbar won't scroll if #ELM_TOOLBAR_SHRINK_NONE,
13671     * but will enforce a minimun size so all the items will fit, won't scroll
13672     * and won't show the items that don't fit if #ELM_TOOLBAR_SHRINK_HIDE,
13673     * will scroll if #ELM_TOOLBAR_SHRINK_SCROLL, and will create a button to
13674     * pop up excess elements with #ELM_TOOLBAR_SHRINK_MENU.
13675     *
13676     * @ingroup Toolbar
13677     */
13678    EAPI void                    elm_toolbar_mode_shrink_set(Evas_Object *obj, Elm_Toolbar_Shrink_Mode shrink_mode) EINA_ARG_NONNULL(1);
13679
13680    /**
13681     * Get the shrink mode of toolbar @p obj.
13682     *
13683     * @param obj The toolbar object.
13684     * @return Toolbar's items display behavior.
13685     *
13686     * @see elm_toolbar_mode_shrink_set() for details.
13687     *
13688     * @ingroup Toolbar
13689     */
13690    EAPI Elm_Toolbar_Shrink_Mode elm_toolbar_mode_shrink_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13691
13692    /**
13693     * Enable/disable homogenous mode.
13694     *
13695     * @param obj The toolbar object
13696     * @param homogeneous Assume the items within the toolbar are of the
13697     * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
13698     *
13699     * This will enable the homogeneous mode where items are of the same size.
13700     * @see elm_toolbar_homogeneous_get()
13701     *
13702     * @ingroup Toolbar
13703     */
13704    EAPI void                    elm_toolbar_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
13705
13706    /**
13707     * Get whether the homogenous mode is enabled.
13708     *
13709     * @param obj The toolbar object.
13710     * @return Assume the items within the toolbar are of the same height
13711     * and width (EINA_TRUE = on, EINA_FALSE = off).
13712     *
13713     * @see elm_toolbar_homogeneous_set()
13714     *
13715     * @ingroup Toolbar
13716     */
13717    EAPI Eina_Bool               elm_toolbar_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13718
13719    /**
13720     * Enable/disable homogenous mode.
13721     *
13722     * @param obj The toolbar object
13723     * @param homogeneous Assume the items within the toolbar are of the
13724     * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
13725     *
13726     * This will enable the homogeneous mode where items are of the same size.
13727     * @see elm_toolbar_homogeneous_get()
13728     *
13729     * @deprecated use elm_toolbar_homogeneous_set() instead.
13730     *
13731     * @ingroup Toolbar
13732     */
13733    EINA_DEPRECATED EAPI void    elm_toolbar_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
13734
13735    /**
13736     * Get whether the homogenous mode is enabled.
13737     *
13738     * @param obj The toolbar object.
13739     * @return Assume the items within the toolbar are of the same height
13740     * and width (EINA_TRUE = on, EINA_FALSE = off).
13741     *
13742     * @see elm_toolbar_homogeneous_set()
13743     * @deprecated use elm_toolbar_homogeneous_get() instead.
13744     *
13745     * @ingroup Toolbar
13746     */
13747    EINA_DEPRECATED EAPI Eina_Bool elm_toolbar_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13748
13749    /**
13750     * Set the parent object of the toolbar items' menus.
13751     *
13752     * @param obj The toolbar object.
13753     * @param parent The parent of the menu objects.
13754     *
13755     * Each item can be set as item menu, with elm_toolbar_item_menu_set().
13756     *
13757     * For more details about setting the parent for toolbar menus, see
13758     * elm_menu_parent_set().
13759     *
13760     * @see elm_menu_parent_set() for details.
13761     * @see elm_toolbar_item_menu_set() for details.
13762     *
13763     * @ingroup Toolbar
13764     */
13765    EAPI void                    elm_toolbar_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
13766
13767    /**
13768     * Get the parent object of the toolbar items' menus.
13769     *
13770     * @param obj The toolbar object.
13771     * @return The parent of the menu objects.
13772     *
13773     * @see elm_toolbar_menu_parent_set() for details.
13774     *
13775     * @ingroup Toolbar
13776     */
13777    EAPI Evas_Object            *elm_toolbar_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13778
13779    /**
13780     * Set the alignment of the items.
13781     *
13782     * @param obj The toolbar object.
13783     * @param align The new alignment, a float between <tt> 0.0 </tt>
13784     * and <tt> 1.0 </tt>.
13785     *
13786     * Alignment of toolbar items, from <tt> 0.0 </tt> to indicates to align
13787     * left, to <tt> 1.0 </tt>, to align to right. <tt> 0.5 </tt> centralize
13788     * items.
13789     *
13790     * Centered items by default.
13791     *
13792     * @see elm_toolbar_align_get()
13793     *
13794     * @ingroup Toolbar
13795     */
13796    EAPI void                    elm_toolbar_align_set(Evas_Object *obj, double align) EINA_ARG_NONNULL(1);
13797
13798    /**
13799     * Get the alignment of the items.
13800     *
13801     * @param obj The toolbar object.
13802     * @return toolbar items alignment, a float between <tt> 0.0 </tt> and
13803     * <tt> 1.0 </tt>.
13804     *
13805     * @see elm_toolbar_align_set() for details.
13806     *
13807     * @ingroup Toolbar
13808     */
13809    EAPI double                  elm_toolbar_align_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13810
13811    /**
13812     * Set whether the toolbar item opens a menu.
13813     *
13814     * @param item The toolbar item.
13815     * @param menu If @c EINA_TRUE, @p item will opens a menu when selected.
13816     *
13817     * A toolbar item can be set to be a menu, using this function.
13818     *
13819     * Once it is set to be a menu, it can be manipulated through the
13820     * menu-like function elm_toolbar_menu_parent_set() and the other
13821     * elm_menu functions, using the Evas_Object @c menu returned by
13822     * elm_toolbar_item_menu_get().
13823     *
13824     * So, items to be displayed in this item's menu should be added with
13825     * elm_menu_item_add().
13826     *
13827     * The following code exemplifies the most basic usage:
13828     * @code
13829     * tb = elm_toolbar_add(win)
13830     * item = elm_toolbar_item_append(tb, "refresh", "Menu", NULL, NULL);
13831     * elm_toolbar_item_menu_set(item, EINA_TRUE);
13832     * elm_toolbar_menu_parent_set(tb, win);
13833     * menu = elm_toolbar_item_menu_get(item);
13834     * elm_menu_item_add(menu, NULL, "edit-cut", "Cut", NULL, NULL);
13835     * menu_item = elm_menu_item_add(menu, NULL, "edit-copy", "Copy", NULL,
13836     * NULL);
13837     * @endcode
13838     *
13839     * @see elm_toolbar_item_menu_get()
13840     *
13841     * @ingroup Toolbar
13842     */
13843    EAPI void                    elm_toolbar_item_menu_set(Elm_Toolbar_Item *item, Eina_Bool menu) EINA_ARG_NONNULL(1);
13844
13845    /**
13846     * Get toolbar item's menu.
13847     *
13848     * @param item The toolbar item.
13849     * @return Item's menu object or @c NULL on failure.
13850     *
13851     * If @p item wasn't set as menu item with elm_toolbar_item_menu_set(),
13852     * this function will set it.
13853     *
13854     * @see elm_toolbar_item_menu_set() for details.
13855     *
13856     * @ingroup Toolbar
13857     */
13858    EAPI Evas_Object            *elm_toolbar_item_menu_get(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13859
13860    /**
13861     * Add a new state to @p item.
13862     *
13863     * @param item The item.
13864     * @param icon A string with icon name or the absolute path of an image file.
13865     * @param label The label of the new state.
13866     * @param func The function to call when the item is clicked when this
13867     * state is selected.
13868     * @param data The data to associate with the state.
13869     * @return The toolbar item state, or @c NULL upon failure.
13870     *
13871     * Toolbar will load icon image from fdo or current theme.
13872     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
13873     * If an absolute path is provided it will load it direct from a file.
13874     *
13875     * States created with this function can be removed with
13876     * elm_toolbar_item_state_del().
13877     *
13878     * @see elm_toolbar_item_state_del()
13879     * @see elm_toolbar_item_state_sel()
13880     * @see elm_toolbar_item_state_get()
13881     *
13882     * @ingroup Toolbar
13883     */
13884    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);
13885
13886    /**
13887     * Delete a previoulsy added state to @p item.
13888     *
13889     * @param item The toolbar item.
13890     * @param state The state to be deleted.
13891     * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
13892     *
13893     * @see elm_toolbar_item_state_add()
13894     */
13895    EAPI Eina_Bool               elm_toolbar_item_state_del(Elm_Toolbar_Item *item, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
13896
13897    /**
13898     * Set @p state as the current state of @p it.
13899     *
13900     * @param it The item.
13901     * @param state The state to use.
13902     * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
13903     *
13904     * If @p state is @c NULL, it won't select any state and the default item's
13905     * icon and label will be used. It's the same behaviour than
13906     * elm_toolbar_item_state_unser().
13907     *
13908     * @see elm_toolbar_item_state_unset()
13909     *
13910     * @ingroup Toolbar
13911     */
13912    EAPI Eina_Bool               elm_toolbar_item_state_set(Elm_Toolbar_Item *it, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
13913
13914    /**
13915     * Unset the state of @p it.
13916     *
13917     * @param it The item.
13918     *
13919     * The default icon and label from this item will be displayed.
13920     *
13921     * @see elm_toolbar_item_state_set() for more details.
13922     *
13923     * @ingroup Toolbar
13924     */
13925    EAPI void                    elm_toolbar_item_state_unset(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
13926
13927    /**
13928     * Get the current state of @p it.
13929     *
13930     * @param item The item.
13931     * @return The selected state or @c NULL if none is selected or on failure.
13932     *
13933     * @see elm_toolbar_item_state_set() for details.
13934     * @see elm_toolbar_item_state_unset()
13935     * @see elm_toolbar_item_state_add()
13936     *
13937     * @ingroup Toolbar
13938     */
13939    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_get(const Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
13940
13941    /**
13942     * Get the state after selected state in toolbar's @p item.
13943     *
13944     * @param it The toolbar item to change state.
13945     * @return The state after current state, or @c NULL on failure.
13946     *
13947     * If last state is selected, this function will return first state.
13948     *
13949     * @see elm_toolbar_item_state_set()
13950     * @see elm_toolbar_item_state_add()
13951     *
13952     * @ingroup Toolbar
13953     */
13954    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_next(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
13955
13956    /**
13957     * Get the state before selected state in toolbar's @p item.
13958     *
13959     * @param it The toolbar item to change state.
13960     * @return The state before current state, or @c NULL on failure.
13961     *
13962     * If first state is selected, this function will return last state.
13963     *
13964     * @see elm_toolbar_item_state_set()
13965     * @see elm_toolbar_item_state_add()
13966     *
13967     * @ingroup Toolbar
13968     */
13969    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_prev(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
13970
13971    /**
13972     * Set the text to be shown in a given toolbar item's tooltips.
13973     *
13974     * @param item Target item.
13975     * @param text The text to set in the content.
13976     *
13977     * Setup the text as tooltip to object. The item can have only one tooltip,
13978     * so any previous tooltip data - set with this function or
13979     * elm_toolbar_item_tooltip_content_cb_set() - is removed.
13980     *
13981     * @see elm_object_tooltip_text_set() for more details.
13982     *
13983     * @ingroup Toolbar
13984     */
13985    EAPI void             elm_toolbar_item_tooltip_text_set(Elm_Toolbar_Item *item, const char *text) EINA_ARG_NONNULL(1);
13986
13987    /**
13988     * Set the content to be shown in the tooltip item.
13989     *
13990     * Setup the tooltip to item. The item can have only one tooltip,
13991     * so any previous tooltip data is removed. @p func(with @p data) will
13992     * be called every time that need show the tooltip and it should
13993     * return a valid Evas_Object. This object is then managed fully by
13994     * tooltip system and is deleted when the tooltip is gone.
13995     *
13996     * @param item the toolbar item being attached a tooltip.
13997     * @param func the function used to create the tooltip contents.
13998     * @param data what to provide to @a func as callback data/context.
13999     * @param del_cb called when data is not needed anymore, either when
14000     *        another callback replaces @a func, the tooltip is unset with
14001     *        elm_toolbar_item_tooltip_unset() or the owner @a item
14002     *        dies. This callback receives as the first parameter the
14003     *        given @a data, and @c event_info is the item.
14004     *
14005     * @see elm_object_tooltip_content_cb_set() for more details.
14006     *
14007     * @ingroup Toolbar
14008     */
14009    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);
14010
14011    /**
14012     * Unset tooltip from item.
14013     *
14014     * @param item toolbar item to remove previously set tooltip.
14015     *
14016     * Remove tooltip from item. The callback provided as del_cb to
14017     * elm_toolbar_item_tooltip_content_cb_set() will be called to notify
14018     * it is not used anymore.
14019     *
14020     * @see elm_object_tooltip_unset() for more details.
14021     * @see elm_toolbar_item_tooltip_content_cb_set()
14022     *
14023     * @ingroup Toolbar
14024     */
14025    EAPI void             elm_toolbar_item_tooltip_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14026
14027    /**
14028     * Sets a different style for this item tooltip.
14029     *
14030     * @note before you set a style you should define a tooltip with
14031     *       elm_toolbar_item_tooltip_content_cb_set() or
14032     *       elm_toolbar_item_tooltip_text_set()
14033     *
14034     * @param item toolbar item with tooltip already set.
14035     * @param style the theme style to use (default, transparent, ...)
14036     *
14037     * @see elm_object_tooltip_style_set() for more details.
14038     *
14039     * @ingroup Toolbar
14040     */
14041    EAPI void             elm_toolbar_item_tooltip_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
14042
14043    /**
14044     * Get the style for this item tooltip.
14045     *
14046     * @param item toolbar item with tooltip already set.
14047     * @return style the theme style in use, defaults to "default". If the
14048     *         object does not have a tooltip set, then NULL is returned.
14049     *
14050     * @see elm_object_tooltip_style_get() for more details.
14051     * @see elm_toolbar_item_tooltip_style_set()
14052     *
14053     * @ingroup Toolbar
14054     */
14055    EAPI const char      *elm_toolbar_item_tooltip_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14056
14057    /**
14058     * Set the type of mouse pointer/cursor decoration to be shown,
14059     * when the mouse pointer is over the given toolbar widget item
14060     *
14061     * @param item toolbar item to customize cursor on
14062     * @param cursor the cursor type's name
14063     *
14064     * This function works analogously as elm_object_cursor_set(), but
14065     * here the cursor's changing area is restricted to the item's
14066     * area, and not the whole widget's. Note that that item cursors
14067     * have precedence over widget cursors, so that a mouse over an
14068     * item with custom cursor set will always show @b that cursor.
14069     *
14070     * If this function is called twice for an object, a previously set
14071     * cursor will be unset on the second call.
14072     *
14073     * @see elm_object_cursor_set()
14074     * @see elm_toolbar_item_cursor_get()
14075     * @see elm_toolbar_item_cursor_unset()
14076     *
14077     * @ingroup Toolbar
14078     */
14079    EAPI void             elm_toolbar_item_cursor_set(Elm_Toolbar_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
14080
14081    /*
14082     * Get the type of mouse pointer/cursor decoration set to be shown,
14083     * when the mouse pointer is over the given toolbar widget item
14084     *
14085     * @param item toolbar item with custom cursor set
14086     * @return the cursor type's name or @c NULL, if no custom cursors
14087     * were set to @p item (and on errors)
14088     *
14089     * @see elm_object_cursor_get()
14090     * @see elm_toolbar_item_cursor_set()
14091     * @see elm_toolbar_item_cursor_unset()
14092     *
14093     * @ingroup Toolbar
14094     */
14095    EAPI const char      *elm_toolbar_item_cursor_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14096
14097    /**
14098     * Unset any custom mouse pointer/cursor decoration set to be
14099     * shown, when the mouse pointer is over the given toolbar widget
14100     * item, thus making it show the @b default cursor again.
14101     *
14102     * @param item a toolbar item
14103     *
14104     * Use this call to undo any custom settings on this item's cursor
14105     * decoration, bringing it back to defaults (no custom style set).
14106     *
14107     * @see elm_object_cursor_unset()
14108     * @see elm_toolbar_item_cursor_set()
14109     *
14110     * @ingroup Toolbar
14111     */
14112    EAPI void             elm_toolbar_item_cursor_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14113
14114    /**
14115     * Set a different @b style for a given custom cursor set for a
14116     * toolbar item.
14117     *
14118     * @param item toolbar item with custom cursor set
14119     * @param style the <b>theme style</b> to use (e.g. @c "default",
14120     * @c "transparent", etc)
14121     *
14122     * This function only makes sense when one is using custom mouse
14123     * cursor decorations <b>defined in a theme file</b>, which can have,
14124     * given a cursor name/type, <b>alternate styles</b> on it. It
14125     * works analogously as elm_object_cursor_style_set(), but here
14126     * applyed only to toolbar item objects.
14127     *
14128     * @warning Before you set a cursor style you should have definen a
14129     *       custom cursor previously on the item, with
14130     *       elm_toolbar_item_cursor_set()
14131     *
14132     * @see elm_toolbar_item_cursor_engine_only_set()
14133     * @see elm_toolbar_item_cursor_style_get()
14134     *
14135     * @ingroup Toolbar
14136     */
14137    EAPI void             elm_toolbar_item_cursor_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
14138
14139    /**
14140     * Get the current @b style set for a given toolbar item's custom
14141     * cursor
14142     *
14143     * @param item toolbar item with custom cursor set.
14144     * @return style the cursor style in use. If the object does not
14145     *         have a cursor set, then @c NULL is returned.
14146     *
14147     * @see elm_toolbar_item_cursor_style_set() for more details
14148     *
14149     * @ingroup Toolbar
14150     */
14151    EAPI const char      *elm_toolbar_item_cursor_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14152
14153    /**
14154     * Set if the (custom)cursor for a given toolbar item should be
14155     * searched in its theme, also, or should only rely on the
14156     * rendering engine.
14157     *
14158     * @param item item with custom (custom) cursor already set on
14159     * @param engine_only Use @c EINA_TRUE to have cursors looked for
14160     * only on those provided by the rendering engine, @c EINA_FALSE to
14161     * have them searched on the widget's theme, as well.
14162     *
14163     * @note This call is of use only if you've set a custom cursor
14164     * for toolbar items, with elm_toolbar_item_cursor_set().
14165     *
14166     * @note By default, cursors will only be looked for between those
14167     * provided by the rendering engine.
14168     *
14169     * @ingroup Toolbar
14170     */
14171    EAPI void             elm_toolbar_item_cursor_engine_only_set(Elm_Toolbar_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
14172
14173    /**
14174     * Get if the (custom) cursor for a given toolbar item is being
14175     * searched in its theme, also, or is only relying on the rendering
14176     * engine.
14177     *
14178     * @param item a toolbar item
14179     * @return @c EINA_TRUE, if cursors are being looked for only on
14180     * those provided by the rendering engine, @c EINA_FALSE if they
14181     * are being searched on the widget's theme, as well.
14182     *
14183     * @see elm_toolbar_item_cursor_engine_only_set(), for more details
14184     *
14185     * @ingroup Toolbar
14186     */
14187    EAPI Eina_Bool        elm_toolbar_item_cursor_engine_only_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14188
14189    /**
14190     * Change a toolbar's orientation
14191     * @param obj The toolbar object
14192     * @param vertical If @c EINA_TRUE, the toolbar is vertical
14193     * By default, a toolbar will be horizontal. Use this function to create a vertical toolbar.
14194     * @ingroup Toolbar
14195     */
14196    EAPI void             elm_toolbar_orientation_set(Evas_Object *obj, Eina_Bool vertical) EINA_ARG_NONNULL(1);
14197
14198    /**
14199     * Get a toolbar's orientation
14200     * @param obj The toolbar object
14201     * @return If @c EINA_TRUE, the toolbar is vertical
14202     * By default, a toolbar will be horizontal. Use this function to determine whether a toolbar is vertical.
14203     * @ingroup Toolbar
14204     */
14205    EAPI Eina_Bool        elm_toolbar_orientation_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
14206
14207    /**
14208     * @}
14209     */
14210
14211    /**
14212     * @defgroup Tooltips Tooltips
14213     *
14214     * The Tooltip is an (internal, for now) smart object used to show a
14215     * content in a frame on mouse hover of objects(or widgets), with
14216     * tips/information about them.
14217     *
14218     * @{
14219     */
14220
14221    EAPI double       elm_tooltip_delay_get(void);
14222    EAPI Eina_Bool    elm_tooltip_delay_set(double delay);
14223    EAPI void         elm_object_tooltip_show(Evas_Object *obj) EINA_ARG_NONNULL(1);
14224    EAPI void         elm_object_tooltip_hide(Evas_Object *obj) EINA_ARG_NONNULL(1);
14225    EAPI void         elm_object_tooltip_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1, 2);
14226    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);
14227    EAPI void         elm_object_tooltip_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
14228    EAPI void         elm_object_tooltip_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
14229    EAPI const char  *elm_object_tooltip_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14230    EAPI Eina_Bool    elm_tooltip_size_restrict_disable(Evas_Object *obj, Eina_Bool disable); EINA_ARG_NONNULL(1);
14231    EAPI Eina_Bool    elm_tooltip_size_restrict_disabled_get(const Evas_Object *obj); EINA_ARG_NONNULL(1);
14232
14233    /**
14234     * @}
14235     */
14236
14237    /**
14238     * @defgroup Cursors Cursors
14239     *
14240     * The Elementary cursor is an internal smart object used to
14241     * customize the mouse cursor displayed over objects (or
14242     * widgets). In the most common scenario, the cursor decoration
14243     * comes from the graphical @b engine Elementary is running
14244     * on. Those engines may provide different decorations for cursors,
14245     * and Elementary provides functions to choose them (think of X11
14246     * cursors, as an example).
14247     *
14248     * There's also the possibility of, besides using engine provided
14249     * cursors, also use ones coming from Edje theming files. Both
14250     * globally and per widget, Elementary makes it possible for one to
14251     * make the cursors lookup to be held on engines only or on
14252     * Elementary's theme file, too.
14253     *
14254     * @{
14255     */
14256
14257    /**
14258     * Set the cursor to be shown when mouse is over the object
14259     *
14260     * Set the cursor that will be displayed when mouse is over the
14261     * object. The object can have only one cursor set to it, so if
14262     * this function is called twice for an object, the previous set
14263     * will be unset.
14264     * If using X cursors, a definition of all the valid cursor names
14265     * is listed on Elementary_Cursors.h. If an invalid name is set
14266     * the default cursor will be used.
14267     *
14268     * @param obj the object being set a cursor.
14269     * @param cursor the cursor name to be used.
14270     *
14271     * @ingroup Cursors
14272     */
14273    EAPI void         elm_object_cursor_set(Evas_Object *obj, const char *cursor) EINA_ARG_NONNULL(1);
14274
14275    /**
14276     * Get the cursor to be shown when mouse is over the object
14277     *
14278     * @param obj an object with cursor already set.
14279     * @return the cursor name.
14280     *
14281     * @ingroup Cursors
14282     */
14283    EAPI const char  *elm_object_cursor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14284
14285    /**
14286     * Unset cursor for object
14287     *
14288     * Unset cursor for object, and set the cursor to default if the mouse
14289     * was over this object.
14290     *
14291     * @param obj Target object
14292     * @see elm_object_cursor_set()
14293     *
14294     * @ingroup Cursors
14295     */
14296    EAPI void         elm_object_cursor_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
14297
14298    /**
14299     * Sets a different style for this object cursor.
14300     *
14301     * @note before you set a style you should define a cursor with
14302     *       elm_object_cursor_set()
14303     *
14304     * @param obj an object with cursor already set.
14305     * @param style the theme style to use (default, transparent, ...)
14306     *
14307     * @ingroup Cursors
14308     */
14309    EAPI void         elm_object_cursor_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
14310
14311    /**
14312     * Get the style for this object cursor.
14313     *
14314     * @param obj an object with cursor already set.
14315     * @return style the theme style in use, defaults to "default". If the
14316     *         object does not have a cursor set, then NULL is returned.
14317     *
14318     * @ingroup Cursors
14319     */
14320    EAPI const char  *elm_object_cursor_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14321
14322    /**
14323     * Set if the cursor set should be searched on the theme or should use
14324     * the provided by the engine, only.
14325     *
14326     * @note before you set if should look on theme you should define a cursor
14327     * with elm_object_cursor_set(). By default it will only look for cursors
14328     * provided by the engine.
14329     *
14330     * @param obj an object with cursor already set.
14331     * @param engine_only boolean to define it cursors should be looked only
14332     * between the provided by the engine or searched on widget's theme as well.
14333     *
14334     * @ingroup Cursors
14335     */
14336    EAPI void         elm_object_cursor_engine_only_set(Evas_Object *obj, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
14337
14338    /**
14339     * Get the cursor engine only usage for this object cursor.
14340     *
14341     * @param obj an object with cursor already set.
14342     * @return engine_only boolean to define it cursors should be
14343     * looked only between the provided by the engine or searched on
14344     * widget's theme as well. If the object does not have a cursor
14345     * set, then EINA_FALSE is returned.
14346     *
14347     * @ingroup Cursors
14348     */
14349    EAPI Eina_Bool    elm_object_cursor_engine_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14350
14351    /**
14352     * Get the configured cursor engine only usage
14353     *
14354     * This gets the globally configured exclusive usage of engine cursors.
14355     *
14356     * @return 1 if only engine cursors should be used
14357     * @ingroup Cursors
14358     */
14359    EAPI int          elm_cursor_engine_only_get(void);
14360
14361    /**
14362     * Set the configured cursor engine only usage
14363     *
14364     * This sets the globally configured exclusive usage of engine cursors.
14365     * It won't affect cursors set before changing this value.
14366     *
14367     * @param engine_only If 1 only engine cursors will be enabled, if 0 will
14368     * look for them on theme before.
14369     * @return EINA_TRUE if value is valid and setted (0 or 1)
14370     * @ingroup Cursors
14371     */
14372    EAPI Eina_Bool    elm_cursor_engine_only_set(int engine_only);
14373
14374    /**
14375     * @}
14376     */
14377
14378    /**
14379     * @defgroup Menu Menu
14380     *
14381     * @image html img/widget/menu/preview-00.png
14382     * @image latex img/widget/menu/preview-00.eps
14383     *
14384     * A menu is a list of items displayed above its parent. When the menu is
14385     * showing its parent is darkened. Each item can have a sub-menu. The menu
14386     * object can be used to display a menu on a right click event, in a toolbar,
14387     * anywhere.
14388     *
14389     * Signals that you can add callbacks for are:
14390     * @li "clicked" - the user clicked the empty space in the menu to dismiss.
14391     *             event_info is NULL.
14392     *
14393     * @see @ref tutorial_menu
14394     * @{
14395     */
14396    typedef struct _Elm_Menu_Item Elm_Menu_Item; /**< Item of Elm_Menu. Sub-type of Elm_Widget_Item */
14397    /**
14398     * @brief Add a new menu to the parent
14399     *
14400     * @param parent The parent object.
14401     * @return The new object or NULL if it cannot be created.
14402     */
14403    EAPI Evas_Object       *elm_menu_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14404    /**
14405     * @brief Set the parent for the given menu widget
14406     *
14407     * @param obj The menu object.
14408     * @param parent The new parent.
14409     */
14410    EAPI void               elm_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
14411    /**
14412     * @brief Get the parent for the given menu widget
14413     *
14414     * @param obj The menu object.
14415     * @return The parent.
14416     *
14417     * @see elm_menu_parent_set()
14418     */
14419    EAPI Evas_Object       *elm_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14420    /**
14421     * @brief Move the menu to a new position
14422     *
14423     * @param obj The menu object.
14424     * @param x The new position.
14425     * @param y The new position.
14426     *
14427     * Sets the top-left position of the menu to (@p x,@p y).
14428     *
14429     * @note @p x and @p y coordinates are relative to parent.
14430     */
14431    EAPI void               elm_menu_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
14432    /**
14433     * @brief Close a opened menu
14434     *
14435     * @param obj the menu object
14436     * @return void
14437     *
14438     * Hides the menu and all it's sub-menus.
14439     */
14440    EAPI void               elm_menu_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
14441    /**
14442     * @brief Returns a list of @p item's items.
14443     *
14444     * @param obj The menu object
14445     * @return An Eina_List* of @p item's items
14446     */
14447    EAPI const Eina_List   *elm_menu_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14448    /**
14449     * @brief Get the Evas_Object of an Elm_Menu_Item
14450     *
14451     * @param item The menu item object.
14452     * @return The edje object containing the swallowed content
14453     *
14454     * @warning Don't manipulate this object!
14455     */
14456    EAPI Evas_Object       *elm_menu_item_object_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14457    /**
14458     * @brief Add an item at the end of the given menu widget
14459     *
14460     * @param obj The menu object.
14461     * @param parent The parent menu item (optional)
14462     * @param icon A icon display on the item. The icon will be destryed by the menu.
14463     * @param label The label of the item.
14464     * @param func Function called when the user select the item.
14465     * @param data Data sent by the callback.
14466     * @return Returns the new item.
14467     */
14468    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);
14469    /**
14470     * @brief Add an object swallowed in an item at the end of the given menu
14471     * widget
14472     *
14473     * @param obj The menu object.
14474     * @param parent The parent menu item (optional)
14475     * @param subobj The object to swallow
14476     * @param func Function called when the user select the item.
14477     * @param data Data sent by the callback.
14478     * @return Returns the new item.
14479     *
14480     * Add an evas object as an item to the menu.
14481     */
14482    EAPI Elm_Menu_Item     *elm_menu_item_add_object(Evas_Object *obj, Elm_Menu_Item *parent, Evas_Object *subobj, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
14483    /**
14484     * @brief Set the label of a menu item
14485     *
14486     * @param item The menu item object.
14487     * @param label The label to set for @p item
14488     *
14489     * @warning Don't use this funcion on items created with
14490     * elm_menu_item_add_object() or elm_menu_item_separator_add().
14491     */
14492    EAPI void               elm_menu_item_label_set(Elm_Menu_Item *item, const char *label) EINA_ARG_NONNULL(1);
14493    /**
14494     * @brief Get the label of a menu item
14495     *
14496     * @param item The menu item object.
14497     * @return The label of @p item
14498     */
14499    EAPI const char        *elm_menu_item_label_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14500    /**
14501     * @brief Set the icon of a menu item to the standard icon with name @p icon
14502     *
14503     * @param item The menu item object.
14504     * @param icon The icon object to set for the content of @p item
14505     *
14506     * Once this icon is set, any previously set icon will be deleted.
14507     */
14508    EAPI void               elm_menu_item_object_icon_name_set(Elm_Menu_Item *item, const char *icon) EINA_ARG_NONNULL(1, 2);
14509    /**
14510     * @brief Get the string representation from the icon of a menu item
14511     *
14512     * @param item The menu item object.
14513     * @return The string representation of @p item's icon or NULL
14514     *
14515     * @see elm_menu_item_object_icon_name_set()
14516     */
14517    EAPI const char        *elm_menu_item_object_icon_name_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14518    /**
14519     * @brief Set the content object of a menu item
14520     *
14521     * @param item The menu item object
14522     * @param The content object or NULL
14523     * @return EINA_TRUE on success, else EINA_FALSE
14524     *
14525     * Use this function to change the object swallowed by a menu item, deleting
14526     * any previously swallowed object.
14527     */
14528    EAPI Eina_Bool          elm_menu_item_object_content_set(Elm_Menu_Item *item, Evas_Object *obj) EINA_ARG_NONNULL(1);
14529    /**
14530     * @brief Get the content object of a menu item
14531     *
14532     * @param item The menu item object
14533     * @return The content object or NULL
14534     * @note If @p item was added with elm_menu_item_add_object, this
14535     * function will return the object passed, else it will return the
14536     * icon object.
14537     *
14538     * @see elm_menu_item_object_content_set()
14539     */
14540    EAPI Evas_Object *elm_menu_item_object_content_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14541    /**
14542     * @brief Set the selected state of @p item.
14543     *
14544     * @param item The menu item object.
14545     * @param selected The selected/unselected state of the item
14546     */
14547    EAPI void               elm_menu_item_selected_set(Elm_Menu_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
14548    /**
14549     * @brief Get the selected state of @p item.
14550     *
14551     * @param item The menu item object.
14552     * @return The selected/unselected state of the item
14553     *
14554     * @see elm_menu_item_selected_set()
14555     */
14556    EAPI Eina_Bool          elm_menu_item_selected_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14557    /**
14558     * @brief Set the disabled state of @p item.
14559     *
14560     * @param item The menu item object.
14561     * @param disabled The enabled/disabled state of the item
14562     */
14563    EAPI void               elm_menu_item_disabled_set(Elm_Menu_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
14564    /**
14565     * @brief Get the disabled state of @p item.
14566     *
14567     * @param item The menu item object.
14568     * @return The enabled/disabled state of the item
14569     *
14570     * @see elm_menu_item_disabled_set()
14571     */
14572    EAPI Eina_Bool          elm_menu_item_disabled_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14573    /**
14574     * @brief Add a separator item to menu @p obj under @p parent.
14575     *
14576     * @param obj The menu object
14577     * @param parent The item to add the separator under
14578     * @return The created item or NULL on failure
14579     *
14580     * This is item is a @ref Separator.
14581     */
14582    EAPI Elm_Menu_Item     *elm_menu_item_separator_add(Evas_Object *obj, Elm_Menu_Item *parent) EINA_ARG_NONNULL(1);
14583    /**
14584     * @brief Returns whether @p item is a separator.
14585     *
14586     * @param item The item to check
14587     * @return If true, @p item is a separator
14588     *
14589     * @see elm_menu_item_separator_add()
14590     */
14591    EAPI Eina_Bool          elm_menu_item_is_separator(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14592    /**
14593     * @brief Deletes an item from the menu.
14594     *
14595     * @param item The item to delete.
14596     *
14597     * @see elm_menu_item_add()
14598     */
14599    EAPI void               elm_menu_item_del(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14600    /**
14601     * @brief Set the function called when a menu item is deleted.
14602     *
14603     * @param item The item to set the callback on
14604     * @param func The function called
14605     *
14606     * @see elm_menu_item_add()
14607     * @see elm_menu_item_del()
14608     */
14609    EAPI void               elm_menu_item_del_cb_set(Elm_Menu_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
14610    /**
14611     * @brief Returns the data associated with menu item @p item.
14612     *
14613     * @param item The item
14614     * @return The data associated with @p item or NULL if none was set.
14615     *
14616     * This is the data set with elm_menu_add() or elm_menu_item_data_set().
14617     */
14618    EAPI void              *elm_menu_item_data_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14619    /**
14620     * @brief Sets the data to be associated with menu item @p item.
14621     *
14622     * @param item The item
14623     * @param data The data to be associated with @p item
14624     */
14625    EAPI void               elm_menu_item_data_set(Elm_Menu_Item *item, const void *data) EINA_ARG_NONNULL(1);
14626    /**
14627     * @brief Returns a list of @p item's subitems.
14628     *
14629     * @param item The item
14630     * @return An Eina_List* of @p item's subitems
14631     *
14632     * @see elm_menu_add()
14633     */
14634    EAPI const Eina_List   *elm_menu_item_subitems_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14635    /**
14636     * @brief Get the position of a menu item
14637     *
14638     * @param item The menu item
14639     * @return The item's index
14640     *
14641     * This function returns the index position of a menu item in a menu.
14642     * For a sub-menu, this number is relative to the first item in the sub-menu.
14643     *
14644     * @note Index values begin with 0
14645     */
14646    EAPI unsigned int       elm_menu_item_index_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_PURE;
14647    /**
14648     * @brief @brief Return a menu item's owner menu
14649     *
14650     * @param item The menu item
14651     * @return The menu object owning @p item, or NULL on failure
14652     *
14653     * Use this function to get the menu object owning an item.
14654     */
14655    EAPI Evas_Object       *elm_menu_item_menu_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_PURE;
14656    /**
14657     * @brief Get the selected item in the menu
14658     *
14659     * @param obj The menu object
14660     * @return The selected item, or NULL if none
14661     *
14662     * @see elm_menu_item_selected_get()
14663     * @see elm_menu_item_selected_set()
14664     */
14665    EAPI Elm_Menu_Item *elm_menu_selected_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
14666    /**
14667     * @brief Get the last item in the menu
14668     *
14669     * @param obj The menu object
14670     * @return The last item, or NULL if none
14671     */
14672    EAPI Elm_Menu_Item *elm_menu_last_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
14673    /**
14674     * @brief Get the first item in the menu
14675     *
14676     * @param obj The menu object
14677     * @return The first item, or NULL if none
14678     */
14679    EAPI Elm_Menu_Item *elm_menu_first_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
14680    /**
14681     * @brief Get the next item in the menu.
14682     *
14683     * @param item The menu item object.
14684     * @return The item after it, or NULL if none
14685     */
14686    EAPI Elm_Menu_Item *elm_menu_item_next_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14687    /**
14688     * @brief Get the previous item in the menu.
14689     *
14690     * @param item The menu item object.
14691     * @return The item before it, or NULL if none
14692     */
14693    EAPI Elm_Menu_Item *elm_menu_item_prev_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14694    /**
14695     * @}
14696     */
14697
14698    /**
14699     * @defgroup List List
14700     * @ingroup Elementary
14701     *
14702     * @image html img/widget/list/preview-00.png
14703     * @image latex img/widget/list/preview-00.eps width=\textwidth
14704     *
14705     * @image html img/list.png
14706     * @image latex img/list.eps width=\textwidth
14707     *
14708     * A list widget is a container whose children are displayed vertically or
14709     * horizontally, in order, and can be selected.
14710     * The list can accept only one or multiple items selection. Also has many
14711     * modes of items displaying.
14712     *
14713     * A list is a very simple type of list widget.  For more robust
14714     * lists, @ref Genlist should probably be used.
14715     *
14716     * Smart callbacks one can listen to:
14717     * - @c "activated" - The user has double-clicked or pressed
14718     *   (enter|return|spacebar) on an item. The @c event_info parameter
14719     *   is the item that was activated.
14720     * - @c "clicked,double" - The user has double-clicked an item.
14721     *   The @c event_info parameter is the item that was double-clicked.
14722     * - "selected" - when the user selected an item
14723     * - "unselected" - when the user unselected an item
14724     * - "longpressed" - an item in the list is long-pressed
14725     * - "scroll,edge,top" - the list is scrolled until the top edge
14726     * - "scroll,edge,bottom" - the list is scrolled until the bottom edge
14727     * - "scroll,edge,left" - the list is scrolled until the left edge
14728     * - "scroll,edge,right" - the list is scrolled until the right edge
14729     *
14730     * Available styles for it:
14731     * - @c "default"
14732     *
14733     * List of examples:
14734     * @li @ref list_example_01
14735     * @li @ref list_example_02
14736     * @li @ref list_example_03
14737     */
14738
14739    /**
14740     * @addtogroup List
14741     * @{
14742     */
14743
14744    /**
14745     * @enum _Elm_List_Mode
14746     * @typedef Elm_List_Mode
14747     *
14748     * Set list's resize behavior, transverse axis scroll and
14749     * items cropping. See each mode's description for more details.
14750     *
14751     * @note Default value is #ELM_LIST_SCROLL.
14752     *
14753     * Values <b> don't </b> work as bitmask, only one can be choosen.
14754     *
14755     * @see elm_list_mode_set()
14756     * @see elm_list_mode_get()
14757     *
14758     * @ingroup List
14759     */
14760    typedef enum _Elm_List_Mode
14761      {
14762         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. */
14763         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). */
14764         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. */
14765         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. */
14766         ELM_LIST_LAST /**< Indicates error if returned by elm_list_mode_get() */
14767      } Elm_List_Mode;
14768
14769    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().  */
14770
14771    /**
14772     * Add a new list widget to the given parent Elementary
14773     * (container) object.
14774     *
14775     * @param parent The parent object.
14776     * @return a new list widget handle or @c NULL, on errors.
14777     *
14778     * This function inserts a new list widget on the canvas.
14779     *
14780     * @ingroup List
14781     */
14782    EAPI Evas_Object     *elm_list_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14783
14784    /**
14785     * Starts the list.
14786     *
14787     * @param obj The list object
14788     *
14789     * @note Call before running show() on the list object.
14790     * @warning If not called, it won't display the list properly.
14791     *
14792     * @code
14793     * li = elm_list_add(win);
14794     * elm_list_item_append(li, "First", NULL, NULL, NULL, NULL);
14795     * elm_list_item_append(li, "Second", NULL, NULL, NULL, NULL);
14796     * elm_list_go(li);
14797     * evas_object_show(li);
14798     * @endcode
14799     *
14800     * @ingroup List
14801     */
14802    EAPI void             elm_list_go(Evas_Object *obj) EINA_ARG_NONNULL(1);
14803
14804    /**
14805     * Enable or disable multiple items selection on the list object.
14806     *
14807     * @param obj The list object
14808     * @param multi @c EINA_TRUE to enable multi selection or @c EINA_FALSE to
14809     * disable it.
14810     *
14811     * Disabled by default. If disabled, the user can select a single item of
14812     * the list each time. Selected items are highlighted on list.
14813     * If enabled, many items can be selected.
14814     *
14815     * If a selected item is selected again, it will be unselected.
14816     *
14817     * @see elm_list_multi_select_get()
14818     *
14819     * @ingroup List
14820     */
14821    EAPI void             elm_list_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
14822
14823    /**
14824     * Get a value whether multiple items selection is enabled or not.
14825     *
14826     * @see elm_list_multi_select_set() for details.
14827     *
14828     * @param obj The list object.
14829     * @return @c EINA_TRUE means multiple items selection is enabled.
14830     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
14831     * @c EINA_FALSE is returned.
14832     *
14833     * @ingroup List
14834     */
14835    EAPI Eina_Bool        elm_list_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14836
14837    /**
14838     * Set which mode to use for the list object.
14839     *
14840     * @param obj The list object
14841     * @param mode One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
14842     * #ELM_LIST_LIMIT or #ELM_LIST_EXPAND.
14843     *
14844     * Set list's resize behavior, transverse axis scroll and
14845     * items cropping. See each mode's description for more details.
14846     *
14847     * @note Default value is #ELM_LIST_SCROLL.
14848     *
14849     * Only one can be set, if a previous one was set, it will be changed
14850     * by the new mode set. Bitmask won't work as well.
14851     *
14852     * @see elm_list_mode_get()
14853     *
14854     * @ingroup List
14855     */
14856    EAPI void             elm_list_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
14857
14858    /**
14859     * Get the mode the list is at.
14860     *
14861     * @param obj The list object
14862     * @return One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
14863     * #ELM_LIST_LIMIT, #ELM_LIST_EXPAND or #ELM_LIST_LAST on errors.
14864     *
14865     * @note see elm_list_mode_set() for more information.
14866     *
14867     * @ingroup List
14868     */
14869    EAPI Elm_List_Mode    elm_list_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14870
14871    /**
14872     * Enable or disable horizontal mode on the list object.
14873     *
14874     * @param obj The list object.
14875     * @param horizontal @c EINA_TRUE to enable horizontal or @c EINA_FALSE to
14876     * disable it, i.e., to enable vertical mode.
14877     *
14878     * @note Vertical mode is set by default.
14879     *
14880     * On horizontal mode items are displayed on list from left to right,
14881     * instead of from top to bottom. Also, the list will scroll horizontally.
14882     * Each item will presents left icon on top and right icon, or end, at
14883     * the bottom.
14884     *
14885     * @see elm_list_horizontal_get()
14886     *
14887     * @ingroup List
14888     */
14889    EAPI void             elm_list_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
14890
14891    /**
14892     * Get a value whether horizontal mode is enabled or not.
14893     *
14894     * @param obj The list object.
14895     * @return @c EINA_TRUE means horizontal mode selection is enabled.
14896     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
14897     * @c EINA_FALSE is returned.
14898     *
14899     * @see elm_list_horizontal_set() for details.
14900     *
14901     * @ingroup List
14902     */
14903    EAPI Eina_Bool        elm_list_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14904
14905    /**
14906     * Enable or disable always select mode on the list object.
14907     *
14908     * @param obj The list object
14909     * @param always_select @c EINA_TRUE to enable always select mode or
14910     * @c EINA_FALSE to disable it.
14911     *
14912     * @note Always select mode is disabled by default.
14913     *
14914     * Default behavior of list items is to only call its callback function
14915     * the first time it's pressed, i.e., when it is selected. If a selected
14916     * item is pressed again, and multi-select is disabled, it won't call
14917     * this function (if multi-select is enabled it will unselect the item).
14918     *
14919     * If always select is enabled, it will call the callback function
14920     * everytime a item is pressed, so it will call when the item is selected,
14921     * and again when a selected item is pressed.
14922     *
14923     * @see elm_list_always_select_mode_get()
14924     * @see elm_list_multi_select_set()
14925     *
14926     * @ingroup List
14927     */
14928    EAPI void             elm_list_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
14929
14930    /**
14931     * Get a value whether always select mode is enabled or not, meaning that
14932     * an item will always call its callback function, even if already selected.
14933     *
14934     * @param obj The list object
14935     * @return @c EINA_TRUE means horizontal mode selection is enabled.
14936     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
14937     * @c EINA_FALSE is returned.
14938     *
14939     * @see elm_list_always_select_mode_set() for details.
14940     *
14941     * @ingroup List
14942     */
14943    EAPI Eina_Bool        elm_list_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14944
14945    /**
14946     * Set bouncing behaviour when the scrolled content reaches an edge.
14947     *
14948     * Tell the internal scroller object whether it should bounce or not
14949     * when it reaches the respective edges for each axis.
14950     *
14951     * @param obj The list object
14952     * @param h_bounce Whether to bounce or not in the horizontal axis.
14953     * @param v_bounce Whether to bounce or not in the vertical axis.
14954     *
14955     * @see elm_scroller_bounce_set()
14956     *
14957     * @ingroup List
14958     */
14959    EAPI void             elm_list_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
14960
14961    /**
14962     * Get the bouncing behaviour of the internal scroller.
14963     *
14964     * Get whether the internal scroller should bounce when the edge of each
14965     * axis is reached scrolling.
14966     *
14967     * @param obj The list object.
14968     * @param h_bounce Pointer where to store the bounce state of the horizontal
14969     * axis.
14970     * @param v_bounce Pointer where to store the bounce state of the vertical
14971     * axis.
14972     *
14973     * @see elm_scroller_bounce_get()
14974     * @see elm_list_bounce_set()
14975     *
14976     * @ingroup List
14977     */
14978    EAPI void             elm_list_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
14979
14980    /**
14981     * Set the scrollbar policy.
14982     *
14983     * @param obj The list object
14984     * @param policy_h Horizontal scrollbar policy.
14985     * @param policy_v Vertical scrollbar policy.
14986     *
14987     * This sets the scrollbar visibility policy for the given scroller.
14988     * #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it
14989     * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
14990     * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
14991     * This applies respectively for the horizontal and vertical scrollbars.
14992     *
14993     * The both are disabled by default, i.e., are set to
14994     * #ELM_SCROLLER_POLICY_OFF.
14995     *
14996     * @ingroup List
14997     */
14998    EAPI void             elm_list_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
14999
15000    /**
15001     * Get the scrollbar policy.
15002     *
15003     * @see elm_list_scroller_policy_get() for details.
15004     *
15005     * @param obj The list object.
15006     * @param policy_h Pointer where to store horizontal scrollbar policy.
15007     * @param policy_v Pointer where to store vertical scrollbar policy.
15008     *
15009     * @ingroup List
15010     */
15011    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);
15012
15013    /**
15014     * Append a new item to the list object.
15015     *
15016     * @param obj The list object.
15017     * @param label The label of the list item.
15018     * @param icon The icon object to use for the left side of the item. An
15019     * icon can be any Evas object, but usually it is an icon created
15020     * with elm_icon_add().
15021     * @param end The icon object to use for the right side of the item. An
15022     * icon can be any Evas object.
15023     * @param func The function to call when the item is clicked.
15024     * @param data The data to associate with the item for related callbacks.
15025     *
15026     * @return The created item or @c NULL upon failure.
15027     *
15028     * A new item will be created and appended to the list, i.e., will
15029     * be set as @b last item.
15030     *
15031     * Items created with this method can be deleted with
15032     * elm_list_item_del().
15033     *
15034     * Associated @p data can be properly freed when item is deleted if a
15035     * callback function is set with elm_list_item_del_cb_set().
15036     *
15037     * If a function is passed as argument, it will be called everytime this item
15038     * is selected, i.e., the user clicks over an unselected item.
15039     * If always select is enabled it will call this function every time
15040     * user clicks over an item (already selected or not).
15041     * If such function isn't needed, just passing
15042     * @c NULL as @p func is enough. The same should be done for @p data.
15043     *
15044     * Simple example (with no function callback or data associated):
15045     * @code
15046     * li = elm_list_add(win);
15047     * ic = elm_icon_add(win);
15048     * elm_icon_file_set(ic, "path/to/image", NULL);
15049     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
15050     * elm_list_item_append(li, "label", ic, NULL, NULL, NULL);
15051     * elm_list_go(li);
15052     * evas_object_show(li);
15053     * @endcode
15054     *
15055     * @see elm_list_always_select_mode_set()
15056     * @see elm_list_item_del()
15057     * @see elm_list_item_del_cb_set()
15058     * @see elm_list_clear()
15059     * @see elm_icon_add()
15060     *
15061     * @ingroup List
15062     */
15063    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);
15064
15065    /**
15066     * Prepend a new item to the list object.
15067     *
15068     * @param obj The list object.
15069     * @param label The label of the list item.
15070     * @param icon The icon object to use for the left side of the item. An
15071     * icon can be any Evas object, but usually it is an icon created
15072     * with elm_icon_add().
15073     * @param end The icon object to use for the right side of the item. An
15074     * icon can be any Evas object.
15075     * @param func The function to call when the item is clicked.
15076     * @param data The data to associate with the item for related callbacks.
15077     *
15078     * @return The created item or @c NULL upon failure.
15079     *
15080     * A new item will be created and prepended to the list, i.e., will
15081     * be set as @b first item.
15082     *
15083     * Items created with this method can be deleted with
15084     * elm_list_item_del().
15085     *
15086     * Associated @p data can be properly freed when item is deleted if a
15087     * callback function is set with elm_list_item_del_cb_set().
15088     *
15089     * If a function is passed as argument, it will be called everytime this item
15090     * is selected, i.e., the user clicks over an unselected item.
15091     * If always select is enabled it will call this function every time
15092     * user clicks over an item (already selected or not).
15093     * If such function isn't needed, just passing
15094     * @c NULL as @p func is enough. The same should be done for @p data.
15095     *
15096     * @see elm_list_item_append() for a simple code example.
15097     * @see elm_list_always_select_mode_set()
15098     * @see elm_list_item_del()
15099     * @see elm_list_item_del_cb_set()
15100     * @see elm_list_clear()
15101     * @see elm_icon_add()
15102     *
15103     * @ingroup List
15104     */
15105    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);
15106
15107    /**
15108     * Insert a new item into the list object before item @p before.
15109     *
15110     * @param obj The list object.
15111     * @param before The list item to insert before.
15112     * @param label The label of the list item.
15113     * @param icon The icon object to use for the left side of the item. An
15114     * icon can be any Evas object, but usually it is an icon created
15115     * with elm_icon_add().
15116     * @param end The icon object to use for the right side of the item. An
15117     * icon can be any Evas object.
15118     * @param func The function to call when the item is clicked.
15119     * @param data The data to associate with the item for related callbacks.
15120     *
15121     * @return The created item or @c NULL upon failure.
15122     *
15123     * A new item will be created and added to the list. Its position in
15124     * this list will be just before item @p before.
15125     *
15126     * Items created with this method can be deleted with
15127     * elm_list_item_del().
15128     *
15129     * Associated @p data can be properly freed when item is deleted if a
15130     * callback function is set with elm_list_item_del_cb_set().
15131     *
15132     * If a function is passed as argument, it will be called everytime this item
15133     * is selected, i.e., the user clicks over an unselected item.
15134     * If always select is enabled it will call this function every time
15135     * user clicks over an item (already selected or not).
15136     * If such function isn't needed, just passing
15137     * @c NULL as @p func is enough. The same should be done for @p data.
15138     *
15139     * @see elm_list_item_append() for a simple code example.
15140     * @see elm_list_always_select_mode_set()
15141     * @see elm_list_item_del()
15142     * @see elm_list_item_del_cb_set()
15143     * @see elm_list_clear()
15144     * @see elm_icon_add()
15145     *
15146     * @ingroup List
15147     */
15148    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);
15149
15150    /**
15151     * Insert a new item into the list object after item @p after.
15152     *
15153     * @param obj The list object.
15154     * @param after The list item to insert after.
15155     * @param label The label of the list item.
15156     * @param icon The icon object to use for the left side of the item. An
15157     * icon can be any Evas object, but usually it is an icon created
15158     * with elm_icon_add().
15159     * @param end The icon object to use for the right side of the item. An
15160     * icon can be any Evas object.
15161     * @param func The function to call when the item is clicked.
15162     * @param data The data to associate with the item for related callbacks.
15163     *
15164     * @return The created item or @c NULL upon failure.
15165     *
15166     * A new item will be created and added to the list. Its position in
15167     * this list will be just after item @p after.
15168     *
15169     * Items created with this method can be deleted with
15170     * elm_list_item_del().
15171     *
15172     * Associated @p data can be properly freed when item is deleted if a
15173     * callback function is set with elm_list_item_del_cb_set().
15174     *
15175     * If a function is passed as argument, it will be called everytime this item
15176     * is selected, i.e., the user clicks over an unselected item.
15177     * If always select is enabled it will call this function every time
15178     * user clicks over an item (already selected or not).
15179     * If such function isn't needed, just passing
15180     * @c NULL as @p func is enough. The same should be done for @p data.
15181     *
15182     * @see elm_list_item_append() for a simple code example.
15183     * @see elm_list_always_select_mode_set()
15184     * @see elm_list_item_del()
15185     * @see elm_list_item_del_cb_set()
15186     * @see elm_list_clear()
15187     * @see elm_icon_add()
15188     *
15189     * @ingroup List
15190     */
15191    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);
15192
15193    /**
15194     * Insert a new item into the sorted list object.
15195     *
15196     * @param obj The list object.
15197     * @param label The label of the list item.
15198     * @param icon The icon object to use for the left side of the item. An
15199     * icon can be any Evas object, but usually it is an icon created
15200     * with elm_icon_add().
15201     * @param end The icon object to use for the right side of the item. An
15202     * icon can be any Evas object.
15203     * @param func The function to call when the item is clicked.
15204     * @param data The data to associate with the item for related callbacks.
15205     * @param cmp_func The comparing function to be used to sort list
15206     * items <b>by #Elm_List_Item item handles</b>. This function will
15207     * receive two items and compare them, returning a non-negative integer
15208     * if the second item should be place after the first, or negative value
15209     * if should be placed before.
15210     *
15211     * @return The created item or @c NULL upon failure.
15212     *
15213     * @note This function inserts values into a list object assuming it was
15214     * sorted and the result will be sorted.
15215     *
15216     * A new item will be created and added to the list. Its position in
15217     * this list will be found comparing the new item with previously inserted
15218     * items using function @p cmp_func.
15219     *
15220     * Items created with this method can be deleted with
15221     * elm_list_item_del().
15222     *
15223     * Associated @p data can be properly freed when item is deleted if a
15224     * callback function is set with elm_list_item_del_cb_set().
15225     *
15226     * If a function is passed as argument, it will be called everytime this item
15227     * is selected, i.e., the user clicks over an unselected item.
15228     * If always select is enabled it will call this function every time
15229     * user clicks over an item (already selected or not).
15230     * If such function isn't needed, just passing
15231     * @c NULL as @p func is enough. The same should be done for @p data.
15232     *
15233     * @see elm_list_item_append() for a simple code example.
15234     * @see elm_list_always_select_mode_set()
15235     * @see elm_list_item_del()
15236     * @see elm_list_item_del_cb_set()
15237     * @see elm_list_clear()
15238     * @see elm_icon_add()
15239     *
15240     * @ingroup List
15241     */
15242    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);
15243
15244    /**
15245     * Remove all list's items.
15246     *
15247     * @param obj The list object
15248     *
15249     * @see elm_list_item_del()
15250     * @see elm_list_item_append()
15251     *
15252     * @ingroup List
15253     */
15254    EAPI void             elm_list_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
15255
15256    /**
15257     * Get a list of all the list items.
15258     *
15259     * @param obj The list object
15260     * @return An @c Eina_List of list items, #Elm_List_Item,
15261     * or @c NULL on failure.
15262     *
15263     * @see elm_list_item_append()
15264     * @see elm_list_item_del()
15265     * @see elm_list_clear()
15266     *
15267     * @ingroup List
15268     */
15269    EAPI const Eina_List *elm_list_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15270
15271    /**
15272     * Get the selected item.
15273     *
15274     * @param obj The list object.
15275     * @return The selected list item.
15276     *
15277     * The selected item can be unselected with function
15278     * elm_list_item_selected_set().
15279     *
15280     * The selected item always will be highlighted on list.
15281     *
15282     * @see elm_list_selected_items_get()
15283     *
15284     * @ingroup List
15285     */
15286    EAPI Elm_List_Item   *elm_list_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15287
15288    /**
15289     * Return a list of the currently selected list items.
15290     *
15291     * @param obj The list object.
15292     * @return An @c Eina_List of list items, #Elm_List_Item,
15293     * or @c NULL on failure.
15294     *
15295     * Multiple items can be selected if multi select is enabled. It can be
15296     * done with elm_list_multi_select_set().
15297     *
15298     * @see elm_list_selected_item_get()
15299     * @see elm_list_multi_select_set()
15300     *
15301     * @ingroup List
15302     */
15303    EAPI const Eina_List *elm_list_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15304
15305    /**
15306     * Set the selected state of an item.
15307     *
15308     * @param item The list item
15309     * @param selected The selected state
15310     *
15311     * This sets the selected state of the given item @p it.
15312     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
15313     *
15314     * If a new item is selected the previosly selected will be unselected,
15315     * unless multiple selection is enabled with elm_list_multi_select_set().
15316     * Previoulsy selected item can be get with function
15317     * elm_list_selected_item_get().
15318     *
15319     * Selected items will be highlighted.
15320     *
15321     * @see elm_list_item_selected_get()
15322     * @see elm_list_selected_item_get()
15323     * @see elm_list_multi_select_set()
15324     *
15325     * @ingroup List
15326     */
15327    EAPI void             elm_list_item_selected_set(Elm_List_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
15328
15329    /*
15330     * Get whether the @p item is selected or not.
15331     *
15332     * @param item The list item.
15333     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
15334     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
15335     *
15336     * @see elm_list_selected_item_set() for details.
15337     * @see elm_list_item_selected_get()
15338     *
15339     * @ingroup List
15340     */
15341    EAPI Eina_Bool        elm_list_item_selected_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15342
15343    /**
15344     * Set or unset item as a separator.
15345     *
15346     * @param it The list item.
15347     * @param setting @c EINA_TRUE to set item @p it as separator or
15348     * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
15349     *
15350     * Items aren't set as separator by default.
15351     *
15352     * If set as separator it will display separator theme, so won't display
15353     * icons or label.
15354     *
15355     * @see elm_list_item_separator_get()
15356     *
15357     * @ingroup List
15358     */
15359    EAPI void             elm_list_item_separator_set(Elm_List_Item *it, Eina_Bool setting) EINA_ARG_NONNULL(1);
15360
15361    /**
15362     * Get a value whether item is a separator or not.
15363     *
15364     * @see elm_list_item_separator_set() for details.
15365     *
15366     * @param it The list item.
15367     * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
15368     * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
15369     *
15370     * @ingroup List
15371     */
15372    EAPI Eina_Bool        elm_list_item_separator_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
15373
15374    /**
15375     * Show @p item in the list view.
15376     *
15377     * @param item The list item to be shown.
15378     *
15379     * It won't animate list until item is visible. If such behavior is wanted,
15380     * use elm_list_bring_in() intead.
15381     *
15382     * @ingroup List
15383     */
15384    EAPI void             elm_list_item_show(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15385
15386    /**
15387     * Bring in the given item to list view.
15388     *
15389     * @param item The item.
15390     *
15391     * This causes list to jump to the given item @p item and show it
15392     * (by scrolling), if it is not fully visible.
15393     *
15394     * This may use animation to do so and take a period of time.
15395     *
15396     * If animation isn't wanted, elm_list_item_show() can be used.
15397     *
15398     * @ingroup List
15399     */
15400    EAPI void             elm_list_item_bring_in(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15401
15402    /**
15403     * Delete them item from the list.
15404     *
15405     * @param item The item of list to be deleted.
15406     *
15407     * If deleting all list items is required, elm_list_clear()
15408     * should be used instead of getting items list and deleting each one.
15409     *
15410     * @see elm_list_clear()
15411     * @see elm_list_item_append()
15412     * @see elm_list_item_del_cb_set()
15413     *
15414     * @ingroup List
15415     */
15416    EAPI void             elm_list_item_del(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15417
15418    /**
15419     * Set the function called when a list item is freed.
15420     *
15421     * @param item The item to set the callback on
15422     * @param func The function called
15423     *
15424     * If there is a @p func, then it will be called prior item's memory release.
15425     * That will be called with the following arguments:
15426     * @li item's data;
15427     * @li item's Evas object;
15428     * @li item itself;
15429     *
15430     * This way, a data associated to a list item could be properly freed.
15431     *
15432     * @ingroup List
15433     */
15434    EAPI void             elm_list_item_del_cb_set(Elm_List_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
15435
15436    /**
15437     * Get the data associated to the item.
15438     *
15439     * @param item The list item
15440     * @return The data associated to @p item
15441     *
15442     * The return value is a pointer to data associated to @p item when it was
15443     * created, with function elm_list_item_append() or similar. If no data
15444     * was passed as argument, it will return @c NULL.
15445     *
15446     * @see elm_list_item_append()
15447     *
15448     * @ingroup List
15449     */
15450    EAPI void            *elm_list_item_data_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15451
15452    /**
15453     * Get the left side icon associated to the item.
15454     *
15455     * @param item The list item
15456     * @return The left side icon associated to @p item
15457     *
15458     * The return value is a pointer to the icon associated to @p item when
15459     * it was
15460     * created, with function elm_list_item_append() or similar, or later
15461     * with function elm_list_item_icon_set(). If no icon
15462     * was passed as argument, it will return @c NULL.
15463     *
15464     * @see elm_list_item_append()
15465     * @see elm_list_item_icon_set()
15466     *
15467     * @ingroup List
15468     */
15469    EAPI Evas_Object     *elm_list_item_icon_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15470
15471    /**
15472     * Set the left side icon associated to the item.
15473     *
15474     * @param item The list item
15475     * @param icon The left side icon object to associate with @p item
15476     *
15477     * The icon object to use at left side of the item. An
15478     * icon can be any Evas object, but usually it is an icon created
15479     * with elm_icon_add().
15480     *
15481     * Once the icon object is set, a previously set one will be deleted.
15482     * @warning Setting the same icon for two items will cause the icon to
15483     * dissapear from the first item.
15484     *
15485     * If an icon was passed as argument on item creation, with function
15486     * elm_list_item_append() or similar, it will be already
15487     * associated to the item.
15488     *
15489     * @see elm_list_item_append()
15490     * @see elm_list_item_icon_get()
15491     *
15492     * @ingroup List
15493     */
15494    EAPI void             elm_list_item_icon_set(Elm_List_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
15495
15496    /**
15497     * Get the right side icon associated to the item.
15498     *
15499     * @param item The list item
15500     * @return The right side icon associated to @p item
15501     *
15502     * The return value is a pointer to the icon associated to @p item when
15503     * it was
15504     * created, with function elm_list_item_append() or similar, or later
15505     * with function elm_list_item_icon_set(). If no icon
15506     * was passed as argument, it will return @c NULL.
15507     *
15508     * @see elm_list_item_append()
15509     * @see elm_list_item_icon_set()
15510     *
15511     * @ingroup List
15512     */
15513    EAPI Evas_Object     *elm_list_item_end_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15514
15515    /**
15516     * Set the right side icon associated to the item.
15517     *
15518     * @param item The list item
15519     * @param end The right side icon object to associate with @p item
15520     *
15521     * The icon object to use at right side of the item. An
15522     * icon can be any Evas object, but usually it is an icon created
15523     * with elm_icon_add().
15524     *
15525     * Once the icon object is set, a previously set one will be deleted.
15526     * @warning Setting the same icon for two items will cause the icon to
15527     * dissapear from the first item.
15528     *
15529     * If an icon was passed as argument on item creation, with function
15530     * elm_list_item_append() or similar, it will be already
15531     * associated to the item.
15532     *
15533     * @see elm_list_item_append()
15534     * @see elm_list_item_end_get()
15535     *
15536     * @ingroup List
15537     */
15538    EAPI void             elm_list_item_end_set(Elm_List_Item *item, Evas_Object *end) EINA_ARG_NONNULL(1);
15539
15540    /**
15541     * Gets the base object of the item.
15542     *
15543     * @param item The list item
15544     * @return The base object associated with @p item
15545     *
15546     * Base object is the @c Evas_Object that represents that item.
15547     *
15548     * @ingroup List
15549     */
15550    EAPI Evas_Object     *elm_list_item_object_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15551    EINA_DEPRECATED EAPI Evas_Object     *elm_list_item_base_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15552
15553    /**
15554     * Get the label of item.
15555     *
15556     * @param item The item of list.
15557     * @return The label of item.
15558     *
15559     * The return value is a pointer to the label associated to @p item when
15560     * it was created, with function elm_list_item_append(), or later
15561     * with function elm_list_item_label_set. If no label
15562     * was passed as argument, it will return @c NULL.
15563     *
15564     * @see elm_list_item_label_set() for more details.
15565     * @see elm_list_item_append()
15566     *
15567     * @ingroup List
15568     */
15569    EAPI const char      *elm_list_item_label_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15570
15571    /**
15572     * Set the label of item.
15573     *
15574     * @param item The item of list.
15575     * @param text The label of item.
15576     *
15577     * The label to be displayed by the item.
15578     * Label will be placed between left and right side icons (if set).
15579     *
15580     * If a label was passed as argument on item creation, with function
15581     * elm_list_item_append() or similar, it will be already
15582     * displayed by the item.
15583     *
15584     * @see elm_list_item_label_get()
15585     * @see elm_list_item_append()
15586     *
15587     * @ingroup List
15588     */
15589    EAPI void             elm_list_item_label_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
15590
15591
15592    /**
15593     * Get the item before @p it in list.
15594     *
15595     * @param it The list item.
15596     * @return The item before @p it, or @c NULL if none or on failure.
15597     *
15598     * @note If it is the first item, @c NULL will be returned.
15599     *
15600     * @see elm_list_item_append()
15601     * @see elm_list_items_get()
15602     *
15603     * @ingroup List
15604     */
15605    EAPI Elm_List_Item   *elm_list_item_prev(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
15606
15607    /**
15608     * Get the item after @p it in list.
15609     *
15610     * @param it The list item.
15611     * @return The item after @p it, or @c NULL if none or on failure.
15612     *
15613     * @note If it is the last item, @c NULL will be returned.
15614     *
15615     * @see elm_list_item_append()
15616     * @see elm_list_items_get()
15617     *
15618     * @ingroup List
15619     */
15620    EAPI Elm_List_Item   *elm_list_item_next(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
15621
15622    /**
15623     * Sets the disabled/enabled state of a list item.
15624     *
15625     * @param it The item.
15626     * @param disabled The disabled state.
15627     *
15628     * A disabled item cannot be selected or unselected. It will also
15629     * change its appearance (generally greyed out). This sets the
15630     * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
15631     * enabled).
15632     *
15633     * @ingroup List
15634     */
15635    EAPI void             elm_list_item_disabled_set(Elm_List_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
15636
15637    /**
15638     * Get a value whether list item is disabled or not.
15639     *
15640     * @param it The item.
15641     * @return The disabled state.
15642     *
15643     * @see elm_list_item_disabled_set() for more details.
15644     *
15645     * @ingroup List
15646     */
15647    EAPI Eina_Bool        elm_list_item_disabled_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
15648
15649    /**
15650     * Set the text to be shown in a given list item's tooltips.
15651     *
15652     * @param item Target item.
15653     * @param text The text to set in the content.
15654     *
15655     * Setup the text as tooltip to object. The item can have only one tooltip,
15656     * so any previous tooltip data - set with this function or
15657     * elm_list_item_tooltip_content_cb_set() - is removed.
15658     *
15659     * @see elm_object_tooltip_text_set() for more details.
15660     *
15661     * @ingroup List
15662     */
15663    EAPI void             elm_list_item_tooltip_text_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
15664
15665
15666    /**
15667     * @brief Disable size restrictions on an object's tooltip
15668     * @param item The tooltip's anchor object
15669     * @param disable If EINA_TRUE, size restrictions are disabled
15670     * @return EINA_FALSE on failure, EINA_TRUE on success
15671     *
15672     * This function allows a tooltip to expand beyond its parant window's canvas.
15673     * It will instead be limited only by the size of the display.
15674     */
15675    EAPI Eina_Bool        elm_list_item_tooltip_size_restrict_disable(Elm_List_Item *item, Eina_Bool disable) EINA_ARG_NONNULL(1);
15676    /**
15677     * @brief Retrieve size restriction state of an object's tooltip
15678     * @param obj The tooltip's anchor object
15679     * @return If EINA_TRUE, size restrictions are disabled
15680     *
15681     * This function returns whether a tooltip is allowed to expand beyond
15682     * its parant window's canvas.
15683     * It will instead be limited only by the size of the display.
15684     */
15685    EAPI Eina_Bool        elm_list_item_tooltip_size_restrict_disabled_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15686
15687    /**
15688     * Set the content to be shown in the tooltip item.
15689     *
15690     * Setup the tooltip to item. The item can have only one tooltip,
15691     * so any previous tooltip data is removed. @p func(with @p data) will
15692     * be called every time that need show the tooltip and it should
15693     * return a valid Evas_Object. This object is then managed fully by
15694     * tooltip system and is deleted when the tooltip is gone.
15695     *
15696     * @param item the list item being attached a tooltip.
15697     * @param func the function used to create the tooltip contents.
15698     * @param data what to provide to @a func as callback data/context.
15699     * @param del_cb called when data is not needed anymore, either when
15700     *        another callback replaces @a func, the tooltip is unset with
15701     *        elm_list_item_tooltip_unset() or the owner @a item
15702     *        dies. This callback receives as the first parameter the
15703     *        given @a data, and @c event_info is the item.
15704     *
15705     * @see elm_object_tooltip_content_cb_set() for more details.
15706     *
15707     * @ingroup List
15708     */
15709    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);
15710
15711    /**
15712     * Unset tooltip from item.
15713     *
15714     * @param item list item to remove previously set tooltip.
15715     *
15716     * Remove tooltip from item. The callback provided as del_cb to
15717     * elm_list_item_tooltip_content_cb_set() will be called to notify
15718     * it is not used anymore.
15719     *
15720     * @see elm_object_tooltip_unset() for more details.
15721     * @see elm_list_item_tooltip_content_cb_set()
15722     *
15723     * @ingroup List
15724     */
15725    EAPI void             elm_list_item_tooltip_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15726
15727    /**
15728     * Sets a different style for this item tooltip.
15729     *
15730     * @note before you set a style you should define a tooltip with
15731     *       elm_list_item_tooltip_content_cb_set() or
15732     *       elm_list_item_tooltip_text_set()
15733     *
15734     * @param item list item with tooltip already set.
15735     * @param style the theme style to use (default, transparent, ...)
15736     *
15737     * @see elm_object_tooltip_style_set() for more details.
15738     *
15739     * @ingroup List
15740     */
15741    EAPI void             elm_list_item_tooltip_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
15742
15743    /**
15744     * Get the style for this item tooltip.
15745     *
15746     * @param item list item with tooltip already set.
15747     * @return style the theme style in use, defaults to "default". If the
15748     *         object does not have a tooltip set, then NULL is returned.
15749     *
15750     * @see elm_object_tooltip_style_get() for more details.
15751     * @see elm_list_item_tooltip_style_set()
15752     *
15753     * @ingroup List
15754     */
15755    EAPI const char      *elm_list_item_tooltip_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15756
15757    /**
15758     * Set the type of mouse pointer/cursor decoration to be shown,
15759     * when the mouse pointer is over the given list widget item
15760     *
15761     * @param item list item to customize cursor on
15762     * @param cursor the cursor type's name
15763     *
15764     * This function works analogously as elm_object_cursor_set(), but
15765     * here the cursor's changing area is restricted to the item's
15766     * area, and not the whole widget's. Note that that item cursors
15767     * have precedence over widget cursors, so that a mouse over an
15768     * item with custom cursor set will always show @b that cursor.
15769     *
15770     * If this function is called twice for an object, a previously set
15771     * cursor will be unset on the second call.
15772     *
15773     * @see elm_object_cursor_set()
15774     * @see elm_list_item_cursor_get()
15775     * @see elm_list_item_cursor_unset()
15776     *
15777     * @ingroup List
15778     */
15779    EAPI void             elm_list_item_cursor_set(Elm_List_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
15780
15781    /*
15782     * Get the type of mouse pointer/cursor decoration set to be shown,
15783     * when the mouse pointer is over the given list widget item
15784     *
15785     * @param item list item with custom cursor set
15786     * @return the cursor type's name or @c NULL, if no custom cursors
15787     * were set to @p item (and on errors)
15788     *
15789     * @see elm_object_cursor_get()
15790     * @see elm_list_item_cursor_set()
15791     * @see elm_list_item_cursor_unset()
15792     *
15793     * @ingroup List
15794     */
15795    EAPI const char      *elm_list_item_cursor_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15796
15797    /**
15798     * Unset any custom mouse pointer/cursor decoration set to be
15799     * shown, when the mouse pointer is over the given list widget
15800     * item, thus making it show the @b default cursor again.
15801     *
15802     * @param item a list item
15803     *
15804     * Use this call to undo any custom settings on this item's cursor
15805     * decoration, bringing it back to defaults (no custom style set).
15806     *
15807     * @see elm_object_cursor_unset()
15808     * @see elm_list_item_cursor_set()
15809     *
15810     * @ingroup List
15811     */
15812    EAPI void             elm_list_item_cursor_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15813
15814    /**
15815     * Set a different @b style for a given custom cursor set for a
15816     * list item.
15817     *
15818     * @param item list item with custom cursor set
15819     * @param style the <b>theme style</b> to use (e.g. @c "default",
15820     * @c "transparent", etc)
15821     *
15822     * This function only makes sense when one is using custom mouse
15823     * cursor decorations <b>defined in a theme file</b>, which can have,
15824     * given a cursor name/type, <b>alternate styles</b> on it. It
15825     * works analogously as elm_object_cursor_style_set(), but here
15826     * applyed only to list item objects.
15827     *
15828     * @warning Before you set a cursor style you should have definen a
15829     *       custom cursor previously on the item, with
15830     *       elm_list_item_cursor_set()
15831     *
15832     * @see elm_list_item_cursor_engine_only_set()
15833     * @see elm_list_item_cursor_style_get()
15834     *
15835     * @ingroup List
15836     */
15837    EAPI void             elm_list_item_cursor_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
15838
15839    /**
15840     * Get the current @b style set for a given list item's custom
15841     * cursor
15842     *
15843     * @param item list item with custom cursor set.
15844     * @return style the cursor style in use. If the object does not
15845     *         have a cursor set, then @c NULL is returned.
15846     *
15847     * @see elm_list_item_cursor_style_set() for more details
15848     *
15849     * @ingroup List
15850     */
15851    EAPI const char      *elm_list_item_cursor_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15852
15853    /**
15854     * Set if the (custom)cursor for a given list item should be
15855     * searched in its theme, also, or should only rely on the
15856     * rendering engine.
15857     *
15858     * @param item item with custom (custom) cursor already set on
15859     * @param engine_only Use @c EINA_TRUE to have cursors looked for
15860     * only on those provided by the rendering engine, @c EINA_FALSE to
15861     * have them searched on the widget's theme, as well.
15862     *
15863     * @note This call is of use only if you've set a custom cursor
15864     * for list items, with elm_list_item_cursor_set().
15865     *
15866     * @note By default, cursors will only be looked for between those
15867     * provided by the rendering engine.
15868     *
15869     * @ingroup List
15870     */
15871    EAPI void             elm_list_item_cursor_engine_only_set(Elm_List_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
15872
15873    /**
15874     * Get if the (custom) cursor for a given list item is being
15875     * searched in its theme, also, or is only relying on the rendering
15876     * engine.
15877     *
15878     * @param item a list item
15879     * @return @c EINA_TRUE, if cursors are being looked for only on
15880     * those provided by the rendering engine, @c EINA_FALSE if they
15881     * are being searched on the widget's theme, as well.
15882     *
15883     * @see elm_list_item_cursor_engine_only_set(), for more details
15884     *
15885     * @ingroup List
15886     */
15887    EAPI Eina_Bool        elm_list_item_cursor_engine_only_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15888
15889    /**
15890     * @}
15891     */
15892
15893    /**
15894     * @defgroup Slider Slider
15895     * @ingroup Elementary
15896     *
15897     * @image html img/widget/slider/preview-00.png
15898     * @image latex img/widget/slider/preview-00.eps width=\textwidth
15899     *
15900     * The slider adds a dragable “slider” widget for selecting the value of
15901     * something within a range.
15902     *
15903     * A slider can be horizontal or vertical. It can contain an Icon and has a
15904     * primary label as well as a units label (that is formatted with floating
15905     * point values and thus accepts a printf-style format string, like
15906     * “%1.2f units”. There is also an indicator string that may be somewhere
15907     * else (like on the slider itself) that also accepts a format string like
15908     * units. Label, Icon Unit and Indicator strings/objects are optional.
15909     *
15910     * A slider may be inverted which means values invert, with high vales being
15911     * on the left or top and low values on the right or bottom (as opposed to
15912     * normally being low on the left or top and high on the bottom and right).
15913     *
15914     * The slider should have its minimum and maximum values set by the
15915     * application with  elm_slider_min_max_set() and value should also be set by
15916     * the application before use with  elm_slider_value_set(). The span of the
15917     * slider is its length (horizontally or vertically). This will be scaled by
15918     * the object or applications scaling factor. At any point code can query the
15919     * slider for its value with elm_slider_value_get().
15920     *
15921     * Smart callbacks one can listen to:
15922     * - "changed" - Whenever the slider value is changed by the user.
15923     * - "slider,drag,start" - dragging the slider indicator around has started.
15924     * - "slider,drag,stop" - dragging the slider indicator around has stopped.
15925     * - "delay,changed" - A short time after the value is changed by the user.
15926     * This will be called only when the user stops dragging for
15927     * a very short period or when they release their
15928     * finger/mouse, so it avoids possibly expensive reactions to
15929     * the value change.
15930     *
15931     * Available styles for it:
15932     * - @c "default"
15933     *
15934     * Here is an example on its usage:
15935     * @li @ref slider_example
15936     */
15937
15938    /**
15939     * @addtogroup Slider
15940     * @{
15941     */
15942
15943    /**
15944     * Add a new slider widget to the given parent Elementary
15945     * (container) object.
15946     *
15947     * @param parent The parent object.
15948     * @return a new slider widget handle or @c NULL, on errors.
15949     *
15950     * This function inserts a new slider widget on the canvas.
15951     *
15952     * @ingroup Slider
15953     */
15954    EAPI Evas_Object       *elm_slider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
15955
15956    /**
15957     * Set the label of a given slider widget
15958     *
15959     * @param obj The progress bar object
15960     * @param label The text label string, in UTF-8
15961     *
15962     * @ingroup Slider
15963     * @deprecated use elm_object_text_set() instead.
15964     */
15965    EINA_DEPRECATED EAPI void               elm_slider_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
15966
15967    /**
15968     * Get the label of a given slider widget
15969     *
15970     * @param obj The progressbar object
15971     * @return The text label string, in UTF-8
15972     *
15973     * @ingroup Slider
15974     * @deprecated use elm_object_text_get() instead.
15975     */
15976    EINA_DEPRECATED EAPI const char        *elm_slider_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15977
15978    /**
15979     * Set the icon object of the slider object.
15980     *
15981     * @param obj The slider object.
15982     * @param icon The icon object.
15983     *
15984     * On horizontal mode, icon is placed at left, and on vertical mode,
15985     * placed at top.
15986     *
15987     * @note Once the icon object is set, a previously set one will be deleted.
15988     * If you want to keep that old content object, use the
15989     * elm_slider_icon_unset() function.
15990     *
15991     * @warning If the object being set does not have minimum size hints set,
15992     * it won't get properly displayed.
15993     *
15994     * @ingroup Slider
15995     */
15996    EAPI void               elm_slider_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
15997
15998    /**
15999     * Unset an icon set on a given slider widget.
16000     *
16001     * @param obj The slider object.
16002     * @return The icon object that was being used, if any was set, or
16003     * @c NULL, otherwise (and on errors).
16004     *
16005     * On horizontal mode, icon is placed at left, and on vertical mode,
16006     * placed at top.
16007     *
16008     * This call will unparent and return the icon object which was set
16009     * for this widget, previously, on success.
16010     *
16011     * @see elm_slider_icon_set() for more details
16012     * @see elm_slider_icon_get()
16013     *
16014     * @ingroup Slider
16015     */
16016    EAPI Evas_Object       *elm_slider_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
16017
16018    /**
16019     * Retrieve the icon object set for a given slider widget.
16020     *
16021     * @param obj The slider object.
16022     * @return The icon object's handle, if @p obj had one set, or @c NULL,
16023     * otherwise (and on errors).
16024     *
16025     * On horizontal mode, icon is placed at left, and on vertical mode,
16026     * placed at top.
16027     *
16028     * @see elm_slider_icon_set() for more details
16029     * @see elm_slider_icon_unset()
16030     *
16031     * @ingroup Slider
16032     */
16033    EAPI Evas_Object       *elm_slider_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16034
16035    /**
16036     * Set the end object of the slider object.
16037     *
16038     * @param obj The slider object.
16039     * @param end The end object.
16040     *
16041     * On horizontal mode, end is placed at left, and on vertical mode,
16042     * placed at bottom.
16043     *
16044     * @note Once the icon object is set, a previously set one will be deleted.
16045     * If you want to keep that old content object, use the
16046     * elm_slider_end_unset() function.
16047     *
16048     * @warning If the object being set does not have minimum size hints set,
16049     * it won't get properly displayed.
16050     *
16051     * @ingroup Slider
16052     */
16053    EAPI void               elm_slider_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1);
16054
16055    /**
16056     * Unset an end object set on a given slider widget.
16057     *
16058     * @param obj The slider object.
16059     * @return The end object that was being used, if any was set, or
16060     * @c NULL, otherwise (and on errors).
16061     *
16062     * On horizontal mode, end is placed at left, and on vertical mode,
16063     * placed at bottom.
16064     *
16065     * This call will unparent and return the icon object which was set
16066     * for this widget, previously, on success.
16067     *
16068     * @see elm_slider_end_set() for more details.
16069     * @see elm_slider_end_get()
16070     *
16071     * @ingroup Slider
16072     */
16073    EAPI Evas_Object       *elm_slider_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
16074
16075    /**
16076     * Retrieve the end object set for a given slider widget.
16077     *
16078     * @param obj The slider object.
16079     * @return The end object's handle, if @p obj had one set, or @c NULL,
16080     * otherwise (and on errors).
16081     *
16082     * On horizontal mode, icon is placed at right, and on vertical mode,
16083     * placed at bottom.
16084     *
16085     * @see elm_slider_end_set() for more details.
16086     * @see elm_slider_end_unset()
16087     *
16088     * @ingroup Slider
16089     */
16090    EAPI Evas_Object       *elm_slider_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16091
16092    /**
16093     * Set the (exact) length of the bar region of a given slider widget.
16094     *
16095     * @param obj The slider object.
16096     * @param size The length of the slider's bar region.
16097     *
16098     * This sets the minimum width (when in horizontal mode) or height
16099     * (when in vertical mode) of the actual bar area of the slider
16100     * @p obj. This in turn affects the object's minimum size. Use
16101     * this when you're not setting other size hints expanding on the
16102     * given direction (like weight and alignment hints) and you would
16103     * like it to have a specific size.
16104     *
16105     * @note Icon, end, label, indicator and unit text around @p obj
16106     * will require their
16107     * own space, which will make @p obj to require more the @p size,
16108     * actually.
16109     *
16110     * @see elm_slider_span_size_get()
16111     *
16112     * @ingroup Slider
16113     */
16114    EAPI void               elm_slider_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
16115
16116    /**
16117     * Get the length set for the bar region of a given slider widget
16118     *
16119     * @param obj The slider object.
16120     * @return The length of the slider's bar region.
16121     *
16122     * If that size was not set previously, with
16123     * elm_slider_span_size_set(), this call will return @c 0.
16124     *
16125     * @ingroup Slider
16126     */
16127    EAPI Evas_Coord         elm_slider_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16128
16129    /**
16130     * Set the format string for the unit label.
16131     *
16132     * @param obj The slider object.
16133     * @param format The format string for the unit display.
16134     *
16135     * Unit label is displayed all the time, if set, after slider's bar.
16136     * In horizontal mode, at right and in vertical mode, at bottom.
16137     *
16138     * If @c NULL, unit label won't be visible. If not it sets the format
16139     * string for the label text. To the label text is provided a floating point
16140     * value, so the label text can display up to 1 floating point value.
16141     * Note that this is optional.
16142     *
16143     * Use a format string such as "%1.2f meters" for example, and it will
16144     * display values like: "3.14 meters" for a value equal to 3.14159.
16145     *
16146     * Default is unit label disabled.
16147     *
16148     * @see elm_slider_indicator_format_get()
16149     *
16150     * @ingroup Slider
16151     */
16152    EAPI void               elm_slider_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
16153
16154    /**
16155     * Get the unit label format of the slider.
16156     *
16157     * @param obj The slider object.
16158     * @return The unit label format string in UTF-8.
16159     *
16160     * Unit label is displayed all the time, if set, after slider's bar.
16161     * In horizontal mode, at right and in vertical mode, at bottom.
16162     *
16163     * @see elm_slider_unit_format_set() for more
16164     * information on how this works.
16165     *
16166     * @ingroup Slider
16167     */
16168    EAPI const char        *elm_slider_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16169
16170    /**
16171     * Set the format string for the indicator label.
16172     *
16173     * @param obj The slider object.
16174     * @param indicator The format string for the indicator display.
16175     *
16176     * The slider may display its value somewhere else then unit label,
16177     * for example, above the slider knob that is dragged around. This function
16178     * sets the format string used for this.
16179     *
16180     * If @c NULL, indicator label won't be visible. If not it sets the format
16181     * string for the label text. To the label text is provided a floating point
16182     * value, so the label text can display up to 1 floating point value.
16183     * Note that this is optional.
16184     *
16185     * Use a format string such as "%1.2f meters" for example, and it will
16186     * display values like: "3.14 meters" for a value equal to 3.14159.
16187     *
16188     * Default is indicator label disabled.
16189     *
16190     * @see elm_slider_indicator_format_get()
16191     *
16192     * @ingroup Slider
16193     */
16194    EAPI void               elm_slider_indicator_format_set(Evas_Object *obj, const char *indicator) EINA_ARG_NONNULL(1);
16195
16196    /**
16197     * Get the indicator label format of the slider.
16198     *
16199     * @param obj The slider object.
16200     * @return The indicator label format string in UTF-8.
16201     *
16202     * The slider may display its value somewhere else then unit label,
16203     * for example, above the slider knob that is dragged around. This function
16204     * gets the format string used for this.
16205     *
16206     * @see elm_slider_indicator_format_set() for more
16207     * information on how this works.
16208     *
16209     * @ingroup Slider
16210     */
16211    EAPI const char        *elm_slider_indicator_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16212
16213    /**
16214     * Set the format function pointer for the indicator label
16215     *
16216     * @param obj The slider object.
16217     * @param func The indicator format function.
16218     * @param free_func The freeing function for the format string.
16219     *
16220     * Set the callback function to format the indicator string.
16221     *
16222     * @see elm_slider_indicator_format_set() for more info on how this works.
16223     *
16224     * @ingroup Slider
16225     */
16226   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);
16227
16228   /**
16229    * Set the format function pointer for the units label
16230    *
16231    * @param obj The slider object.
16232    * @param func The units format function.
16233    * @param free_func The freeing function for the format string.
16234    *
16235    * Set the callback function to format the indicator string.
16236    *
16237    * @see elm_slider_units_format_set() for more info on how this works.
16238    *
16239    * @ingroup Slider
16240    */
16241   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);
16242
16243   /**
16244    * Set the orientation of a given slider widget.
16245    *
16246    * @param obj The slider object.
16247    * @param horizontal Use @c EINA_TRUE to make @p obj to be
16248    * @b horizontal, @c EINA_FALSE to make it @b vertical.
16249    *
16250    * Use this function to change how your slider is to be
16251    * disposed: vertically or horizontally.
16252    *
16253    * By default it's displayed horizontally.
16254    *
16255    * @see elm_slider_horizontal_get()
16256    *
16257    * @ingroup Slider
16258    */
16259    EAPI void               elm_slider_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
16260
16261    /**
16262     * Retrieve the orientation of a given slider widget
16263     *
16264     * @param obj The slider object.
16265     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
16266     * @c EINA_FALSE if it's @b vertical (and on errors).
16267     *
16268     * @see elm_slider_horizontal_set() for more details.
16269     *
16270     * @ingroup Slider
16271     */
16272    EAPI Eina_Bool          elm_slider_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16273
16274    /**
16275     * Set the minimum and maximum values for the slider.
16276     *
16277     * @param obj The slider object.
16278     * @param min The minimum value.
16279     * @param max The maximum value.
16280     *
16281     * Define the allowed range of values to be selected by the user.
16282     *
16283     * If actual value is less than @p min, it will be updated to @p min. If it
16284     * is bigger then @p max, will be updated to @p max. Actual value can be
16285     * get with elm_slider_value_get().
16286     *
16287     * By default, min is equal to 0.0, and max is equal to 1.0.
16288     *
16289     * @warning Maximum must be greater than minimum, otherwise behavior
16290     * is undefined.
16291     *
16292     * @see elm_slider_min_max_get()
16293     *
16294     * @ingroup Slider
16295     */
16296    EAPI void               elm_slider_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
16297
16298    /**
16299     * Get the minimum and maximum values of the slider.
16300     *
16301     * @param obj The slider object.
16302     * @param min Pointer where to store the minimum value.
16303     * @param max Pointer where to store the maximum value.
16304     *
16305     * @note If only one value is needed, the other pointer can be passed
16306     * as @c NULL.
16307     *
16308     * @see elm_slider_min_max_set() for details.
16309     *
16310     * @ingroup Slider
16311     */
16312    EAPI void               elm_slider_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
16313
16314    /**
16315     * Set the value the slider displays.
16316     *
16317     * @param obj The slider object.
16318     * @param val The value to be displayed.
16319     *
16320     * Value will be presented on the unit label following format specified with
16321     * elm_slider_unit_format_set() and on indicator with
16322     * elm_slider_indicator_format_set().
16323     *
16324     * @warning The value must to be between min and max values. This values
16325     * are set by elm_slider_min_max_set().
16326     *
16327     * @see elm_slider_value_get()
16328     * @see elm_slider_unit_format_set()
16329     * @see elm_slider_indicator_format_set()
16330     * @see elm_slider_min_max_set()
16331     *
16332     * @ingroup Slider
16333     */
16334    EAPI void               elm_slider_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
16335
16336    /**
16337     * Get the value displayed by the spinner.
16338     *
16339     * @param obj The spinner object.
16340     * @return The value displayed.
16341     *
16342     * @see elm_spinner_value_set() for details.
16343     *
16344     * @ingroup Slider
16345     */
16346    EAPI double             elm_slider_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16347
16348    /**
16349     * Invert a given slider widget's displaying values order
16350     *
16351     * @param obj The slider object.
16352     * @param inverted Use @c EINA_TRUE to make @p obj inverted,
16353     * @c EINA_FALSE to bring it back to default, non-inverted values.
16354     *
16355     * A slider may be @b inverted, in which state it gets its
16356     * values inverted, with high vales being on the left or top and
16357     * low values on the right or bottom, as opposed to normally have
16358     * the low values on the former and high values on the latter,
16359     * respectively, for horizontal and vertical modes.
16360     *
16361     * @see elm_slider_inverted_get()
16362     *
16363     * @ingroup Slider
16364     */
16365    EAPI void               elm_slider_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
16366
16367    /**
16368     * Get whether a given slider widget's displaying values are
16369     * inverted or not.
16370     *
16371     * @param obj The slider object.
16372     * @return @c EINA_TRUE, if @p obj has inverted values,
16373     * @c EINA_FALSE otherwise (and on errors).
16374     *
16375     * @see elm_slider_inverted_set() for more details.
16376     *
16377     * @ingroup Slider
16378     */
16379    EAPI Eina_Bool          elm_slider_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16380
16381    /**
16382     * Set whether to enlarge slider indicator (augmented knob) or not.
16383     *
16384     * @param obj The slider object.
16385     * @param show @c EINA_TRUE will make it enlarge, @c EINA_FALSE will
16386     * let the knob always at default size.
16387     *
16388     * By default, indicator will be bigger while dragged by the user.
16389     *
16390     * @warning It won't display values set with
16391     * elm_slider_indicator_format_set() if you disable indicator.
16392     *
16393     * @ingroup Slider
16394     */
16395    EAPI void               elm_slider_indicator_show_set(Evas_Object *obj, Eina_Bool show) EINA_ARG_NONNULL(1);
16396
16397    /**
16398     * Get whether a given slider widget's enlarging indicator or not.
16399     *
16400     * @param obj The slider object.
16401     * @return @c EINA_TRUE, if @p obj is enlarging indicator, or
16402     * @c EINA_FALSE otherwise (and on errors).
16403     *
16404     * @see elm_slider_indicator_show_set() for details.
16405     *
16406     * @ingroup Slider
16407     */
16408    EAPI Eina_Bool          elm_slider_indicator_show_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16409
16410    /**
16411     * @}
16412     */
16413
16414    /**
16415     * @addtogroup Actionslider Actionslider
16416     *
16417     * @image html img/widget/actionslider/preview-00.png
16418     * @image latex img/widget/actionslider/preview-00.eps
16419     *
16420     * A actionslider is a switcher for 2 or 3 labels with customizable magnet
16421     * properties. The indicator is the element the user drags to choose a label.
16422     * When the position is set with magnet, when released the indicator will be
16423     * moved to it if it's nearest the magnetized position.
16424     *
16425     * @note By default all positions are set as enabled.
16426     *
16427     * Signals that you can add callbacks for are:
16428     *
16429     * "selected" - when user selects an enabled position (the label is passed
16430     *              as event info)".
16431     * @n
16432     * "pos_changed" - when the indicator reaches any of the positions("left",
16433     *                 "right" or "center").
16434     *
16435     * See an example of actionslider usage @ref actionslider_example_page "here"
16436     * @{
16437     */
16438    typedef enum _Elm_Actionslider_Pos
16439      {
16440         ELM_ACTIONSLIDER_NONE = 0,
16441         ELM_ACTIONSLIDER_LEFT = 1 << 0,
16442         ELM_ACTIONSLIDER_CENTER = 1 << 1,
16443         ELM_ACTIONSLIDER_RIGHT = 1 << 2,
16444         ELM_ACTIONSLIDER_ALL = (1 << 3) -1
16445      } Elm_Actionslider_Pos;
16446
16447    /**
16448     * Add a new actionslider to the parent.
16449     *
16450     * @param parent The parent object
16451     * @return The new actionslider object or NULL if it cannot be created
16452     */
16453    EAPI Evas_Object          *elm_actionslider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16454    /**
16455     * Set actionslider labels.
16456     *
16457     * @param obj The actionslider object
16458     * @param left_label The label to be set on the left.
16459     * @param center_label The label to be set on the center.
16460     * @param right_label The label to be set on the right.
16461     * @deprecated use elm_object_text_set() instead.
16462     */
16463    EINA_DEPRECATED EAPI void                  elm_actionslider_labels_set(Evas_Object *obj, const char *left_label, const char *center_label, const char *right_label) EINA_ARG_NONNULL(1);
16464    /**
16465     * Get actionslider labels.
16466     *
16467     * @param obj The actionslider object
16468     * @param left_label A char** to place the left_label of @p obj into.
16469     * @param center_label A char** to place the center_label of @p obj into.
16470     * @param right_label A char** to place the right_label of @p obj into.
16471     * @deprecated use elm_object_text_set() instead.
16472     */
16473    EINA_DEPRECATED EAPI void                  elm_actionslider_labels_get(const Evas_Object *obj, const char **left_label, const char **center_label, const char **right_label) EINA_ARG_NONNULL(1);
16474    /**
16475     * Get actionslider selected label.
16476     *
16477     * @param obj The actionslider object
16478     * @return The selected label
16479     */
16480    EAPI const char           *elm_actionslider_selected_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16481    /**
16482     * Set actionslider indicator position.
16483     *
16484     * @param obj The actionslider object.
16485     * @param pos The position of the indicator.
16486     */
16487    EAPI void                  elm_actionslider_indicator_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
16488    /**
16489     * Get actionslider indicator position.
16490     *
16491     * @param obj The actionslider object.
16492     * @return The position of the indicator.
16493     */
16494    EAPI Elm_Actionslider_Pos  elm_actionslider_indicator_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16495    /**
16496     * Set actionslider magnet position. To make multiple positions magnets @c or
16497     * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT)
16498     *
16499     * @param obj The actionslider object.
16500     * @param pos Bit mask indicating the magnet positions.
16501     */
16502    EAPI void                  elm_actionslider_magnet_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
16503    /**
16504     * Get actionslider magnet position.
16505     *
16506     * @param obj The actionslider object.
16507     * @return The positions with magnet property.
16508     */
16509    EAPI Elm_Actionslider_Pos  elm_actionslider_magnet_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16510    /**
16511     * Set actionslider enabled position. To set multiple positions as enabled @c or
16512     * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT).
16513     *
16514     * @note All the positions are enabled by default.
16515     *
16516     * @param obj The actionslider object.
16517     * @param pos Bit mask indicating the enabled positions.
16518     */
16519    EAPI void                  elm_actionslider_enabled_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
16520    /**
16521     * Get actionslider enabled position.
16522     *
16523     * @param obj The actionslider object.
16524     * @return The enabled positions.
16525     */
16526    EAPI Elm_Actionslider_Pos  elm_actionslider_enabled_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16527    /**
16528     * Set the label used on the indicator.
16529     *
16530     * @param obj The actionslider object
16531     * @param label The label to be set on the indicator.
16532     * @deprecated use elm_object_text_set() instead.
16533     */
16534    EINA_DEPRECATED EAPI void                  elm_actionslider_indicator_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
16535    /**
16536     * Get the label used on the indicator object.
16537     *
16538     * @param obj The actionslider object
16539     * @return The indicator label
16540     * @deprecated use elm_object_text_get() instead.
16541     */
16542    EINA_DEPRECATED EAPI const char           *elm_actionslider_indicator_label_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
16543    /**
16544     * @}
16545     */
16546
16547    /**
16548     * @defgroup Genlist Genlist
16549     *
16550     * @image html img/widget/genlist/preview-00.png
16551     * @image latex img/widget/genlist/preview-00.eps
16552     * @image html img/genlist.png
16553     * @image latex img/genlist.eps
16554     *
16555     * This widget aims to have more expansive list than the simple list in
16556     * Elementary that could have more flexible items and allow many more entries
16557     * while still being fast and low on memory usage. At the same time it was
16558     * also made to be able to do tree structures. But the price to pay is more
16559     * complexity when it comes to usage. If all you want is a simple list with
16560     * icons and a single label, use the normal @ref List object.
16561     *
16562     * Genlist has a fairly large API, mostly because it's relatively complex,
16563     * trying to be both expansive, powerful and efficient. First we will begin
16564     * an overview on the theory behind genlist.
16565     *
16566     * @section Genlist_Item_Class Genlist item classes - creating items
16567     *
16568     * In order to have the ability to add and delete items on the fly, genlist
16569     * implements a class (callback) system where the application provides a
16570     * structure with information about that type of item (genlist may contain
16571     * multiple different items with different classes, states and styles).
16572     * Genlist will call the functions in this struct (methods) when an item is
16573     * "realized" (i.e., created dynamically, while the user is scrolling the
16574     * grid). All objects will simply be deleted when no longer needed with
16575     * evas_object_del(). The #Elm_Genlist_Item_Class structure contains the
16576     * following members:
16577     * - @c item_style - This is a constant string and simply defines the name
16578     *   of the item style. It @b must be specified and the default should be @c
16579     *   "default".
16580     * - @c mode_item_style - This is a constant string and simply defines the
16581     *   name of the style that will be used for mode animations. It can be left
16582     *   as @c NULL if you don't plan to use Genlist mode. See
16583     *   elm_genlist_item_mode_set() for more info.
16584     *
16585     * - @c func - A struct with pointers to functions that will be called when
16586     *   an item is going to be actually created. All of them receive a @c data
16587     *   parameter that will point to the same data passed to
16588     *   elm_genlist_item_append() and related item creation functions, and a @c
16589     *   obj parameter that points to the genlist object itself.
16590     *
16591     * The function pointers inside @c func are @c label_get, @c icon_get, @c
16592     * state_get and @c del. The 3 first functions also receive a @c part
16593     * parameter described below. A brief description of these functions follows:
16594     *
16595     * - @c label_get - The @c part parameter is the name string of one of the
16596     *   existing text parts in the Edje group implementing the item's theme.
16597     *   This function @b must return a strdup'()ed string, as the caller will
16598     *   free() it when done. See #Elm_Genlist_Item_Label_Get_Cb.
16599     * - @c icon_get - The @c part parameter is the name string of one of the
16600     *   existing (icon) swallow parts in the Edje group implementing the item's
16601     *   theme. It must return @c NULL, when no icon is desired, or a valid
16602     *   object handle, otherwise.  The object will be deleted by the genlist on
16603     *   its deletion or when the item is "unrealized".  See
16604     *   #Elm_Genlist_Item_Icon_Get_Cb.
16605     * - @c func.state_get - The @c part parameter is the name string of one of
16606     *   the state parts in the Edje group implementing the item's theme. Return
16607     *   @c EINA_FALSE for false/off or @c EINA_TRUE for true/on. Genlists will
16608     *   emit a signal to its theming Edje object with @c "elm,state,XXX,active"
16609     *   and @c "elm" as "emission" and "source" arguments, respectively, when
16610     *   the state is true (the default is false), where @c XXX is the name of
16611     *   the (state) part.  See #Elm_Genlist_Item_State_Get_Cb.
16612     * - @c func.del - This is intended for use when genlist items are deleted,
16613     *   so any data attached to the item (e.g. its data parameter on creation)
16614     *   can be deleted. See #Elm_Genlist_Item_Del_Cb.
16615     *
16616     * available item styles:
16617     * - default
16618     * - default_style - The text part is a textblock
16619     *
16620     * @image html img/widget/genlist/preview-04.png
16621     * @image latex img/widget/genlist/preview-04.eps
16622     *
16623     * - double_label
16624     *
16625     * @image html img/widget/genlist/preview-01.png
16626     * @image latex img/widget/genlist/preview-01.eps
16627     *
16628     * - icon_top_text_bottom
16629     *
16630     * @image html img/widget/genlist/preview-02.png
16631     * @image latex img/widget/genlist/preview-02.eps
16632     *
16633     * - group_index
16634     *
16635     * @image html img/widget/genlist/preview-03.png
16636     * @image latex img/widget/genlist/preview-03.eps
16637     *
16638     * @section Genlist_Items Structure of items
16639     *
16640     * An item in a genlist can have 0 or more text labels (they can be regular
16641     * text or textblock Evas objects - that's up to the style to determine), 0
16642     * or more icons (which are simply objects swallowed into the genlist item's
16643     * theming Edje object) and 0 or more <b>boolean states</b>, which have the
16644     * behavior left to the user to define. The Edje part names for each of
16645     * these properties will be looked up, in the theme file for the genlist,
16646     * under the Edje (string) data items named @c "labels", @c "icons" and @c
16647     * "states", respectively. For each of those properties, if more than one
16648     * part is provided, they must have names listed separated by spaces in the
16649     * data fields. For the default genlist item theme, we have @b one label
16650     * part (@c "elm.text"), @b two icon parts (@c "elm.swalllow.icon" and @c
16651     * "elm.swallow.end") and @b no state parts.
16652     *
16653     * A genlist item may be at one of several styles. Elementary provides one
16654     * by default - "default", but this can be extended by system or application
16655     * custom themes/overlays/extensions (see @ref Theme "themes" for more
16656     * details).
16657     *
16658     * @section Genlist_Manipulation Editing and Navigating
16659     *
16660     * Items can be added by several calls. All of them return a @ref
16661     * Elm_Genlist_Item handle that is an internal member inside the genlist.
16662     * They all take a data parameter that is meant to be used for a handle to
16663     * the applications internal data (eg the struct with the original item
16664     * data). The parent parameter is the parent genlist item this belongs to if
16665     * it is a tree or an indexed group, and NULL if there is no parent. The
16666     * flags can be a bitmask of #ELM_GENLIST_ITEM_NONE,
16667     * #ELM_GENLIST_ITEM_SUBITEMS and #ELM_GENLIST_ITEM_GROUP. If
16668     * #ELM_GENLIST_ITEM_SUBITEMS is set then this item is displayed as an item
16669     * that is able to expand and have child items.  If ELM_GENLIST_ITEM_GROUP
16670     * is set then this item is group index item that is displayed at the top
16671     * until the next group comes. The func parameter is a convenience callback
16672     * that is called when the item is selected and the data parameter will be
16673     * the func_data parameter, obj be the genlist object and event_info will be
16674     * the genlist item.
16675     *
16676     * elm_genlist_item_append() adds an item to the end of the list, or if
16677     * there is a parent, to the end of all the child items of the parent.
16678     * elm_genlist_item_prepend() is the same but adds to the beginning of
16679     * the list or children list. elm_genlist_item_insert_before() inserts at
16680     * item before another item and elm_genlist_item_insert_after() inserts after
16681     * the indicated item.
16682     *
16683     * The application can clear the list with elm_genlist_clear() which deletes
16684     * all the items in the list and elm_genlist_item_del() will delete a specific
16685     * item. elm_genlist_item_subitems_clear() will clear all items that are
16686     * children of the indicated parent item.
16687     *
16688     * To help inspect list items you can jump to the item at the top of the list
16689     * with elm_genlist_first_item_get() which will return the item pointer, and
16690     * similarly elm_genlist_last_item_get() gets the item at the end of the list.
16691     * elm_genlist_item_next_get() and elm_genlist_item_prev_get() get the next
16692     * and previous items respectively relative to the indicated item. Using
16693     * these calls you can walk the entire item list/tree. Note that as a tree
16694     * the items are flattened in the list, so elm_genlist_item_parent_get() will
16695     * let you know which item is the parent (and thus know how to skip them if
16696     * wanted).
16697     *
16698     * @section Genlist_Muti_Selection Multi-selection
16699     *
16700     * If the application wants multiple items to be able to be selected,
16701     * elm_genlist_multi_select_set() can enable this. If the list is
16702     * single-selection only (the default), then elm_genlist_selected_item_get()
16703     * will return the selected item, if any, or NULL I none is selected. If the
16704     * list is multi-select then elm_genlist_selected_items_get() will return a
16705     * list (that is only valid as long as no items are modified (added, deleted,
16706     * selected or unselected)).
16707     *
16708     * @section Genlist_Usage_Hints Usage hints
16709     *
16710     * There are also convenience functions. elm_genlist_item_genlist_get() will
16711     * return the genlist object the item belongs to. elm_genlist_item_show()
16712     * will make the scroller scroll to show that specific item so its visible.
16713     * elm_genlist_item_data_get() returns the data pointer set by the item
16714     * creation functions.
16715     *
16716     * If an item changes (state of boolean changes, label or icons change),
16717     * then use elm_genlist_item_update() to have genlist update the item with
16718     * the new state. Genlist will re-realize the item thus call the functions
16719     * in the _Elm_Genlist_Item_Class for that item.
16720     *
16721     * To programmatically (un)select an item use elm_genlist_item_selected_set().
16722     * To get its selected state use elm_genlist_item_selected_get(). Similarly
16723     * to expand/contract an item and get its expanded state, use
16724     * elm_genlist_item_expanded_set() and elm_genlist_item_expanded_get(). And
16725     * again to make an item disabled (unable to be selected and appear
16726     * differently) use elm_genlist_item_disabled_set() to set this and
16727     * elm_genlist_item_disabled_get() to get the disabled state.
16728     *
16729     * In general to indicate how the genlist should expand items horizontally to
16730     * fill the list area, use elm_genlist_horizontal_set(). Valid modes are
16731     * ELM_LIST_LIMIT and ELM_LIST_SCROLL. The default is ELM_LIST_SCROLL. This
16732     * mode means that if items are too wide to fit, the scroller will scroll
16733     * horizontally. Otherwise items are expanded to fill the width of the
16734     * viewport of the scroller. If it is ELM_LIST_LIMIT, items will be expanded
16735     * to the viewport width and limited to that size. This can be combined with
16736     * a different style that uses edjes' ellipsis feature (cutting text off like
16737     * this: "tex...").
16738     *
16739     * Items will only call their selection func and callback when first becoming
16740     * selected. Any further clicks will do nothing, unless you enable always
16741     * select with elm_genlist_always_select_mode_set(). This means even if
16742     * selected, every click will make the selected callbacks be called.
16743     * elm_genlist_no_select_mode_set() will turn off the ability to select
16744     * items entirely and they will neither appear selected nor call selected
16745     * callback functions.
16746     *
16747     * Remember that you can create new styles and add your own theme augmentation
16748     * per application with elm_theme_extension_add(). If you absolutely must
16749     * have a specific style that overrides any theme the user or system sets up
16750     * you can use elm_theme_overlay_add() to add such a file.
16751     *
16752     * @section Genlist_Implementation Implementation
16753     *
16754     * Evas tracks every object you create. Every time it processes an event
16755     * (mouse move, down, up etc.) it needs to walk through objects and find out
16756     * what event that affects. Even worse every time it renders display updates,
16757     * in order to just calculate what to re-draw, it needs to walk through many
16758     * many many objects. Thus, the more objects you keep active, the more
16759     * overhead Evas has in just doing its work. It is advisable to keep your
16760     * active objects to the minimum working set you need. Also remember that
16761     * object creation and deletion carries an overhead, so there is a
16762     * middle-ground, which is not easily determined. But don't keep massive lists
16763     * of objects you can't see or use. Genlist does this with list objects. It
16764     * creates and destroys them dynamically as you scroll around. It groups them
16765     * into blocks so it can determine the visibility etc. of a whole block at
16766     * once as opposed to having to walk the whole list. This 2-level list allows
16767     * for very large numbers of items to be in the list (tests have used up to
16768     * 2,000,000 items). Also genlist employs a queue for adding items. As items
16769     * may be different sizes, every item added needs to be calculated as to its
16770     * size and thus this presents a lot of overhead on populating the list, this
16771     * genlist employs a queue. Any item added is queued and spooled off over
16772     * time, actually appearing some time later, so if your list has many members
16773     * you may find it takes a while for them to all appear, with your process
16774     * consuming a lot of CPU while it is busy spooling.
16775     *
16776     * Genlist also implements a tree structure, but it does so with callbacks to
16777     * the application, with the application filling in tree structures when
16778     * requested (allowing for efficient building of a very deep tree that could
16779     * even be used for file-management). See the above smart signal callbacks for
16780     * details.
16781     *
16782     * @section Genlist_Smart_Events Genlist smart events
16783     *
16784     * Signals that you can add callbacks for are:
16785     * - @c "activated" - The user has double-clicked or pressed
16786     *   (enter|return|spacebar) on an item. The @c event_info parameter is the
16787     *   item that was activated.
16788     * - @c "clicked,double" - The user has double-clicked an item.  The @c
16789     *   event_info parameter is the item that was double-clicked.
16790     * - @c "selected" - This is called when a user has made an item selected.
16791     *   The event_info parameter is the genlist item that was selected.
16792     * - @c "unselected" - This is called when a user has made an item
16793     *   unselected. The event_info parameter is the genlist item that was
16794     *   unselected.
16795     * - @c "expanded" - This is called when elm_genlist_item_expanded_set() is
16796     *   called and the item is now meant to be expanded. The event_info
16797     *   parameter is the genlist item that was indicated to expand.  It is the
16798     *   job of this callback to then fill in the child items.
16799     * - @c "contracted" - This is called when elm_genlist_item_expanded_set() is
16800     *   called and the item is now meant to be contracted. The event_info
16801     *   parameter is the genlist item that was indicated to contract. It is the
16802     *   job of this callback to then delete the child items.
16803     * - @c "expand,request" - This is called when a user has indicated they want
16804     *   to expand a tree branch item. The callback should decide if the item can
16805     *   expand (has any children) and then call elm_genlist_item_expanded_set()
16806     *   appropriately to set the state. The event_info parameter is the genlist
16807     *   item that was indicated to expand.
16808     * - @c "contract,request" - This is called when a user has indicated they
16809     *   want to contract a tree branch item. The callback should decide if the
16810     *   item can contract (has any children) and then call
16811     *   elm_genlist_item_expanded_set() appropriately to set the state. The
16812     *   event_info parameter is the genlist item that was indicated to contract.
16813     * - @c "realized" - This is called when the item in the list is created as a
16814     *   real evas object. event_info parameter is the genlist item that was
16815     *   created. The object may be deleted at any time, so it is up to the
16816     *   caller to not use the object pointer from elm_genlist_item_object_get()
16817     *   in a way where it may point to freed objects.
16818     * - @c "unrealized" - This is called just before an item is unrealized.
16819     *   After this call icon objects provided will be deleted and the item
16820     *   object itself delete or be put into a floating cache.
16821     * - @c "drag,start,up" - This is called when the item in the list has been
16822     *   dragged (not scrolled) up.
16823     * - @c "drag,start,down" - This is called when the item in the list has been
16824     *   dragged (not scrolled) down.
16825     * - @c "drag,start,left" - This is called when the item in the list has been
16826     *   dragged (not scrolled) left.
16827     * - @c "drag,start,right" - This is called when the item in the list has
16828     *   been dragged (not scrolled) right.
16829     * - @c "drag,stop" - This is called when the item in the list has stopped
16830     *   being dragged.
16831     * - @c "drag" - This is called when the item in the list is being dragged.
16832     * - @c "longpressed" - This is called when the item is pressed for a certain
16833     *   amount of time. By default it's 1 second.
16834     * - @c "scroll,anim,start" - This is called when scrolling animation has
16835     *   started.
16836     * - @c "scroll,anim,stop" - This is called when scrolling animation has
16837     *   stopped.
16838     * - @c "scroll,drag,start" - This is called when dragging the content has
16839     *   started.
16840     * - @c "scroll,drag,stop" - This is called when dragging the content has
16841     *   stopped.
16842     * - @c "scroll,edge,top" - This is called when the genlist is scrolled until
16843     *   the top edge.
16844     * - @c "scroll,edge,bottom" - This is called when the genlist is scrolled
16845     *   until the bottom edge.
16846     * - @c "scroll,edge,left" - This is called when the genlist is scrolled
16847     *   until the left edge.
16848     * - @c "scroll,edge,right" - This is called when the genlist is scrolled
16849     *   until the right edge.
16850     * - @c "multi,swipe,left" - This is called when the genlist is multi-touch
16851     *   swiped left.
16852     * - @c "multi,swipe,right" - This is called when the genlist is multi-touch
16853     *   swiped right.
16854     * - @c "multi,swipe,up" - This is called when the genlist is multi-touch
16855     *   swiped up.
16856     * - @c "multi,swipe,down" - This is called when the genlist is multi-touch
16857     *   swiped down.
16858     * - @c "multi,pinch,out" - This is called when the genlist is multi-touch
16859     *   pinched out.  "- @c multi,pinch,in" - This is called when the genlist is
16860     *   multi-touch pinched in.
16861     * - @c "swipe" - This is called when the genlist is swiped.
16862     *
16863     * @section Genlist_Examples Examples
16864     *
16865     * Here is a list of examples that use the genlist, trying to show some of
16866     * its capabilities:
16867     * - @ref genlist_example_01
16868     * - @ref genlist_example_02
16869     * - @ref genlist_example_03
16870     * - @ref genlist_example_04
16871     * - @ref genlist_example_05
16872     */
16873
16874    /**
16875     * @addtogroup Genlist
16876     * @{
16877     */
16878
16879    /**
16880     * @enum _Elm_Genlist_Item_Flags
16881     * @typedef Elm_Genlist_Item_Flags
16882     *
16883     * Defines if the item is of any special type (has subitems or it's the
16884     * index of a group), or is just a simple item.
16885     *
16886     * @ingroup Genlist
16887     */
16888    typedef enum _Elm_Genlist_Item_Flags
16889      {
16890         ELM_GENLIST_ITEM_NONE = 0, /**< simple item */
16891         ELM_GENLIST_ITEM_SUBITEMS = (1 << 0), /**< may expand and have child items */
16892         ELM_GENLIST_ITEM_GROUP = (1 << 1) /**< index of a group of items */
16893      } Elm_Genlist_Item_Flags;
16894    typedef struct _Elm_Genlist_Item_Class Elm_Genlist_Item_Class;  /**< Genlist item class definition structs */
16895    typedef struct _Elm_Genlist_Item       Elm_Genlist_Item; /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
16896    typedef struct _Elm_Genlist_Item_Class_Func Elm_Genlist_Item_Class_Func; /**< Class functions for genlist item class */
16897    typedef char        *(*Elm_Genlist_Item_Label_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< Label fetching class function for genlist item classes. */
16898    typedef Evas_Object *(*Elm_Genlist_Item_Icon_Get_Cb)  (void *data, Evas_Object *obj, const char *part); /**< Icon fetching class function for genlist item classes. */
16899    typedef Eina_Bool    (*Elm_Genlist_Item_State_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< State fetching class function for genlist item classes. */
16900    typedef void         (*Elm_Genlist_Item_Del_Cb)      (void *data, Evas_Object *obj); /**< Deletion class function for genlist item classes. */
16901    typedef void         (*GenlistItemMovedFunc)    (Evas_Object *obj, Elm_Genlist_Item *item, Elm_Genlist_Item *rel_item, Eina_Bool move_after); /** TODO: remove this by SeoZ **/
16902
16903    typedef char        *(*GenlistItemLabelGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_Label_Get_Cb instead. */
16904    typedef Evas_Object *(*GenlistItemIconGetFunc)  (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_Icon_Get_Cb instead. */
16905    typedef Eina_Bool    (*GenlistItemStateGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_State_Get_Cb instead. */
16906    typedef void         (*GenlistItemDelFunc)      (void *data, Evas_Object *obj) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_Del_Cb instead. */
16907
16908    /**
16909     * @struct _Elm_Genlist_Item_Class
16910     *
16911     * Genlist item class definition structs.
16912     *
16913     * This struct contains the style and fetching functions that will define the
16914     * contents of each item.
16915     *
16916     * @see @ref Genlist_Item_Class
16917     */
16918    struct _Elm_Genlist_Item_Class
16919      {
16920         const char                *item_style; /**< style of this class. */
16921         struct
16922           {
16923              Elm_Genlist_Item_Label_Get_Cb  label_get; /**< Label fetching class function for genlist item classes.*/
16924              Elm_Genlist_Item_Icon_Get_Cb   icon_get; /**< Icon fetching class function for genlist item classes. */
16925              Elm_Genlist_Item_State_Get_Cb  state_get; /**< State fetching class function for genlist item classes. */
16926              Elm_Genlist_Item_Del_Cb        del; /**< Deletion class function for genlist item classes. */
16927              GenlistItemMovedFunc     moved; // TODO: do not use this. change this to smart callback.
16928           } func;
16929         const char                *mode_item_style;
16930      };
16931
16932    /**
16933     * Add a new genlist widget to the given parent Elementary
16934     * (container) object
16935     *
16936     * @param parent The parent object
16937     * @return a new genlist widget handle or @c NULL, on errors
16938     *
16939     * This function inserts a new genlist widget on the canvas.
16940     *
16941     * @see elm_genlist_item_append()
16942     * @see elm_genlist_item_del()
16943     * @see elm_genlist_clear()
16944     *
16945     * @ingroup Genlist
16946     */
16947    EAPI Evas_Object      *elm_genlist_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16948    /**
16949     * Remove all items from a given genlist widget.
16950     *
16951     * @param obj The genlist object
16952     *
16953     * This removes (and deletes) all items in @p obj, leaving it empty.
16954     *
16955     * @see elm_genlist_item_del(), to remove just one item.
16956     *
16957     * @ingroup Genlist
16958     */
16959    EAPI void              elm_genlist_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
16960    /**
16961     * Enable or disable multi-selection in the genlist
16962     *
16963     * @param obj The genlist object
16964     * @param multi Multi-select enable/disable. Default is disabled.
16965     *
16966     * This enables (@c EINA_TRUE) or disables (@c EINA_FALSE) multi-selection in
16967     * the list. This allows more than 1 item to be selected. To retrieve the list
16968     * of selected items, use elm_genlist_selected_items_get().
16969     *
16970     * @see elm_genlist_selected_items_get()
16971     * @see elm_genlist_multi_select_get()
16972     *
16973     * @ingroup Genlist
16974     */
16975    EAPI void              elm_genlist_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
16976    /**
16977     * Gets if multi-selection in genlist is enabled or disabled.
16978     *
16979     * @param obj The genlist object
16980     * @return Multi-select enabled/disabled
16981     * (@c EINA_TRUE = enabled/@c EINA_FALSE = disabled). Default is @c EINA_FALSE.
16982     *
16983     * @see elm_genlist_multi_select_set()
16984     *
16985     * @ingroup Genlist
16986     */
16987    EAPI Eina_Bool         elm_genlist_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16988    /**
16989     * This sets the horizontal stretching mode.
16990     *
16991     * @param obj The genlist object
16992     * @param mode The mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).
16993     *
16994     * This sets the mode used for sizing items horizontally. Valid modes
16995     * are #ELM_LIST_LIMIT and #ELM_LIST_SCROLL. The default is
16996     * ELM_LIST_SCROLL. This mode means that if items are too wide to fit,
16997     * the scroller will scroll horizontally. Otherwise items are expanded
16998     * to fill the width of the viewport of the scroller. If it is
16999     * ELM_LIST_LIMIT, items will be expanded to the viewport width and
17000     * limited to that size.
17001     *
17002     * @see elm_genlist_horizontal_get()
17003     *
17004     * @ingroup Genlist
17005     */
17006    EAPI void              elm_genlist_horizontal_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
17007    EINA_DEPRECATED EAPI void              elm_genlist_horizontal_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
17008    /**
17009     * Gets the horizontal stretching mode.
17010     *
17011     * @param obj The genlist object
17012     * @return The mode to use
17013     * (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL)
17014     *
17015     * @see elm_genlist_horizontal_set()
17016     *
17017     * @ingroup Genlist
17018     */
17019    EAPI Elm_List_Mode     elm_genlist_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17020    EINA_DEPRECATED EAPI Elm_List_Mode     elm_genlist_horizontal_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17021    /**
17022     * Set the always select mode.
17023     *
17024     * @param obj The genlist object
17025     * @param always_select The always select mode (@c EINA_TRUE = on, @c
17026     * EINA_FALSE = off). Default is @c EINA_FALSE.
17027     *
17028     * Items will only call their selection func and callback when first
17029     * becoming selected. Any further clicks will do nothing, unless you
17030     * enable always select with elm_genlist_always_select_mode_set().
17031     * This means that, even if selected, every click will make the selected
17032     * callbacks be called.
17033     *
17034     * @see elm_genlist_always_select_mode_get()
17035     *
17036     * @ingroup Genlist
17037     */
17038    EAPI void              elm_genlist_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
17039    /**
17040     * Get the always select mode.
17041     *
17042     * @param obj The genlist object
17043     * @return The always select mode
17044     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
17045     *
17046     * @see elm_genlist_always_select_mode_set()
17047     *
17048     * @ingroup Genlist
17049     */
17050    EAPI Eina_Bool         elm_genlist_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17051    /**
17052     * Enable/disable the no select mode.
17053     *
17054     * @param obj The genlist object
17055     * @param no_select The no select mode
17056     * (EINA_TRUE = on, EINA_FALSE = off)
17057     *
17058     * This will turn off the ability to select items entirely and they
17059     * will neither appear selected nor call selected callback functions.
17060     *
17061     * @see elm_genlist_no_select_mode_get()
17062     *
17063     * @ingroup Genlist
17064     */
17065    EAPI void              elm_genlist_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
17066    /**
17067     * Gets whether the no select mode is enabled.
17068     *
17069     * @param obj The genlist object
17070     * @return The no select mode
17071     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
17072     *
17073     * @see elm_genlist_no_select_mode_set()
17074     *
17075     * @ingroup Genlist
17076     */
17077    EAPI Eina_Bool         elm_genlist_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17078    /**
17079     * Enable/disable compress mode.
17080     *
17081     * @param obj The genlist object
17082     * @param compress The compress mode
17083     * (@c EINA_TRUE = on, @c EINA_FALSE = off). Default is @c EINA_FALSE.
17084     *
17085     * This will enable the compress mode where items are "compressed"
17086     * horizontally to fit the genlist scrollable viewport width. This is
17087     * special for genlist.  Do not rely on
17088     * elm_genlist_horizontal_set() being set to @c ELM_LIST_COMPRESS to
17089     * work as genlist needs to handle it specially.
17090     *
17091     * @see elm_genlist_compress_mode_get()
17092     *
17093     * @ingroup Genlist
17094     */
17095    EAPI void              elm_genlist_compress_mode_set(Evas_Object *obj, Eina_Bool compress) EINA_ARG_NONNULL(1);
17096    /**
17097     * Get whether the compress mode is enabled.
17098     *
17099     * @param obj The genlist object
17100     * @return The compress mode
17101     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
17102     *
17103     * @see elm_genlist_compress_mode_set()
17104     *
17105     * @ingroup Genlist
17106     */
17107    EAPI Eina_Bool         elm_genlist_compress_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17108    /**
17109     * Enable/disable height-for-width mode.
17110     *
17111     * @param obj The genlist object
17112     * @param setting The height-for-width mode (@c EINA_TRUE = on,
17113     * @c EINA_FALSE = off). Default is @c EINA_FALSE.
17114     *
17115     * With height-for-width mode the item width will be fixed (restricted
17116     * to a minimum of) to the list width when calculating its size in
17117     * order to allow the height to be calculated based on it. This allows,
17118     * for instance, text block to wrap lines if the Edje part is
17119     * configured with "text.min: 0 1".
17120     *
17121     * @note This mode will make list resize slower as it will have to
17122     *       recalculate every item height again whenever the list width
17123     *       changes!
17124     *
17125     * @note When height-for-width mode is enabled, it also enables
17126     *       compress mode (see elm_genlist_compress_mode_set()) and
17127     *       disables homogeneous (see elm_genlist_homogeneous_set()).
17128     *
17129     * @ingroup Genlist
17130     */
17131    EAPI void              elm_genlist_height_for_width_mode_set(Evas_Object *obj, Eina_Bool height_for_width) EINA_ARG_NONNULL(1);
17132    /**
17133     * Get whether the height-for-width mode is enabled.
17134     *
17135     * @param obj The genlist object
17136     * @return The height-for-width mode (@c EINA_TRUE = on, @c EINA_FALSE =
17137     * off)
17138     *
17139     * @ingroup Genlist
17140     */
17141    EAPI Eina_Bool         elm_genlist_height_for_width_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17142    /**
17143     * Enable/disable horizontal and vertical bouncing effect.
17144     *
17145     * @param obj The genlist object
17146     * @param h_bounce Allow bounce horizontally (@c EINA_TRUE = on, @c
17147     * EINA_FALSE = off). Default is @c EINA_FALSE.
17148     * @param v_bounce Allow bounce vertically (@c EINA_TRUE = on, @c
17149     * EINA_FALSE = off). Default is @c EINA_TRUE.
17150     *
17151     * This will enable or disable the scroller bouncing effect for the
17152     * genlist. See elm_scroller_bounce_set() for details.
17153     *
17154     * @see elm_scroller_bounce_set()
17155     * @see elm_genlist_bounce_get()
17156     *
17157     * @ingroup Genlist
17158     */
17159    EAPI void              elm_genlist_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
17160    /**
17161     * Get whether the horizontal and vertical bouncing effect is enabled.
17162     *
17163     * @param obj The genlist object
17164     * @param h_bounce Pointer to a bool to receive if the bounce horizontally
17165     * option is set.
17166     * @param v_bounce Pointer to a bool to receive if the bounce vertically
17167     * option is set.
17168     *
17169     * @see elm_genlist_bounce_set()
17170     *
17171     * @ingroup Genlist
17172     */
17173    EAPI void              elm_genlist_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
17174    /**
17175     * Enable/disable homogenous mode.
17176     *
17177     * @param obj The genlist object
17178     * @param homogeneous Assume the items within the genlist are of the
17179     * same height and width (EINA_TRUE = on, EINA_FALSE = off). Default is @c
17180     * EINA_FALSE.
17181     *
17182     * This will enable the homogeneous mode where items are of the same
17183     * height and width so that genlist may do the lazy-loading at its
17184     * maximum (which increases the performance for scrolling the list). This
17185     * implies 'compressed' mode.
17186     *
17187     * @see elm_genlist_compress_mode_set()
17188     * @see elm_genlist_homogeneous_get()
17189     *
17190     * @ingroup Genlist
17191     */
17192    EAPI void              elm_genlist_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
17193    /**
17194     * Get whether the homogenous mode is enabled.
17195     *
17196     * @param obj The genlist object
17197     * @return Assume the items within the genlist are of the same height
17198     * and width (EINA_TRUE = on, EINA_FALSE = off)
17199     *
17200     * @see elm_genlist_homogeneous_set()
17201     *
17202     * @ingroup Genlist
17203     */
17204    EAPI Eina_Bool         elm_genlist_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17205    /**
17206     * Set the maximum number of items within an item block
17207     *
17208     * @param obj The genlist object
17209     * @param n   Maximum number of items within an item block. Default is 32.
17210     *
17211     * This will configure the block count to tune to the target with
17212     * particular performance matrix.
17213     *
17214     * A block of objects will be used to reduce the number of operations due to
17215     * many objects in the screen. It can determine the visibility, or if the
17216     * object has changed, it theme needs to be updated, etc. doing this kind of
17217     * calculation to the entire block, instead of per object.
17218     *
17219     * The default value for the block count is enough for most lists, so unless
17220     * you know you will have a lot of objects visible in the screen at the same
17221     * time, don't try to change this.
17222     *
17223     * @see elm_genlist_block_count_get()
17224     * @see @ref Genlist_Implementation
17225     *
17226     * @ingroup Genlist
17227     */
17228    EAPI void              elm_genlist_block_count_set(Evas_Object *obj, int n) EINA_ARG_NONNULL(1);
17229    /**
17230     * Get the maximum number of items within an item block
17231     *
17232     * @param obj The genlist object
17233     * @return Maximum number of items within an item block
17234     *
17235     * @see elm_genlist_block_count_set()
17236     *
17237     * @ingroup Genlist
17238     */
17239    EAPI int               elm_genlist_block_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17240    /**
17241     * Set the timeout in seconds for the longpress event.
17242     *
17243     * @param obj The genlist object
17244     * @param timeout timeout in seconds. Default is 1.
17245     *
17246     * This option will change how long it takes to send an event "longpressed"
17247     * after the mouse down signal is sent to the list. If this event occurs, no
17248     * "clicked" event will be sent.
17249     *
17250     * @see elm_genlist_longpress_timeout_set()
17251     *
17252     * @ingroup Genlist
17253     */
17254    EAPI void              elm_genlist_longpress_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
17255    /**
17256     * Get the timeout in seconds for the longpress event.
17257     *
17258     * @param obj The genlist object
17259     * @return timeout in seconds
17260     *
17261     * @see elm_genlist_longpress_timeout_get()
17262     *
17263     * @ingroup Genlist
17264     */
17265    EAPI double            elm_genlist_longpress_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17266    /**
17267     * Append a new item in a given genlist widget.
17268     *
17269     * @param obj The genlist object
17270     * @param itc The item class for the item
17271     * @param data The item data
17272     * @param parent The parent item, or NULL if none
17273     * @param flags Item flags
17274     * @param func Convenience function called when the item is selected
17275     * @param func_data Data passed to @p func above.
17276     * @return A handle to the item added or @c NULL if not possible
17277     *
17278     * This adds the given item to the end of the list or the end of
17279     * the children list if the @p parent is given.
17280     *
17281     * @see elm_genlist_item_prepend()
17282     * @see elm_genlist_item_insert_before()
17283     * @see elm_genlist_item_insert_after()
17284     * @see elm_genlist_item_del()
17285     *
17286     * @ingroup Genlist
17287     */
17288    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);
17289    /**
17290     * Prepend a new item in a given genlist widget.
17291     *
17292     * @param obj The genlist object
17293     * @param itc The item class for the item
17294     * @param data The item data
17295     * @param parent The parent item, or NULL if none
17296     * @param flags Item flags
17297     * @param func Convenience function called when the item is selected
17298     * @param func_data Data passed to @p func above.
17299     * @return A handle to the item added or NULL if not possible
17300     *
17301     * This adds an item to the beginning of the list or beginning of the
17302     * children of the parent if given.
17303     *
17304     * @see elm_genlist_item_append()
17305     * @see elm_genlist_item_insert_before()
17306     * @see elm_genlist_item_insert_after()
17307     * @see elm_genlist_item_del()
17308     *
17309     * @ingroup Genlist
17310     */
17311    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);
17312    /**
17313     * Insert an item before another in a genlist widget
17314     *
17315     * @param obj The genlist object
17316     * @param itc The item class for the item
17317     * @param data The item data
17318     * @param before The item to place this new one before.
17319     * @param flags Item flags
17320     * @param func Convenience function called when the item is selected
17321     * @param func_data Data passed to @p func above.
17322     * @return A handle to the item added or @c NULL if not possible
17323     *
17324     * This inserts an item before another in the list. It will be in the
17325     * same tree level or group as the item it is inserted before.
17326     *
17327     * @see elm_genlist_item_append()
17328     * @see elm_genlist_item_prepend()
17329     * @see elm_genlist_item_insert_after()
17330     * @see elm_genlist_item_del()
17331     *
17332     * @ingroup Genlist
17333     */
17334    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);
17335    /**
17336     * Insert an item after another in a genlist widget
17337     *
17338     * @param obj The genlist object
17339     * @param itc The item class for the item
17340     * @param data The item data
17341     * @param after The item to place this new one after.
17342     * @param flags Item flags
17343     * @param func Convenience function called when the item is selected
17344     * @param func_data Data passed to @p func above.
17345     * @return A handle to the item added or @c NULL if not possible
17346     *
17347     * This inserts an item after another in the list. It will be in the
17348     * same tree level or group as the item it is inserted after.
17349     *
17350     * @see elm_genlist_item_append()
17351     * @see elm_genlist_item_prepend()
17352     * @see elm_genlist_item_insert_before()
17353     * @see elm_genlist_item_del()
17354     *
17355     * @ingroup Genlist
17356     */
17357    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);
17358    /**
17359     * Insert a new item into the sorted genlist object
17360     *
17361     * @param obj The genlist object
17362     * @param itc The item class for the item
17363     * @param data The item data
17364     * @param parent The parent item, or NULL if none
17365     * @param flags Item flags
17366     * @param comp The function called for the sort
17367     * @param func Convenience function called when item selected
17368     * @param func_data Data passed to @p func above.
17369     * @return A handle to the item added or NULL if not possible
17370     *
17371     * @ingroup Genlist
17372     */
17373    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);
17374    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);
17375    /* operations to retrieve existing items */
17376    /**
17377     * Get the selectd item in the genlist.
17378     *
17379     * @param obj The genlist object
17380     * @return The selected item, or NULL if none is selected.
17381     *
17382     * This gets the selected item in the list (if multi-selection is enabled, only
17383     * the item that was first selected in the list is returned - which is not very
17384     * useful, so see elm_genlist_selected_items_get() for when multi-selection is
17385     * used).
17386     *
17387     * If no item is selected, NULL is returned.
17388     *
17389     * @see elm_genlist_selected_items_get()
17390     *
17391     * @ingroup Genlist
17392     */
17393    EAPI Elm_Genlist_Item *elm_genlist_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17394    /**
17395     * Get a list of selected items in the genlist.
17396     *
17397     * @param obj The genlist object
17398     * @return The list of selected items, or NULL if none are selected.
17399     *
17400     * It returns a list of the selected items. This list pointer is only valid so
17401     * long as the selection doesn't change (no items are selected or unselected, or
17402     * unselected implicitly by deletion). The list contains Elm_Genlist_Item
17403     * pointers. The order of the items in this list is the order which they were
17404     * selected, i.e. the first item in this list is the first item that was
17405     * selected, and so on.
17406     *
17407     * @note If not in multi-select mode, consider using function
17408     * elm_genlist_selected_item_get() instead.
17409     *
17410     * @see elm_genlist_multi_select_set()
17411     * @see elm_genlist_selected_item_get()
17412     *
17413     * @ingroup Genlist
17414     */
17415    EAPI const Eina_List  *elm_genlist_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17416    /**
17417     * Get a list of realized items in genlist
17418     *
17419     * @param obj The genlist object
17420     * @return The list of realized items, nor NULL if none are realized.
17421     *
17422     * This returns a list of the realized items in the genlist. The list
17423     * contains Elm_Genlist_Item pointers. The list must be freed by the
17424     * caller when done with eina_list_free(). The item pointers in the
17425     * list are only valid so long as those items are not deleted or the
17426     * genlist is not deleted.
17427     *
17428     * @see elm_genlist_realized_items_update()
17429     *
17430     * @ingroup Genlist
17431     */
17432    EAPI Eina_List        *elm_genlist_realized_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17433    /**
17434     * Get the item that is at the x, y canvas coords.
17435     *
17436     * @param obj The gelinst object.
17437     * @param x The input x coordinate
17438     * @param y The input y coordinate
17439     * @param posret The position relative to the item returned here
17440     * @return The item at the coordinates or NULL if none
17441     *
17442     * This returns the item at the given coordinates (which are canvas
17443     * relative, not object-relative). If an item is at that coordinate,
17444     * that item handle is returned, and if @p posret is not NULL, the
17445     * integer pointed to is set to a value of -1, 0 or 1, depending if
17446     * the coordinate is on the upper portion of that item (-1), on the
17447     * middle section (0) or on the lower part (1). If NULL is returned as
17448     * an item (no item found there), then posret may indicate -1 or 1
17449     * based if the coordinate is above or below all items respectively in
17450     * the genlist.
17451     *
17452     * @ingroup Genlist
17453     */
17454    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);
17455    /**
17456     * Get the first item in the genlist
17457     *
17458     * This returns the first item in the list.
17459     *
17460     * @param obj The genlist object
17461     * @return The first item, or NULL if none
17462     *
17463     * @ingroup Genlist
17464     */
17465    EAPI Elm_Genlist_Item *elm_genlist_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17466    /**
17467     * Get the last item in the genlist
17468     *
17469     * This returns the last item in the list.
17470     *
17471     * @return The last item, or NULL if none
17472     *
17473     * @ingroup Genlist
17474     */
17475    EAPI Elm_Genlist_Item *elm_genlist_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17476    /**
17477     * Set the scrollbar policy
17478     *
17479     * @param obj The genlist object
17480     * @param policy_h Horizontal scrollbar policy.
17481     * @param policy_v Vertical scrollbar policy.
17482     *
17483     * This sets the scrollbar visibility policy for the given genlist
17484     * scroller. #ELM_SMART_SCROLLER_POLICY_AUTO means the scrollbar is
17485     * made visible if it is needed, and otherwise kept hidden.
17486     * #ELM_SMART_SCROLLER_POLICY_ON turns it on all the time, and
17487     * #ELM_SMART_SCROLLER_POLICY_OFF always keeps it off. This applies
17488     * respectively for the horizontal and vertical scrollbars. Default is
17489     * #ELM_SMART_SCROLLER_POLICY_AUTO
17490     *
17491     * @see elm_genlist_scroller_policy_get()
17492     *
17493     * @ingroup Genlist
17494     */
17495    EAPI void              elm_genlist_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
17496    /**
17497     * Get the scrollbar policy
17498     *
17499     * @param obj The genlist object
17500     * @param policy_h Pointer to store the horizontal scrollbar policy.
17501     * @param policy_v Pointer to store the vertical scrollbar policy.
17502     *
17503     * @see elm_genlist_scroller_policy_set()
17504     *
17505     * @ingroup Genlist
17506     */
17507    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);
17508    /**
17509     * Get the @b next item in a genlist widget's internal list of items,
17510     * given a handle to one of those items.
17511     *
17512     * @param item The genlist item to fetch next from
17513     * @return The item after @p item, or @c NULL if there's none (and
17514     * on errors)
17515     *
17516     * This returns the item placed after the @p item, on the container
17517     * genlist.
17518     *
17519     * @see elm_genlist_item_prev_get()
17520     *
17521     * @ingroup Genlist
17522     */
17523    EAPI Elm_Genlist_Item  *elm_genlist_item_next_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17524    /**
17525     * Get the @b previous item in a genlist widget's internal list of items,
17526     * given a handle to one of those items.
17527     *
17528     * @param item The genlist item to fetch previous from
17529     * @return The item before @p item, or @c NULL if there's none (and
17530     * on errors)
17531     *
17532     * This returns the item placed before the @p item, on the container
17533     * genlist.
17534     *
17535     * @see elm_genlist_item_next_get()
17536     *
17537     * @ingroup Genlist
17538     */
17539    EAPI Elm_Genlist_Item  *elm_genlist_item_prev_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17540    /**
17541     * Get the genlist object's handle which contains a given genlist
17542     * item
17543     *
17544     * @param item The item to fetch the container from
17545     * @return The genlist (parent) object
17546     *
17547     * This returns the genlist object itself that an item belongs to.
17548     *
17549     * @ingroup Genlist
17550     */
17551    EAPI Evas_Object       *elm_genlist_item_genlist_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17552    /**
17553     * Get the parent item of the given item
17554     *
17555     * @param it The item
17556     * @return The parent of the item or @c NULL if it has no parent.
17557     *
17558     * This returns the item that was specified as parent of the item @p it on
17559     * elm_genlist_item_append() and insertion related functions.
17560     *
17561     * @ingroup Genlist
17562     */
17563    EAPI Elm_Genlist_Item  *elm_genlist_item_parent_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17564    /**
17565     * Remove all sub-items (children) of the given item
17566     *
17567     * @param it The item
17568     *
17569     * This removes all items that are children (and their descendants) of the
17570     * given item @p it.
17571     *
17572     * @see elm_genlist_clear()
17573     * @see elm_genlist_item_del()
17574     *
17575     * @ingroup Genlist
17576     */
17577    EAPI void               elm_genlist_item_subitems_clear(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17578    /**
17579     * Set whether a given genlist item is selected or not
17580     *
17581     * @param it The item
17582     * @param selected Use @c EINA_TRUE, to make it selected, @c
17583     * EINA_FALSE to make it unselected
17584     *
17585     * This sets the selected state of an item. If multi selection is
17586     * not enabled on the containing genlist and @p selected is @c
17587     * EINA_TRUE, any other previously selected items will get
17588     * unselected in favor of this new one.
17589     *
17590     * @see elm_genlist_item_selected_get()
17591     *
17592     * @ingroup Genlist
17593     */
17594    EAPI void               elm_genlist_item_selected_set(Elm_Genlist_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
17595    /**
17596     * Get whether a given genlist item is selected or not
17597     *
17598     * @param it The item
17599     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
17600     *
17601     * @see elm_genlist_item_selected_set() for more details
17602     *
17603     * @ingroup Genlist
17604     */
17605    EAPI Eina_Bool          elm_genlist_item_selected_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17606    /**
17607     * Sets the expanded state of an item.
17608     *
17609     * @param it The item
17610     * @param expanded The expanded state (@c EINA_TRUE expanded, @c EINA_FALSE not expanded).
17611     *
17612     * This function flags the item of type #ELM_GENLIST_ITEM_SUBITEMS as
17613     * expanded or not.
17614     *
17615     * The theme will respond to this change visually, and a signal "expanded" or
17616     * "contracted" will be sent from the genlist with a pointer to the item that
17617     * has been expanded/contracted.
17618     *
17619     * Calling this function won't show or hide any child of this item (if it is
17620     * a parent). You must manually delete and create them on the callbacks fo
17621     * the "expanded" or "contracted" signals.
17622     *
17623     * @see elm_genlist_item_expanded_get()
17624     *
17625     * @ingroup Genlist
17626     */
17627    EAPI void               elm_genlist_item_expanded_set(Elm_Genlist_Item *item, Eina_Bool expanded) EINA_ARG_NONNULL(1);
17628    /**
17629     * Get the expanded state of an item
17630     *
17631     * @param it The item
17632     * @return The expanded state
17633     *
17634     * This gets the expanded state of an item.
17635     *
17636     * @see elm_genlist_item_expanded_set()
17637     *
17638     * @ingroup Genlist
17639     */
17640    EAPI Eina_Bool          elm_genlist_item_expanded_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17641    /**
17642     * Get the depth of expanded item
17643     *
17644     * @param it The genlist item object
17645     * @return The depth of expanded item
17646     *
17647     * @ingroup Genlist
17648     */
17649    EAPI int                elm_genlist_item_expanded_depth_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17650    /**
17651     * Set whether a given genlist item is disabled or not.
17652     *
17653     * @param it The item
17654     * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
17655     * to enable it back.
17656     *
17657     * A disabled item cannot be selected or unselected. It will also
17658     * change its appearance, to signal the user it's disabled.
17659     *
17660     * @see elm_genlist_item_disabled_get()
17661     *
17662     * @ingroup Genlist
17663     */
17664    EAPI void               elm_genlist_item_disabled_set(Elm_Genlist_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
17665    /**
17666     * Get whether a given genlist item is disabled or not.
17667     *
17668     * @param it The item
17669     * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
17670     * (and on errors).
17671     *
17672     * @see elm_genlist_item_disabled_set() for more details
17673     *
17674     * @ingroup Genlist
17675     */
17676    EAPI Eina_Bool          elm_genlist_item_disabled_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17677    /**
17678     * Sets the display only state of an item.
17679     *
17680     * @param it The item
17681     * @param display_only @c EINA_TRUE if the item is display only, @c
17682     * EINA_FALSE otherwise.
17683     *
17684     * A display only item cannot be selected or unselected. It is for
17685     * display only and not selecting or otherwise clicking, dragging
17686     * etc. by the user, thus finger size rules will not be applied to
17687     * this item.
17688     *
17689     * It's good to set group index items to display only state.
17690     *
17691     * @see elm_genlist_item_display_only_get()
17692     *
17693     * @ingroup Genlist
17694     */
17695    EAPI void               elm_genlist_item_display_only_set(Elm_Genlist_Item *it, Eina_Bool display_only) EINA_ARG_NONNULL(1);
17696    /**
17697     * Get the display only state of an item
17698     *
17699     * @param it The item
17700     * @return @c EINA_TRUE if the item is display only, @c
17701     * EINA_FALSE otherwise.
17702     *
17703     * @see elm_genlist_item_display_only_set()
17704     *
17705     * @ingroup Genlist
17706     */
17707    EAPI Eina_Bool          elm_genlist_item_display_only_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17708    /**
17709     * Show the portion of a genlist's internal list containing a given
17710     * item, immediately.
17711     *
17712     * @param it The item to display
17713     *
17714     * This causes genlist to jump to the given item @p it and show it (by
17715     * immediately scrolling to that position), if it is not fully visible.
17716     *
17717     * @see elm_genlist_item_bring_in()
17718     * @see elm_genlist_item_top_show()
17719     * @see elm_genlist_item_middle_show()
17720     *
17721     * @ingroup Genlist
17722     */
17723    EAPI void               elm_genlist_item_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17724    /**
17725     * Animatedly bring in, to the visible are of a genlist, a given
17726     * item on it.
17727     *
17728     * @param it The item to display
17729     *
17730     * This causes genlist to jump to the given item @p it and show it (by
17731     * animatedly scrolling), if it is not fully visible. This may use animation
17732     * to do so and take a period of time
17733     *
17734     * @see elm_genlist_item_show()
17735     * @see elm_genlist_item_top_bring_in()
17736     * @see elm_genlist_item_middle_bring_in()
17737     *
17738     * @ingroup Genlist
17739     */
17740    EAPI void               elm_genlist_item_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17741    /**
17742     * Show the portion of a genlist's internal list containing a given
17743     * item, immediately.
17744     *
17745     * @param it The item to display
17746     *
17747     * This causes genlist to jump to the given item @p it and show it (by
17748     * immediately scrolling to that position), if it is not fully visible.
17749     *
17750     * The item will be positioned at the top of the genlist viewport.
17751     *
17752     * @see elm_genlist_item_show()
17753     * @see elm_genlist_item_top_bring_in()
17754     *
17755     * @ingroup Genlist
17756     */
17757    EAPI void               elm_genlist_item_top_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17758    /**
17759     * Animatedly bring in, to the visible are of a genlist, a given
17760     * item on it.
17761     *
17762     * @param it The item
17763     *
17764     * This causes genlist to jump to the given item @p it and show it (by
17765     * animatedly scrolling), if it is not fully visible. This may use animation
17766     * to do so and take a period of time
17767     *
17768     * The item will be positioned at the top of the genlist viewport.
17769     *
17770     * @see elm_genlist_item_bring_in()
17771     * @see elm_genlist_item_top_show()
17772     *
17773     * @ingroup Genlist
17774     */
17775    EAPI void               elm_genlist_item_top_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17776    /**
17777     * Show the portion of a genlist's internal list containing a given
17778     * item, immediately.
17779     *
17780     * @param it The item to display
17781     *
17782     * This causes genlist to jump to the given item @p it and show it (by
17783     * immediately scrolling to that position), if it is not fully visible.
17784     *
17785     * The item will be positioned at the middle of the genlist viewport.
17786     *
17787     * @see elm_genlist_item_show()
17788     * @see elm_genlist_item_middle_bring_in()
17789     *
17790     * @ingroup Genlist
17791     */
17792    EAPI void               elm_genlist_item_middle_show(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17793    /**
17794     * Animatedly bring in, to the visible are of a genlist, a given
17795     * item on it.
17796     *
17797     * @param it The item
17798     *
17799     * This causes genlist to jump to the given item @p it and show it (by
17800     * animatedly scrolling), if it is not fully visible. This may use animation
17801     * to do so and take a period of time
17802     *
17803     * The item will be positioned at the middle of the genlist viewport.
17804     *
17805     * @see elm_genlist_item_bring_in()
17806     * @see elm_genlist_item_middle_show()
17807     *
17808     * @ingroup Genlist
17809     */
17810    EAPI void               elm_genlist_item_middle_bring_in(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17811    /**
17812     * Remove a genlist item from the its parent, deleting it.
17813     *
17814     * @param item The item to be removed.
17815     * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
17816     *
17817     * @see elm_genlist_clear(), to remove all items in a genlist at
17818     * once.
17819     *
17820     * @ingroup Genlist
17821     */
17822    EAPI void               elm_genlist_item_del(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17823    /**
17824     * Return the data associated to a given genlist item
17825     *
17826     * @param item The genlist item.
17827     * @return the data associated to this item.
17828     *
17829     * This returns the @c data value passed on the
17830     * elm_genlist_item_append() and related item addition calls.
17831     *
17832     * @see elm_genlist_item_append()
17833     * @see elm_genlist_item_data_set()
17834     *
17835     * @ingroup Genlist
17836     */
17837    EAPI void              *elm_genlist_item_data_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17838    /**
17839     * Set the data associated to a given genlist item
17840     *
17841     * @param item The genlist item
17842     * @param data The new data pointer to set on it
17843     *
17844     * This @b overrides the @c data value passed on the
17845     * elm_genlist_item_append() and related item addition calls. This
17846     * function @b won't call elm_genlist_item_update() automatically,
17847     * so you'd issue it afterwards if you want to hove the item
17848     * updated to reflect the that new data.
17849     *
17850     * @see elm_genlist_item_data_get()
17851     *
17852     * @ingroup Genlist
17853     */
17854    EAPI void               elm_genlist_item_data_set(Elm_Genlist_Item *it, const void *data) EINA_ARG_NONNULL(1);
17855    /**
17856     * Tells genlist to "orphan" icons fetchs by the item class
17857     *
17858     * @param it The item
17859     *
17860     * This instructs genlist to release references to icons in the item,
17861     * meaning that they will no longer be managed by genlist and are
17862     * floating "orphans" that can be re-used elsewhere if the user wants
17863     * to.
17864     *
17865     * @ingroup Genlist
17866     */
17867    EAPI void               elm_genlist_item_icons_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17868    /**
17869     * Get the real Evas object created to implement the view of a
17870     * given genlist item
17871     *
17872     * @param item The genlist item.
17873     * @return the Evas object implementing this item's view.
17874     *
17875     * This returns the actual Evas object used to implement the
17876     * specified genlist item's view. This may be @c NULL, as it may
17877     * not have been created or may have been deleted, at any time, by
17878     * the genlist. <b>Do not modify this object</b> (move, resize,
17879     * show, hide, etc.), as the genlist is controlling it. This
17880     * function is for querying, emitting custom signals or hooking
17881     * lower level callbacks for events on that object. Do not delete
17882     * this object under any circumstances.
17883     *
17884     * @see elm_genlist_item_data_get()
17885     *
17886     * @ingroup Genlist
17887     */
17888    EAPI const Evas_Object *elm_genlist_item_object_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17889    /**
17890     * Update the contents of an item
17891     *
17892     * @param it The item
17893     *
17894     * This updates an item by calling all the item class functions again
17895     * to get the icons, labels and states. Use this when the original
17896     * item data has changed and the changes are desired to be reflected.
17897     *
17898     * Use elm_genlist_realized_items_update() to update all already realized
17899     * items.
17900     *
17901     * @see elm_genlist_realized_items_update()
17902     *
17903     * @ingroup Genlist
17904     */
17905    EAPI void               elm_genlist_item_update(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17906    /**
17907     * Update the item class of an item
17908     *
17909     * @param it The item
17910     * @param itc The item class for the item
17911     *
17912     * This sets another class fo the item, changing the way that it is
17913     * displayed. After changing the item class, elm_genlist_item_update() is
17914     * called on the item @p it.
17915     *
17916     * @ingroup Genlist
17917     */
17918    EAPI void               elm_genlist_item_item_class_update(Elm_Genlist_Item *it, const Elm_Genlist_Item_Class *itc) EINA_ARG_NONNULL(1, 2);
17919    EAPI const Elm_Genlist_Item_Class *elm_genlist_item_item_class_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17920    /**
17921     * Set the text to be shown in a given genlist item's tooltips.
17922     *
17923     * @param item The genlist item
17924     * @param text The text to set in the content
17925     *
17926     * This call will setup the text to be used as tooltip to that item
17927     * (analogous to elm_object_tooltip_text_set(), but being item
17928     * tooltips with higher precedence than object tooltips). It can
17929     * have only one tooltip at a time, so any previous tooltip data
17930     * will get removed.
17931     *
17932     * In order to set an icon or something else as a tooltip, look at
17933     * elm_genlist_item_tooltip_content_cb_set().
17934     *
17935     * @ingroup Genlist
17936     */
17937    EAPI void               elm_genlist_item_tooltip_text_set(Elm_Genlist_Item *item, const char *text) EINA_ARG_NONNULL(1);
17938    /**
17939     * Set the content to be shown in a given genlist item's tooltips
17940     *
17941     * @param item The genlist item.
17942     * @param func The function returning the tooltip contents.
17943     * @param data What to provide to @a func as callback data/context.
17944     * @param del_cb Called when data is not needed anymore, either when
17945     *        another callback replaces @p func, the tooltip is unset with
17946     *        elm_genlist_item_tooltip_unset() or the owner @p item
17947     *        dies. This callback receives as its first parameter the
17948     *        given @p data, being @c event_info the item handle.
17949     *
17950     * This call will setup the tooltip's contents to @p item
17951     * (analogous to elm_object_tooltip_content_cb_set(), but being
17952     * item tooltips with higher precedence than object tooltips). It
17953     * can have only one tooltip at a time, so any previous tooltip
17954     * content will get removed. @p func (with @p data) will be called
17955     * every time Elementary needs to show the tooltip and it should
17956     * return a valid Evas object, which will be fully managed by the
17957     * tooltip system, getting deleted when the tooltip is gone.
17958     *
17959     * In order to set just a text as a tooltip, look at
17960     * elm_genlist_item_tooltip_text_set().
17961     *
17962     * @ingroup Genlist
17963     */
17964    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);
17965    /**
17966     * Unset a tooltip from a given genlist item
17967     *
17968     * @param item genlist item to remove a previously set tooltip from.
17969     *
17970     * This call removes any tooltip set on @p item. The callback
17971     * provided as @c del_cb to
17972     * elm_genlist_item_tooltip_content_cb_set() will be called to
17973     * notify it is not used anymore (and have resources cleaned, if
17974     * need be).
17975     *
17976     * @see elm_genlist_item_tooltip_content_cb_set()
17977     *
17978     * @ingroup Genlist
17979     */
17980    EAPI void               elm_genlist_item_tooltip_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17981    /**
17982     * Set a different @b style for a given genlist item's tooltip.
17983     *
17984     * @param item genlist item with tooltip set
17985     * @param style the <b>theme style</b> to use on tooltips (e.g. @c
17986     * "default", @c "transparent", etc)
17987     *
17988     * Tooltips can have <b>alternate styles</b> to be displayed on,
17989     * which are defined by the theme set on Elementary. This function
17990     * works analogously as elm_object_tooltip_style_set(), but here
17991     * applied only to genlist item objects. The default style for
17992     * tooltips is @c "default".
17993     *
17994     * @note before you set a style you should define a tooltip with
17995     *       elm_genlist_item_tooltip_content_cb_set() or
17996     *       elm_genlist_item_tooltip_text_set()
17997     *
17998     * @see elm_genlist_item_tooltip_style_get()
17999     *
18000     * @ingroup Genlist
18001     */
18002    EAPI void               elm_genlist_item_tooltip_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
18003    /**
18004     * Get the style set a given genlist item's tooltip.
18005     *
18006     * @param item genlist item with tooltip already set on.
18007     * @return style the theme style in use, which defaults to
18008     *         "default". If the object does not have a tooltip set,
18009     *         then @c NULL is returned.
18010     *
18011     * @see elm_genlist_item_tooltip_style_set() for more details
18012     *
18013     * @ingroup Genlist
18014     */
18015    EAPI const char        *elm_genlist_item_tooltip_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18016    /**
18017     * @brief Disable size restrictions on an object's tooltip
18018     * @param item The tooltip's anchor object
18019     * @param disable If EINA_TRUE, size restrictions are disabled
18020     * @return EINA_FALSE on failure, EINA_TRUE on success
18021     *
18022     * This function allows a tooltip to expand beyond its parant window's canvas.
18023     * It will instead be limited only by the size of the display.
18024     */
18025    EAPI Eina_Bool          elm_genlist_item_tooltip_size_restrict_disable(Elm_Genlist_Item *item, Eina_Bool disable);
18026    /**
18027     * @brief Retrieve size restriction state of an object's tooltip
18028     * @param item The tooltip's anchor object
18029     * @return If EINA_TRUE, size restrictions are disabled
18030     *
18031     * This function returns whether a tooltip is allowed to expand beyond
18032     * its parant window's canvas.
18033     * It will instead be limited only by the size of the display.
18034     */
18035    EAPI Eina_Bool          elm_genlist_item_tooltip_size_restrict_disabled_get(const Elm_Genlist_Item *item);
18036    /**
18037     * Set the type of mouse pointer/cursor decoration to be shown,
18038     * when the mouse pointer is over the given genlist widget item
18039     *
18040     * @param item genlist item to customize cursor on
18041     * @param cursor the cursor type's name
18042     *
18043     * This function works analogously as elm_object_cursor_set(), but
18044     * here the cursor's changing area is restricted to the item's
18045     * area, and not the whole widget's. Note that that item cursors
18046     * have precedence over widget cursors, so that a mouse over @p
18047     * item will always show cursor @p type.
18048     *
18049     * If this function is called twice for an object, a previously set
18050     * cursor will be unset on the second call.
18051     *
18052     * @see elm_object_cursor_set()
18053     * @see elm_genlist_item_cursor_get()
18054     * @see elm_genlist_item_cursor_unset()
18055     *
18056     * @ingroup Genlist
18057     */
18058    EAPI void               elm_genlist_item_cursor_set(Elm_Genlist_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
18059    /**
18060     * Get the type of mouse pointer/cursor decoration set to be shown,
18061     * when the mouse pointer is over the given genlist widget item
18062     *
18063     * @param item genlist item with custom cursor set
18064     * @return the cursor type's name or @c NULL, if no custom cursors
18065     * were set to @p item (and on errors)
18066     *
18067     * @see elm_object_cursor_get()
18068     * @see elm_genlist_item_cursor_set() for more details
18069     * @see elm_genlist_item_cursor_unset()
18070     *
18071     * @ingroup Genlist
18072     */
18073    EAPI const char        *elm_genlist_item_cursor_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18074    /**
18075     * Unset any custom mouse pointer/cursor decoration set to be
18076     * shown, when the mouse pointer is over the given genlist widget
18077     * item, thus making it show the @b default cursor again.
18078     *
18079     * @param item a genlist item
18080     *
18081     * Use this call to undo any custom settings on this item's cursor
18082     * decoration, bringing it back to defaults (no custom style set).
18083     *
18084     * @see elm_object_cursor_unset()
18085     * @see elm_genlist_item_cursor_set() for more details
18086     *
18087     * @ingroup Genlist
18088     */
18089    EAPI void               elm_genlist_item_cursor_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18090    /**
18091     * Set a different @b style for a given custom cursor set for a
18092     * genlist item.
18093     *
18094     * @param item genlist item with custom cursor set
18095     * @param style the <b>theme style</b> to use (e.g. @c "default",
18096     * @c "transparent", etc)
18097     *
18098     * This function only makes sense when one is using custom mouse
18099     * cursor decorations <b>defined in a theme file</b> , which can
18100     * have, given a cursor name/type, <b>alternate styles</b> on
18101     * it. It works analogously as elm_object_cursor_style_set(), but
18102     * here applied only to genlist item objects.
18103     *
18104     * @warning Before you set a cursor style you should have defined a
18105     *       custom cursor previously on the item, with
18106     *       elm_genlist_item_cursor_set()
18107     *
18108     * @see elm_genlist_item_cursor_engine_only_set()
18109     * @see elm_genlist_item_cursor_style_get()
18110     *
18111     * @ingroup Genlist
18112     */
18113    EAPI void               elm_genlist_item_cursor_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
18114    /**
18115     * Get the current @b style set for a given genlist item's custom
18116     * cursor
18117     *
18118     * @param item genlist item with custom cursor set.
18119     * @return style the cursor style in use. If the object does not
18120     *         have a cursor set, then @c NULL is returned.
18121     *
18122     * @see elm_genlist_item_cursor_style_set() for more details
18123     *
18124     * @ingroup Genlist
18125     */
18126    EAPI const char        *elm_genlist_item_cursor_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18127    /**
18128     * Set if the (custom) cursor for a given genlist item should be
18129     * searched in its theme, also, or should only rely on the
18130     * rendering engine.
18131     *
18132     * @param item item with custom (custom) cursor already set on
18133     * @param engine_only Use @c EINA_TRUE to have cursors looked for
18134     * only on those provided by the rendering engine, @c EINA_FALSE to
18135     * have them searched on the widget's theme, as well.
18136     *
18137     * @note This call is of use only if you've set a custom cursor
18138     * for genlist items, with elm_genlist_item_cursor_set().
18139     *
18140     * @note By default, cursors will only be looked for between those
18141     * provided by the rendering engine.
18142     *
18143     * @ingroup Genlist
18144     */
18145    EAPI void               elm_genlist_item_cursor_engine_only_set(Elm_Genlist_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
18146    /**
18147     * Get if the (custom) cursor for a given genlist item is being
18148     * searched in its theme, also, or is only relying on the rendering
18149     * engine.
18150     *
18151     * @param item a genlist item
18152     * @return @c EINA_TRUE, if cursors are being looked for only on
18153     * those provided by the rendering engine, @c EINA_FALSE if they
18154     * are being searched on the widget's theme, as well.
18155     *
18156     * @see elm_genlist_item_cursor_engine_only_set(), for more details
18157     *
18158     * @ingroup Genlist
18159     */
18160    EAPI Eina_Bool          elm_genlist_item_cursor_engine_only_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18161    /**
18162     * Update the contents of all realized items.
18163     *
18164     * @param obj The genlist object.
18165     *
18166     * This updates all realized items by calling all the item class functions again
18167     * to get the icons, labels and states. Use this when the original
18168     * item data has changed and the changes are desired to be reflected.
18169     *
18170     * To update just one item, use elm_genlist_item_update().
18171     *
18172     * @see elm_genlist_realized_items_get()
18173     * @see elm_genlist_item_update()
18174     *
18175     * @ingroup Genlist
18176     */
18177    EAPI void               elm_genlist_realized_items_update(Evas_Object *obj) EINA_ARG_NONNULL(1);
18178    /**
18179     * Activate a genlist mode on an item
18180     *
18181     * @param item The genlist item
18182     * @param mode Mode name
18183     * @param mode_set Boolean to define set or unset mode.
18184     *
18185     * A genlist mode is a different way of selecting an item. Once a mode is
18186     * activated on an item, any other selected item is immediately unselected.
18187     * This feature provides an easy way of implementing a new kind of animation
18188     * for selecting an item, without having to entirely rewrite the item style
18189     * theme. However, the elm_genlist_selected_* API can't be used to get what
18190     * item is activate for a mode.
18191     *
18192     * The current item style will still be used, but applying a genlist mode to
18193     * an item will select it using a different kind of animation.
18194     *
18195     * The current active item for a mode can be found by
18196     * elm_genlist_mode_item_get().
18197     *
18198     * The characteristics of genlist mode are:
18199     * - Only one mode can be active at any time, and for only one item.
18200     * - Genlist handles deactivating other items when one item is activated.
18201     * - A mode is defined in the genlist theme (edc), and more modes can easily
18202     *   be added.
18203     * - A mode style and the genlist item style are different things. They
18204     *   can be combined to provide a default style to the item, with some kind
18205     *   of animation for that item when the mode is activated.
18206     *
18207     * When a mode is activated on an item, a new view for that item is created.
18208     * The theme of this mode defines the animation that will be used to transit
18209     * the item from the old view to the new view. This second (new) view will be
18210     * active for that item while the mode is active on the item, and will be
18211     * destroyed after the mode is totally deactivated from that item.
18212     *
18213     * @see elm_genlist_mode_get()
18214     * @see elm_genlist_mode_item_get()
18215     *
18216     * @ingroup Genlist
18217     */
18218    EAPI void               elm_genlist_item_mode_set(Elm_Genlist_Item *it, const char *mode_type, Eina_Bool mode_set) EINA_ARG_NONNULL(1, 2);
18219    /**
18220     * Get the last (or current) genlist mode used.
18221     *
18222     * @param obj The genlist object
18223     *
18224     * This function just returns the name of the last used genlist mode. It will
18225     * be the current mode if it's still active.
18226     *
18227     * @see elm_genlist_item_mode_set()
18228     * @see elm_genlist_mode_item_get()
18229     *
18230     * @ingroup Genlist
18231     */
18232    EAPI const char        *elm_genlist_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18233    /**
18234     * Get active genlist mode item
18235     *
18236     * @param obj The genlist object
18237     * @return The active item for that current mode. Or @c NULL if no item is
18238     * activated with any mode.
18239     *
18240     * This function returns the item that was activated with a mode, by the
18241     * function elm_genlist_item_mode_set().
18242     *
18243     * @see elm_genlist_item_mode_set()
18244     * @see elm_genlist_mode_get()
18245     *
18246     * @ingroup Genlist
18247     */
18248    EAPI const Elm_Genlist_Item *elm_genlist_mode_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18249
18250    /**
18251     * Set reorder mode
18252     *
18253     * @param obj The genlist object
18254     * @param reorder_mode The reorder mode
18255     * (EINA_TRUE = on, EINA_FALSE = off)
18256     *
18257     * @ingroup Genlist
18258     */
18259    EAPI void               elm_genlist_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
18260
18261    /**
18262     * Get the reorder mode
18263     *
18264     * @param obj The genlist object
18265     * @return The reorder mode
18266     * (EINA_TRUE = on, EINA_FALSE = off)
18267     *
18268     * @ingroup Genlist
18269     */
18270    EAPI Eina_Bool          elm_genlist_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18271
18272    /**
18273     * @}
18274     */
18275
18276    /**
18277     * @defgroup Check Check
18278     *
18279     * @image html img/widget/check/preview-00.png
18280     * @image latex img/widget/check/preview-00.eps
18281     * @image html img/widget/check/preview-01.png
18282     * @image latex img/widget/check/preview-01.eps
18283     * @image html img/widget/check/preview-02.png
18284     * @image latex img/widget/check/preview-02.eps
18285     *
18286     * @brief The check widget allows for toggling a value between true and
18287     * false.
18288     *
18289     * Check objects are a lot like radio objects in layout and functionality
18290     * except they do not work as a group, but independently and only toggle the
18291     * value of a boolean from false to true (0 or 1). elm_check_state_set() sets
18292     * the boolean state (1 for true, 0 for false), and elm_check_state_get()
18293     * returns the current state. For convenience, like the radio objects, you
18294     * can set a pointer to a boolean directly with elm_check_state_pointer_set()
18295     * for it to modify.
18296     *
18297     * Signals that you can add callbacks for are:
18298     * "changed" - This is called whenever the user changes the state of one of
18299     *             the check object(event_info is NULL).
18300     *
18301     * @ref tutorial_check should give you a firm grasp of how to use this widget.
18302     * @{
18303     */
18304    /**
18305     * @brief Add a new Check object
18306     *
18307     * @param parent The parent object
18308     * @return The new object or NULL if it cannot be created
18309     */
18310    EAPI Evas_Object *elm_check_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18311    /**
18312     * @brief Set the text label of the check object
18313     *
18314     * @param obj The check object
18315     * @param label The text label string in UTF-8
18316     *
18317     * @deprecated use elm_object_text_set() instead.
18318     */
18319    EINA_DEPRECATED EAPI void         elm_check_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
18320    /**
18321     * @brief Get the text label of the check object
18322     *
18323     * @param obj The check object
18324     * @return The text label string in UTF-8
18325     *
18326     * @deprecated use elm_object_text_get() instead.
18327     */
18328    EINA_DEPRECATED EAPI const char  *elm_check_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18329    /**
18330     * @brief Set the icon object of the check object
18331     *
18332     * @param obj The check object
18333     * @param icon The icon object
18334     *
18335     * Once the icon object is set, a previously set one will be deleted.
18336     * If you want to keep that old content object, use the
18337     * elm_check_icon_unset() function.
18338     */
18339    EAPI void         elm_check_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
18340    /**
18341     * @brief Get the icon object of the check object
18342     *
18343     * @param obj The check object
18344     * @return The icon object
18345     */
18346    EAPI Evas_Object *elm_check_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18347    /**
18348     * @brief Unset the icon used for the check object
18349     *
18350     * @param obj The check object
18351     * @return The icon object that was being used
18352     *
18353     * Unparent and return the icon object which was set for this widget.
18354     */
18355    EAPI Evas_Object *elm_check_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
18356    /**
18357     * @brief Set the on/off state of the check object
18358     *
18359     * @param obj The check object
18360     * @param state The state to use (1 == on, 0 == off)
18361     *
18362     * This sets the state of the check. If set
18363     * with elm_check_state_pointer_set() the state of that variable is also
18364     * changed. Calling this @b doesn't cause the "changed" signal to be emited.
18365     */
18366    EAPI void         elm_check_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
18367    /**
18368     * @brief Get the state of the check object
18369     *
18370     * @param obj The check object
18371     * @return The boolean state
18372     */
18373    EAPI Eina_Bool    elm_check_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18374    /**
18375     * @brief Set a convenience pointer to a boolean to change
18376     *
18377     * @param obj The check object
18378     * @param statep Pointer to the boolean to modify
18379     *
18380     * This sets a pointer to a boolean, that, in addition to the check objects
18381     * state will also be modified directly. To stop setting the object pointed
18382     * to simply use NULL as the @p statep parameter. If @p statep is not NULL,
18383     * then when this is called, the check objects state will also be modified to
18384     * reflect the value of the boolean @p statep points to, just like calling
18385     * elm_check_state_set().
18386     */
18387    EAPI void         elm_check_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
18388    /**
18389     * @}
18390     */
18391
18392    /**
18393     * @defgroup Radio Radio
18394     *
18395     * @image html img/widget/radio/preview-00.png
18396     * @image latex img/widget/radio/preview-00.eps
18397     *
18398     * @brief Radio is a widget that allows for 1 or more options to be displayed
18399     * and have the user choose only 1 of them.
18400     *
18401     * A radio object contains an indicator, an optional Label and an optional
18402     * icon object. While it's possible to have a group of only one radio they,
18403     * are normally used in groups of 2 or more. To add a radio to a group use
18404     * elm_radio_group_add(). The radio object(s) will select from one of a set
18405     * of integer values, so any value they are configuring needs to be mapped to
18406     * a set of integers. To configure what value that radio object represents,
18407     * use  elm_radio_state_value_set() to set the integer it represents. To set
18408     * the value the whole group(which one is currently selected) is to indicate
18409     * use elm_radio_value_set() on any group member, and to get the groups value
18410     * use elm_radio_value_get(). For convenience the radio objects are also able
18411     * to directly set an integer(int) to the value that is selected. To specify
18412     * the pointer to this integer to modify, use elm_radio_value_pointer_set().
18413     * The radio objects will modify this directly. That implies the pointer must
18414     * point to valid memory for as long as the radio objects exist.
18415     *
18416     * Signals that you can add callbacks for are:
18417     * @li changed - This is called whenever the user changes the state of one of
18418     * the radio objects within the group of radio objects that work together.
18419     *
18420     * @ref tutorial_radio show most of this API in action.
18421     * @{
18422     */
18423    /**
18424     * @brief Add a new radio to the parent
18425     *
18426     * @param parent The parent object
18427     * @return The new object or NULL if it cannot be created
18428     */
18429    EAPI Evas_Object *elm_radio_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18430    /**
18431     * @brief Set the text label of the radio object
18432     *
18433     * @param obj The radio object
18434     * @param label The text label string in UTF-8
18435     *
18436     * @deprecated use elm_object_text_set() instead.
18437     */
18438    EINA_DEPRECATED EAPI void         elm_radio_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
18439    /**
18440     * @brief Get the text label of the radio object
18441     *
18442     * @param obj The radio object
18443     * @return The text label string in UTF-8
18444     *
18445     * @deprecated use elm_object_text_set() instead.
18446     */
18447    EINA_DEPRECATED EAPI const char  *elm_radio_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18448    /**
18449     * @brief Set the icon object of the radio object
18450     *
18451     * @param obj The radio object
18452     * @param icon The icon object
18453     *
18454     * Once the icon object is set, a previously set one will be deleted. If you
18455     * want to keep that old content object, use the elm_radio_icon_unset()
18456     * function.
18457     */
18458    EAPI void         elm_radio_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
18459    /**
18460     * @brief Get the icon object of the radio object
18461     *
18462     * @param obj The radio object
18463     * @return The icon object
18464     *
18465     * @see elm_radio_icon_set()
18466     */
18467    EAPI Evas_Object *elm_radio_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18468    /**
18469     * @brief Unset the icon used for the radio object
18470     *
18471     * @param obj The radio object
18472     * @return The icon object that was being used
18473     *
18474     * Unparent and return the icon object which was set for this widget.
18475     *
18476     * @see elm_radio_icon_set()
18477     */
18478    EAPI Evas_Object *elm_radio_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
18479    /**
18480     * @brief Add this radio to a group of other radio objects
18481     *
18482     * @param obj The radio object
18483     * @param group Any object whose group the @p obj is to join.
18484     *
18485     * Radio objects work in groups. Each member should have a different integer
18486     * value assigned. In order to have them work as a group, they need to know
18487     * about each other. This adds the given radio object to the group of which
18488     * the group object indicated is a member.
18489     */
18490    EAPI void         elm_radio_group_add(Evas_Object *obj, Evas_Object *group) EINA_ARG_NONNULL(1);
18491    /**
18492     * @brief Set the integer value that this radio object represents
18493     *
18494     * @param obj The radio object
18495     * @param value The value to use if this radio object is selected
18496     *
18497     * This sets the value of the radio.
18498     */
18499    EAPI void         elm_radio_state_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
18500    /**
18501     * @brief Get the integer value that this radio object represents
18502     *
18503     * @param obj The radio object
18504     * @return The value used if this radio object is selected
18505     *
18506     * This gets the value of the radio.
18507     *
18508     * @see elm_radio_value_set()
18509     */
18510    EAPI int          elm_radio_state_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18511    /**
18512     * @brief Set the value of the radio.
18513     *
18514     * @param obj The radio object
18515     * @param value The value to use for the group
18516     *
18517     * This sets the value of the radio group and will also set the value if
18518     * pointed to, to the value supplied, but will not call any callbacks.
18519     */
18520    EAPI void         elm_radio_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
18521    /**
18522     * @brief Get the state of the radio object
18523     *
18524     * @param obj The radio object
18525     * @return The integer state
18526     */
18527    EAPI int          elm_radio_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18528    /**
18529     * @brief Set a convenience pointer to a integer to change
18530     *
18531     * @param obj The radio object
18532     * @param valuep Pointer to the integer to modify
18533     *
18534     * This sets a pointer to a integer, that, in addition to the radio objects
18535     * state will also be modified directly. To stop setting the object pointed
18536     * to simply use NULL as the @p valuep argument. If valuep is not NULL, then
18537     * when this is called, the radio objects state will also be modified to
18538     * reflect the value of the integer valuep points to, just like calling
18539     * elm_radio_value_set().
18540     */
18541    EAPI void         elm_radio_value_pointer_set(Evas_Object *obj, int *valuep) EINA_ARG_NONNULL(1);
18542    /**
18543     * @}
18544     */
18545
18546    /**
18547     * @defgroup Pager Pager
18548     *
18549     * @image html img/widget/pager/preview-00.png
18550     * @image latex img/widget/pager/preview-00.eps
18551     *
18552     * @brief Widget that allows flipping between 1 or more “pages” of objects.
18553     *
18554     * The flipping between “pages” of objects is animated. All content in pager
18555     * is kept in a stack, the last content to be added will be on the top of the
18556     * stack(be visible).
18557     *
18558     * Objects can be pushed or popped from the stack or deleted as normal.
18559     * Pushes and pops will animate (and a pop will delete the object once the
18560     * animation is finished). Any object already in the pager can be promoted to
18561     * the top(from its current stacking position) through the use of
18562     * elm_pager_content_promote(). Objects are pushed to the top with
18563     * elm_pager_content_push() and when the top item is no longer wanted, simply
18564     * pop it with elm_pager_content_pop() and it will also be deleted. If an
18565     * object is no longer needed and is not the top item, just delete it as
18566     * normal. You can query which objects are the top and bottom with
18567     * elm_pager_content_bottom_get() and elm_pager_content_top_get().
18568     *
18569     * Signals that you can add callbacks for are:
18570     * "hide,finished" - when the previous page is hided
18571     *
18572     * This widget has the following styles available:
18573     * @li default
18574     * @li fade
18575     * @li fade_translucide
18576     * @li fade_invisible
18577     * @note This styles affect only the flipping animations, the appearance when
18578     * not animating is unaffected by styles.
18579     *
18580     * @ref tutorial_pager gives a good overview of the usage of the API.
18581     * @{
18582     */
18583    /**
18584     * Add a new pager to the parent
18585     *
18586     * @param parent The parent object
18587     * @return The new object or NULL if it cannot be created
18588     *
18589     * @ingroup Pager
18590     */
18591    EAPI Evas_Object *elm_pager_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18592    /**
18593     * @brief Push an object to the top of the pager stack (and show it).
18594     *
18595     * @param obj The pager object
18596     * @param content The object to push
18597     *
18598     * The object pushed becomes a child of the pager, it will be controlled and
18599     * deleted when the pager is deleted.
18600     *
18601     * @note If the content is already in the stack use
18602     * elm_pager_content_promote().
18603     * @warning Using this function on @p content already in the stack results in
18604     * undefined behavior.
18605     */
18606    EAPI void         elm_pager_content_push(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
18607    /**
18608     * @brief Pop the object that is on top of the stack
18609     *
18610     * @param obj The pager object
18611     *
18612     * This pops the object that is on the top(visible) of the pager, makes it
18613     * disappear, then deletes the object. The object that was underneath it on
18614     * the stack will become visible.
18615     */
18616    EAPI void         elm_pager_content_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
18617    /**
18618     * @brief Moves an object already in the pager stack to the top of the stack.
18619     *
18620     * @param obj The pager object
18621     * @param content The object to promote
18622     *
18623     * This will take the @p content and move it to the top of the stack as
18624     * if it had been pushed there.
18625     *
18626     * @note If the content isn't already in the stack use
18627     * elm_pager_content_push().
18628     * @warning Using this function on @p content not already in the stack
18629     * results in undefined behavior.
18630     */
18631    EAPI void         elm_pager_content_promote(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
18632    /**
18633     * @brief Return the object at the bottom of the pager stack
18634     *
18635     * @param obj The pager object
18636     * @return The bottom object or NULL if none
18637     */
18638    EAPI Evas_Object *elm_pager_content_bottom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18639    /**
18640     * @brief  Return the object at the top of the pager stack
18641     *
18642     * @param obj The pager object
18643     * @return The top object or NULL if none
18644     */
18645    EAPI Evas_Object *elm_pager_content_top_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18646    /**
18647     * @}
18648     */
18649
18650    /**
18651     * @defgroup Slideshow Slideshow
18652     *
18653     * @image html img/widget/slideshow/preview-00.png
18654     * @image latex img/widget/slideshow/preview-00.eps
18655     *
18656     * This widget, as the name indicates, is a pre-made image
18657     * slideshow panel, with API functions acting on (child) image
18658     * items presentation. Between those actions, are:
18659     * - advance to next/previous image
18660     * - select the style of image transition animation
18661     * - set the exhibition time for each image
18662     * - start/stop the slideshow
18663     *
18664     * The transition animations are defined in the widget's theme,
18665     * consequently new animations can be added without having to
18666     * update the widget's code.
18667     *
18668     * @section Slideshow_Items Slideshow items
18669     *
18670     * For slideshow items, just like for @ref Genlist "genlist" ones,
18671     * the user defines a @b classes, specifying functions that will be
18672     * called on the item's creation and deletion times.
18673     *
18674     * The #Elm_Slideshow_Item_Class structure contains the following
18675     * members:
18676     *
18677     * - @c func.get - When an item is displayed, this function is
18678     *   called, and it's where one should create the item object, de
18679     *   facto. For example, the object can be a pure Evas image object
18680     *   or an Elementary @ref Photocam "photocam" widget. See
18681     *   #SlideshowItemGetFunc.
18682     * - @c func.del - When an item is no more displayed, this function
18683     *   is called, where the user must delete any data associated to
18684     *   the item. See #SlideshowItemDelFunc.
18685     *
18686     * @section Slideshow_Caching Slideshow caching
18687     *
18688     * The slideshow provides facilities to have items adjacent to the
18689     * one being displayed <b>already "realized"</b> (i.e. loaded) for
18690     * you, so that the system does not have to decode image data
18691     * anymore at the time it has to actually switch images on its
18692     * viewport. The user is able to set the numbers of items to be
18693     * cached @b before and @b after the current item, in the widget's
18694     * item list.
18695     *
18696     * Smart events one can add callbacks for are:
18697     *
18698     * - @c "changed" - when the slideshow switches its view to a new
18699     *   item
18700     *
18701     * List of examples for the slideshow widget:
18702     * @li @ref slideshow_example
18703     */
18704
18705    /**
18706     * @addtogroup Slideshow
18707     * @{
18708     */
18709
18710    typedef struct _Elm_Slideshow_Item_Class Elm_Slideshow_Item_Class; /**< Slideshow item class definition struct */
18711    typedef struct _Elm_Slideshow_Item_Class_Func Elm_Slideshow_Item_Class_Func; /**< Class functions for slideshow item classes. */
18712    typedef struct _Elm_Slideshow_Item       Elm_Slideshow_Item; /**< Slideshow item handle */
18713    typedef Evas_Object *(*SlideshowItemGetFunc) (void *data, Evas_Object *obj); /**< Image fetching class function for slideshow item classes. */
18714    typedef void         (*SlideshowItemDelFunc) (void *data, Evas_Object *obj); /**< Deletion class function for slideshow item classes. */
18715
18716    /**
18717     * @struct _Elm_Slideshow_Item_Class
18718     *
18719     * Slideshow item class definition. See @ref Slideshow_Items for
18720     * field details.
18721     */
18722    struct _Elm_Slideshow_Item_Class
18723      {
18724         struct _Elm_Slideshow_Item_Class_Func
18725           {
18726              SlideshowItemGetFunc get;
18727              SlideshowItemDelFunc del;
18728           } func;
18729      }; /**< #Elm_Slideshow_Item_Class member definitions */
18730
18731    /**
18732     * Add a new slideshow widget to the given parent Elementary
18733     * (container) object
18734     *
18735     * @param parent The parent object
18736     * @return A new slideshow widget handle or @c NULL, on errors
18737     *
18738     * This function inserts a new slideshow widget on the canvas.
18739     *
18740     * @ingroup Slideshow
18741     */
18742    EAPI Evas_Object        *elm_slideshow_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18743
18744    /**
18745     * Add (append) a new item in a given slideshow widget.
18746     *
18747     * @param obj The slideshow object
18748     * @param itc The item class for the item
18749     * @param data The item's data
18750     * @return A handle to the item added or @c NULL, on errors
18751     *
18752     * Add a new item to @p obj's internal list of items, appending it.
18753     * The item's class must contain the function really fetching the
18754     * image object to show for this item, which could be an Evas image
18755     * object or an Elementary photo, for example. The @p data
18756     * parameter is going to be passed to both class functions of the
18757     * item.
18758     *
18759     * @see #Elm_Slideshow_Item_Class
18760     * @see elm_slideshow_item_sorted_insert()
18761     *
18762     * @ingroup Slideshow
18763     */
18764    EAPI Elm_Slideshow_Item *elm_slideshow_item_add(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data) EINA_ARG_NONNULL(1);
18765
18766    /**
18767     * Insert a new item into the given slideshow widget, using the @p func
18768     * function to sort items (by item handles).
18769     *
18770     * @param obj The slideshow object
18771     * @param itc The item class for the item
18772     * @param data The item's data
18773     * @param func The comparing function to be used to sort slideshow
18774     * items <b>by #Elm_Slideshow_Item item handles</b>
18775     * @return Returns The slideshow item handle, on success, or
18776     * @c NULL, on errors
18777     *
18778     * Add a new item to @p obj's internal list of items, in a position
18779     * determined by the @p func comparing function. The item's class
18780     * must contain the function really fetching the image object to
18781     * show for this item, which could be an Evas image object or an
18782     * Elementary photo, for example. The @p data parameter is going to
18783     * be passed to both class functions of the item.
18784     *
18785     * @see #Elm_Slideshow_Item_Class
18786     * @see elm_slideshow_item_add()
18787     *
18788     * @ingroup Slideshow
18789     */
18790    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);
18791
18792    /**
18793     * Display a given slideshow widget's item, programmatically.
18794     *
18795     * @param obj The slideshow object
18796     * @param item The item to display on @p obj's viewport
18797     *
18798     * The change between the current item and @p item will use the
18799     * transition @p obj is set to use (@see
18800     * elm_slideshow_transition_set()).
18801     *
18802     * @ingroup Slideshow
18803     */
18804    EAPI void                elm_slideshow_show(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
18805
18806    /**
18807     * Slide to the @b next item, in a given slideshow widget
18808     *
18809     * @param obj The slideshow object
18810     *
18811     * The sliding animation @p obj is set to use will be the
18812     * transition effect used, after this call is issued.
18813     *
18814     * @note If the end of the slideshow's internal list of items is
18815     * reached, it'll wrap around to the list's beginning, again.
18816     *
18817     * @ingroup Slideshow
18818     */
18819    EAPI void                elm_slideshow_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
18820
18821    /**
18822     * Slide to the @b previous item, in a given slideshow widget
18823     *
18824     * @param obj The slideshow object
18825     *
18826     * The sliding animation @p obj is set to use will be the
18827     * transition effect used, after this call is issued.
18828     *
18829     * @note If the beginning of the slideshow's internal list of items
18830     * is reached, it'll wrap around to the list's end, again.
18831     *
18832     * @ingroup Slideshow
18833     */
18834    EAPI void                elm_slideshow_previous(Evas_Object *obj) EINA_ARG_NONNULL(1);
18835
18836    /**
18837     * Returns the list of sliding transition/effect names available, for a
18838     * given slideshow widget.
18839     *
18840     * @param obj The slideshow object
18841     * @return The list of transitions (list of @b stringshared strings
18842     * as data)
18843     *
18844     * The transitions, which come from @p obj's theme, must be an EDC
18845     * data item named @c "transitions" on the theme file, with (prefix)
18846     * names of EDC programs actually implementing them.
18847     *
18848     * The available transitions for slideshows on the default theme are:
18849     * - @c "fade" - the current item fades out, while the new one
18850     *   fades in to the slideshow's viewport.
18851     * - @c "black_fade" - the current item fades to black, and just
18852     *   then, the new item will fade in.
18853     * - @c "horizontal" - the current item slides horizontally, until
18854     *   it gets out of the slideshow's viewport, while the new item
18855     *   comes from the left to take its place.
18856     * - @c "vertical" - the current item slides vertically, until it
18857     *   gets out of the slideshow's viewport, while the new item comes
18858     *   from the bottom to take its place.
18859     * - @c "square" - the new item starts to appear from the middle of
18860     *   the current one, but with a tiny size, growing until its
18861     *   target (full) size and covering the old one.
18862     *
18863     * @warning The stringshared strings get no new references
18864     * exclusive to the user grabbing the list, here, so if you'd like
18865     * to use them out of this call's context, you'd better @c
18866     * eina_stringshare_ref() them.
18867     *
18868     * @see elm_slideshow_transition_set()
18869     *
18870     * @ingroup Slideshow
18871     */
18872    EAPI const Eina_List    *elm_slideshow_transitions_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18873
18874    /**
18875     * Set the current slide transition/effect in use for a given
18876     * slideshow widget
18877     *
18878     * @param obj The slideshow object
18879     * @param transition The new transition's name string
18880     *
18881     * If @p transition is implemented in @p obj's theme (i.e., is
18882     * contained in the list returned by
18883     * elm_slideshow_transitions_get()), this new sliding effect will
18884     * be used on the widget.
18885     *
18886     * @see elm_slideshow_transitions_get() for more details
18887     *
18888     * @ingroup Slideshow
18889     */
18890    EAPI void                elm_slideshow_transition_set(Evas_Object *obj, const char *transition) EINA_ARG_NONNULL(1);
18891
18892    /**
18893     * Get the current slide transition/effect in use for a given
18894     * slideshow widget
18895     *
18896     * @param obj The slideshow object
18897     * @return The current transition's name
18898     *
18899     * @see elm_slideshow_transition_set() for more details
18900     *
18901     * @ingroup Slideshow
18902     */
18903    EAPI const char         *elm_slideshow_transition_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18904
18905    /**
18906     * Set the interval between each image transition on a given
18907     * slideshow widget, <b>and start the slideshow, itself</b>
18908     *
18909     * @param obj The slideshow object
18910     * @param timeout The new displaying timeout for images
18911     *
18912     * After this call, the slideshow widget will start cycling its
18913     * view, sequentially and automatically, with the images of the
18914     * items it has. The time between each new image displayed is going
18915     * to be @p timeout, in @b seconds. If a different timeout was set
18916     * previously and an slideshow was in progress, it will continue
18917     * with the new time between transitions, after this call.
18918     *
18919     * @note A value less than or equal to 0 on @p timeout will disable
18920     * the widget's internal timer, thus halting any slideshow which
18921     * could be happening on @p obj.
18922     *
18923     * @see elm_slideshow_timeout_get()
18924     *
18925     * @ingroup Slideshow
18926     */
18927    EAPI void                elm_slideshow_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
18928
18929    /**
18930     * Get the interval set for image transitions on a given slideshow
18931     * widget.
18932     *
18933     * @param obj The slideshow object
18934     * @return Returns the timeout set on it
18935     *
18936     * @see elm_slideshow_timeout_set() for more details
18937     *
18938     * @ingroup Slideshow
18939     */
18940    EAPI double              elm_slideshow_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18941
18942    /**
18943     * Set if, after a slideshow is started, for a given slideshow
18944     * widget, its items should be displayed cyclically or not.
18945     *
18946     * @param obj The slideshow object
18947     * @param loop Use @c EINA_TRUE to make it cycle through items or
18948     * @c EINA_FALSE for it to stop at the end of @p obj's internal
18949     * list of items
18950     *
18951     * @note elm_slideshow_next() and elm_slideshow_previous() will @b
18952     * ignore what is set by this functions, i.e., they'll @b always
18953     * cycle through items. This affects only the "automatic"
18954     * slideshow, as set by elm_slideshow_timeout_set().
18955     *
18956     * @see elm_slideshow_loop_get()
18957     *
18958     * @ingroup Slideshow
18959     */
18960    EAPI void                elm_slideshow_loop_set(Evas_Object *obj, Eina_Bool loop) EINA_ARG_NONNULL(1);
18961
18962    /**
18963     * Get if, after a slideshow is started, for a given slideshow
18964     * widget, its items are to be displayed cyclically or not.
18965     *
18966     * @param obj The slideshow object
18967     * @return @c EINA_TRUE, if the items in @p obj will be cycled
18968     * through or @c EINA_FALSE, otherwise
18969     *
18970     * @see elm_slideshow_loop_set() for more details
18971     *
18972     * @ingroup Slideshow
18973     */
18974    EAPI Eina_Bool           elm_slideshow_loop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18975
18976    /**
18977     * Remove all items from a given slideshow widget
18978     *
18979     * @param obj The slideshow object
18980     *
18981     * This removes (and deletes) all items in @p obj, leaving it
18982     * empty.
18983     *
18984     * @see elm_slideshow_item_del(), to remove just one item.
18985     *
18986     * @ingroup Slideshow
18987     */
18988    EAPI void                elm_slideshow_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
18989
18990    /**
18991     * Get the internal list of items in a given slideshow widget.
18992     *
18993     * @param obj The slideshow object
18994     * @return The list of items (#Elm_Slideshow_Item as data) or
18995     * @c NULL on errors.
18996     *
18997     * This list is @b not to be modified in any way and must not be
18998     * freed. Use the list members with functions like
18999     * elm_slideshow_item_del(), elm_slideshow_item_data_get().
19000     *
19001     * @warning This list is only valid until @p obj object's internal
19002     * items list is changed. It should be fetched again with another
19003     * call to this function when changes happen.
19004     *
19005     * @ingroup Slideshow
19006     */
19007    EAPI const Eina_List    *elm_slideshow_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19008
19009    /**
19010     * Delete a given item from a slideshow widget.
19011     *
19012     * @param item The slideshow item
19013     *
19014     * @ingroup Slideshow
19015     */
19016    EAPI void                elm_slideshow_item_del(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
19017
19018    /**
19019     * Return the data associated with a given slideshow item
19020     *
19021     * @param item The slideshow item
19022     * @return Returns the data associated to this item
19023     *
19024     * @ingroup Slideshow
19025     */
19026    EAPI void               *elm_slideshow_item_data_get(const Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
19027
19028    /**
19029     * Returns the currently displayed item, in a given slideshow widget
19030     *
19031     * @param obj The slideshow object
19032     * @return A handle to the item being displayed in @p obj or
19033     * @c NULL, if none is (and on errors)
19034     *
19035     * @ingroup Slideshow
19036     */
19037    EAPI Elm_Slideshow_Item *elm_slideshow_item_current_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19038
19039    /**
19040     * Get the real Evas object created to implement the view of a
19041     * given slideshow item
19042     *
19043     * @param item The slideshow item.
19044     * @return the Evas object implementing this item's view.
19045     *
19046     * This returns the actual Evas object used to implement the
19047     * specified slideshow item's view. This may be @c NULL, as it may
19048     * not have been created or may have been deleted, at any time, by
19049     * the slideshow. <b>Do not modify this object</b> (move, resize,
19050     * show, hide, etc.), as the slideshow is controlling it. This
19051     * function is for querying, emitting custom signals or hooking
19052     * lower level callbacks for events on that object. Do not delete
19053     * this object under any circumstances.
19054     *
19055     * @see elm_slideshow_item_data_get()
19056     *
19057     * @ingroup Slideshow
19058     */
19059    EAPI Evas_Object*        elm_slideshow_item_object_get(const Elm_Slideshow_Item* item) EINA_ARG_NONNULL(1);
19060
19061    /**
19062     * Get the the item, in a given slideshow widget, placed at
19063     * position @p nth, in its internal items list
19064     *
19065     * @param obj The slideshow object
19066     * @param nth The number of the item to grab a handle to (0 being
19067     * the first)
19068     * @return The item stored in @p obj at position @p nth or @c NULL,
19069     * if there's no item with that index (and on errors)
19070     *
19071     * @ingroup Slideshow
19072     */
19073    EAPI Elm_Slideshow_Item *elm_slideshow_item_nth_get(const Evas_Object *obj, unsigned int nth) EINA_ARG_NONNULL(1);
19074
19075    /**
19076     * Set the current slide layout in use for a given slideshow widget
19077     *
19078     * @param obj The slideshow object
19079     * @param layout The new layout's name string
19080     *
19081     * If @p layout is implemented in @p obj's theme (i.e., is contained
19082     * in the list returned by elm_slideshow_layouts_get()), this new
19083     * images layout will be used on the widget.
19084     *
19085     * @see elm_slideshow_layouts_get() for more details
19086     *
19087     * @ingroup Slideshow
19088     */
19089    EAPI void                elm_slideshow_layout_set(Evas_Object *obj, const char *layout) EINA_ARG_NONNULL(1);
19090
19091    /**
19092     * Get the current slide layout in use for a given slideshow widget
19093     *
19094     * @param obj The slideshow object
19095     * @return The current layout's name
19096     *
19097     * @see elm_slideshow_layout_set() for more details
19098     *
19099     * @ingroup Slideshow
19100     */
19101    EAPI const char         *elm_slideshow_layout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19102
19103    /**
19104     * Returns the list of @b layout names available, for a given
19105     * slideshow widget.
19106     *
19107     * @param obj The slideshow object
19108     * @return The list of layouts (list of @b stringshared strings
19109     * as data)
19110     *
19111     * Slideshow layouts will change how the widget is to dispose each
19112     * image item in its viewport, with regard to cropping, scaling,
19113     * etc.
19114     *
19115     * The layouts, which come from @p obj's theme, must be an EDC
19116     * data item name @c "layouts" on the theme file, with (prefix)
19117     * names of EDC programs actually implementing them.
19118     *
19119     * The available layouts for slideshows on the default theme are:
19120     * - @c "fullscreen" - item images with original aspect, scaled to
19121     *   touch top and down slideshow borders or, if the image's heigh
19122     *   is not enough, left and right slideshow borders.
19123     * - @c "not_fullscreen" - the same behavior as the @c "fullscreen"
19124     *   one, but always leaving 10% of the slideshow's dimensions of
19125     *   distance between the item image's borders and the slideshow
19126     *   borders, for each axis.
19127     *
19128     * @warning The stringshared strings get no new references
19129     * exclusive to the user grabbing the list, here, so if you'd like
19130     * to use them out of this call's context, you'd better @c
19131     * eina_stringshare_ref() them.
19132     *
19133     * @see elm_slideshow_layout_set()
19134     *
19135     * @ingroup Slideshow
19136     */
19137    EAPI const Eina_List    *elm_slideshow_layouts_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19138
19139    /**
19140     * Set the number of items to cache, on a given slideshow widget,
19141     * <b>before the current item</b>
19142     *
19143     * @param obj The slideshow object
19144     * @param count Number of items to cache before the current one
19145     *
19146     * The default value for this property is @c 2. See
19147     * @ref Slideshow_Caching "slideshow caching" for more details.
19148     *
19149     * @see elm_slideshow_cache_before_get()
19150     *
19151     * @ingroup Slideshow
19152     */
19153    EAPI void                elm_slideshow_cache_before_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
19154
19155    /**
19156     * Retrieve the number of items to cache, on a given slideshow widget,
19157     * <b>before the current item</b>
19158     *
19159     * @param obj The slideshow object
19160     * @return The number of items set to be cached before the current one
19161     *
19162     * @see elm_slideshow_cache_before_set() for more details
19163     *
19164     * @ingroup Slideshow
19165     */
19166    EAPI int                 elm_slideshow_cache_before_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19167
19168    /**
19169     * Set the number of items to cache, on a given slideshow widget,
19170     * <b>after the current item</b>
19171     *
19172     * @param obj The slideshow object
19173     * @param count Number of items to cache after the current one
19174     *
19175     * The default value for this property is @c 2. See
19176     * @ref Slideshow_Caching "slideshow caching" for more details.
19177     *
19178     * @see elm_slideshow_cache_after_get()
19179     *
19180     * @ingroup Slideshow
19181     */
19182    EAPI void                elm_slideshow_cache_after_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
19183
19184    /**
19185     * Retrieve the number of items to cache, on a given slideshow widget,
19186     * <b>after the current item</b>
19187     *
19188     * @param obj The slideshow object
19189     * @return The number of items set to be cached after the current one
19190     *
19191     * @see elm_slideshow_cache_after_set() for more details
19192     *
19193     * @ingroup Slideshow
19194     */
19195    EAPI int                 elm_slideshow_cache_after_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19196
19197    /**
19198     * Get the number of items stored in a given slideshow widget
19199     *
19200     * @param obj The slideshow object
19201     * @return The number of items on @p obj, at the moment of this call
19202     *
19203     * @ingroup Slideshow
19204     */
19205    EAPI unsigned int        elm_slideshow_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19206
19207    /**
19208     * @}
19209     */
19210
19211    /**
19212     * @defgroup Fileselector File Selector
19213     *
19214     * @image html img/widget/fileselector/preview-00.png
19215     * @image latex img/widget/fileselector/preview-00.eps
19216     *
19217     * A file selector is a widget that allows a user to navigate
19218     * through a file system, reporting file selections back via its
19219     * API.
19220     *
19221     * It contains shortcut buttons for home directory (@c ~) and to
19222     * jump one directory upwards (..), as well as cancel/ok buttons to
19223     * confirm/cancel a given selection. After either one of those two
19224     * former actions, the file selector will issue its @c "done" smart
19225     * callback.
19226     *
19227     * There's a text entry on it, too, showing the name of the current
19228     * selection. There's the possibility of making it editable, so it
19229     * is useful on file saving dialogs on applications, where one
19230     * gives a file name to save contents to, in a given directory in
19231     * the system. This custom file name will be reported on the @c
19232     * "done" smart callback (explained in sequence).
19233     *
19234     * Finally, it has a view to display file system items into in two
19235     * possible forms:
19236     * - list
19237     * - grid
19238     *
19239     * If Elementary is built with support of the Ethumb thumbnailing
19240     * library, the second form of view will display preview thumbnails
19241     * of files which it supports.
19242     *
19243     * Smart callbacks one can register to:
19244     *
19245     * - @c "selected" - the user has clicked on a file (when not in
19246     *      folders-only mode) or directory (when in folders-only mode)
19247     * - @c "directory,open" - the list has been populated with new
19248     *      content (@c event_info is a pointer to the directory's
19249     *      path, a @b stringshared string)
19250     * - @c "done" - the user has clicked on the "ok" or "cancel"
19251     *      buttons (@c event_info is a pointer to the selection's
19252     *      path, a @b stringshared string)
19253     *
19254     * Here is an example on its usage:
19255     * @li @ref fileselector_example
19256     */
19257
19258    /**
19259     * @addtogroup Fileselector
19260     * @{
19261     */
19262
19263    /**
19264     * Defines how a file selector widget is to layout its contents
19265     * (file system entries).
19266     */
19267    typedef enum _Elm_Fileselector_Mode
19268      {
19269         ELM_FILESELECTOR_LIST = 0, /**< layout as a list */
19270         ELM_FILESELECTOR_GRID, /**< layout as a grid */
19271         ELM_FILESELECTOR_LAST /**< sentinel (helper) value, not used */
19272      } Elm_Fileselector_Mode;
19273
19274    /**
19275     * Add a new file selector widget to the given parent Elementary
19276     * (container) object
19277     *
19278     * @param parent The parent object
19279     * @return a new file selector widget handle or @c NULL, on errors
19280     *
19281     * This function inserts a new file selector widget on the canvas.
19282     *
19283     * @ingroup Fileselector
19284     */
19285    EAPI Evas_Object          *elm_fileselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19286
19287    /**
19288     * Enable/disable the file name entry box where the user can type
19289     * in a name for a file, in a given file selector widget
19290     *
19291     * @param obj The file selector object
19292     * @param is_save @c EINA_TRUE to make the file selector a "saving
19293     * dialog", @c EINA_FALSE otherwise
19294     *
19295     * Having the entry editable is useful on file saving dialogs on
19296     * applications, where one gives a file name to save contents to,
19297     * in a given directory in the system. This custom file name will
19298     * be reported on the @c "done" smart callback.
19299     *
19300     * @see elm_fileselector_is_save_get()
19301     *
19302     * @ingroup Fileselector
19303     */
19304    EAPI void                  elm_fileselector_is_save_set(Evas_Object *obj, Eina_Bool is_save) EINA_ARG_NONNULL(1);
19305
19306    /**
19307     * Get whether the given file selector is in "saving dialog" mode
19308     *
19309     * @param obj The file selector object
19310     * @return @c EINA_TRUE, if the file selector is in "saving dialog"
19311     * mode, @c EINA_FALSE otherwise (and on errors)
19312     *
19313     * @see elm_fileselector_is_save_set() for more details
19314     *
19315     * @ingroup Fileselector
19316     */
19317    EAPI Eina_Bool             elm_fileselector_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19318
19319    /**
19320     * Enable/disable folder-only view for a given file selector widget
19321     *
19322     * @param obj The file selector object
19323     * @param only @c EINA_TRUE to make @p obj only display
19324     * directories, @c EINA_FALSE to make files to be displayed in it
19325     * too
19326     *
19327     * If enabled, the widget's view will only display folder items,
19328     * naturally.
19329     *
19330     * @see elm_fileselector_folder_only_get()
19331     *
19332     * @ingroup Fileselector
19333     */
19334    EAPI void                  elm_fileselector_folder_only_set(Evas_Object *obj, Eina_Bool only) EINA_ARG_NONNULL(1);
19335
19336    /**
19337     * Get whether folder-only view is set for a given file selector
19338     * widget
19339     *
19340     * @param obj The file selector object
19341     * @return only @c EINA_TRUE if @p obj is only displaying
19342     * directories, @c EINA_FALSE if files are being displayed in it
19343     * too (and on errors)
19344     *
19345     * @see elm_fileselector_folder_only_get()
19346     *
19347     * @ingroup Fileselector
19348     */
19349    EAPI Eina_Bool             elm_fileselector_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19350
19351    /**
19352     * Enable/disable the "ok" and "cancel" buttons on a given file
19353     * selector widget
19354     *
19355     * @param obj The file selector object
19356     * @param only @c EINA_TRUE to show them, @c EINA_FALSE to hide.
19357     *
19358     * @note A file selector without those buttons will never emit the
19359     * @c "done" smart event, and is only usable if one is just hooking
19360     * to the other two events.
19361     *
19362     * @see elm_fileselector_buttons_ok_cancel_get()
19363     *
19364     * @ingroup Fileselector
19365     */
19366    EAPI void                  elm_fileselector_buttons_ok_cancel_set(Evas_Object *obj, Eina_Bool buttons) EINA_ARG_NONNULL(1);
19367
19368    /**
19369     * Get whether the "ok" and "cancel" buttons on a given file
19370     * selector widget are being shown.
19371     *
19372     * @param obj The file selector object
19373     * @return @c EINA_TRUE if they are being shown, @c EINA_FALSE
19374     * otherwise (and on errors)
19375     *
19376     * @see elm_fileselector_buttons_ok_cancel_set() for more details
19377     *
19378     * @ingroup Fileselector
19379     */
19380    EAPI Eina_Bool             elm_fileselector_buttons_ok_cancel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19381
19382    /**
19383     * Enable/disable a tree view in the given file selector widget,
19384     * <b>if it's in @c #ELM_FILESELECTOR_LIST mode</b>
19385     *
19386     * @param obj The file selector object
19387     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
19388     * disable
19389     *
19390     * In a tree view, arrows are created on the sides of directories,
19391     * allowing them to expand in place.
19392     *
19393     * @note If it's in other mode, the changes made by this function
19394     * will only be visible when one switches back to "list" mode.
19395     *
19396     * @see elm_fileselector_expandable_get()
19397     *
19398     * @ingroup Fileselector
19399     */
19400    EAPI void                  elm_fileselector_expandable_set(Evas_Object *obj, Eina_Bool expand) EINA_ARG_NONNULL(1);
19401
19402    /**
19403     * Get whether tree view is enabled for the given file selector
19404     * widget
19405     *
19406     * @param obj The file selector object
19407     * @return @c EINA_TRUE if @p obj is in tree view, @c EINA_FALSE
19408     * otherwise (and or errors)
19409     *
19410     * @see elm_fileselector_expandable_set() for more details
19411     *
19412     * @ingroup Fileselector
19413     */
19414    EAPI Eina_Bool             elm_fileselector_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19415
19416    /**
19417     * Set, programmatically, the @b directory that a given file
19418     * selector widget will display contents from
19419     *
19420     * @param obj The file selector object
19421     * @param path The path to display in @p obj
19422     *
19423     * This will change the @b directory that @p obj is displaying. It
19424     * will also clear the text entry area on the @p obj object, which
19425     * displays select files' names.
19426     *
19427     * @see elm_fileselector_path_get()
19428     *
19429     * @ingroup Fileselector
19430     */
19431    EAPI void                  elm_fileselector_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
19432
19433    /**
19434     * Get the parent directory's path that a given file selector
19435     * widget is displaying
19436     *
19437     * @param obj The file selector object
19438     * @return The (full) path of the directory the file selector is
19439     * displaying, a @b stringshared string
19440     *
19441     * @see elm_fileselector_path_set()
19442     *
19443     * @ingroup Fileselector
19444     */
19445    EAPI const char           *elm_fileselector_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19446
19447    /**
19448     * Set, programmatically, the currently selected file/directory in
19449     * the given file selector widget
19450     *
19451     * @param obj The file selector object
19452     * @param path The (full) path to a file or directory
19453     * @return @c EINA_TRUE on success, @c EINA_FALSE on failure. The
19454     * latter case occurs if the directory or file pointed to do not
19455     * exist.
19456     *
19457     * @see elm_fileselector_selected_get()
19458     *
19459     * @ingroup Fileselector
19460     */
19461    EAPI Eina_Bool             elm_fileselector_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
19462
19463    /**
19464     * Get the currently selected item's (full) path, in the given file
19465     * selector widget
19466     *
19467     * @param obj The file selector object
19468     * @return The absolute path of the selected item, a @b
19469     * stringshared string
19470     *
19471     * @note Custom editions on @p obj object's text entry, if made,
19472     * will appear on the return string of this function, naturally.
19473     *
19474     * @see elm_fileselector_selected_set() for more details
19475     *
19476     * @ingroup Fileselector
19477     */
19478    EAPI const char           *elm_fileselector_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19479
19480    /**
19481     * Set the mode in which a given file selector widget will display
19482     * (layout) file system entries in its view
19483     *
19484     * @param obj The file selector object
19485     * @param mode The mode of the fileselector, being it one of
19486     * #ELM_FILESELECTOR_LIST (default) or #ELM_FILESELECTOR_GRID. The
19487     * first one, naturally, will display the files in a list. The
19488     * latter will make the widget to display its entries in a grid
19489     * form.
19490     *
19491     * @note By using elm_fileselector_expandable_set(), the user may
19492     * trigger a tree view for that list.
19493     *
19494     * @note If Elementary is built with support of the Ethumb
19495     * thumbnailing library, the second form of view will display
19496     * preview thumbnails of files which it supports. You must have
19497     * elm_need_ethumb() called in your Elementary for thumbnailing to
19498     * work, though.
19499     *
19500     * @see elm_fileselector_expandable_set().
19501     * @see elm_fileselector_mode_get().
19502     *
19503     * @ingroup Fileselector
19504     */
19505    EAPI void                  elm_fileselector_mode_set(Evas_Object *obj, Elm_Fileselector_Mode mode) EINA_ARG_NONNULL(1);
19506
19507    /**
19508     * Get the mode in which a given file selector widget is displaying
19509     * (layouting) file system entries in its view
19510     *
19511     * @param obj The fileselector object
19512     * @return The mode in which the fileselector is at
19513     *
19514     * @see elm_fileselector_mode_set() for more details
19515     *
19516     * @ingroup Fileselector
19517     */
19518    EAPI Elm_Fileselector_Mode elm_fileselector_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19519
19520    /**
19521     * @}
19522     */
19523
19524    /**
19525     * @defgroup Progressbar Progress bar
19526     *
19527     * The progress bar is a widget for visually representing the
19528     * progress status of a given job/task.
19529     *
19530     * A progress bar may be horizontal or vertical. It may display an
19531     * icon besides it, as well as primary and @b units labels. The
19532     * former is meant to label the widget as a whole, while the
19533     * latter, which is formatted with floating point values (and thus
19534     * accepts a <c>printf</c>-style format string, like <c>"%1.2f
19535     * units"</c>), is meant to label the widget's <b>progress
19536     * value</b>. Label, icon and unit strings/objects are @b optional
19537     * for progress bars.
19538     *
19539     * A progress bar may be @b inverted, in which state it gets its
19540     * values inverted, with high values being on the left or top and
19541     * low values on the right or bottom, as opposed to normally have
19542     * the low values on the former and high values on the latter,
19543     * respectively, for horizontal and vertical modes.
19544     *
19545     * The @b span of the progress, as set by
19546     * elm_progressbar_span_size_set(), is its length (horizontally or
19547     * vertically), unless one puts size hints on the widget to expand
19548     * on desired directions, by any container. That length will be
19549     * scaled by the object or applications scaling factor. At any
19550     * point code can query the progress bar for its value with
19551     * elm_progressbar_value_get().
19552     *
19553     * Available widget styles for progress bars:
19554     * - @c "default"
19555     * - @c "wheel" (simple style, no text, no progression, only
19556     *      "pulse" effect is available)
19557     *
19558     * Here is an example on its usage:
19559     * @li @ref progressbar_example
19560     */
19561
19562    /**
19563     * Add a new progress bar widget to the given parent Elementary
19564     * (container) object
19565     *
19566     * @param parent The parent object
19567     * @return a new progress bar widget handle or @c NULL, on errors
19568     *
19569     * This function inserts a new progress bar widget on the canvas.
19570     *
19571     * @ingroup Progressbar
19572     */
19573    EAPI Evas_Object *elm_progressbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19574
19575    /**
19576     * Set whether a given progress bar widget is at "pulsing mode" or
19577     * not.
19578     *
19579     * @param obj The progress bar object
19580     * @param pulse @c EINA_TRUE to put @p obj in pulsing mode,
19581     * @c EINA_FALSE to put it back to its default one
19582     *
19583     * By default, progress bars will display values from the low to
19584     * high value boundaries. There are, though, contexts in which the
19585     * state of progression of a given task is @b unknown.  For those,
19586     * one can set a progress bar widget to a "pulsing state", to give
19587     * the user an idea that some computation is being held, but
19588     * without exact progress values. In the default theme it will
19589     * animate its bar with the contents filling in constantly and back
19590     * to non-filled, in a loop. To start and stop this pulsing
19591     * animation, one has to explicitly call elm_progressbar_pulse().
19592     *
19593     * @see elm_progressbar_pulse_get()
19594     * @see elm_progressbar_pulse()
19595     *
19596     * @ingroup Progressbar
19597     */
19598    EAPI void         elm_progressbar_pulse_set(Evas_Object *obj, Eina_Bool pulse) EINA_ARG_NONNULL(1);
19599
19600    /**
19601     * Get whether a given progress bar widget is at "pulsing mode" or
19602     * not.
19603     *
19604     * @param obj The progress bar object
19605     * @return @c EINA_TRUE, if @p obj is in pulsing mode, @c EINA_FALSE
19606     * if it's in the default one (and on errors)
19607     *
19608     * @ingroup Progressbar
19609     */
19610    EAPI Eina_Bool    elm_progressbar_pulse_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19611
19612    /**
19613     * Start/stop a given progress bar "pulsing" animation, if its
19614     * under that mode
19615     *
19616     * @param obj The progress bar object
19617     * @param state @c EINA_TRUE, to @b start the pulsing animation,
19618     * @c EINA_FALSE to @b stop it
19619     *
19620     * @note This call won't do anything if @p obj is not under "pulsing mode".
19621     *
19622     * @see elm_progressbar_pulse_set() for more details.
19623     *
19624     * @ingroup Progressbar
19625     */
19626    EAPI void         elm_progressbar_pulse(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
19627
19628    /**
19629     * Set the progress value (in percentage) on a given progress bar
19630     * widget
19631     *
19632     * @param obj The progress bar object
19633     * @param val The progress value (@b must be between @c 0.0 and @c
19634     * 1.0)
19635     *
19636     * Use this call to set progress bar levels.
19637     *
19638     * @note If you passes a value out of the specified range for @p
19639     * val, it will be interpreted as the @b closest of the @b boundary
19640     * values in the range.
19641     *
19642     * @ingroup Progressbar
19643     */
19644    EAPI void         elm_progressbar_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
19645
19646    /**
19647     * Get the progress value (in percentage) on a given progress bar
19648     * widget
19649     *
19650     * @param obj The progress bar object
19651     * @return The value of the progressbar
19652     *
19653     * @see elm_progressbar_value_set() for more details
19654     *
19655     * @ingroup Progressbar
19656     */
19657    EAPI double       elm_progressbar_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19658
19659    /**
19660     * Set the label of a given progress bar widget
19661     *
19662     * @param obj The progress bar object
19663     * @param label The text label string, in UTF-8
19664     *
19665     * @ingroup Progressbar
19666     * @deprecated use elm_object_text_set() instead.
19667     */
19668    EINA_DEPRECATED EAPI void         elm_progressbar_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
19669
19670    /**
19671     * Get the label of a given progress bar widget
19672     *
19673     * @param obj The progressbar object
19674     * @return The text label string, in UTF-8
19675     *
19676     * @ingroup Progressbar
19677     * @deprecated use elm_object_text_set() instead.
19678     */
19679    EINA_DEPRECATED EAPI const char  *elm_progressbar_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19680
19681    /**
19682     * Set the icon object of a given progress bar widget
19683     *
19684     * @param obj The progress bar object
19685     * @param icon The icon object
19686     *
19687     * Use this call to decorate @p obj with an icon next to it.
19688     *
19689     * @note Once the icon object is set, a previously set one will be
19690     * deleted. If you want to keep that old content object, use the
19691     * elm_progressbar_icon_unset() function.
19692     *
19693     * @see elm_progressbar_icon_get()
19694     *
19695     * @ingroup Progressbar
19696     */
19697    EAPI void         elm_progressbar_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
19698
19699    /**
19700     * Retrieve the icon object set for a given progress bar widget
19701     *
19702     * @param obj The progress bar object
19703     * @return The icon object's handle, if @p obj had one set, or @c NULL,
19704     * otherwise (and on errors)
19705     *
19706     * @see elm_progressbar_icon_set() for more details
19707     *
19708     * @ingroup Progressbar
19709     */
19710    EAPI Evas_Object *elm_progressbar_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19711
19712    /**
19713     * Unset an icon set on a given progress bar widget
19714     *
19715     * @param obj The progress bar object
19716     * @return The icon object that was being used, if any was set, or
19717     * @c NULL, otherwise (and on errors)
19718     *
19719     * This call will unparent and return the icon object which was set
19720     * for this widget, previously, on success.
19721     *
19722     * @see elm_progressbar_icon_set() for more details
19723     *
19724     * @ingroup Progressbar
19725     */
19726    EAPI Evas_Object *elm_progressbar_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
19727
19728    /**
19729     * Set the (exact) length of the bar region of a given progress bar
19730     * widget
19731     *
19732     * @param obj The progress bar object
19733     * @param size The length of the progress bar's bar region
19734     *
19735     * This sets the minimum width (when in horizontal mode) or height
19736     * (when in vertical mode) of the actual bar area of the progress
19737     * bar @p obj. This in turn affects the object's minimum size. Use
19738     * this when you're not setting other size hints expanding on the
19739     * given direction (like weight and alignment hints) and you would
19740     * like it to have a specific size.
19741     *
19742     * @note Icon, label and unit text around @p obj will require their
19743     * own space, which will make @p obj to require more the @p size,
19744     * actually.
19745     *
19746     * @see elm_progressbar_span_size_get()
19747     *
19748     * @ingroup Progressbar
19749     */
19750    EAPI void         elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
19751
19752    /**
19753     * Get the length set for the bar region of a given progress bar
19754     * widget
19755     *
19756     * @param obj The progress bar object
19757     * @return The length of the progress bar's bar region
19758     *
19759     * If that size was not set previously, with
19760     * elm_progressbar_span_size_set(), this call will return @c 0.
19761     *
19762     * @ingroup Progressbar
19763     */
19764    EAPI Evas_Coord   elm_progressbar_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19765
19766    /**
19767     * Set the format string for a given progress bar widget's units
19768     * label
19769     *
19770     * @param obj The progress bar object
19771     * @param format The format string for @p obj's units label
19772     *
19773     * If @c NULL is passed on @p format, it will make @p obj's units
19774     * area to be hidden completely. If not, it'll set the <b>format
19775     * string</b> for the units label's @b text. The units label is
19776     * provided a floating point value, so the units text is up display
19777     * at most one floating point falue. Note that the units label is
19778     * optional. Use a format string such as "%1.2f meters" for
19779     * example.
19780     *
19781     * @note The default format string for a progress bar is an integer
19782     * percentage, as in @c "%.0f %%".
19783     *
19784     * @see elm_progressbar_unit_format_get()
19785     *
19786     * @ingroup Progressbar
19787     */
19788    EAPI void         elm_progressbar_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
19789
19790    /**
19791     * Retrieve the format string set for a given progress bar widget's
19792     * units label
19793     *
19794     * @param obj The progress bar object
19795     * @return The format set string for @p obj's units label or
19796     * @c NULL, if none was set (and on errors)
19797     *
19798     * @see elm_progressbar_unit_format_set() for more details
19799     *
19800     * @ingroup Progressbar
19801     */
19802    EAPI const char  *elm_progressbar_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19803
19804    /**
19805     * Set the orientation of a given progress bar widget
19806     *
19807     * @param obj The progress bar object
19808     * @param horizontal Use @c EINA_TRUE to make @p obj to be
19809     * @b horizontal, @c EINA_FALSE to make it @b vertical
19810     *
19811     * Use this function to change how your progress bar is to be
19812     * disposed: vertically or horizontally.
19813     *
19814     * @see elm_progressbar_horizontal_get()
19815     *
19816     * @ingroup Progressbar
19817     */
19818    EAPI void         elm_progressbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
19819
19820    /**
19821     * Retrieve the orientation of a given progress bar widget
19822     *
19823     * @param obj The progress bar object
19824     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
19825     * @c EINA_FALSE if it's @b vertical (and on errors)
19826     *
19827     * @see elm_progressbar_horizontal_set() for more details
19828     *
19829     * @ingroup Progressbar
19830     */
19831    EAPI Eina_Bool    elm_progressbar_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19832
19833    /**
19834     * Invert a given progress bar widget's displaying values order
19835     *
19836     * @param obj The progress bar object
19837     * @param inverted Use @c EINA_TRUE to make @p obj inverted,
19838     * @c EINA_FALSE to bring it back to default, non-inverted values.
19839     *
19840     * A progress bar may be @b inverted, in which state it gets its
19841     * values inverted, with high values being on the left or top and
19842     * low values on the right or bottom, as opposed to normally have
19843     * the low values on the former and high values on the latter,
19844     * respectively, for horizontal and vertical modes.
19845     *
19846     * @see elm_progressbar_inverted_get()
19847     *
19848     * @ingroup Progressbar
19849     */
19850    EAPI void         elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
19851
19852    /**
19853     * Get whether a given progress bar widget's displaying values are
19854     * inverted or not
19855     *
19856     * @param obj The progress bar object
19857     * @return @c EINA_TRUE, if @p obj has inverted values,
19858     * @c EINA_FALSE otherwise (and on errors)
19859     *
19860     * @see elm_progressbar_inverted_set() for more details
19861     *
19862     * @ingroup Progressbar
19863     */
19864    EAPI Eina_Bool    elm_progressbar_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19865
19866    /**
19867     * @defgroup Separator Separator
19868     *
19869     * @brief Separator is a very thin object used to separate other objects.
19870     *
19871     * A separator can be vertical or horizontal.
19872     *
19873     * @ref tutorial_separator is a good example of how to use a separator.
19874     * @{
19875     */
19876    /**
19877     * @brief Add a separator object to @p parent
19878     *
19879     * @param parent The parent object
19880     *
19881     * @return The separator object, or NULL upon failure
19882     */
19883    EAPI Evas_Object *elm_separator_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19884    /**
19885     * @brief Set the horizontal mode of a separator object
19886     *
19887     * @param obj The separator object
19888     * @param horizontal If true, the separator is horizontal
19889     */
19890    EAPI void         elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
19891    /**
19892     * @brief Get the horizontal mode of a separator object
19893     *
19894     * @param obj The separator object
19895     * @return If true, the separator is horizontal
19896     *
19897     * @see elm_separator_horizontal_set()
19898     */
19899    EAPI Eina_Bool    elm_separator_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19900    /**
19901     * @}
19902     */
19903
19904    /**
19905     * @defgroup Spinner Spinner
19906     * @ingroup Elementary
19907     *
19908     * @image html img/widget/spinner/preview-00.png
19909     * @image latex img/widget/spinner/preview-00.eps
19910     *
19911     * A spinner is a widget which allows the user to increase or decrease
19912     * numeric values using arrow buttons, or edit values directly, clicking
19913     * over it and typing the new value.
19914     *
19915     * By default the spinner will not wrap and has a label
19916     * of "%.0f" (just showing the integer value of the double).
19917     *
19918     * A spinner has a label that is formatted with floating
19919     * point values and thus accepts a printf-style format string, like
19920     * “%1.2f units”.
19921     *
19922     * It also allows specific values to be replaced by pre-defined labels.
19923     *
19924     * Smart callbacks one can register to:
19925     *
19926     * - "changed" - Whenever the spinner value is changed.
19927     * - "delay,changed" - A short time after the value is changed by the user.
19928     *    This will be called only when the user stops dragging for a very short
19929     *    period or when they release their finger/mouse, so it avoids possibly
19930     *    expensive reactions to the value change.
19931     *
19932     * Available styles for it:
19933     * - @c "default";
19934     * - @c "vertical": up/down buttons at the right side and text left aligned.
19935     *
19936     * Here is an example on its usage:
19937     * @ref spinner_example
19938     */
19939
19940    /**
19941     * @addtogroup Spinner
19942     * @{
19943     */
19944
19945    /**
19946     * Add a new spinner widget to the given parent Elementary
19947     * (container) object.
19948     *
19949     * @param parent The parent object.
19950     * @return a new spinner widget handle or @c NULL, on errors.
19951     *
19952     * This function inserts a new spinner widget on the canvas.
19953     *
19954     * @ingroup Spinner
19955     *
19956     */
19957    EAPI Evas_Object *elm_spinner_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19958
19959    /**
19960     * Set the format string of the displayed label.
19961     *
19962     * @param obj The spinner object.
19963     * @param fmt The format string for the label display.
19964     *
19965     * If @c NULL, this sets the format to "%.0f". If not it sets the format
19966     * string for the label text. The label text is provided a floating point
19967     * value, so the label text can display up to 1 floating point value.
19968     * Note that this is optional.
19969     *
19970     * Use a format string such as "%1.2f meters" for example, and it will
19971     * display values like: "3.14 meters" for a value equal to 3.14159.
19972     *
19973     * Default is "%0.f".
19974     *
19975     * @see elm_spinner_label_format_get()
19976     *
19977     * @ingroup Spinner
19978     */
19979    EAPI void         elm_spinner_label_format_set(Evas_Object *obj, const char *fmt) EINA_ARG_NONNULL(1);
19980
19981    /**
19982     * Get the label format of the spinner.
19983     *
19984     * @param obj The spinner object.
19985     * @return The text label format string in UTF-8.
19986     *
19987     * @see elm_spinner_label_format_set() for details.
19988     *
19989     * @ingroup Spinner
19990     */
19991    EAPI const char  *elm_spinner_label_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19992
19993    /**
19994     * Set the minimum and maximum values for the spinner.
19995     *
19996     * @param obj The spinner object.
19997     * @param min The minimum value.
19998     * @param max The maximum value.
19999     *
20000     * Define the allowed range of values to be selected by the user.
20001     *
20002     * If actual value is less than @p min, it will be updated to @p min. If it
20003     * is bigger then @p max, will be updated to @p max. Actual value can be
20004     * get with elm_spinner_value_get().
20005     *
20006     * By default, min is equal to 0, and max is equal to 100.
20007     *
20008     * @warning Maximum must be greater than minimum.
20009     *
20010     * @see elm_spinner_min_max_get()
20011     *
20012     * @ingroup Spinner
20013     */
20014    EAPI void         elm_spinner_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
20015
20016    /**
20017     * Get the minimum and maximum values of the spinner.
20018     *
20019     * @param obj The spinner object.
20020     * @param min Pointer where to store the minimum value.
20021     * @param max Pointer where to store the maximum value.
20022     *
20023     * @note If only one value is needed, the other pointer can be passed
20024     * as @c NULL.
20025     *
20026     * @see elm_spinner_min_max_set() for details.
20027     *
20028     * @ingroup Spinner
20029     */
20030    EAPI void         elm_spinner_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
20031
20032    /**
20033     * Set the step used to increment or decrement the spinner value.
20034     *
20035     * @param obj The spinner object.
20036     * @param step The step value.
20037     *
20038     * This value will be incremented or decremented to the displayed value.
20039     * It will be incremented while the user keep right or top arrow pressed,
20040     * and will be decremented while the user keep left or bottom arrow pressed.
20041     *
20042     * The interval to increment / decrement can be set with
20043     * elm_spinner_interval_set().
20044     *
20045     * By default step value is equal to 1.
20046     *
20047     * @see elm_spinner_step_get()
20048     *
20049     * @ingroup Spinner
20050     */
20051    EAPI void         elm_spinner_step_set(Evas_Object *obj, double step) EINA_ARG_NONNULL(1);
20052
20053    /**
20054     * Get the step used to increment or decrement the spinner value.
20055     *
20056     * @param obj The spinner object.
20057     * @return The step value.
20058     *
20059     * @see elm_spinner_step_get() for more details.
20060     *
20061     * @ingroup Spinner
20062     */
20063    EAPI double       elm_spinner_step_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20064
20065    /**
20066     * Set the value the spinner displays.
20067     *
20068     * @param obj The spinner object.
20069     * @param val The value to be displayed.
20070     *
20071     * Value will be presented on the label following format specified with
20072     * elm_spinner_format_set().
20073     *
20074     * @warning The value must to be between min and max values. This values
20075     * are set by elm_spinner_min_max_set().
20076     *
20077     * @see elm_spinner_value_get().
20078     * @see elm_spinner_format_set().
20079     * @see elm_spinner_min_max_set().
20080     *
20081     * @ingroup Spinner
20082     */
20083    EAPI void         elm_spinner_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
20084
20085    /**
20086     * Get the value displayed by the spinner.
20087     *
20088     * @param obj The spinner object.
20089     * @return The value displayed.
20090     *
20091     * @see elm_spinner_value_set() for details.
20092     *
20093     * @ingroup Spinner
20094     */
20095    EAPI double       elm_spinner_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20096
20097    /**
20098     * Set whether the spinner should wrap when it reaches its
20099     * minimum or maximum value.
20100     *
20101     * @param obj The spinner object.
20102     * @param wrap @c EINA_TRUE to enable wrap or @c EINA_FALSE to
20103     * disable it.
20104     *
20105     * Disabled by default. If disabled, when the user tries to increment the
20106     * value,
20107     * but displayed value plus step value is bigger than maximum value,
20108     * the spinner
20109     * won't allow it. The same happens when the user tries to decrement it,
20110     * but the value less step is less than minimum value.
20111     *
20112     * When wrap is enabled, in such situations it will allow these changes,
20113     * but will get the value that would be less than minimum and subtracts
20114     * from maximum. Or add the value that would be more than maximum to
20115     * the minimum.
20116     *
20117     * E.g.:
20118     * @li min value = 10
20119     * @li max value = 50
20120     * @li step value = 20
20121     * @li displayed value = 20
20122     *
20123     * When the user decrement value (using left or bottom arrow), it will
20124     * displays @c 40, because max - (min - (displayed - step)) is
20125     * @c 50 - (@c 10 - (@c 20 - @c 20)) = @c 40.
20126     *
20127     * @see elm_spinner_wrap_get().
20128     *
20129     * @ingroup Spinner
20130     */
20131    EAPI void         elm_spinner_wrap_set(Evas_Object *obj, Eina_Bool wrap) EINA_ARG_NONNULL(1);
20132
20133    /**
20134     * Get whether the spinner should wrap when it reaches its
20135     * minimum or maximum value.
20136     *
20137     * @param obj The spinner object
20138     * @return @c EINA_TRUE means wrap is enabled. @c EINA_FALSE indicates
20139     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
20140     *
20141     * @see elm_spinner_wrap_set() for details.
20142     *
20143     * @ingroup Spinner
20144     */
20145    EAPI Eina_Bool    elm_spinner_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20146
20147    /**
20148     * Set whether the spinner can be directly edited by the user or not.
20149     *
20150     * @param obj The spinner object.
20151     * @param editable @c EINA_TRUE to allow users to edit it or @c EINA_FALSE to
20152     * don't allow users to edit it directly.
20153     *
20154     * Spinner objects can have edition @b disabled, in which state they will
20155     * be changed only by arrows.
20156     * Useful for contexts
20157     * where you don't want your users to interact with it writting the value.
20158     * Specially
20159     * when using special values, the user can see real value instead
20160     * of special label on edition.
20161     *
20162     * It's enabled by default.
20163     *
20164     * @see elm_spinner_editable_get()
20165     *
20166     * @ingroup Spinner
20167     */
20168    EAPI void         elm_spinner_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
20169
20170    /**
20171     * Get whether the spinner can be directly edited by the user or not.
20172     *
20173     * @param obj The spinner object.
20174     * @return @c EINA_TRUE means edition is enabled. @c EINA_FALSE indicates
20175     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
20176     *
20177     * @see elm_spinner_editable_set() for details.
20178     *
20179     * @ingroup Spinner
20180     */
20181    EAPI Eina_Bool    elm_spinner_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20182
20183    /**
20184     * Set a special string to display in the place of the numerical value.
20185     *
20186     * @param obj The spinner object.
20187     * @param value The value to be replaced.
20188     * @param label The label to be used.
20189     *
20190     * It's useful for cases when a user should select an item that is
20191     * better indicated by a label than a value. For example, weekdays or months.
20192     *
20193     * E.g.:
20194     * @code
20195     * sp = elm_spinner_add(win);
20196     * elm_spinner_min_max_set(sp, 1, 3);
20197     * elm_spinner_special_value_add(sp, 1, "January");
20198     * elm_spinner_special_value_add(sp, 2, "February");
20199     * elm_spinner_special_value_add(sp, 3, "March");
20200     * evas_object_show(sp);
20201     * @endcode
20202     *
20203     * @ingroup Spinner
20204     */
20205    EAPI void         elm_spinner_special_value_add(Evas_Object *obj, double value, const char *label) EINA_ARG_NONNULL(1);
20206
20207    /**
20208     * Set the interval on time updates for an user mouse button hold
20209     * on spinner widgets' arrows.
20210     *
20211     * @param obj The spinner object.
20212     * @param interval The (first) interval value in seconds.
20213     *
20214     * This interval value is @b decreased while the user holds the
20215     * mouse pointer either incrementing or decrementing spinner's value.
20216     *
20217     * This helps the user to get to a given value distant from the
20218     * current one easier/faster, as it will start to change quicker and
20219     * quicker on mouse button holds.
20220     *
20221     * The calculation for the next change interval value, starting from
20222     * the one set with this call, is the previous interval divided by
20223     * @c 1.05, so it decreases a little bit.
20224     *
20225     * The default starting interval value for automatic changes is
20226     * @c 0.85 seconds.
20227     *
20228     * @see elm_spinner_interval_get()
20229     *
20230     * @ingroup Spinner
20231     */
20232    EAPI void         elm_spinner_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
20233
20234    /**
20235     * Get the interval on time updates for an user mouse button hold
20236     * on spinner widgets' arrows.
20237     *
20238     * @param obj The spinner object.
20239     * @return The (first) interval value, in seconds, set on it.
20240     *
20241     * @see elm_spinner_interval_set() for more details.
20242     *
20243     * @ingroup Spinner
20244     */
20245    EAPI double       elm_spinner_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20246
20247    /**
20248     * @}
20249     */
20250
20251    /**
20252     * @defgroup Index Index
20253     *
20254     * @image html img/widget/index/preview-00.png
20255     * @image latex img/widget/index/preview-00.eps
20256     *
20257     * An index widget gives you an index for fast access to whichever
20258     * group of other UI items one might have. It's a list of text
20259     * items (usually letters, for alphabetically ordered access).
20260     *
20261     * Index widgets are by default hidden and just appear when the
20262     * user clicks over it's reserved area in the canvas. In its
20263     * default theme, it's an area one @ref Fingers "finger" wide on
20264     * the right side of the index widget's container.
20265     *
20266     * When items on the index are selected, smart callbacks get
20267     * called, so that its user can make other container objects to
20268     * show a given area or child object depending on the index item
20269     * selected. You'd probably be using an index together with @ref
20270     * List "lists", @ref Genlist "generic lists" or @ref Gengrid
20271     * "general grids".
20272     *
20273     * Smart events one  can add callbacks for are:
20274     * - @c "changed" - When the selected index item changes. @c
20275     *      event_info is the selected item's data pointer.
20276     * - @c "delay,changed" - When the selected index item changes, but
20277     *      after a small idling period. @c event_info is the selected
20278     *      item's data pointer.
20279     * - @c "selected" - When the user releases a mouse button and
20280     *      selects an item. @c event_info is the selected item's data
20281     *      pointer.
20282     * - @c "level,up" - when the user moves a finger from the first
20283     *      level to the second level
20284     * - @c "level,down" - when the user moves a finger from the second
20285     *      level to the first level
20286     *
20287     * The @c "delay,changed" event is so that it'll wait a small time
20288     * before actually reporting those events and, moreover, just the
20289     * last event happening on those time frames will actually be
20290     * reported.
20291     *
20292     * Here are some examples on its usage:
20293     * @li @ref index_example_01
20294     * @li @ref index_example_02
20295     */
20296
20297    /**
20298     * @addtogroup Index
20299     * @{
20300     */
20301
20302    typedef struct _Elm_Index_Item Elm_Index_Item; /**< Opaque handle for items of Elementary index widgets */
20303
20304    /**
20305     * Add a new index widget to the given parent Elementary
20306     * (container) object
20307     *
20308     * @param parent The parent object
20309     * @return a new index widget handle or @c NULL, on errors
20310     *
20311     * This function inserts a new index widget on the canvas.
20312     *
20313     * @ingroup Index
20314     */
20315    EAPI Evas_Object    *elm_index_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20316
20317    /**
20318     * Set whether a given index widget is or not visible,
20319     * programatically.
20320     *
20321     * @param obj The index object
20322     * @param active @c EINA_TRUE to show it, @c EINA_FALSE to hide it
20323     *
20324     * Not to be confused with visible as in @c evas_object_show() --
20325     * visible with regard to the widget's auto hiding feature.
20326     *
20327     * @see elm_index_active_get()
20328     *
20329     * @ingroup Index
20330     */
20331    EAPI void            elm_index_active_set(Evas_Object *obj, Eina_Bool active) EINA_ARG_NONNULL(1);
20332
20333    /**
20334     * Get whether a given index widget is currently visible or not.
20335     *
20336     * @param obj The index object
20337     * @return @c EINA_TRUE, if it's shown, @c EINA_FALSE otherwise
20338     *
20339     * @see elm_index_active_set() for more details
20340     *
20341     * @ingroup Index
20342     */
20343    EAPI Eina_Bool       elm_index_active_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20344
20345    /**
20346     * Set the items level for a given index widget.
20347     *
20348     * @param obj The index object.
20349     * @param level @c 0 or @c 1, the currently implemented levels.
20350     *
20351     * @see elm_index_item_level_get()
20352     *
20353     * @ingroup Index
20354     */
20355    EAPI void            elm_index_item_level_set(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
20356
20357    /**
20358     * Get the items level set for a given index widget.
20359     *
20360     * @param obj The index object.
20361     * @return @c 0 or @c 1, which are the levels @p obj might be at.
20362     *
20363     * @see elm_index_item_level_set() for more information
20364     *
20365     * @ingroup Index
20366     */
20367    EAPI int             elm_index_item_level_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20368
20369    /**
20370     * Returns the last selected item's data, for a given index widget.
20371     *
20372     * @param obj The index object.
20373     * @return The item @b data associated to the last selected item on
20374     * @p obj (or @c NULL, on errors).
20375     *
20376     * @warning The returned value is @b not an #Elm_Index_Item item
20377     * handle, but the data associated to it (see the @c item parameter
20378     * in elm_index_item_append(), as an example).
20379     *
20380     * @ingroup Index
20381     */
20382    EAPI void           *elm_index_item_selected_get(const Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
20383
20384    /**
20385     * Append a new item on a given index widget.
20386     *
20387     * @param obj The index object.
20388     * @param letter Letter under which the item should be indexed
20389     * @param item The item data to set for the index's item
20390     *
20391     * Despite the most common usage of the @p letter argument is for
20392     * single char strings, one could use arbitrary strings as index
20393     * entries.
20394     *
20395     * @c item will be the pointer returned back on @c "changed", @c
20396     * "delay,changed" and @c "selected" smart events.
20397     *
20398     * @ingroup Index
20399     */
20400    EAPI void            elm_index_item_append(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
20401
20402    /**
20403     * Prepend a new item on a given index widget.
20404     *
20405     * @param obj The index object.
20406     * @param letter Letter under which the item should be indexed
20407     * @param item The item data to set for the index's item
20408     *
20409     * Despite the most common usage of the @p letter argument is for
20410     * single char strings, one could use arbitrary strings as index
20411     * entries.
20412     *
20413     * @c item will be the pointer returned back on @c "changed", @c
20414     * "delay,changed" and @c "selected" smart events.
20415     *
20416     * @ingroup Index
20417     */
20418    EAPI void            elm_index_item_prepend(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
20419
20420    /**
20421     * Append a new item, on a given index widget, <b>after the item
20422     * having @p relative as data</b>.
20423     *
20424     * @param obj The index object.
20425     * @param letter Letter under which the item should be indexed
20426     * @param item The item data to set for the index's item
20427     * @param relative The item data of the index item to be the
20428     * predecessor of this new one
20429     *
20430     * Despite the most common usage of the @p letter argument is for
20431     * single char strings, one could use arbitrary strings as index
20432     * entries.
20433     *
20434     * @c item will be the pointer returned back on @c "changed", @c
20435     * "delay,changed" and @c "selected" smart events.
20436     *
20437     * @note If @p relative is @c NULL or if it's not found to be data
20438     * set on any previous item on @p obj, this function will behave as
20439     * elm_index_item_append().
20440     *
20441     * @ingroup Index
20442     */
20443    EAPI void            elm_index_item_append_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
20444
20445    /**
20446     * Prepend a new item, on a given index widget, <b>after the item
20447     * having @p relative as data</b>.
20448     *
20449     * @param obj The index object.
20450     * @param letter Letter under which the item should be indexed
20451     * @param item The item data to set for the index's item
20452     * @param relative The item data of the index item to be the
20453     * successor of this new one
20454     *
20455     * Despite the most common usage of the @p letter argument is for
20456     * single char strings, one could use arbitrary strings as index
20457     * entries.
20458     *
20459     * @c item will be the pointer returned back on @c "changed", @c
20460     * "delay,changed" and @c "selected" smart events.
20461     *
20462     * @note If @p relative is @c NULL or if it's not found to be data
20463     * set on any previous item on @p obj, this function will behave as
20464     * elm_index_item_prepend().
20465     *
20466     * @ingroup Index
20467     */
20468    EAPI void            elm_index_item_prepend_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
20469
20470    /**
20471     * Insert a new item into the given index widget, using @p cmp_func
20472     * function to sort items (by item handles).
20473     *
20474     * @param obj The index object.
20475     * @param letter Letter under which the item should be indexed
20476     * @param item The item data to set for the index's item
20477     * @param cmp_func The comparing function to be used to sort index
20478     * items <b>by #Elm_Index_Item item handles</b>
20479     * @param cmp_data_func A @b fallback function to be called for the
20480     * sorting of index items <b>by item data</b>). It will be used
20481     * when @p cmp_func returns @c 0 (equality), which means an index
20482     * item with provided item data already exists. To decide which
20483     * data item should be pointed to by the index item in question, @p
20484     * cmp_data_func will be used. If @p cmp_data_func returns a
20485     * non-negative value, the previous index item data will be
20486     * replaced by the given @p item pointer. If the previous data need
20487     * to be freed, it should be done by the @p cmp_data_func function,
20488     * because all references to it will be lost. If this function is
20489     * not provided (@c NULL is given), index items will be @b
20490     * duplicated, if @p cmp_func returns @c 0.
20491     *
20492     * Despite the most common usage of the @p letter argument is for
20493     * single char strings, one could use arbitrary strings as index
20494     * entries.
20495     *
20496     * @c item will be the pointer returned back on @c "changed", @c
20497     * "delay,changed" and @c "selected" smart events.
20498     *
20499     * @ingroup Index
20500     */
20501    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);
20502
20503    /**
20504     * Remove an item from a given index widget, <b>to be referenced by
20505     * it's data value</b>.
20506     *
20507     * @param obj The index object
20508     * @param item The item's data pointer for the item to be removed
20509     * from @p obj
20510     *
20511     * If a deletion callback is set, via elm_index_item_del_cb_set(),
20512     * that callback function will be called by this one.
20513     *
20514     * @warning The item to be removed from @p obj will be found via
20515     * its item data pointer, and not by an #Elm_Index_Item handle.
20516     *
20517     * @ingroup Index
20518     */
20519    EAPI void            elm_index_item_del(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
20520
20521    /**
20522     * Find a given index widget's item, <b>using item data</b>.
20523     *
20524     * @param obj The index object
20525     * @param item The item data pointed to by the desired index item
20526     * @return The index item handle, if found, or @c NULL otherwise
20527     *
20528     * @ingroup Index
20529     */
20530    EAPI Elm_Index_Item *elm_index_item_find(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
20531
20532    /**
20533     * Removes @b all items from a given index widget.
20534     *
20535     * @param obj The index object.
20536     *
20537     * If deletion callbacks are set, via elm_index_item_del_cb_set(),
20538     * that callback function will be called for each item in @p obj.
20539     *
20540     * @ingroup Index
20541     */
20542    EAPI void            elm_index_item_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
20543
20544    /**
20545     * Go to a given items level on a index widget
20546     *
20547     * @param obj The index object
20548     * @param level The index level (one of @c 0 or @c 1)
20549     *
20550     * @ingroup Index
20551     */
20552    EAPI void            elm_index_item_go(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
20553
20554    /**
20555     * Return the data associated with a given index widget item
20556     *
20557     * @param it The index widget item handle
20558     * @return The data associated with @p it
20559     *
20560     * @see elm_index_item_data_set()
20561     *
20562     * @ingroup Index
20563     */
20564    EAPI void           *elm_index_item_data_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
20565
20566    /**
20567     * Set the data associated with a given index widget item
20568     *
20569     * @param it The index widget item handle
20570     * @param data The new data pointer to set to @p it
20571     *
20572     * This sets new item data on @p it.
20573     *
20574     * @warning The old data pointer won't be touched by this function, so
20575     * the user had better to free that old data himself/herself.
20576     *
20577     * @ingroup Index
20578     */
20579    EAPI void            elm_index_item_data_set(Elm_Index_Item *it, const void *data) EINA_ARG_NONNULL(1);
20580
20581    /**
20582     * Set the function to be called when a given index widget item is freed.
20583     *
20584     * @param it The item to set the callback on
20585     * @param func The function to call on the item's deletion
20586     *
20587     * When called, @p func will have both @c data and @c event_info
20588     * arguments with the @p it item's data value and, naturally, the
20589     * @c obj argument with a handle to the parent index widget.
20590     *
20591     * @ingroup Index
20592     */
20593    EAPI void            elm_index_item_del_cb_set(Elm_Index_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
20594
20595    /**
20596     * Get the letter (string) set on a given index widget item.
20597     *
20598     * @param it The index item handle
20599     * @return The letter string set on @p it
20600     *
20601     * @ingroup Index
20602     */
20603    EAPI const char     *elm_index_item_letter_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
20604
20605    /**
20606     * @}
20607     */
20608
20609    /**
20610     * @defgroup Photocam Photocam
20611     *
20612     * @image html img/widget/photocam/preview-00.png
20613     * @image latex img/widget/photocam/preview-00.eps
20614     *
20615     * This is a widget specifically for displaying high-resolution digital
20616     * camera photos giving speedy feedback (fast load), low memory footprint
20617     * and zooming and panning as well as fitting logic. It is entirely focused
20618     * on jpeg images, and takes advantage of properties of the jpeg format (via
20619     * evas loader features in the jpeg loader).
20620     *
20621     * Signals that you can add callbacks for are:
20622     * @li "clicked" - This is called when a user has clicked the photo without
20623     *                 dragging around.
20624     * @li "press" - This is called when a user has pressed down on the photo.
20625     * @li "longpressed" - This is called when a user has pressed down on the
20626     *                     photo for a long time without dragging around.
20627     * @li "clicked,double" - This is called when a user has double-clicked the
20628     *                        photo.
20629     * @li "load" - Photo load begins.
20630     * @li "loaded" - This is called when the image file load is complete for the
20631     *                first view (low resolution blurry version).
20632     * @li "load,detail" - Photo detailed data load begins.
20633     * @li "loaded,detail" - This is called when the image file load is complete
20634     *                      for the detailed image data (full resolution needed).
20635     * @li "zoom,start" - Zoom animation started.
20636     * @li "zoom,stop" - Zoom animation stopped.
20637     * @li "zoom,change" - Zoom changed when using an auto zoom mode.
20638     * @li "scroll" - the content has been scrolled (moved)
20639     * @li "scroll,anim,start" - scrolling animation has started
20640     * @li "scroll,anim,stop" - scrolling animation has stopped
20641     * @li "scroll,drag,start" - dragging the contents around has started
20642     * @li "scroll,drag,stop" - dragging the contents around has stopped
20643     *
20644     * @ref tutorial_photocam shows the API in action.
20645     * @{
20646     */
20647    /**
20648     * @brief Types of zoom available.
20649     */
20650    typedef enum _Elm_Photocam_Zoom_Mode
20651      {
20652         ELM_PHOTOCAM_ZOOM_MODE_MANUAL = 0, /**< Zoom controled normally by elm_photocam_zoom_set */
20653         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT, /**< Zoom until photo fits in photocam */
20654         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL, /**< Zoom until photo fills photocam */
20655         ELM_PHOTOCAM_ZOOM_MODE_LAST
20656      } Elm_Photocam_Zoom_Mode;
20657    /**
20658     * @brief Add a new Photocam object
20659     *
20660     * @param parent The parent object
20661     * @return The new object or NULL if it cannot be created
20662     */
20663    EAPI Evas_Object           *elm_photocam_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20664    /**
20665     * @brief Set the photo file to be shown
20666     *
20667     * @param obj The photocam object
20668     * @param file The photo file
20669     * @return The return error (see EVAS_LOAD_ERROR_NONE, EVAS_LOAD_ERROR_GENERIC etc.)
20670     *
20671     * This sets (and shows) the specified file (with a relative or absolute
20672     * path) and will return a load error (same error that
20673     * evas_object_image_load_error_get() will return). The image will change and
20674     * adjust its size at this point and begin a background load process for this
20675     * photo that at some time in the future will be displayed at the full
20676     * quality needed.
20677     */
20678    EAPI Evas_Load_Error        elm_photocam_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
20679    /**
20680     * @brief Returns the path of the current image file
20681     *
20682     * @param obj The photocam object
20683     * @return Returns the path
20684     *
20685     * @see elm_photocam_file_set()
20686     */
20687    EAPI const char            *elm_photocam_file_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20688    /**
20689     * @brief Set the zoom level of the photo
20690     *
20691     * @param obj The photocam object
20692     * @param zoom The zoom level to set
20693     *
20694     * This sets the zoom level. 1 will be 1:1 pixel for pixel. 2 will be 2:1
20695     * (that is 2x2 photo pixels will display as 1 on-screen pixel). 4:1 will be
20696     * 4x4 photo pixels as 1 screen pixel, and so on. The @p zoom parameter must
20697     * be greater than 0. It is usggested to stick to powers of 2. (1, 2, 4, 8,
20698     * 16, 32, etc.).
20699     */
20700    EAPI void                   elm_photocam_zoom_set(Evas_Object *obj, double zoom) EINA_ARG_NONNULL(1);
20701    /**
20702     * @brief Get the zoom level of the photo
20703     *
20704     * @param obj The photocam object
20705     * @return The current zoom level
20706     *
20707     * This returns the current zoom level of the photocam object. Note that if
20708     * you set the fill mode to other than ELM_PHOTOCAM_ZOOM_MODE_MANUAL
20709     * (which is the default), the zoom level may be changed at any time by the
20710     * photocam object itself to account for photo size and photocam viewpoer
20711     * size.
20712     *
20713     * @see elm_photocam_zoom_set()
20714     * @see elm_photocam_zoom_mode_set()
20715     */
20716    EAPI double                 elm_photocam_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20717    /**
20718     * @brief Set the zoom mode
20719     *
20720     * @param obj The photocam object
20721     * @param mode The desired mode
20722     *
20723     * This sets the zoom mode to manual or one of several automatic levels.
20724     * Manual (ELM_PHOTOCAM_ZOOM_MODE_MANUAL) means that zoom is set manually by
20725     * elm_photocam_zoom_set() and will stay at that level until changed by code
20726     * or until zoom mode is changed. This is the default mode. The Automatic
20727     * modes will allow the photocam object to automatically adjust zoom mode
20728     * based on properties. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT) will adjust zoom so
20729     * the photo fits EXACTLY inside the scroll frame with no pixels outside this
20730     * area. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL will be similar but ensure no
20731     * pixels within the frame are left unfilled.
20732     */
20733    EAPI void                   elm_photocam_zoom_mode_set(Evas_Object *obj, Elm_Photocam_Zoom_Mode mode) EINA_ARG_NONNULL(1);
20734    /**
20735     * @brief Get the zoom mode
20736     *
20737     * @param obj The photocam object
20738     * @return The current zoom mode
20739     *
20740     * This gets the current zoom mode of the photocam object.
20741     *
20742     * @see elm_photocam_zoom_mode_set()
20743     */
20744    EAPI Elm_Photocam_Zoom_Mode elm_photocam_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20745    /**
20746     * @brief Get the current image pixel width and height
20747     *
20748     * @param obj The photocam object
20749     * @param w A pointer to the width return
20750     * @param h A pointer to the height return
20751     *
20752     * This gets the current photo pixel width and height (for the original).
20753     * The size will be returned in the integers @p w and @p h that are pointed
20754     * to.
20755     */
20756    EAPI void                   elm_photocam_image_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
20757    /**
20758     * @brief Get the area of the image that is currently shown
20759     *
20760     * @param obj
20761     * @param x A pointer to the X-coordinate of region
20762     * @param y A pointer to the Y-coordinate of region
20763     * @param w A pointer to the width
20764     * @param h A pointer to the height
20765     *
20766     * @see elm_photocam_image_region_show()
20767     * @see elm_photocam_image_region_bring_in()
20768     */
20769    EAPI void                   elm_photocam_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
20770    /**
20771     * @brief Set the viewed portion of the image
20772     *
20773     * @param obj The photocam object
20774     * @param x X-coordinate of region in image original pixels
20775     * @param y Y-coordinate of region in image original pixels
20776     * @param w Width of region in image original pixels
20777     * @param h Height of region in image original pixels
20778     *
20779     * This shows the region of the image without using animation.
20780     */
20781    EAPI void                   elm_photocam_image_region_show(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
20782    /**
20783     * @brief Bring in the viewed portion of the image
20784     *
20785     * @param obj The photocam object
20786     * @param x X-coordinate of region in image original pixels
20787     * @param y Y-coordinate of region in image original pixels
20788     * @param w Width of region in image original pixels
20789     * @param h Height of region in image original pixels
20790     *
20791     * This shows the region of the image using animation.
20792     */
20793    EAPI void                   elm_photocam_image_region_bring_in(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
20794    /**
20795     * @brief Set the paused state for photocam
20796     *
20797     * @param obj The photocam object
20798     * @param paused The pause state to set
20799     *
20800     * This sets the paused state to on(EINA_TRUE) or off (EINA_FALSE) for
20801     * photocam. The default is off. This will stop zooming using animation on
20802     * zoom levels changes and change instantly. This will stop any existing
20803     * animations that are running.
20804     */
20805    EAPI void                   elm_photocam_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
20806    /**
20807     * @brief Get the paused state for photocam
20808     *
20809     * @param obj The photocam object
20810     * @return The current paused state
20811     *
20812     * This gets the current paused state for the photocam object.
20813     *
20814     * @see elm_photocam_paused_set()
20815     */
20816    EAPI Eina_Bool              elm_photocam_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20817    /**
20818     * @brief Get the internal low-res image used for photocam
20819     *
20820     * @param obj The photocam object
20821     * @return The internal image object handle, or NULL if none exists
20822     *
20823     * This gets the internal image object inside photocam. Do not modify it. It
20824     * is for inspection only, and hooking callbacks to. Nothing else. It may be
20825     * deleted at any time as well.
20826     */
20827    EAPI Evas_Object           *elm_photocam_internal_image_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20828    /**
20829     * @brief Set the photocam scrolling bouncing.
20830     *
20831     * @param obj The photocam object
20832     * @param h_bounce bouncing for horizontal
20833     * @param v_bounce bouncing for vertical
20834     */
20835    EAPI void                   elm_photocam_bounce_set(Evas_Object *obj,  Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
20836    /**
20837     * @brief Get the photocam scrolling bouncing.
20838     *
20839     * @param obj The photocam object
20840     * @param h_bounce bouncing for horizontal
20841     * @param v_bounce bouncing for vertical
20842     *
20843     * @see elm_photocam_bounce_set()
20844     */
20845    EAPI void                   elm_photocam_bounce_get(const Evas_Object *obj,  Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
20846    /**
20847     * @}
20848     */
20849
20850    /**
20851     * @defgroup Map Map
20852     * @ingroup Elementary
20853     *
20854     * @image html img/widget/map/preview-00.png
20855     * @image latex img/widget/map/preview-00.eps
20856     *
20857     * This is a widget specifically for displaying a map. It uses basically
20858     * OpenStreetMap provider http://www.openstreetmap.org/,
20859     * but custom providers can be added.
20860     *
20861     * It supports some basic but yet nice features:
20862     * @li zoom and scroll
20863     * @li markers with content to be displayed when user clicks over it
20864     * @li group of markers
20865     * @li routes
20866     *
20867     * Smart callbacks one can listen to:
20868     *
20869     * - "clicked" - This is called when a user has clicked the map without
20870     *   dragging around.
20871     * - "press" - This is called when a user has pressed down on the map.
20872     * - "longpressed" - This is called when a user has pressed down on the map
20873     *   for a long time without dragging around.
20874     * - "clicked,double" - This is called when a user has double-clicked
20875     *   the map.
20876     * - "load,detail" - Map detailed data load begins.
20877     * - "loaded,detail" - This is called when all currently visible parts of
20878     *   the map are loaded.
20879     * - "zoom,start" - Zoom animation started.
20880     * - "zoom,stop" - Zoom animation stopped.
20881     * - "zoom,change" - Zoom changed when using an auto zoom mode.
20882     * - "scroll" - the content has been scrolled (moved).
20883     * - "scroll,anim,start" - scrolling animation has started.
20884     * - "scroll,anim,stop" - scrolling animation has stopped.
20885     * - "scroll,drag,start" - dragging the contents around has started.
20886     * - "scroll,drag,stop" - dragging the contents around has stopped.
20887     * - "downloaded" - This is called when all currently required map images
20888     *   are downloaded.
20889     * - "route,load" - This is called when route request begins.
20890     * - "route,loaded" - This is called when route request ends.
20891     * - "name,load" - This is called when name request begins.
20892     * - "name,loaded- This is called when name request ends.
20893     *
20894     * Available style for map widget:
20895     * - @c "default"
20896     *
20897     * Available style for markers:
20898     * - @c "radio"
20899     * - @c "radio2"
20900     * - @c "empty"
20901     *
20902     * Available style for marker bubble:
20903     * - @c "default"
20904     *
20905     * List of examples:
20906     * @li @ref map_example_01
20907     * @li @ref map_example_02
20908     * @li @ref map_example_03
20909     */
20910
20911    /**
20912     * @addtogroup Map
20913     * @{
20914     */
20915
20916    /**
20917     * @enum _Elm_Map_Zoom_Mode
20918     * @typedef Elm_Map_Zoom_Mode
20919     *
20920     * Set map's zoom behavior. It can be set to manual or automatic.
20921     *
20922     * Default value is #ELM_MAP_ZOOM_MODE_MANUAL.
20923     *
20924     * Values <b> don't </b> work as bitmask, only one can be choosen.
20925     *
20926     * @note Valid sizes are 2^zoom, consequently the map may be smaller
20927     * than the scroller view.
20928     *
20929     * @see elm_map_zoom_mode_set()
20930     * @see elm_map_zoom_mode_get()
20931     *
20932     * @ingroup Map
20933     */
20934    typedef enum _Elm_Map_Zoom_Mode
20935      {
20936         ELM_MAP_ZOOM_MODE_MANUAL, /**< Zoom controled manually by elm_map_zoom_set(). It's set by default. */
20937         ELM_MAP_ZOOM_MODE_AUTO_FIT, /**< Zoom until map fits inside the scroll frame with no pixels outside this area. */
20938         ELM_MAP_ZOOM_MODE_AUTO_FILL, /**< Zoom until map fills scroll, ensuring no pixels are left unfilled. */
20939         ELM_MAP_ZOOM_MODE_LAST
20940      } Elm_Map_Zoom_Mode;
20941
20942    /**
20943     * @enum _Elm_Map_Route_Sources
20944     * @typedef Elm_Map_Route_Sources
20945     *
20946     * Set route service to be used. By default used source is
20947     * #ELM_MAP_ROUTE_SOURCE_YOURS.
20948     *
20949     * @see elm_map_route_source_set()
20950     * @see elm_map_route_source_get()
20951     *
20952     * @ingroup Map
20953     */
20954    typedef enum _Elm_Map_Route_Sources
20955      {
20956         ELM_MAP_ROUTE_SOURCE_YOURS, /**< Routing service http://www.yournavigation.org/ . Set by default.*/
20957         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. */
20958         ELM_MAP_ROUTE_SOURCE_ORS, /**< Open Route Service: http://www.openrouteservice.org/ . It's not working with Map yet. */
20959         ELM_MAP_ROUTE_SOURCE_LAST
20960      } Elm_Map_Route_Sources;
20961
20962    typedef enum _Elm_Map_Name_Sources
20963      {
20964         ELM_MAP_NAME_SOURCE_NOMINATIM,
20965         ELM_MAP_NAME_SOURCE_LAST
20966      } Elm_Map_Name_Sources;
20967
20968    /**
20969     * @enum _Elm_Map_Route_Type
20970     * @typedef Elm_Map_Route_Type
20971     *
20972     * Set type of transport used on route.
20973     *
20974     * @see elm_map_route_add()
20975     *
20976     * @ingroup Map
20977     */
20978    typedef enum _Elm_Map_Route_Type
20979      {
20980         ELM_MAP_ROUTE_TYPE_MOTOCAR, /**< Route should consider an automobile will be used. */
20981         ELM_MAP_ROUTE_TYPE_BICYCLE, /**< Route should consider a bicycle will be used by the user. */
20982         ELM_MAP_ROUTE_TYPE_FOOT, /**< Route should consider user will be walking. */
20983         ELM_MAP_ROUTE_TYPE_LAST
20984      } Elm_Map_Route_Type;
20985
20986    /**
20987     * @enum _Elm_Map_Route_Method
20988     * @typedef Elm_Map_Route_Method
20989     *
20990     * Set the routing method, what should be priorized, time or distance.
20991     *
20992     * @see elm_map_route_add()
20993     *
20994     * @ingroup Map
20995     */
20996    typedef enum _Elm_Map_Route_Method
20997      {
20998         ELM_MAP_ROUTE_METHOD_FASTEST, /**< Route should priorize time. */
20999         ELM_MAP_ROUTE_METHOD_SHORTEST, /**< Route should priorize distance. */
21000         ELM_MAP_ROUTE_METHOD_LAST
21001      } Elm_Map_Route_Method;
21002
21003    typedef enum _Elm_Map_Name_Method
21004      {
21005         ELM_MAP_NAME_METHOD_SEARCH,
21006         ELM_MAP_NAME_METHOD_REVERSE,
21007         ELM_MAP_NAME_METHOD_LAST
21008      } Elm_Map_Name_Method;
21009
21010    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(). */
21011    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(). */
21012    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(). */
21013    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(). */
21014    typedef struct _Elm_Map_Name            Elm_Map_Name; /**< A handle for specific coordinates. */
21015    typedef struct _Elm_Map_Track           Elm_Map_Track;
21016
21017    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. */
21018    typedef void         (*ElmMapMarkerDelFunc)      (Evas_Object *obj, Elm_Map_Marker *marker, void *data, Evas_Object *o); /**< Function to delete bubble content for marker classes. */
21019    typedef Evas_Object *(*ElmMapMarkerIconGetFunc)  (Evas_Object *obj, Elm_Map_Marker *marker, void *data); /**< Icon fetching class function for marker classes. */
21020    typedef Evas_Object *(*ElmMapGroupIconGetFunc)   (Evas_Object *obj, void *data); /**< Icon fetching class function for markers group classes. */
21021
21022    typedef char        *(*ElmMapModuleSourceFunc) (void);
21023    typedef int          (*ElmMapModuleZoomMinFunc) (void);
21024    typedef int          (*ElmMapModuleZoomMaxFunc) (void);
21025    typedef char        *(*ElmMapModuleUrlFunc) (Evas_Object *obj, int x, int y, int zoom);
21026    typedef int          (*ElmMapModuleRouteSourceFunc) (void);
21027    typedef char        *(*ElmMapModuleRouteUrlFunc) (Evas_Object *obj, char *type_name, int method, double flon, double flat, double tlon, double tlat);
21028    typedef char        *(*ElmMapModuleNameUrlFunc) (Evas_Object *obj, int method, char *name, double lon, double lat);
21029    typedef Eina_Bool    (*ElmMapModuleGeoIntoCoordFunc) (const Evas_Object *obj, int zoom, double lon, double lat, int size, int *x, int *y);
21030    typedef Eina_Bool    (*ElmMapModuleCoordIntoGeoFunc) (const Evas_Object *obj, int zoom, int x, int y, int size, double *lon, double *lat);
21031
21032    /**
21033     * Add a new map widget to the given parent Elementary (container) object.
21034     *
21035     * @param parent The parent object.
21036     * @return a new map widget handle or @c NULL, on errors.
21037     *
21038     * This function inserts a new map widget on the canvas.
21039     *
21040     * @ingroup Map
21041     */
21042    EAPI Evas_Object          *elm_map_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21043
21044    /**
21045     * Set the zoom level of the map.
21046     *
21047     * @param obj The map object.
21048     * @param zoom The zoom level to set.
21049     *
21050     * This sets the zoom level.
21051     *
21052     * It will respect limits defined by elm_map_source_zoom_min_set() and
21053     * elm_map_source_zoom_max_set().
21054     *
21055     * By default these values are 0 (world map) and 18 (maximum zoom).
21056     *
21057     * This function should be used when zoom mode is set to
21058     * #ELM_MAP_ZOOM_MODE_MANUAL. This is the default mode, and can be set
21059     * with elm_map_zoom_mode_set().
21060     *
21061     * @see elm_map_zoom_mode_set().
21062     * @see elm_map_zoom_get().
21063     *
21064     * @ingroup Map
21065     */
21066    EAPI void                  elm_map_zoom_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
21067
21068    /**
21069     * Get the zoom level of the map.
21070     *
21071     * @param obj The map object.
21072     * @return The current zoom level.
21073     *
21074     * This returns the current zoom level of the map object.
21075     *
21076     * Note that if you set the fill mode to other than #ELM_MAP_ZOOM_MODE_MANUAL
21077     * (which is the default), the zoom level may be changed at any time by the
21078     * map object itself to account for map size and map viewport size.
21079     *
21080     * @see elm_map_zoom_set() for details.
21081     *
21082     * @ingroup Map
21083     */
21084    EAPI int                   elm_map_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21085
21086    /**
21087     * Set the zoom mode used by the map object.
21088     *
21089     * @param obj The map object.
21090     * @param mode The zoom mode of the map, being it one of
21091     * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
21092     * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
21093     *
21094     * This sets the zoom mode to manual or one of the automatic levels.
21095     * Manual (#ELM_MAP_ZOOM_MODE_MANUAL) means that zoom is set manually by
21096     * elm_map_zoom_set() and will stay at that level until changed by code
21097     * or until zoom mode is changed. This is the default mode.
21098     *
21099     * The Automatic modes will allow the map object to automatically
21100     * adjust zoom mode based on properties. #ELM_MAP_ZOOM_MODE_AUTO_FIT will
21101     * adjust zoom so the map fits inside the scroll frame with no pixels
21102     * outside this area. #ELM_MAP_ZOOM_MODE_AUTO_FILL will be similar but
21103     * ensure no pixels within the frame are left unfilled. Do not forget that
21104     * the valid sizes are 2^zoom, consequently the map may be smaller than
21105     * the scroller view.
21106     *
21107     * @see elm_map_zoom_set()
21108     *
21109     * @ingroup Map
21110     */
21111    EAPI void                  elm_map_zoom_mode_set(Evas_Object *obj, Elm_Map_Zoom_Mode mode) EINA_ARG_NONNULL(1);
21112
21113    /**
21114     * Get the zoom mode used by the map object.
21115     *
21116     * @param obj The map object.
21117     * @return The zoom mode of the map, being it one of
21118     * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
21119     * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
21120     *
21121     * This function returns the current zoom mode used by the map object.
21122     *
21123     * @see elm_map_zoom_mode_set() for more details.
21124     *
21125     * @ingroup Map
21126     */
21127    EAPI Elm_Map_Zoom_Mode     elm_map_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21128
21129    /**
21130     * Get the current coordinates of the map.
21131     *
21132     * @param obj The map object.
21133     * @param lon Pointer where to store longitude.
21134     * @param lat Pointer where to store latitude.
21135     *
21136     * This gets the current center coordinates of the map object. It can be
21137     * set by elm_map_geo_region_bring_in() and elm_map_geo_region_show().
21138     *
21139     * @see elm_map_geo_region_bring_in()
21140     * @see elm_map_geo_region_show()
21141     *
21142     * @ingroup Map
21143     */
21144    EAPI void                  elm_map_geo_region_get(const Evas_Object *obj, double *lon, double *lat) EINA_ARG_NONNULL(1);
21145
21146    /**
21147     * Animatedly bring in given coordinates to the center of the map.
21148     *
21149     * @param obj The map object.
21150     * @param lon Longitude to center at.
21151     * @param lat Latitude to center at.
21152     *
21153     * This causes map to jump to the given @p lat and @p lon coordinates
21154     * and show it (by scrolling) in the center of the viewport, if it is not
21155     * already centered. This will use animation to do so and take a period
21156     * of time to complete.
21157     *
21158     * @see elm_map_geo_region_show() for a function to avoid animation.
21159     * @see elm_map_geo_region_get()
21160     *
21161     * @ingroup Map
21162     */
21163    EAPI void                  elm_map_geo_region_bring_in(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
21164
21165    /**
21166     * Show the given coordinates at the center of the map, @b immediately.
21167     *
21168     * @param obj The map object.
21169     * @param lon Longitude to center at.
21170     * @param lat Latitude to center at.
21171     *
21172     * This causes map to @b redraw its viewport's contents to the
21173     * region contining the given @p lat and @p lon, that will be moved to the
21174     * center of the map.
21175     *
21176     * @see elm_map_geo_region_bring_in() for a function to move with animation.
21177     * @see elm_map_geo_region_get()
21178     *
21179     * @ingroup Map
21180     */
21181    EAPI void                  elm_map_geo_region_show(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
21182
21183    /**
21184     * Pause or unpause the map.
21185     *
21186     * @param obj The map object.
21187     * @param paused Use @c EINA_TRUE to pause the map @p obj or @c EINA_FALSE
21188     * to unpause it.
21189     *
21190     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
21191     * for map.
21192     *
21193     * The default is off.
21194     *
21195     * This will stop zooming using animation, changing zoom levels will
21196     * change instantly. This will stop any existing animations that are running.
21197     *
21198     * @see elm_map_paused_get()
21199     *
21200     * @ingroup Map
21201     */
21202    EAPI void                  elm_map_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
21203
21204    /**
21205     * Get a value whether map is paused or not.
21206     *
21207     * @param obj The map object.
21208     * @return @c EINA_TRUE means map is pause. @c EINA_FALSE indicates
21209     * it is not. If @p obj is @c NULL, @c EINA_FALSE is returned.
21210     *
21211     * This gets the current paused state for the map object.
21212     *
21213     * @see elm_map_paused_set() for details.
21214     *
21215     * @ingroup Map
21216     */
21217    EAPI Eina_Bool             elm_map_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21218
21219    /**
21220     * Set to show markers during zoom level changes or not.
21221     *
21222     * @param obj The map object.
21223     * @param paused Use @c EINA_TRUE to @b not show markers or @c EINA_FALSE
21224     * to show them.
21225     *
21226     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
21227     * for map.
21228     *
21229     * The default is off.
21230     *
21231     * This will stop zooming using animation, changing zoom levels will
21232     * change instantly. This will stop any existing animations that are running.
21233     *
21234     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
21235     * for the markers.
21236     *
21237     * The default  is off.
21238     *
21239     * Enabling it will force the map to stop displaying the markers during
21240     * zoom level changes. Set to on if you have a large number of markers.
21241     *
21242     * @see elm_map_paused_markers_get()
21243     *
21244     * @ingroup Map
21245     */
21246    EAPI void                  elm_map_paused_markers_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
21247
21248    /**
21249     * Get a value whether markers will be displayed on zoom level changes or not
21250     *
21251     * @param obj The map object.
21252     * @return @c EINA_TRUE means map @b won't display markers or @c EINA_FALSE
21253     * indicates it will. If @p obj is @c NULL, @c EINA_FALSE is returned.
21254     *
21255     * This gets the current markers paused state for the map object.
21256     *
21257     * @see elm_map_paused_markers_set() for details.
21258     *
21259     * @ingroup Map
21260     */
21261    EAPI Eina_Bool             elm_map_paused_markers_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21262
21263    /**
21264     * Get the information of downloading status.
21265     *
21266     * @param obj The map object.
21267     * @param try_num Pointer where to store number of tiles being downloaded.
21268     * @param finish_num Pointer where to store number of tiles successfully
21269     * downloaded.
21270     *
21271     * This gets the current downloading status for the map object, the number
21272     * of tiles being downloaded and the number of tiles already downloaded.
21273     *
21274     * @ingroup Map
21275     */
21276    EAPI void                  elm_map_utils_downloading_status_get(const Evas_Object *obj, int *try_num, int *finish_num) EINA_ARG_NONNULL(1, 2, 3);
21277
21278    /**
21279     * Convert a pixel coordinate (x,y) into a geographic coordinate
21280     * (longitude, latitude).
21281     *
21282     * @param obj The map object.
21283     * @param x the coordinate.
21284     * @param y the coordinate.
21285     * @param size the size in pixels of the map.
21286     * The map is a square and generally his size is : pow(2.0, zoom)*256.
21287     * @param lon Pointer where to store the longitude that correspond to x.
21288     * @param lat Pointer where to store the latitude that correspond to y.
21289     *
21290     * @note Origin pixel point is the top left corner of the viewport.
21291     * Map zoom and size are taken on account.
21292     *
21293     * @see elm_map_utils_convert_geo_into_coord() if you need the inverse.
21294     *
21295     * @ingroup Map
21296     */
21297    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);
21298
21299    /**
21300     * Convert a geographic coordinate (longitude, latitude) into a pixel
21301     * coordinate (x, y).
21302     *
21303     * @param obj The map object.
21304     * @param lon the longitude.
21305     * @param lat the latitude.
21306     * @param size the size in pixels of the map. The map is a square
21307     * and generally his size is : pow(2.0, zoom)*256.
21308     * @param x Pointer where to store the horizontal pixel coordinate that
21309     * correspond to the longitude.
21310     * @param y Pointer where to store the vertical pixel coordinate that
21311     * correspond to the latitude.
21312     *
21313     * @note Origin pixel point is the top left corner of the viewport.
21314     * Map zoom and size are taken on account.
21315     *
21316     * @see elm_map_utils_convert_coord_into_geo() if you need the inverse.
21317     *
21318     * @ingroup Map
21319     */
21320    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);
21321
21322    /**
21323     * Convert a geographic coordinate (longitude, latitude) into a name
21324     * (address).
21325     *
21326     * @param obj The map object.
21327     * @param lon the longitude.
21328     * @param lat the latitude.
21329     * @return name A #Elm_Map_Name handle for this coordinate.
21330     *
21331     * To get the string for this address, elm_map_name_address_get()
21332     * should be used.
21333     *
21334     * @see elm_map_utils_convert_name_into_coord() if you need the inverse.
21335     *
21336     * @ingroup Map
21337     */
21338    EAPI Elm_Map_Name         *elm_map_utils_convert_coord_into_name(const Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
21339
21340    /**
21341     * Convert a name (address) into a geographic coordinate
21342     * (longitude, latitude).
21343     *
21344     * @param obj The map object.
21345     * @param name The address.
21346     * @return name A #Elm_Map_Name handle for this address.
21347     *
21348     * To get the longitude and latitude, elm_map_name_region_get()
21349     * should be used.
21350     *
21351     * @see elm_map_utils_convert_coord_into_name() if you need the inverse.
21352     *
21353     * @ingroup Map
21354     */
21355    EAPI Elm_Map_Name         *elm_map_utils_convert_name_into_coord(const Evas_Object *obj, char *address) EINA_ARG_NONNULL(1, 2);
21356
21357    /**
21358     * Convert a pixel coordinate into a rotated pixel coordinate.
21359     *
21360     * @param obj The map object.
21361     * @param x horizontal coordinate of the point to rotate.
21362     * @param y vertical coordinate of the point to rotate.
21363     * @param cx rotation's center horizontal position.
21364     * @param cy rotation's center vertical position.
21365     * @param degree amount of degrees from 0.0 to 360.0 to rotate arount Z axis.
21366     * @param xx Pointer where to store rotated x.
21367     * @param yy Pointer where to store rotated y.
21368     *
21369     * @ingroup Map
21370     */
21371    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);
21372
21373    /**
21374     * Add a new marker to the map object.
21375     *
21376     * @param obj The map object.
21377     * @param lon The longitude of the marker.
21378     * @param lat The latitude of the marker.
21379     * @param clas The class, to use when marker @b isn't grouped to others.
21380     * @param clas_group The class group, to use when marker is grouped to others
21381     * @param data The data passed to the callbacks.
21382     *
21383     * @return The created marker or @c NULL upon failure.
21384     *
21385     * A marker will be created and shown in a specific point of the map, defined
21386     * by @p lon and @p lat.
21387     *
21388     * It will be displayed using style defined by @p class when this marker
21389     * is displayed alone (not grouped). A new class can be created with
21390     * elm_map_marker_class_new().
21391     *
21392     * If the marker is grouped to other markers, it will be displayed with
21393     * style defined by @p class_group. Markers with the same group are grouped
21394     * if they are close. A new group class can be created with
21395     * elm_map_marker_group_class_new().
21396     *
21397     * Markers created with this method can be deleted with
21398     * elm_map_marker_remove().
21399     *
21400     * A marker can have associated content to be displayed by a bubble,
21401     * when a user click over it, as well as an icon. These objects will
21402     * be fetch using class' callback functions.
21403     *
21404     * @see elm_map_marker_class_new()
21405     * @see elm_map_marker_group_class_new()
21406     * @see elm_map_marker_remove()
21407     *
21408     * @ingroup Map
21409     */
21410    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);
21411
21412    /**
21413     * Set the maximum numbers of markers' content to be displayed in a group.
21414     *
21415     * @param obj The map object.
21416     * @param max The maximum numbers of items displayed in a bubble.
21417     *
21418     * A bubble will be displayed when the user clicks over the group,
21419     * and will place the content of markers that belong to this group
21420     * inside it.
21421     *
21422     * A group can have a long list of markers, consequently the creation
21423     * of the content of the bubble can be very slow.
21424     *
21425     * In order to avoid this, a maximum number of items is displayed
21426     * in a bubble.
21427     *
21428     * By default this number is 30.
21429     *
21430     * Marker with the same group class are grouped if they are close.
21431     *
21432     * @see elm_map_marker_add()
21433     *
21434     * @ingroup Map
21435     */
21436    EAPI void                  elm_map_max_marker_per_group_set(Evas_Object *obj, int max) EINA_ARG_NONNULL(1);
21437
21438    /**
21439     * Remove a marker from the map.
21440     *
21441     * @param marker The marker to remove.
21442     *
21443     * @see elm_map_marker_add()
21444     *
21445     * @ingroup Map
21446     */
21447    EAPI void                  elm_map_marker_remove(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21448
21449    /**
21450     * Get the current coordinates of the marker.
21451     *
21452     * @param marker marker.
21453     * @param lat Pointer where to store the marker's latitude.
21454     * @param lon Pointer where to store the marker's longitude.
21455     *
21456     * These values are set when adding markers, with function
21457     * elm_map_marker_add().
21458     *
21459     * @see elm_map_marker_add()
21460     *
21461     * @ingroup Map
21462     */
21463    EAPI void                  elm_map_marker_region_get(const Elm_Map_Marker *marker, double *lon, double *lat) EINA_ARG_NONNULL(1);
21464
21465    /**
21466     * Animatedly bring in given marker to the center of the map.
21467     *
21468     * @param marker The marker to center at.
21469     *
21470     * This causes map to jump to the given @p marker's coordinates
21471     * and show it (by scrolling) in the center of the viewport, if it is not
21472     * already centered. This will use animation to do so and take a period
21473     * of time to complete.
21474     *
21475     * @see elm_map_marker_show() for a function to avoid animation.
21476     * @see elm_map_marker_region_get()
21477     *
21478     * @ingroup Map
21479     */
21480    EAPI void                  elm_map_marker_bring_in(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21481
21482    /**
21483     * Show the given marker at the center of the map, @b immediately.
21484     *
21485     * @param marker The marker to center at.
21486     *
21487     * This causes map to @b redraw its viewport's contents to the
21488     * region contining the given @p marker's coordinates, that will be
21489     * moved to the center of the map.
21490     *
21491     * @see elm_map_marker_bring_in() for a function to move with animation.
21492     * @see elm_map_markers_list_show() if more than one marker need to be
21493     * displayed.
21494     * @see elm_map_marker_region_get()
21495     *
21496     * @ingroup Map
21497     */
21498    EAPI void                  elm_map_marker_show(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21499
21500    /**
21501     * Move and zoom the map to display a list of markers.
21502     *
21503     * @param markers A list of #Elm_Map_Marker handles.
21504     *
21505     * The map will be centered on the center point of the markers in the list.
21506     * Then the map will be zoomed in order to fit the markers using the maximum
21507     * zoom which allows display of all the markers.
21508     *
21509     * @warning All the markers should belong to the same map object.
21510     *
21511     * @see elm_map_marker_show() to show a single marker.
21512     * @see elm_map_marker_bring_in()
21513     *
21514     * @ingroup Map
21515     */
21516    EAPI void                  elm_map_markers_list_show(Eina_List *markers) EINA_ARG_NONNULL(1);
21517
21518    /**
21519     * Get the Evas object returned by the ElmMapMarkerGetFunc callback
21520     *
21521     * @param marker The marker wich content should be returned.
21522     * @return Return the evas object if it exists, else @c NULL.
21523     *
21524     * To set callback function #ElmMapMarkerGetFunc for the marker class,
21525     * elm_map_marker_class_get_cb_set() should be used.
21526     *
21527     * This content is what will be inside the bubble that will be displayed
21528     * when an user clicks over the marker.
21529     *
21530     * This returns the actual Evas object used to be placed inside
21531     * the bubble. This may be @c NULL, as it may
21532     * not have been created or may have been deleted, at any time, by
21533     * the map. <b>Do not modify this object</b> (move, resize,
21534     * show, hide, etc.), as the map is controlling it. This
21535     * function is for querying, emitting custom signals or hooking
21536     * lower level callbacks for events on that object. Do not delete
21537     * this object under any circumstances.
21538     *
21539     * @ingroup Map
21540     */
21541    EAPI Evas_Object          *elm_map_marker_object_get(const Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21542
21543    /**
21544     * Update the marker
21545     *
21546     * @param marker The marker to be updated.
21547     *
21548     * If a content is set to this marker, it will call function to delete it,
21549     * #ElmMapMarkerDelFunc, and then will fetch the content again with
21550     * #ElmMapMarkerGetFunc.
21551     *
21552     * These functions are set for the marker class with
21553     * elm_map_marker_class_get_cb_set() and elm_map_marker_class_del_cb_set().
21554     *
21555     * @ingroup Map
21556     */
21557    EAPI void                  elm_map_marker_update(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21558
21559    /**
21560     * Close all the bubbles opened by the user.
21561     *
21562     * @param obj The map object.
21563     *
21564     * A bubble is displayed with a content fetched with #ElmMapMarkerGetFunc
21565     * when the user clicks on a marker.
21566     *
21567     * This functions is set for the marker class with
21568     * elm_map_marker_class_get_cb_set().
21569     *
21570     * @ingroup Map
21571     */
21572    EAPI void                  elm_map_bubbles_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
21573
21574    /**
21575     * Create a new group class.
21576     *
21577     * @param obj The map object.
21578     * @return Returns the new group class.
21579     *
21580     * Each marker must be associated to a group class. Markers in the same
21581     * group are grouped if they are close.
21582     *
21583     * The group class defines the style of the marker when a marker is grouped
21584     * to others markers. When it is alone, another class will be used.
21585     *
21586     * A group class will need to be provided when creating a marker with
21587     * elm_map_marker_add().
21588     *
21589     * Some properties and functions can be set by class, as:
21590     * - style, with elm_map_group_class_style_set()
21591     * - data - to be associated to the group class. It can be set using
21592     *   elm_map_group_class_data_set().
21593     * - min zoom to display markers, set with
21594     *   elm_map_group_class_zoom_displayed_set().
21595     * - max zoom to group markers, set using
21596     *   elm_map_group_class_zoom_grouped_set().
21597     * - visibility - set if markers will be visible or not, set with
21598     *   elm_map_group_class_hide_set().
21599     * - #ElmMapGroupIconGetFunc - used to fetch icon for markers group classes.
21600     *   It can be set using elm_map_group_class_icon_cb_set().
21601     *
21602     * @see elm_map_marker_add()
21603     * @see elm_map_group_class_style_set()
21604     * @see elm_map_group_class_data_set()
21605     * @see elm_map_group_class_zoom_displayed_set()
21606     * @see elm_map_group_class_zoom_grouped_set()
21607     * @see elm_map_group_class_hide_set()
21608     * @see elm_map_group_class_icon_cb_set()
21609     *
21610     * @ingroup Map
21611     */
21612    EAPI Elm_Map_Group_Class  *elm_map_group_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
21613
21614    /**
21615     * Set the marker's style of a group class.
21616     *
21617     * @param clas The group class.
21618     * @param style The style to be used by markers.
21619     *
21620     * Each marker must be associated to a group class, and will use the style
21621     * defined by such class when grouped to other markers.
21622     *
21623     * The following styles are provided by default theme:
21624     * @li @c radio - blue circle
21625     * @li @c radio2 - green circle
21626     * @li @c empty
21627     *
21628     * @see elm_map_group_class_new() for more details.
21629     * @see elm_map_marker_add()
21630     *
21631     * @ingroup Map
21632     */
21633    EAPI void                  elm_map_group_class_style_set(Elm_Map_Group_Class *clas, const char *style) EINA_ARG_NONNULL(1);
21634
21635    /**
21636     * Set the icon callback function of a group class.
21637     *
21638     * @param clas The group class.
21639     * @param icon_get The callback function that will return the icon.
21640     *
21641     * Each marker must be associated to a group class, and it can display a
21642     * custom icon. The function @p icon_get must return this icon.
21643     *
21644     * @see elm_map_group_class_new() for more details.
21645     * @see elm_map_marker_add()
21646     *
21647     * @ingroup Map
21648     */
21649    EAPI void                  elm_map_group_class_icon_cb_set(Elm_Map_Group_Class *clas, ElmMapGroupIconGetFunc icon_get) EINA_ARG_NONNULL(1);
21650
21651    /**
21652     * Set the data associated to the group class.
21653     *
21654     * @param clas The group class.
21655     * @param data The new user data.
21656     *
21657     * This data will be passed for callback functions, like icon get callback,
21658     * that can be set with elm_map_group_class_icon_cb_set().
21659     *
21660     * If a data was previously set, the object will lose the pointer for it,
21661     * so if needs to be freed, you must do it yourself.
21662     *
21663     * @see elm_map_group_class_new() for more details.
21664     * @see elm_map_group_class_icon_cb_set()
21665     * @see elm_map_marker_add()
21666     *
21667     * @ingroup Map
21668     */
21669    EAPI void                  elm_map_group_class_data_set(Elm_Map_Group_Class *clas, void *data) EINA_ARG_NONNULL(1);
21670
21671    /**
21672     * Set the minimum zoom from where the markers are displayed.
21673     *
21674     * @param clas The group class.
21675     * @param zoom The minimum zoom.
21676     *
21677     * Markers only will be displayed when the map is displayed at @p zoom
21678     * or bigger.
21679     *
21680     * @see elm_map_group_class_new() for more details.
21681     * @see elm_map_marker_add()
21682     *
21683     * @ingroup Map
21684     */
21685    EAPI void                  elm_map_group_class_zoom_displayed_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
21686
21687    /**
21688     * Set the zoom from where the markers are no more grouped.
21689     *
21690     * @param clas The group class.
21691     * @param zoom The maximum zoom.
21692     *
21693     * Markers only will be grouped when the map is displayed at
21694     * less than @p zoom.
21695     *
21696     * @see elm_map_group_class_new() for more details.
21697     * @see elm_map_marker_add()
21698     *
21699     * @ingroup Map
21700     */
21701    EAPI void                  elm_map_group_class_zoom_grouped_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
21702
21703    /**
21704     * Set if the markers associated to the group class @clas are hidden or not.
21705     *
21706     * @param clas The group class.
21707     * @param hide Use @c EINA_TRUE to hide markers or @c EINA_FALSE
21708     * to show them.
21709     *
21710     * If @p hide is @c EINA_TRUE the markers will be hidden, but default
21711     * is to show them.
21712     *
21713     * @ingroup Map
21714     */
21715    EAPI void                  elm_map_group_class_hide_set(Evas_Object *obj, Elm_Map_Group_Class *clas, Eina_Bool hide) EINA_ARG_NONNULL(1, 2);
21716
21717    /**
21718     * Create a new marker class.
21719     *
21720     * @param obj The map object.
21721     * @return Returns the new group class.
21722     *
21723     * Each marker must be associated to a class.
21724     *
21725     * The marker class defines the style of the marker when a marker is
21726     * displayed alone, i.e., not grouped to to others markers. When grouped
21727     * it will use group class style.
21728     *
21729     * A marker class will need to be provided when creating a marker with
21730     * elm_map_marker_add().
21731     *
21732     * Some properties and functions can be set by class, as:
21733     * - style, with elm_map_marker_class_style_set()
21734     * - #ElmMapMarkerIconGetFunc - used to fetch icon for markers classes.
21735     *   It can be set using elm_map_marker_class_icon_cb_set().
21736     * - #ElmMapMarkerGetFunc - used to fetch bubble content for marker classes.
21737     *   Set using elm_map_marker_class_get_cb_set().
21738     * - #ElmMapMarkerDelFunc - used to delete bubble content for marker classes.
21739     *   Set using elm_map_marker_class_del_cb_set().
21740     *
21741     * @see elm_map_marker_add()
21742     * @see elm_map_marker_class_style_set()
21743     * @see elm_map_marker_class_icon_cb_set()
21744     * @see elm_map_marker_class_get_cb_set()
21745     * @see elm_map_marker_class_del_cb_set()
21746     *
21747     * @ingroup Map
21748     */
21749    EAPI Elm_Map_Marker_Class *elm_map_marker_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
21750
21751    /**
21752     * Set the marker's style of a marker class.
21753     *
21754     * @param clas The marker class.
21755     * @param style The style to be used by markers.
21756     *
21757     * Each marker must be associated to a marker class, and will use the style
21758     * defined by such class when alone, i.e., @b not grouped to other markers.
21759     *
21760     * The following styles are provided by default theme:
21761     * @li @c radio
21762     * @li @c radio2
21763     * @li @c empty
21764     *
21765     * @see elm_map_marker_class_new() for more details.
21766     * @see elm_map_marker_add()
21767     *
21768     * @ingroup Map
21769     */
21770    EAPI void                  elm_map_marker_class_style_set(Elm_Map_Marker_Class *clas, const char *style) EINA_ARG_NONNULL(1);
21771
21772    /**
21773     * Set the icon callback function of a marker class.
21774     *
21775     * @param clas The marker class.
21776     * @param icon_get The callback function that will return the icon.
21777     *
21778     * Each marker must be associated to a marker class, and it can display a
21779     * custom icon. The function @p icon_get must return this icon.
21780     *
21781     * @see elm_map_marker_class_new() for more details.
21782     * @see elm_map_marker_add()
21783     *
21784     * @ingroup Map
21785     */
21786    EAPI void                  elm_map_marker_class_icon_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerIconGetFunc icon_get) EINA_ARG_NONNULL(1);
21787
21788    /**
21789     * Set the bubble content callback function of a marker class.
21790     *
21791     * @param clas The marker class.
21792     * @param get The callback function that will return the content.
21793     *
21794     * Each marker must be associated to a marker class, and it can display a
21795     * a content on a bubble that opens when the user click over the marker.
21796     * The function @p get must return this content object.
21797     *
21798     * If this content will need to be deleted, elm_map_marker_class_del_cb_set()
21799     * can be used.
21800     *
21801     * @see elm_map_marker_class_new() for more details.
21802     * @see elm_map_marker_class_del_cb_set()
21803     * @see elm_map_marker_add()
21804     *
21805     * @ingroup Map
21806     */
21807    EAPI void                  elm_map_marker_class_get_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerGetFunc get) EINA_ARG_NONNULL(1);
21808
21809    /**
21810     * Set the callback function used to delete bubble content of a marker class.
21811     *
21812     * @param clas The marker class.
21813     * @param del The callback function that will delete the content.
21814     *
21815     * Each marker must be associated to a marker class, and it can display a
21816     * a content on a bubble that opens when the user click over the marker.
21817     * The function to return such content can be set with
21818     * elm_map_marker_class_get_cb_set().
21819     *
21820     * If this content must be freed, a callback function need to be
21821     * set for that task with this function.
21822     *
21823     * If this callback is defined it will have to delete (or not) the
21824     * object inside, but if the callback is not defined the object will be
21825     * destroyed with evas_object_del().
21826     *
21827     * @see elm_map_marker_class_new() for more details.
21828     * @see elm_map_marker_class_get_cb_set()
21829     * @see elm_map_marker_add()
21830     *
21831     * @ingroup Map
21832     */
21833    EAPI void                  elm_map_marker_class_del_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerDelFunc del) EINA_ARG_NONNULL(1);
21834
21835    /**
21836     * Get the list of available sources.
21837     *
21838     * @param obj The map object.
21839     * @return The source names list.
21840     *
21841     * It will provide a list with all available sources, that can be set as
21842     * current source with elm_map_source_name_set(), or get with
21843     * elm_map_source_name_get().
21844     *
21845     * Available sources:
21846     * @li "Mapnik"
21847     * @li "Osmarender"
21848     * @li "CycleMap"
21849     * @li "Maplint"
21850     *
21851     * @see elm_map_source_name_set() for more details.
21852     * @see elm_map_source_name_get()
21853     *
21854     * @ingroup Map
21855     */
21856    EAPI const char          **elm_map_source_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21857
21858    /**
21859     * Set the source of the map.
21860     *
21861     * @param obj The map object.
21862     * @param source The source to be used.
21863     *
21864     * Map widget retrieves images that composes the map from a web service.
21865     * This web service can be set with this method.
21866     *
21867     * A different service can return a different maps with different
21868     * information and it can use different zoom values.
21869     *
21870     * The @p source_name need to match one of the names provided by
21871     * elm_map_source_names_get().
21872     *
21873     * The current source can be get using elm_map_source_name_get().
21874     *
21875     * @see elm_map_source_names_get()
21876     * @see elm_map_source_name_get()
21877     *
21878     *
21879     * @ingroup Map
21880     */
21881    EAPI void                  elm_map_source_name_set(Evas_Object *obj, const char *source_name) EINA_ARG_NONNULL(1);
21882
21883    /**
21884     * Get the name of currently used source.
21885     *
21886     * @param obj The map object.
21887     * @return Returns the name of the source in use.
21888     *
21889     * @see elm_map_source_name_set() for more details.
21890     *
21891     * @ingroup Map
21892     */
21893    EAPI const char           *elm_map_source_name_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21894
21895    /**
21896     * Set the source of the route service to be used by the map.
21897     *
21898     * @param obj The map object.
21899     * @param source The route service to be used, being it one of
21900     * #ELM_MAP_ROUTE_SOURCE_YOURS (default), #ELM_MAP_ROUTE_SOURCE_MONAV,
21901     * and #ELM_MAP_ROUTE_SOURCE_ORS.
21902     *
21903     * Each one has its own algorithm, so the route retrieved may
21904     * differ depending on the source route. Now, only the default is working.
21905     *
21906     * #ELM_MAP_ROUTE_SOURCE_YOURS is the routing service provided at
21907     * http://www.yournavigation.org/.
21908     *
21909     * #ELM_MAP_ROUTE_SOURCE_MONAV, offers exact routing without heuristic
21910     * assumptions. Its routing core is based on Contraction Hierarchies.
21911     *
21912     * #ELM_MAP_ROUTE_SOURCE_ORS, is provided at http://www.openrouteservice.org/
21913     *
21914     * @see elm_map_route_source_get().
21915     *
21916     * @ingroup Map
21917     */
21918    EAPI void                  elm_map_route_source_set(Evas_Object *obj, Elm_Map_Route_Sources source) EINA_ARG_NONNULL(1);
21919
21920    /**
21921     * Get the current route source.
21922     *
21923     * @param obj The map object.
21924     * @return The source of the route service used by the map.
21925     *
21926     * @see elm_map_route_source_set() for details.
21927     *
21928     * @ingroup Map
21929     */
21930    EAPI Elm_Map_Route_Sources elm_map_route_source_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21931
21932    /**
21933     * Set the minimum zoom of the source.
21934     *
21935     * @param obj The map object.
21936     * @param zoom New minimum zoom value to be used.
21937     *
21938     * By default, it's 0.
21939     *
21940     * @ingroup Map
21941     */
21942    EAPI void                  elm_map_source_zoom_min_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
21943
21944    /**
21945     * Get the minimum zoom of the source.
21946     *
21947     * @param obj The map object.
21948     * @return Returns the minimum zoom of the source.
21949     *
21950     * @see elm_map_source_zoom_min_set() for details.
21951     *
21952     * @ingroup Map
21953     */
21954    EAPI int                   elm_map_source_zoom_min_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21955
21956    /**
21957     * Set the maximum zoom of the source.
21958     *
21959     * @param obj The map object.
21960     * @param zoom New maximum zoom value to be used.
21961     *
21962     * By default, it's 18.
21963     *
21964     * @ingroup Map
21965     */
21966    EAPI void                  elm_map_source_zoom_max_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
21967
21968    /**
21969     * Get the maximum zoom of the source.
21970     *
21971     * @param obj The map object.
21972     * @return Returns the maximum zoom of the source.
21973     *
21974     * @see elm_map_source_zoom_min_set() for details.
21975     *
21976     * @ingroup Map
21977     */
21978    EAPI int                   elm_map_source_zoom_max_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21979
21980    /**
21981     * Set the user agent used by the map object to access routing services.
21982     *
21983     * @param obj The map object.
21984     * @param user_agent The user agent to be used by the map.
21985     *
21986     * User agent is a client application implementing a network protocol used
21987     * in communications within a client–server distributed computing system
21988     *
21989     * The @p user_agent identification string will transmitted in a header
21990     * field @c User-Agent.
21991     *
21992     * @see elm_map_user_agent_get()
21993     *
21994     * @ingroup Map
21995     */
21996    EAPI void                  elm_map_user_agent_set(Evas_Object *obj, const char *user_agent) EINA_ARG_NONNULL(1, 2);
21997
21998    /**
21999     * Get the user agent used by the map object.
22000     *
22001     * @param obj The map object.
22002     * @return The user agent identification string used by the map.
22003     *
22004     * @see elm_map_user_agent_set() for details.
22005     *
22006     * @ingroup Map
22007     */
22008    EAPI const char           *elm_map_user_agent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22009
22010    /**
22011     * Add a new route to the map object.
22012     *
22013     * @param obj The map object.
22014     * @param type The type of transport to be considered when tracing a route.
22015     * @param method The routing method, what should be priorized.
22016     * @param flon The start longitude.
22017     * @param flat The start latitude.
22018     * @param tlon The destination longitude.
22019     * @param tlat The destination latitude.
22020     *
22021     * @return The created route or @c NULL upon failure.
22022     *
22023     * A route will be traced by point on coordinates (@p flat, @p flon)
22024     * to point on coordinates (@p tlat, @p tlon), using the route service
22025     * set with elm_map_route_source_set().
22026     *
22027     * It will take @p type on consideration to define the route,
22028     * depending if the user will be walking or driving, the route may vary.
22029     * One of #ELM_MAP_ROUTE_TYPE_MOTOCAR, #ELM_MAP_ROUTE_TYPE_BICYCLE, or
22030     * #ELM_MAP_ROUTE_TYPE_FOOT need to be used.
22031     *
22032     * Another parameter is what the route should priorize, the minor distance
22033     * or the less time to be spend on the route. So @p method should be one
22034     * of #ELM_MAP_ROUTE_METHOD_SHORTEST or #ELM_MAP_ROUTE_METHOD_FASTEST.
22035     *
22036     * Routes created with this method can be deleted with
22037     * elm_map_route_remove(), colored with elm_map_route_color_set(),
22038     * and distance can be get with elm_map_route_distance_get().
22039     *
22040     * @see elm_map_route_remove()
22041     * @see elm_map_route_color_set()
22042     * @see elm_map_route_distance_get()
22043     * @see elm_map_route_source_set()
22044     *
22045     * @ingroup Map
22046     */
22047    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);
22048
22049    /**
22050     * Remove a route from the map.
22051     *
22052     * @param route The route to remove.
22053     *
22054     * @see elm_map_route_add()
22055     *
22056     * @ingroup Map
22057     */
22058    EAPI void                  elm_map_route_remove(Elm_Map_Route *route) EINA_ARG_NONNULL(1);
22059
22060    /**
22061     * Set the route color.
22062     *
22063     * @param route The route object.
22064     * @param r Red channel value, from 0 to 255.
22065     * @param g Green channel value, from 0 to 255.
22066     * @param b Blue channel value, from 0 to 255.
22067     * @param a Alpha channel value, from 0 to 255.
22068     *
22069     * It uses an additive color model, so each color channel represents
22070     * how much of each primary colors must to be used. 0 represents
22071     * ausence of this color, so if all of the three are set to 0,
22072     * the color will be black.
22073     *
22074     * These component values should be integers in the range 0 to 255,
22075     * (single 8-bit byte).
22076     *
22077     * This sets the color used for the route. By default, it is set to
22078     * solid red (r = 255, g = 0, b = 0, a = 255).
22079     *
22080     * For alpha channel, 0 represents completely transparent, and 255, opaque.
22081     *
22082     * @see elm_map_route_color_get()
22083     *
22084     * @ingroup Map
22085     */
22086    EAPI void                  elm_map_route_color_set(Elm_Map_Route *route, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
22087
22088    /**
22089     * Get the route color.
22090     *
22091     * @param route The route object.
22092     * @param r Pointer where to store the red channel value.
22093     * @param g Pointer where to store the green channel value.
22094     * @param b Pointer where to store the blue channel value.
22095     * @param a Pointer where to store the alpha channel value.
22096     *
22097     * @see elm_map_route_color_set() for details.
22098     *
22099     * @ingroup Map
22100     */
22101    EAPI void                  elm_map_route_color_get(const Elm_Map_Route *route, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
22102
22103    /**
22104     * Get the route distance in kilometers.
22105     *
22106     * @param route The route object.
22107     * @return The distance of route (unit : km).
22108     *
22109     * @ingroup Map
22110     */
22111    EAPI double                elm_map_route_distance_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
22112
22113    /**
22114     * Get the information of route nodes.
22115     *
22116     * @param route The route object.
22117     * @return Returns a string with the nodes of route.
22118     *
22119     * @ingroup Map
22120     */
22121    EAPI const char           *elm_map_route_node_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
22122
22123    /**
22124     * Get the information of route waypoint.
22125     *
22126     * @param route the route object.
22127     * @return Returns a string with information about waypoint of route.
22128     *
22129     * @ingroup Map
22130     */
22131    EAPI const char           *elm_map_route_waypoint_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
22132
22133    /**
22134     * Get the address of the name.
22135     *
22136     * @param name The name handle.
22137     * @return Returns the address string of @p name.
22138     *
22139     * This gets the coordinates of the @p name, created with one of the
22140     * conversion functions.
22141     *
22142     * @see elm_map_utils_convert_name_into_coord()
22143     * @see elm_map_utils_convert_coord_into_name()
22144     *
22145     * @ingroup Map
22146     */
22147    EAPI const char           *elm_map_name_address_get(const Elm_Map_Name *name) EINA_ARG_NONNULL(1);
22148
22149    /**
22150     * Get the current coordinates of the name.
22151     *
22152     * @param name The name handle.
22153     * @param lat Pointer where to store the latitude.
22154     * @param lon Pointer where to store The longitude.
22155     *
22156     * This gets the coordinates of the @p name, created with one of the
22157     * conversion functions.
22158     *
22159     * @see elm_map_utils_convert_name_into_coord()
22160     * @see elm_map_utils_convert_coord_into_name()
22161     *
22162     * @ingroup Map
22163     */
22164    EAPI void                  elm_map_name_region_get(const Elm_Map_Name *name, double *lon, double *lat) EINA_ARG_NONNULL(1);
22165
22166    /**
22167     * Remove a name from the map.
22168     *
22169     * @param name The name to remove.
22170     *
22171     * Basically the struct handled by @p name will be freed, so convertions
22172     * between address and coordinates will be lost.
22173     *
22174     * @see elm_map_utils_convert_name_into_coord()
22175     * @see elm_map_utils_convert_coord_into_name()
22176     *
22177     * @ingroup Map
22178     */
22179    EAPI void                  elm_map_name_remove(Elm_Map_Name *name) EINA_ARG_NONNULL(1);
22180
22181    /**
22182     * Rotate the map.
22183     *
22184     * @param obj The map object.
22185     * @param degree Angle from 0.0 to 360.0 to rotate arount Z axis.
22186     * @param cx Rotation's center horizontal position.
22187     * @param cy Rotation's center vertical position.
22188     *
22189     * @see elm_map_rotate_get()
22190     *
22191     * @ingroup Map
22192     */
22193    EAPI void                  elm_map_rotate_set(Evas_Object *obj, double degree, Evas_Coord cx, Evas_Coord cy) EINA_ARG_NONNULL(1);
22194
22195    /**
22196     * Get the rotate degree of the map
22197     *
22198     * @param obj The map object
22199     * @param degree Pointer where to store degrees from 0.0 to 360.0
22200     * to rotate arount Z axis.
22201     * @param cx Pointer where to store rotation's center horizontal position.
22202     * @param cy Pointer where to store rotation's center vertical position.
22203     *
22204     * @see elm_map_rotate_set() to set map rotation.
22205     *
22206     * @ingroup Map
22207     */
22208    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);
22209
22210    /**
22211     * Enable or disable mouse wheel to be used to zoom in / out the map.
22212     *
22213     * @param obj The map object.
22214     * @param disabled Use @c EINA_TRUE to disable mouse wheel or @c EINA_FALSE
22215     * to enable it.
22216     *
22217     * Mouse wheel can be used for the user to zoom in or zoom out the map.
22218     *
22219     * It's disabled by default.
22220     *
22221     * @see elm_map_wheel_disabled_get()
22222     *
22223     * @ingroup Map
22224     */
22225    EAPI void                  elm_map_wheel_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
22226
22227    /**
22228     * Get a value whether mouse wheel is enabled or not.
22229     *
22230     * @param obj The map object.
22231     * @return @c EINA_TRUE means map is disabled. @c EINA_FALSE indicates
22232     * it is enabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
22233     *
22234     * Mouse wheel can be used for the user to zoom in or zoom out the map.
22235     *
22236     * @see elm_map_wheel_disabled_set() for details.
22237     *
22238     * @ingroup Map
22239     */
22240    EAPI Eina_Bool             elm_map_wheel_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22241
22242 #ifdef ELM_EMAP
22243    /**
22244     * Add a track on the map
22245     *
22246     * @param obj The map object.
22247     * @param emap The emap route object.
22248     * @return The route object. This is an elm object of type Route.
22249     *
22250     * @see elm_route_add() for details.
22251     *
22252     * @ingroup Map
22253     */
22254    EAPI Evas_Object          *elm_map_track_add(Evas_Object *obj, EMap_Route *emap) EINA_ARG_NONNULL(1);
22255 #endif
22256
22257    /**
22258     * Remove a track from the map
22259     *
22260     * @param obj The map object.
22261     * @param route The track to remove.
22262     *
22263     * @ingroup Map
22264     */
22265    EAPI void                  elm_map_track_remove(Evas_Object *obj, Evas_Object *route) EINA_ARG_NONNULL(1);
22266
22267    /**
22268     * @}
22269     */
22270
22271    /* Route */
22272    EAPI Evas_Object *elm_route_add(Evas_Object *parent);
22273 #ifdef ELM_EMAP
22274    EAPI void elm_route_emap_set(Evas_Object *obj, EMap_Route *emap);
22275 #endif
22276    EAPI double elm_route_lon_min_get(Evas_Object *obj);
22277    EAPI double elm_route_lat_min_get(Evas_Object *obj);
22278    EAPI double elm_route_lon_max_get(Evas_Object *obj);
22279    EAPI double elm_route_lat_max_get(Evas_Object *obj);
22280
22281
22282    /**
22283     * @defgroup Panel Panel
22284     *
22285     * @image html img/widget/panel/preview-00.png
22286     * @image latex img/widget/panel/preview-00.eps
22287     *
22288     * @brief A panel is a type of animated container that contains subobjects.
22289     * It can be expanded or contracted by clicking the button on it's edge.
22290     *
22291     * Orientations are as follows:
22292     * @li ELM_PANEL_ORIENT_TOP
22293     * @li ELM_PANEL_ORIENT_LEFT
22294     * @li ELM_PANEL_ORIENT_RIGHT
22295     *
22296     * @ref tutorial_panel shows one way to use this widget.
22297     * @{
22298     */
22299    typedef enum _Elm_Panel_Orient
22300      {
22301         ELM_PANEL_ORIENT_TOP, /**< Panel (dis)appears from the top */
22302         ELM_PANEL_ORIENT_BOTTOM, /**< Not implemented */
22303         ELM_PANEL_ORIENT_LEFT, /**< Panel (dis)appears from the left */
22304         ELM_PANEL_ORIENT_RIGHT, /**< Panel (dis)appears from the right */
22305      } Elm_Panel_Orient;
22306    /**
22307     * @brief Adds a panel object
22308     *
22309     * @param parent The parent object
22310     *
22311     * @return The panel object, or NULL on failure
22312     */
22313    EAPI Evas_Object          *elm_panel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22314    /**
22315     * @brief Sets the orientation of the panel
22316     *
22317     * @param parent The parent object
22318     * @param orient The panel orientation. Can be one of the following:
22319     * @li ELM_PANEL_ORIENT_TOP
22320     * @li ELM_PANEL_ORIENT_LEFT
22321     * @li ELM_PANEL_ORIENT_RIGHT
22322     *
22323     * Sets from where the panel will (dis)appear.
22324     */
22325    EAPI void                  elm_panel_orient_set(Evas_Object *obj, Elm_Panel_Orient orient) EINA_ARG_NONNULL(1);
22326    /**
22327     * @brief Get the orientation of the panel.
22328     *
22329     * @param obj The panel object
22330     * @return The Elm_Panel_Orient, or ELM_PANEL_ORIENT_LEFT on failure.
22331     */
22332    EAPI Elm_Panel_Orient      elm_panel_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22333    /**
22334     * @brief Set the content of the panel.
22335     *
22336     * @param obj The panel object
22337     * @param content The panel content
22338     *
22339     * Once the content object is set, a previously set one will be deleted.
22340     * If you want to keep that old content object, use the
22341     * elm_panel_content_unset() function.
22342     */
22343    EAPI void                  elm_panel_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22344    /**
22345     * @brief Get the content of the panel.
22346     *
22347     * @param obj The panel object
22348     * @return The content that is being used
22349     *
22350     * Return the content object which is set for this widget.
22351     *
22352     * @see elm_panel_content_set()
22353     */
22354    EAPI Evas_Object          *elm_panel_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22355    /**
22356     * @brief Unset the content of the panel.
22357     *
22358     * @param obj The panel object
22359     * @return The content that was being used
22360     *
22361     * Unparent and return the content object which was set for this widget.
22362     *
22363     * @see elm_panel_content_set()
22364     */
22365    EAPI Evas_Object          *elm_panel_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22366    /**
22367     * @brief Set the state of the panel.
22368     *
22369     * @param obj The panel object
22370     * @param hidden If true, the panel will run the animation to contract
22371     */
22372    EAPI void                  elm_panel_hidden_set(Evas_Object *obj, Eina_Bool hidden) EINA_ARG_NONNULL(1);
22373    /**
22374     * @brief Get the state of the panel.
22375     *
22376     * @param obj The panel object
22377     * @param hidden If true, the panel is in the "hide" state
22378     */
22379    EAPI Eina_Bool             elm_panel_hidden_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22380    /**
22381     * @brief Toggle the hidden state of the panel from code
22382     *
22383     * @param obj The panel object
22384     */
22385    EAPI void                  elm_panel_toggle(Evas_Object *obj) EINA_ARG_NONNULL(1);
22386    /**
22387     * @}
22388     */
22389
22390    /**
22391     * @defgroup Panes Panes
22392     * @ingroup Elementary
22393     *
22394     * @image html img/widget/panes/preview-00.png
22395     * @image latex img/widget/panes/preview-00.eps width=\textwidth
22396     *
22397     * @image html img/panes.png
22398     * @image latex img/panes.eps width=\textwidth
22399     *
22400     * The panes adds a dragable bar between two contents. When dragged
22401     * this bar will resize contents size.
22402     *
22403     * Panes can be displayed vertically or horizontally, and contents
22404     * size proportion can be customized (homogeneous by default).
22405     *
22406     * Smart callbacks one can listen to:
22407     * - "press" - The panes has been pressed (button wasn't released yet).
22408     * - "unpressed" - The panes was released after being pressed.
22409     * - "clicked" - The panes has been clicked>
22410     * - "clicked,double" - The panes has been double clicked
22411     *
22412     * Available styles for it:
22413     * - @c "default"
22414     *
22415     * Here is an example on its usage:
22416     * @li @ref panes_example
22417     */
22418
22419    /**
22420     * @addtogroup Panes
22421     * @{
22422     */
22423
22424    /**
22425     * Add a new panes widget to the given parent Elementary
22426     * (container) object.
22427     *
22428     * @param parent The parent object.
22429     * @return a new panes widget handle or @c NULL, on errors.
22430     *
22431     * This function inserts a new panes widget on the canvas.
22432     *
22433     * @ingroup Panes
22434     */
22435    EAPI Evas_Object          *elm_panes_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22436
22437    /**
22438     * Set the left content of the panes widget.
22439     *
22440     * @param obj The panes object.
22441     * @param content The new left content object.
22442     *
22443     * Once the content object is set, a previously set one will be deleted.
22444     * If you want to keep that old content object, use the
22445     * elm_panes_content_left_unset() function.
22446     *
22447     * If panes is displayed vertically, left content will be displayed at
22448     * top.
22449     *
22450     * @see elm_panes_content_left_get()
22451     * @see elm_panes_content_right_set() to set content on the other side.
22452     *
22453     * @ingroup Panes
22454     */
22455    EAPI void                  elm_panes_content_left_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22456
22457    /**
22458     * Set the right content of the panes widget.
22459     *
22460     * @param obj The panes object.
22461     * @param content The new right content object.
22462     *
22463     * Once the content object is set, a previously set one will be deleted.
22464     * If you want to keep that old content object, use the
22465     * elm_panes_content_right_unset() function.
22466     *
22467     * If panes is displayed vertically, left content will be displayed at
22468     * bottom.
22469     *
22470     * @see elm_panes_content_right_get()
22471     * @see elm_panes_content_left_set() to set content on the other side.
22472     *
22473     * @ingroup Panes
22474     */
22475    EAPI void                  elm_panes_content_right_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22476
22477    /**
22478     * Get the left content of the panes.
22479     *
22480     * @param obj The panes object.
22481     * @return The left content object that is being used.
22482     *
22483     * Return the left content object which is set for this widget.
22484     *
22485     * @see elm_panes_content_left_set() for details.
22486     *
22487     * @ingroup Panes
22488     */
22489    EAPI Evas_Object          *elm_panes_content_left_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22490
22491    /**
22492     * Get the right content of the panes.
22493     *
22494     * @param obj The panes object
22495     * @return The right content object that is being used
22496     *
22497     * Return the right content object which is set for this widget.
22498     *
22499     * @see elm_panes_content_right_set() for details.
22500     *
22501     * @ingroup Panes
22502     */
22503    EAPI Evas_Object          *elm_panes_content_right_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22504
22505    /**
22506     * Unset the left content used for the panes.
22507     *
22508     * @param obj The panes object.
22509     * @return The left content object that was being used.
22510     *
22511     * Unparent and return the left content object which was set for this widget.
22512     *
22513     * @see elm_panes_content_left_set() for details.
22514     * @see elm_panes_content_left_get().
22515     *
22516     * @ingroup Panes
22517     */
22518    EAPI Evas_Object          *elm_panes_content_left_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22519
22520    /**
22521     * Unset the right content used for the panes.
22522     *
22523     * @param obj The panes object.
22524     * @return The right content object that was being used.
22525     *
22526     * Unparent and return the right content object which was set for this
22527     * widget.
22528     *
22529     * @see elm_panes_content_right_set() for details.
22530     * @see elm_panes_content_right_get().
22531     *
22532     * @ingroup Panes
22533     */
22534    EAPI Evas_Object          *elm_panes_content_right_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22535
22536    /**
22537     * Get the size proportion of panes widget's left side.
22538     *
22539     * @param obj The panes object.
22540     * @return float value between 0.0 and 1.0 representing size proportion
22541     * of left side.
22542     *
22543     * @see elm_panes_content_left_size_set() for more details.
22544     *
22545     * @ingroup Panes
22546     */
22547    EAPI double                elm_panes_content_left_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22548
22549    /**
22550     * Set the size proportion of panes widget's left side.
22551     *
22552     * @param obj The panes object.
22553     * @param size Value between 0.0 and 1.0 representing size proportion
22554     * of left side.
22555     *
22556     * By default it's homogeneous, i.e., both sides have the same size.
22557     *
22558     * If something different is required, it can be set with this function.
22559     * For example, if the left content should be displayed over
22560     * 75% of the panes size, @p size should be passed as @c 0.75.
22561     * This way, right content will be resized to 25% of panes size.
22562     *
22563     * If displayed vertically, left content is displayed at top, and
22564     * right content at bottom.
22565     *
22566     * @note This proportion will change when user drags the panes bar.
22567     *
22568     * @see elm_panes_content_left_size_get()
22569     *
22570     * @ingroup Panes
22571     */
22572    EAPI void                  elm_panes_content_left_size_set(Evas_Object *obj, double size) EINA_ARG_NONNULL(1);
22573
22574   /**
22575    * Set the orientation of a given panes widget.
22576    *
22577    * @param obj The panes object.
22578    * @param horizontal Use @c EINA_TRUE to make @p obj to be
22579    * @b horizontal, @c EINA_FALSE to make it @b vertical.
22580    *
22581    * Use this function to change how your panes is to be
22582    * disposed: vertically or horizontally.
22583    *
22584    * By default it's displayed horizontally.
22585    *
22586    * @see elm_panes_horizontal_get()
22587    *
22588    * @ingroup Panes
22589    */
22590    EAPI void                  elm_panes_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
22591
22592    /**
22593     * Retrieve the orientation of a given panes widget.
22594     *
22595     * @param obj The panes object.
22596     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
22597     * @c EINA_FALSE if it's @b vertical (and on errors).
22598     *
22599     * @see elm_panes_horizontal_set() for more details.
22600     *
22601     * @ingroup Panes
22602     */
22603    EAPI Eina_Bool             elm_panes_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22604
22605    /**
22606     * @}
22607     */
22608
22609    /**
22610     * @defgroup Flip Flip
22611     *
22612     * @image html img/widget/flip/preview-00.png
22613     * @image latex img/widget/flip/preview-00.eps
22614     *
22615     * This widget holds 2 content objects(Evas_Object): one on the front and one
22616     * on the back. It allows you to flip from front to back and vice-versa using
22617     * various animations.
22618     *
22619     * If either the front or back contents are not set the flip will treat that
22620     * as transparent. So if you wore to set the front content but not the back,
22621     * and then call elm_flip_go() you would see whatever is below the flip.
22622     *
22623     * For a list of supported animations see elm_flip_go().
22624     *
22625     * Signals that you can add callbacks for are:
22626     * "animate,begin" - when a flip animation was started
22627     * "animate,done" - when a flip animation is finished
22628     *
22629     * @ref tutorial_flip show how to use most of the API.
22630     *
22631     * @{
22632     */
22633    typedef enum _Elm_Flip_Mode
22634      {
22635         ELM_FLIP_ROTATE_Y_CENTER_AXIS,
22636         ELM_FLIP_ROTATE_X_CENTER_AXIS,
22637         ELM_FLIP_ROTATE_XZ_CENTER_AXIS,
22638         ELM_FLIP_ROTATE_YZ_CENTER_AXIS,
22639         ELM_FLIP_CUBE_LEFT,
22640         ELM_FLIP_CUBE_RIGHT,
22641         ELM_FLIP_CUBE_UP,
22642         ELM_FLIP_CUBE_DOWN,
22643         ELM_FLIP_PAGE_LEFT,
22644         ELM_FLIP_PAGE_RIGHT,
22645         ELM_FLIP_PAGE_UP,
22646         ELM_FLIP_PAGE_DOWN
22647      } Elm_Flip_Mode;
22648    typedef enum _Elm_Flip_Interaction
22649      {
22650         ELM_FLIP_INTERACTION_NONE,
22651         ELM_FLIP_INTERACTION_ROTATE,
22652         ELM_FLIP_INTERACTION_CUBE,
22653         ELM_FLIP_INTERACTION_PAGE
22654      } Elm_Flip_Interaction;
22655    typedef enum _Elm_Flip_Direction
22656      {
22657         ELM_FLIP_DIRECTION_UP, /**< Allows interaction with the top of the widget */
22658         ELM_FLIP_DIRECTION_DOWN, /**< Allows interaction with the bottom of the widget */
22659         ELM_FLIP_DIRECTION_LEFT, /**< Allows interaction with the left portion of the widget */
22660         ELM_FLIP_DIRECTION_RIGHT /**< Allows interaction with the right portion of the widget */
22661      } Elm_Flip_Direction;
22662    /**
22663     * @brief Add a new flip to the parent
22664     *
22665     * @param parent The parent object
22666     * @return The new object or NULL if it cannot be created
22667     */
22668    EAPI Evas_Object *elm_flip_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22669    /**
22670     * @brief Set the front content of the flip widget.
22671     *
22672     * @param obj The flip object
22673     * @param content The new front content object
22674     *
22675     * Once the content object is set, a previously set one will be deleted.
22676     * If you want to keep that old content object, use the
22677     * elm_flip_content_front_unset() function.
22678     */
22679    EAPI void         elm_flip_content_front_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22680    /**
22681     * @brief Set the back content of the flip widget.
22682     *
22683     * @param obj The flip object
22684     * @param content The new back content object
22685     *
22686     * Once the content object is set, a previously set one will be deleted.
22687     * If you want to keep that old content object, use the
22688     * elm_flip_content_back_unset() function.
22689     */
22690    EAPI void         elm_flip_content_back_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22691    /**
22692     * @brief Get the front content used for the flip
22693     *
22694     * @param obj The flip object
22695     * @return The front content object that is being used
22696     *
22697     * Return the front content object which is set for this widget.
22698     */
22699    EAPI Evas_Object *elm_flip_content_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22700    /**
22701     * @brief Get the back content used for the flip
22702     *
22703     * @param obj The flip object
22704     * @return The back content object that is being used
22705     *
22706     * Return the back content object which is set for this widget.
22707     */
22708    EAPI Evas_Object *elm_flip_content_back_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22709    /**
22710     * @brief Unset the front content used for the flip
22711     *
22712     * @param obj The flip object
22713     * @return The front content object that was being used
22714     *
22715     * Unparent and return the front content object which was set for this widget.
22716     */
22717    EAPI Evas_Object *elm_flip_content_front_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22718    /**
22719     * @brief Unset the back content used for the flip
22720     *
22721     * @param obj The flip object
22722     * @return The back content object that was being used
22723     *
22724     * Unparent and return the back content object which was set for this widget.
22725     */
22726    EAPI Evas_Object *elm_flip_content_back_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22727    /**
22728     * @brief Get flip front visibility state
22729     *
22730     * @param obj The flip objct
22731     * @return EINA_TRUE if front front is showing, EINA_FALSE if the back is
22732     * showing.
22733     */
22734    EAPI Eina_Bool    elm_flip_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22735    /**
22736     * @brief Set flip perspective
22737     *
22738     * @param obj The flip object
22739     * @param foc The coordinate to set the focus on
22740     * @param x The X coordinate
22741     * @param y The Y coordinate
22742     *
22743     * @warning This function currently does nothing.
22744     */
22745    EAPI void         elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
22746    /**
22747     * @brief Runs the flip animation
22748     *
22749     * @param obj The flip object
22750     * @param mode The mode type
22751     *
22752     * Flips the front and back contents using the @p mode animation. This
22753     * efectively hides the currently visible content and shows the hidden one.
22754     *
22755     * There a number of possible animations to use for the flipping:
22756     * @li ELM_FLIP_ROTATE_X_CENTER_AXIS - Rotate the currently visible content
22757     * around a horizontal axis in the middle of its height, the other content
22758     * is shown as the other side of the flip.
22759     * @li ELM_FLIP_ROTATE_Y_CENTER_AXIS - Rotate the currently visible content
22760     * around a vertical axis in the middle of its width, the other content is
22761     * shown as the other side of the flip.
22762     * @li ELM_FLIP_ROTATE_XZ_CENTER_AXIS - Rotate the currently visible content
22763     * around a diagonal axis in the middle of its width, the other content is
22764     * shown as the other side of the flip.
22765     * @li ELM_FLIP_ROTATE_YZ_CENTER_AXIS - Rotate the currently visible content
22766     * around a diagonal axis in the middle of its height, the other content is
22767     * shown as the other side of the flip.
22768     * @li ELM_FLIP_CUBE_LEFT - Rotate the currently visible content to the left
22769     * as if the flip was a cube, the other content is show as the right face of
22770     * the cube.
22771     * @li ELM_FLIP_CUBE_RIGHT - Rotate the currently visible content to the
22772     * right as if the flip was a cube, the other content is show as the left
22773     * face of the cube.
22774     * @li ELM_FLIP_CUBE_UP - Rotate the currently visible content up as if the
22775     * flip was a cube, the other content is show as the bottom face of the cube.
22776     * @li ELM_FLIP_CUBE_DOWN - Rotate the currently visible content down as if
22777     * the flip was a cube, the other content is show as the upper face of the
22778     * cube.
22779     * @li ELM_FLIP_PAGE_LEFT - Move the currently visible content to the left as
22780     * if the flip was a book, the other content is shown as the page below that.
22781     * @li ELM_FLIP_PAGE_RIGHT - Move the currently visible content to the right
22782     * as if the flip was a book, the other content is shown as the page below
22783     * that.
22784     * @li ELM_FLIP_PAGE_UP - Move the currently visible content up as if the
22785     * flip was a book, the other content is shown as the page below that.
22786     * @li ELM_FLIP_PAGE_DOWN - Move the currently visible content down as if the
22787     * flip was a book, the other content is shown as the page below that.
22788     *
22789     * @image html elm_flip.png
22790     * @image latex elm_flip.eps width=\textwidth
22791     */
22792    EAPI void         elm_flip_go(Evas_Object *obj, Elm_Flip_Mode mode) EINA_ARG_NONNULL(1);
22793    /**
22794     * @brief Set the interactive flip mode
22795     *
22796     * @param obj The flip object
22797     * @param mode The interactive flip mode to use
22798     *
22799     * This sets if the flip should be interactive (allow user to click and
22800     * drag a side of the flip to reveal the back page and cause it to flip).
22801     * By default a flip is not interactive. You may also need to set which
22802     * sides of the flip are "active" for flipping and how much space they use
22803     * (a minimum of a finger size) with elm_flip_interacton_direction_enabled_set()
22804     * and elm_flip_interacton_direction_hitsize_set()
22805     *
22806     * The four avilable mode of interaction are:
22807     * @li ELM_FLIP_INTERACTION_NONE - No interaction is allowed
22808     * @li ELM_FLIP_INTERACTION_ROTATE - Interaction will cause rotate animation
22809     * @li ELM_FLIP_INTERACTION_CUBE - Interaction will cause cube animation
22810     * @li ELM_FLIP_INTERACTION_PAGE - Interaction will cause page animation
22811     *
22812     * @note ELM_FLIP_INTERACTION_ROTATE won't cause
22813     * ELM_FLIP_ROTATE_XZ_CENTER_AXIS or ELM_FLIP_ROTATE_YZ_CENTER_AXIS to
22814     * happen, those can only be acheived with elm_flip_go();
22815     */
22816    EAPI void         elm_flip_interaction_set(Evas_Object *obj, Elm_Flip_Interaction mode);
22817    /**
22818     * @brief Get the interactive flip mode
22819     *
22820     * @param obj The flip object
22821     * @return The interactive flip mode
22822     *
22823     * Returns the interactive flip mode set by elm_flip_interaction_set()
22824     */
22825    EAPI Elm_Flip_Interaction elm_flip_interaction_get(const Evas_Object *obj);
22826    /**
22827     * @brief Set which directions of the flip respond to interactive flip
22828     *
22829     * @param obj The flip object
22830     * @param dir The direction to change
22831     * @param enabled If that direction is enabled or not
22832     *
22833     * By default all directions are disabled, so you may want to enable the
22834     * desired directions for flipping if you need interactive flipping. You must
22835     * call this function once for each direction that should be enabled.
22836     *
22837     * @see elm_flip_interaction_set()
22838     */
22839    EAPI void         elm_flip_interacton_direction_enabled_set(Evas_Object *obj, Elm_Flip_Direction dir, Eina_Bool enabled);
22840    /**
22841     * @brief Get the enabled state of that flip direction
22842     *
22843     * @param obj The flip object
22844     * @param dir The direction to check
22845     * @return If that direction is enabled or not
22846     *
22847     * Gets the enabled state set by elm_flip_interacton_direction_enabled_set()
22848     *
22849     * @see elm_flip_interaction_set()
22850     */
22851    EAPI Eina_Bool    elm_flip_interacton_direction_enabled_get(Evas_Object *obj, Elm_Flip_Direction dir);
22852    /**
22853     * @brief Set the amount of the flip that is sensitive to interactive flip
22854     *
22855     * @param obj The flip object
22856     * @param dir The direction to modify
22857     * @param hitsize The amount of that dimension (0.0 to 1.0) to use
22858     *
22859     * Set the amount of the flip that is sensitive to interactive flip, with 0
22860     * representing no area in the flip and 1 representing the entire flip. There
22861     * is however a consideration to be made in that the area will never be
22862     * smaller than the finger size set(as set in your Elementary configuration).
22863     *
22864     * @see elm_flip_interaction_set()
22865     */
22866    EAPI void         elm_flip_interacton_direction_hitsize_set(Evas_Object *obj, Elm_Flip_Direction dir, double hitsize);
22867    /**
22868     * @brief Get the amount of the flip that is sensitive to interactive flip
22869     *
22870     * @param obj The flip object
22871     * @param dir The direction to check
22872     * @return The size set for that direction
22873     *
22874     * Returns the amount os sensitive area set by
22875     * elm_flip_interacton_direction_hitsize_set().
22876     */
22877    EAPI double       elm_flip_interacton_direction_hitsize_get(Evas_Object *obj, Elm_Flip_Direction dir);
22878    /**
22879     * @}
22880     */
22881
22882    /* scrolledentry */
22883    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22884    EINA_DEPRECATED EAPI void         elm_scrolled_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
22885    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22886    EINA_DEPRECATED EAPI void         elm_scrolled_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
22887    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22888    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
22889    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22890    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
22891    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22892    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22893    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
22894    EINA_DEPRECATED EAPI void         elm_scrolled_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
22895    EINA_DEPRECATED EAPI void         elm_scrolled_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
22896    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22897    EINA_DEPRECATED EAPI void         elm_scrolled_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
22898    EINA_DEPRECATED EAPI void         elm_scrolled_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
22899    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
22900    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
22901    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
22902    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
22903    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
22904    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
22905    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
22906    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
22907    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
22908    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
22909    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22910    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22911    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22912    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
22913    EINA_DEPRECATED EAPI int          elm_scrolled_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22914    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
22915    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
22916    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
22917    EINA_DEPRECATED EAPI void         elm_scrolled_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
22918    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);
22919    EINA_DEPRECATED EAPI void         elm_scrolled_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
22920    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22921    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);
22922    EINA_DEPRECATED EAPI void         elm_scrolled_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
22923    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);
22924    EINA_DEPRECATED EAPI void         elm_scrolled_entry_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1, 2);
22925    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22926    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22927    EINA_DEPRECATED EAPI void         elm_scrolled_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
22928    EINA_DEPRECATED EAPI void         elm_scrolled_entry_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1, 2);
22929    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22930    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22931    EINA_DEPRECATED EAPI void         elm_scrolled_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
22932    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);
22933    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);
22934    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);
22935    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);
22936    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);
22937    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);
22938    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
22939    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
22940    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
22941    EINA_DEPRECATED EAPI void         elm_scrolled_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
22942    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22943    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
22944    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cnp_textonly_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
22945
22946    /**
22947     * @defgroup Conformant Conformant
22948     * @ingroup Elementary
22949     *
22950     * @image html img/widget/conformant/preview-00.png
22951     * @image latex img/widget/conformant/preview-00.eps width=\textwidth
22952     *
22953     * @image html img/conformant.png
22954     * @image latex img/conformant.eps width=\textwidth
22955     *
22956     * The aim is to provide a widget that can be used in elementary apps to
22957     * account for space taken up by the indicator, virtual keypad & softkey
22958     * windows when running the illume2 module of E17.
22959     *
22960     * So conformant content will be sized and positioned considering the
22961     * space required for such stuff, and when they popup, as a keyboard
22962     * shows when an entry is selected, conformant content won't change.
22963     *
22964     * Available styles for it:
22965     * - @c "default"
22966     *
22967     * See how to use this widget in this example:
22968     * @ref conformant_example
22969     */
22970
22971    /**
22972     * @addtogroup Conformant
22973     * @{
22974     */
22975
22976    /**
22977     * Add a new conformant widget to the given parent Elementary
22978     * (container) object.
22979     *
22980     * @param parent The parent object.
22981     * @return A new conformant widget handle or @c NULL, on errors.
22982     *
22983     * This function inserts a new conformant widget on the canvas.
22984     *
22985     * @ingroup Conformant
22986     */
22987    EAPI Evas_Object *elm_conformant_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22988
22989    /**
22990     * Set the content of the conformant widget.
22991     *
22992     * @param obj The conformant object.
22993     * @param content The content to be displayed by the conformant.
22994     *
22995     * Content will be sized and positioned considering the space required
22996     * to display a virtual keyboard. So it won't fill all the conformant
22997     * size. This way is possible to be sure that content won't resize
22998     * or be re-positioned after the keyboard is displayed.
22999     *
23000     * Once the content object is set, a previously set one will be deleted.
23001     * If you want to keep that old content object, use the
23002     * elm_conformat_content_unset() function.
23003     *
23004     * @see elm_conformant_content_unset()
23005     * @see elm_conformant_content_get()
23006     *
23007     * @ingroup Conformant
23008     */
23009    EAPI void         elm_conformant_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
23010
23011    /**
23012     * Get the content of the conformant widget.
23013     *
23014     * @param obj The conformant object.
23015     * @return The content that is being used.
23016     *
23017     * Return the content object which is set for this widget.
23018     * It won't be unparent from conformant. For that, use
23019     * elm_conformant_content_unset().
23020     *
23021     * @see elm_conformant_content_set() for more details.
23022     * @see elm_conformant_content_unset()
23023     *
23024     * @ingroup Conformant
23025     */
23026    EAPI Evas_Object *elm_conformant_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23027
23028    /**
23029     * Unset the content of the conformant widget.
23030     *
23031     * @param obj The conformant object.
23032     * @return The content that was being used.
23033     *
23034     * Unparent and return the content object which was set for this widget.
23035     *
23036     * @see elm_conformant_content_set() for more details.
23037     *
23038     * @ingroup Conformant
23039     */
23040    EAPI Evas_Object *elm_conformant_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
23041
23042    /**
23043     * Returns the Evas_Object that represents the content area.
23044     *
23045     * @param obj The conformant object.
23046     * @return The content area of the widget.
23047     *
23048     * @ingroup Conformant
23049     */
23050    EAPI Evas_Object *elm_conformant_content_area_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23051
23052    /**
23053     * @}
23054     */
23055
23056    /**
23057     * @defgroup Mapbuf Mapbuf
23058     * @ingroup Elementary
23059     *
23060     * @image html img/widget/mapbuf/preview-00.png
23061     * @image latex img/widget/mapbuf/preview-00.eps width=\textwidth
23062     *
23063     * This holds one content object and uses an Evas Map of transformation
23064     * points to be later used with this content. So the content will be
23065     * moved, resized, etc as a single image. So it will improve performance
23066     * when you have a complex interafce, with a lot of elements, and will
23067     * need to resize or move it frequently (the content object and its
23068     * children).
23069     *
23070     * See how to use this widget in this example:
23071     * @ref mapbuf_example
23072     */
23073
23074    /**
23075     * @addtogroup Mapbuf
23076     * @{
23077     */
23078
23079    /**
23080     * Add a new mapbuf widget to the given parent Elementary
23081     * (container) object.
23082     *
23083     * @param parent The parent object.
23084     * @return A new mapbuf widget handle or @c NULL, on errors.
23085     *
23086     * This function inserts a new mapbuf widget on the canvas.
23087     *
23088     * @ingroup Mapbuf
23089     */
23090    EAPI Evas_Object *elm_mapbuf_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23091
23092    /**
23093     * Set the content of the mapbuf.
23094     *
23095     * @param obj The mapbuf object.
23096     * @param content The content that will be filled in this mapbuf object.
23097     *
23098     * Once the content object is set, a previously set one will be deleted.
23099     * If you want to keep that old content object, use the
23100     * elm_mapbuf_content_unset() function.
23101     *
23102     * To enable map, elm_mapbuf_enabled_set() should be used.
23103     *
23104     * @ingroup Mapbuf
23105     */
23106    EAPI void         elm_mapbuf_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
23107
23108    /**
23109     * Get the content of the mapbuf.
23110     *
23111     * @param obj The mapbuf object.
23112     * @return The content that is being used.
23113     *
23114     * Return the content object which is set for this widget.
23115     *
23116     * @see elm_mapbuf_content_set() for details.
23117     *
23118     * @ingroup Mapbuf
23119     */
23120    EAPI Evas_Object *elm_mapbuf_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23121
23122    /**
23123     * Unset the content of the mapbuf.
23124     *
23125     * @param obj The mapbuf object.
23126     * @return The content that was being used.
23127     *
23128     * Unparent and return the content object which was set for this widget.
23129     *
23130     * @see elm_mapbuf_content_set() for details.
23131     *
23132     * @ingroup Mapbuf
23133     */
23134    EAPI Evas_Object *elm_mapbuf_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
23135
23136    /**
23137     * Enable or disable the map.
23138     *
23139     * @param obj The mapbuf object.
23140     * @param enabled @c EINA_TRUE to enable map or @c EINA_FALSE to disable it.
23141     *
23142     * This enables the map that is set or disables it. On enable, the object
23143     * geometry will be saved, and the new geometry will change (position and
23144     * size) to reflect the map geometry set.
23145     *
23146     * Also, when enabled, alpha and smooth states will be used, so if the
23147     * content isn't solid, alpha should be enabled, for example, otherwise
23148     * a black retangle will fill the content.
23149     *
23150     * When disabled, the stored map will be freed and geometry prior to
23151     * enabling the map will be restored.
23152     *
23153     * It's disabled by default.
23154     *
23155     * @see elm_mapbuf_alpha_set()
23156     * @see elm_mapbuf_smooth_set()
23157     *
23158     * @ingroup Mapbuf
23159     */
23160    EAPI void         elm_mapbuf_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
23161
23162    /**
23163     * Get a value whether map is enabled or not.
23164     *
23165     * @param obj The mapbuf object.
23166     * @return @c EINA_TRUE means map is enabled. @c EINA_FALSE indicates
23167     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
23168     *
23169     * @see elm_mapbuf_enabled_set() for details.
23170     *
23171     * @ingroup Mapbuf
23172     */
23173    EAPI Eina_Bool    elm_mapbuf_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23174
23175    /**
23176     * Enable or disable smooth map rendering.
23177     *
23178     * @param obj The mapbuf object.
23179     * @param smooth @c EINA_TRUE to enable smooth map rendering or @c EINA_FALSE
23180     * to disable it.
23181     *
23182     * This sets smoothing for map rendering. If the object is a type that has
23183     * its own smoothing settings, then both the smooth settings for this object
23184     * and the map must be turned off.
23185     *
23186     * By default smooth maps are enabled.
23187     *
23188     * @ingroup Mapbuf
23189     */
23190    EAPI void         elm_mapbuf_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
23191
23192    /**
23193     * Get a value whether smooth map rendering is enabled or not.
23194     *
23195     * @param obj The mapbuf object.
23196     * @return @c EINA_TRUE means smooth map rendering is enabled. @c EINA_FALSE
23197     * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
23198     *
23199     * @see elm_mapbuf_smooth_set() for details.
23200     *
23201     * @ingroup Mapbuf
23202     */
23203    EAPI Eina_Bool    elm_mapbuf_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23204
23205    /**
23206     * Set or unset alpha flag for map rendering.
23207     *
23208     * @param obj The mapbuf object.
23209     * @param alpha @c EINA_TRUE to enable alpha blending or @c EINA_FALSE
23210     * to disable it.
23211     *
23212     * This sets alpha flag for map rendering. If the object is a type that has
23213     * its own alpha settings, then this will take precedence. Only image objects
23214     * have this currently. It stops alpha blending of the map area, and is
23215     * useful if you know the object and/or all sub-objects is 100% solid.
23216     *
23217     * Alpha is enabled by default.
23218     *
23219     * @ingroup Mapbuf
23220     */
23221    EAPI void         elm_mapbuf_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
23222
23223    /**
23224     * Get a value whether alpha blending is enabled or not.
23225     *
23226     * @param obj The mapbuf object.
23227     * @return @c EINA_TRUE means alpha blending is enabled. @c EINA_FALSE
23228     * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
23229     *
23230     * @see elm_mapbuf_alpha_set() for details.
23231     *
23232     * @ingroup Mapbuf
23233     */
23234    EAPI Eina_Bool    elm_mapbuf_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23235
23236    /**
23237     * @}
23238     */
23239
23240    /**
23241     * @defgroup Flipselector Flip Selector
23242     *
23243     * @image html img/widget/flipselector/preview-00.png
23244     * @image latex img/widget/flipselector/preview-00.eps
23245     *
23246     * A flip selector is a widget to show a set of @b text items, one
23247     * at a time, with the same sheet switching style as the @ref Clock
23248     * "clock" widget, when one changes the current displaying sheet
23249     * (thus, the "flip" in the name).
23250     *
23251     * User clicks to flip sheets which are @b held for some time will
23252     * make the flip selector to flip continuosly and automatically for
23253     * the user. The interval between flips will keep growing in time,
23254     * so that it helps the user to reach an item which is distant from
23255     * the current selection.
23256     *
23257     * Smart callbacks one can register to:
23258     * - @c "selected" - when the widget's selected text item is changed
23259     * - @c "overflowed" - when the widget's current selection is changed
23260     *   from the first item in its list to the last
23261     * - @c "underflowed" - when the widget's current selection is changed
23262     *   from the last item in its list to the first
23263     *
23264     * Available styles for it:
23265     * - @c "default"
23266     *
23267     * Here is an example on its usage:
23268     * @li @ref flipselector_example
23269     */
23270
23271    /**
23272     * @addtogroup Flipselector
23273     * @{
23274     */
23275
23276    typedef struct _Elm_Flipselector_Item Elm_Flipselector_Item; /**< Item handle for a flip selector widget. */
23277
23278    /**
23279     * Add a new flip selector widget to the given parent Elementary
23280     * (container) widget
23281     *
23282     * @param parent The parent object
23283     * @return a new flip selector widget handle or @c NULL, on errors
23284     *
23285     * This function inserts a new flip selector widget on the canvas.
23286     *
23287     * @ingroup Flipselector
23288     */
23289    EAPI Evas_Object               *elm_flipselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23290
23291    /**
23292     * Programmatically select the next item of a flip selector widget
23293     *
23294     * @param obj The flipselector object
23295     *
23296     * @note The selection will be animated. Also, if it reaches the
23297     * end of its list of member items, it will continue with the first
23298     * one onwards.
23299     *
23300     * @ingroup Flipselector
23301     */
23302    EAPI void                       elm_flipselector_flip_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
23303
23304    /**
23305     * Programmatically select the previous item of a flip selector
23306     * widget
23307     *
23308     * @param obj The flipselector object
23309     *
23310     * @note The selection will be animated.  Also, if it reaches the
23311     * beginning of its list of member items, it will continue with the
23312     * last one backwards.
23313     *
23314     * @ingroup Flipselector
23315     */
23316    EAPI void                       elm_flipselector_flip_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
23317
23318    /**
23319     * Append a (text) item to a flip selector widget
23320     *
23321     * @param obj The flipselector object
23322     * @param label The (text) label of the new item
23323     * @param func Convenience callback function to take place when
23324     * item is selected
23325     * @param data Data passed to @p func, above
23326     * @return A handle to the item added or @c NULL, on errors
23327     *
23328     * The widget's list of labels to show will be appended with the
23329     * given value. If the user wishes so, a callback function pointer
23330     * can be passed, which will get called when this same item is
23331     * selected.
23332     *
23333     * @note The current selection @b won't be modified by appending an
23334     * element to the list.
23335     *
23336     * @note The maximum length of the text label is going to be
23337     * determined <b>by the widget's theme</b>. Strings larger than
23338     * that value are going to be @b truncated.
23339     *
23340     * @ingroup Flipselector
23341     */
23342    EAPI Elm_Flipselector_Item     *elm_flipselector_item_append(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
23343
23344    /**
23345     * Prepend a (text) item to a flip selector widget
23346     *
23347     * @param obj The flipselector object
23348     * @param label The (text) label of the new item
23349     * @param func Convenience callback function to take place when
23350     * item is selected
23351     * @param data Data passed to @p func, above
23352     * @return A handle to the item added or @c NULL, on errors
23353     *
23354     * The widget's list of labels to show will be prepended with the
23355     * given value. If the user wishes so, a callback function pointer
23356     * can be passed, which will get called when this same item is
23357     * selected.
23358     *
23359     * @note The current selection @b won't be modified by prepending
23360     * an element to the list.
23361     *
23362     * @note The maximum length of the text label is going to be
23363     * determined <b>by the widget's theme</b>. Strings larger than
23364     * that value are going to be @b truncated.
23365     *
23366     * @ingroup Flipselector
23367     */
23368    EAPI Elm_Flipselector_Item     *elm_flipselector_item_prepend(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
23369
23370    /**
23371     * Get the internal list of items in a given flip selector widget.
23372     *
23373     * @param obj The flipselector object
23374     * @return The list of items (#Elm_Flipselector_Item as data) or
23375     * @c NULL on errors.
23376     *
23377     * This list is @b not to be modified in any way and must not be
23378     * freed. Use the list members with functions like
23379     * elm_flipselector_item_label_set(),
23380     * elm_flipselector_item_label_get(),
23381     * elm_flipselector_item_del(),
23382     * elm_flipselector_item_selected_get(),
23383     * elm_flipselector_item_selected_set().
23384     *
23385     * @warning This list is only valid until @p obj object's internal
23386     * items list is changed. It should be fetched again with another
23387     * call to this function when changes happen.
23388     *
23389     * @ingroup Flipselector
23390     */
23391    EAPI const Eina_List           *elm_flipselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23392
23393    /**
23394     * Get the first item in the given flip selector widget's list of
23395     * items.
23396     *
23397     * @param obj The flipselector object
23398     * @return The first item or @c NULL, if it has no items (and on
23399     * errors)
23400     *
23401     * @see elm_flipselector_item_append()
23402     * @see elm_flipselector_last_item_get()
23403     *
23404     * @ingroup Flipselector
23405     */
23406    EAPI Elm_Flipselector_Item     *elm_flipselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23407
23408    /**
23409     * Get the last item in the given flip selector widget's list of
23410     * items.
23411     *
23412     * @param obj The flipselector object
23413     * @return The last item or @c NULL, if it has no items (and on
23414     * errors)
23415     *
23416     * @see elm_flipselector_item_prepend()
23417     * @see elm_flipselector_first_item_get()
23418     *
23419     * @ingroup Flipselector
23420     */
23421    EAPI Elm_Flipselector_Item     *elm_flipselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23422
23423    /**
23424     * Get the currently selected item in a flip selector widget.
23425     *
23426     * @param obj The flipselector object
23427     * @return The selected item or @c NULL, if the widget has no items
23428     * (and on erros)
23429     *
23430     * @ingroup Flipselector
23431     */
23432    EAPI Elm_Flipselector_Item     *elm_flipselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23433
23434    /**
23435     * Set whether a given flip selector widget's item should be the
23436     * currently selected one.
23437     *
23438     * @param item The flip selector item
23439     * @param selected @c EINA_TRUE to select it, @c EINA_FALSE to unselect.
23440     *
23441     * This sets whether @p item is or not the selected (thus, under
23442     * display) one. If @p item is different than one under display,
23443     * the latter will be unselected. If the @p item is set to be
23444     * unselected, on the other hand, the @b first item in the widget's
23445     * internal members list will be the new selected one.
23446     *
23447     * @see elm_flipselector_item_selected_get()
23448     *
23449     * @ingroup Flipselector
23450     */
23451    EAPI void                       elm_flipselector_item_selected_set(Elm_Flipselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
23452
23453    /**
23454     * Get whether a given flip selector widget's item is the currently
23455     * selected one.
23456     *
23457     * @param item The flip selector item
23458     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
23459     * (or on errors).
23460     *
23461     * @see elm_flipselector_item_selected_set()
23462     *
23463     * @ingroup Flipselector
23464     */
23465    EAPI Eina_Bool                  elm_flipselector_item_selected_get(const Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23466
23467    /**
23468     * Delete a given item from a flip selector widget.
23469     *
23470     * @param item The item to delete
23471     *
23472     * @ingroup Flipselector
23473     */
23474    EAPI void                       elm_flipselector_item_del(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23475
23476    /**
23477     * Get the label of a given flip selector widget's item.
23478     *
23479     * @param item The item to get label from
23480     * @return The text label of @p item or @c NULL, on errors
23481     *
23482     * @see elm_flipselector_item_label_set()
23483     *
23484     * @ingroup Flipselector
23485     */
23486    EAPI const char                *elm_flipselector_item_label_get(const Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23487
23488    /**
23489     * Set the label of a given flip selector widget's item.
23490     *
23491     * @param item The item to set label on
23492     * @param label The text label string, in UTF-8 encoding
23493     *
23494     * @see elm_flipselector_item_label_get()
23495     *
23496     * @ingroup Flipselector
23497     */
23498    EAPI void                       elm_flipselector_item_label_set(Elm_Flipselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
23499
23500    /**
23501     * Gets the item before @p item in a flip selector widget's
23502     * internal list of items.
23503     *
23504     * @param item The item to fetch previous from
23505     * @return The item before the @p item, in its parent's list. If
23506     *         there is no previous item for @p item or there's an
23507     *         error, @c NULL is returned.
23508     *
23509     * @see elm_flipselector_item_next_get()
23510     *
23511     * @ingroup Flipselector
23512     */
23513    EAPI Elm_Flipselector_Item     *elm_flipselector_item_prev_get(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23514
23515    /**
23516     * Gets the item after @p item in a flip selector widget's
23517     * internal list of items.
23518     *
23519     * @param item The item to fetch next from
23520     * @return The item after the @p item, in its parent's list. If
23521     *         there is no next item for @p item or there's an
23522     *         error, @c NULL is returned.
23523     *
23524     * @see elm_flipselector_item_next_get()
23525     *
23526     * @ingroup Flipselector
23527     */
23528    EAPI Elm_Flipselector_Item     *elm_flipselector_item_next_get(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23529
23530    /**
23531     * Set the interval on time updates for an user mouse button hold
23532     * on a flip selector widget.
23533     *
23534     * @param obj The flip selector object
23535     * @param interval The (first) interval value in seconds
23536     *
23537     * This interval value is @b decreased while the user holds the
23538     * mouse pointer either flipping up or flipping doww a given flip
23539     * selector.
23540     *
23541     * This helps the user to get to a given item distant from the
23542     * current one easier/faster, as it will start to flip quicker and
23543     * quicker on mouse button holds.
23544     *
23545     * The calculation for the next flip interval value, starting from
23546     * the one set with this call, is the previous interval divided by
23547     * 1.05, so it decreases a little bit.
23548     *
23549     * The default starting interval value for automatic flips is
23550     * @b 0.85 seconds.
23551     *
23552     * @see elm_flipselector_interval_get()
23553     *
23554     * @ingroup Flipselector
23555     */
23556    EAPI void                       elm_flipselector_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
23557
23558    /**
23559     * Get the interval on time updates for an user mouse button hold
23560     * on a flip selector widget.
23561     *
23562     * @param obj The flip selector object
23563     * @return The (first) interval value, in seconds, set on it
23564     *
23565     * @see elm_flipselector_interval_set() for more details
23566     *
23567     * @ingroup Flipselector
23568     */
23569    EAPI double                     elm_flipselector_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23570    /**
23571     * @}
23572     */
23573
23574    /**
23575     * @addtogroup Calendar
23576     * @{
23577     */
23578
23579    /**
23580     * @enum _Elm_Calendar_Mark_Repeat
23581     * @typedef Elm_Calendar_Mark_Repeat
23582     *
23583     * Event periodicity, used to define if a mark should be repeated
23584     * @b beyond event's day. It's set when a mark is added.
23585     *
23586     * So, for a mark added to 13th May with periodicity set to WEEKLY,
23587     * there will be marks every week after this date. Marks will be displayed
23588     * at 13th, 20th, 27th, 3rd June ...
23589     *
23590     * Values don't work as bitmask, only one can be choosen.
23591     *
23592     * @see elm_calendar_mark_add()
23593     *
23594     * @ingroup Calendar
23595     */
23596    typedef enum _Elm_Calendar_Mark_Repeat
23597      {
23598         ELM_CALENDAR_UNIQUE, /**< Default value. Marks will be displayed only on event day. */
23599         ELM_CALENDAR_DAILY, /**< Marks will be displayed everyday after event day (inclusive). */
23600         ELM_CALENDAR_WEEKLY, /**< Marks will be displayed every week after event day (inclusive) - i.e. each seven days. */
23601         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*/
23602         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. */
23603      } Elm_Calendar_Mark_Repeat;
23604
23605    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(). */
23606
23607    /**
23608     * Add a new calendar widget to the given parent Elementary
23609     * (container) object.
23610     *
23611     * @param parent The parent object.
23612     * @return a new calendar widget handle or @c NULL, on errors.
23613     *
23614     * This function inserts a new calendar widget on the canvas.
23615     *
23616     * @ref calendar_example_01
23617     *
23618     * @ingroup Calendar
23619     */
23620    EAPI Evas_Object       *elm_calendar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23621
23622    /**
23623     * Get weekdays names displayed by the calendar.
23624     *
23625     * @param obj The calendar object.
23626     * @return Array of seven strings to be used as weekday names.
23627     *
23628     * By default, weekdays abbreviations get from system are displayed:
23629     * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
23630     * The first string is related to Sunday, the second to Monday...
23631     *
23632     * @see elm_calendar_weekdays_name_set()
23633     *
23634     * @ref calendar_example_05
23635     *
23636     * @ingroup Calendar
23637     */
23638    EAPI const char       **elm_calendar_weekdays_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23639
23640    /**
23641     * Set weekdays names to be displayed by the calendar.
23642     *
23643     * @param obj The calendar object.
23644     * @param weekdays Array of seven strings to be used as weekday names.
23645     * @warning It must have 7 elements, or it will access invalid memory.
23646     * @warning The strings must be NULL terminated ('@\0').
23647     *
23648     * By default, weekdays abbreviations get from system are displayed:
23649     * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
23650     *
23651     * The first string should be related to Sunday, the second to Monday...
23652     *
23653     * The usage should be like this:
23654     * @code
23655     *   const char *weekdays[] =
23656     *   {
23657     *      "Sunday", "Monday", "Tuesday", "Wednesday",
23658     *      "Thursday", "Friday", "Saturday"
23659     *   };
23660     *   elm_calendar_weekdays_names_set(calendar, weekdays);
23661     * @endcode
23662     *
23663     * @see elm_calendar_weekdays_name_get()
23664     *
23665     * @ref calendar_example_02
23666     *
23667     * @ingroup Calendar
23668     */
23669    EAPI void               elm_calendar_weekdays_names_set(Evas_Object *obj, const char *weekdays[]) EINA_ARG_NONNULL(1, 2);
23670
23671    /**
23672     * Set the minimum and maximum values for the year
23673     *
23674     * @param obj The calendar object
23675     * @param min The minimum year, greater than 1901;
23676     * @param max The maximum year;
23677     *
23678     * Maximum must be greater than minimum, except if you don't wan't to set
23679     * maximum year.
23680     * Default values are 1902 and -1.
23681     *
23682     * If the maximum year is a negative value, it will be limited depending
23683     * on the platform architecture (year 2037 for 32 bits);
23684     *
23685     * @see elm_calendar_min_max_year_get()
23686     *
23687     * @ref calendar_example_03
23688     *
23689     * @ingroup Calendar
23690     */
23691    EAPI void               elm_calendar_min_max_year_set(Evas_Object *obj, int min, int max) EINA_ARG_NONNULL(1);
23692
23693    /**
23694     * Get the minimum and maximum values for the year
23695     *
23696     * @param obj The calendar object.
23697     * @param min The minimum year.
23698     * @param max The maximum year.
23699     *
23700     * Default values are 1902 and -1.
23701     *
23702     * @see elm_calendar_min_max_year_get() for more details.
23703     *
23704     * @ref calendar_example_05
23705     *
23706     * @ingroup Calendar
23707     */
23708    EAPI void               elm_calendar_min_max_year_get(const Evas_Object *obj, int *min, int *max) EINA_ARG_NONNULL(1);
23709
23710    /**
23711     * Enable or disable day selection
23712     *
23713     * @param obj The calendar object.
23714     * @param enabled @c EINA_TRUE to enable selection or @c EINA_FALSE to
23715     * disable it.
23716     *
23717     * Enabled by default. If disabled, the user still can select months,
23718     * but not days. Selected days are highlighted on calendar.
23719     * It should be used if you won't need such selection for the widget usage.
23720     *
23721     * When a day is selected, or month is changed, smart callbacks for
23722     * signal "changed" will be called.
23723     *
23724     * @see elm_calendar_day_selection_enable_get()
23725     *
23726     * @ref calendar_example_04
23727     *
23728     * @ingroup Calendar
23729     */
23730    EAPI void               elm_calendar_day_selection_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
23731
23732    /**
23733     * Get a value whether day selection is enabled or not.
23734     *
23735     * @see elm_calendar_day_selection_enable_set() for details.
23736     *
23737     * @param obj The calendar object.
23738     * @return EINA_TRUE means day selection is enabled. EINA_FALSE indicates
23739     * it's disabled. If @p obj is NULL, EINA_FALSE is returned.
23740     *
23741     * @ref calendar_example_05
23742     *
23743     * @ingroup Calendar
23744     */
23745    EAPI Eina_Bool          elm_calendar_day_selection_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23746
23747
23748    /**
23749     * Set selected date to be highlighted on calendar.
23750     *
23751     * @param obj The calendar object.
23752     * @param selected_time A @b tm struct to represent the selected date.
23753     *
23754     * Set the selected date, changing the displayed month if needed.
23755     * Selected date changes when the user goes to next/previous month or
23756     * select a day pressing over it on calendar.
23757     *
23758     * @see elm_calendar_selected_time_get()
23759     *
23760     * @ref calendar_example_04
23761     *
23762     * @ingroup Calendar
23763     */
23764    EAPI void               elm_calendar_selected_time_set(Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1);
23765
23766    /**
23767     * Get selected date.
23768     *
23769     * @param obj The calendar object
23770     * @param selected_time A @b tm struct to point to selected date
23771     * @return EINA_FALSE means an error ocurred and returned time shouldn't
23772     * be considered.
23773     *
23774     * Get date selected by the user or set by function
23775     * elm_calendar_selected_time_set().
23776     * Selected date changes when the user goes to next/previous month or
23777     * select a day pressing over it on calendar.
23778     *
23779     * @see elm_calendar_selected_time_get()
23780     *
23781     * @ref calendar_example_05
23782     *
23783     * @ingroup Calendar
23784     */
23785    EAPI Eina_Bool          elm_calendar_selected_time_get(const Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1, 2);
23786
23787    /**
23788     * Set a function to format the string that will be used to display
23789     * month and year;
23790     *
23791     * @param obj The calendar object
23792     * @param format_function Function to set the month-year string given
23793     * the selected date
23794     *
23795     * By default it uses strftime with "%B %Y" format string.
23796     * It should allocate the memory that will be used by the string,
23797     * that will be freed by the widget after usage.
23798     * A pointer to the string and a pointer to the time struct will be provided.
23799     *
23800     * Example:
23801     * @code
23802     * static char *
23803     * _format_month_year(struct tm *selected_time)
23804     * {
23805     *    char buf[32];
23806     *    if (!strftime(buf, sizeof(buf), "%B %Y", selected_time)) return NULL;
23807     *    return strdup(buf);
23808     * }
23809     *
23810     * elm_calendar_format_function_set(calendar, _format_month_year);
23811     * @endcode
23812     *
23813     * @ref calendar_example_02
23814     *
23815     * @ingroup Calendar
23816     */
23817    EAPI void               elm_calendar_format_function_set(Evas_Object *obj, char * (*format_function) (struct tm *stime)) EINA_ARG_NONNULL(1);
23818
23819    /**
23820     * Add a new mark to the calendar
23821     *
23822     * @param obj The calendar object
23823     * @param mark_type A string used to define the type of mark. It will be
23824     * emitted to the theme, that should display a related modification on these
23825     * days representation.
23826     * @param mark_time A time struct to represent the date of inclusion of the
23827     * mark. For marks that repeats it will just be displayed after the inclusion
23828     * date in the calendar.
23829     * @param repeat Repeat the event following this periodicity. Can be a unique
23830     * mark (that don't repeat), daily, weekly, monthly or annually.
23831     * @return The created mark or @p NULL upon failure.
23832     *
23833     * Add a mark that will be drawn in the calendar respecting the insertion
23834     * time and periodicity. It will emit the type as signal to the widget theme.
23835     * Default theme supports "holiday" and "checked", but it can be extended.
23836     *
23837     * It won't immediately update the calendar, drawing the marks.
23838     * For this, call elm_calendar_marks_draw(). However, when user selects
23839     * next or previous month calendar forces marks drawn.
23840     *
23841     * Marks created with this method can be deleted with
23842     * elm_calendar_mark_del().
23843     *
23844     * Example
23845     * @code
23846     * struct tm selected_time;
23847     * time_t current_time;
23848     *
23849     * current_time = time(NULL) + 5 * 84600;
23850     * localtime_r(&current_time, &selected_time);
23851     * elm_calendar_mark_add(cal, "holiday", selected_time,
23852     *     ELM_CALENDAR_ANNUALLY);
23853     *
23854     * current_time = time(NULL) + 1 * 84600;
23855     * localtime_r(&current_time, &selected_time);
23856     * elm_calendar_mark_add(cal, "checked", selected_time, ELM_CALENDAR_UNIQUE);
23857     *
23858     * elm_calendar_marks_draw(cal);
23859     * @endcode
23860     *
23861     * @see elm_calendar_marks_draw()
23862     * @see elm_calendar_mark_del()
23863     *
23864     * @ref calendar_example_06
23865     *
23866     * @ingroup Calendar
23867     */
23868    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);
23869
23870    /**
23871     * Delete mark from the calendar.
23872     *
23873     * @param mark The mark to be deleted.
23874     *
23875     * If deleting all calendar marks is required, elm_calendar_marks_clear()
23876     * should be used instead of getting marks list and deleting each one.
23877     *
23878     * @see elm_calendar_mark_add()
23879     *
23880     * @ref calendar_example_06
23881     *
23882     * @ingroup Calendar
23883     */
23884    EAPI void               elm_calendar_mark_del(Elm_Calendar_Mark *mark) EINA_ARG_NONNULL(1);
23885
23886    /**
23887     * Remove all calendar's marks
23888     *
23889     * @param obj The calendar object.
23890     *
23891     * @see elm_calendar_mark_add()
23892     * @see elm_calendar_mark_del()
23893     *
23894     * @ingroup Calendar
23895     */
23896    EAPI void               elm_calendar_marks_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
23897
23898
23899    /**
23900     * Get a list of all the calendar marks.
23901     *
23902     * @param obj The calendar object.
23903     * @return An @c Eina_List of calendar marks objects, or @c NULL on failure.
23904     *
23905     * @see elm_calendar_mark_add()
23906     * @see elm_calendar_mark_del()
23907     * @see elm_calendar_marks_clear()
23908     *
23909     * @ingroup Calendar
23910     */
23911    EAPI const Eina_List   *elm_calendar_marks_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23912
23913    /**
23914     * Draw calendar marks.
23915     *
23916     * @param obj The calendar object.
23917     *
23918     * Should be used after adding, removing or clearing marks.
23919     * It will go through the entire marks list updating the calendar.
23920     * If lots of marks will be added, add all the marks and then call
23921     * this function.
23922     *
23923     * When the month is changed, i.e. user selects next or previous month,
23924     * marks will be drawed.
23925     *
23926     * @see elm_calendar_mark_add()
23927     * @see elm_calendar_mark_del()
23928     * @see elm_calendar_marks_clear()
23929     *
23930     * @ref calendar_example_06
23931     *
23932     * @ingroup Calendar
23933     */
23934    EAPI void               elm_calendar_marks_draw(Evas_Object *obj) EINA_ARG_NONNULL(1);
23935
23936    /**
23937     * Set a day text color to the same that represents Saturdays.
23938     *
23939     * @param obj The calendar object.
23940     * @param pos The text position. Position is the cell counter, from left
23941     * to right, up to down. It starts on 0 and ends on 41.
23942     *
23943     * @deprecated use elm_calendar_mark_add() instead like:
23944     *
23945     * @code
23946     * struct tm t = { 0, 0, 12, 6, 0, 0, 6, 6, -1 };
23947     * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
23948     * @endcode
23949     *
23950     * @see elm_calendar_mark_add()
23951     *
23952     * @ingroup Calendar
23953     */
23954    EINA_DEPRECATED EAPI void               elm_calendar_text_saturday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
23955
23956    /**
23957     * Set a day text color to the same that represents Sundays.
23958     *
23959     * @param obj The calendar object.
23960     * @param pos The text position. Position is the cell counter, from left
23961     * to right, up to down. It starts on 0 and ends on 41.
23962
23963     * @deprecated use elm_calendar_mark_add() instead like:
23964     *
23965     * @code
23966     * struct tm t = { 0, 0, 12, 7, 0, 0, 0, 0, -1 };
23967     * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
23968     * @endcode
23969     *
23970     * @see elm_calendar_mark_add()
23971     *
23972     * @ingroup Calendar
23973     */
23974    EINA_DEPRECATED EAPI void               elm_calendar_text_sunday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
23975
23976    /**
23977     * Set a day text color to the same that represents Weekdays.
23978     *
23979     * @param obj The calendar object
23980     * @param pos The text position. Position is the cell counter, from left
23981     * to right, up to down. It starts on 0 and ends on 41.
23982     *
23983     * @deprecated use elm_calendar_mark_add() instead like:
23984     *
23985     * @code
23986     * struct tm t = { 0, 0, 12, 1, 0, 0, 0, 0, -1 };
23987     *
23988     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // monday
23989     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
23990     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // tuesday
23991     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
23992     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // wednesday
23993     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
23994     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // thursday
23995     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
23996     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // friday
23997     * @endcode
23998     *
23999     * @see elm_calendar_mark_add()
24000     *
24001     * @ingroup Calendar
24002     */
24003    EINA_DEPRECATED EAPI void               elm_calendar_text_weekday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
24004
24005    /**
24006     * Set the interval on time updates for an user mouse button hold
24007     * on calendar widgets' month selection.
24008     *
24009     * @param obj The calendar object
24010     * @param interval The (first) interval value in seconds
24011     *
24012     * This interval value is @b decreased while the user holds the
24013     * mouse pointer either selecting next or previous month.
24014     *
24015     * This helps the user to get to a given month distant from the
24016     * current one easier/faster, as it will start to change quicker and
24017     * quicker on mouse button holds.
24018     *
24019     * The calculation for the next change interval value, starting from
24020     * the one set with this call, is the previous interval divided by
24021     * 1.05, so it decreases a little bit.
24022     *
24023     * The default starting interval value for automatic changes is
24024     * @b 0.85 seconds.
24025     *
24026     * @see elm_calendar_interval_get()
24027     *
24028     * @ingroup Calendar
24029     */
24030    EAPI void               elm_calendar_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
24031
24032    /**
24033     * Get the interval on time updates for an user mouse button hold
24034     * on calendar widgets' month selection.
24035     *
24036     * @param obj The calendar object
24037     * @return The (first) interval value, in seconds, set on it
24038     *
24039     * @see elm_calendar_interval_set() for more details
24040     *
24041     * @ingroup Calendar
24042     */
24043    EAPI double             elm_calendar_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24044
24045    /**
24046     * @}
24047     */
24048
24049    /**
24050     * @defgroup Diskselector Diskselector
24051     * @ingroup Elementary
24052     *
24053     * @image html img/widget/diskselector/preview-00.png
24054     * @image latex img/widget/diskselector/preview-00.eps
24055     *
24056     * A diskselector is a kind of list widget. It scrolls horizontally,
24057     * and can contain label and icon objects. Three items are displayed
24058     * with the selected one in the middle.
24059     *
24060     * It can act like a circular list with round mode and labels can be
24061     * reduced for a defined length for side items.
24062     *
24063     * Smart callbacks one can listen to:
24064     * - "selected" - when item is selected, i.e. scroller stops.
24065     *
24066     * Available styles for it:
24067     * - @c "default"
24068     *
24069     * List of examples:
24070     * @li @ref diskselector_example_01
24071     * @li @ref diskselector_example_02
24072     */
24073
24074    /**
24075     * @addtogroup Diskselector
24076     * @{
24077     */
24078
24079    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(). */
24080
24081    /**
24082     * Add a new diskselector widget to the given parent Elementary
24083     * (container) object.
24084     *
24085     * @param parent The parent object.
24086     * @return a new diskselector widget handle or @c NULL, on errors.
24087     *
24088     * This function inserts a new diskselector widget on the canvas.
24089     *
24090     * @ingroup Diskselector
24091     */
24092    EAPI Evas_Object           *elm_diskselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24093
24094    /**
24095     * Enable or disable round mode.
24096     *
24097     * @param obj The diskselector object.
24098     * @param round @c EINA_TRUE to enable round mode or @c EINA_FALSE to
24099     * disable it.
24100     *
24101     * Disabled by default. If round mode is enabled the items list will
24102     * work like a circle list, so when the user reaches the last item,
24103     * the first one will popup.
24104     *
24105     * @see elm_diskselector_round_get()
24106     *
24107     * @ingroup Diskselector
24108     */
24109    EAPI void                   elm_diskselector_round_set(Evas_Object *obj, Eina_Bool round) EINA_ARG_NONNULL(1);
24110
24111    /**
24112     * Get a value whether round mode is enabled or not.
24113     *
24114     * @see elm_diskselector_round_set() for details.
24115     *
24116     * @param obj The diskselector object.
24117     * @return @c EINA_TRUE means round mode is enabled. @c EINA_FALSE indicates
24118     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
24119     *
24120     * @ingroup Diskselector
24121     */
24122    EAPI Eina_Bool              elm_diskselector_round_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24123
24124    /**
24125     * Get the side labels max length.
24126     *
24127     * @deprecated use elm_diskselector_side_label_length_get() instead:
24128     *
24129     * @param obj The diskselector object.
24130     * @return The max length defined for side labels, or 0 if not a valid
24131     * diskselector.
24132     *
24133     * @ingroup Diskselector
24134     */
24135    EINA_DEPRECATED EAPI int    elm_diskselector_side_label_lenght_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24136
24137    /**
24138     * Set the side labels max length.
24139     *
24140     * @deprecated use elm_diskselector_side_label_length_set() instead:
24141     *
24142     * @param obj The diskselector object.
24143     * @param len The max length defined for side labels.
24144     *
24145     * @ingroup Diskselector
24146     */
24147    EINA_DEPRECATED EAPI void   elm_diskselector_side_label_lenght_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
24148
24149    /**
24150     * Get the side labels max length.
24151     *
24152     * @see elm_diskselector_side_label_length_set() for details.
24153     *
24154     * @param obj The diskselector object.
24155     * @return The max length defined for side labels, or 0 if not a valid
24156     * diskselector.
24157     *
24158     * @ingroup Diskselector
24159     */
24160    EAPI int                    elm_diskselector_side_label_length_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24161
24162    /**
24163     * Set the side labels max length.
24164     *
24165     * @param obj The diskselector object.
24166     * @param len The max length defined for side labels.
24167     *
24168     * Length is the number of characters of items' label that will be
24169     * visible when it's set on side positions. It will just crop
24170     * the string after defined size. E.g.:
24171     *
24172     * An item with label "January" would be displayed on side position as
24173     * "Jan" if max length is set to 3, or "Janu", if this property
24174     * is set to 4.
24175     *
24176     * When it's selected, the entire label will be displayed, except for
24177     * width restrictions. In this case label will be cropped and "..."
24178     * will be concatenated.
24179     *
24180     * Default side label max length is 3.
24181     *
24182     * This property will be applyed over all items, included before or
24183     * later this function call.
24184     *
24185     * @ingroup Diskselector
24186     */
24187    EAPI void                   elm_diskselector_side_label_length_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
24188
24189    /**
24190     * Set the number of items to be displayed.
24191     *
24192     * @param obj The diskselector object.
24193     * @param num The number of items the diskselector will display.
24194     *
24195     * Default value is 3, and also it's the minimun. If @p num is less
24196     * than 3, it will be set to 3.
24197     *
24198     * Also, it can be set on theme, using data item @c display_item_num
24199     * on group "elm/diskselector/item/X", where X is style set.
24200     * E.g.:
24201     *
24202     * group { name: "elm/diskselector/item/X";
24203     * data {
24204     *     item: "display_item_num" "5";
24205     *     }
24206     *
24207     * @ingroup Diskselector
24208     */
24209    EAPI void                   elm_diskselector_display_item_num_set(Evas_Object *obj, int num) EINA_ARG_NONNULL(1);
24210
24211    /**
24212     * Get the number of items in the diskselector object.
24213     *
24214     * @param obj The diskselector object.
24215     *
24216     * @ingroup Diskselector
24217     */
24218    EAPI int                   elm_diskselector_display_item_num_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24219
24220    /**
24221     * Set bouncing behaviour when the scrolled content reaches an edge.
24222     *
24223     * Tell the internal scroller object whether it should bounce or not
24224     * when it reaches the respective edges for each axis.
24225     *
24226     * @param obj The diskselector object.
24227     * @param h_bounce Whether to bounce or not in the horizontal axis.
24228     * @param v_bounce Whether to bounce or not in the vertical axis.
24229     *
24230     * @see elm_scroller_bounce_set()
24231     *
24232     * @ingroup Diskselector
24233     */
24234    EAPI void                   elm_diskselector_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
24235
24236    /**
24237     * Get the bouncing behaviour of the internal scroller.
24238     *
24239     * Get whether the internal scroller should bounce when the edge of each
24240     * axis is reached scrolling.
24241     *
24242     * @param obj The diskselector object.
24243     * @param h_bounce Pointer where to store the bounce state of the horizontal
24244     * axis.
24245     * @param v_bounce Pointer where to store the bounce state of the vertical
24246     * axis.
24247     *
24248     * @see elm_scroller_bounce_get()
24249     * @see elm_diskselector_bounce_set()
24250     *
24251     * @ingroup Diskselector
24252     */
24253    EAPI void                   elm_diskselector_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
24254
24255    /**
24256     * Get the scrollbar policy.
24257     *
24258     * @see elm_diskselector_scroller_policy_get() for details.
24259     *
24260     * @param obj The diskselector object.
24261     * @param policy_h Pointer where to store horizontal scrollbar policy.
24262     * @param policy_v Pointer where to store vertical scrollbar policy.
24263     *
24264     * @ingroup Diskselector
24265     */
24266    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);
24267
24268    /**
24269     * Set the scrollbar policy.
24270     *
24271     * @param obj The diskselector object.
24272     * @param policy_h Horizontal scrollbar policy.
24273     * @param policy_v Vertical scrollbar policy.
24274     *
24275     * This sets the scrollbar visibility policy for the given scroller.
24276     * #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it
24277     * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
24278     * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
24279     * This applies respectively for the horizontal and vertical scrollbars.
24280     *
24281     * The both are disabled by default, i.e., are set to
24282     * #ELM_SCROLLER_POLICY_OFF.
24283     *
24284     * @ingroup Diskselector
24285     */
24286    EAPI void                   elm_diskselector_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
24287
24288    /**
24289     * Remove all diskselector's items.
24290     *
24291     * @param obj The diskselector object.
24292     *
24293     * @see elm_diskselector_item_del()
24294     * @see elm_diskselector_item_append()
24295     *
24296     * @ingroup Diskselector
24297     */
24298    EAPI void                   elm_diskselector_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
24299
24300    /**
24301     * Get a list of all the diskselector items.
24302     *
24303     * @param obj The diskselector object.
24304     * @return An @c Eina_List of diskselector items, #Elm_Diskselector_Item,
24305     * or @c NULL on failure.
24306     *
24307     * @see elm_diskselector_item_append()
24308     * @see elm_diskselector_item_del()
24309     * @see elm_diskselector_clear()
24310     *
24311     * @ingroup Diskselector
24312     */
24313    EAPI const Eina_List       *elm_diskselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24314
24315    /**
24316     * Appends a new item to the diskselector object.
24317     *
24318     * @param obj The diskselector object.
24319     * @param label The label of the diskselector item.
24320     * @param icon The icon object to use at left side of the item. An
24321     * icon can be any Evas object, but usually it is an icon created
24322     * with elm_icon_add().
24323     * @param func The function to call when the item is selected.
24324     * @param data The data to associate with the item for related callbacks.
24325     *
24326     * @return The created item or @c NULL upon failure.
24327     *
24328     * A new item will be created and appended to the diskselector, i.e., will
24329     * be set as last item. Also, if there is no selected item, it will
24330     * be selected. This will always happens for the first appended item.
24331     *
24332     * If no icon is set, label will be centered on item position, otherwise
24333     * the icon will be placed at left of the label, that will be shifted
24334     * to the right.
24335     *
24336     * Items created with this method can be deleted with
24337     * elm_diskselector_item_del().
24338     *
24339     * Associated @p data can be properly freed when item is deleted if a
24340     * callback function is set with elm_diskselector_item_del_cb_set().
24341     *
24342     * If a function is passed as argument, it will be called everytime this item
24343     * is selected, i.e., the user stops the diskselector with this
24344     * item on center position. If such function isn't needed, just passing
24345     * @c NULL as @p func is enough. The same should be done for @p data.
24346     *
24347     * Simple example (with no function callback or data associated):
24348     * @code
24349     * disk = elm_diskselector_add(win);
24350     * ic = elm_icon_add(win);
24351     * elm_icon_file_set(ic, "path/to/image", NULL);
24352     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
24353     * elm_diskselector_item_append(disk, "label", ic, NULL, NULL);
24354     * @endcode
24355     *
24356     * @see elm_diskselector_item_del()
24357     * @see elm_diskselector_item_del_cb_set()
24358     * @see elm_diskselector_clear()
24359     * @see elm_icon_add()
24360     *
24361     * @ingroup Diskselector
24362     */
24363    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);
24364
24365
24366    /**
24367     * Delete them item from the diskselector.
24368     *
24369     * @param it The item of diskselector to be deleted.
24370     *
24371     * If deleting all diskselector items is required, elm_diskselector_clear()
24372     * should be used instead of getting items list and deleting each one.
24373     *
24374     * @see elm_diskselector_clear()
24375     * @see elm_diskselector_item_append()
24376     * @see elm_diskselector_item_del_cb_set()
24377     *
24378     * @ingroup Diskselector
24379     */
24380    EAPI void                   elm_diskselector_item_del(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24381
24382    /**
24383     * Set the function called when a diskselector item is freed.
24384     *
24385     * @param it The item to set the callback on
24386     * @param func The function called
24387     *
24388     * If there is a @p func, then it will be called prior item's memory release.
24389     * That will be called with the following arguments:
24390     * @li item's data;
24391     * @li item's Evas object;
24392     * @li item itself;
24393     *
24394     * This way, a data associated to a diskselector item could be properly
24395     * freed.
24396     *
24397     * @ingroup Diskselector
24398     */
24399    EAPI void                   elm_diskselector_item_del_cb_set(Elm_Diskselector_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
24400
24401    /**
24402     * Get the data associated to the item.
24403     *
24404     * @param it The diskselector item
24405     * @return The data associated to @p it
24406     *
24407     * The return value is a pointer to data associated to @p item when it was
24408     * created, with function elm_diskselector_item_append(). If no data
24409     * was passed as argument, it will return @c NULL.
24410     *
24411     * @see elm_diskselector_item_append()
24412     *
24413     * @ingroup Diskselector
24414     */
24415    EAPI void                  *elm_diskselector_item_data_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24416
24417    /**
24418     * Set the icon associated to the item.
24419     *
24420     * @param it The diskselector item
24421     * @param icon The icon object to associate with @p it
24422     *
24423     * The icon object to use at left side of the item. An
24424     * icon can be any Evas object, but usually it is an icon created
24425     * with elm_icon_add().
24426     *
24427     * Once the icon object is set, a previously set one will be deleted.
24428     * @warning Setting the same icon for two items will cause the icon to
24429     * dissapear from the first item.
24430     *
24431     * If an icon was passed as argument on item creation, with function
24432     * elm_diskselector_item_append(), it will be already
24433     * associated to the item.
24434     *
24435     * @see elm_diskselector_item_append()
24436     * @see elm_diskselector_item_icon_get()
24437     *
24438     * @ingroup Diskselector
24439     */
24440    EAPI void                   elm_diskselector_item_icon_set(Elm_Diskselector_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
24441
24442    /**
24443     * Get the icon associated to the item.
24444     *
24445     * @param it The diskselector item
24446     * @return The icon associated to @p it
24447     *
24448     * The return value is a pointer to the icon associated to @p item when it was
24449     * created, with function elm_diskselector_item_append(), or later
24450     * with function elm_diskselector_item_icon_set. If no icon
24451     * was passed as argument, it will return @c NULL.
24452     *
24453     * @see elm_diskselector_item_append()
24454     * @see elm_diskselector_item_icon_set()
24455     *
24456     * @ingroup Diskselector
24457     */
24458    EAPI Evas_Object           *elm_diskselector_item_icon_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24459
24460    /**
24461     * Set the label of item.
24462     *
24463     * @param it The item of diskselector.
24464     * @param label The label of item.
24465     *
24466     * The label to be displayed by the item.
24467     *
24468     * If no icon is set, label will be centered on item position, otherwise
24469     * the icon will be placed at left of the label, that will be shifted
24470     * to the right.
24471     *
24472     * An item with label "January" would be displayed on side position as
24473     * "Jan" if max length is set to 3 with function
24474     * elm_diskselector_side_label_lenght_set(), or "Janu", if this property
24475     * is set to 4.
24476     *
24477     * When this @p item is selected, the entire label will be displayed,
24478     * except for width restrictions.
24479     * In this case label will be cropped and "..." will be concatenated,
24480     * but only for display purposes. It will keep the entire string, so
24481     * if diskselector is resized the remaining characters will be displayed.
24482     *
24483     * If a label was passed as argument on item creation, with function
24484     * elm_diskselector_item_append(), it will be already
24485     * displayed by the item.
24486     *
24487     * @see elm_diskselector_side_label_lenght_set()
24488     * @see elm_diskselector_item_label_get()
24489     * @see elm_diskselector_item_append()
24490     *
24491     * @ingroup Diskselector
24492     */
24493    EAPI void                   elm_diskselector_item_label_set(Elm_Diskselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
24494
24495    /**
24496     * Get the label of item.
24497     *
24498     * @param it The item of diskselector.
24499     * @return The label of item.
24500     *
24501     * The return value is a pointer to the label associated to @p item when it was
24502     * created, with function elm_diskselector_item_append(), or later
24503     * with function elm_diskselector_item_label_set. If no label
24504     * was passed as argument, it will return @c NULL.
24505     *
24506     * @see elm_diskselector_item_label_set() for more details.
24507     * @see elm_diskselector_item_append()
24508     *
24509     * @ingroup Diskselector
24510     */
24511    EAPI const char            *elm_diskselector_item_label_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24512
24513    /**
24514     * Get the selected item.
24515     *
24516     * @param obj The diskselector object.
24517     * @return The selected diskselector item.
24518     *
24519     * The selected item can be unselected with function
24520     * elm_diskselector_item_selected_set(), and the first item of
24521     * diskselector will be selected.
24522     *
24523     * The selected item always will be centered on diskselector, with
24524     * full label displayed, i.e., max lenght set to side labels won't
24525     * apply on the selected item. More details on
24526     * elm_diskselector_side_label_length_set().
24527     *
24528     * @ingroup Diskselector
24529     */
24530    EAPI Elm_Diskselector_Item *elm_diskselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24531
24532    /**
24533     * Set the selected state of an item.
24534     *
24535     * @param it The diskselector item
24536     * @param selected The selected state
24537     *
24538     * This sets the selected state of the given item @p it.
24539     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
24540     *
24541     * If a new item is selected the previosly selected will be unselected.
24542     * Previoulsy selected item can be get with function
24543     * elm_diskselector_selected_item_get().
24544     *
24545     * If the item @p it is unselected, the first item of diskselector will
24546     * be selected.
24547     *
24548     * Selected items will be visible on center position of diskselector.
24549     * So if it was on another position before selected, or was invisible,
24550     * diskselector will animate items until the selected item reaches center
24551     * position.
24552     *
24553     * @see elm_diskselector_item_selected_get()
24554     * @see elm_diskselector_selected_item_get()
24555     *
24556     * @ingroup Diskselector
24557     */
24558    EAPI void                   elm_diskselector_item_selected_set(Elm_Diskselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
24559
24560    /*
24561     * Get whether the @p item is selected or not.
24562     *
24563     * @param it The diskselector item.
24564     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
24565     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
24566     *
24567     * @see elm_diskselector_selected_item_set() for details.
24568     * @see elm_diskselector_item_selected_get()
24569     *
24570     * @ingroup Diskselector
24571     */
24572    EAPI Eina_Bool              elm_diskselector_item_selected_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24573
24574    /**
24575     * Get the first item of the diskselector.
24576     *
24577     * @param obj The diskselector object.
24578     * @return The first item, or @c NULL if none.
24579     *
24580     * The list of items follows append order. So it will return the first
24581     * item appended to the widget that wasn't deleted.
24582     *
24583     * @see elm_diskselector_item_append()
24584     * @see elm_diskselector_items_get()
24585     *
24586     * @ingroup Diskselector
24587     */
24588    EAPI Elm_Diskselector_Item *elm_diskselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24589
24590    /**
24591     * Get the last item of the diskselector.
24592     *
24593     * @param obj The diskselector object.
24594     * @return The last item, or @c NULL if none.
24595     *
24596     * The list of items follows append order. So it will return last first
24597     * item appended to the widget that wasn't deleted.
24598     *
24599     * @see elm_diskselector_item_append()
24600     * @see elm_diskselector_items_get()
24601     *
24602     * @ingroup Diskselector
24603     */
24604    EAPI Elm_Diskselector_Item *elm_diskselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24605
24606    /**
24607     * Get the item before @p item in diskselector.
24608     *
24609     * @param it The diskselector item.
24610     * @return The item before @p item, or @c NULL if none or on failure.
24611     *
24612     * The list of items follows append order. So it will return item appended
24613     * just before @p item and that wasn't deleted.
24614     *
24615     * If it is the first item, @c NULL will be returned.
24616     * First item can be get by elm_diskselector_first_item_get().
24617     *
24618     * @see elm_diskselector_item_append()
24619     * @see elm_diskselector_items_get()
24620     *
24621     * @ingroup Diskselector
24622     */
24623    EAPI Elm_Diskselector_Item *elm_diskselector_item_prev_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24624
24625    /**
24626     * Get the item after @p item in diskselector.
24627     *
24628     * @param it The diskselector item.
24629     * @return The item after @p item, or @c NULL if none or on failure.
24630     *
24631     * The list of items follows append order. So it will return item appended
24632     * just after @p item and that wasn't deleted.
24633     *
24634     * If it is the last item, @c NULL will be returned.
24635     * Last item can be get by elm_diskselector_last_item_get().
24636     *
24637     * @see elm_diskselector_item_append()
24638     * @see elm_diskselector_items_get()
24639     *
24640     * @ingroup Diskselector
24641     */
24642    EAPI Elm_Diskselector_Item *elm_diskselector_item_next_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24643
24644    /**
24645     * Set the text to be shown in the diskselector item.
24646     *
24647     * @param item Target item
24648     * @param text The text to set in the content
24649     *
24650     * Setup the text as tooltip to object. The item can have only one tooltip,
24651     * so any previous tooltip data is removed.
24652     *
24653     * @see elm_object_tooltip_text_set() for more details.
24654     *
24655     * @ingroup Diskselector
24656     */
24657    EAPI void                   elm_diskselector_item_tooltip_text_set(Elm_Diskselector_Item *item, const char *text) EINA_ARG_NONNULL(1);
24658
24659    /**
24660     * Set the content to be shown in the tooltip item.
24661     *
24662     * Setup the tooltip to item. The item can have only one tooltip,
24663     * so any previous tooltip data is removed. @p func(with @p data) will
24664     * be called every time that need show the tooltip and it should
24665     * return a valid Evas_Object. This object is then managed fully by
24666     * tooltip system and is deleted when the tooltip is gone.
24667     *
24668     * @param item the diskselector item being attached a tooltip.
24669     * @param func the function used to create the tooltip contents.
24670     * @param data what to provide to @a func as callback data/context.
24671     * @param del_cb called when data is not needed anymore, either when
24672     *        another callback replaces @p func, the tooltip is unset with
24673     *        elm_diskselector_item_tooltip_unset() or the owner @a item
24674     *        dies. This callback receives as the first parameter the
24675     *        given @a data, and @c event_info is the item.
24676     *
24677     * @see elm_object_tooltip_content_cb_set() for more details.
24678     *
24679     * @ingroup Diskselector
24680     */
24681    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);
24682
24683    /**
24684     * Unset tooltip from item.
24685     *
24686     * @param item diskselector item to remove previously set tooltip.
24687     *
24688     * Remove tooltip from item. The callback provided as del_cb to
24689     * elm_diskselector_item_tooltip_content_cb_set() will be called to notify
24690     * it is not used anymore.
24691     *
24692     * @see elm_object_tooltip_unset() for more details.
24693     * @see elm_diskselector_item_tooltip_content_cb_set()
24694     *
24695     * @ingroup Diskselector
24696     */
24697    EAPI void                   elm_diskselector_item_tooltip_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24698
24699
24700    /**
24701     * Sets a different style for this item tooltip.
24702     *
24703     * @note before you set a style you should define a tooltip with
24704     *       elm_diskselector_item_tooltip_content_cb_set() or
24705     *       elm_diskselector_item_tooltip_text_set()
24706     *
24707     * @param item diskselector item with tooltip already set.
24708     * @param style the theme style to use (default, transparent, ...)
24709     *
24710     * @see elm_object_tooltip_style_set() for more details.
24711     *
24712     * @ingroup Diskselector
24713     */
24714    EAPI void                   elm_diskselector_item_tooltip_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
24715
24716    /**
24717     * Get the style for this item tooltip.
24718     *
24719     * @param item diskselector item with tooltip already set.
24720     * @return style the theme style in use, defaults to "default". If the
24721     *         object does not have a tooltip set, then NULL is returned.
24722     *
24723     * @see elm_object_tooltip_style_get() for more details.
24724     * @see elm_diskselector_item_tooltip_style_set()
24725     *
24726     * @ingroup Diskselector
24727     */
24728    EAPI const char            *elm_diskselector_item_tooltip_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24729
24730    /**
24731     * Set the cursor to be shown when mouse is over the diskselector item
24732     *
24733     * @param item Target item
24734     * @param cursor the cursor name to be used.
24735     *
24736     * @see elm_object_cursor_set() for more details.
24737     *
24738     * @ingroup Diskselector
24739     */
24740    EAPI void                   elm_diskselector_item_cursor_set(Elm_Diskselector_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
24741
24742    /**
24743     * Get the cursor to be shown when mouse is over the diskselector item
24744     *
24745     * @param item diskselector item with cursor already set.
24746     * @return the cursor name.
24747     *
24748     * @see elm_object_cursor_get() for more details.
24749     * @see elm_diskselector_cursor_set()
24750     *
24751     * @ingroup Diskselector
24752     */
24753    EAPI const char            *elm_diskselector_item_cursor_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24754
24755
24756    /**
24757     * Unset the cursor to be shown when mouse is over the diskselector item
24758     *
24759     * @param item Target item
24760     *
24761     * @see elm_object_cursor_unset() for more details.
24762     * @see elm_diskselector_cursor_set()
24763     *
24764     * @ingroup Diskselector
24765     */
24766    EAPI void                   elm_diskselector_item_cursor_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24767
24768    /**
24769     * Sets a different style for this item cursor.
24770     *
24771     * @note before you set a style you should define a cursor with
24772     *       elm_diskselector_item_cursor_set()
24773     *
24774     * @param item diskselector item with cursor already set.
24775     * @param style the theme style to use (default, transparent, ...)
24776     *
24777     * @see elm_object_cursor_style_set() for more details.
24778     *
24779     * @ingroup Diskselector
24780     */
24781    EAPI void                   elm_diskselector_item_cursor_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
24782
24783
24784    /**
24785     * Get the style for this item cursor.
24786     *
24787     * @param item diskselector item with cursor already set.
24788     * @return style the theme style in use, defaults to "default". If the
24789     *         object does not have a cursor set, then @c NULL is returned.
24790     *
24791     * @see elm_object_cursor_style_get() for more details.
24792     * @see elm_diskselector_item_cursor_style_set()
24793     *
24794     * @ingroup Diskselector
24795     */
24796    EAPI const char            *elm_diskselector_item_cursor_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24797
24798
24799    /**
24800     * Set if the cursor set should be searched on the theme or should use
24801     * the provided by the engine, only.
24802     *
24803     * @note before you set if should look on theme you should define a cursor
24804     * with elm_diskselector_item_cursor_set().
24805     * By default it will only look for cursors provided by the engine.
24806     *
24807     * @param item widget item with cursor already set.
24808     * @param engine_only boolean to define if cursors set with
24809     * elm_diskselector_item_cursor_set() should be searched only
24810     * between cursors provided by the engine or searched on widget's
24811     * theme as well.
24812     *
24813     * @see elm_object_cursor_engine_only_set() for more details.
24814     *
24815     * @ingroup Diskselector
24816     */
24817    EAPI void                   elm_diskselector_item_cursor_engine_only_set(Elm_Diskselector_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
24818
24819    /**
24820     * Get the cursor engine only usage for this item cursor.
24821     *
24822     * @param item widget item with cursor already set.
24823     * @return engine_only boolean to define it cursors should be looked only
24824     * between the provided by the engine or searched on widget's theme as well.
24825     * If the item does not have a cursor set, then @c EINA_FALSE is returned.
24826     *
24827     * @see elm_object_cursor_engine_only_get() for more details.
24828     * @see elm_diskselector_item_cursor_engine_only_set()
24829     *
24830     * @ingroup Diskselector
24831     */
24832    EAPI Eina_Bool              elm_diskselector_item_cursor_engine_only_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24833
24834    /**
24835     * @}
24836     */
24837
24838    /**
24839     * @defgroup Colorselector Colorselector
24840     *
24841     * @{
24842     *
24843     * @image html img/widget/colorselector/preview-00.png
24844     * @image latex img/widget/colorselector/preview-00.eps
24845     *
24846     * @brief Widget for user to select a color.
24847     *
24848     * Signals that you can add callbacks for are:
24849     * "changed" - When the color value changes(event_info is NULL).
24850     *
24851     * See @ref tutorial_colorselector.
24852     */
24853    /**
24854     * @brief Add a new colorselector to the parent
24855     *
24856     * @param parent The parent object
24857     * @return The new object or NULL if it cannot be created
24858     *
24859     * @ingroup Colorselector
24860     */
24861    EAPI Evas_Object *elm_colorselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24862    /**
24863     * Set a color for the colorselector
24864     *
24865     * @param obj   Colorselector object
24866     * @param r     r-value of color
24867     * @param g     g-value of color
24868     * @param b     b-value of color
24869     * @param a     a-value of color
24870     *
24871     * @ingroup Colorselector
24872     */
24873    EAPI void         elm_colorselector_color_set(Evas_Object *obj, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
24874    /**
24875     * Get a color from the colorselector
24876     *
24877     * @param obj   Colorselector object
24878     * @param r     integer pointer for r-value of color
24879     * @param g     integer pointer for g-value of color
24880     * @param b     integer pointer for b-value of color
24881     * @param a     integer pointer for a-value of color
24882     *
24883     * @ingroup Colorselector
24884     */
24885    EAPI void         elm_colorselector_color_get(const Evas_Object *obj, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
24886    /**
24887     * @}
24888     */
24889
24890    /**
24891     * @defgroup Ctxpopup Ctxpopup
24892     *
24893     * @image html img/widget/ctxpopup/preview-00.png
24894     * @image latex img/widget/ctxpopup/preview-00.eps
24895     *
24896     * @brief Context popup widet.
24897     *
24898     * A ctxpopup is a widget that, when shown, pops up a list of items.
24899     * It automatically chooses an area inside its parent object's view
24900     * (set via elm_ctxpopup_add() and elm_ctxpopup_hover_parent_set()) to
24901     * optimally fit into it. In the default theme, it will also point an
24902     * arrow to it's top left position at the time one shows it. Ctxpopup
24903     * items have a label and/or an icon. It is intended for a small
24904     * number of items (hence the use of list, not genlist).
24905     *
24906     * @note Ctxpopup is a especialization of @ref Hover.
24907     *
24908     * Signals that you can add callbacks for are:
24909     * "dismissed" - the ctxpopup was dismissed
24910     *
24911     * @ref tutorial_ctxpopup shows the usage of a good deal of the API.
24912     * @{
24913     */
24914    typedef enum _Elm_Ctxpopup_Direction
24915      {
24916         ELM_CTXPOPUP_DIRECTION_DOWN, /**< ctxpopup show appear below clicked
24917                                           area */
24918         ELM_CTXPOPUP_DIRECTION_RIGHT, /**< ctxpopup show appear to the right of
24919                                            the clicked area */
24920         ELM_CTXPOPUP_DIRECTION_LEFT, /**< ctxpopup show appear to the left of
24921                                           the clicked area */
24922         ELM_CTXPOPUP_DIRECTION_UP, /**< ctxpopup show appear above the clicked
24923                                         area */
24924         ELM_CTXPOPUP_DIRECTION_UNKNOWN, /**< ctxpopup does not determine it's direction yet*/
24925      } Elm_Ctxpopup_Direction;
24926
24927    /**
24928     * @brief Add a new Ctxpopup object to the parent.
24929     *
24930     * @param parent Parent object
24931     * @return New object or @c NULL, if it cannot be created
24932     */
24933    EAPI Evas_Object  *elm_ctxpopup_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24934    /**
24935     * @brief Set the Ctxpopup's parent
24936     *
24937     * @param obj The ctxpopup object
24938     * @param area The parent to use
24939     *
24940     * Set the parent object.
24941     *
24942     * @note elm_ctxpopup_add() will automatically call this function
24943     * with its @c parent argument.
24944     *
24945     * @see elm_ctxpopup_add()
24946     * @see elm_hover_parent_set()
24947     */
24948    EAPI void          elm_ctxpopup_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1, 2);
24949    /**
24950     * @brief Get the Ctxpopup's parent
24951     *
24952     * @param obj The ctxpopup object
24953     *
24954     * @see elm_ctxpopup_hover_parent_set() for more information
24955     */
24956    EAPI Evas_Object  *elm_ctxpopup_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24957    /**
24958     * @brief Clear all items in the given ctxpopup object.
24959     *
24960     * @param obj Ctxpopup object
24961     */
24962    EAPI void          elm_ctxpopup_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
24963    /**
24964     * @brief Change the ctxpopup's orientation to horizontal or vertical.
24965     *
24966     * @param obj Ctxpopup object
24967     * @param horizontal @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical
24968     */
24969    EAPI void          elm_ctxpopup_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
24970    /**
24971     * @brief Get the value of current ctxpopup object's orientation.
24972     *
24973     * @param obj Ctxpopup object
24974     * @return @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical mode (or errors)
24975     *
24976     * @see elm_ctxpopup_horizontal_set()
24977     */
24978    EAPI Eina_Bool     elm_ctxpopup_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24979    /**
24980     * @brief Add a new item to a ctxpopup object.
24981     *
24982     * @param obj Ctxpopup object
24983     * @param icon Icon to be set on new item
24984     * @param label The Label of the new item
24985     * @param func Convenience function called when item selected
24986     * @param data Data passed to @p func
24987     * @return A handle to the item added or @c NULL, on errors
24988     *
24989     * @warning Ctxpopup can't hold both an item list and a content at the same
24990     * time. When an item is added, any previous content will be removed.
24991     *
24992     * @see elm_ctxpopup_content_set()
24993     */
24994    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);
24995    /**
24996     * @brief Delete the given item in a ctxpopup object.
24997     *
24998     * @param it Ctxpopup item to be deleted
24999     *
25000     * @see elm_ctxpopup_item_append()
25001     */
25002    EAPI void          elm_ctxpopup_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25003    /**
25004     * @brief Set the ctxpopup item's state as disabled or enabled.
25005     *
25006     * @param it Ctxpopup item to be enabled/disabled
25007     * @param disabled @c EINA_TRUE to disable it, @c EINA_FALSE to enable it
25008     *
25009     * When disabled the item is greyed out to indicate it's state.
25010     */
25011    EAPI void          elm_ctxpopup_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
25012    /**
25013     * @brief Get the ctxpopup item's disabled/enabled state.
25014     *
25015     * @param it Ctxpopup item to be enabled/disabled
25016     * @return disabled @c EINA_TRUE, if disabled, @c EINA_FALSE otherwise
25017     *
25018     * @see elm_ctxpopup_item_disabled_set()
25019     */
25020    EAPI Eina_Bool     elm_ctxpopup_item_disabled_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25021    /**
25022     * @brief Get the icon object for the given ctxpopup item.
25023     *
25024     * @param it Ctxpopup item
25025     * @return icon object or @c NULL, if the item does not have icon or an error
25026     * occurred
25027     *
25028     * @see elm_ctxpopup_item_append()
25029     * @see elm_ctxpopup_item_icon_set()
25030     */
25031    EAPI Evas_Object  *elm_ctxpopup_item_icon_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25032    /**
25033     * @brief Sets the side icon associated with the ctxpopup item
25034     *
25035     * @param it Ctxpopup item
25036     * @param icon Icon object to be set
25037     *
25038     * Once the icon object is set, a previously set one will be deleted.
25039     * @warning Setting the same icon for two items will cause the icon to
25040     * dissapear from the first item.
25041     *
25042     * @see elm_ctxpopup_item_append()
25043     */
25044    EAPI void          elm_ctxpopup_item_icon_set(Elm_Object_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
25045    /**
25046     * @brief Get the label for the given ctxpopup item.
25047     *
25048     * @param it Ctxpopup item
25049     * @return label string or @c NULL, if the item does not have label or an
25050     * error occured
25051     *
25052     * @see elm_ctxpopup_item_append()
25053     * @see elm_ctxpopup_item_label_set()
25054     */
25055    EAPI const char   *elm_ctxpopup_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25056    /**
25057     * @brief (Re)set the label on the given ctxpopup item.
25058     *
25059     * @param it Ctxpopup item
25060     * @param label String to set as label
25061     */
25062    EAPI void          elm_ctxpopup_item_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
25063    /**
25064     * @brief Set an elm widget as the content of the ctxpopup.
25065     *
25066     * @param obj Ctxpopup object
25067     * @param content Content to be swallowed
25068     *
25069     * If the content object is already set, a previous one will bedeleted. If
25070     * you want to keep that old content object, use the
25071     * elm_ctxpopup_content_unset() function.
25072     *
25073     * @deprecated use elm_object_content_set()
25074     *
25075     * @warning Ctxpopup can't hold both a item list and a content at the same
25076     * time. When a content is set, any previous items will be removed.
25077     */
25078    EINA_DEPRECATED EAPI void          elm_ctxpopup_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1, 2);
25079    /**
25080     * @brief Unset the ctxpopup content
25081     *
25082     * @param obj Ctxpopup object
25083     * @return The content that was being used
25084     *
25085     * Unparent and return the content object which was set for this widget.
25086     *
25087     * @deprecated use elm_object_content_unset()
25088     *
25089     * @see elm_ctxpopup_content_set()
25090     */
25091    EINA_DEPRECATED EAPI Evas_Object  *elm_ctxpopup_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
25092    /**
25093     * @brief Set the direction priority of a ctxpopup.
25094     *
25095     * @param obj Ctxpopup object
25096     * @param first 1st priority of direction
25097     * @param second 2nd priority of direction
25098     * @param third 3th priority of direction
25099     * @param fourth 4th priority of direction
25100     *
25101     * This functions gives a chance to user to set the priority of ctxpopup
25102     * showing direction. This doesn't guarantee the ctxpopup will appear in the
25103     * requested direction.
25104     *
25105     * @see Elm_Ctxpopup_Direction
25106     */
25107    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);
25108    /**
25109     * @brief Get the direction priority of a ctxpopup.
25110     *
25111     * @param obj Ctxpopup object
25112     * @param first 1st priority of direction to be returned
25113     * @param second 2nd priority of direction to be returned
25114     * @param third 3th priority of direction to be returned
25115     * @param fourth 4th priority of direction to be returned
25116     *
25117     * @see elm_ctxpopup_direction_priority_set() for more information.
25118     */
25119    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);
25120
25121    /**
25122     * @brief Get the current direction of a ctxpopup.
25123     *
25124     * @param obj Ctxpopup object
25125     * @return current direction of a ctxpopup
25126     *
25127     * @warning Once the ctxpopup showed up, the direction would be determined
25128     */
25129    EAPI Elm_Ctxpopup_Direction elm_ctxpopup_direction_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25130
25131    /**
25132     * @}
25133     */
25134
25135    /* transit */
25136    /**
25137     *
25138     * @defgroup Transit Transit
25139     * @ingroup Elementary
25140     *
25141     * Transit is designed to apply various animated transition effects to @c
25142     * Evas_Object, such like translation, rotation, etc. For using these
25143     * effects, create an @ref Elm_Transit and add the desired transition effects.
25144     *
25145     * Once the effects are added into transit, they will be automatically
25146     * managed (their callback will be called until the duration is ended, and
25147     * they will be deleted on completion).
25148     *
25149     * Example:
25150     * @code
25151     * Elm_Transit *trans = elm_transit_add();
25152     * elm_transit_object_add(trans, obj);
25153     * elm_transit_effect_translation_add(trans, 0, 0, 280, 280
25154     * elm_transit_duration_set(transit, 1);
25155     * elm_transit_auto_reverse_set(transit, EINA_TRUE);
25156     * elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
25157     * elm_transit_repeat_times_set(transit, 3);
25158     * @endcode
25159     *
25160     * Some transition effects are used to change the properties of objects. They
25161     * are:
25162     * @li @ref elm_transit_effect_translation_add
25163     * @li @ref elm_transit_effect_color_add
25164     * @li @ref elm_transit_effect_rotation_add
25165     * @li @ref elm_transit_effect_wipe_add
25166     * @li @ref elm_transit_effect_zoom_add
25167     * @li @ref elm_transit_effect_resizing_add
25168     *
25169     * Other transition effects are used to make one object disappear and another
25170     * object appear on its old place. These effects are:
25171     *
25172     * @li @ref elm_transit_effect_flip_add
25173     * @li @ref elm_transit_effect_resizable_flip_add
25174     * @li @ref elm_transit_effect_fade_add
25175     * @li @ref elm_transit_effect_blend_add
25176     *
25177     * It's also possible to make a transition chain with @ref
25178     * elm_transit_chain_transit_add.
25179     *
25180     * @warning We strongly recommend to use elm_transit just when edje can not do
25181     * the trick. Edje has more advantage than Elm_Transit, it has more flexibility and
25182     * animations can be manipulated inside the theme.
25183     *
25184     * List of examples:
25185     * @li @ref transit_example_01_explained
25186     * @li @ref transit_example_02_explained
25187     * @li @ref transit_example_03_c
25188     * @li @ref transit_example_04_c
25189     *
25190     * @{
25191     */
25192
25193    /**
25194     * @enum Elm_Transit_Tween_Mode
25195     *
25196     * The type of acceleration used in the transition.
25197     */
25198    typedef enum
25199      {
25200         ELM_TRANSIT_TWEEN_MODE_LINEAR, /**< Constant speed */
25201         ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL, /**< Starts slow, increase speed
25202                                              over time, then decrease again
25203                                              and stop slowly */
25204         ELM_TRANSIT_TWEEN_MODE_DECELERATE, /**< Starts fast and decrease
25205                                              speed over time */
25206         ELM_TRANSIT_TWEEN_MODE_ACCELERATE /**< Starts slow and increase speed
25207                                             over time */
25208      } Elm_Transit_Tween_Mode;
25209
25210    /**
25211     * @enum Elm_Transit_Effect_Flip_Axis
25212     *
25213     * The axis where flip effect should be applied.
25214     */
25215    typedef enum
25216      {
25217         ELM_TRANSIT_EFFECT_FLIP_AXIS_X, /**< Flip on X axis */
25218         ELM_TRANSIT_EFFECT_FLIP_AXIS_Y /**< Flip on Y axis */
25219      } Elm_Transit_Effect_Flip_Axis;
25220    /**
25221     * @enum Elm_Transit_Effect_Wipe_Dir
25222     *
25223     * The direction where the wipe effect should occur.
25224     */
25225    typedef enum
25226      {
25227         ELM_TRANSIT_EFFECT_WIPE_DIR_LEFT, /**< Wipe to the left */
25228         ELM_TRANSIT_EFFECT_WIPE_DIR_RIGHT, /**< Wipe to the right */
25229         ELM_TRANSIT_EFFECT_WIPE_DIR_UP, /**< Wipe up */
25230         ELM_TRANSIT_EFFECT_WIPE_DIR_DOWN /**< Wipe down */
25231      } Elm_Transit_Effect_Wipe_Dir;
25232    /** @enum Elm_Transit_Effect_Wipe_Type
25233     *
25234     * Whether the wipe effect should show or hide the object.
25235     */
25236    typedef enum
25237      {
25238         ELM_TRANSIT_EFFECT_WIPE_TYPE_HIDE, /**< Hide the object during the
25239                                              animation */
25240         ELM_TRANSIT_EFFECT_WIPE_TYPE_SHOW /**< Show the object during the
25241                                             animation */
25242      } Elm_Transit_Effect_Wipe_Type;
25243
25244    /**
25245     * @typedef Elm_Transit
25246     *
25247     * The Transit created with elm_transit_add(). This type has the information
25248     * about the objects which the transition will be applied, and the
25249     * transition effects that will be used. It also contains info about
25250     * duration, number of repetitions, auto-reverse, etc.
25251     */
25252    typedef struct _Elm_Transit Elm_Transit;
25253    typedef void Elm_Transit_Effect;
25254    /**
25255     * @typedef Elm_Transit_Effect_Transition_Cb
25256     *
25257     * Transition callback called for this effect on each transition iteration.
25258     */
25259    typedef void (*Elm_Transit_Effect_Transition_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit, double progress);
25260    /**
25261     * Elm_Transit_Effect_End_Cb
25262     *
25263     * Transition callback called for this effect when the transition is over.
25264     */
25265    typedef void (*Elm_Transit_Effect_End_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit);
25266
25267    /**
25268     * Elm_Transit_Del_Cb
25269     *
25270     * A callback called when the transit is deleted.
25271     */
25272    typedef void (*Elm_Transit_Del_Cb) (void *data, Elm_Transit *transit);
25273
25274    /**
25275     * Add new transit.
25276     *
25277     * @note Is not necessary to delete the transit object, it will be deleted at
25278     * the end of its operation.
25279     * @note The transit will start playing when the program enter in the main loop, is not
25280     * necessary to give a start to the transit.
25281     *
25282     * @return The transit object.
25283     *
25284     * @ingroup Transit
25285     */
25286    EAPI Elm_Transit                *elm_transit_add(void);
25287
25288    /**
25289     * Stops the animation and delete the @p transit object.
25290     *
25291     * Call this function if you wants to stop the animation before the duration
25292     * time. Make sure the @p transit object is still alive with
25293     * elm_transit_del_cb_set() function.
25294     * All added effects will be deleted, calling its repective data_free_cb
25295     * functions. The function setted by elm_transit_del_cb_set() will be called.
25296     *
25297     * @see elm_transit_del_cb_set()
25298     *
25299     * @param transit The transit object to be deleted.
25300     *
25301     * @ingroup Transit
25302     * @warning Just call this function if you are sure the transit is alive.
25303     */
25304    EAPI void                        elm_transit_del(Elm_Transit *transit) EINA_ARG_NONNULL(1);
25305
25306    /**
25307     * Add a new effect to the transit.
25308     *
25309     * @note The cb function and the data are the key to the effect. If you try to
25310     * add an already added effect, nothing is done.
25311     * @note After the first addition of an effect in @p transit, if its
25312     * effect list become empty again, the @p transit will be killed by
25313     * elm_transit_del(transit) function.
25314     *
25315     * Exemple:
25316     * @code
25317     * Elm_Transit *transit = elm_transit_add();
25318     * elm_transit_effect_add(transit,
25319     *                        elm_transit_effect_blend_op,
25320     *                        elm_transit_effect_blend_context_new(),
25321     *                        elm_transit_effect_blend_context_free);
25322     * @endcode
25323     *
25324     * @param transit The transit object.
25325     * @param transition_cb The operation function. It is called when the
25326     * animation begins, it is the function that actually performs the animation.
25327     * It is called with the @p data, @p transit and the time progression of the
25328     * animation (a double value between 0.0 and 1.0).
25329     * @param effect The context data of the effect.
25330     * @param end_cb The function to free the context data, it will be called
25331     * at the end of the effect, it must finalize the animation and free the
25332     * @p data.
25333     *
25334     * @ingroup Transit
25335     * @warning The transit free the context data at the and of the transition with
25336     * the data_free_cb function, do not use the context data in another transit.
25337     */
25338    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);
25339
25340    /**
25341     * Delete an added effect.
25342     *
25343     * This function will remove the effect from the @p transit, calling the
25344     * data_free_cb to free the @p data.
25345     *
25346     * @see elm_transit_effect_add()
25347     *
25348     * @note If the effect is not found, nothing is done.
25349     * @note If the effect list become empty, this function will call
25350     * elm_transit_del(transit), that is, it will kill the @p transit.
25351     *
25352     * @param transit The transit object.
25353     * @param transition_cb The operation function.
25354     * @param effect The context data of the effect.
25355     *
25356     * @ingroup Transit
25357     */
25358    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);
25359
25360    /**
25361     * Add new object to apply the effects.
25362     *
25363     * @note After the first addition of an object in @p transit, if its
25364     * object list become empty again, the @p transit will be killed by
25365     * elm_transit_del(transit) function.
25366     * @note If the @p obj belongs to another transit, the @p obj will be
25367     * removed from it and it will only belong to the @p transit. If the old
25368     * transit stays without objects, it will die.
25369     * @note When you add an object into the @p transit, its state from
25370     * evas_object_pass_events_get(obj) is saved, and it is applied when the
25371     * transit ends, if you change this state whith evas_object_pass_events_set()
25372     * after add the object, this state will change again when @p transit stops to
25373     * run.
25374     *
25375     * @param transit The transit object.
25376     * @param obj Object to be animated.
25377     *
25378     * @ingroup Transit
25379     * @warning It is not allowed to add a new object after transit begins to go.
25380     */
25381    EAPI void                        elm_transit_object_add(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
25382
25383    /**
25384     * Removes an added object from the transit.
25385     *
25386     * @note If the @p obj is not in the @p transit, nothing is done.
25387     * @note If the list become empty, this function will call
25388     * elm_transit_del(transit), that is, it will kill the @p transit.
25389     *
25390     * @param transit The transit object.
25391     * @param obj Object to be removed from @p transit.
25392     *
25393     * @ingroup Transit
25394     * @warning It is not allowed to remove objects after transit begins to go.
25395     */
25396    EAPI void                        elm_transit_object_remove(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
25397
25398    /**
25399     * Get the objects of the transit.
25400     *
25401     * @param transit The transit object.
25402     * @return a Eina_List with the objects from the transit.
25403     *
25404     * @ingroup Transit
25405     */
25406    EAPI const Eina_List            *elm_transit_objects_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25407
25408    /**
25409     * Enable/disable keeping up the objects states.
25410     * If it is not kept, the objects states will be reset when transition ends.
25411     *
25412     * @note @p transit can not be NULL.
25413     * @note One state includes geometry, color, map data.
25414     *
25415     * @param transit The transit object.
25416     * @param state_keep Keeping or Non Keeping.
25417     *
25418     * @ingroup Transit
25419     */
25420    EAPI void                        elm_transit_objects_final_state_keep_set(Elm_Transit *transit, Eina_Bool state_keep) EINA_ARG_NONNULL(1);
25421
25422    /**
25423     * Get a value whether the objects states will be reset or not.
25424     *
25425     * @note @p transit can not be NULL
25426     *
25427     * @see elm_transit_objects_final_state_keep_set()
25428     *
25429     * @param transit The transit object.
25430     * @return EINA_TRUE means the states of the objects will be reset.
25431     * If @p transit is NULL, EINA_FALSE is returned
25432     *
25433     * @ingroup Transit
25434     */
25435    EAPI Eina_Bool                   elm_transit_objects_final_state_keep_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25436
25437    /**
25438     * Set the event enabled when transit is operating.
25439     *
25440     * If @p enabled is EINA_TRUE, the objects of the transit will receives
25441     * events from mouse and keyboard during the animation.
25442     * @note When you add an object with elm_transit_object_add(), its state from
25443     * evas_object_pass_events_get(obj) is saved, and it is applied when the
25444     * transit ends, if you change this state with evas_object_pass_events_set()
25445     * after adding the object, this state will change again when @p transit stops
25446     * to run.
25447     *
25448     * @param transit The transit object.
25449     * @param enabled Events are received when enabled is @c EINA_TRUE, and
25450     * ignored otherwise.
25451     *
25452     * @ingroup Transit
25453     */
25454    EAPI void                        elm_transit_event_enabled_set(Elm_Transit *transit, Eina_Bool enabled) EINA_ARG_NONNULL(1);
25455
25456    /**
25457     * Get the value of event enabled status.
25458     *
25459     * @see elm_transit_event_enabled_set()
25460     *
25461     * @param transit The Transit object
25462     * @return EINA_TRUE, when event is enabled. If @p transit is NULL
25463     * EINA_FALSE is returned
25464     *
25465     * @ingroup Transit
25466     */
25467    EAPI Eina_Bool                   elm_transit_event_enabled_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25468
25469    /**
25470     * Set the user-callback function when the transit is deleted.
25471     *
25472     * @note Using this function twice will overwrite the first function setted.
25473     * @note the @p transit object will be deleted after call @p cb function.
25474     *
25475     * @param transit The transit object.
25476     * @param cb Callback function pointer. This function will be called before
25477     * the deletion of the transit.
25478     * @param data Callback funtion user data. It is the @p op parameter.
25479     *
25480     * @ingroup Transit
25481     */
25482    EAPI void                        elm_transit_del_cb_set(Elm_Transit *transit, Elm_Transit_Del_Cb cb, void *data) EINA_ARG_NONNULL(1);
25483
25484    /**
25485     * Set reverse effect automatically.
25486     *
25487     * If auto reverse is setted, after running the effects with the progress
25488     * parameter from 0 to 1, it will call the effecs again with the progress
25489     * from 1 to 0. The transit will last for a time iqual to (2 * duration * repeat),
25490     * where the duration was setted with the function elm_transit_add and
25491     * the repeat with the function elm_transit_repeat_times_set().
25492     *
25493     * @param transit The transit object.
25494     * @param reverse EINA_TRUE means the auto_reverse is on.
25495     *
25496     * @ingroup Transit
25497     */
25498    EAPI void                        elm_transit_auto_reverse_set(Elm_Transit *transit, Eina_Bool reverse) EINA_ARG_NONNULL(1);
25499
25500    /**
25501     * Get if the auto reverse is on.
25502     *
25503     * @see elm_transit_auto_reverse_set()
25504     *
25505     * @param transit The transit object.
25506     * @return EINA_TRUE means auto reverse is on. If @p transit is NULL
25507     * EINA_FALSE is returned
25508     *
25509     * @ingroup Transit
25510     */
25511    EAPI Eina_Bool                   elm_transit_auto_reverse_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25512
25513    /**
25514     * Set the transit repeat count. Effect will be repeated by repeat count.
25515     *
25516     * This function sets the number of repetition the transit will run after
25517     * the first one, that is, if @p repeat is 1, the transit will run 2 times.
25518     * If the @p repeat is a negative number, it will repeat infinite times.
25519     *
25520     * @note If this function is called during the transit execution, the transit
25521     * will run @p repeat times, ignoring the times it already performed.
25522     *
25523     * @param transit The transit object
25524     * @param repeat Repeat count
25525     *
25526     * @ingroup Transit
25527     */
25528    EAPI void                        elm_transit_repeat_times_set(Elm_Transit *transit, int repeat) EINA_ARG_NONNULL(1);
25529
25530    /**
25531     * Get the transit repeat count.
25532     *
25533     * @see elm_transit_repeat_times_set()
25534     *
25535     * @param transit The Transit object.
25536     * @return The repeat count. If @p transit is NULL
25537     * 0 is returned
25538     *
25539     * @ingroup Transit
25540     */
25541    EAPI int                         elm_transit_repeat_times_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25542
25543    /**
25544     * Set the transit animation acceleration type.
25545     *
25546     * This function sets the tween mode of the transit that can be:
25547     * ELM_TRANSIT_TWEEN_MODE_LINEAR - The default mode.
25548     * ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL - Starts in accelerate mode and ends decelerating.
25549     * ELM_TRANSIT_TWEEN_MODE_DECELERATE - The animation will be slowed over time.
25550     * ELM_TRANSIT_TWEEN_MODE_ACCELERATE - The animation will accelerate over time.
25551     *
25552     * @param transit The transit object.
25553     * @param tween_mode The tween type.
25554     *
25555     * @ingroup Transit
25556     */
25557    EAPI void                        elm_transit_tween_mode_set(Elm_Transit *transit, Elm_Transit_Tween_Mode tween_mode) EINA_ARG_NONNULL(1);
25558
25559    /**
25560     * Get the transit animation acceleration type.
25561     *
25562     * @note @p transit can not be NULL
25563     *
25564     * @param transit The transit object.
25565     * @return The tween type. If @p transit is NULL
25566     * ELM_TRANSIT_TWEEN_MODE_LINEAR is returned.
25567     *
25568     * @ingroup Transit
25569     */
25570    EAPI Elm_Transit_Tween_Mode      elm_transit_tween_mode_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25571
25572    /**
25573     * Set the transit animation time
25574     *
25575     * @note @p transit can not be NULL
25576     *
25577     * @param transit The transit object.
25578     * @param duration The animation time.
25579     *
25580     * @ingroup Transit
25581     */
25582    EAPI void                        elm_transit_duration_set(Elm_Transit *transit, double duration) EINA_ARG_NONNULL(1);
25583
25584    /**
25585     * Get the transit animation time
25586     *
25587     * @note @p transit can not be NULL
25588     *
25589     * @param transit The transit object.
25590     *
25591     * @return The transit animation time.
25592     *
25593     * @ingroup Transit
25594     */
25595    EAPI double                      elm_transit_duration_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25596
25597    /**
25598     * Starts the transition.
25599     * Once this API is called, the transit begins to measure the time.
25600     *
25601     * @note @p transit can not be NULL
25602     *
25603     * @param transit The transit object.
25604     *
25605     * @ingroup Transit
25606     */
25607    EAPI void                        elm_transit_go(Elm_Transit *transit) EINA_ARG_NONNULL(1);
25608
25609    /**
25610     * Pause/Resume the transition.
25611     *
25612     * If you call elm_transit_go again, the transit will be started from the
25613     * beginning, and will be unpaused.
25614     *
25615     * @note @p transit can not be NULL
25616     *
25617     * @param transit The transit object.
25618     * @param paused Whether the transition should be paused or not.
25619     *
25620     * @ingroup Transit
25621     */
25622    EAPI void                        elm_transit_paused_set(Elm_Transit *transit, Eina_Bool paused) EINA_ARG_NONNULL(1);
25623
25624    /**
25625     * Get the value of paused status.
25626     *
25627     * @see elm_transit_paused_set()
25628     *
25629     * @note @p transit can not be NULL
25630     *
25631     * @param transit The transit object.
25632     * @return EINA_TRUE means transition is paused. If @p transit is NULL
25633     * EINA_FALSE is returned
25634     *
25635     * @ingroup Transit
25636     */
25637    EAPI Eina_Bool                   elm_transit_paused_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25638
25639    /**
25640     * Get the time progression of the animation (a double value between 0.0 and 1.0).
25641     *
25642     * The value returned is a fraction (current time / total time). It
25643     * represents the progression position relative to the total.
25644     *
25645     * @note @p transit can not be NULL
25646     *
25647     * @param transit The transit object.
25648     *
25649     * @return The time progression value. If @p transit is NULL
25650     * 0 is returned
25651     *
25652     * @ingroup Transit
25653     */
25654    EAPI double                      elm_transit_progress_value_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25655
25656    /**
25657     * Makes the chain relationship between two transits.
25658     *
25659     * @note @p transit can not be NULL. Transit would have multiple chain transits.
25660     * @note @p chain_transit can not be NULL. Chain transits could be chained to the only one transit.
25661     *
25662     * @param transit The transit object.
25663     * @param chain_transit The chain transit object. This transit will be operated
25664     *        after transit is done.
25665     *
25666     * This function adds @p chain_transit transition to a chain after the @p
25667     * transit, and will be started as soon as @p transit ends. See @ref
25668     * transit_example_02_explained for a full example.
25669     *
25670     * @ingroup Transit
25671     */
25672    EAPI void                        elm_transit_chain_transit_add(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1, 2);
25673
25674    /**
25675     * Cut off the chain relationship between two transits.
25676     *
25677     * @note @p transit can not be NULL. Transit would have the chain relationship with @p chain transit.
25678     * @note @p chain_transit can not be NULL. Chain transits should be chained to the @p transit.
25679     *
25680     * @param transit The transit object.
25681     * @param chain_transit The chain transit object.
25682     *
25683     * This function remove the @p chain_transit transition from the @p transit.
25684     *
25685     * @ingroup Transit
25686     */
25687    EAPI void                        elm_transit_chain_transit_del(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1,2);
25688
25689    /**
25690     * Get the current chain transit list.
25691     *
25692     * @note @p transit can not be NULL.
25693     *
25694     * @param transit The transit object.
25695     * @return chain transit list.
25696     *
25697     * @ingroup Transit
25698     */
25699    EAPI Eina_List                  *elm_transit_chain_transits_get(const Elm_Transit *transit);
25700
25701    /**
25702     * Add the Resizing Effect to Elm_Transit.
25703     *
25704     * @note This API is one of the facades. It creates resizing effect context
25705     * and add it's required APIs to elm_transit_effect_add.
25706     *
25707     * @see elm_transit_effect_add()
25708     *
25709     * @param transit Transit object.
25710     * @param from_w Object width size when effect begins.
25711     * @param from_h Object height size when effect begins.
25712     * @param to_w Object width size when effect ends.
25713     * @param to_h Object height size when effect ends.
25714     * @return Resizing effect context data.
25715     *
25716     * @ingroup Transit
25717     */
25718    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);
25719
25720    /**
25721     * Add the Translation Effect to Elm_Transit.
25722     *
25723     * @note This API is one of the facades. It creates translation effect context
25724     * and add it's required APIs to elm_transit_effect_add.
25725     *
25726     * @see elm_transit_effect_add()
25727     *
25728     * @param transit Transit object.
25729     * @param from_dx X Position variation when effect begins.
25730     * @param from_dy Y Position variation when effect begins.
25731     * @param to_dx X Position variation when effect ends.
25732     * @param to_dy Y Position variation when effect ends.
25733     * @return Translation effect context data.
25734     *
25735     * @ingroup Transit
25736     * @warning It is highly recommended just create a transit with this effect when
25737     * the window that the objects of the transit belongs has already been created.
25738     * This is because this effect needs the geometry information about the objects,
25739     * and if the window was not created yet, it can get a wrong information.
25740     */
25741    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);
25742
25743    /**
25744     * Add the Zoom Effect to Elm_Transit.
25745     *
25746     * @note This API is one of the facades. It creates zoom effect context
25747     * and add it's required APIs to elm_transit_effect_add.
25748     *
25749     * @see elm_transit_effect_add()
25750     *
25751     * @param transit Transit object.
25752     * @param from_rate Scale rate when effect begins (1 is current rate).
25753     * @param to_rate Scale rate when effect ends.
25754     * @return Zoom effect context data.
25755     *
25756     * @ingroup Transit
25757     * @warning It is highly recommended just create a transit with this effect when
25758     * the window that the objects of the transit belongs has already been created.
25759     * This is because this effect needs the geometry information about the objects,
25760     * and if the window was not created yet, it can get a wrong information.
25761     */
25762    EAPI Elm_Transit_Effect *elm_transit_effect_zoom_add(Elm_Transit *transit, float from_rate, float to_rate);
25763
25764    /**
25765     * Add the Flip Effect to Elm_Transit.
25766     *
25767     * @note This API is one of the facades. It creates flip effect context
25768     * and add it's required APIs to elm_transit_effect_add.
25769     * @note This effect is applied to each pair of objects in the order they are listed
25770     * in the transit list of objects. The first object in the pair will be the
25771     * "front" object and the second will be the "back" object.
25772     *
25773     * @see elm_transit_effect_add()
25774     *
25775     * @param transit Transit object.
25776     * @param axis Flipping Axis(X or Y).
25777     * @param cw Flipping Direction. EINA_TRUE is clock-wise.
25778     * @return Flip effect context data.
25779     *
25780     * @ingroup Transit
25781     * @warning It is highly recommended just create a transit with this effect when
25782     * the window that the objects of the transit belongs has already been created.
25783     * This is because this effect needs the geometry information about the objects,
25784     * and if the window was not created yet, it can get a wrong information.
25785     */
25786    EAPI Elm_Transit_Effect *elm_transit_effect_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
25787
25788    /**
25789     * Add the Resizable Flip Effect to Elm_Transit.
25790     *
25791     * @note This API is one of the facades. It creates resizable flip effect context
25792     * and add it's required APIs to elm_transit_effect_add.
25793     * @note This effect is applied to each pair of objects in the order they are listed
25794     * in the transit list of objects. The first object in the pair will be the
25795     * "front" object and the second will be the "back" object.
25796     *
25797     * @see elm_transit_effect_add()
25798     *
25799     * @param transit Transit object.
25800     * @param axis Flipping Axis(X or Y).
25801     * @param cw Flipping Direction. EINA_TRUE is clock-wise.
25802     * @return Resizable flip effect context data.
25803     *
25804     * @ingroup Transit
25805     * @warning It is highly recommended just create a transit with this effect when
25806     * the window that the objects of the transit belongs has already been created.
25807     * This is because this effect needs the geometry information about the objects,
25808     * and if the window was not created yet, it can get a wrong information.
25809     */
25810    EAPI Elm_Transit_Effect *elm_transit_effect_resizable_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
25811
25812    /**
25813     * Add the Wipe Effect to Elm_Transit.
25814     *
25815     * @note This API is one of the facades. It creates wipe effect context
25816     * and add it's required APIs to elm_transit_effect_add.
25817     *
25818     * @see elm_transit_effect_add()
25819     *
25820     * @param transit Transit object.
25821     * @param type Wipe type. Hide or show.
25822     * @param dir Wipe Direction.
25823     * @return Wipe effect context data.
25824     *
25825     * @ingroup Transit
25826     * @warning It is highly recommended just create a transit with this effect when
25827     * the window that the objects of the transit belongs has already been created.
25828     * This is because this effect needs the geometry information about the objects,
25829     * and if the window was not created yet, it can get a wrong information.
25830     */
25831    EAPI Elm_Transit_Effect *elm_transit_effect_wipe_add(Elm_Transit *transit, Elm_Transit_Effect_Wipe_Type type, Elm_Transit_Effect_Wipe_Dir dir);
25832
25833    /**
25834     * Add the Color Effect to Elm_Transit.
25835     *
25836     * @note This API is one of the facades. It creates color effect context
25837     * and add it's required APIs to elm_transit_effect_add.
25838     *
25839     * @see elm_transit_effect_add()
25840     *
25841     * @param transit        Transit object.
25842     * @param  from_r        RGB R when effect begins.
25843     * @param  from_g        RGB G when effect begins.
25844     * @param  from_b        RGB B when effect begins.
25845     * @param  from_a        RGB A when effect begins.
25846     * @param  to_r          RGB R when effect ends.
25847     * @param  to_g          RGB G when effect ends.
25848     * @param  to_b          RGB B when effect ends.
25849     * @param  to_a          RGB A when effect ends.
25850     * @return               Color effect context data.
25851     *
25852     * @ingroup Transit
25853     */
25854    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);
25855
25856    /**
25857     * Add the Fade Effect to Elm_Transit.
25858     *
25859     * @note This API is one of the facades. It creates fade effect context
25860     * and add it's required APIs to elm_transit_effect_add.
25861     * @note This effect is applied to each pair of objects in the order they are listed
25862     * in the transit list of objects. The first object in the pair will be the
25863     * "before" object and the second will be the "after" object.
25864     *
25865     * @see elm_transit_effect_add()
25866     *
25867     * @param transit Transit object.
25868     * @return Fade effect context data.
25869     *
25870     * @ingroup Transit
25871     * @warning It is highly recommended just create a transit with this effect when
25872     * the window that the objects of the transit belongs has already been created.
25873     * This is because this effect needs the color information about the objects,
25874     * and if the window was not created yet, it can get a wrong information.
25875     */
25876    EAPI Elm_Transit_Effect *elm_transit_effect_fade_add(Elm_Transit *transit);
25877
25878    /**
25879     * Add the Blend Effect to Elm_Transit.
25880     *
25881     * @note This API is one of the facades. It creates blend effect context
25882     * and add it's required APIs to elm_transit_effect_add.
25883     * @note This effect is applied to each pair of objects in the order they are listed
25884     * in the transit list of objects. The first object in the pair will be the
25885     * "before" object and the second will be the "after" object.
25886     *
25887     * @see elm_transit_effect_add()
25888     *
25889     * @param transit Transit object.
25890     * @return Blend effect context data.
25891     *
25892     * @ingroup Transit
25893     * @warning It is highly recommended just create a transit with this effect when
25894     * the window that the objects of the transit belongs has already been created.
25895     * This is because this effect needs the color information about the objects,
25896     * and if the window was not created yet, it can get a wrong information.
25897     */
25898    EAPI Elm_Transit_Effect *elm_transit_effect_blend_add(Elm_Transit *transit);
25899
25900    /**
25901     * Add the Rotation Effect to Elm_Transit.
25902     *
25903     * @note This API is one of the facades. It creates rotation effect context
25904     * and add it's required APIs to elm_transit_effect_add.
25905     *
25906     * @see elm_transit_effect_add()
25907     *
25908     * @param transit Transit object.
25909     * @param from_degree Degree when effect begins.
25910     * @param to_degree Degree when effect is ends.
25911     * @return Rotation effect context data.
25912     *
25913     * @ingroup Transit
25914     * @warning It is highly recommended just create a transit with this effect when
25915     * the window that the objects of the transit belongs has already been created.
25916     * This is because this effect needs the geometry information about the objects,
25917     * and if the window was not created yet, it can get a wrong information.
25918     */
25919    EAPI Elm_Transit_Effect *elm_transit_effect_rotation_add(Elm_Transit *transit, float from_degree, float to_degree);
25920
25921    /**
25922     * Add the ImageAnimation Effect to Elm_Transit.
25923     *
25924     * @note This API is one of the facades. It creates image animation effect context
25925     * and add it's required APIs to elm_transit_effect_add.
25926     * The @p images parameter is a list images paths. This list and
25927     * its contents will be deleted at the end of the effect by
25928     * elm_transit_effect_image_animation_context_free() function.
25929     *
25930     * Example:
25931     * @code
25932     * char buf[PATH_MAX];
25933     * Eina_List *images = NULL;
25934     * Elm_Transit *transi = elm_transit_add();
25935     *
25936     * snprintf(buf, sizeof(buf), "%s/images/icon_11.png", PACKAGE_DATA_DIR);
25937     * images = eina_list_append(images, eina_stringshare_add(buf));
25938     *
25939     * snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
25940     * images = eina_list_append(images, eina_stringshare_add(buf));
25941     * elm_transit_effect_image_animation_add(transi, images);
25942     *
25943     * @endcode
25944     *
25945     * @see elm_transit_effect_add()
25946     *
25947     * @param transit Transit object.
25948     * @param images Eina_List of images file paths. This list and
25949     * its contents will be deleted at the end of the effect by
25950     * elm_transit_effect_image_animation_context_free() function.
25951     * @return Image Animation effect context data.
25952     *
25953     * @ingroup Transit
25954     */
25955    EAPI Elm_Transit_Effect *elm_transit_effect_image_animation_add(Elm_Transit *transit, Eina_List *images);
25956    /**
25957     * @}
25958     */
25959
25960   typedef struct _Elm_Store                      Elm_Store;
25961   typedef struct _Elm_Store_Filesystem           Elm_Store_Filesystem;
25962   typedef struct _Elm_Store_Item                 Elm_Store_Item;
25963   typedef struct _Elm_Store_Item_Filesystem      Elm_Store_Item_Filesystem;
25964   typedef struct _Elm_Store_Item_Info            Elm_Store_Item_Info;
25965   typedef struct _Elm_Store_Item_Info_Filesystem Elm_Store_Item_Info_Filesystem;
25966   typedef struct _Elm_Store_Item_Mapping         Elm_Store_Item_Mapping;
25967   typedef struct _Elm_Store_Item_Mapping_Empty   Elm_Store_Item_Mapping_Empty;
25968   typedef struct _Elm_Store_Item_Mapping_Icon    Elm_Store_Item_Mapping_Icon;
25969   typedef struct _Elm_Store_Item_Mapping_Photo   Elm_Store_Item_Mapping_Photo;
25970   typedef struct _Elm_Store_Item_Mapping_Custom  Elm_Store_Item_Mapping_Custom;
25971
25972   typedef Eina_Bool (*Elm_Store_Item_List_Cb) (void *data, Elm_Store_Item_Info *info);
25973   typedef void      (*Elm_Store_Item_Fetch_Cb) (void *data, Elm_Store_Item *sti);
25974   typedef void      (*Elm_Store_Item_Unfetch_Cb) (void *data, Elm_Store_Item *sti);
25975   typedef void     *(*Elm_Store_Item_Mapping_Cb) (void *data, Elm_Store_Item *sti, const char *part);
25976
25977   typedef enum
25978     {
25979        ELM_STORE_ITEM_MAPPING_NONE = 0,
25980        ELM_STORE_ITEM_MAPPING_LABEL, // const char * -> label
25981        ELM_STORE_ITEM_MAPPING_STATE, // Eina_Bool -> state
25982        ELM_STORE_ITEM_MAPPING_ICON, // char * -> icon path
25983        ELM_STORE_ITEM_MAPPING_PHOTO, // char * -> photo path
25984        ELM_STORE_ITEM_MAPPING_CUSTOM, // item->custom(it->data, it, part) -> void * (-> any)
25985        // can add more here as needed by common apps
25986        ELM_STORE_ITEM_MAPPING_LAST
25987     } Elm_Store_Item_Mapping_Type;
25988
25989   struct _Elm_Store_Item_Mapping_Icon
25990     {
25991        // FIXME: allow edje file icons
25992        int                   w, h;
25993        Elm_Icon_Lookup_Order lookup_order;
25994        Eina_Bool             standard_name : 1;
25995        Eina_Bool             no_scale : 1;
25996        Eina_Bool             smooth : 1;
25997        Eina_Bool             scale_up : 1;
25998        Eina_Bool             scale_down : 1;
25999     };
26000
26001   struct _Elm_Store_Item_Mapping_Empty
26002     {
26003        Eina_Bool             dummy;
26004     };
26005
26006   struct _Elm_Store_Item_Mapping_Photo
26007     {
26008        int                   size;
26009     };
26010
26011   struct _Elm_Store_Item_Mapping_Custom
26012     {
26013        Elm_Store_Item_Mapping_Cb func;
26014     };
26015
26016   struct _Elm_Store_Item_Mapping
26017     {
26018        Elm_Store_Item_Mapping_Type     type;
26019        const char                     *part;
26020        int                             offset;
26021        union
26022          {
26023             Elm_Store_Item_Mapping_Empty  empty;
26024             Elm_Store_Item_Mapping_Icon   icon;
26025             Elm_Store_Item_Mapping_Photo  photo;
26026             Elm_Store_Item_Mapping_Custom custom;
26027             // add more types here
26028          } details;
26029     };
26030
26031   struct _Elm_Store_Item_Info
26032     {
26033       Elm_Genlist_Item_Class       *item_class;
26034       const Elm_Store_Item_Mapping *mapping;
26035       void                         *data;
26036       char                         *sort_id;
26037     };
26038
26039   struct _Elm_Store_Item_Info_Filesystem
26040     {
26041       Elm_Store_Item_Info  base;
26042       char                *path;
26043     };
26044
26045 #define ELM_STORE_ITEM_MAPPING_END { ELM_STORE_ITEM_MAPPING_NONE, NULL, 0, { .empty = { EINA_TRUE } } }
26046 #define ELM_STORE_ITEM_MAPPING_OFFSET(st, it) offsetof(st, it)
26047
26048   EAPI void                    elm_store_free(Elm_Store *st);
26049
26050   EAPI Elm_Store              *elm_store_filesystem_new(void);
26051   EAPI void                    elm_store_filesystem_directory_set(Elm_Store *st, const char *dir) EINA_ARG_NONNULL(1);
26052   EAPI const char             *elm_store_filesystem_directory_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
26053   EAPI const char             *elm_store_item_filesystem_path_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
26054
26055   EAPI void                    elm_store_target_genlist_set(Elm_Store *st, Evas_Object *obj) EINA_ARG_NONNULL(1);
26056
26057   EAPI void                    elm_store_cache_set(Elm_Store *st, int max) EINA_ARG_NONNULL(1);
26058   EAPI int                     elm_store_cache_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
26059   EAPI void                    elm_store_list_func_set(Elm_Store *st, Elm_Store_Item_List_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
26060   EAPI void                    elm_store_fetch_func_set(Elm_Store *st, Elm_Store_Item_Fetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
26061   EAPI void                    elm_store_fetch_thread_set(Elm_Store *st, Eina_Bool use_thread) EINA_ARG_NONNULL(1);
26062   EAPI Eina_Bool               elm_store_fetch_thread_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
26063
26064   EAPI void                    elm_store_unfetch_func_set(Elm_Store *st, Elm_Store_Item_Unfetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
26065   EAPI void                    elm_store_sorted_set(Elm_Store *st, Eina_Bool sorted) EINA_ARG_NONNULL(1);
26066   EAPI Eina_Bool               elm_store_sorted_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
26067   EAPI void                    elm_store_item_data_set(Elm_Store_Item *sti, void *data) EINA_ARG_NONNULL(1);
26068   EAPI void                   *elm_store_item_data_get(Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
26069   EAPI const Elm_Store        *elm_store_item_store_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
26070   EAPI const Elm_Genlist_Item *elm_store_item_genlist_item_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
26071
26072    /**
26073     * @defgroup SegmentControl SegmentControl
26074     * @ingroup Elementary
26075     *
26076     * @image html img/widget/segment_control/preview-00.png
26077     * @image latex img/widget/segment_control/preview-00.eps width=\textwidth
26078     *
26079     * @image html img/segment_control.png
26080     * @image latex img/segment_control.eps width=\textwidth
26081     *
26082     * Segment control widget is a horizontal control made of multiple segment
26083     * items, each segment item functioning similar to discrete two state button.
26084     * A segment control groups the items together and provides compact
26085     * single button with multiple equal size segments.
26086     *
26087     * Segment item size is determined by base widget
26088     * size and the number of items added.
26089     * Only one segment item can be at selected state. A segment item can display
26090     * combination of Text and any Evas_Object like Images or other widget.
26091     *
26092     * Smart callbacks one can listen to:
26093     * - "changed" - When the user clicks on a segment item which is not
26094     *   previously selected and get selected. The event_info parameter is the
26095     *   segment item index.
26096     *
26097     * Available styles for it:
26098     * - @c "default"
26099     *
26100     * Here is an example on its usage:
26101     * @li @ref segment_control_example
26102     */
26103
26104    /**
26105     * @addtogroup SegmentControl
26106     * @{
26107     */
26108
26109    typedef struct _Elm_Segment_Item Elm_Segment_Item; /**< Item handle for a segment control widget. */
26110
26111    /**
26112     * Add a new segment control widget to the given parent Elementary
26113     * (container) object.
26114     *
26115     * @param parent The parent object.
26116     * @return a new segment control widget handle or @c NULL, on errors.
26117     *
26118     * This function inserts a new segment control widget on the canvas.
26119     *
26120     * @ingroup SegmentControl
26121     */
26122    EAPI Evas_Object      *elm_segment_control_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26123
26124    /**
26125     * Append a new item to the segment control object.
26126     *
26127     * @param obj The segment control object.
26128     * @param icon The icon object to use for the left side of the item. An
26129     * icon can be any Evas object, but usually it is an icon created
26130     * with elm_icon_add().
26131     * @param label The label of the item.
26132     *        Note that, NULL is different from empty string "".
26133     * @return The created item or @c NULL upon failure.
26134     *
26135     * A new item will be created and appended to the segment control, i.e., will
26136     * be set as @b last item.
26137     *
26138     * If it should be inserted at another position,
26139     * elm_segment_control_item_insert_at() should be used instead.
26140     *
26141     * Items created with this function can be deleted with function
26142     * elm_segment_control_item_del() or elm_segment_control_item_del_at().
26143     *
26144     * @note @p label set to @c NULL is different from empty string "".
26145     * If an item
26146     * only has icon, it will be displayed bigger and centered. If it has
26147     * icon and label, even that an empty string, icon will be smaller and
26148     * positioned at left.
26149     *
26150     * Simple example:
26151     * @code
26152     * sc = elm_segment_control_add(win);
26153     * ic = elm_icon_add(win);
26154     * elm_icon_file_set(ic, "path/to/image", NULL);
26155     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
26156     * elm_segment_control_item_add(sc, ic, "label");
26157     * evas_object_show(sc);
26158     * @endcode
26159     *
26160     * @see elm_segment_control_item_insert_at()
26161     * @see elm_segment_control_item_del()
26162     *
26163     * @ingroup SegmentControl
26164     */
26165    EAPI Elm_Segment_Item *elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon, const char *label) EINA_ARG_NONNULL(1);
26166
26167    /**
26168     * Insert a new item to the segment control object at specified position.
26169     *
26170     * @param obj The segment control object.
26171     * @param icon The icon object to use for the left side of the item. An
26172     * icon can be any Evas object, but usually it is an icon created
26173     * with elm_icon_add().
26174     * @param label The label of the item.
26175     * @param index Item position. Value should be between 0 and items count.
26176     * @return The created item or @c NULL upon failure.
26177
26178     * Index values must be between @c 0, when item will be prepended to
26179     * segment control, and items count, that can be get with
26180     * elm_segment_control_item_count_get(), case when item will be appended
26181     * to segment control, just like elm_segment_control_item_add().
26182     *
26183     * Items created with this function can be deleted with function
26184     * elm_segment_control_item_del() or elm_segment_control_item_del_at().
26185     *
26186     * @note @p label set to @c NULL is different from empty string "".
26187     * If an item
26188     * only has icon, it will be displayed bigger and centered. If it has
26189     * icon and label, even that an empty string, icon will be smaller and
26190     * positioned at left.
26191     *
26192     * @see elm_segment_control_item_add()
26193     * @see elm_segment_control_item_count_get()
26194     * @see elm_segment_control_item_del()
26195     *
26196     * @ingroup SegmentControl
26197     */
26198    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);
26199
26200    /**
26201     * Remove a segment control item from its parent, deleting it.
26202     *
26203     * @param it The item to be removed.
26204     *
26205     * Items can be added with elm_segment_control_item_add() or
26206     * elm_segment_control_item_insert_at().
26207     *
26208     * @ingroup SegmentControl
26209     */
26210    EAPI void              elm_segment_control_item_del(Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
26211
26212    /**
26213     * Remove a segment control item at given index from its parent,
26214     * deleting it.
26215     *
26216     * @param obj The segment control object.
26217     * @param index The position of the segment control item to be deleted.
26218     *
26219     * Items can be added with elm_segment_control_item_add() or
26220     * elm_segment_control_item_insert_at().
26221     *
26222     * @ingroup SegmentControl
26223     */
26224    EAPI void              elm_segment_control_item_del_at(Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
26225
26226    /**
26227     * Get the Segment items count from segment control.
26228     *
26229     * @param obj The segment control object.
26230     * @return Segment items count.
26231     *
26232     * It will just return the number of items added to segment control @p obj.
26233     *
26234     * @ingroup SegmentControl
26235     */
26236    EAPI int               elm_segment_control_item_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26237
26238    /**
26239     * Get the item placed at specified index.
26240     *
26241     * @param obj The segment control object.
26242     * @param index The index of the segment item.
26243     * @return The segment control item or @c NULL on failure.
26244     *
26245     * Index is the position of an item in segment control widget. Its
26246     * range is from @c 0 to <tt> count - 1 </tt>.
26247     * Count is the number of items, that can be get with
26248     * elm_segment_control_item_count_get().
26249     *
26250     * @ingroup SegmentControl
26251     */
26252    EAPI Elm_Segment_Item *elm_segment_control_item_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
26253
26254    /**
26255     * Get the label of item.
26256     *
26257     * @param obj The segment control object.
26258     * @param index The index of the segment item.
26259     * @return The label of the item at @p index.
26260     *
26261     * The return value is a pointer to the label associated to the item when
26262     * it was created, with function elm_segment_control_item_add(), or later
26263     * with function elm_segment_control_item_label_set. If no label
26264     * was passed as argument, it will return @c NULL.
26265     *
26266     * @see elm_segment_control_item_label_set() for more details.
26267     * @see elm_segment_control_item_add()
26268     *
26269     * @ingroup SegmentControl
26270     */
26271    EAPI const char       *elm_segment_control_item_label_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
26272
26273    /**
26274     * Set the label of item.
26275     *
26276     * @param it The item of segment control.
26277     * @param text The label of item.
26278     *
26279     * The label to be displayed by the item.
26280     * Label will be at right of the icon (if set).
26281     *
26282     * If a label was passed as argument on item creation, with function
26283     * elm_control_segment_item_add(), it will be already
26284     * displayed by the item.
26285     *
26286     * @see elm_segment_control_item_label_get()
26287     * @see elm_segment_control_item_add()
26288     *
26289     * @ingroup SegmentControl
26290     */
26291    EAPI void              elm_segment_control_item_label_set(Elm_Segment_Item* it, const char* label) EINA_ARG_NONNULL(1);
26292
26293    /**
26294     * Get the icon associated to the item.
26295     *
26296     * @param obj The segment control object.
26297     * @param index The index of the segment item.
26298     * @return The left side icon associated to the item at @p index.
26299     *
26300     * The return value is a pointer to the icon associated to the item when
26301     * it was created, with function elm_segment_control_item_add(), or later
26302     * with function elm_segment_control_item_icon_set(). If no icon
26303     * was passed as argument, it will return @c NULL.
26304     *
26305     * @see elm_segment_control_item_add()
26306     * @see elm_segment_control_item_icon_set()
26307     *
26308     * @ingroup SegmentControl
26309     */
26310    EAPI Evas_Object      *elm_segment_control_item_icon_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
26311
26312    /**
26313     * Set the icon associated to the item.
26314     *
26315     * @param it The segment control item.
26316     * @param icon The icon object to associate with @p it.
26317     *
26318     * The icon object to use at left side of the item. An
26319     * icon can be any Evas object, but usually it is an icon created
26320     * with elm_icon_add().
26321     *
26322     * Once the icon object is set, a previously set one will be deleted.
26323     * @warning Setting the same icon for two items will cause the icon to
26324     * dissapear from the first item.
26325     *
26326     * If an icon was passed as argument on item creation, with function
26327     * elm_segment_control_item_add(), it will be already
26328     * associated to the item.
26329     *
26330     * @see elm_segment_control_item_add()
26331     * @see elm_segment_control_item_icon_get()
26332     *
26333     * @ingroup SegmentControl
26334     */
26335    EAPI void              elm_segment_control_item_icon_set(Elm_Segment_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
26336
26337    /**
26338     * Get the index of an item.
26339     *
26340     * @param it The segment control item.
26341     * @return The position of item in segment control widget.
26342     *
26343     * Index is the position of an item in segment control widget. Its
26344     * range is from @c 0 to <tt> count - 1 </tt>.
26345     * Count is the number of items, that can be get with
26346     * elm_segment_control_item_count_get().
26347     *
26348     * @ingroup SegmentControl
26349     */
26350    EAPI int               elm_segment_control_item_index_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
26351
26352    /**
26353     * Get the base object of the item.
26354     *
26355     * @param it The segment control item.
26356     * @return The base object associated with @p it.
26357     *
26358     * Base object is the @c Evas_Object that represents that item.
26359     *
26360     * @ingroup SegmentControl
26361     */
26362    EAPI Evas_Object      *elm_segment_control_item_object_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
26363
26364    /**
26365     * Get the selected item.
26366     *
26367     * @param obj The segment control object.
26368     * @return The selected item or @c NULL if none of segment items is
26369     * selected.
26370     *
26371     * The selected item can be unselected with function
26372     * elm_segment_control_item_selected_set().
26373     *
26374     * The selected item always will be highlighted on segment control.
26375     *
26376     * @ingroup SegmentControl
26377     */
26378    EAPI Elm_Segment_Item *elm_segment_control_item_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26379
26380    /**
26381     * Set the selected state of an item.
26382     *
26383     * @param it The segment control item
26384     * @param select The selected state
26385     *
26386     * This sets the selected state of the given item @p it.
26387     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
26388     *
26389     * If a new item is selected the previosly selected will be unselected.
26390     * Previoulsy selected item can be get with function
26391     * elm_segment_control_item_selected_get().
26392     *
26393     * The selected item always will be highlighted on segment control.
26394     *
26395     * @see elm_segment_control_item_selected_get()
26396     *
26397     * @ingroup SegmentControl
26398     */
26399    EAPI void              elm_segment_control_item_selected_set(Elm_Segment_Item *it, Eina_Bool select) EINA_ARG_NONNULL(1);
26400
26401    /**
26402     * @}
26403     */
26404
26405    /**
26406     * @defgroup Grid Grid
26407     *
26408     * The grid is a grid layout widget that lays out a series of children as a
26409     * fixed "grid" of widgets using a given percentage of the grid width and
26410     * height each using the child object.
26411     *
26412     * The Grid uses a "Virtual resolution" that is stretched to fill the grid
26413     * widgets size itself. The default is 100 x 100, so that means the
26414     * position and sizes of children will effectively be percentages (0 to 100)
26415     * of the width or height of the grid widget
26416     *
26417     * @{
26418     */
26419
26420    /**
26421     * Add a new grid to the parent
26422     *
26423     * @param parent The parent object
26424     * @return The new object or NULL if it cannot be created
26425     *
26426     * @ingroup Grid
26427     */
26428    EAPI Evas_Object *elm_grid_add(Evas_Object *parent);
26429
26430    /**
26431     * Set the virtual size of the grid
26432     *
26433     * @param obj The grid object
26434     * @param w The virtual width of the grid
26435     * @param h The virtual height of the grid
26436     *
26437     * @ingroup Grid
26438     */
26439    EAPI void         elm_grid_size_set(Evas_Object *obj, int w, int h);
26440
26441    /**
26442     * Get the virtual size of the grid
26443     *
26444     * @param obj The grid object
26445     * @param w Pointer to integer to store the virtual width of the grid
26446     * @param h Pointer to integer to store the virtual height of the grid
26447     *
26448     * @ingroup Grid
26449     */
26450    EAPI void         elm_grid_size_get(Evas_Object *obj, int *w, int *h);
26451
26452    /**
26453     * Pack child at given position and size
26454     *
26455     * @param obj The grid object
26456     * @param subobj The child to pack
26457     * @param x The virtual x coord at which to pack it
26458     * @param y The virtual y coord at which to pack it
26459     * @param w The virtual width at which to pack it
26460     * @param h The virtual height at which to pack it
26461     *
26462     * @ingroup Grid
26463     */
26464    EAPI void         elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h);
26465
26466    /**
26467     * Unpack a child from a grid object
26468     *
26469     * @param obj The grid object
26470     * @param subobj The child to unpack
26471     *
26472     * @ingroup Grid
26473     */
26474    EAPI void         elm_grid_unpack(Evas_Object *obj, Evas_Object *subobj);
26475
26476    /**
26477     * Faster way to remove all child objects from a grid object.
26478     *
26479     * @param obj The grid object
26480     * @param clear If true, it will delete just removed children
26481     *
26482     * @ingroup Grid
26483     */
26484    EAPI void         elm_grid_clear(Evas_Object *obj, Eina_Bool clear);
26485
26486    /**
26487     * Set packing of an existing child at to position and size
26488     *
26489     * @param subobj The child to set packing of
26490     * @param x The virtual x coord at which to pack it
26491     * @param y The virtual y coord at which to pack it
26492     * @param w The virtual width at which to pack it
26493     * @param h The virtual height at which to pack it
26494     *
26495     * @ingroup Grid
26496     */
26497    EAPI void         elm_grid_pack_set(Evas_Object *subobj, int x, int y, int w, int h);
26498
26499    /**
26500     * get packing of a child
26501     *
26502     * @param subobj The child to query
26503     * @param x Pointer to integer to store the virtual x coord
26504     * @param y Pointer to integer to store the virtual y coord
26505     * @param w Pointer to integer to store the virtual width
26506     * @param h Pointer to integer to store the virtual height
26507     *
26508     * @ingroup Grid
26509     */
26510    EAPI void         elm_grid_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h);
26511
26512    /**
26513     * @}
26514     */
26515
26516    EAPI Evas_Object *elm_factory_add(Evas_Object *parent);
26517    EAPI void         elm_factory_content_set(Evas_Object *obj, Evas_Object *content);
26518    EAPI Evas_Object *elm_factory_content_get(const Evas_Object *obj);
26519    EAPI void         elm_factory_maxmin_mode_set(Evas_Object *obj, Eina_Bool enabled);
26520    EAPI Eina_Bool    elm_factory_maxmin_mode_get(const Evas_Object *obj);
26521    EAPI void         elm_factory_maxmin_reset_set(Evas_Object *obj);
26522
26523    /**
26524     * @defgroup Video Video
26525     *
26526     * This object display an player that let you control an Elm_Video
26527     * object. It take care of updating it's content according to what is
26528     * going on inside the Emotion object. It does activate the remember
26529     * function on the linked Elm_Video object.
26530     *
26531     * Signals that you cann add callback for are :
26532     *
26533     * "forward,clicked" - the user clicked the forward button.
26534     * "info,clicked" - the user clicked the info button.
26535     * "next,clicked" - the user clicked the next button.
26536     * "pause,clicked" - the user clicked the pause button.
26537     * "play,clicked" - the user clicked the play button.
26538     * "prev,clicked" - the user clicked the prev button.
26539     * "rewind,clicked" - the user clicked the rewind button.
26540     * "stop,clicked" - the user clicked the stop button.
26541     */
26542    EAPI Evas_Object *elm_video_add(Evas_Object *parent);
26543    EAPI void elm_video_file_set(Evas_Object *video, const char *filename);
26544    EAPI void elm_video_uri_set(Evas_Object *video, const char *uri);
26545    EAPI Evas_Object *elm_video_emotion_get(Evas_Object *video);
26546    EAPI void elm_video_play(Evas_Object *video);
26547    EAPI void elm_video_pause(Evas_Object *video);
26548    EAPI void elm_video_stop(Evas_Object *video);
26549    EAPI Eina_Bool elm_video_is_playing(Evas_Object *video);
26550    EAPI Eina_Bool elm_video_is_seekable(Evas_Object *video);
26551    EAPI Eina_Bool elm_video_audio_mute_get(Evas_Object *video);
26552    EAPI void elm_video_audio_mute_set(Evas_Object *video, Eina_Bool mute);
26553    EAPI double elm_video_audio_level_get(Evas_Object *video);
26554    EAPI void elm_video_audio_level_set(Evas_Object *video, double volume);
26555    EAPI double elm_video_play_position_get(Evas_Object *video);
26556    EAPI void elm_video_play_position_set(Evas_Object *video, double position);
26557    EAPI double elm_video_play_length_get(Evas_Object *video);
26558    EAPI void elm_video_remember_position_set(Evas_Object *video, Eina_Bool remember);
26559    EAPI Eina_Bool elm_video_remember_position_get(Evas_Object *video);
26560    EAPI const char *elm_video_title_get(Evas_Object *video);
26561
26562    EAPI Evas_Object *elm_player_add(Evas_Object *parent);
26563    EAPI void elm_player_video_set(Evas_Object *player, Evas_Object *video);
26564
26565   /* naviframe */
26566    EAPI Evas_Object        *elm_naviframe_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26567    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);
26568    EAPI Evas_Object        *elm_naviframe_item_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
26569    EAPI void                elm_naviframe_content_preserve_on_pop_set(Evas_Object *obj, Eina_Bool preserve) EINA_ARG_NONNULL(1);
26570    EAPI Eina_Bool           elm_naviframe_content_preserve_on_pop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26571    EAPI Elm_Object_Item    *elm_naviframe_top_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26572    EAPI Elm_Object_Item    *elm_naviframe_bottom_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26573    EAPI void                elm_naviframe_item_style_set(Elm_Object_Item *it, const char *item_style) EINA_ARG_NONNULL(1);
26574    EAPI const char         *elm_naviframe_item_style_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26575    EAPI void                elm_naviframe_item_title_visible_set(Elm_Object_Item *it, Eina_Bool visible) EINA_ARG_NONNULL(1);
26576    EAPI Eina_Bool           elm_naviframe_item_title_visible_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26577
26578 #ifdef __cplusplus
26579 }
26580 #endif
26581
26582 #endif