elementary/ctxpopup - +ingroup
[framework/uifw/elementary.git] / src / lib / Elementary.h.in
1 /*
2  *
3  * vim:ts=8:sw=3:sts=3:expandtab:cino=>5n-3f0^-2{2(0W1st0
4  */
5
6 /**
7 @file Elementary.h.in
8 @brief Elementary Widget Library
9 */
10
11 /**
12 @mainpage Elementary
13 @image html  elementary.png
14 @version 0.8.0
15 @date 2008-2011
16
17 @section intro What is Elementary?
18
19 This is a VERY SIMPLE toolkit. It is not meant for writing extensive desktop
20 applications (yet). Small simple ones with simple needs.
21
22 It is meant to make the programmers work almost brainless but give them lots
23 of flexibility.
24
25 @li @ref Start - Go here to quickly get started with writing Apps
26
27 @section organization Organization
28
29 One can divide Elemementary into three main groups:
30 @li @ref infralist - These are modules that deal with Elementary as a whole.
31 @li @ref widgetslist - These are the widgets you'll compose your UI out of.
32 @li @ref containerslist - These are the containers which hold the widgets.
33
34 @section license License
35
36 LGPL v2 (see COPYING in the base of Elementary's source). This applies to
37 all files in the source tree.
38
39 @section ack Acknowledgements
40 There is a lot that goes into making a widget set, and they don't happen out of
41 nothing. It's like trying to make everyone everywhere happy, regardless of age,
42 gender, race or nationality - and that is really tough. So thanks to people and
43 organisations behind this, as listed in the @ref authors page.
44 */
45
46
47 /**
48  * @defgroup Start Getting Started
49  *
50  * To write an Elementary app, you can get started with the following:
51  *
52 @code
53 #include <Elementary.h>
54 EAPI_MAIN int
55 elm_main(int argc, char **argv)
56 {
57    // create window(s) here and do any application init
58    elm_run(); // run main loop
59    elm_shutdown(); // after mainloop finishes running, shutdown
60    return 0; // exit 0 for exit code
61 }
62 ELM_MAIN()
63 @endcode
64  *
65  * To use autotools (which helps in many ways in the long run, like being able
66  * to immediately create releases of your software directly from your tree
67  * and ensure everything needed to build it is there) you will need a
68  * configure.ac, Makefile.am and autogen.sh file.
69  *
70  * configure.ac:
71  *
72 @verbatim
73 AC_INIT(myapp, 0.0.0, myname@mydomain.com)
74 AC_PREREQ(2.52)
75 AC_CONFIG_SRCDIR(configure.ac)
76 AM_CONFIG_HEADER(config.h)
77 AC_PROG_CC
78 AM_INIT_AUTOMAKE(1.6 dist-bzip2)
79 PKG_CHECK_MODULES([ELEMENTARY], elementary)
80 AC_OUTPUT(Makefile)
81 @endverbatim
82  *
83  * Makefile.am:
84  *
85 @verbatim
86 AUTOMAKE_OPTIONS = 1.4 foreign
87 MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.h.in configure depcomp install-sh missing
88
89 INCLUDES = -I$(top_srcdir)
90
91 bin_PROGRAMS = myapp
92
93 myapp_SOURCES = main.c
94 myapp_LDADD = @ELEMENTARY_LIBS@
95 myapp_CFLAGS = @ELEMENTARY_CFLAGS@
96 @endverbatim
97  *
98  * autogen.sh:
99  *
100 @verbatim
101 #!/bin/sh
102 echo "Running aclocal..." ; aclocal $ACLOCAL_FLAGS || exit 1
103 echo "Running autoheader..." ; autoheader || exit 1
104 echo "Running autoconf..." ; autoconf || exit 1
105 echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
106 ./configure "$@"
107 @endverbatim
108  *
109  * To generate all the things needed to bootstrap just run:
110  *
111 @verbatim
112 ./autogen.sh
113 @endverbatim
114  *
115  * This will generate Makefile.in's, the confgure script and everything else.
116  * After this it works like all normal autotools projects:
117 @verbatim
118 ./configure
119 make
120 sudo make install
121 @endverbatim
122  *
123  * Note sudo was assumed to get root permissions, as this would install in
124  * /usr/local which is system-owned. Use any way you like to gain root, or
125  * specify a different prefix with configure:
126  *
127 @verbatim
128 ./confiugre --prefix=$HOME/mysoftware
129 @endverbatim
130  *
131  * Also remember that autotools buys you some useful commands like:
132 @verbatim
133 make uninstall
134 @endverbatim
135  *
136  * This uninstalls the software after it was installed with "make install".
137  * It is very useful to clear up what you built if you wish to clean the
138  * system.
139  *
140 @verbatim
141 make distcheck
142 @endverbatim
143  *
144  * This firstly checks if your build tree is "clean" and ready for
145  * distribution. It also builds a tarball (myapp-0.0.0.tar.gz) that is
146  * ready to upload and distribute to the world, that contains the generated
147  * Makefile.in's and configure script. The users do not need to run
148  * autogen.sh - just configure and on. They don't need autotools installed.
149  * This tarball also builds cleanly, has all the sources it needs to build
150  * included (that is sources for your application, not libraries it depends
151  * on like Elementary). It builds cleanly in a buildroot and does not
152  * contain any files that are temporarily generated like binaries and other
153  * build-generated files, so the tarball is clean, and no need to worry
154  * about cleaning up your tree before packaging.
155  *
156 @verbatim
157 make clean
158 @endverbatim
159  *
160  * This cleans up all build files (binaries, objects etc.) from the tree.
161  *
162 @verbatim
163 make distclean
164 @endverbatim
165  *
166  * This cleans out all files from the build and from configure's output too.
167  *
168 @verbatim
169 make maintainer-clean
170 @endverbatim
171  *
172  * This deletes all the files autogen.sh will produce so the tree is clean
173  * to be put into a revision-control system (like CVS, SVN or GIT for example).
174  *
175  * There is a more advanced way of making use of the quicklaunch infrastructure
176  * in Elementary (which will not be covered here due to its more advanced
177  * nature).
178  *
179  * Now let's actually create an interactive "Hello World" gui that you can
180  * click the ok button to exit. It's more code because this now does something
181  * much more significant, but it's still very simple:
182  *
183 @code
184 #include <Elementary.h>
185
186 static void
187 on_done(void *data, Evas_Object *obj, void *event_info)
188 {
189    // quit the mainloop (elm_run function will return)
190    elm_exit();
191 }
192
193 EAPI_MAIN int
194 elm_main(int argc, char **argv)
195 {
196    Evas_Object *win, *bg, *box, *lab, *btn;
197
198    // new window - do the usual and give it a name (hello) and title (Hello)
199    win = elm_win_util_standard_add("hello", "Hello");
200    // when the user clicks "close" on a window there is a request to delete
201    evas_object_smart_callback_add(win, "delete,request", on_done, NULL);
202
203    // add a box object - default is vertical. a box holds children in a row,
204    // either horizontally or vertically. nothing more.
205    box = elm_box_add(win);
206    // make the box hotizontal
207    elm_box_horizontal_set(box, EINA_TRUE);
208    // add object as a resize object for the window (controls window minimum
209    // size as well as gets resized if window is resized)
210    elm_win_resize_object_add(win, box);
211    evas_object_show(box);
212
213    // add a label widget, set the text and put it in the pad frame
214    lab = elm_label_add(win);
215    // set default text of the label
216    elm_object_text_set(lab, "Hello out there world!");
217    // pack the label at the end of the box
218    elm_box_pack_end(box, lab);
219    evas_object_show(lab);
220
221    // add an ok button
222    btn = elm_button_add(win);
223    // set default text of button to "OK"
224    elm_object_text_set(btn, "OK");
225    // pack the button at the end of the box
226    elm_box_pack_end(box, btn);
227    evas_object_show(btn);
228    // call on_done when button is clicked
229    evas_object_smart_callback_add(btn, "clicked", on_done, NULL);
230
231    // now we are done, show the window
232    evas_object_show(win);
233
234    // run the mainloop and process events and callbacks
235    elm_run();
236    elm_shutdown();
237    return 0;
238 }
239 ELM_MAIN()
240 @endcode
241    *
242    */
243
244 /**
245 @page authors Authors
246 @author Carsten Haitzler <raster@@rasterman.com>
247 @author Gustavo Sverzut Barbieri <barbieri@@profusion.mobi>
248 @author Cedric Bail <cedric.bail@@free.fr>
249 @author Vincent Torri <vtorri@@univ-evry.fr>
250 @author Daniel Kolesa <quaker66@@gmail.com>
251 @author Jaime Thomas <avi.thomas@@gmail.com>
252 @author Swisscom - http://www.swisscom.ch/
253 @author Christopher Michael <devilhorns@@comcast.net>
254 @author Marco Trevisan (TreviƱo) <mail@@3v1n0.net>
255 @author Michael Bouchaud <michael.bouchaud@@gmail.com>
256 @author Jonathan Atton (Watchwolf) <jonathan.atton@@gmail.com>
257 @author Brian Wang <brian.wang.0721@@gmail.com>
258 @author Mike Blumenkrantz (discomfitor/zmike) <michael.blumenkrantz@@gmail.com>
259 @author Samsung Electronics <tbd>
260 @author Samsung SAIT <tbd>
261 @author Brett Nash <nash@@nash.id.au>
262 @author Bruno Dilly <bdilly@@profusion.mobi>
263 @author Rafael Fonseca <rfonseca@@profusion.mobi>
264 @author Chuneon Park <hermet@@hermet.pe.kr>
265 @author Woohyun Jung <wh0705.jung@@samsung.com>
266 @author Jaehwan Kim <jae.hwan.kim@@samsung.com>
267 @author Wonguk Jeong <wonguk.jeong@@samsung.com>
268 @author Leandro A. F. Pereira <leandro@@profusion.mobi>
269 @author Helen Fornazier <helen.fornazier@@profusion.mobi>
270 @author Gustavo Lima Chaves <glima@@profusion.mobi>
271 @author Fabiano FidĆŖncio <fidencio@@profusion.mobi>
272 @author Tiago FalcĆ£o <tiago@@profusion.mobi>
273 @author Otavio Pontes <otavio@@profusion.mobi>
274 @author Viktor Kojouharov <vkojouharov@@gmail.com>
275 @author Daniel Juyung Seo (SeoZ) <juyung.seo@@samsung.com> <seojuyung2@@gmail.com>
276 @author Sangho Park <sangho.g.park@@samsung.com> <gouache95@@gmail.com>
277 @author Rajeev Ranjan (Rajeev) <rajeev.r@@samsung.com> <rajeev.jnnce@@gmail.com>
278 @author Seunggyun Kim <sgyun.kim@@samsung.com> <tmdrbs@@gmail.com>
279 @author Sohyun Kim <anna1014.kim@@samsung.com> <sohyun.anna@@gmail.com>
280 @author Jihoon Kim <jihoon48.kim@@samsung.com>
281 @author Jeonghyun Yun (arosis) <jh0506.yun@@samsung.com>
282 @author Tom Hacohen <tom@@stosb.com>
283 @author Aharon Hillel <a.hillel@@partner.samsung.com>
284 @author Jonathan Atton (Watchwolf) <jonathan.atton@@gmail.com>
285 @author Shinwoo Kim <kimcinoo@@gmail.com>
286 @author Govindaraju SM <govi.sm@@samsung.com> <govism@@gmail.com>
287 @author Prince Kumar Dubey <prince.dubey@@samsung.com> <prince.dubey@@gmail.com>
288 @author Sung W. Park <sungwoo@@gmail.com>
289 @author Thierry el Borgi <thierry@@substantiel.fr>
290 @author Shilpa Singh <shilpa.singh@@samsung.com> <shilpasingh.o@@gmail.com>
291 @author Chanwook Jung <joey.jung@@samsung.com>
292 @author Hyoyoung Chang <hyoyoung.chang@@samsung.com>
293 @author Guillaume "Kuri" Friloux <guillaume.friloux@@asp64.com>
294 @author Kim Yunhan <spbear@@gmail.com>
295 @author Bluezery <ohpowel@@gmail.com>
296 @author Nicolas Aguirre <aguirre.nicolas@@gmail.com>
297 @author Sanjeev BA <iamsanjeev@@gmail.com>
298
299 Please contact <enlightenment-devel@lists.sourceforge.net> to get in
300 contact with the developers and maintainers.
301  */
302
303 #ifndef ELEMENTARY_H
304 #define ELEMENTARY_H
305
306 /**
307  * @file Elementary.h
308  * @brief Elementary's API
309  *
310  * Elementary API.
311  */
312
313 @ELM_UNIX_DEF@ ELM_UNIX
314 @ELM_WIN32_DEF@ ELM_WIN32
315 @ELM_WINCE_DEF@ ELM_WINCE
316 @ELM_EDBUS_DEF@ ELM_EDBUS
317 @ELM_EFREET_DEF@ ELM_EFREET
318 @ELM_ETHUMB_DEF@ ELM_ETHUMB
319 @ELM_WEB_DEF@ ELM_WEB
320 @ELM_EMAP_DEF@ ELM_EMAP
321 @ELM_DEBUG_DEF@ ELM_DEBUG
322 @ELM_ALLOCA_H_DEF@ ELM_ALLOCA_H
323 @ELM_LIBINTL_H_DEF@ ELM_LIBINTL_H
324 @ELM_DIRENT_H_DEF@ ELM_DIRENT_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 <math.h>
336 #include <fnmatch.h>
337 #include <limits.h>
338 #include <ctype.h>
339 #include <time.h>
340 #ifdef ELM_DIRENT_H
341 # include <dirent.h>
342 #endif
343 #include <pwd.h>
344 #include <errno.h>
345
346 #ifdef ELM_UNIX
347 # include <locale.h>
348 # ifdef ELM_LIBINTL_H
349 #  include <libintl.h>
350 # endif
351 # include <signal.h>
352 # include <grp.h>
353 # include <glob.h>
354 #endif
355
356 #ifdef ELM_ALLOCA_H
357 # include <alloca.h>
358 #endif
359
360 #if defined (ELM_WIN32) || defined (ELM_WINCE)
361 # include <malloc.h>
362 # ifndef alloca
363 #  define alloca _alloca
364 # endif
365 #endif
366
367
368 /* EFL headers */
369 #include <Eina.h>
370 #include <Eet.h>
371 #include <Evas.h>
372 #include <Evas_GL.h>
373 #include <Ecore.h>
374 #include <Ecore_Evas.h>
375 #include <Ecore_File.h>
376 @ELEMENTARY_ECORE_IMF_INC@
377 @ELEMENTARY_ECORE_CON_INC@
378 #include <Edje.h>
379
380 #ifdef ELM_EDBUS
381 # include <E_DBus.h>
382 #endif
383
384 #ifdef ELM_EFREET
385 # include <Efreet.h>
386 # include <Efreet_Mime.h>
387 # include <Efreet_Trash.h>
388 #endif
389
390 #ifdef ELM_ETHUMB
391 # include <Ethumb_Client.h>
392 #endif
393
394 #ifdef ELM_EMAP
395 # include <EMap.h>
396 #endif
397
398 #ifdef EAPI
399 # undef EAPI
400 #endif
401
402 #ifdef _WIN32
403 # ifdef ELEMENTARY_BUILD
404 #  ifdef DLL_EXPORT
405 #   define EAPI __declspec(dllexport)
406 #  else
407 #   define EAPI
408 #  endif /* ! DLL_EXPORT */
409 # else
410 #  define EAPI __declspec(dllimport)
411 # endif /* ! EFL_EVAS_BUILD */
412 #else
413 # ifdef __GNUC__
414 #  if __GNUC__ >= 4
415 #   define EAPI __attribute__ ((visibility("default")))
416 #  else
417 #   define EAPI
418 #  endif
419 # else
420 #  define EAPI
421 # endif
422 #endif /* ! _WIN32 */
423
424 #ifdef _WIN32
425 # define EAPI_MAIN
426 #else
427 # define EAPI_MAIN EAPI
428 #endif
429
430 /* allow usage from c++ */
431 #ifdef __cplusplus
432 extern "C" {
433 #endif
434
435 #define ELM_VERSION_MAJOR @VMAJ@
436 #define ELM_VERSION_MINOR @VMIN@
437
438    typedef struct _Elm_Version
439      {
440         int major;
441         int minor;
442         int micro;
443         int revision;
444      } Elm_Version;
445
446    EAPI extern Elm_Version *elm_version;
447
448 /* handy macros */
449 #define ELM_RECTS_INTERSECT(x, y, w, h, xx, yy, ww, hh) (((x) < ((xx) + (ww))) && ((y) < ((yy) + (hh))) && (((x) + (w)) > (xx)) && (((y) + (h)) > (yy)))
450 #define ELM_PI 3.14159265358979323846
451
452    /**
453     * @defgroup General General
454     *
455     * @brief General Elementary API. Functions that don't relate to
456     * Elementary objects specifically.
457     *
458     * Here are documented functions which init/shutdown the library,
459     * that apply to generic Elementary objects, that deal with
460     * configuration, et cetera.
461     *
462     * @ref general_functions_example_page "This" example contemplates
463     * some of these functions.
464     */
465
466    /**
467     * @addtogroup General
468     * @{
469     */
470
471   /**
472    * Defines couple of standard Evas_Object layers to be used
473    * with evas_object_layer_set().
474    *
475    * @note whenever extending with new values, try to keep some padding
476    *       to siblings so there is room for further extensions.
477    */
478   typedef enum _Elm_Object_Layer
479     {
480        ELM_OBJECT_LAYER_BACKGROUND = EVAS_LAYER_MIN + 64, /**< where to place backgrounds */
481        ELM_OBJECT_LAYER_DEFAULT = 0, /**< Evas_Object default layer (and thus for Elementary) */
482        ELM_OBJECT_LAYER_FOCUS = EVAS_LAYER_MAX - 128, /**< where focus object visualization is */
483        ELM_OBJECT_LAYER_TOOLTIP = EVAS_LAYER_MAX - 64, /**< where to show tooltips */
484        ELM_OBJECT_LAYER_CURSOR = EVAS_LAYER_MAX - 32, /**< where to show cursors */
485        ELM_OBJECT_LAYER_LAST /**< last layer known by Elementary */
486     } Elm_Object_Layer;
487
488 /**************************************************************************/
489    EAPI extern int ELM_ECORE_EVENT_ETHUMB_CONNECT;
490
491    /**
492     * Emitted when the application has reconfigured elementary settings due
493     * to an external configuration tool asking it to.
494     */
495    EAPI extern int ELM_EVENT_CONFIG_ALL_CHANGED;
496
497    /**
498     * Emitted when any Elementary's policy value is changed.
499     */
500    EAPI extern int ELM_EVENT_POLICY_CHANGED;
501
502    /**
503     * @typedef Elm_Event_Policy_Changed
504     *
505     * Data on the event when an Elementary policy has changed
506     */
507     typedef struct _Elm_Event_Policy_Changed Elm_Event_Policy_Changed;
508
509    /**
510     * @struct _Elm_Event_Policy_Changed
511     *
512     * Data on the event when an Elementary policy has changed
513     */
514     struct _Elm_Event_Policy_Changed
515      {
516         unsigned int policy; /**< the policy identifier */
517         int          new_value; /**< value the policy had before the change */
518         int          old_value; /**< new value the policy got */
519     };
520
521    /**
522     * Policy identifiers.
523     */
524     typedef enum _Elm_Policy
525     {
526         ELM_POLICY_QUIT, /**< under which circumstances the application
527                           * should quit automatically. @see
528                           * Elm_Policy_Quit.
529                           */
530         ELM_POLICY_LAST
531     } Elm_Policy; /**< Elementary policy identifiers/groups enumeration.  @see elm_policy_set()
532  */
533
534    typedef enum _Elm_Policy_Quit
535      {
536         ELM_POLICY_QUIT_NONE = 0, /**< never quit the application
537                                    * automatically */
538         ELM_POLICY_QUIT_LAST_WINDOW_CLOSED /**< quit when the
539                                             * application's last
540                                             * window is closed */
541      } Elm_Policy_Quit; /**< Possible values for the #ELM_POLICY_QUIT policy */
542
543    typedef enum _Elm_Focus_Direction
544      {
545         ELM_FOCUS_PREVIOUS,
546         ELM_FOCUS_NEXT
547      } Elm_Focus_Direction;
548
549    typedef enum _Elm_Text_Format
550      {
551         ELM_TEXT_FORMAT_PLAIN_UTF8,
552         ELM_TEXT_FORMAT_MARKUP_UTF8
553      } Elm_Text_Format;
554
555    /**
556     * Line wrapping types.
557     */
558    typedef enum _Elm_Wrap_Type
559      {
560         ELM_WRAP_NONE = 0, /**< No wrap - value is zero */
561         ELM_WRAP_CHAR, /**< Char wrap - wrap between characters */
562         ELM_WRAP_WORD, /**< Word wrap - wrap in allowed wrapping points (as defined in the unicode standard) */
563         ELM_WRAP_MIXED, /**< Mixed wrap - Word wrap, and if that fails, char wrap. */
564         ELM_WRAP_LAST
565      } Elm_Wrap_Type;
566
567    typedef enum
568      {
569         ELM_INPUT_PANEL_LAYOUT_NORMAL,          /**< Default layout */
570         ELM_INPUT_PANEL_LAYOUT_NUMBER,          /**< Number layout */
571         ELM_INPUT_PANEL_LAYOUT_EMAIL,           /**< Email layout */
572         ELM_INPUT_PANEL_LAYOUT_URL,             /**< URL layout */
573         ELM_INPUT_PANEL_LAYOUT_PHONENUMBER,     /**< Phone Number layout */
574         ELM_INPUT_PANEL_LAYOUT_IP,              /**< IP layout */
575         ELM_INPUT_PANEL_LAYOUT_MONTH,           /**< Month layout */
576         ELM_INPUT_PANEL_LAYOUT_NUMBERONLY,      /**< Number Only layout */
577         ELM_INPUT_PANEL_LAYOUT_INVALID
578      } Elm_Input_Panel_Layout;
579
580    typedef enum
581      {
582         ELM_AUTOCAPITAL_TYPE_NONE,
583         ELM_AUTOCAPITAL_TYPE_WORD,
584         ELM_AUTOCAPITAL_TYPE_SENTENCE,
585         ELM_AUTOCAPITAL_TYPE_ALLCHARACTER,
586      } Elm_Autocapital_Type;
587
588    /**
589     * @typedef Elm_Object_Item
590     * An Elementary Object item handle.
591     * @ingroup General
592     */
593    typedef struct _Elm_Object_Item Elm_Object_Item;
594
595
596    /**
597     * Called back when a widget's tooltip is activated and needs content.
598     * @param data user-data given to elm_object_tooltip_content_cb_set()
599     * @param obj owner widget.
600     * @param tooltip The tooltip object (affix content to this!)
601     */
602    typedef Evas_Object *(*Elm_Tooltip_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip);
603
604    /**
605     * Called back when a widget's item tooltip is activated and needs content.
606     * @param data user-data given to elm_object_tooltip_content_cb_set()
607     * @param obj owner widget.
608     * @param tooltip The tooltip object (affix content to this!)
609     * @param item context dependent item. As an example, if tooltip was
610     *        set on Elm_List_Item, then it is of this type.
611     */
612    typedef Evas_Object *(*Elm_Tooltip_Item_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip, void *item);
613
614    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. */
615
616 #ifndef ELM_LIB_QUICKLAUNCH
617 #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 */
618 #else
619 #define ELM_MAIN() int main(int argc, char **argv) {return elm_quicklaunch_fallback(argc, argv);} /**< macro to be used after the elm_main() function */
620 #endif
621
622 /**************************************************************************/
623    /* General calls */
624
625    /**
626     * Initialize Elementary
627     *
628     * @param[in] argc System's argument count value
629     * @param[in] argv System's pointer to array of argument strings
630     * @return The init counter value.
631     *
632     * This function initializes Elementary and increments a counter of
633     * the number of calls to it. It returns the new counter's value.
634     *
635     * @warning This call is exported only for use by the @c ELM_MAIN()
636     * macro. There is no need to use this if you use this macro (which
637     * is highly advisable). An elm_main() should contain the entry
638     * point code for your application, having the same prototype as
639     * elm_init(), and @b not being static (putting the @c EAPI symbol
640     * in front of its type declaration is advisable). The @c
641     * ELM_MAIN() call should be placed just after it.
642     *
643     * Example:
644     * @dontinclude bg_example_01.c
645     * @skip static void
646     * @until ELM_MAIN
647     *
648     * See the full @ref bg_example_01_c "example".
649     *
650     * @see elm_shutdown().
651     * @ingroup General
652     */
653    EAPI int          elm_init(int argc, char **argv);
654
655    /**
656     * Shut down Elementary
657     *
658     * @return The init counter value.
659     *
660     * This should be called at the end of your application, just
661     * before it ceases to do any more processing. This will clean up
662     * any permanent resources your application may have allocated via
663     * Elementary that would otherwise persist.
664     *
665     * @see elm_init() for an example
666     *
667     * @ingroup General
668     */
669    EAPI int          elm_shutdown(void);
670
671    /**
672     * Run Elementary's main loop
673     *
674     * This call should be issued just after all initialization is
675     * completed. This function will not return until elm_exit() is
676     * called. It will keep looping, running the main
677     * (event/processing) loop for Elementary.
678     *
679     * @see elm_init() for an example
680     *
681     * @ingroup General
682     */
683    EAPI void         elm_run(void);
684
685    /**
686     * Exit Elementary's main loop
687     *
688     * If this call is issued, it will flag the main loop to cease
689     * processing and return back to its parent function (usually your
690     * elm_main() function).
691     *
692     * @see elm_init() for an example. There, just after a request to
693     * close the window comes, the main loop will be left.
694     *
695     * @note By using the appropriate #ELM_POLICY_QUIT on your Elementary
696     * applications, you'll be able to get this function called automatically for you.
697     *
698     * @ingroup General
699     */
700    EAPI void         elm_exit(void);
701
702    /**
703     * Provide information in order to make Elementary determine the @b
704     * run time location of the software in question, so other data files
705     * such as images, sound files, executable utilities, libraries,
706     * modules and locale files can be found.
707     *
708     * @param mainfunc This is your application's main function name,
709     *        whose binary's location is to be found. Providing @c NULL
710     *        will make Elementary not to use it
711     * @param dom This will be used as the application's "domain", in the
712     *        form of a prefix to any environment variables that may
713     *        override prefix detection and the directory name, inside the
714     *        standard share or data directories, where the software's
715     *        data files will be looked for.
716     * @param checkfile This is an (optional) magic file's path to check
717     *        for existence (and it must be located in the data directory,
718     *        under the share directory provided above). Its presence will
719     *        help determine the prefix found was correct. Pass @c NULL if
720     *        the check is not to be done.
721     *
722     * This function allows one to re-locate the application somewhere
723     * else after compilation, if the developer wishes for easier
724     * distribution of pre-compiled binaries.
725     *
726     * The prefix system is designed to locate where the given software is
727     * installed (under a common path prefix) at run time and then report
728     * specific locations of this prefix and common directories inside
729     * this prefix like the binary, library, data and locale directories,
730     * through the @c elm_app_*_get() family of functions.
731     *
732     * Call elm_app_info_set() early on before you change working
733     * directory or anything about @c argv[0], so it gets accurate
734     * information.
735     *
736     * It will then try and trace back which file @p mainfunc comes from,
737     * if provided, to determine the application's prefix directory.
738     *
739     * The @p dom parameter provides a string prefix to prepend before
740     * environment variables, allowing a fallback to @b specific
741     * environment variables to locate the software. You would most
742     * probably provide a lowercase string there, because it will also
743     * serve as directory domain, explained next. For environment
744     * variables purposes, this string is made uppercase. For example if
745     * @c "myapp" is provided as the prefix, then the program would expect
746     * @c "MYAPP_PREFIX" as a master environment variable to specify the
747     * exact install prefix for the software, or more specific environment
748     * variables like @c "MYAPP_BIN_DIR", @c "MYAPP_LIB_DIR", @c
749     * "MYAPP_DATA_DIR" and @c "MYAPP_LOCALE_DIR", which could be set by
750     * the user or scripts before launching. If not provided (@c NULL),
751     * environment variables will not be used to override compiled-in
752     * defaults or auto detections.
753     *
754     * The @p dom string also provides a subdirectory inside the system
755     * shared data directory for data files. For example, if the system
756     * directory is @c /usr/local/share, then this directory name is
757     * appended, creating @c /usr/local/share/myapp, if it @p was @c
758     * "myapp". It is expected that the application installs data files in
759     * this directory.
760     *
761     * The @p checkfile is a file name or path of something inside the
762     * share or data directory to be used to test that the prefix
763     * detection worked. For example, your app will install a wallpaper
764     * image as @c /usr/local/share/myapp/images/wallpaper.jpg and so to
765     * check that this worked, provide @c "images/wallpaper.jpg" as the @p
766     * checkfile string.
767     *
768     * @see elm_app_compile_bin_dir_set()
769     * @see elm_app_compile_lib_dir_set()
770     * @see elm_app_compile_data_dir_set()
771     * @see elm_app_compile_locale_set()
772     * @see elm_app_prefix_dir_get()
773     * @see elm_app_bin_dir_get()
774     * @see elm_app_lib_dir_get()
775     * @see elm_app_data_dir_get()
776     * @see elm_app_locale_dir_get()
777     */
778    EAPI void         elm_app_info_set(void *mainfunc, const char *dom, const char *checkfile);
779
780    /**
781     * Provide information on the @b fallback application's binaries
782     * directory, in scenarios where they get overriden by
783     * elm_app_info_set().
784     *
785     * @param dir The path to the default binaries directory (compile time
786     * one)
787     *
788     * @note Elementary will as well use this path to determine actual
789     * names of binaries' directory paths, maybe changing it to be @c
790     * something/local/bin instead of @c something/bin, only, for
791     * example.
792     *
793     * @warning You should call this function @b before
794     * elm_app_info_set().
795     */
796    EAPI void         elm_app_compile_bin_dir_set(const char *dir);
797
798    /**
799     * Provide information on the @b fallback application's libraries
800     * directory, on scenarios where they get overriden by
801     * elm_app_info_set().
802     *
803     * @param dir The path to the default libraries directory (compile
804     * time one)
805     *
806     * @note Elementary will as well use this path to determine actual
807     * names of libraries' directory paths, maybe changing it to be @c
808     * something/lib32 or @c something/lib64 instead of @c something/lib,
809     * only, for example.
810     *
811     * @warning You should call this function @b before
812     * elm_app_info_set().
813     */
814    EAPI void         elm_app_compile_lib_dir_set(const char *dir);
815
816    /**
817     * Provide information on the @b fallback application's data
818     * directory, on scenarios where they get overriden by
819     * elm_app_info_set().
820     *
821     * @param dir The path to the default data directory (compile time
822     * one)
823     *
824     * @note Elementary will as well use this path to determine actual
825     * names of data directory paths, maybe changing it to be @c
826     * something/local/share instead of @c something/share, only, for
827     * example.
828     *
829     * @warning You should call this function @b before
830     * elm_app_info_set().
831     */
832    EAPI void         elm_app_compile_data_dir_set(const char *dir);
833
834    /**
835     * Provide information on the @b fallback application's locale
836     * directory, on scenarios where they get overriden by
837     * elm_app_info_set().
838     *
839     * @param dir The path to the default locale directory (compile time
840     * one)
841     *
842     * @warning You should call this function @b before
843     * elm_app_info_set().
844     */
845    EAPI void         elm_app_compile_locale_set(const char *dir);
846
847    /**
848     * Retrieve the application's run time prefix directory, as set by
849     * elm_app_info_set() and the way (environment) the application was
850     * run from.
851     *
852     * @return The directory prefix the application is actually using.
853     */
854    EAPI const char  *elm_app_prefix_dir_get(void);
855
856    /**
857     * Retrieve the application's run time binaries prefix directory, as
858     * set by elm_app_info_set() and the way (environment) the application
859     * was run from.
860     *
861     * @return The binaries directory prefix the application is actually
862     * using.
863     */
864    EAPI const char  *elm_app_bin_dir_get(void);
865
866    /**
867     * Retrieve the application's run time libraries prefix directory, as
868     * set by elm_app_info_set() and the way (environment) the application
869     * was run from.
870     *
871     * @return The libraries directory prefix the application is actually
872     * using.
873     */
874    EAPI const char  *elm_app_lib_dir_get(void);
875
876    /**
877     * Retrieve the application's run time data prefix directory, as
878     * set by elm_app_info_set() and the way (environment) the application
879     * was run from.
880     *
881     * @return The data directory prefix the application is actually
882     * using.
883     */
884    EAPI const char  *elm_app_data_dir_get(void);
885
886    /**
887     * Retrieve the application's run time locale prefix directory, as
888     * set by elm_app_info_set() and the way (environment) the application
889     * was run from.
890     *
891     * @return The locale directory prefix the application is actually
892     * using.
893     */
894    EAPI const char  *elm_app_locale_dir_get(void);
895
896    /**
897     * Exposed symbol used only by macros and should not be used by apps
898     */
899    EAPI void         elm_quicklaunch_mode_set(Eina_Bool ql_on);
900    
901    /**
902     * Exposed symbol used only by macros and should not be used by apps
903     */
904    EAPI Eina_Bool    elm_quicklaunch_mode_get(void);
905    
906    /**
907     * Exposed symbol used only by macros and should not be used by apps
908     */
909    EAPI int          elm_quicklaunch_init(int argc, char **argv);
910    
911    /**
912     * Exposed symbol used only by macros and should not be used by apps
913     */
914    EAPI int          elm_quicklaunch_sub_init(int argc, char **argv);
915    
916    /**
917     * Exposed symbol used only by macros and should not be used by apps
918     */
919    EAPI int          elm_quicklaunch_sub_shutdown(void);
920    
921    /**
922     * Exposed symbol used only by macros and should not be used by apps
923     */
924    EAPI int          elm_quicklaunch_shutdown(void);
925    
926    /**
927     * Exposed symbol used only by macros and should not be used by apps
928     */
929    EAPI void         elm_quicklaunch_seed(void);
930    
931    /**
932     * Exposed symbol used only by macros and should not be used by apps
933     */
934    EAPI Eina_Bool    elm_quicklaunch_prepare(int argc, char **argv);
935    
936    /**
937     * Exposed symbol used only by macros and should not be used by apps
938     */
939    EAPI Eina_Bool    elm_quicklaunch_fork(int argc, char **argv, char *cwd, void (postfork_func) (void *data), void *postfork_data);
940    
941    /**
942     * Exposed symbol used only by macros and should not be used by apps
943     */
944    EAPI void         elm_quicklaunch_cleanup(void);
945    
946    /**
947     * Exposed symbol used only by macros and should not be used by apps
948     */
949    EAPI int          elm_quicklaunch_fallback(int argc, char **argv);
950    
951    /**
952     * Exposed symbol used only by macros and should not be used by apps
953     */
954    EAPI char        *elm_quicklaunch_exe_path_get(const char *exe);
955
956    /**
957     * Request that your elementary application needs efreet
958     * 
959     * This initializes the Efreet library when called and if support exists
960     * it returns EINA_TRUE, otherwise returns EINA_FALSE. This must be called
961     * before any efreet calls.
962     * 
963     * @return EINA_TRUE if support exists and initialization succeeded.
964     * 
965     * @ingroup Efreet
966     */
967    EAPI Eina_Bool    elm_need_efreet(void);
968    
969    /**
970     * Request that your elementary application needs e_dbus
971     * 
972     * This initializes the E_dbus library when called and if support exists
973     * it returns EINA_TRUE, otherwise returns EINA_FALSE. This must be called
974     * before any e_dbus calls.
975     * 
976     * @return EINA_TRUE if support exists and initialization succeeded.
977     * 
978     * @ingroup E_dbus
979     */
980    EAPI Eina_Bool    elm_need_e_dbus(void);
981
982    /**
983     * Request that your elementary application needs ethumb
984     * 
985     * This initializes the Ethumb library when called and if support exists
986     * it returns EINA_TRUE, otherwise returns EINA_FALSE.
987     * This must be called before any other function that deals with
988     * elm_thumb objects or ethumb_client instances.
989     *
990     * @ingroup Thumb
991     */
992    EAPI Eina_Bool    elm_need_ethumb(void);
993
994    /**
995     * Request that your elementary application needs web support
996     * 
997     * This initializes the Ewebkit library when called and if support exists
998     * it returns EINA_TRUE, otherwise returns EINA_FALSE.
999     * This must be called before any other function that deals with
1000     * elm_web objects or ewk_view instances.
1001     *
1002     * @ingroup Web
1003     */
1004    EAPI Eina_Bool    elm_need_web(void);
1005
1006    /**
1007     * Set a new policy's value (for a given policy group/identifier).
1008     *
1009     * @param policy policy identifier, as in @ref Elm_Policy.
1010     * @param value policy value, which depends on the identifier
1011     *
1012     * @return @c EINA_TRUE on success or @c EINA_FALSE, on error.
1013     *
1014     * Elementary policies define applications' behavior,
1015     * somehow. These behaviors are divided in policy groups (see
1016     * #Elm_Policy enumeration). This call will emit the Ecore event
1017     * #ELM_EVENT_POLICY_CHANGED, which can be hooked at with
1018     * handlers. An #Elm_Event_Policy_Changed struct will be passed,
1019     * then.
1020     *
1021     * @note Currently, we have only one policy identifier/group
1022     * (#ELM_POLICY_QUIT), which has two possible values.
1023     *
1024     * @ingroup General
1025     */
1026    EAPI Eina_Bool    elm_policy_set(unsigned int policy, int value);
1027
1028    /**
1029     * Gets the policy value for given policy identifier.
1030     *
1031     * @param policy policy identifier, as in #Elm_Policy.
1032     * @return The currently set policy value, for that
1033     * identifier. Will be @c 0 if @p policy passed is invalid.
1034     *
1035     * @ingroup General
1036     */
1037    EAPI int          elm_policy_get(unsigned int policy);
1038
1039    /**
1040     * Change the language of the current application
1041     *
1042     * The @p lang passed must be the full name of the locale to use, for
1043     * example "en_US.utf8" or "es_ES@euro".
1044     *
1045     * Changing language with this function will make Elementary run through
1046     * all its widgets, translating strings set with
1047     * elm_object_domain_translatable_text_part_set(). This way, an entire
1048     * UI can have its language changed without having to restart the program.
1049     *
1050     * For more complex cases, like having formatted strings that need
1051     * translation, widgets will also emit a "language,changed" signal that
1052     * the user can listen to to manually translate the text.
1053     *
1054     * @param lang Language to set, must be the full name of the locale
1055     *
1056     * @ingroup General
1057     */
1058    EAPI void         elm_language_set(const char *lang);
1059
1060    /**
1061     * Set a label of an object
1062     *
1063     * @param obj The Elementary object
1064     * @param part The text part name to set (NULL for the default label)
1065     * @param label The new text of the label
1066     *
1067     * @note Elementary objects may have many labels (e.g. Action Slider)
1068     * @deprecated Use elm_object_part_text_set() instead.
1069     * @ingroup General
1070     */
1071    EINA_DEPRECATED EAPI void elm_object_text_part_set(Evas_Object *obj, const char *part, const char *label);
1072
1073    /**
1074     * Set a label of an object
1075     *
1076     * @param obj The Elementary object
1077     * @param part The text part name to set (NULL for the default label)
1078     * @param label The new text of the label
1079     *
1080     * @note Elementary objects may have many labels (e.g. Action Slider)
1081     *
1082     * @ingroup General
1083     */
1084    EAPI void elm_object_part_text_set(Evas_Object *obj, const char *part, const char *label);
1085
1086 #define elm_object_text_set(obj, label) elm_object_part_text_set((obj), NULL, (label))
1087
1088    /**
1089     * Get a label of an object
1090     *
1091     * @param obj The Elementary object
1092     * @param part The text part name to get (NULL for the default label)
1093     * @return text of the label or NULL for any error
1094     *
1095     * @note Elementary objects may have many labels (e.g. Action Slider)
1096     * @deprecated Use elm_object_part_text_get() instead.
1097     * @ingroup General
1098     */
1099    EINA_DEPRECATED EAPI const char  *elm_object_text_part_get(const Evas_Object *obj, const char *part);
1100
1101    /**
1102     * Get a label of an object
1103     *
1104     * @param obj The Elementary object
1105     * @param part The text part name to get (NULL for the default label)
1106     * @return text of the label or NULL for any error
1107     *
1108     * @note Elementary objects may have many labels (e.g. Action Slider)
1109     *
1110     * @ingroup General
1111     */
1112    EAPI const char  *elm_object_part_text_get(const Evas_Object *obj, const char *part);
1113
1114 #define elm_object_text_get(obj) elm_object_part_text_get((obj), NULL)
1115
1116    /**
1117     * Set the text for an objects' part, marking it as translatable.
1118     *
1119     * The string to set as @p text must be the original one. Do not pass the
1120     * return of @c gettext() here. Elementary will translate the string
1121     * internally and set it on the object using elm_object_part_text_set(),
1122     * also storing the original string so that it can be automatically
1123     * translated when the language is changed with elm_language_set().
1124     *
1125     * The @p domain will be stored along to find the translation in the
1126     * correct catalog. It can be NULL, in which case it will use whatever
1127     * domain was set by the application with @c textdomain(). This is useful
1128     * in case you are building a library on top of Elementary that will have
1129     * its own translatable strings, that should not be mixed with those of
1130     * programs using the library.
1131     *
1132     * @param obj The object containing the text part
1133     * @param part The name of the part to set
1134     * @param domain The translation domain to use
1135     * @param text The original, non-translated text to set
1136     *
1137     * @ingroup General
1138     */
1139    EAPI void         elm_object_domain_translatable_text_part_set(Evas_Object *obj, const char *part, const char *domain, const char *text);
1140
1141 #define elm_object_domain_translatable_text_set(obj, domain, text) elm_object_domain_translatable_text_part_set((obj), NULL, (domain), (text))
1142
1143 #define elm_object_translatable_text_set(obj, text) elm_object_domain_translatable_text_part_set((obj), NULL, NULL, (text))
1144
1145    /**
1146     * Gets the original string set as translatable for an object
1147     *
1148     * When setting translated strings, the function elm_object_part_text_get()
1149     * will return the translation returned by @c gettext(). To get the
1150     * original string use this function.
1151     *
1152     * @param obj The object
1153     * @param part The name of the part that was set
1154     *
1155     * @return The original, untranslated string
1156     *
1157     * @ingroup General
1158     */
1159    EAPI const char  *elm_object_translatable_text_part_get(const Evas_Object *obj, const char *part);
1160
1161 #define elm_object_translatable_text_get(obj) elm_object_translatable_text_part_get((obj), NULL)
1162
1163    /**
1164     * Set a content of an object
1165     *
1166     * @param obj The Elementary object
1167     * @param part The content part name to set (NULL for the default content)
1168     * @param content The new content of the object
1169     *
1170     * @note Elementary objects may have many contents
1171     * @deprecated Use elm_object_part_content_set instead.
1172     * @ingroup General
1173     */
1174    EINA_DEPRECATED EAPI void elm_object_content_part_set(Evas_Object *obj, const char *part, Evas_Object *content);
1175
1176    /**
1177     * Set a content of an object
1178     *
1179     * @param obj The Elementary object
1180     * @param part The content part name to set (NULL for the default content)
1181     * @param content The new content of the object
1182     *
1183     * @note Elementary objects may have many contents
1184     *
1185     * @ingroup General
1186     */
1187    EAPI void elm_object_part_content_set(Evas_Object *obj, const char *part, Evas_Object *content);
1188
1189 #define elm_object_content_set(obj, content) elm_object_part_content_set((obj), NULL, (content))
1190
1191    /**
1192     * Get a content of an object
1193     *
1194     * @param obj The Elementary object
1195     * @param item The content part name to get (NULL for the default content)
1196     * @return content of the object or NULL for any error
1197     *
1198     * @note Elementary objects may have many contents
1199     * @deprecated Use elm_object_part_content_get instead.
1200     * @ingroup General
1201     */
1202    EINA_DEPRECATED EAPI Evas_Object *elm_object_content_part_get(const Evas_Object *obj, const char *part);
1203
1204    /**
1205     * Get a content of an object
1206     *
1207     * @param obj The Elementary object
1208     * @param item The content part name to get (NULL for the default content)
1209     * @return content of the object or NULL for any error
1210     *
1211     * @note Elementary objects may have many contents
1212     *
1213     * @ingroup General
1214     */
1215    EAPI Evas_Object *elm_object_part_content_get(const Evas_Object *obj, const char *part);
1216
1217 #define elm_object_content_get(obj) elm_object_part_content_get((obj), NULL)
1218
1219    /**
1220     * Unset a content of an object
1221     *
1222     * @param obj The Elementary object
1223     * @param item The content part name to unset (NULL for the default content)
1224     *
1225     * @note Elementary objects may have many contents
1226     * @deprecated Use elm_object_part_content_unset instead.
1227     * @ingroup General
1228     */
1229    EINA_DEPRECATED EAPI Evas_Object *elm_object_content_part_unset(Evas_Object *obj, const char *part);
1230
1231    /**
1232     * Unset a content of an object
1233     *
1234     * @param obj The Elementary object
1235     * @param item The content part name to unset (NULL for the default content)
1236     *
1237     * @note Elementary objects may have many contents
1238     *
1239     * @ingroup General
1240     */
1241    EAPI Evas_Object *elm_object_part_content_unset(Evas_Object *obj, const char *part);
1242
1243 #define elm_object_content_unset(obj) elm_object_part_content_unset((obj), NULL)
1244
1245    /**
1246     * Set the text to read out when in accessibility mode
1247     *
1248     * @param obj The object which is to be described
1249     * @param txt The text that describes the widget to people with poor or no vision
1250     *
1251     * @ingroup General
1252     */
1253    EAPI void elm_object_access_info_set(Evas_Object *obj, const char *txt);
1254
1255    /**
1256     * Get the widget object's handle which contains a given item
1257     *
1258     * @param item The Elementary object item
1259     * @return The widget object
1260     *
1261     * @note This returns the widget object itself that an item belongs to.
1262     *
1263     * @ingroup General
1264     */
1265    EAPI Evas_Object *elm_object_item_object_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
1266
1267    /**
1268     * Set a content of an object item
1269     *
1270     * @param it The Elementary object item
1271     * @param part The content part name to set (NULL for the default content)
1272     * @param content The new content of the object item
1273     *
1274     * @note Elementary object items may have many contents
1275     * @deprecated Use elm_object_item_part_content_set instead.
1276     * @ingroup General
1277     */
1278    EINA_DEPRECATED EAPI void elm_object_item_content_part_set(Elm_Object_Item *it, const char *part, Evas_Object *content);
1279
1280    /**
1281     * Set a content of an object item
1282     *
1283     * @param it The Elementary object item
1284     * @param part The content part name to set (NULL for the default content)
1285     * @param content The new content of the object item
1286     *
1287     * @note Elementary object items may have many contents
1288     *
1289     * @ingroup General
1290     */
1291    EAPI void elm_object_item_part_content_set(Elm_Object_Item *it, const char *part, Evas_Object *content);
1292
1293 #define elm_object_item_content_set(it, content) elm_object_item_part_content_set((it), NULL, (content))
1294
1295    /**
1296     * Get a content of an object item
1297     *
1298     * @param it The Elementary object item
1299     * @param part The content part name to unset (NULL for the default content)
1300     * @return content of the object item or NULL for any error
1301     *
1302     * @note Elementary object items may have many contents
1303     * @deprecated Use elm_object_item_part_content_get instead.
1304     * @ingroup General
1305     */
1306    EAPI Evas_Object *elm_object_item_content_part_get(const Elm_Object_Item *it, const char *part);
1307
1308    /**
1309     * Get a content of an object item
1310     *
1311     * @param it The Elementary object item
1312     * @param part The content part name to unset (NULL for the default content)
1313     * @return content of the object item or NULL for any error
1314     *
1315     * @note Elementary object items may have many contents
1316     *
1317     * @ingroup General
1318     */
1319    EAPI Evas_Object *elm_object_item_part_content_get(const Elm_Object_Item *it, const char *part);
1320
1321 #define elm_object_item_content_get(it) elm_object_item_part_content_get((it), NULL)
1322
1323    /**
1324     * Unset a content of an object item
1325     *
1326     * @param it The Elementary object item
1327     * @param part The content part name to unset (NULL for the default content)
1328     *
1329     * @note Elementary object items may have many contents
1330     * @deprecated Use elm_object_item_part_content_unset instead.
1331     * @ingroup General
1332     */
1333    EINA_DEPRECATED EAPI Evas_Object *elm_object_item_content_part_unset(Elm_Object_Item *it, const char *part);
1334
1335    /**
1336     * Unset a content of an object item
1337     *
1338     * @param it The Elementary object item
1339     * @param part The content part name to unset (NULL for the default content)
1340     *
1341     * @note Elementary object items may have many contents
1342     *
1343     * @ingroup General
1344     */
1345    EAPI Evas_Object *elm_object_item_part_content_unset(Elm_Object_Item *it, const char *part);
1346
1347 #define elm_object_item_content_unset(it) elm_object_item_part_content_unset((it), NULL)
1348
1349    /**
1350     * Set a label of an object item
1351     *
1352     * @param it The Elementary object item
1353     * @param part The text part name to set (NULL for the default label)
1354     * @param label The new text of the label
1355     *
1356     * @note Elementary object items may have many labels
1357     * @deprecated Use elm_object_item_part_text_set instead.
1358     * @ingroup General
1359     */
1360    EINA_DEPRECATED EAPI void elm_object_item_text_part_set(Elm_Object_Item *it, const char *part, const char *label);
1361
1362    /**
1363     * Set a label of an object item
1364     *
1365     * @param it The Elementary object item
1366     * @param part The text part name to set (NULL for the default label)
1367     * @param label The new text of the label
1368     *
1369     * @note Elementary object items may have many labels
1370     *
1371     * @ingroup General
1372     */
1373    EAPI void elm_object_item_part_text_set(Elm_Object_Item *it, const char *part, const char *label);
1374
1375 #define elm_object_item_text_set(it, label) elm_object_item_part_text_set((it), NULL, (label))
1376
1377    /**
1378     * Get a label of an object item
1379     *
1380     * @param it The Elementary object item
1381     * @param part The text part name to get (NULL for the default label)
1382     * @return text of the label or NULL for any error
1383     *
1384     * @note Elementary object items may have many labels
1385     * @deprecated Use elm_object_item_part_text_get instead.
1386     * @ingroup General
1387     */
1388    EINA_DEPRECATED EAPI const char *elm_object_item_text_part_get(const Elm_Object_Item *it, const char *part);
1389    /**
1390     * Get a label of an object item
1391     *
1392     * @param it The Elementary object item
1393     * @param part The text part name to get (NULL for the default label)
1394     * @return text of the label or NULL for any error
1395     *
1396     * @note Elementary object items may have many labels
1397     *
1398     * @ingroup General
1399     */
1400    EAPI const char *elm_object_item_part_text_get(const Elm_Object_Item *it, const char *part);
1401
1402 #define elm_object_item_text_get(it) elm_object_item_part_text_get((it), NULL)
1403
1404    /**
1405     * Set the text to read out when in accessibility mode
1406     *
1407     * @param it The object item which is to be described
1408     * @param txt The text that describes the widget to people with poor or no vision
1409     *
1410     * @ingroup General
1411     */
1412    EAPI void elm_object_item_access_info_set(Elm_Object_Item *it, const char *txt);
1413
1414    /**
1415     * Get the data associated with an object item
1416     * @param it The Elementary object item
1417     * @return The data associated with @p it
1418     *
1419     * @ingroup General
1420     */
1421    EAPI void *elm_object_item_data_get(const Elm_Object_Item *it);
1422
1423    /**
1424     * Set the data associated with an object item
1425     * @param it The Elementary object item
1426     * @param data The data to be associated with @p it
1427     *
1428     * @ingroup General
1429     */
1430    EAPI void elm_object_item_data_set(Elm_Object_Item *it, void *data);
1431
1432    /**
1433     * Send a signal to the edje object of the widget item.
1434     *
1435     * This function sends a signal to the edje object of the obj item. An
1436     * edje program can respond to a signal by specifying matching
1437     * 'signal' and 'source' fields.
1438     *
1439     * @param it The Elementary object item
1440     * @param emission The signal's name.
1441     * @param source The signal's source.
1442     * @ingroup General
1443     */
1444    EAPI void elm_object_item_signal_emit(Elm_Object_Item *it, const char *emission, const char *source) EINA_ARG_NONNULL(1);
1445
1446    /**
1447     * Set the disabled state of an widget item.
1448     *
1449     * @param obj The Elementary object item
1450     * @param disabled The state to put in in: @c EINA_TRUE for
1451     *        disabled, @c EINA_FALSE for enabled
1452     *
1453     * Elementary object item can be @b disabled, in which state they won't
1454     * receive input and, in general, will be themed differently from
1455     * their normal state, usually greyed out. Useful for contexts
1456     * where you don't want your users to interact with some of the
1457     * parts of you interface.
1458     *
1459     * This sets the state for the widget item, either disabling it or
1460     * enabling it back.
1461     *
1462     * @ingroup Styles
1463     */
1464    EAPI void elm_object_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
1465
1466    /**
1467     * Get the disabled state of an widget item.
1468     *
1469     * @param obj The Elementary object
1470     * @return @c EINA_TRUE, if the widget item is disabled, @c EINA_FALSE
1471     *            if it's enabled (or on errors)
1472     *
1473     * This gets the state of the widget, which might be enabled or disabled.
1474     *
1475     * @ingroup Styles
1476     */
1477    EAPI Eina_Bool    elm_object_item_disabled_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
1478
1479    /**
1480     * @}
1481     */
1482
1483    /**
1484     * @defgroup Caches Caches
1485     *
1486     * These are functions which let one fine-tune some cache values for
1487     * Elementary applications, thus allowing for performance adjustments.
1488     *
1489     * @{
1490     */
1491
1492    /**
1493     * @brief Flush all caches.
1494     *
1495     * Frees all data that was in cache and is not currently being used to reduce
1496     * memory usage. This frees Edje's, Evas' and Eet's cache. This is equivalent
1497     * to calling all of the following functions:
1498     * @li edje_file_cache_flush()
1499     * @li edje_collection_cache_flush()
1500     * @li eet_clearcache()
1501     * @li evas_image_cache_flush()
1502     * @li evas_font_cache_flush()
1503     * @li evas_render_dump()
1504     * @note Evas caches are flushed for every canvas associated with a window.
1505     *
1506     * @ingroup Caches
1507     */
1508    EAPI void         elm_all_flush(void);
1509
1510    /**
1511     * Get the configured cache flush interval time
1512     *
1513     * This gets the globally configured cache flush interval time, in
1514     * ticks
1515     *
1516     * @return The cache flush interval time
1517     * @ingroup Caches
1518     *
1519     * @see elm_all_flush()
1520     */
1521    EAPI int          elm_cache_flush_interval_get(void);
1522
1523    /**
1524     * Set the configured cache flush interval time
1525     *
1526     * This sets the globally configured cache flush interval time, in ticks
1527     *
1528     * @param size The cache flush interval time
1529     * @ingroup Caches
1530     *
1531     * @see elm_all_flush()
1532     */
1533    EAPI void         elm_cache_flush_interval_set(int size);
1534
1535    /**
1536     * Set the configured cache flush interval time for all applications on the
1537     * display
1538     *
1539     * This sets the globally configured cache flush interval time -- in ticks
1540     * -- for all applications on the display.
1541     *
1542     * @param size The cache flush interval time
1543     * @ingroup Caches
1544     */
1545    EAPI void         elm_cache_flush_interval_all_set(int size);
1546
1547    /**
1548     * Get the configured cache flush enabled state
1549     *
1550     * This gets the globally configured cache flush state - if it is enabled
1551     * or not. When cache flushing is enabled, elementary will regularly
1552     * (see elm_cache_flush_interval_get() ) flush caches and dump data out of
1553     * memory and allow usage to re-seed caches and data in memory where it
1554     * can do so. An idle application will thus minimise its memory usage as
1555     * data will be freed from memory and not be re-loaded as it is idle and
1556     * not rendering or doing anything graphically right now.
1557     *
1558     * @return The cache flush state
1559     * @ingroup Caches
1560     *
1561     * @see elm_all_flush()
1562     */
1563    EAPI Eina_Bool    elm_cache_flush_enabled_get(void);
1564
1565    /**
1566     * Set the configured cache flush enabled state
1567     *
1568     * This sets the globally configured cache flush enabled state.
1569     *
1570     * @param size The cache flush enabled state
1571     * @ingroup Caches
1572     *
1573     * @see elm_all_flush()
1574     */
1575    EAPI void         elm_cache_flush_enabled_set(Eina_Bool enabled);
1576
1577    /**
1578     * Set the configured cache flush enabled state for all applications on the
1579     * display
1580     *
1581     * This sets the globally configured cache flush enabled state for all
1582     * applications on the display.
1583     *
1584     * @param size The cache flush enabled state
1585     * @ingroup Caches
1586     */
1587    EAPI void         elm_cache_flush_enabled_all_set(Eina_Bool enabled);
1588
1589    /**
1590     * Get the configured font cache size
1591     *
1592     * This gets the globally configured font cache size, in bytes.
1593     *
1594     * @return The font cache size
1595     * @ingroup Caches
1596     */
1597    EAPI int          elm_font_cache_get(void);
1598
1599    /**
1600     * Set the configured font cache size
1601     *
1602     * This sets the globally configured font cache size, in bytes
1603     *
1604     * @param size The font cache size
1605     * @ingroup Caches
1606     */
1607    EAPI void         elm_font_cache_set(int size);
1608
1609    /**
1610     * Set the configured font cache size for all applications on the
1611     * display
1612     *
1613     * This sets the globally configured font cache size -- in bytes
1614     * -- for all applications on the display.
1615     *
1616     * @param size The font cache size
1617     * @ingroup Caches
1618     */
1619    EAPI void         elm_font_cache_all_set(int size);
1620
1621    /**
1622     * Get the configured image cache size
1623     *
1624     * This gets the globally configured image cache size, in bytes
1625     *
1626     * @return The image cache size
1627     * @ingroup Caches
1628     */
1629    EAPI int          elm_image_cache_get(void);
1630
1631    /**
1632     * Set the configured image cache size
1633     *
1634     * This sets the globally configured image cache size, in bytes
1635     *
1636     * @param size The image cache size
1637     * @ingroup Caches
1638     */
1639    EAPI void         elm_image_cache_set(int size);
1640
1641    /**
1642     * Set the configured image cache size for all applications on the
1643     * display
1644     *
1645     * This sets the globally configured image cache size -- in bytes
1646     * -- for all applications on the display.
1647     *
1648     * @param size The image cache size
1649     * @ingroup Caches
1650     */
1651    EAPI void         elm_image_cache_all_set(int size);
1652
1653    /**
1654     * Get the configured edje file cache size.
1655     *
1656     * This gets the globally configured edje file cache size, in number
1657     * of files.
1658     *
1659     * @return The edje file cache size
1660     * @ingroup Caches
1661     */
1662    EAPI int          elm_edje_file_cache_get(void);
1663
1664    /**
1665     * Set the configured edje file cache size
1666     *
1667     * This sets the globally configured edje file cache size, in number
1668     * of files.
1669     *
1670     * @param size The edje file cache size
1671     * @ingroup Caches
1672     */
1673    EAPI void         elm_edje_file_cache_set(int size);
1674
1675    /**
1676     * Set the configured edje file cache size for all applications on the
1677     * display
1678     *
1679     * This sets the globally configured edje file cache size -- in number
1680     * of files -- for all applications on the display.
1681     *
1682     * @param size The edje file cache size
1683     * @ingroup Caches
1684     */
1685    EAPI void         elm_edje_file_cache_all_set(int size);
1686
1687    /**
1688     * Get the configured edje collections (groups) cache size.
1689     *
1690     * This gets the globally configured edje collections cache size, in
1691     * number of collections.
1692     *
1693     * @return The edje collections cache size
1694     * @ingroup Caches
1695     */
1696    EAPI int          elm_edje_collection_cache_get(void);
1697
1698    /**
1699     * Set the configured edje collections (groups) cache size
1700     *
1701     * This sets the globally configured edje collections cache size, in
1702     * number of collections.
1703     *
1704     * @param size The edje collections cache size
1705     * @ingroup Caches
1706     */
1707    EAPI void         elm_edje_collection_cache_set(int size);
1708
1709    /**
1710     * Set the configured edje collections (groups) cache size for all
1711     * applications on the display
1712     *
1713     * This sets the globally configured edje collections cache size -- in
1714     * number of collections -- for all applications on the display.
1715     *
1716     * @param size The edje collections cache size
1717     * @ingroup Caches
1718     */
1719    EAPI void         elm_edje_collection_cache_all_set(int size);
1720
1721    /**
1722     * @}
1723     */
1724
1725    /**
1726     * @defgroup Scaling Widget Scaling
1727     *
1728     * Different widgets can be scaled independently. These functions
1729     * allow you to manipulate this scaling on a per-widget basis. The
1730     * object and all its children get their scaling factors multiplied
1731     * by the scale factor set. This is multiplicative, in that if a
1732     * child also has a scale size set it is in turn multiplied by its
1733     * parent's scale size. @c 1.0 means ā€œdon't scaleā€, @c 2.0 is
1734     * double size, @c 0.5 is half, etc.
1735     *
1736     * @ref general_functions_example_page "This" example contemplates
1737     * some of these functions.
1738     */
1739
1740    /**
1741     * Get the global scaling factor
1742     *
1743     * This gets the globally configured scaling factor that is applied to all
1744     * objects.
1745     *
1746     * @return The scaling factor
1747     * @ingroup Scaling
1748     */
1749    EAPI double       elm_scale_get(void);
1750
1751    /**
1752     * Set the global scaling factor
1753     *
1754     * This sets the globally configured scaling factor that is applied to all
1755     * objects.
1756     *
1757     * @param scale The scaling factor to set
1758     * @ingroup Scaling
1759     */
1760    EAPI void         elm_scale_set(double scale);
1761
1762    /**
1763     * Set the global scaling factor for all applications on the display
1764     *
1765     * This sets the globally configured scaling factor that is applied to all
1766     * objects for all applications.
1767     * @param scale The scaling factor to set
1768     * @ingroup Scaling
1769     */
1770    EAPI void         elm_scale_all_set(double scale);
1771
1772    /**
1773     * Set the scaling factor for a given Elementary object
1774     *
1775     * @param obj The Elementary to operate on
1776     * @param scale Scale factor (from @c 0.0 up, with @c 1.0 meaning
1777     * no scaling)
1778     *
1779     * @ingroup Scaling
1780     */
1781    EAPI void         elm_object_scale_set(Evas_Object *obj, double scale) EINA_ARG_NONNULL(1);
1782
1783    /**
1784     * Get the scaling factor for a given Elementary object
1785     *
1786     * @param obj The object
1787     * @return The scaling factor set by elm_object_scale_set()
1788     *
1789     * @ingroup Scaling
1790     */
1791    EAPI double       elm_object_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1792
1793    /**
1794     * @defgroup Password_last_show Password last input show
1795     *
1796     * Last show feature of password mode enables user to view
1797     * the last input entered for few seconds before masking it.
1798     * These functions allow to set this feature in password mode
1799     * of entry widget and also allow to manipulate the duration
1800     * for which the input has to be visible.
1801     *
1802     * @{
1803     */
1804
1805    /**
1806     * Get show last setting of password mode.
1807     *
1808     * This gets the show last input setting of password mode which might be
1809     * enabled or disabled.
1810     *
1811     * @return @c EINA_TRUE, if the last input show setting is enabled, @c EINA_FALSE
1812     *            if it's disabled.
1813     * @ingroup Password_last_show
1814     */
1815    EAPI Eina_Bool elm_password_show_last_get(void);
1816
1817    /**
1818     * Set show last setting in password mode.
1819     *
1820     * This enables or disables show last setting of password mode.
1821     *
1822     * @param password_show_last If EINA_TRUE enable's last input show in password mode.
1823     * @see elm_password_show_last_timeout_set()
1824     * @ingroup Password_last_show
1825     */
1826    EAPI void elm_password_show_last_set(Eina_Bool password_show_last);
1827
1828    /**
1829     * Get's the timeout value in last show password mode.
1830     *
1831     * This gets the time out value for which the last input entered in password
1832     * mode will be visible.
1833     *
1834     * @return The timeout value of last show password mode.
1835     * @ingroup Password_last_show
1836     */
1837    EAPI double elm_password_show_last_timeout_get(void);
1838
1839    /**
1840     * Set's the timeout value in last show password mode.
1841     *
1842     * This sets the time out value for which the last input entered in password
1843     * mode will be visible.
1844     *
1845     * @param password_show_last_timeout The timeout value.
1846     * @see elm_password_show_last_set()
1847     * @ingroup Password_last_show
1848     */
1849    EAPI void elm_password_show_last_timeout_set(double password_show_last_timeout);
1850
1851    /**
1852     * @}
1853     */
1854
1855    /**
1856     * @defgroup UI-Mirroring Selective Widget mirroring
1857     *
1858     * These functions allow you to set ui-mirroring on specific
1859     * widgets or the whole interface. Widgets can be in one of two
1860     * modes, automatic and manual.  Automatic means they'll be changed
1861     * according to the system mirroring mode and manual means only
1862     * explicit changes will matter. You are not supposed to change
1863     * mirroring state of a widget set to automatic, will mostly work,
1864     * but the behavior is not really defined.
1865     *
1866     * @{
1867     */
1868
1869    EAPI Eina_Bool    elm_mirrored_get(void);
1870    EAPI void         elm_mirrored_set(Eina_Bool mirrored);
1871
1872    /**
1873     * Get the system mirrored mode. This determines the default mirrored mode
1874     * of widgets.
1875     *
1876     * @return EINA_TRUE if mirrored is set, EINA_FALSE otherwise
1877     */
1878    EAPI Eina_Bool    elm_object_mirrored_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1879
1880    /**
1881     * Set the system mirrored mode. This determines the default mirrored mode
1882     * of widgets.
1883     *
1884     * @param mirrored EINA_TRUE to set mirrored mode, EINA_FALSE to unset it.
1885     */
1886    EAPI void         elm_object_mirrored_set(Evas_Object *obj, Eina_Bool mirrored) EINA_ARG_NONNULL(1);
1887
1888    /**
1889     * Returns the widget's mirrored mode setting.
1890     *
1891     * @param obj The widget.
1892     * @return mirrored mode setting of the object.
1893     *
1894     **/
1895    EAPI Eina_Bool    elm_object_mirrored_automatic_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1896
1897    /**
1898     * Sets the widget's mirrored mode setting.
1899     * When widget in automatic mode, it follows the system mirrored mode set by
1900     * elm_mirrored_set().
1901     * @param obj The widget.
1902     * @param automatic EINA_TRUE for auto mirrored mode. EINA_FALSE for manual.
1903     */
1904    EAPI void         elm_object_mirrored_automatic_set(Evas_Object *obj, Eina_Bool automatic) EINA_ARG_NONNULL(1);
1905
1906    /**
1907     * @}
1908     */
1909
1910    /**
1911     * Set the style to use by a widget
1912     *
1913     * Sets the style name that will define the appearance of a widget. Styles
1914     * vary from widget to widget and may also be defined by other themes
1915     * by means of extensions and overlays.
1916     *
1917     * @param obj The Elementary widget to style
1918     * @param style The style name to use
1919     *
1920     * @see elm_theme_extension_add()
1921     * @see elm_theme_extension_del()
1922     * @see elm_theme_overlay_add()
1923     * @see elm_theme_overlay_del()
1924     *
1925     * @ingroup Styles
1926     */
1927    EAPI void         elm_object_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
1928    /**
1929     * Get the style used by the widget
1930     *
1931     * This gets the style being used for that widget. Note that the string
1932     * pointer is only valid as longas the object is valid and the style doesn't
1933     * change.
1934     *
1935     * @param obj The Elementary widget to query for its style
1936     * @return The style name used
1937     *
1938     * @see elm_object_style_set()
1939     *
1940     * @ingroup Styles
1941     */
1942    EAPI const char  *elm_object_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1943
1944    /**
1945     * @defgroup Styles Styles
1946     *
1947     * Widgets can have different styles of look. These generic API's
1948     * set styles of widgets, if they support them (and if the theme(s)
1949     * do).
1950     *
1951     * @ref general_functions_example_page "This" example contemplates
1952     * some of these functions.
1953     */
1954
1955    /**
1956     * Set the disabled state of an Elementary object.
1957     *
1958     * @param obj The Elementary object to operate on
1959     * @param disabled The state to put in in: @c EINA_TRUE for
1960     *        disabled, @c EINA_FALSE for enabled
1961     *
1962     * Elementary objects can be @b disabled, in which state they won't
1963     * receive input and, in general, will be themed differently from
1964     * their normal state, usually greyed out. Useful for contexts
1965     * where you don't want your users to interact with some of the
1966     * parts of you interface.
1967     *
1968     * This sets the state for the widget, either disabling it or
1969     * enabling it back.
1970     *
1971     * @ingroup Styles
1972     */
1973    EAPI void         elm_object_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
1974
1975    /**
1976     * Get the disabled state of an Elementary object.
1977     *
1978     * @param obj The Elementary object to operate on
1979     * @return @c EINA_TRUE, if the widget is disabled, @c EINA_FALSE
1980     *            if it's enabled (or on errors)
1981     *
1982     * This gets the state of the widget, which might be enabled or disabled.
1983     *
1984     * @ingroup Styles
1985     */
1986    EAPI Eina_Bool    elm_object_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1987
1988    /**
1989     * @defgroup WidgetNavigation Widget Tree Navigation.
1990     *
1991     * How to check if an Evas Object is an Elementary widget? How to
1992     * get the first elementary widget that is parent of the given
1993     * object?  These are all covered in widget tree navigation.
1994     *
1995     * @ref general_functions_example_page "This" example contemplates
1996     * some of these functions.
1997     */
1998
1999    /**
2000     * Check if the given Evas Object is an Elementary widget.
2001     *
2002     * @param obj the object to query.
2003     * @return @c EINA_TRUE if it is an elementary widget variant,
2004     *         @c EINA_FALSE otherwise
2005     * @ingroup WidgetNavigation
2006     */
2007    EAPI Eina_Bool    elm_object_widget_check(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2008
2009    /**
2010     * Get the first parent of the given object that is an Elementary
2011     * widget.
2012     *
2013     * @param obj the Elementary object to query parent from.
2014     * @return the parent object that is an Elementary widget, or @c
2015     *         NULL, if it was not found.
2016     *
2017     * Use this to query for an object's parent widget.
2018     *
2019     * @note Most of Elementary users wouldn't be mixing non-Elementary
2020     * smart objects in the objects tree of an application, as this is
2021     * an advanced usage of Elementary with Evas. So, except for the
2022     * application's window, which is the root of that tree, all other
2023     * objects would have valid Elementary widget parents.
2024     *
2025     * @ingroup WidgetNavigation
2026     */
2027    EAPI Evas_Object *elm_object_parent_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2028
2029    /**
2030     * Get the top level parent of an Elementary widget.
2031     *
2032     * @param obj The object to query.
2033     * @return The top level Elementary widget, or @c NULL if parent cannot be
2034     * found.
2035     * @ingroup WidgetNavigation
2036     */
2037    EAPI Evas_Object *elm_object_top_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2038
2039    /**
2040     * Get the string that represents this Elementary widget.
2041     *
2042     * @note Elementary is weird and exposes itself as a single
2043     *       Evas_Object_Smart_Class of type "elm_widget", so
2044     *       evas_object_type_get() always return that, making debug and
2045     *       language bindings hard. This function tries to mitigate this
2046     *       problem, but the solution is to change Elementary to use
2047     *       proper inheritance.
2048     *
2049     * @param obj the object to query.
2050     * @return Elementary widget name, or @c NULL if not a valid widget.
2051     * @ingroup WidgetNavigation
2052     */
2053    EAPI const char  *elm_object_widget_type_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2054
2055    /**
2056     * @defgroup Config Elementary Config
2057     *
2058     * Elementary configuration is formed by a set options bounded to a
2059     * given @ref Profile profile, like @ref Theme theme, @ref Fingers
2060     * "finger size", etc. These are functions with which one syncronizes
2061     * changes made to those values to the configuration storing files, de
2062     * facto. You most probably don't want to use the functions in this
2063     * group unlees you're writing an elementary configuration manager.
2064     *
2065     * @{
2066     */
2067
2068    /**
2069     * Save back Elementary's configuration, so that it will persist on
2070     * future sessions.
2071     *
2072     * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
2073     * @ingroup Config
2074     *
2075     * This function will take effect -- thus, do I/O -- immediately. Use
2076     * it when you want to apply all configuration changes at once. The
2077     * current configuration set will get saved onto the current profile
2078     * configuration file.
2079     *
2080     */
2081    EAPI Eina_Bool    elm_config_save(void);
2082
2083    /**
2084     * Reload Elementary's configuration, bounded to current selected
2085     * profile.
2086     *
2087     * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
2088     * @ingroup Config
2089     *
2090     * Useful when you want to force reloading of configuration values for
2091     * a profile. If one removes user custom configuration directories,
2092     * for example, it will force a reload with system values instead.
2093     *
2094     */
2095    EAPI void         elm_config_reload(void);
2096
2097    /**
2098     * @}
2099     */
2100
2101    /**
2102     * @defgroup Profile Elementary Profile
2103     *
2104     * Profiles are pre-set options that affect the whole look-and-feel of
2105     * Elementary-based applications. There are, for example, profiles
2106     * aimed at desktop computer applications and others aimed at mobile,
2107     * touchscreen-based ones. You most probably don't want to use the
2108     * functions in this group unlees you're writing an elementary
2109     * configuration manager.
2110     *
2111     * @{
2112     */
2113
2114    /**
2115     * Get Elementary's profile in use.
2116     *
2117     * This gets the global profile that is applied to all Elementary
2118     * applications.
2119     *
2120     * @return The profile's name
2121     * @ingroup Profile
2122     */
2123    EAPI const char  *elm_profile_current_get(void);
2124
2125    /**
2126     * Get an Elementary's profile directory path in the filesystem. One
2127     * may want to fetch a system profile's dir or an user one (fetched
2128     * inside $HOME).
2129     *
2130     * @param profile The profile's name
2131     * @param is_user Whether to lookup for an user profile (@c EINA_TRUE)
2132     *                or a system one (@c EINA_FALSE)
2133     * @return The profile's directory path.
2134     * @ingroup Profile
2135     *
2136     * @note You must free it with elm_profile_dir_free().
2137     */
2138    EAPI const char  *elm_profile_dir_get(const char *profile, Eina_Bool is_user);
2139
2140    /**
2141     * Free an Elementary's profile directory path, as returned by
2142     * elm_profile_dir_get().
2143     *
2144     * @param p_dir The profile's path
2145     * @ingroup Profile
2146     *
2147     */
2148    EAPI void         elm_profile_dir_free(const char *p_dir);
2149
2150    /**
2151     * Get Elementary's list of available profiles.
2152     *
2153     * @return The profiles list. List node data are the profile name
2154     *         strings.
2155     * @ingroup Profile
2156     *
2157     * @note One must free this list, after usage, with the function
2158     *       elm_profile_list_free().
2159     */
2160    EAPI Eina_List   *elm_profile_list_get(void);
2161
2162    /**
2163     * Free Elementary's list of available profiles.
2164     *
2165     * @param l The profiles list, as returned by elm_profile_list_get().
2166     * @ingroup Profile
2167     *
2168     */
2169    EAPI void         elm_profile_list_free(Eina_List *l);
2170
2171    /**
2172     * Set Elementary's profile.
2173     *
2174     * This sets the global profile that is applied to Elementary
2175     * applications. Just the process the call comes from will be
2176     * affected.
2177     *
2178     * @param profile The profile's name
2179     * @ingroup Profile
2180     *
2181     */
2182    EAPI void         elm_profile_set(const char *profile);
2183
2184    /**
2185     * Set Elementary's profile.
2186     *
2187     * This sets the global profile that is applied to all Elementary
2188     * applications. All running Elementary windows will be affected.
2189     *
2190     * @param profile The profile's name
2191     * @ingroup Profile
2192     *
2193     */
2194    EAPI void         elm_profile_all_set(const char *profile);
2195
2196    /**
2197     * @}
2198     */
2199
2200    /**
2201     * @defgroup Engine Elementary Engine
2202     *
2203     * These are functions setting and querying which rendering engine
2204     * Elementary will use for drawing its windows' pixels.
2205     *
2206     * The following are the available engines:
2207     * @li "software_x11"
2208     * @li "fb"
2209     * @li "directfb"
2210     * @li "software_16_x11"
2211     * @li "software_8_x11"
2212     * @li "xrender_x11"
2213     * @li "opengl_x11"
2214     * @li "software_gdi"
2215     * @li "software_16_wince_gdi"
2216     * @li "sdl"
2217     * @li "software_16_sdl"
2218     * @li "opengl_sdl"
2219     * @li "buffer"
2220     * @li "ews"
2221     * @li "opengl_cocoa"
2222     * @li "psl1ght"
2223     *
2224     * @{
2225     */
2226
2227    /**
2228     * @brief Get Elementary's rendering engine in use.
2229     *
2230     * @return The rendering engine's name
2231     * @note there's no need to free the returned string, here.
2232     *
2233     * This gets the global rendering engine that is applied to all Elementary
2234     * applications.
2235     *
2236     * @see elm_engine_set()
2237     */
2238    EAPI const char  *elm_engine_current_get(void);
2239
2240    /**
2241     * @brief Set Elementary's rendering engine for use.
2242     *
2243     * @param engine The rendering engine's name
2244     *
2245     * This sets global rendering engine that is applied to all Elementary
2246     * applications. Note that it will take effect only to Elementary windows
2247     * created after this is called.
2248     *
2249     * @see elm_win_add()
2250     */
2251    EAPI void         elm_engine_set(const char *engine);
2252
2253    /**
2254     * @}
2255     */
2256
2257    /**
2258     * @defgroup Fonts Elementary Fonts
2259     *
2260     * These are functions dealing with font rendering, selection and the
2261     * like for Elementary applications. One might fetch which system
2262     * fonts are there to use and set custom fonts for individual classes
2263     * of UI items containing text (text classes).
2264     *
2265     * @{
2266     */
2267
2268   typedef struct _Elm_Text_Class
2269     {
2270        const char *name;
2271        const char *desc;
2272     } Elm_Text_Class;
2273
2274   typedef struct _Elm_Font_Overlay
2275     {
2276        const char     *text_class;
2277        const char     *font;
2278        Evas_Font_Size  size;
2279     } Elm_Font_Overlay;
2280
2281   typedef struct _Elm_Font_Properties
2282     {
2283        const char *name;
2284        Eina_List  *styles;
2285     } Elm_Font_Properties;
2286
2287    /**
2288     * Get Elementary's list of supported text classes.
2289     *
2290     * @return The text classes list, with @c Elm_Text_Class blobs as data.
2291     * @ingroup Fonts
2292     *
2293     * Release the list with elm_text_classes_list_free().
2294     */
2295    EAPI const Eina_List     *elm_text_classes_list_get(void);
2296
2297    /**
2298     * Free Elementary's list of supported text classes.
2299     *
2300     * @ingroup Fonts
2301     *
2302     * @see elm_text_classes_list_get().
2303     */
2304    EAPI void                 elm_text_classes_list_free(const Eina_List *list);
2305
2306    /**
2307     * Get Elementary's list of font overlays, set with
2308     * elm_font_overlay_set().
2309     *
2310     * @return The font overlays list, with @c Elm_Font_Overlay blobs as
2311     * data.
2312     *
2313     * @ingroup Fonts
2314     *
2315     * For each text class, one can set a <b>font overlay</b> for it,
2316     * overriding the default font properties for that class coming from
2317     * the theme in use. There is no need to free this list.
2318     *
2319     * @see elm_font_overlay_set() and elm_font_overlay_unset().
2320     */
2321    EAPI const Eina_List     *elm_font_overlay_list_get(void);
2322
2323    /**
2324     * Set a font overlay for a given Elementary text class.
2325     *
2326     * @param text_class Text class name
2327     * @param font Font name and style string
2328     * @param size Font size
2329     *
2330     * @ingroup Fonts
2331     *
2332     * @p font has to be in the format returned by
2333     * elm_font_fontconfig_name_get(). @see elm_font_overlay_list_get()
2334     * and elm_font_overlay_unset().
2335     */
2336    EAPI void                 elm_font_overlay_set(const char *text_class, const char *font, Evas_Font_Size size);
2337
2338    /**
2339     * Unset a font overlay for a given Elementary text class.
2340     *
2341     * @param text_class Text class name
2342     *
2343     * @ingroup Fonts
2344     *
2345     * This will bring back text elements belonging to text class
2346     * @p text_class back to their default font settings.
2347     */
2348    EAPI void                 elm_font_overlay_unset(const char *text_class);
2349
2350    /**
2351     * Apply the changes made with elm_font_overlay_set() and
2352     * elm_font_overlay_unset() on the current Elementary window.
2353     *
2354     * @ingroup Fonts
2355     *
2356     * This applies all font overlays set to all objects in the UI.
2357     */
2358    EAPI void                 elm_font_overlay_apply(void);
2359
2360    /**
2361     * Apply the changes made with elm_font_overlay_set() and
2362     * elm_font_overlay_unset() on all Elementary application windows.
2363     *
2364     * @ingroup Fonts
2365     *
2366     * This applies all font overlays set to all objects in the UI.
2367     */
2368    EAPI void                 elm_font_overlay_all_apply(void);
2369
2370    /**
2371     * Translate a font (family) name string in fontconfig's font names
2372     * syntax into an @c Elm_Font_Properties struct.
2373     *
2374     * @param font The font name and styles string
2375     * @return the font properties struct
2376     *
2377     * @ingroup Fonts
2378     *
2379     * @note The reverse translation can be achived with
2380     * elm_font_fontconfig_name_get(), for one style only (single font
2381     * instance, not family).
2382     */
2383    EAPI Elm_Font_Properties *elm_font_properties_get(const char *font) EINA_ARG_NONNULL(1);
2384
2385    /**
2386     * Free font properties return by elm_font_properties_get().
2387     *
2388     * @param efp the font properties struct
2389     *
2390     * @ingroup Fonts
2391     */
2392    EAPI void                 elm_font_properties_free(Elm_Font_Properties *efp) EINA_ARG_NONNULL(1);
2393
2394    /**
2395     * Translate a font name, bound to a style, into fontconfig's font names
2396     * syntax.
2397     *
2398     * @param name The font (family) name
2399     * @param style The given style (may be @c NULL)
2400     *
2401     * @return the font name and style string
2402     *
2403     * @ingroup Fonts
2404     *
2405     * @note The reverse translation can be achived with
2406     * elm_font_properties_get(), for one style only (single font
2407     * instance, not family).
2408     */
2409    EAPI const char          *elm_font_fontconfig_name_get(const char *name, const char *style) EINA_ARG_NONNULL(1);
2410
2411    /**
2412     * Free the font string return by elm_font_fontconfig_name_get().
2413     *
2414     * @param efp the font properties struct
2415     *
2416     * @ingroup Fonts
2417     */
2418    EAPI void                 elm_font_fontconfig_name_free(const char *name) EINA_ARG_NONNULL(1);
2419
2420    /**
2421     * Create a font hash table of available system fonts.
2422     *
2423     * One must call it with @p list being the return value of
2424     * evas_font_available_list(). The hash will be indexed by font
2425     * (family) names, being its values @c Elm_Font_Properties blobs.
2426     *
2427     * @param list The list of available system fonts, as returned by
2428     * evas_font_available_list().
2429     * @return the font hash.
2430     *
2431     * @ingroup Fonts
2432     *
2433     * @note The user is supposed to get it populated at least with 3
2434     * default font families (Sans, Serif, Monospace), which should be
2435     * present on most systems.
2436     */
2437    EAPI Eina_Hash           *elm_font_available_hash_add(Eina_List *list);
2438
2439    /**
2440     * Free the hash return by elm_font_available_hash_add().
2441     *
2442     * @param hash the hash to be freed.
2443     *
2444     * @ingroup Fonts
2445     */
2446    EAPI void                 elm_font_available_hash_del(Eina_Hash *hash);
2447
2448    /**
2449     * @}
2450     */
2451
2452    /**
2453     * @defgroup Fingers Fingers
2454     *
2455     * Elementary is designed to be finger-friendly for touchscreens,
2456     * and so in addition to scaling for display resolution, it can
2457     * also scale based on finger "resolution" (or size). You can then
2458     * customize the granularity of the areas meant to receive clicks
2459     * on touchscreens.
2460     *
2461     * Different profiles may have pre-set values for finger sizes.
2462     *
2463     * @ref general_functions_example_page "This" example contemplates
2464     * some of these functions.
2465     *
2466     * @{
2467     */
2468
2469    /**
2470     * Get the configured "finger size"
2471     *
2472     * @return The finger size
2473     *
2474     * This gets the globally configured finger size, <b>in pixels</b>
2475     *
2476     * @ingroup Fingers
2477     */
2478    EAPI Evas_Coord       elm_finger_size_get(void);
2479
2480    /**
2481     * Set the configured finger size
2482     *
2483     * This sets the globally configured finger size in pixels
2484     *
2485     * @param size The finger size
2486     * @ingroup Fingers
2487     */
2488    EAPI void             elm_finger_size_set(Evas_Coord size);
2489
2490    /**
2491     * Set the configured finger size for all applications on the display
2492     *
2493     * This sets the globally configured finger size in pixels for all
2494     * applications on the display
2495     *
2496     * @param size The finger size
2497     * @ingroup Fingers
2498     */
2499    EAPI void             elm_finger_size_all_set(Evas_Coord size);
2500
2501    /**
2502     * @}
2503     */
2504
2505    /**
2506     * @defgroup Focus Focus
2507     *
2508     * An Elementary application has, at all times, one (and only one)
2509     * @b focused object. This is what determines where the input
2510     * events go to within the application's window. Also, focused
2511     * objects can be decorated differently, in order to signal to the
2512     * user where the input is, at a given moment.
2513     *
2514     * Elementary applications also have the concept of <b>focus
2515     * chain</b>: one can cycle through all the windows' focusable
2516     * objects by input (tab key) or programmatically. The default
2517     * focus chain for an application is the one define by the order in
2518     * which the widgets where added in code. One will cycle through
2519     * top level widgets, and, for each one containg sub-objects, cycle
2520     * through them all, before returning to the level
2521     * above. Elementary also allows one to set @b custom focus chains
2522     * for their applications.
2523     *
2524     * Besides the focused decoration a widget may exhibit, when it
2525     * gets focus, Elementary has a @b global focus highlight object
2526     * that can be enabled for a window. If one chooses to do so, this
2527     * extra highlight effect will surround the current focused object,
2528     * too.
2529     *
2530     * @note Some Elementary widgets are @b unfocusable, after
2531     * creation, by their very nature: they are not meant to be
2532     * interacted with input events, but are there just for visual
2533     * purposes.
2534     *
2535     * @ref general_functions_example_page "This" example contemplates
2536     * some of these functions.
2537     */
2538
2539    /**
2540     * Get the enable status of the focus highlight
2541     *
2542     * This gets whether the highlight on focused objects is enabled or not
2543     * @ingroup Focus
2544     */
2545    EAPI Eina_Bool        elm_focus_highlight_enabled_get(void);
2546
2547    /**
2548     * Set the enable status of the focus highlight
2549     *
2550     * Set whether to show or not the highlight on focused objects
2551     * @param enable Enable highlight if EINA_TRUE, disable otherwise
2552     * @ingroup Focus
2553     */
2554    EAPI void             elm_focus_highlight_enabled_set(Eina_Bool enable);
2555
2556    /**
2557     * Get the enable status of the highlight animation
2558     *
2559     * Get whether the focus highlight, if enabled, will animate its switch from
2560     * one object to the next
2561     * @ingroup Focus
2562     */
2563    EAPI Eina_Bool        elm_focus_highlight_animate_get(void);
2564
2565    /**
2566     * Set the enable status of the highlight animation
2567     *
2568     * Set whether the focus highlight, if enabled, will animate its switch from
2569     * one object to the next
2570     * @param animate Enable animation if EINA_TRUE, disable otherwise
2571     * @ingroup Focus
2572     */
2573    EAPI void             elm_focus_highlight_animate_set(Eina_Bool animate);
2574
2575    /**
2576     * Get the whether an Elementary object has the focus or not.
2577     *
2578     * @param obj The Elementary object to get the information from
2579     * @return @c EINA_TRUE, if the object is focused, @c EINA_FALSE if
2580     *            not (and on errors).
2581     *
2582     * @see elm_object_focus_set()
2583     *
2584     * @ingroup Focus
2585     */
2586    EAPI Eina_Bool        elm_object_focus_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2587
2588    /**
2589     * Set/unset focus to a given Elementary object.
2590     *
2591     * @param obj The Elementary object to operate on.
2592     * @param enable @c EINA_TRUE Set focus to a given object,
2593     *               @c EINA_FALSE Unset focus to a given object.
2594     *
2595     * @note When you set focus to this object, if it can handle focus, will
2596     * take the focus away from the one who had it previously and will, for
2597     * now on, be the one receiving input events. Unsetting focus will remove
2598     * the focus from @p obj, passing it back to the previous element in the
2599     * focus chain list.
2600     *
2601     * @see elm_object_focus_get(), elm_object_focus_custom_chain_get()
2602     *
2603     * @ingroup Focus
2604     */
2605    EAPI void             elm_object_focus_set(Evas_Object *obj, Eina_Bool focus) EINA_ARG_NONNULL(1);
2606
2607    /**
2608     * Make a given Elementary object the focused one.
2609     *
2610     * @param obj The Elementary object to make focused.
2611     *
2612     * @note This object, if it can handle focus, will take the focus
2613     * away from the one who had it previously and will, for now on, be
2614     * the one receiving input events.
2615     *
2616     * @see elm_object_focus_get()
2617     * @deprecated use elm_object_focus_set() instead.
2618     *
2619     * @ingroup Focus
2620     */
2621    EINA_DEPRECATED EAPI void             elm_object_focus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2622
2623    /**
2624     * Remove the focus from an Elementary object
2625     *
2626     * @param obj The Elementary to take focus from
2627     *
2628     * This removes the focus from @p obj, passing it back to the
2629     * previous element in the focus chain list.
2630     *
2631     * @see elm_object_focus() and elm_object_focus_custom_chain_get()
2632     * @deprecated use elm_object_focus_set() instead.
2633     *
2634     * @ingroup Focus
2635     */
2636    EINA_DEPRECATED EAPI void             elm_object_unfocus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2637
2638    /**
2639     * Set the ability for an Element object to be focused
2640     *
2641     * @param obj The Elementary object to operate on
2642     * @param enable @c EINA_TRUE if the object can be focused, @c
2643     *        EINA_FALSE if not (and on errors)
2644     *
2645     * This sets whether the object @p obj is able to take focus or
2646     * not. Unfocusable objects do nothing when programmatically
2647     * focused, being the nearest focusable parent object the one
2648     * really getting focus. Also, when they receive mouse input, they
2649     * will get the event, but not take away the focus from where it
2650     * was previously.
2651     *
2652     * @ingroup Focus
2653     */
2654    EAPI void             elm_object_focus_allow_set(Evas_Object *obj, Eina_Bool enable) EINA_ARG_NONNULL(1);
2655
2656    /**
2657     * Get whether an Elementary object is focusable or not
2658     *
2659     * @param obj The Elementary object to operate on
2660     * @return @c EINA_TRUE if the object is allowed to be focused, @c
2661     *             EINA_FALSE if not (and on errors)
2662     *
2663     * @note Objects which are meant to be interacted with by input
2664     * events are created able to be focused, by default. All the
2665     * others are not.
2666     *
2667     * @ingroup Focus
2668     */
2669    EAPI Eina_Bool        elm_object_focus_allow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2670
2671    /**
2672     * Set custom focus chain.
2673     *
2674     * This function overwrites any previous custom focus chain within
2675     * the list of objects. The previous list will be deleted and this list
2676     * will be managed by elementary. After it is set, don't modify it.
2677     *
2678     * @note On focus cycle, only will be evaluated children of this container.
2679     *
2680     * @param obj The container object
2681     * @param objs Chain of objects to pass focus
2682     * @ingroup Focus
2683     */
2684    EAPI void             elm_object_focus_custom_chain_set(Evas_Object *obj, Eina_List *objs) EINA_ARG_NONNULL(1);
2685
2686    /**
2687     * Unset a custom focus chain on a given Elementary widget
2688     *
2689     * @param obj The container object to remove focus chain from
2690     *
2691     * Any focus chain previously set on @p obj (for its child objects)
2692     * is removed entirely after this call.
2693     *
2694     * @ingroup Focus
2695     */
2696    EAPI void             elm_object_focus_custom_chain_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
2697
2698    /**
2699     * Get custom focus chain
2700     *
2701     * @param obj The container object
2702     * @ingroup Focus
2703     */
2704    EAPI const Eina_List *elm_object_focus_custom_chain_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2705
2706    /**
2707     * Append object to custom focus chain.
2708     *
2709     * @note If relative_child equal to NULL or not in custom chain, the object
2710     * will be added in end.
2711     *
2712     * @note On focus cycle, only will be evaluated children of this container.
2713     *
2714     * @param obj The container object
2715     * @param child The child to be added in custom chain
2716     * @param relative_child The relative object to position the child
2717     * @ingroup Focus
2718     */
2719    EAPI void             elm_object_focus_custom_chain_append(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2720
2721    /**
2722     * Prepend object to custom focus chain.
2723     *
2724     * @note If relative_child equal to NULL or not in custom chain, the object
2725     * will be added in begin.
2726     *
2727     * @note On focus cycle, only will be evaluated children of this container.
2728     *
2729     * @param obj The container object
2730     * @param child The child to be added in custom chain
2731     * @param relative_child The relative object to position the child
2732     * @ingroup Focus
2733     */
2734    EAPI void             elm_object_focus_custom_chain_prepend(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2735
2736    /**
2737     * Give focus to next object in object tree.
2738     *
2739     * Give focus to next object in focus chain of one object sub-tree.
2740     * If the last object of chain already have focus, the focus will go to the
2741     * first object of chain.
2742     *
2743     * @param obj The object root of sub-tree
2744     * @param dir Direction to cycle the focus
2745     *
2746     * @ingroup Focus
2747     */
2748    EAPI void             elm_object_focus_cycle(Evas_Object *obj, Elm_Focus_Direction dir) EINA_ARG_NONNULL(1);
2749
2750    /**
2751     * Give focus to near object in one direction.
2752     *
2753     * Give focus to near object in direction of one object.
2754     * If none focusable object in given direction, the focus will not change.
2755     *
2756     * @param obj The reference object
2757     * @param x Horizontal component of direction to focus
2758     * @param y Vertical component of direction to focus
2759     *
2760     * @ingroup Focus
2761     */
2762    EAPI void             elm_object_focus_direction_go(Evas_Object *obj, int x, int y) EINA_ARG_NONNULL(1);
2763
2764    /**
2765     * Make the elementary object and its children to be unfocusable
2766     * (or focusable).
2767     *
2768     * @param obj The Elementary object to operate on
2769     * @param tree_unfocusable @c EINA_TRUE for unfocusable,
2770     *        @c EINA_FALSE for focusable.
2771     *
2772     * This sets whether the object @p obj and its children objects
2773     * are able to take focus or not. If the tree is set as unfocusable,
2774     * newest focused object which is not in this tree will get focus.
2775     * This API can be helpful for an object to be deleted.
2776     * When an object will be deleted soon, it and its children may not
2777     * want to get focus (by focus reverting or by other focus controls).
2778     * Then, just use this API before deleting.
2779     *
2780     * @see elm_object_tree_unfocusable_get()
2781     *
2782     * @ingroup Focus
2783     */
2784    EAPI void             elm_object_tree_unfocusable_set(Evas_Object *obj, Eina_Bool tree_unfocusable) EINA_ARG_NONNULL(1);
2785
2786    /**
2787     * Get whether an Elementary object and its children are unfocusable or not.
2788     *
2789     * @param obj The Elementary object to get the information from
2790     * @return @c EINA_TRUE, if the tree is unfocussable,
2791     *         @c EINA_FALSE if not (and on errors).
2792     *
2793     * @see elm_object_tree_unfocusable_set()
2794     *
2795     * @ingroup Focus
2796     */
2797    EAPI Eina_Bool        elm_object_tree_unfocusable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2798
2799    /**
2800     * @defgroup Scrolling Scrolling
2801     *
2802     * These are functions setting how scrollable views in Elementary
2803     * widgets should behave on user interaction.
2804     *
2805     * @{
2806     */
2807
2808    /**
2809     * Get whether scrollers should bounce when they reach their
2810     * viewport's edge during a scroll.
2811     *
2812     * @return the thumb scroll bouncing state
2813     *
2814     * This is the default behavior for touch screens, in general.
2815     * @ingroup Scrolling
2816     */
2817    EAPI Eina_Bool        elm_scroll_bounce_enabled_get(void);
2818
2819    /**
2820     * Set whether scrollers should bounce when they reach their
2821     * viewport's edge during a scroll.
2822     *
2823     * @param enabled the thumb scroll bouncing state
2824     *
2825     * @see elm_thumbscroll_bounce_enabled_get()
2826     * @ingroup Scrolling
2827     */
2828    EAPI void             elm_scroll_bounce_enabled_set(Eina_Bool enabled);
2829
2830    /**
2831     * Set whether scrollers should bounce when they reach their
2832     * viewport's edge during a scroll, for all Elementary application
2833     * windows.
2834     *
2835     * @param enabled the thumb scroll bouncing state
2836     *
2837     * @see elm_thumbscroll_bounce_enabled_get()
2838     * @ingroup Scrolling
2839     */
2840    EAPI void             elm_scroll_bounce_enabled_all_set(Eina_Bool enabled);
2841
2842    /**
2843     * Get the amount of inertia a scroller will impose at bounce
2844     * animations.
2845     *
2846     * @return the thumb scroll bounce friction
2847     *
2848     * @ingroup Scrolling
2849     */
2850    EAPI double           elm_scroll_bounce_friction_get(void);
2851
2852    /**
2853     * Set the amount of inertia a scroller will impose at bounce
2854     * animations.
2855     *
2856     * @param friction the thumb scroll bounce friction
2857     *
2858     * @see elm_thumbscroll_bounce_friction_get()
2859     * @ingroup Scrolling
2860     */
2861    EAPI void             elm_scroll_bounce_friction_set(double friction);
2862
2863    /**
2864     * Set the amount of inertia a scroller will impose at bounce
2865     * animations, for all Elementary application windows.
2866     *
2867     * @param friction the thumb scroll bounce friction
2868     *
2869     * @see elm_thumbscroll_bounce_friction_get()
2870     * @ingroup Scrolling
2871     */
2872    EAPI void             elm_scroll_bounce_friction_all_set(double friction);
2873
2874    /**
2875     * Get the amount of inertia a <b>paged</b> scroller will impose at
2876     * page fitting animations.
2877     *
2878     * @return the page scroll friction
2879     *
2880     * @ingroup Scrolling
2881     */
2882    EAPI double           elm_scroll_page_scroll_friction_get(void);
2883
2884    /**
2885     * Set the amount of inertia a <b>paged</b> scroller will impose at
2886     * page fitting animations.
2887     *
2888     * @param friction the page scroll friction
2889     *
2890     * @see elm_thumbscroll_page_scroll_friction_get()
2891     * @ingroup Scrolling
2892     */
2893    EAPI void             elm_scroll_page_scroll_friction_set(double friction);
2894
2895    /**
2896     * Set the amount of inertia a <b>paged</b> scroller will impose at
2897     * page fitting animations, for all Elementary application windows.
2898     *
2899     * @param friction the page scroll friction
2900     *
2901     * @see elm_thumbscroll_page_scroll_friction_get()
2902     * @ingroup Scrolling
2903     */
2904    EAPI void             elm_scroll_page_scroll_friction_all_set(double friction);
2905
2906    /**
2907     * Get the amount of inertia a scroller will impose at region bring
2908     * animations.
2909     *
2910     * @return the bring in scroll friction
2911     *
2912     * @ingroup Scrolling
2913     */
2914    EAPI double           elm_scroll_bring_in_scroll_friction_get(void);
2915
2916    /**
2917     * Set the amount of inertia a scroller will impose at region bring
2918     * animations.
2919     *
2920     * @param friction the bring in scroll friction
2921     *
2922     * @see elm_thumbscroll_bring_in_scroll_friction_get()
2923     * @ingroup Scrolling
2924     */
2925    EAPI void             elm_scroll_bring_in_scroll_friction_set(double friction);
2926
2927    /**
2928     * Set the amount of inertia a scroller will impose at region bring
2929     * animations, for all Elementary application windows.
2930     *
2931     * @param friction the bring in scroll friction
2932     *
2933     * @see elm_thumbscroll_bring_in_scroll_friction_get()
2934     * @ingroup Scrolling
2935     */
2936    EAPI void             elm_scroll_bring_in_scroll_friction_all_set(double friction);
2937
2938    /**
2939     * Get the amount of inertia scrollers will impose at animations
2940     * triggered by Elementary widgets' zooming API.
2941     *
2942     * @return the zoom friction
2943     *
2944     * @ingroup Scrolling
2945     */
2946    EAPI double           elm_scroll_zoom_friction_get(void);
2947
2948    /**
2949     * Set the amount of inertia scrollers will impose at animations
2950     * triggered by Elementary widgets' zooming API.
2951     *
2952     * @param friction the zoom friction
2953     *
2954     * @see elm_thumbscroll_zoom_friction_get()
2955     * @ingroup Scrolling
2956     */
2957    EAPI void             elm_scroll_zoom_friction_set(double friction);
2958
2959    /**
2960     * Set the amount of inertia scrollers will impose at animations
2961     * triggered by Elementary widgets' zooming API, for all Elementary
2962     * application windows.
2963     *
2964     * @param friction the zoom friction
2965     *
2966     * @see elm_thumbscroll_zoom_friction_get()
2967     * @ingroup Scrolling
2968     */
2969    EAPI void             elm_scroll_zoom_friction_all_set(double friction);
2970
2971    /**
2972     * Get whether scrollers should be draggable from any point in their
2973     * views.
2974     *
2975     * @return the thumb scroll state
2976     *
2977     * @note This is the default behavior for touch screens, in general.
2978     * @note All other functions namespaced with "thumbscroll" will only
2979     *       have effect if this mode is enabled.
2980     *
2981     * @ingroup Scrolling
2982     */
2983    EAPI Eina_Bool        elm_scroll_thumbscroll_enabled_get(void);
2984
2985    /**
2986     * Set whether scrollers should be draggable from any point in their
2987     * views.
2988     *
2989     * @param enabled the thumb scroll state
2990     *
2991     * @see elm_thumbscroll_enabled_get()
2992     * @ingroup Scrolling
2993     */
2994    EAPI void             elm_scroll_thumbscroll_enabled_set(Eina_Bool enabled);
2995
2996    /**
2997     * Set whether scrollers should be draggable from any point in their
2998     * views, for all Elementary application windows.
2999     *
3000     * @param enabled the thumb scroll state
3001     *
3002     * @see elm_thumbscroll_enabled_get()
3003     * @ingroup Scrolling
3004     */
3005    EAPI void             elm_scroll_thumbscroll_enabled_all_set(Eina_Bool enabled);
3006
3007    /**
3008     * Get the number of pixels one should travel while dragging a
3009     * scroller's view to actually trigger scrolling.
3010     *
3011     * @return the thumb scroll threshould
3012     *
3013     * One would use higher values for touch screens, in general, because
3014     * of their inherent imprecision.
3015     * @ingroup Scrolling
3016     */
3017    EAPI unsigned int     elm_scroll_thumbscroll_threshold_get(void);
3018
3019    /**
3020     * Set the number of pixels one should travel while dragging a
3021     * scroller's view to actually trigger scrolling.
3022     *
3023     * @param threshold the thumb scroll threshould
3024     *
3025     * @see elm_thumbscroll_threshould_get()
3026     * @ingroup Scrolling
3027     */
3028    EAPI void             elm_scroll_thumbscroll_threshold_set(unsigned int threshold);
3029
3030    /**
3031     * Set the number of pixels one should travel while dragging a
3032     * scroller's view to actually trigger scrolling, for all Elementary
3033     * application windows.
3034     *
3035     * @param threshold the thumb scroll threshould
3036     *
3037     * @see elm_thumbscroll_threshould_get()
3038     * @ingroup Scrolling
3039     */
3040    EAPI void             elm_scroll_thumbscroll_threshold_all_set(unsigned int threshold);
3041
3042    /**
3043     * Get the minimum speed of mouse cursor movement which will trigger
3044     * list self scrolling animation after a mouse up event
3045     * (pixels/second).
3046     *
3047     * @return the thumb scroll momentum threshould
3048     *
3049     * @ingroup Scrolling
3050     */
3051    EAPI double           elm_scroll_thumbscroll_momentum_threshold_get(void);
3052
3053    /**
3054     * Set the minimum speed of mouse cursor movement which will trigger
3055     * list self scrolling animation after a mouse up event
3056     * (pixels/second).
3057     *
3058     * @param threshold the thumb scroll momentum threshould
3059     *
3060     * @see elm_thumbscroll_momentum_threshould_get()
3061     * @ingroup Scrolling
3062     */
3063    EAPI void             elm_scroll_thumbscroll_momentum_threshold_set(double threshold);
3064
3065    /**
3066     * Set the minimum speed of mouse cursor movement which will trigger
3067     * list self scrolling animation after a mouse up event
3068     * (pixels/second), for all Elementary application windows.
3069     *
3070     * @param threshold the thumb scroll momentum threshould
3071     *
3072     * @see elm_thumbscroll_momentum_threshould_get()
3073     * @ingroup Scrolling
3074     */
3075    EAPI void             elm_scroll_thumbscroll_momentum_threshold_all_set(double threshold);
3076
3077    /**
3078     * Get the amount of inertia a scroller will impose at self scrolling
3079     * animations.
3080     *
3081     * @return the thumb scroll friction
3082     *
3083     * @ingroup Scrolling
3084     */
3085    EAPI double           elm_scroll_thumbscroll_friction_get(void);
3086
3087    /**
3088     * Set the amount of inertia a scroller will impose at self scrolling
3089     * animations.
3090     *
3091     * @param friction the thumb scroll friction
3092     *
3093     * @see elm_thumbscroll_friction_get()
3094     * @ingroup Scrolling
3095     */
3096    EAPI void             elm_scroll_thumbscroll_friction_set(double friction);
3097
3098    /**
3099     * Set the amount of inertia a scroller will impose at self scrolling
3100     * animations, for all Elementary application windows.
3101     *
3102     * @param friction the thumb scroll friction
3103     *
3104     * @see elm_thumbscroll_friction_get()
3105     * @ingroup Scrolling
3106     */
3107    EAPI void             elm_scroll_thumbscroll_friction_all_set(double friction);
3108
3109    /**
3110     * Get the amount of lag between your actual mouse cursor dragging
3111     * movement and a scroller's view movement itself, while pushing it
3112     * into bounce state manually.
3113     *
3114     * @return the thumb scroll border friction
3115     *
3116     * @ingroup Scrolling
3117     */
3118    EAPI double           elm_scroll_thumbscroll_border_friction_get(void);
3119
3120    /**
3121     * Set the amount of lag between your actual mouse cursor dragging
3122     * movement and a scroller's view movement itself, while pushing it
3123     * into bounce state manually.
3124     *
3125     * @param friction the thumb scroll border friction. @c 0.0 for
3126     *        perfect synchrony between two movements, @c 1.0 for maximum
3127     *        lag.
3128     *
3129     * @see elm_thumbscroll_border_friction_get()
3130     * @note parameter value will get bound to 0.0 - 1.0 interval, always
3131     *
3132     * @ingroup Scrolling
3133     */
3134    EAPI void             elm_scroll_thumbscroll_border_friction_set(double friction);
3135
3136    /**
3137     * Set the amount of lag between your actual mouse cursor dragging
3138     * movement and a scroller's view movement itself, while pushing it
3139     * into bounce state manually, for all Elementary application windows.
3140     *
3141     * @param friction the thumb scroll border friction. @c 0.0 for
3142     *        perfect synchrony between two movements, @c 1.0 for maximum
3143     *        lag.
3144     *
3145     * @see elm_thumbscroll_border_friction_get()
3146     * @note parameter value will get bound to 0.0 - 1.0 interval, always
3147     *
3148     * @ingroup Scrolling
3149     */
3150    EAPI void             elm_scroll_thumbscroll_border_friction_all_set(double friction);
3151
3152    /**
3153     * Get the sensitivity amount which is be multiplied by the length of
3154     * mouse dragging.
3155     *
3156     * @return the thumb scroll sensitivity friction
3157     *
3158     * @ingroup Scrolling
3159     */
3160    EAPI double           elm_scroll_thumbscroll_sensitivity_friction_get(void);
3161
3162    /**
3163     * Set the sensitivity amount which is be multiplied by the length of
3164     * mouse dragging.
3165     *
3166     * @param friction the thumb scroll sensitivity friction. @c 0.1 for
3167     *        minimun sensitivity, @c 1.0 for maximum sensitivity. 0.25
3168     *        is proper.
3169     *
3170     * @see elm_thumbscroll_sensitivity_friction_get()
3171     * @note parameter value will get bound to 0.1 - 1.0 interval, always
3172     *
3173     * @ingroup Scrolling
3174     */
3175    EAPI void             elm_scroll_thumbscroll_sensitivity_friction_set(double friction);
3176
3177    /**
3178     * Set the sensitivity amount which is be multiplied by the length of
3179     * mouse dragging, for all Elementary application windows.
3180     *
3181     * @param friction the thumb scroll sensitivity friction. @c 0.1 for
3182     *        minimun sensitivity, @c 1.0 for maximum sensitivity. 0.25
3183     *        is proper.
3184     *
3185     * @see elm_thumbscroll_sensitivity_friction_get()
3186     * @note parameter value will get bound to 0.1 - 1.0 interval, always
3187     *
3188     * @ingroup Scrolling
3189     */
3190    EAPI void             elm_scroll_thumbscroll_sensitivity_friction_all_set(double friction);
3191
3192    /**
3193     * @}
3194     */
3195
3196    /**
3197     * @defgroup Scrollhints Scrollhints
3198     *
3199     * Objects when inside a scroller can scroll, but this may not always be
3200     * desirable in certain situations. This allows an object to hint to itself
3201     * and parents to "not scroll" in one of 2 ways. If any child object of a
3202     * scroller has pushed a scroll freeze or hold then it affects all parent
3203     * scrollers until all children have released them.
3204     *
3205     * 1. To hold on scrolling. This means just flicking and dragging may no
3206     * longer scroll, but pressing/dragging near an edge of the scroller will
3207     * still scroll. This is automatically used by the entry object when
3208     * selecting text.
3209     *
3210     * 2. To totally freeze scrolling. This means it stops. until
3211     * popped/released.
3212     *
3213     * @{
3214     */
3215
3216    /**
3217     * Push the scroll hold by 1
3218     *
3219     * This increments the scroll hold count by one. If it is more than 0 it will
3220     * take effect on the parents of the indicated object.
3221     *
3222     * @param obj The object
3223     * @ingroup Scrollhints
3224     */
3225    EAPI void             elm_object_scroll_hold_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
3226
3227    /**
3228     * Pop the scroll hold by 1
3229     *
3230     * This decrements the scroll hold count by one. If it is more than 0 it will
3231     * take effect on the parents of the indicated object.
3232     *
3233     * @param obj The object
3234     * @ingroup Scrollhints
3235     */
3236    EAPI void             elm_object_scroll_hold_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
3237
3238    /**
3239     * Push the scroll freeze by 1
3240     *
3241     * This increments the scroll freeze count by one. If it is more
3242     * than 0 it will take effect on the parents of the indicated
3243     * object.
3244     *
3245     * @param obj The object
3246     * @ingroup Scrollhints
3247     */
3248    EAPI void             elm_object_scroll_freeze_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
3249
3250    /**
3251     * Pop the scroll freeze by 1
3252     *
3253     * This decrements the scroll freeze count by one. If it is more
3254     * than 0 it will take effect on the parents of the indicated
3255     * object.
3256     *
3257     * @param obj The object
3258     * @ingroup Scrollhints
3259     */
3260    EAPI void             elm_object_scroll_freeze_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
3261
3262    /**
3263     * Lock the scrolling of the given widget (and thus all parents)
3264     *
3265     * This locks the given object from scrolling in the X axis (and implicitly
3266     * also locks all parent scrollers too from doing the same).
3267     *
3268     * @param obj The object
3269     * @param lock The lock state (1 == locked, 0 == unlocked)
3270     * @ingroup Scrollhints
3271     */
3272    EAPI void             elm_object_scroll_lock_x_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
3273
3274    /**
3275     * Lock the scrolling of the given widget (and thus all parents)
3276     *
3277     * This locks the given object from scrolling in the Y axis (and implicitly
3278     * also locks all parent scrollers too from doing the same).
3279     *
3280     * @param obj The object
3281     * @param lock The lock state (1 == locked, 0 == unlocked)
3282     * @ingroup Scrollhints
3283     */
3284    EAPI void             elm_object_scroll_lock_y_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
3285
3286    /**
3287     * Get the scrolling lock of the given widget
3288     *
3289     * This gets the lock for X axis scrolling.
3290     *
3291     * @param obj The object
3292     * @ingroup Scrollhints
3293     */
3294    EAPI Eina_Bool        elm_object_scroll_lock_x_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3295
3296    /**
3297     * Get the scrolling lock of the given widget
3298     *
3299     * This gets the lock for X axis scrolling.
3300     *
3301     * @param obj The object
3302     * @ingroup Scrollhints
3303     */
3304    EAPI Eina_Bool        elm_object_scroll_lock_y_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3305
3306    /**
3307     * @}
3308     */
3309
3310    /**
3311     * Send a signal to the widget edje object.
3312     *
3313     * This function sends a signal to the edje object of the obj. An
3314     * edje program can respond to a signal by specifying matching
3315     * 'signal' and 'source' fields.
3316     *
3317     * @param obj The object
3318     * @param emission The signal's name.
3319     * @param source The signal's source.
3320     * @ingroup General
3321     */
3322    EAPI void             elm_object_signal_emit(Evas_Object *obj, const char *emission, const char *source) EINA_ARG_NONNULL(1);
3323
3324    /**
3325     * Add a callback for a signal emitted by widget edje object.
3326     *
3327     * This function connects a callback function to a signal emitted by the
3328     * edje object of the obj.
3329     * Globs can occur in either the emission or source name.
3330     *
3331     * @param obj The object
3332     * @param emission The signal's name.
3333     * @param source The signal's source.
3334     * @param func The callback function to be executed when the signal is
3335     * emitted.
3336     * @param data A pointer to data to pass in to the callback function.
3337     * @ingroup General
3338     */
3339    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);
3340
3341    /**
3342     * Remove a signal-triggered callback from a widget edje object.
3343     *
3344     * This function removes a callback, previoulsy attached to a
3345     * signal emitted by the edje object of the obj.  The parameters
3346     * emission, source and func must match exactly those passed to a
3347     * previous call to elm_object_signal_callback_add(). The data
3348     * pointer that was passed to this call will be returned.
3349     *
3350     * @param obj The object
3351     * @param emission The signal's name.
3352     * @param source The signal's source.
3353     * @param func The callback function to be executed when the signal is
3354     * emitted.
3355     * @return The data pointer
3356     * @ingroup General
3357     */
3358    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);
3359
3360    /**
3361     * Add a callback for input events (key up, key down, mouse wheel)
3362     * on a given Elementary widget
3363     *
3364     * @param obj The widget to add an event callback on
3365     * @param func The callback function to be executed when the event
3366     * happens
3367     * @param data Data to pass in to @p func
3368     *
3369     * Every widget in an Elementary interface set to receive focus,
3370     * with elm_object_focus_allow_set(), will propagate @b all of its
3371     * key up, key down and mouse wheel input events up to its parent
3372     * object, and so on. All of the focusable ones in this chain which
3373     * had an event callback set, with this call, will be able to treat
3374     * those events. There are two ways of making the propagation of
3375     * these event upwards in the tree of widgets to @b cease:
3376     * - Just return @c EINA_TRUE on @p func. @c EINA_FALSE will mean
3377     *   the event was @b not processed, so the propagation will go on.
3378     * - The @c event_info pointer passed to @p func will contain the
3379     *   event's structure and, if you OR its @c event_flags inner
3380     *   value to @c EVAS_EVENT_FLAG_ON_HOLD, you're telling Elementary
3381     *   one has already handled it, thus killing the event's
3382     *   propagation, too.
3383     *
3384     * @note Your event callback will be issued on those events taking
3385     * place only if no other child widget of @obj has consumed the
3386     * event already.
3387     *
3388     * @note Not to be confused with @c
3389     * evas_object_event_callback_add(), which will add event callbacks
3390     * per type on general Evas objects (no event propagation
3391     * infrastructure taken in account).
3392     *
3393     * @note Not to be confused with @c
3394     * elm_object_signal_callback_add(), which will add callbacks to @b
3395     * signals coming from a widget's theme, not input events.
3396     *
3397     * @note Not to be confused with @c
3398     * edje_object_signal_callback_add(), which does the same as
3399     * elm_object_signal_callback_add(), but directly on an Edje
3400     * object.
3401     *
3402     * @note Not to be confused with @c
3403     * evas_object_smart_callback_add(), which adds callbacks to smart
3404     * objects' <b>smart events</b>, and not input events.
3405     *
3406     * @see elm_object_event_callback_del()
3407     *
3408     * @ingroup General
3409     */
3410    EAPI void             elm_object_event_callback_add(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
3411
3412    /**
3413     * Remove an event callback from a widget.
3414     *
3415     * This function removes a callback, previoulsy attached to event emission
3416     * by the @p obj.
3417     * The parameters func and data must match exactly those passed to
3418     * a previous call to elm_object_event_callback_add(). The data pointer that
3419     * was passed to this call will be returned.
3420     *
3421     * @param obj The object
3422     * @param func The callback function to be executed when the event is
3423     * emitted.
3424     * @param data Data to pass in to the callback function.
3425     * @return The data pointer
3426     * @ingroup General
3427     */
3428    EAPI void            *elm_object_event_callback_del(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
3429
3430    /**
3431     * Adjust size of an element for finger usage.
3432     *
3433     * @param times_w How many fingers should fit horizontally
3434     * @param w Pointer to the width size to adjust
3435     * @param times_h How many fingers should fit vertically
3436     * @param h Pointer to the height size to adjust
3437     *
3438     * This takes width and height sizes (in pixels) as input and a
3439     * size multiple (which is how many fingers you want to place
3440     * within the area, being "finger" the size set by
3441     * elm_finger_size_set()), and adjusts the size to be large enough
3442     * to accommodate the resulting size -- if it doesn't already
3443     * accommodate it. On return the @p w and @p h sizes pointed to by
3444     * these parameters will be modified, on those conditions.
3445     *
3446     * @note This is kind of a low level Elementary call, most useful
3447     * on size evaluation times for widgets. An external user wouldn't
3448     * be calling, most of the time.
3449     *
3450     * @ingroup Fingers
3451     */
3452    EAPI void             elm_coords_finger_size_adjust(int times_w, Evas_Coord *w, int times_h, Evas_Coord *h);
3453
3454    /**
3455     * Get the duration for occuring long press event.
3456     *
3457     * @return Timeout for long press event
3458     * @ingroup Longpress
3459     */
3460    EAPI double           elm_longpress_timeout_get(void);
3461
3462    /**
3463     * Set the duration for occuring long press event.
3464     *
3465     * @param lonpress_timeout Timeout for long press event
3466     * @ingroup Longpress
3467     */
3468    EAPI void             elm_longpress_timeout_set(double longpress_timeout);
3469
3470    /**
3471     * @defgroup Debug Debug
3472     * don't use it unless you are sure
3473     *
3474     * @{
3475     */
3476
3477    /**
3478     * Print Tree object hierarchy in stdout
3479     *
3480     * @param obj The root object
3481     * @ingroup Debug
3482     */
3483    EAPI void             elm_object_tree_dump(const Evas_Object *top);
3484
3485    /**
3486     * Print Elm Objects tree hierarchy in file as dot(graphviz) syntax.
3487     *
3488     * @param obj The root object
3489     * @param file The path of output file
3490     * @ingroup Debug
3491     */
3492    EAPI void             elm_object_tree_dot_dump(const Evas_Object *top, const char *file);
3493
3494    /**
3495     * @}
3496     */
3497
3498    /**
3499     * @defgroup Theme Theme
3500     *
3501     * Elementary uses Edje to theme its widgets, naturally. But for the most
3502     * part this is hidden behind a simpler interface that lets the user set
3503     * extensions and choose the style of widgets in a much easier way.
3504     *
3505     * Instead of thinking in terms of paths to Edje files and their groups
3506     * each time you want to change the appearance of a widget, Elementary
3507     * works so you can add any theme file with extensions or replace the
3508     * main theme at one point in the application, and then just set the style
3509     * of widgets with elm_object_style_set() and related functions. Elementary
3510     * will then look in its list of themes for a matching group and apply it,
3511     * and when the theme changes midway through the application, all widgets
3512     * will be updated accordingly.
3513     *
3514     * There are three concepts you need to know to understand how Elementary
3515     * theming works: default theme, extensions and overlays.
3516     *
3517     * Default theme, obviously enough, is the one that provides the default
3518     * look of all widgets. End users can change the theme used by Elementary
3519     * by setting the @c ELM_THEME environment variable before running an
3520     * application, or globally for all programs using the @c elementary_config
3521     * utility. Applications can change the default theme using elm_theme_set(),
3522     * but this can go against the user wishes, so it's not an adviced practice.
3523     *
3524     * Ideally, applications should find everything they need in the already
3525     * provided theme, but there may be occasions when that's not enough and
3526     * custom styles are required to correctly express the idea. For this
3527     * cases, Elementary has extensions.
3528     *
3529     * Extensions allow the application developer to write styles of its own
3530     * to apply to some widgets. This requires knowledge of how each widget
3531     * is themed, as extensions will always replace the entire group used by
3532     * the widget, so important signals and parts need to be there for the
3533     * object to behave properly (see documentation of Edje for details).
3534     * Once the theme for the extension is done, the application needs to add
3535     * it to the list of themes Elementary will look into, using
3536     * elm_theme_extension_add(), and set the style of the desired widgets as
3537     * he would normally with elm_object_style_set().
3538     *
3539     * Overlays, on the other hand, can replace the look of all widgets by
3540     * overriding the default style. Like extensions, it's up to the application
3541     * developer to write the theme for the widgets it wants, the difference
3542     * being that when looking for the theme, Elementary will check first the
3543     * list of overlays, then the set theme and lastly the list of extensions,
3544     * so with overlays it's possible to replace the default view and every
3545     * widget will be affected. This is very much alike to setting the whole
3546     * theme for the application and will probably clash with the end user
3547     * options, not to mention the risk of ending up with not matching styles
3548     * across the program. Unless there's a very special reason to use them,
3549     * overlays should be avoided for the resons exposed before.
3550     *
3551     * All these theme lists are handled by ::Elm_Theme instances. Elementary
3552     * keeps one default internally and every function that receives one of
3553     * these can be called with NULL to refer to this default (except for
3554     * elm_theme_free()). It's possible to create a new instance of a
3555     * ::Elm_Theme to set other theme for a specific widget (and all of its
3556     * children), but this is as discouraged, if not even more so, than using
3557     * overlays. Don't use this unless you really know what you are doing.
3558     *
3559     * But to be less negative about things, you can look at the following
3560     * examples:
3561     * @li @ref theme_example_01 "Using extensions"
3562     * @li @ref theme_example_02 "Using overlays"
3563     *
3564     * @{
3565     */
3566    /**
3567     * @typedef Elm_Theme
3568     *
3569     * Opaque handler for the list of themes Elementary looks for when
3570     * rendering widgets.
3571     *
3572     * Stay out of this unless you really know what you are doing. For most
3573     * cases, sticking to the default is all a developer needs.
3574     */
3575    typedef struct _Elm_Theme Elm_Theme;
3576
3577    /**
3578     * Create a new specific theme
3579     *
3580     * This creates an empty specific theme that only uses the default theme. A
3581     * specific theme has its own private set of extensions and overlays too
3582     * (which are empty by default). Specific themes do not fall back to themes
3583     * of parent objects. They are not intended for this use. Use styles, overlays
3584     * and extensions when needed, but avoid specific themes unless there is no
3585     * other way (example: you want to have a preview of a new theme you are
3586     * selecting in a "theme selector" window. The preview is inside a scroller
3587     * and should display what the theme you selected will look like, but not
3588     * actually apply it yet. The child of the scroller will have a specific
3589     * theme set to show this preview before the user decides to apply it to all
3590     * applications).
3591     */
3592    EAPI Elm_Theme       *elm_theme_new(void);
3593    /**
3594     * Free a specific theme
3595     *
3596     * @param th The theme to free
3597     *
3598     * This frees a theme created with elm_theme_new().
3599     */
3600    EAPI void             elm_theme_free(Elm_Theme *th);
3601    /**
3602     * Copy the theme fom the source to the destination theme
3603     *
3604     * @param th The source theme to copy from
3605     * @param thdst The destination theme to copy data to
3606     *
3607     * This makes a one-time static copy of all the theme config, extensions
3608     * and overlays from @p th to @p thdst. If @p th references a theme, then
3609     * @p thdst is also set to reference it, with all the theme settings,
3610     * overlays and extensions that @p th had.
3611     */
3612    EAPI void             elm_theme_copy(Elm_Theme *th, Elm_Theme *thdst);
3613    /**
3614     * Tell the source theme to reference the ref theme
3615     *
3616     * @param th The theme that will do the referencing
3617     * @param thref The theme that is the reference source
3618     *
3619     * This clears @p th to be empty and then sets it to refer to @p thref
3620     * so @p th acts as an override to @p thref, but where its overrides
3621     * don't apply, it will fall through to @p thref for configuration.
3622     */
3623    EAPI void             elm_theme_ref_set(Elm_Theme *th, Elm_Theme *thref);
3624    /**
3625     * Return the theme referred to
3626     *
3627     * @param th The theme to get the reference from
3628     * @return The referenced theme handle
3629     *
3630     * This gets the theme set as the reference theme by elm_theme_ref_set().
3631     * If no theme is set as a reference, NULL is returned.
3632     */
3633    EAPI Elm_Theme       *elm_theme_ref_get(Elm_Theme *th);
3634    /**
3635     * Return the default theme
3636     *
3637     * @return The default theme handle
3638     *
3639     * This returns the internal default theme setup handle that all widgets
3640     * use implicitly unless a specific theme is set. This is also often use
3641     * as a shorthand of NULL.
3642     */
3643    EAPI Elm_Theme       *elm_theme_default_get(void);
3644    /**
3645     * Prepends a theme overlay to the list of overlays
3646     *
3647     * @param th The theme to add to, or if NULL, the default theme
3648     * @param item The Edje file path to be used
3649     *
3650     * Use this if your application needs to provide some custom overlay theme
3651     * (An Edje file that replaces some default styles of widgets) where adding
3652     * new styles, or changing system theme configuration is not possible. Do
3653     * NOT use this instead of a proper system theme configuration. Use proper
3654     * configuration files, profiles, environment variables etc. to set a theme
3655     * so that the theme can be altered by simple confiugration by a user. Using
3656     * this call to achieve that effect is abusing the API and will create lots
3657     * of trouble.
3658     *
3659     * @see elm_theme_extension_add()
3660     */
3661    EAPI void             elm_theme_overlay_add(Elm_Theme *th, const char *item);
3662    /**
3663     * Delete a theme overlay from the list of overlays
3664     *
3665     * @param th The theme to delete from, or if NULL, the default theme
3666     * @param item The name of the theme overlay
3667     *
3668     * @see elm_theme_overlay_add()
3669     */
3670    EAPI void             elm_theme_overlay_del(Elm_Theme *th, const char *item);
3671    /**
3672     * Appends a theme extension to the list of extensions.
3673     *
3674     * @param th The theme to add to, or if NULL, the default theme
3675     * @param item The Edje file path to be used
3676     *
3677     * This is intended when an application needs more styles of widgets or new
3678     * widget themes that the default does not provide (or may not provide). The
3679     * application has "extended" usage by coming up with new custom style names
3680     * for widgets for specific uses, but as these are not "standard", they are
3681     * not guaranteed to be provided by a default theme. This means the
3682     * application is required to provide these extra elements itself in specific
3683     * Edje files. This call adds one of those Edje files to the theme search
3684     * path to be search after the default theme. The use of this call is
3685     * encouraged when default styles do not meet the needs of the application.
3686     * Use this call instead of elm_theme_overlay_add() for almost all cases.
3687     *
3688     * @see elm_object_style_set()
3689     */
3690    EAPI void             elm_theme_extension_add(Elm_Theme *th, const char *item);
3691    /**
3692     * Deletes a theme extension from the list of extensions.
3693     *
3694     * @param th The theme to delete from, or if NULL, the default theme
3695     * @param item The name of the theme extension
3696     *
3697     * @see elm_theme_extension_add()
3698     */
3699    EAPI void             elm_theme_extension_del(Elm_Theme *th, const char *item);
3700    /**
3701     * Set the theme search order for the given theme
3702     *
3703     * @param th The theme to set the search order, or if NULL, the default theme
3704     * @param theme Theme search string
3705     *
3706     * This sets the search string for the theme in path-notation from first
3707     * theme to search, to last, delimited by the : character. Example:
3708     *
3709     * "shiny:/path/to/file.edj:default"
3710     *
3711     * See the ELM_THEME environment variable for more information.
3712     *
3713     * @see elm_theme_get()
3714     * @see elm_theme_list_get()
3715     */
3716    EAPI void             elm_theme_set(Elm_Theme *th, const char *theme);
3717    /**
3718     * Return the theme search order
3719     *
3720     * @param th The theme to get the search order, or if NULL, the default theme
3721     * @return The internal search order path
3722     *
3723     * This function returns a colon separated string of theme elements as
3724     * returned by elm_theme_list_get().
3725     *
3726     * @see elm_theme_set()
3727     * @see elm_theme_list_get()
3728     */
3729    EAPI const char      *elm_theme_get(Elm_Theme *th);
3730    /**
3731     * Return a list of theme elements to be used in a theme.
3732     *
3733     * @param th Theme to get the list of theme elements from.
3734     * @return The internal list of theme elements
3735     *
3736     * This returns the internal list of theme elements (will only be valid as
3737     * long as the theme is not modified by elm_theme_set() or theme is not
3738     * freed by elm_theme_free(). This is a list of strings which must not be
3739     * altered as they are also internal. If @p th is NULL, then the default
3740     * theme element list is returned.
3741     *
3742     * A theme element can consist of a full or relative path to a .edj file,
3743     * or a name, without extension, for a theme to be searched in the known
3744     * theme paths for Elemementary.
3745     *
3746     * @see elm_theme_set()
3747     * @see elm_theme_get()
3748     */
3749    EAPI const Eina_List *elm_theme_list_get(const Elm_Theme *th);
3750    /**
3751     * Return the full patrh for a theme element
3752     *
3753     * @param f The theme element name
3754     * @param in_search_path Pointer to a boolean to indicate if item is in the search path or not
3755     * @return The full path to the file found.
3756     *
3757     * This returns a string you should free with free() on success, NULL on
3758     * failure. This will search for the given theme element, and if it is a
3759     * full or relative path element or a simple searchable name. The returned
3760     * path is the full path to the file, if searched, and the file exists, or it
3761     * is simply the full path given in the element or a resolved path if
3762     * relative to home. The @p in_search_path boolean pointed to is set to
3763     * EINA_TRUE if the file was a searchable file andis in the search path,
3764     * and EINA_FALSE otherwise.
3765     */
3766    EAPI char            *elm_theme_list_item_path_get(const char *f, Eina_Bool *in_search_path);
3767    /**
3768     * Flush the current theme.
3769     *
3770     * @param th Theme to flush
3771     *
3772     * This flushes caches that let elementary know where to find theme elements
3773     * in the given theme. If @p th is NULL, then the default theme is flushed.
3774     * Call this function if source theme data has changed in such a way as to
3775     * make any caches Elementary kept invalid.
3776     */
3777    EAPI void             elm_theme_flush(Elm_Theme *th);
3778    /**
3779     * This flushes all themes (default and specific ones).
3780     *
3781     * This will flush all themes in the current application context, by calling
3782     * elm_theme_flush() on each of them.
3783     */
3784    EAPI void             elm_theme_full_flush(void);
3785    /**
3786     * Set the theme for all elementary using applications on the current display
3787     *
3788     * @param theme The name of the theme to use. Format same as the ELM_THEME
3789     * environment variable.
3790     */
3791    EAPI void             elm_theme_all_set(const char *theme);
3792    /**
3793     * Return a list of theme elements in the theme search path
3794     *
3795     * @return A list of strings that are the theme element names.
3796     *
3797     * This lists all available theme files in the standard Elementary search path
3798     * for theme elements, and returns them in alphabetical order as theme
3799     * element names in a list of strings. Free this with
3800     * elm_theme_name_available_list_free() when you are done with the list.
3801     */
3802    EAPI Eina_List       *elm_theme_name_available_list_new(void);
3803    /**
3804     * Free the list returned by elm_theme_name_available_list_new()
3805     *
3806     * This frees the list of themes returned by
3807     * elm_theme_name_available_list_new(). Once freed the list should no longer
3808     * be used. a new list mys be created.
3809     */
3810    EAPI void             elm_theme_name_available_list_free(Eina_List *list);
3811    /**
3812     * Set a specific theme to be used for this object and its children
3813     *
3814     * @param obj The object to set the theme on
3815     * @param th The theme to set
3816     *
3817     * This sets a specific theme that will be used for the given object and any
3818     * child objects it has. If @p th is NULL then the theme to be used is
3819     * cleared and the object will inherit its theme from its parent (which
3820     * ultimately will use the default theme if no specific themes are set).
3821     *
3822     * Use special themes with great care as this will annoy users and make
3823     * configuration difficult. Avoid any custom themes at all if it can be
3824     * helped.
3825     */
3826    EAPI void             elm_object_theme_set(Evas_Object *obj, Elm_Theme *th) EINA_ARG_NONNULL(1);
3827    /**
3828     * Get the specific theme to be used
3829     *
3830     * @param obj The object to get the specific theme from
3831     * @return The specifc theme set.
3832     *
3833     * This will return a specific theme set, or NULL if no specific theme is
3834     * set on that object. It will not return inherited themes from parents, only
3835     * the specific theme set for that specific object. See elm_object_theme_set()
3836     * for more information.
3837     */
3838    EAPI Elm_Theme       *elm_object_theme_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3839
3840    /**
3841     * Get a data item from a theme
3842     *
3843     * @param th The theme, or NULL for default theme
3844     * @param key The data key to search with
3845     * @return The data value, or NULL on failure
3846     *
3847     * This function is used to return data items from edc in @p th, an overlay, or an extension.
3848     * It works the same way as edje_file_data_get() except that the return is stringshared.
3849     */
3850    EAPI const char      *elm_theme_data_get(Elm_Theme *th, const char *key) EINA_ARG_NONNULL(2);
3851    /**
3852     * @}
3853     */
3854
3855    /* win */
3856    /** @defgroup Win Win
3857     *
3858     * @image html img/widget/win/preview-00.png
3859     * @image latex img/widget/win/preview-00.eps
3860     *
3861     * The window class of Elementary.  Contains functions to manipulate
3862     * windows. The Evas engine used to render the window contents is specified
3863     * in the system or user elementary config files (whichever is found last),
3864     * and can be overridden with the ELM_ENGINE environment variable for
3865     * testing.  Engines that may be supported (depending on Evas and Ecore-Evas
3866     * compilation setup and modules actually installed at runtime) are (listed
3867     * in order of best supported and most likely to be complete and work to
3868     * lowest quality).
3869     *
3870     * @li "x11", "x", "software-x11", "software_x11" (Software rendering in X11)
3871     * @li "gl", "opengl", "opengl-x11", "opengl_x11" (OpenGL or OpenGL-ES2
3872     * rendering in X11)
3873     * @li "shot:..." (Virtual screenshot renderer - renders to output file and
3874     * exits)
3875     * @li "fb", "software-fb", "software_fb" (Linux framebuffer direct software
3876     * rendering)
3877     * @li "sdl", "software-sdl", "software_sdl" (SDL software rendering to SDL
3878     * buffer)
3879     * @li "gl-sdl", "gl_sdl", "opengl-sdl", "opengl_sdl" (OpenGL or OpenGL-ES2
3880     * rendering using SDL as the buffer)
3881     * @li "gdi", "software-gdi", "software_gdi" (Windows WIN32 rendering via
3882     * GDI with software)
3883     * @li "dfb", "directfb" (Rendering to a DirectFB window)
3884     * @li "x11-8", "x8", "software-8-x11", "software_8_x11" (Rendering in
3885     * grayscale using dedicated 8bit software engine in X11)
3886     * @li "x11-16", "x16", "software-16-x11", "software_16_x11" (Rendering in
3887     * X11 using 16bit software engine)
3888     * @li "wince-gdi", "software-16-wince-gdi", "software_16_wince_gdi"
3889     * (Windows CE rendering via GDI with 16bit software renderer)
3890     * @li "sdl-16", "software-16-sdl", "software_16_sdl" (Rendering to SDL
3891     * buffer with 16bit software renderer)
3892     * @li "ews" (rendering to EWS - Ecore + Evas Single Process Windowing System)
3893     * @li "gl-cocoa", "gl_cocoa", "opengl-cocoa", "opengl_cocoa" (OpenGL rendering in Cocoa)
3894     * @li "psl1ght" (PS3 rendering using PSL1GHT)
3895     *
3896     * All engines use a simple string to select the engine to render, EXCEPT
3897     * the "shot" engine. This actually encodes the output of the virtual
3898     * screenshot and how long to delay in the engine string. The engine string
3899     * is encoded in the following way:
3900     *
3901     *   "shot:[delay=XX][:][repeat=DDD][:][file=XX]"
3902     *
3903     * Where options are separated by a ":" char if more than one option is
3904     * given, with delay, if provided being the first option and file the last
3905     * (order is important). The delay specifies how long to wait after the
3906     * window is shown before doing the virtual "in memory" rendering and then
3907     * save the output to the file specified by the file option (and then exit).
3908     * If no delay is given, the default is 0.5 seconds. If no file is given the
3909     * default output file is "out.png". Repeat option is for continous
3910     * capturing screenshots. Repeat range is from 1 to 999 and filename is
3911     * fixed to "out001.png" Some examples of using the shot engine:
3912     *
3913     *   ELM_ENGINE="shot:delay=1.0:repeat=5:file=elm_test.png" elementary_test
3914     *   ELM_ENGINE="shot:delay=1.0:file=elm_test.png" elementary_test
3915     *   ELM_ENGINE="shot:file=elm_test2.png" elementary_test
3916     *   ELM_ENGINE="shot:delay=2.0" elementary_test
3917     *   ELM_ENGINE="shot:" elementary_test
3918     *
3919     * Signals that you can add callbacks for are:
3920     *
3921     * @li "delete,request": the user requested to close the window. See
3922     * elm_win_autodel_set().
3923     * @li "focus,in": window got focus
3924     * @li "focus,out": window lost focus
3925     * @li "moved": window that holds the canvas was moved
3926     *
3927     * Examples:
3928     * @li @ref win_example_01
3929     *
3930     * @{
3931     */
3932    /**
3933     * Defines the types of window that can be created
3934     *
3935     * These are hints set on the window so that a running Window Manager knows
3936     * how the window should be handled and/or what kind of decorations it
3937     * should have.
3938     *
3939     * Currently, only the X11 backed engines use them.
3940     */
3941    typedef enum _Elm_Win_Type
3942      {
3943         ELM_WIN_BASIC, /**< A normal window. Indicates a normal, top-level
3944                          window. Almost every window will be created with this
3945                          type. */
3946         ELM_WIN_DIALOG_BASIC, /**< Used for simple dialog windows/ */
3947         ELM_WIN_DESKTOP, /**< For special desktop windows, like a background
3948                            window holding desktop icons. */
3949         ELM_WIN_DOCK, /**< The window is used as a dock or panel. Usually would
3950                         be kept on top of any other window by the Window
3951                         Manager. */
3952         ELM_WIN_TOOLBAR, /**< The window is used to hold a floating toolbar, or
3953                            similar. */
3954         ELM_WIN_MENU, /**< Similar to #ELM_WIN_TOOLBAR. */
3955         ELM_WIN_UTILITY, /**< A persistent utility window, like a toolbox or
3956                            pallete. */
3957         ELM_WIN_SPLASH, /**< Splash window for a starting up application. */
3958         ELM_WIN_DROPDOWN_MENU, /**< The window is a dropdown menu, as when an
3959                                  entry in a menubar is clicked. Typically used
3960                                  with elm_win_override_set(). This hint exists
3961                                  for completion only, as the EFL way of
3962                                  implementing a menu would not normally use a
3963                                  separate window for its contents. */
3964         ELM_WIN_POPUP_MENU, /**< Like #ELM_WIN_DROPDOWN_MENU, but for the menu
3965                               triggered by right-clicking an object. */
3966         ELM_WIN_TOOLTIP, /**< The window is a tooltip. A short piece of
3967                            explanatory text that typically appear after the
3968                            mouse cursor hovers over an object for a while.
3969                            Typically used with elm_win_override_set() and also
3970                            not very commonly used in the EFL. */
3971         ELM_WIN_NOTIFICATION, /**< A notification window, like a warning about
3972                                 battery life or a new E-Mail received. */
3973         ELM_WIN_COMBO, /**< A window holding the contents of a combo box. Not
3974                          usually used in the EFL. */
3975         ELM_WIN_DND, /**< Used to indicate the window is a representation of an
3976                        object being dragged across different windows, or even
3977                        applications. Typically used with
3978                        elm_win_override_set(). */
3979         ELM_WIN_INLINED_IMAGE, /**< The window is rendered onto an image
3980                                  buffer. No actual window is created for this
3981                                  type, instead the window and all of its
3982                                  contents will be rendered to an image buffer.
3983                                  This allows to have children window inside a
3984                                  parent one just like any other object would
3985                                  be, and do other things like applying @c
3986                                  Evas_Map effects to it. This is the only type
3987                                  of window that requires the @c parent
3988                                  parameter of elm_win_add() to be a valid @c
3989                                  Evas_Object. */
3990      } Elm_Win_Type;
3991
3992    /**
3993     * The differents layouts that can be requested for the virtual keyboard.
3994     *
3995     * When the application window is being managed by Illume, it may request
3996     * any of the following layouts for the virtual keyboard.
3997     */
3998    typedef enum _Elm_Win_Keyboard_Mode
3999      {
4000         ELM_WIN_KEYBOARD_UNKNOWN, /**< Unknown keyboard state */
4001         ELM_WIN_KEYBOARD_OFF, /**< Request to deactivate the keyboard */
4002         ELM_WIN_KEYBOARD_ON, /**< Enable keyboard with default layout */
4003         ELM_WIN_KEYBOARD_ALPHA, /**< Alpha (a-z) keyboard layout */
4004         ELM_WIN_KEYBOARD_NUMERIC, /**< Numeric keyboard layout */
4005         ELM_WIN_KEYBOARD_PIN, /**< PIN keyboard layout */
4006         ELM_WIN_KEYBOARD_PHONE_NUMBER, /**< Phone keyboard layout */
4007         ELM_WIN_KEYBOARD_HEX, /**< Hexadecimal numeric keyboard layout */
4008         ELM_WIN_KEYBOARD_TERMINAL, /**< Full (QUERTY) keyboard layout */
4009         ELM_WIN_KEYBOARD_PASSWORD, /**< Password keyboard layout */
4010         ELM_WIN_KEYBOARD_IP, /**< IP keyboard layout */
4011         ELM_WIN_KEYBOARD_HOST, /**< Host keyboard layout */
4012         ELM_WIN_KEYBOARD_FILE, /**< File keyboard layout */
4013         ELM_WIN_KEYBOARD_URL, /**< URL keyboard layout */
4014         ELM_WIN_KEYBOARD_KEYPAD, /**< Keypad layout */
4015         ELM_WIN_KEYBOARD_J2ME /**< J2ME keyboard layout */
4016      } Elm_Win_Keyboard_Mode;
4017
4018    /**
4019     * Available commands that can be sent to the Illume manager.
4020     *
4021     * When running under an Illume session, a window may send commands to the
4022     * Illume manager to perform different actions.
4023     */
4024    typedef enum _Elm_Illume_Command
4025      {
4026         ELM_ILLUME_COMMAND_FOCUS_BACK, /**< Reverts focus to the previous
4027                                          window */
4028         ELM_ILLUME_COMMAND_FOCUS_FORWARD, /**< Sends focus to the next window\
4029                                             in the list */
4030         ELM_ILLUME_COMMAND_FOCUS_HOME, /**< Hides all windows to show the Home
4031                                          screen */
4032         ELM_ILLUME_COMMAND_CLOSE /**< Closes the currently active window */
4033      } Elm_Illume_Command;
4034
4035    /**
4036     * Adds a window object. If this is the first window created, pass NULL as
4037     * @p parent.
4038     *
4039     * @param parent Parent object to add the window to, or NULL
4040     * @param name The name of the window
4041     * @param type The window type, one of #Elm_Win_Type.
4042     *
4043     * The @p parent paramter can be @c NULL for every window @p type except
4044     * #ELM_WIN_INLINED_IMAGE, which needs a parent to retrieve the canvas on
4045     * which the image object will be created.
4046     *
4047     * @return The created object, or NULL on failure
4048     */
4049    EAPI Evas_Object *elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type);
4050    /**
4051     * Adds a window object with standard setup
4052     *
4053     * @param name The name of the window
4054     * @param title The title for the window
4055     *
4056     * This creates a window like elm_win_add() but also puts in a standard
4057     * background with elm_bg_add(), as well as setting the window title to
4058     * @p title. The window type created is of type ELM_WIN_BASIC, with NULL
4059     * as the parent widget.
4060     *
4061     * @return The created object, or NULL on failure
4062     *
4063     * @see elm_win_add()
4064     */
4065    EAPI Evas_Object *elm_win_util_standard_add(const char *name, const char *title);
4066    /**
4067     * Add @p subobj as a resize object of window @p obj.
4068     *
4069     *
4070     * Setting an object as a resize object of the window means that the
4071     * @p subobj child's size and position will be controlled by the window
4072     * directly. That is, the object will be resized to match the window size
4073     * and should never be moved or resized manually by the developer.
4074     *
4075     * In addition, resize objects of the window control what the minimum size
4076     * of it will be, as well as whether it can or not be resized by the user.
4077     *
4078     * For the end user to be able to resize a window by dragging the handles
4079     * or borders provided by the Window Manager, or using any other similar
4080     * mechanism, all of the resize objects in the window should have their
4081     * evas_object_size_hint_weight_set() set to EVAS_HINT_EXPAND.
4082     *
4083     * Also notice that the window can get resized to the current size of the
4084     * object if the EVAS_HINT_EXPAND is set @b after the call to
4085     * elm_win_resize_object_add(). So if the object should get resized to the
4086     * size of the window, set this hint @b before adding it as a resize object
4087     * (this happens because the size of the window and the object are evaluated
4088     * as soon as the object is added to the window).
4089     *
4090     * @param obj The window object
4091     * @param subobj The resize object to add
4092     */
4093    EAPI void         elm_win_resize_object_add(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
4094    /**
4095     * Delete @p subobj as a resize object of window @p obj.
4096     *
4097     * This function removes the object @p subobj from the resize objects of
4098     * the window @p obj. It will not delete the object itself, which will be
4099     * left unmanaged and should be deleted by the developer, manually handled
4100     * or set as child of some other container.
4101     *
4102     * @param obj The window object
4103     * @param subobj The resize object to add
4104     */
4105    EAPI void         elm_win_resize_object_del(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
4106    /**
4107     * Set the title of the window
4108     *
4109     * @param obj The window object
4110     * @param title The title to set
4111     */
4112    EAPI void         elm_win_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
4113    /**
4114     * Get the title of the window
4115     *
4116     * The returned string is an internal one and should not be freed or
4117     * modified. It will also be rendered invalid if a new title is set or if
4118     * the window is destroyed.
4119     *
4120     * @param obj The window object
4121     * @return The title
4122     */
4123    EAPI const char  *elm_win_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4124    /**
4125     * Set the window's autodel state.
4126     *
4127     * When closing the window in any way outside of the program control, like
4128     * pressing the X button in the titlebar or using a command from the
4129     * Window Manager, a "delete,request" signal is emitted to indicate that
4130     * this event occurred and the developer can take any action, which may
4131     * include, or not, destroying the window object.
4132     *
4133     * When the @p autodel parameter is set, the window will be automatically
4134     * destroyed when this event occurs, after the signal is emitted.
4135     * If @p autodel is @c EINA_FALSE, then the window will not be destroyed
4136     * and is up to the program to do so when it's required.
4137     *
4138     * @param obj The window object
4139     * @param autodel If true, the window will automatically delete itself when
4140     * closed
4141     */
4142    EAPI void         elm_win_autodel_set(Evas_Object *obj, Eina_Bool autodel) EINA_ARG_NONNULL(1);
4143    /**
4144     * Get the window's autodel state.
4145     *
4146     * @param obj The window object
4147     * @return If the window will automatically delete itself when closed
4148     *
4149     * @see elm_win_autodel_set()
4150     */
4151    EAPI Eina_Bool    elm_win_autodel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4152    /**
4153     * Activate a window object.
4154     *
4155     * This function sends a request to the Window Manager to activate the
4156     * window pointed by @p obj. If honored by the WM, the window will receive
4157     * the keyboard focus.
4158     *
4159     * @note This is just a request that a Window Manager may ignore, so calling
4160     * this function does not ensure in any way that the window will be the
4161     * active one after it.
4162     *
4163     * @param obj The window object
4164     */
4165    EAPI void         elm_win_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
4166    /**
4167     * Lower a window object.
4168     *
4169     * Places the window pointed by @p obj at the bottom of the stack, so that
4170     * no other window is covered by it.
4171     *
4172     * If elm_win_override_set() is not set, the Window Manager may ignore this
4173     * request.
4174     *
4175     * @param obj The window object
4176     */
4177    EAPI void         elm_win_lower(Evas_Object *obj) EINA_ARG_NONNULL(1);
4178    /**
4179     * Raise a window object.
4180     *
4181     * Places the window pointed by @p obj at the top of the stack, so that it's
4182     * not covered by any other window.
4183     *
4184     * If elm_win_override_set() is not set, the Window Manager may ignore this
4185     * request.
4186     *
4187     * @param obj The window object
4188     */
4189    EAPI void         elm_win_raise(Evas_Object *obj) EINA_ARG_NONNULL(1);
4190    /**
4191     * Center a window on its screen
4192     *
4193     * This function centers window @p obj horizontally and/or vertically based on the values
4194     * of @p h and @v.
4195     * @param obj The window object
4196     * @param h If true, center horizontally. If false, do not change horizontal location.
4197     * @param v If true, center vertically. If false, do not change vertical location.
4198     */
4199    EAPI void         elm_win_center(Evas_Object *obj, Eina_Bool h, Eina_Bool v) EINA_ARG_NONNULL(1);
4200    /**
4201     * Set the borderless state of a window.
4202     *
4203     * This function requests the Window Manager to not draw any decoration
4204     * around the window.
4205     *
4206     * @param obj The window object
4207     * @param borderless If true, the window is borderless
4208     */
4209    EAPI void         elm_win_borderless_set(Evas_Object *obj, Eina_Bool borderless) EINA_ARG_NONNULL(1);
4210    /**
4211     * Get the borderless state of a window.
4212     *
4213     * @param obj The window object
4214     * @return If true, the window is borderless
4215     */
4216    EAPI Eina_Bool    elm_win_borderless_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4217    /**
4218     * Set the shaped state of a window.
4219     *
4220     * Shaped windows, when supported, will render the parts of the window that
4221     * has no content, transparent.
4222     *
4223     * If @p shaped is EINA_FALSE, then it is strongly adviced to have some
4224     * background object or cover the entire window in any other way, or the
4225     * parts of the canvas that have no data will show framebuffer artifacts.
4226     *
4227     * @param obj The window object
4228     * @param shaped If true, the window is shaped
4229     *
4230     * @see elm_win_alpha_set()
4231     */
4232    EAPI void         elm_win_shaped_set(Evas_Object *obj, Eina_Bool shaped) EINA_ARG_NONNULL(1);
4233    /**
4234     * Get the shaped state of a window.
4235     *
4236     * @param obj The window object
4237     * @return If true, the window is shaped
4238     *
4239     * @see elm_win_shaped_set()
4240     */
4241    EAPI Eina_Bool    elm_win_shaped_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4242    /**
4243     * Set the alpha channel state of a window.
4244     *
4245     * If @p alpha is EINA_TRUE, the alpha channel of the canvas will be enabled
4246     * possibly making parts of the window completely or partially transparent.
4247     * This is also subject to the underlying system supporting it, like for
4248     * example, running under a compositing manager. If no compositing is
4249     * available, enabling this option will instead fallback to using shaped
4250     * windows, with elm_win_shaped_set().
4251     *
4252     * @param obj The window object
4253     * @param alpha If true, the window has an alpha channel
4254     *
4255     * @see elm_win_alpha_set()
4256     */
4257    EAPI void         elm_win_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
4258    /**
4259     * Get the transparency state of a window.
4260     *
4261     * @param obj The window object
4262     * @return If true, the window is transparent
4263     *
4264     * @see elm_win_transparent_set()
4265     */
4266    EAPI Eina_Bool    elm_win_transparent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4267    /**
4268     * Set the transparency state of a window.
4269     *
4270     * Use elm_win_alpha_set() instead.
4271     *
4272     * @param obj The window object
4273     * @param transparent If true, the window is transparent
4274     *
4275     * @see elm_win_alpha_set()
4276     */
4277    EAPI void         elm_win_transparent_set(Evas_Object *obj, Eina_Bool transparent) EINA_ARG_NONNULL(1);
4278    /**
4279     * Get the alpha channel state of a window.
4280     *
4281     * @param obj The window object
4282     * @return If true, the window has an alpha channel
4283     */
4284    EAPI Eina_Bool    elm_win_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4285    /**
4286     * Set the override state of a window.
4287     *
4288     * A window with @p override set to EINA_TRUE will not be managed by the
4289     * Window Manager. This means that no decorations of any kind will be shown
4290     * for it, moving and resizing must be handled by the application, as well
4291     * as the window visibility.
4292     *
4293     * This should not be used for normal windows, and even for not so normal
4294     * ones, it should only be used when there's a good reason and with a lot
4295     * of care. Mishandling override windows may result situations that
4296     * disrupt the normal workflow of the end user.
4297     *
4298     * @param obj The window object
4299     * @param override If true, the window is overridden
4300     */
4301    EAPI void         elm_win_override_set(Evas_Object *obj, Eina_Bool override) EINA_ARG_NONNULL(1);
4302    /**
4303     * Get the override state of a window.
4304     *
4305     * @param obj The window object
4306     * @return If true, the window is overridden
4307     *
4308     * @see elm_win_override_set()
4309     */
4310    EAPI Eina_Bool    elm_win_override_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4311    /**
4312     * Set the fullscreen state of a window.
4313     *
4314     * @param obj The window object
4315     * @param fullscreen If true, the window is fullscreen
4316     */
4317    EAPI void         elm_win_fullscreen_set(Evas_Object *obj, Eina_Bool fullscreen) EINA_ARG_NONNULL(1);
4318    /**
4319     * Get the fullscreen state of a window.
4320     *
4321     * @param obj The window object
4322     * @return If true, the window is fullscreen
4323     */
4324    EAPI Eina_Bool    elm_win_fullscreen_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4325    /**
4326     * Set the maximized state of a window.
4327     *
4328     * @param obj The window object
4329     * @param maximized If true, the window is maximized
4330     */
4331    EAPI void         elm_win_maximized_set(Evas_Object *obj, Eina_Bool maximized) EINA_ARG_NONNULL(1);
4332    /**
4333     * Get the maximized state of a window.
4334     *
4335     * @param obj The window object
4336     * @return If true, the window is maximized
4337     */
4338    EAPI Eina_Bool    elm_win_maximized_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4339    /**
4340     * Set the iconified state of a window.
4341     *
4342     * @param obj The window object
4343     * @param iconified If true, the window is iconified
4344     */
4345    EAPI void         elm_win_iconified_set(Evas_Object *obj, Eina_Bool iconified) EINA_ARG_NONNULL(1);
4346    /**
4347     * Get the iconified state of a window.
4348     *
4349     * @param obj The window object
4350     * @return If true, the window is iconified
4351     */
4352    EAPI Eina_Bool    elm_win_iconified_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4353    /**
4354     * Set the layer of the window.
4355     *
4356     * What this means exactly will depend on the underlying engine used.
4357     *
4358     * In the case of X11 backed engines, the value in @p layer has the
4359     * following meanings:
4360     * @li < 3: The window will be placed below all others.
4361     * @li > 5: The window will be placed above all others.
4362     * @li other: The window will be placed in the default layer.
4363     *
4364     * @param obj The window object
4365     * @param layer The layer of the window
4366     */
4367    EAPI void         elm_win_layer_set(Evas_Object *obj, int layer) EINA_ARG_NONNULL(1);
4368    /**
4369     * Get the layer of the window.
4370     *
4371     * @param obj The window object
4372     * @return The layer of the window
4373     *
4374     * @see elm_win_layer_set()
4375     */
4376    EAPI int          elm_win_layer_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4377    /**
4378     * Set the rotation of the window.
4379     *
4380     * Most engines only work with multiples of 90.
4381     *
4382     * This function is used to set the orientation of the window @p obj to
4383     * match that of the screen. The window itself will be resized to adjust
4384     * to the new geometry of its contents. If you want to keep the window size,
4385     * see elm_win_rotation_with_resize_set().
4386     *
4387     * @param obj The window object
4388     * @param rotation The rotation of the window, in degrees (0-360),
4389     * counter-clockwise.
4390     */
4391    EAPI void         elm_win_rotation_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
4392    /**
4393     * Rotates the window and resizes it.
4394     *
4395     * Like elm_win_rotation_set(), but it also resizes the window's contents so
4396     * that they fit inside the current window geometry.
4397     *
4398     * @param obj The window object
4399     * @param layer The rotation of the window in degrees (0-360),
4400     * counter-clockwise.
4401     */
4402    EAPI void         elm_win_rotation_with_resize_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
4403    /**
4404     * Get the rotation of the window.
4405     *
4406     * @param obj The window object
4407     * @return The rotation of the window in degrees (0-360)
4408     *
4409     * @see elm_win_rotation_set()
4410     * @see elm_win_rotation_with_resize_set()
4411     */
4412    EAPI int          elm_win_rotation_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4413    /**
4414     * Set the sticky state of the window.
4415     *
4416     * Hints the Window Manager that the window in @p obj should be left fixed
4417     * at its position even when the virtual desktop it's on moves or changes.
4418     *
4419     * @param obj The window object
4420     * @param sticky If true, the window's sticky state is enabled
4421     */
4422    EAPI void         elm_win_sticky_set(Evas_Object *obj, Eina_Bool sticky) EINA_ARG_NONNULL(1);
4423    /**
4424     * Get the sticky state of the window.
4425     *
4426     * @param obj The window object
4427     * @return If true, the window's sticky state is enabled
4428     *
4429     * @see elm_win_sticky_set()
4430     */
4431    EAPI Eina_Bool    elm_win_sticky_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4432    /**
4433     * Set if this window is an illume conformant window
4434     *
4435     * @param obj The window object
4436     * @param conformant The conformant flag (1 = conformant, 0 = non-conformant)
4437     */
4438    EAPI void         elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant) EINA_ARG_NONNULL(1);
4439    /**
4440     * Get if this window is an illume conformant window
4441     *
4442     * @param obj The window object
4443     * @return A boolean if this window is illume conformant or not
4444     */
4445    EAPI Eina_Bool    elm_win_conformant_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4446    /**
4447     * Set a window to be an illume quickpanel window
4448     *
4449     * By default window objects are not quickpanel windows.
4450     *
4451     * @param obj The window object
4452     * @param quickpanel The quickpanel flag (1 = quickpanel, 0 = normal window)
4453     */
4454    EAPI void         elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel) EINA_ARG_NONNULL(1);
4455    /**
4456     * Get if this window is a quickpanel or not
4457     *
4458     * @param obj The window object
4459     * @return A boolean if this window is a quickpanel or not
4460     */
4461    EAPI Eina_Bool    elm_win_quickpanel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4462    /**
4463     * Set the major priority of a quickpanel window
4464     *
4465     * @param obj The window object
4466     * @param priority The major priority for this quickpanel
4467     */
4468    EAPI void         elm_win_quickpanel_priority_major_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
4469    /**
4470     * Get the major priority of a quickpanel window
4471     *
4472     * @param obj The window object
4473     * @return The major priority of this quickpanel
4474     */
4475    EAPI int          elm_win_quickpanel_priority_major_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4476    /**
4477     * Set the minor priority of a quickpanel window
4478     *
4479     * @param obj The window object
4480     * @param priority The minor priority for this quickpanel
4481     */
4482    EAPI void         elm_win_quickpanel_priority_minor_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
4483    /**
4484     * Get the minor priority of a quickpanel window
4485     *
4486     * @param obj The window object
4487     * @return The minor priority of this quickpanel
4488     */
4489    EAPI int          elm_win_quickpanel_priority_minor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4490    /**
4491     * Set which zone this quickpanel should appear in
4492     *
4493     * @param obj The window object
4494     * @param zone The requested zone for this quickpanel
4495     */
4496    EAPI void         elm_win_quickpanel_zone_set(Evas_Object *obj, int zone) EINA_ARG_NONNULL(1);
4497    /**
4498     * Get which zone this quickpanel should appear in
4499     *
4500     * @param obj The window object
4501     * @return The requested zone for this quickpanel
4502     */
4503    EAPI int          elm_win_quickpanel_zone_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4504    /**
4505     * Set the window to be skipped by keyboard focus
4506     *
4507     * This sets the window to be skipped by normal keyboard input. This means
4508     * a window manager will be asked to not focus this window as well as omit
4509     * it from things like the taskbar, pager, "alt-tab" list etc. etc.
4510     *
4511     * Call this and enable it on a window BEFORE you show it for the first time,
4512     * otherwise it may have no effect.
4513     *
4514     * Use this for windows that have only output information or might only be
4515     * interacted with by the mouse or fingers, and never for typing input.
4516     * Be careful that this may have side-effects like making the window
4517     * non-accessible in some cases unless the window is specially handled. Use
4518     * this with care.
4519     *
4520     * @param obj The window object
4521     * @param skip The skip flag state (EINA_TRUE if it is to be skipped)
4522     */
4523    EAPI void         elm_win_prop_focus_skip_set(Evas_Object *obj, Eina_Bool skip) EINA_ARG_NONNULL(1);
4524    /**
4525     * Send a command to the windowing environment
4526     *
4527     * This is intended to work in touchscreen or small screen device
4528     * environments where there is a more simplistic window management policy in
4529     * place. This uses the window object indicated to select which part of the
4530     * environment to control (the part that this window lives in), and provides
4531     * a command and an optional parameter structure (use NULL for this if not
4532     * needed).
4533     *
4534     * @param obj The window object that lives in the environment to control
4535     * @param command The command to send
4536     * @param params Optional parameters for the command
4537     */
4538    EAPI void         elm_win_illume_command_send(Evas_Object *obj, Elm_Illume_Command command, void *params) EINA_ARG_NONNULL(1);
4539    /**
4540     * Get the inlined image object handle
4541     *
4542     * When you create a window with elm_win_add() of type ELM_WIN_INLINED_IMAGE,
4543     * then the window is in fact an evas image object inlined in the parent
4544     * canvas. You can get this object (be careful to not manipulate it as it
4545     * is under control of elementary), and use it to do things like get pixel
4546     * data, save the image to a file, etc.
4547     *
4548     * @param obj The window object to get the inlined image from
4549     * @return The inlined image object, or NULL if none exists
4550     */
4551    EAPI Evas_Object *elm_win_inlined_image_object_get(Evas_Object *obj);
4552    /**
4553     * Determine whether a window has focus
4554     * @param obj The window to query
4555     * @return EINA_TRUE if the window exists and has focus, else EINA_FALSE
4556     */
4557    EAPI Eina_Bool    elm_win_focus_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4558    /**
4559     * Constrain the maximum width and height of a window to the width and height of its screen
4560     *
4561     * When @p constrain is true, @p obj will never resize larger than the screen.
4562     * @param obj The window object
4563     * @param constrain EINA_TRUE to restrict the window's maximum size, EINA_FALSE to disable restriction
4564     */
4565    EAPI void         elm_win_screen_constrain_set(Evas_Object *obj, Eina_Bool constrain) EINA_ARG_NONNULL(1);
4566    /**
4567     * Retrieve the constraints on the maximum width and height of a window relative to the width and height of its screen
4568     *
4569     * When this function returns true, @p obj will never resize larger than the screen.
4570     * @param obj The window object
4571     * @return EINA_TRUE to restrict the window's maximum size, EINA_FALSE to disable restriction
4572     */
4573    EAPI Eina_Bool    elm_win_screen_constrain_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
4574    /**
4575     * Get screen geometry details for the screen that a window is on
4576     * @param obj The window to query
4577     * @param x where to return the horizontal offset value. May be NULL.
4578     * @param y  where to return the vertical offset value. May be NULL.
4579     * @param w  where to return the width value. May be NULL.
4580     * @param h  where to return the height value. May be NULL.
4581     */
4582    EAPI void         elm_win_screen_size_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
4583    /**
4584     * Set the enabled status for the focus highlight in a window
4585     *
4586     * This function will enable or disable the focus highlight only for the
4587     * given window, regardless of the global setting for it
4588     *
4589     * @param obj The window where to enable the highlight
4590     * @param enabled The enabled value for the highlight
4591     */
4592    EAPI void         elm_win_focus_highlight_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
4593    /**
4594     * Get the enabled value of the focus highlight for this window
4595     *
4596     * @param obj The window in which to check if the focus highlight is enabled
4597     *
4598     * @return EINA_TRUE if enabled, EINA_FALSE otherwise
4599     */
4600    EAPI Eina_Bool    elm_win_focus_highlight_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4601    /**
4602     * Set the style for the focus highlight on this window
4603     *
4604     * Sets the style to use for theming the highlight of focused objects on
4605     * the given window. If @p style is NULL, the default will be used.
4606     *
4607     * @param obj The window where to set the style
4608     * @param style The style to set
4609     */
4610    EAPI void         elm_win_focus_highlight_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
4611    /**
4612     * Get the style set for the focus highlight object
4613     *
4614     * Gets the style set for this windows highilght object, or NULL if none
4615     * is set.
4616     *
4617     * @param obj The window to retrieve the highlights style from
4618     *
4619     * @return The style set or NULL if none was. Default is used in that case.
4620     */
4621    EAPI const char  *elm_win_focus_highlight_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4622    /*...
4623     * ecore_x_icccm_hints_set -> accepts_focus (add to ecore_evas)
4624     * ecore_x_icccm_hints_set -> window_group (add to ecore_evas)
4625     * ecore_x_icccm_size_pos_hints_set -> request_pos (add to ecore_evas)
4626     * ecore_x_icccm_client_leader_set -> l (add to ecore_evas)
4627     * ecore_x_icccm_window_role_set -> role (add to ecore_evas)
4628     * ecore_x_icccm_transient_for_set -> forwin (add to ecore_evas)
4629     * ecore_x_netwm_window_type_set -> type (add to ecore_evas)
4630     *
4631     * (add to ecore_x) set netwm argb icon! (add to ecore_evas)
4632     * (blank mouse, private mouse obj, defaultmouse)
4633     *
4634     */
4635    /**
4636     * Sets the keyboard mode of the window.
4637     *
4638     * @param obj The window object
4639     * @param mode The mode to set, one of #Elm_Win_Keyboard_Mode
4640     */
4641    EAPI void                  elm_win_keyboard_mode_set(Evas_Object *obj, Elm_Win_Keyboard_Mode mode) EINA_ARG_NONNULL(1);
4642    /**
4643     * Gets the keyboard mode of the window.
4644     *
4645     * @param obj The window object
4646     * @return The mode, one of #Elm_Win_Keyboard_Mode
4647     */
4648    EAPI Elm_Win_Keyboard_Mode elm_win_keyboard_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4649    /**
4650     * Sets whether the window is a keyboard.
4651     *
4652     * @param obj The window object
4653     * @param is_keyboard If true, the window is a virtual keyboard
4654     */
4655    EAPI void                  elm_win_keyboard_win_set(Evas_Object *obj, Eina_Bool is_keyboard) EINA_ARG_NONNULL(1);
4656    /**
4657     * Gets whether the window is a keyboard.
4658     *
4659     * @param obj The window object
4660     * @return If the window is a virtual keyboard
4661     */
4662    EAPI Eina_Bool             elm_win_keyboard_win_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4663
4664    /**
4665     * Get the screen position of a window.
4666     *
4667     * @param obj The window object
4668     * @param x The int to store the x coordinate to
4669     * @param y The int to store the y coordinate to
4670     */
4671    EAPI void                  elm_win_screen_position_get(const Evas_Object *obj, int *x, int *y) EINA_ARG_NONNULL(1);
4672    /**
4673     * @}
4674     */
4675
4676    /**
4677     * @defgroup Inwin Inwin
4678     *
4679     * @image html img/widget/inwin/preview-00.png
4680     * @image latex img/widget/inwin/preview-00.eps
4681     * @image html img/widget/inwin/preview-01.png
4682     * @image latex img/widget/inwin/preview-01.eps
4683     * @image html img/widget/inwin/preview-02.png
4684     * @image latex img/widget/inwin/preview-02.eps
4685     *
4686     * An inwin is a window inside a window that is useful for a quick popup.
4687     * It does not hover.
4688     *
4689     * It works by creating an object that will occupy the entire window, so it
4690     * must be created using an @ref Win "elm_win" as parent only. The inwin
4691     * object can be hidden or restacked below every other object if it's
4692     * needed to show what's behind it without destroying it. If this is done,
4693     * the elm_win_inwin_activate() function can be used to bring it back to
4694     * full visibility again.
4695     *
4696     * There are three styles available in the default theme. These are:
4697     * @li default: The inwin is sized to take over most of the window it's
4698     * placed in.
4699     * @li minimal: The size of the inwin will be the minimum necessary to show
4700     * its contents.
4701     * @li minimal_vertical: Horizontally, the inwin takes as much space as
4702     * possible, but it's sized vertically the most it needs to fit its\
4703     * contents.
4704     *
4705     * Some examples of Inwin can be found in the following:
4706     * @li @ref inwin_example_01
4707     *
4708     * @{
4709     */
4710    /**
4711     * Adds an inwin to the current window
4712     *
4713     * The @p obj used as parent @b MUST be an @ref Win "Elementary Window".
4714     * Never call this function with anything other than the top-most window
4715     * as its parameter, unless you are fond of undefined behavior.
4716     *
4717     * After creating the object, the widget will set itself as resize object
4718     * for the window with elm_win_resize_object_add(), so when shown it will
4719     * appear to cover almost the entire window (how much of it depends on its
4720     * content and the style used). It must not be added into other container
4721     * objects and it needs not be moved or resized manually.
4722     *
4723     * @param parent The parent object
4724     * @return The new object or NULL if it cannot be created
4725     */
4726    EAPI Evas_Object          *elm_win_inwin_add(Evas_Object *obj) EINA_ARG_NONNULL(1);
4727    /**
4728     * Activates an inwin object, ensuring its visibility
4729     *
4730     * This function will make sure that the inwin @p obj is completely visible
4731     * by calling evas_object_show() and evas_object_raise() on it, to bring it
4732     * to the front. It also sets the keyboard focus to it, which will be passed
4733     * onto its content.
4734     *
4735     * The object's theme will also receive the signal "elm,action,show" with
4736     * source "elm".
4737     *
4738     * @param obj The inwin to activate
4739     */
4740    EAPI void                  elm_win_inwin_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
4741    /**
4742     * Set the content of an inwin object.
4743     *
4744     * Once the content object is set, a previously set one will be deleted.
4745     * If you want to keep that old content object, use the
4746     * elm_win_inwin_content_unset() function.
4747     *
4748     * @param obj The inwin object
4749     * @param content The object to set as content
4750     */
4751    EAPI void                  elm_win_inwin_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
4752    /**
4753     * Get the content of an inwin object.
4754     *
4755     * Return the content object which is set for this widget.
4756     *
4757     * The returned object is valid as long as the inwin is still alive and no
4758     * other content is set on it. Deleting the object will notify the inwin
4759     * about it and this one will be left empty.
4760     *
4761     * If you need to remove an inwin's content to be reused somewhere else,
4762     * see elm_win_inwin_content_unset().
4763     *
4764     * @param obj The inwin object
4765     * @return The content that is being used
4766     */
4767    EAPI Evas_Object          *elm_win_inwin_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4768    /**
4769     * Unset the content of an inwin object.
4770     *
4771     * Unparent and return the content object which was set for this widget.
4772     *
4773     * @param obj The inwin object
4774     * @return The content that was being used
4775     */
4776    EAPI Evas_Object          *elm_win_inwin_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4777    /**
4778     * @}
4779     */
4780    /* X specific calls - won't work on non-x engines (return 0) */
4781
4782    /**
4783     * Get the Ecore_X_Window of an Evas_Object
4784     *
4785     * @param obj The object
4786     *
4787     * @return The Ecore_X_Window of @p obj
4788     *
4789     * @ingroup Win
4790     */
4791    EAPI Ecore_X_Window elm_win_xwindow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4792
4793    /* smart callbacks called:
4794     * "delete,request" - the user requested to delete the window
4795     * "focus,in" - window got focus
4796     * "focus,out" - window lost focus
4797     * "moved" - window that holds the canvas was moved
4798     */
4799
4800    /**
4801     * @defgroup Bg Bg
4802     *
4803     * @image html img/widget/bg/preview-00.png
4804     * @image latex img/widget/bg/preview-00.eps
4805     *
4806     * @brief Background object, used for setting a solid color, image or Edje
4807     * group as background to a window or any container object.
4808     *
4809     * The bg object is used for setting a solid background to a window or
4810     * packing into any container object. It works just like an image, but has
4811     * some properties useful to a background, like setting it to tiled,
4812     * centered, scaled or stretched.
4813     *
4814     * Default contents parts of the bg widget that you can use for are:
4815     * @li "overlay" - overlay of the bg
4816     *
4817     * Here is some sample code using it:
4818     * @li @ref bg_01_example_page
4819     * @li @ref bg_02_example_page
4820     * @li @ref bg_03_example_page
4821     */
4822
4823    /* bg */
4824    typedef enum _Elm_Bg_Option
4825      {
4826         ELM_BG_OPTION_CENTER,  /**< center the background */
4827         ELM_BG_OPTION_SCALE,   /**< scale the background retaining aspect ratio */
4828         ELM_BG_OPTION_STRETCH, /**< stretch the background to fill */
4829         ELM_BG_OPTION_TILE     /**< tile background at its original size */
4830      } Elm_Bg_Option;
4831
4832    /**
4833     * Add a new background to the parent
4834     *
4835     * @param parent The parent object
4836     * @return The new object or NULL if it cannot be created
4837     *
4838     * @ingroup Bg
4839     */
4840    EAPI Evas_Object  *elm_bg_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4841
4842    /**
4843     * Set the file (image or edje) used for the background
4844     *
4845     * @param obj The bg object
4846     * @param file The file path
4847     * @param group Optional key (group in Edje) within the file
4848     *
4849     * This sets the image file used in the background object. The image (or edje)
4850     * will be stretched (retaining aspect if its an image file) to completely fill
4851     * the bg object. This may mean some parts are not visible.
4852     *
4853     * @note  Once the image of @p obj is set, a previously set one will be deleted,
4854     * even if @p file is NULL.
4855     *
4856     * @ingroup Bg
4857     */
4858    EAPI void          elm_bg_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
4859
4860    /**
4861     * Get the file (image or edje) used for the background
4862     *
4863     * @param obj The bg object
4864     * @param file The file path
4865     * @param group Optional key (group in Edje) within the file
4866     *
4867     * @ingroup Bg
4868     */
4869    EAPI void          elm_bg_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
4870
4871    /**
4872     * Set the option used for the background image
4873     *
4874     * @param obj The bg object
4875     * @param option The desired background option (TILE, SCALE)
4876     *
4877     * This sets the option used for manipulating the display of the background
4878     * image. The image can be tiled or scaled.
4879     *
4880     * @ingroup Bg
4881     */
4882    EAPI void          elm_bg_option_set(Evas_Object *obj, Elm_Bg_Option option) EINA_ARG_NONNULL(1);
4883
4884    /**
4885     * Get the option used for the background image
4886     *
4887     * @param obj The bg object
4888     * @return The desired background option (CENTER, SCALE, STRETCH or TILE)
4889     *
4890     * @ingroup Bg
4891     */
4892    EAPI Elm_Bg_Option elm_bg_option_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4893    /**
4894     * Set the option used for the background color
4895     *
4896     * @param obj The bg object
4897     * @param r
4898     * @param g
4899     * @param b
4900     *
4901     * This sets the color used for the background rectangle. Its range goes
4902     * from 0 to 255.
4903     *
4904     * @ingroup Bg
4905     */
4906    EAPI void          elm_bg_color_set(Evas_Object *obj, int r, int g, int b) EINA_ARG_NONNULL(1);
4907    /**
4908     * Get the option used for the background color
4909     *
4910     * @param obj The bg object
4911     * @param r
4912     * @param g
4913     * @param b
4914     *
4915     * @ingroup Bg
4916     */
4917    EAPI void          elm_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b) EINA_ARG_NONNULL(1);
4918
4919    /**
4920     * Set the overlay object used for the background object.
4921     *
4922     * @param obj The bg object
4923     * @param overlay The overlay object
4924     *
4925     * This provides a way for elm_bg to have an 'overlay' that will be on top
4926     * of the bg. Once the over object is set, a previously set one will be
4927     * deleted, even if you set the new one to NULL. If you want to keep that
4928     * old content object, use the elm_bg_overlay_unset() function.
4929     *
4930     * @deprecated use elm_object_part_content_set() instead
4931     *
4932     * @ingroup Bg
4933     */
4934
4935    EINA_DEPRECATED EAPI void          elm_bg_overlay_set(Evas_Object *obj, Evas_Object *overlay) EINA_ARG_NONNULL(1);
4936
4937    /**
4938     * Get the overlay object used for the background object.
4939     *
4940     * @param obj The bg object
4941     * @return The content that is being used
4942     *
4943     * Return the content object which is set for this widget
4944     *
4945     * @deprecated use elm_object_part_content_get() instead
4946     *
4947     * @ingroup Bg
4948     */
4949    EINA_DEPRECATED EAPI Evas_Object  *elm_bg_overlay_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4950
4951    /**
4952     * Get the overlay object used for the background object.
4953     *
4954     * @param obj The bg object
4955     * @return The content that was being used
4956     *
4957     * Unparent and return the overlay object which was set for this widget
4958     *
4959     * @deprecated use elm_object_part_content_unset() instead
4960     *
4961     * @ingroup Bg
4962     */
4963    EINA_DEPRECATED EAPI Evas_Object  *elm_bg_overlay_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4964
4965    /**
4966     * Set the size of the pixmap representation of the image.
4967     *
4968     * This option just makes sense if an image is going to be set in the bg.
4969     *
4970     * @param obj The bg object
4971     * @param w The new width of the image pixmap representation.
4972     * @param h The new height of the image pixmap representation.
4973     *
4974     * This function sets a new size for pixmap representation of the given bg
4975     * image. It allows the image to be loaded already in the specified size,
4976     * reducing the memory usage and load time when loading a big image with load
4977     * size set to a smaller size.
4978     *
4979     * NOTE: this is just a hint, the real size of the pixmap may differ
4980     * depending on the type of image being loaded, being bigger than requested.
4981     *
4982     * @ingroup Bg
4983     */
4984    EAPI void          elm_bg_load_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
4985    /* smart callbacks called:
4986     */
4987
4988    /**
4989     * @defgroup Icon Icon
4990     *
4991     * @image html img/widget/icon/preview-00.png
4992     * @image latex img/widget/icon/preview-00.eps
4993     *
4994     * An object that provides standard icon images (delete, edit, arrows, etc.)
4995     * or a custom file (PNG, JPG, EDJE, etc.) used for an icon.
4996     *
4997     * The icon image requested can be in the elementary theme, or in the
4998     * freedesktop.org paths. It's possible to set the order of preference from
4999     * where the image will be used.
5000     *
5001     * This API is very similar to @ref Image, but with ready to use images.
5002     *
5003     * Default images provided by the theme are described below.
5004     *
5005     * The first list contains icons that were first intended to be used in
5006     * toolbars, but can be used in many other places too:
5007     * @li home
5008     * @li close
5009     * @li apps
5010     * @li arrow_up
5011     * @li arrow_down
5012     * @li arrow_left
5013     * @li arrow_right
5014     * @li chat
5015     * @li clock
5016     * @li delete
5017     * @li edit
5018     * @li refresh
5019     * @li folder
5020     * @li file
5021     *
5022     * Now some icons that were designed to be used in menus (but again, you can
5023     * use them anywhere else):
5024     * @li menu/home
5025     * @li menu/close
5026     * @li menu/apps
5027     * @li menu/arrow_up
5028     * @li menu/arrow_down
5029     * @li menu/arrow_left
5030     * @li menu/arrow_right
5031     * @li menu/chat
5032     * @li menu/clock
5033     * @li menu/delete
5034     * @li menu/edit
5035     * @li menu/refresh
5036     * @li menu/folder
5037     * @li menu/file
5038     *
5039     * And here we have some media player specific icons:
5040     * @li media_player/forward
5041     * @li media_player/info
5042     * @li media_player/next
5043     * @li media_player/pause
5044     * @li media_player/play
5045     * @li media_player/prev
5046     * @li media_player/rewind
5047     * @li media_player/stop
5048     *
5049     * Signals that you can add callbacks for are:
5050     *
5051     * "clicked" - This is called when a user has clicked the icon
5052     *
5053     * An example of usage for this API follows:
5054     * @li @ref tutorial_icon
5055     */
5056
5057    /**
5058     * @addtogroup Icon
5059     * @{
5060     */
5061
5062    typedef enum _Elm_Icon_Type
5063      {
5064         ELM_ICON_NONE,
5065         ELM_ICON_FILE,
5066         ELM_ICON_STANDARD
5067      } Elm_Icon_Type;
5068    /**
5069     * @enum _Elm_Icon_Lookup_Order
5070     * @typedef Elm_Icon_Lookup_Order
5071     *
5072     * Lookup order used by elm_icon_standard_set(). Should look for icons in the
5073     * theme, FDO paths, or both?
5074     *
5075     * @ingroup Icon
5076     */
5077    typedef enum _Elm_Icon_Lookup_Order
5078      {
5079         ELM_ICON_LOOKUP_FDO_THEME, /**< icon look up order: freedesktop, theme */
5080         ELM_ICON_LOOKUP_THEME_FDO, /**< icon look up order: theme, freedesktop */
5081         ELM_ICON_LOOKUP_FDO,       /**< icon look up order: freedesktop */
5082         ELM_ICON_LOOKUP_THEME      /**< icon look up order: theme */
5083      } Elm_Icon_Lookup_Order;
5084
5085    /**
5086     * Add a new icon object to the parent.
5087     *
5088     * @param parent The parent object
5089     * @return The new object or NULL if it cannot be created
5090     *
5091     * @see elm_icon_file_set()
5092     *
5093     * @ingroup Icon
5094     */
5095    EAPI Evas_Object          *elm_icon_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5096    /**
5097     * Set the file that will be used as icon.
5098     *
5099     * @param obj The icon object
5100     * @param file The path to file that will be used as icon image
5101     * @param group The group that the icon belongs to an edje file
5102     *
5103     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5104     *
5105     * @note The icon image set by this function can be changed by
5106     * elm_icon_standard_set().
5107     *
5108     * @see elm_icon_file_get()
5109     *
5110     * @ingroup Icon
5111     */
5112    EAPI Eina_Bool             elm_icon_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
5113    /**
5114     * Set a location in memory to be used as an icon
5115     *
5116     * @param obj The icon object
5117     * @param img The binary data that will be used as an image
5118     * @param size The size of binary data @p img
5119     * @param format Optional format of @p img to pass to the image loader
5120     * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
5121     *
5122     * The @p format string should be something like "png", "jpg", "tga",
5123     * "tiff", "bmp" etc. if it is provided (NULL if not). This improves
5124     * the loader performance as it tries the "correct" loader first before
5125     * trying a range of other possible loaders until one succeeds.
5126     * 
5127     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5128     *
5129     * @note The icon image set by this function can be changed by
5130     * elm_icon_standard_set().
5131     *
5132     * @ingroup Icon
5133     */
5134    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);
5135    /**
5136     * Get the file that will be used as icon.
5137     *
5138     * @param obj The icon object
5139     * @param file The path to file that will be used as the icon image
5140     * @param group The group that the icon belongs to, in edje file
5141     *
5142     * @see elm_icon_file_set()
5143     *
5144     * @ingroup Icon
5145     */
5146    EAPI void                  elm_icon_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
5147    /**
5148     * Set the file that will be used, but use a generated thumbnail.
5149     *
5150     * @param obj The icon object
5151     * @param file The path to file that will be used as icon image
5152     * @param group The group that the icon belongs to an edje file
5153     *
5154     * This functions like elm_icon_file_set() but requires the Ethumb library
5155     * support to be enabled successfully with elm_need_ethumb(). When set
5156     * the file indicated has a thumbnail generated and cached on disk for
5157     * future use or will directly use an existing cached thumbnail if it
5158     * is valid.
5159     * 
5160     * @see elm_icon_file_set()
5161     *
5162     * @ingroup Icon
5163     */
5164    EAPI void                  elm_icon_thumb_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
5165    /**
5166     * Set the icon by icon standards names.
5167     *
5168     * @param obj The icon object
5169     * @param name The icon name
5170     *
5171     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5172     *
5173     * For example, freedesktop.org defines standard icon names such as "home",
5174     * "network", etc. There can be different icon sets to match those icon
5175     * keys. The @p name given as parameter is one of these "keys", and will be
5176     * used to look in the freedesktop.org paths and elementary theme. One can
5177     * change the lookup order with elm_icon_order_lookup_set().
5178     *
5179     * If name is not found in any of the expected locations and it is the
5180     * absolute path of an image file, this image will be used.
5181     *
5182     * @note The icon image set by this function can be changed by
5183     * elm_icon_file_set().
5184     *
5185     * @see elm_icon_standard_get()
5186     * @see elm_icon_file_set()
5187     *
5188     * @ingroup Icon
5189     */
5190    EAPI Eina_Bool             elm_icon_standard_set(Evas_Object *obj, const char *name) EINA_ARG_NONNULL(1);
5191    /**
5192     * Get the icon name set by icon standard names.
5193     *
5194     * @param obj The icon object
5195     * @return The icon name
5196     *
5197     * If the icon image was set using elm_icon_file_set() instead of
5198     * elm_icon_standard_set(), then this function will return @c NULL.
5199     *
5200     * @see elm_icon_standard_set()
5201     *
5202     * @ingroup Icon
5203     */
5204    EAPI const char           *elm_icon_standard_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5205    /**
5206     * Set the smooth scaling for an icon object.
5207     *
5208     * @param obj The icon object
5209     * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
5210     * otherwise. Default is @c EINA_TRUE.
5211     *
5212     * Set the scaling algorithm to be used when scaling the icon image. Smooth
5213     * scaling provides a better resulting image, but is slower.
5214     *
5215     * The smooth scaling should be disabled when making animations that change
5216     * the icon size, since they will be faster. Animations that don't require
5217     * resizing of the icon can keep the smooth scaling enabled (even if the icon
5218     * is already scaled, since the scaled icon image will be cached).
5219     *
5220     * @see elm_icon_smooth_get()
5221     *
5222     * @ingroup Icon
5223     */
5224    EAPI void                  elm_icon_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
5225    /**
5226     * Get whether smooth scaling is enabled for an icon object.
5227     *
5228     * @param obj The icon object
5229     * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
5230     *
5231     * @see elm_icon_smooth_set()
5232     *
5233     * @ingroup Icon
5234     */
5235    EAPI Eina_Bool             elm_icon_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5236    /**
5237     * Disable scaling of this object.
5238     *
5239     * @param obj The icon object.
5240     * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
5241     * otherwise. Default is @c EINA_FALSE.
5242     *
5243     * This function disables scaling of the icon object through the function
5244     * elm_object_scale_set(). However, this does not affect the object
5245     * size/resize in any way. For that effect, take a look at
5246     * elm_icon_scale_set().
5247     *
5248     * @see elm_icon_no_scale_get()
5249     * @see elm_icon_scale_set()
5250     * @see elm_object_scale_set()
5251     *
5252     * @ingroup Icon
5253     */
5254    EAPI void                  elm_icon_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
5255    /**
5256     * Get whether scaling is disabled on the object.
5257     *
5258     * @param obj The icon object
5259     * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
5260     *
5261     * @see elm_icon_no_scale_set()
5262     *
5263     * @ingroup Icon
5264     */
5265    EAPI Eina_Bool             elm_icon_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5266    /**
5267     * Set if the object is (up/down) resizable.
5268     *
5269     * @param obj The icon object
5270     * @param scale_up A bool to set if the object is resizable up. Default is
5271     * @c EINA_TRUE.
5272     * @param scale_down A bool to set if the object is resizable down. Default
5273     * is @c EINA_TRUE.
5274     *
5275     * This function limits the icon object resize ability. If @p scale_up is set to
5276     * @c EINA_FALSE, the object can't have its height or width resized to a value
5277     * higher than the original icon size. Same is valid for @p scale_down.
5278     *
5279     * @see elm_icon_scale_get()
5280     *
5281     * @ingroup Icon
5282     */
5283    EAPI void                  elm_icon_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
5284    /**
5285     * Get if the object is (up/down) resizable.
5286     *
5287     * @param obj The icon object
5288     * @param scale_up A bool to set if the object is resizable up
5289     * @param scale_down A bool to set if the object is resizable down
5290     *
5291     * @see elm_icon_scale_set()
5292     *
5293     * @ingroup Icon
5294     */
5295    EAPI void                  elm_icon_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
5296    /**
5297     * Get the object's image size
5298     *
5299     * @param obj The icon object
5300     * @param w A pointer to store the width in
5301     * @param h A pointer to store the height in
5302     *
5303     * @ingroup Icon
5304     */
5305    EAPI void                  elm_icon_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
5306    /**
5307     * Set if the icon fill the entire object area.
5308     *
5309     * @param obj The icon object
5310     * @param fill_outside @c EINA_TRUE if the object is filled outside,
5311     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5312     *
5313     * When the icon object is resized to a different aspect ratio from the
5314     * original icon image, the icon image will still keep its aspect. This flag
5315     * tells how the image should fill the object's area. They are: keep the
5316     * entire icon inside the limits of height and width of the object (@p
5317     * fill_outside is @c EINA_FALSE) or let the extra width or height go outside
5318     * of the object, and the icon will fill the entire object (@p fill_outside
5319     * is @c EINA_TRUE).
5320     *
5321     * @note Unlike @ref Image, there's no option in icon to set the aspect ratio
5322     * retain property to false. Thus, the icon image will always keep its
5323     * original aspect ratio.
5324     *
5325     * @see elm_icon_fill_outside_get()
5326     * @see elm_image_fill_outside_set()
5327     *
5328     * @ingroup Icon
5329     */
5330    EAPI void                  elm_icon_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
5331    /**
5332     * Get if the object is filled outside.
5333     *
5334     * @param obj The icon object
5335     * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
5336     *
5337     * @see elm_icon_fill_outside_set()
5338     *
5339     * @ingroup Icon
5340     */
5341    EAPI Eina_Bool             elm_icon_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5342    /**
5343     * Set the prescale size for the icon.
5344     *
5345     * @param obj The icon object
5346     * @param size The prescale size. This value is used for both width and
5347     * height.
5348     *
5349     * This function sets a new size for pixmap representation of the given
5350     * icon. It allows the icon to be loaded already in the specified size,
5351     * reducing the memory usage and load time when loading a big icon with load
5352     * size set to a smaller size.
5353     *
5354     * It's equivalent to the elm_bg_load_size_set() function for bg.
5355     *
5356     * @note this is just a hint, the real size of the pixmap may differ
5357     * depending on the type of icon being loaded, being bigger than requested.
5358     *
5359     * @see elm_icon_prescale_get()
5360     * @see elm_bg_load_size_set()
5361     *
5362     * @ingroup Icon
5363     */
5364    EAPI void                  elm_icon_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
5365    /**
5366     * Get the prescale size for the icon.
5367     *
5368     * @param obj The icon object
5369     * @return The prescale size
5370     *
5371     * @see elm_icon_prescale_set()
5372     *
5373     * @ingroup Icon
5374     */
5375    EAPI int                   elm_icon_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5376    /**
5377     * Gets the image object of the icon. DO NOT MODIFY THIS.
5378     *
5379     * @param obj The icon object
5380     * @return The internal icon object
5381     *
5382     * @ingroup Icon
5383     */
5384    EAPI Evas_Object          *elm_icon_object_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
5385    /**
5386     * Sets the icon lookup order used by elm_icon_standard_set().
5387     *
5388     * @param obj The icon object
5389     * @param order The icon lookup order (can be one of
5390     * ELM_ICON_LOOKUP_FDO_THEME, ELM_ICON_LOOKUP_THEME_FDO, ELM_ICON_LOOKUP_FDO
5391     * or ELM_ICON_LOOKUP_THEME)
5392     *
5393     * @see elm_icon_order_lookup_get()
5394     * @see Elm_Icon_Lookup_Order
5395     *
5396     * @ingroup Icon
5397     */
5398    EAPI void                  elm_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
5399    /**
5400     * Gets the icon lookup order.
5401     *
5402     * @param obj The icon object
5403     * @return The icon lookup order
5404     *
5405     * @see elm_icon_order_lookup_set()
5406     * @see Elm_Icon_Lookup_Order
5407     *
5408     * @ingroup Icon
5409     */
5410    EAPI Elm_Icon_Lookup_Order elm_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5411    /**
5412     * Enable or disable preloading of the icon
5413     *
5414     * @param obj The icon object
5415     * @param disable If EINA_TRUE, preloading will be disabled
5416     * @ingroup Icon
5417     */
5418    EAPI void                  elm_icon_preload_set(Evas_Object *obj, Eina_Bool disable) EINA_ARG_NONNULL(1);
5419    /**
5420     * Get if the icon supports animation or not.
5421     *
5422     * @param obj The icon object
5423     * @return @c EINA_TRUE if the icon supports animation,
5424     *         @c EINA_FALSE otherwise.
5425     *
5426     * Return if this elm icon's image can be animated. Currently Evas only
5427     * supports gif animation. If the return value is EINA_FALSE, other
5428     * elm_icon_animated_XXX APIs won't work.
5429     * @ingroup Icon
5430     */
5431    EAPI Eina_Bool           elm_icon_animated_available_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5432    /**
5433     * Set animation mode of the icon.
5434     *
5435     * @param obj The icon object
5436     * @param anim @c EINA_TRUE if the object do animation job,
5437     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5438     *
5439     * Since the default animation mode is set to EINA_FALSE,
5440     * the icon is shown without animation. Files like animated GIF files
5441     * can animate, and this is supported if you enable animated support
5442     * on the icon.
5443     * Set it to EINA_TRUE when the icon needs to be animated.
5444     * @ingroup Icon
5445     */
5446    EAPI void                elm_icon_animated_set(Evas_Object *obj, Eina_Bool animated) EINA_ARG_NONNULL(1);
5447    /**
5448     * Get animation mode of the icon.
5449     *
5450     * @param obj The icon object
5451     * @return The animation mode of the icon object
5452     * @see elm_icon_animated_set
5453     * @ingroup Icon
5454     */
5455    EAPI Eina_Bool           elm_icon_animated_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5456    /**
5457     * Set animation play mode of the icon.
5458     *
5459     * @param obj The icon object
5460     * @param play @c EINA_TRUE the object play animation images,
5461     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5462     *
5463     * To play elm icon's animation, set play to EINA_TURE.
5464     * For example, you make gif player using this set/get API and click event.
5465     * This literally lets you control current play or paused state. To have
5466     * this work with animated GIF files for example, you first, before
5467     * setting the file have to use elm_icon_animated_set() to enable animation
5468     * at all on the icon.
5469     *
5470     * 1. Click event occurs
5471     * 2. Check play flag using elm_icon_animaged_play_get
5472     * 3. If elm icon was playing, set play to EINA_FALSE.
5473     *    Then animation will be stopped and vice versa
5474     * @ingroup Icon
5475     */
5476    EAPI void                elm_icon_animated_play_set(Evas_Object *obj, Eina_Bool play) EINA_ARG_NONNULL(1);
5477    /**
5478     * Get animation play mode of the icon.
5479     *
5480     * @param obj The icon object
5481     * @return The play mode of the icon object
5482     *
5483     * @see elm_icon_animated_play_get
5484     * @ingroup Icon
5485     */
5486    EAPI Eina_Bool           elm_icon_animated_play_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5487
5488    /**
5489     * @}
5490     */
5491
5492    /**
5493     * @defgroup Image Image
5494     *
5495     * @image html img/widget/image/preview-00.png
5496     * @image latex img/widget/image/preview-00.eps
5497
5498     *
5499     * An object that allows one to load an image file to it. It can be used
5500     * anywhere like any other elementary widget.
5501     *
5502     * This widget provides most of the functionality provided from @ref Bg or @ref
5503     * Icon, but with a slightly different API (use the one that fits better your
5504     * needs).
5505     *
5506     * The features not provided by those two other image widgets are:
5507     * @li allowing to get the basic @c Evas_Object with elm_image_object_get();
5508     * @li change the object orientation with elm_image_orient_set();
5509     * @li and turning the image editable with elm_image_editable_set().
5510     *
5511     * Signals that you can add callbacks for are:
5512     *
5513     * @li @c "clicked" - This is called when a user has clicked the image
5514     *
5515     * An example of usage for this API follows:
5516     * @li @ref tutorial_image
5517     */
5518
5519    /**
5520     * @addtogroup Image
5521     * @{
5522     */
5523
5524    /**
5525     * @enum _Elm_Image_Orient
5526     * @typedef Elm_Image_Orient
5527     *
5528     * Possible orientation options for elm_image_orient_set().
5529     *
5530     * @image html elm_image_orient_set.png
5531     * @image latex elm_image_orient_set.eps width=\textwidth
5532     *
5533     * @ingroup Image
5534     */
5535    typedef enum _Elm_Image_Orient
5536      {
5537         ELM_IMAGE_ORIENT_NONE = 0, /**< no orientation change */
5538         ELM_IMAGE_ORIENT_0 = 0, /**< no orientation change */
5539         ELM_IMAGE_ROTATE_90 = 1, /**< rotate 90 degrees clockwise */
5540         ELM_IMAGE_ROTATE_180 = 2, /**< rotate 180 degrees clockwise */
5541         ELM_IMAGE_ROTATE_270 = 3, /**< rotate 90 degrees counter-clockwise (i.e. 270 degrees clockwise) */
5542         /*EINA_DEPRECATED*/ELM_IMAGE_ROTATE_90_CW = 1, /**< rotate 90 degrees clockwise */
5543         /*EINA_DEPRECATED*/ELM_IMAGE_ROTATE_180_CW = 2, /**< rotate 180 degrees clockwise */
5544         /*EINA_DEPRECATED*/ELM_IMAGE_ROTATE_90_CCW = 3, /**< rotate 90 degrees counter-clockwise (i.e. 270 degrees clockwise) */
5545         ELM_IMAGE_FLIP_HORIZONTAL = 4, /**< flip image horizontally */
5546         ELM_IMAGE_FLIP_VERTICAL = 5, /**< flip image vertically */
5547         ELM_IMAGE_FLIP_TRANSPOSE = 6, /**< flip the image along the y = (width - x) line (bottom-left to top-right) */
5548         ELM_IMAGE_FLIP_TRANSVERSE = 7 /**< flip the image along the y = x line (top-left to bottom-right) */
5549      } Elm_Image_Orient;
5550
5551    /**
5552     * Add a new image to the parent.
5553     *
5554     * @param parent The parent object
5555     * @return The new object or NULL if it cannot be created
5556     *
5557     * @see elm_image_file_set()
5558     *
5559     * @ingroup Image
5560     */
5561    EAPI Evas_Object     *elm_image_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5562    /**
5563     * Set the file that will be used as image.
5564     *
5565     * @param obj The image object
5566     * @param file The path to file that will be used as image
5567     * @param group The group that the image belongs in edje file (if it's an
5568     * edje image)
5569     *
5570     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5571     *
5572     * @see elm_image_file_get()
5573     *
5574     * @ingroup Image
5575     */
5576    EAPI Eina_Bool        elm_image_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
5577    /**
5578     * Get the file that will be used as image.
5579     *
5580     * @param obj The image object
5581     * @param file The path to file
5582     * @param group The group that the image belongs in edje file
5583     *
5584     * @see elm_image_file_set()
5585     *
5586     * @ingroup Image
5587     */
5588    EAPI void             elm_image_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
5589    /**
5590     * Set the smooth effect for an image.
5591     *
5592     * @param obj The image object
5593     * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
5594     * otherwise. Default is @c EINA_TRUE.
5595     *
5596     * Set the scaling algorithm to be used when scaling the image. Smooth
5597     * scaling provides a better resulting image, but is slower.
5598     *
5599     * The smooth scaling should be disabled when making animations that change
5600     * the image size, since it will be faster. Animations that don't require
5601     * resizing of the image can keep the smooth scaling enabled (even if the
5602     * image is already scaled, since the scaled image will be cached).
5603     *
5604     * @see elm_image_smooth_get()
5605     *
5606     * @ingroup Image
5607     */
5608    EAPI void             elm_image_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
5609    /**
5610     * Get the smooth effect for an image.
5611     *
5612     * @param obj The image object
5613     * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
5614     *
5615     * @see elm_image_smooth_get()
5616     *
5617     * @ingroup Image
5618     */
5619    EAPI Eina_Bool        elm_image_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5620
5621    /**
5622     * Gets the current size of the image.
5623     *
5624     * @param obj The image object.
5625     * @param w Pointer to store width, or NULL.
5626     * @param h Pointer to store height, or NULL.
5627     *
5628     * This is the real size of the image, not the size of the object.
5629     *
5630     * On error, neither w and h will be fileld with 0.
5631     *
5632     * @ingroup Image
5633     */
5634    EAPI void             elm_image_object_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
5635    /**
5636     * Disable scaling of this object.
5637     *
5638     * @param obj The image object.
5639     * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
5640     * otherwise. Default is @c EINA_FALSE.
5641     *
5642     * This function disables scaling of the elm_image widget through the
5643     * function elm_object_scale_set(). However, this does not affect the widget
5644     * size/resize in any way. For that effect, take a look at
5645     * elm_image_scale_set().
5646     *
5647     * @see elm_image_no_scale_get()
5648     * @see elm_image_scale_set()
5649     * @see elm_object_scale_set()
5650     *
5651     * @ingroup Image
5652     */
5653    EAPI void             elm_image_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
5654    /**
5655     * Get whether scaling is disabled on the object.
5656     *
5657     * @param obj The image object
5658     * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
5659     *
5660     * @see elm_image_no_scale_set()
5661     *
5662     * @ingroup Image
5663     */
5664    EAPI Eina_Bool        elm_image_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5665    /**
5666     * Set if the object is (up/down) resizable.
5667     *
5668     * @param obj The image object
5669     * @param scale_up A bool to set if the object is resizable up. Default is
5670     * @c EINA_TRUE.
5671     * @param scale_down A bool to set if the object is resizable down. Default
5672     * is @c EINA_TRUE.
5673     *
5674     * This function limits the image resize ability. If @p scale_up is set to
5675     * @c EINA_FALSE, the object can't have its height or width resized to a value
5676     * higher than the original image size. Same is valid for @p scale_down.
5677     *
5678     * @see elm_image_scale_get()
5679     *
5680     * @ingroup Image
5681     */
5682    EAPI void             elm_image_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
5683    /**
5684     * Get if the object is (up/down) resizable.
5685     *
5686     * @param obj The image object
5687     * @param scale_up A bool to set if the object is resizable up
5688     * @param scale_down A bool to set if the object is resizable down
5689     *
5690     * @see elm_image_scale_set()
5691     *
5692     * @ingroup Image
5693     */
5694    EAPI void             elm_image_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
5695    /**
5696     * Set if the image fills the entire object area, when keeping the aspect ratio.
5697     *
5698     * @param obj The image object
5699     * @param fill_outside @c EINA_TRUE if the object is filled outside,
5700     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5701     *
5702     * When the image should keep its aspect ratio even if resized to another
5703     * aspect ratio, there are two possibilities to resize it: keep the entire
5704     * image inside the limits of height and width of the object (@p fill_outside
5705     * is @c EINA_FALSE) or let the extra width or height go outside of the object,
5706     * and the image will fill the entire object (@p fill_outside is @c EINA_TRUE).
5707     *
5708     * @note This option will have no effect if
5709     * elm_image_aspect_ratio_retained_set() is set to @c EINA_FALSE.
5710     *
5711     * @see elm_image_fill_outside_get()
5712     * @see elm_image_aspect_ratio_retained_set()
5713     *
5714     * @ingroup Image
5715     */
5716    EAPI void             elm_image_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
5717    /**
5718     * Get if the object is filled outside
5719     *
5720     * @param obj The image object
5721     * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
5722     *
5723     * @see elm_image_fill_outside_set()
5724     *
5725     * @ingroup Image
5726     */
5727    EAPI Eina_Bool        elm_image_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5728    /**
5729     * Set the prescale size for the image
5730     *
5731     * @param obj The image object
5732     * @param size The prescale size. This value is used for both width and
5733     * height.
5734     *
5735     * This function sets a new size for pixmap representation of the given
5736     * image. It allows the image to be loaded already in the specified size,
5737     * reducing the memory usage and load time when loading a big image with load
5738     * size set to a smaller size.
5739     *
5740     * It's equivalent to the elm_bg_load_size_set() function for bg.
5741     *
5742     * @note this is just a hint, the real size of the pixmap may differ
5743     * depending on the type of image being loaded, being bigger than requested.
5744     *
5745     * @see elm_image_prescale_get()
5746     * @see elm_bg_load_size_set()
5747     *
5748     * @ingroup Image
5749     */
5750    EAPI void             elm_image_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
5751    /**
5752     * Get the prescale size for the image
5753     *
5754     * @param obj The image object
5755     * @return The prescale size
5756     *
5757     * @see elm_image_prescale_set()
5758     *
5759     * @ingroup Image
5760     */
5761    EAPI int              elm_image_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5762    /**
5763     * Set the image orientation.
5764     *
5765     * @param obj The image object
5766     * @param orient The image orientation @ref Elm_Image_Orient
5767     *  Default is #ELM_IMAGE_ORIENT_NONE.
5768     *
5769     * This function allows to rotate or flip the given image.
5770     *
5771     * @see elm_image_orient_get()
5772     * @see @ref Elm_Image_Orient
5773     *
5774     * @ingroup Image
5775     */
5776    EAPI void             elm_image_orient_set(Evas_Object *obj, Elm_Image_Orient orient) EINA_ARG_NONNULL(1);
5777    /**
5778     * Get the image orientation.
5779     *
5780     * @param obj The image object
5781     * @return The image orientation @ref Elm_Image_Orient
5782     *
5783     * @see elm_image_orient_set()
5784     * @see @ref Elm_Image_Orient
5785     *
5786     * @ingroup Image
5787     */
5788    EAPI Elm_Image_Orient elm_image_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5789    /**
5790     * Make the image 'editable'.
5791     *
5792     * @param obj Image object.
5793     * @param set Turn on or off editability. Default is @c EINA_FALSE.
5794     *
5795     * This means the image is a valid drag target for drag and drop, and can be
5796     * cut or pasted too.
5797     *
5798     * @ingroup Image
5799     */
5800    EAPI void             elm_image_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
5801    /**
5802     * Check if the image 'editable'.
5803     *
5804     * @param obj Image object.
5805     * @return Editability.
5806     *
5807     * A return value of EINA_TRUE means the image is a valid drag target
5808     * for drag and drop, and can be cut or pasted too.
5809     *
5810     * @ingroup Image
5811     */
5812    EAPI Eina_Bool        elm_image_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5813    /**
5814     * Get the basic Evas_Image object from this object (widget).
5815     *
5816     * @param obj The image object to get the inlined image from
5817     * @return The inlined image object, or NULL if none exists
5818     *
5819     * This function allows one to get the underlying @c Evas_Object of type
5820     * Image from this elementary widget. It can be useful to do things like get
5821     * the pixel data, save the image to a file, etc.
5822     *
5823     * @note Be careful to not manipulate it, as it is under control of
5824     * elementary.
5825     *
5826     * @ingroup Image
5827     */
5828    EAPI Evas_Object     *elm_image_object_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5829    /**
5830     * Set whether the original aspect ratio of the image should be kept on resize.
5831     *
5832     * @param obj The image object.
5833     * @param retained @c EINA_TRUE if the image should retain the aspect,
5834     * @c EINA_FALSE otherwise.
5835     *
5836     * The original aspect ratio (width / height) of the image is usually
5837     * distorted to match the object's size. Enabling this option will retain
5838     * this original aspect, and the way that the image is fit into the object's
5839     * area depends on the option set by elm_image_fill_outside_set().
5840     *
5841     * @see elm_image_aspect_ratio_retained_get()
5842     * @see elm_image_fill_outside_set()
5843     *
5844     * @ingroup Image
5845     */
5846    EAPI void             elm_image_aspect_ratio_retained_set(Evas_Object *obj, Eina_Bool retained) EINA_ARG_NONNULL(1);
5847    /**
5848     * Get if the object retains the original aspect ratio.
5849     *
5850     * @param obj The image object.
5851     * @return @c EINA_TRUE if the object keeps the original aspect, @c EINA_FALSE
5852     * otherwise.
5853     *
5854     * @ingroup Image
5855     */
5856    EAPI Eina_Bool        elm_image_aspect_ratio_retained_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5857
5858    /**
5859     * @}
5860     */
5861
5862    /* glview */
5863    typedef void (*Elm_GLView_Func_Cb)(Evas_Object *obj);
5864
5865    typedef enum _Elm_GLView_Mode
5866      {
5867         ELM_GLVIEW_ALPHA   = 1,
5868         ELM_GLVIEW_DEPTH   = 2,
5869         ELM_GLVIEW_STENCIL = 4
5870      } Elm_GLView_Mode;
5871
5872    /**
5873     * Defines a policy for the glview resizing.
5874     *
5875     * @note Default is ELM_GLVIEW_RESIZE_POLICY_RECREATE
5876     */
5877    typedef enum _Elm_GLView_Resize_Policy
5878      {
5879         ELM_GLVIEW_RESIZE_POLICY_RECREATE = 1,      /**< Resize the internal surface along with the image */
5880         ELM_GLVIEW_RESIZE_POLICY_SCALE    = 2       /**< Only reize the internal image and not the surface */
5881      } Elm_GLView_Resize_Policy;
5882
5883    typedef enum _Elm_GLView_Render_Policy
5884      {
5885         ELM_GLVIEW_RENDER_POLICY_ON_DEMAND = 1,     /**< Render only when there is a need for redrawing */
5886         ELM_GLVIEW_RENDER_POLICY_ALWAYS    = 2      /**< Render always even when it is not visible */
5887      } Elm_GLView_Render_Policy;
5888
5889    /**
5890     * @defgroup GLView
5891     *
5892     * A simple GLView widget that allows GL rendering.
5893     *
5894     * Signals that you can add callbacks for are:
5895     *
5896     * @{
5897     */
5898
5899    /**
5900     * Add a new glview to the parent
5901     *
5902     * @param parent The parent object
5903     * @return The new object or NULL if it cannot be created
5904     *
5905     * @ingroup GLView
5906     */
5907    EAPI Evas_Object     *elm_glview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5908
5909    /**
5910     * Sets the size of the glview
5911     *
5912     * @param obj The glview object
5913     * @param width width of the glview object
5914     * @param height height of the glview object
5915     *
5916     * @ingroup GLView
5917     */
5918    EAPI void             elm_glview_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
5919
5920    /**
5921     * Gets the size of the glview.
5922     *
5923     * @param obj The glview object
5924     * @param width width of the glview object
5925     * @param height height of the glview object
5926     *
5927     * Note that this function returns the actual image size of the
5928     * glview.  This means that when the scale policy is set to
5929     * ELM_GLVIEW_RESIZE_POLICY_SCALE, it'll return the non-scaled
5930     * size.
5931     *
5932     * @ingroup GLView
5933     */
5934    EAPI void             elm_glview_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
5935
5936    /**
5937     * Gets the gl api struct for gl rendering
5938     *
5939     * @param obj The glview object
5940     * @return The api object or NULL if it cannot be created
5941     *
5942     * @ingroup GLView
5943     */
5944    EAPI Evas_GL_API     *elm_glview_gl_api_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5945
5946    /**
5947     * Set the mode of the GLView. Supports Three simple modes.
5948     *
5949     * @param obj The glview object
5950     * @param mode The mode Options OR'ed enabling Alpha, Depth, Stencil.
5951     * @return True if set properly.
5952     *
5953     * @ingroup GLView
5954     */
5955    EAPI Eina_Bool        elm_glview_mode_set(Evas_Object *obj, Elm_GLView_Mode mode) EINA_ARG_NONNULL(1);
5956
5957    /**
5958     * Set the resize policy for the glview object.
5959     *
5960     * @param obj The glview object.
5961     * @param policy The scaling policy.
5962     *
5963     * By default, the resize policy is set to
5964     * ELM_GLVIEW_RESIZE_POLICY_RECREATE.  When resize is called it
5965     * destroys the previous surface and recreates the newly specified
5966     * size. If the policy is set to ELM_GLVIEW_RESIZE_POLICY_SCALE,
5967     * however, glview only scales the image object and not the underlying
5968     * GL Surface.
5969     *
5970     * @ingroup GLView
5971     */
5972    EAPI Eina_Bool        elm_glview_resize_policy_set(Evas_Object *obj, Elm_GLView_Resize_Policy policy) EINA_ARG_NONNULL(1);
5973
5974    /**
5975     * Set the render policy for the glview object.
5976     *
5977     * @param obj The glview object.
5978     * @param policy The render policy.
5979     *
5980     * By default, the render policy is set to
5981     * ELM_GLVIEW_RENDER_POLICY_ON_DEMAND.  This policy is set such
5982     * that during the render loop, glview is only redrawn if it needs
5983     * to be redrawn. (i.e. When it is visible) If the policy is set to
5984     * ELM_GLVIEWW_RENDER_POLICY_ALWAYS, it redraws regardless of
5985     * whether it is visible/need redrawing or not.
5986     *
5987     * @ingroup GLView
5988     */
5989    EAPI Eina_Bool        elm_glview_render_policy_set(Evas_Object *obj, Elm_GLView_Render_Policy policy) EINA_ARG_NONNULL(1);
5990
5991    /**
5992     * Set the init function that runs once in the main loop.
5993     *
5994     * @param obj The glview object.
5995     * @param func The init function to be registered.
5996     *
5997     * The registered init function gets called once during the render loop.
5998     *
5999     * @ingroup GLView
6000     */
6001    EAPI void             elm_glview_init_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
6002
6003    /**
6004     * Set the render function that runs in the main loop.
6005     *
6006     * @param obj The glview object.
6007     * @param func The delete function to be registered.
6008     *
6009     * The registered del function gets called when GLView object is deleted.
6010     *
6011     * @ingroup GLView
6012     */
6013    EAPI void             elm_glview_del_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
6014
6015    /**
6016     * Set the resize function that gets called when resize happens.
6017     *
6018     * @param obj The glview object.
6019     * @param func The resize function to be registered.
6020     *
6021     * @ingroup GLView
6022     */
6023    EAPI void             elm_glview_resize_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
6024
6025    /**
6026     * Set the render function that runs in the main loop.
6027     *
6028     * @param obj The glview object.
6029     * @param func The render function to be registered.
6030     *
6031     * @ingroup GLView
6032     */
6033    EAPI void             elm_glview_render_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
6034
6035    /**
6036     * Notifies that there has been changes in the GLView.
6037     *
6038     * @param obj The glview object.
6039     *
6040     * @ingroup GLView
6041     */
6042    EAPI void             elm_glview_changed_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
6043
6044    /**
6045     * @}
6046     */
6047
6048    /* box */
6049    /**
6050     * @defgroup Box Box
6051     *
6052     * @image html img/widget/box/preview-00.png
6053     * @image latex img/widget/box/preview-00.eps width=\textwidth
6054     *
6055     * @image html img/box.png
6056     * @image latex img/box.eps width=\textwidth
6057     *
6058     * A box arranges objects in a linear fashion, governed by a layout function
6059     * that defines the details of this arrangement.
6060     *
6061     * By default, the box will use an internal function to set the layout to
6062     * a single row, either vertical or horizontal. This layout is affected
6063     * by a number of parameters, such as the homogeneous flag set by
6064     * elm_box_homogeneous_set(), the values given by elm_box_padding_set() and
6065     * elm_box_align_set() and the hints set to each object in the box.
6066     *
6067     * For this default layout, it's possible to change the orientation with
6068     * elm_box_horizontal_set(). The box will start in the vertical orientation,
6069     * placing its elements ordered from top to bottom. When horizontal is set,
6070     * the order will go from left to right. If the box is set to be
6071     * homogeneous, every object in it will be assigned the same space, that
6072     * of the largest object. Padding can be used to set some spacing between
6073     * the cell given to each object. The alignment of the box, set with
6074     * elm_box_align_set(), determines how the bounding box of all the elements
6075     * will be placed within the space given to the box widget itself.
6076     *
6077     * The size hints of each object also affect how they are placed and sized
6078     * within the box. evas_object_size_hint_min_set() will give the minimum
6079     * size the object can have, and the box will use it as the basis for all
6080     * latter calculations. Elementary widgets set their own minimum size as
6081     * needed, so there's rarely any need to use it manually.
6082     *
6083     * evas_object_size_hint_weight_set(), when not in homogeneous mode, is
6084     * used to tell whether the object will be allocated the minimum size it
6085     * needs or if the space given to it should be expanded. It's important
6086     * to realize that expanding the size given to the object is not the same
6087     * thing as resizing the object. It could very well end being a small
6088     * widget floating in a much larger empty space. If not set, the weight
6089     * for objects will normally be 0.0 for both axis, meaning the widget will
6090     * not be expanded. To take as much space possible, set the weight to
6091     * EVAS_HINT_EXPAND (defined to 1.0) for the desired axis to expand.
6092     *
6093     * Besides how much space each object is allocated, it's possible to control
6094     * how the widget will be placed within that space using
6095     * evas_object_size_hint_align_set(). By default, this value will be 0.5
6096     * for both axis, meaning the object will be centered, but any value from
6097     * 0.0 (left or top, for the @c x and @c y axis, respectively) to 1.0
6098     * (right or bottom) can be used. The special value EVAS_HINT_FILL, which
6099     * is -1.0, means the object will be resized to fill the entire space it
6100     * was allocated.
6101     *
6102     * In addition, customized functions to define the layout can be set, which
6103     * allow the application developer to organize the objects within the box
6104     * in any number of ways.
6105     *
6106     * The special elm_box_layout_transition() function can be used
6107     * to switch from one layout to another, animating the motion of the
6108     * children of the box.
6109     *
6110     * @note Objects should not be added to box objects using _add() calls.
6111     *
6112     * Some examples on how to use boxes follow:
6113     * @li @ref box_example_01
6114     * @li @ref box_example_02
6115     *
6116     * @{
6117     */
6118    /**
6119     * @typedef Elm_Box_Transition
6120     *
6121     * Opaque handler containing the parameters to perform an animated
6122     * transition of the layout the box uses.
6123     *
6124     * @see elm_box_transition_new()
6125     * @see elm_box_layout_set()
6126     * @see elm_box_layout_transition()
6127     */
6128    typedef struct _Elm_Box_Transition Elm_Box_Transition;
6129
6130    /**
6131     * Add a new box to the parent
6132     *
6133     * By default, the box will be in vertical mode and non-homogeneous.
6134     *
6135     * @param parent The parent object
6136     * @return The new object or NULL if it cannot be created
6137     */
6138    EAPI Evas_Object        *elm_box_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6139    /**
6140     * Set the horizontal orientation
6141     *
6142     * By default, box object arranges their contents vertically from top to
6143     * bottom.
6144     * By calling this function with @p horizontal as EINA_TRUE, the box will
6145     * become horizontal, arranging contents from left to right.
6146     *
6147     * @note This flag is ignored if a custom layout function is set.
6148     *
6149     * @param obj The box object
6150     * @param horizontal The horizontal flag (EINA_TRUE = horizontal,
6151     * EINA_FALSE = vertical)
6152     */
6153    EAPI void                elm_box_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
6154    /**
6155     * Get the horizontal orientation
6156     *
6157     * @param obj The box object
6158     * @return EINA_TRUE if the box is set to horizontal mode, EINA_FALSE otherwise
6159     */
6160    EAPI Eina_Bool           elm_box_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6161    /**
6162     * Set the box to arrange its children homogeneously
6163     *
6164     * If enabled, homogeneous layout makes all items the same size, according
6165     * to the size of the largest of its children.
6166     *
6167     * @note This flag is ignored if a custom layout function is set.
6168     *
6169     * @param obj The box object
6170     * @param homogeneous The homogeneous flag
6171     */
6172    EAPI void                elm_box_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
6173    /**
6174     * Get whether the box is using homogeneous mode or not
6175     *
6176     * @param obj The box object
6177     * @return EINA_TRUE if it's homogeneous, EINA_FALSE otherwise
6178     */
6179    EAPI Eina_Bool           elm_box_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6180    /**
6181     * Add an object to the beginning of the pack list
6182     *
6183     * Pack @p subobj into the box @p obj, placing it first in the list of
6184     * children objects. The actual position the object will get on screen
6185     * depends on the layout used. If no custom layout is set, it will be at
6186     * the top or left, depending if the box is vertical or horizontal,
6187     * respectively.
6188     *
6189     * @param obj The box object
6190     * @param subobj The object to add to the box
6191     *
6192     * @see elm_box_pack_end()
6193     * @see elm_box_pack_before()
6194     * @see elm_box_pack_after()
6195     * @see elm_box_unpack()
6196     * @see elm_box_unpack_all()
6197     * @see elm_box_clear()
6198     */
6199    EAPI void                elm_box_pack_start(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
6200    /**
6201     * Add an object at the end of the pack list
6202     *
6203     * Pack @p subobj into the box @p obj, placing it last in the list of
6204     * children objects. The actual position the object will get on screen
6205     * depends on the layout used. If no custom layout is set, it will be at
6206     * the bottom or right, depending if the box is vertical or horizontal,
6207     * respectively.
6208     *
6209     * @param obj The box object
6210     * @param subobj The object to add to the box
6211     *
6212     * @see elm_box_pack_start()
6213     * @see elm_box_pack_before()
6214     * @see elm_box_pack_after()
6215     * @see elm_box_unpack()
6216     * @see elm_box_unpack_all()
6217     * @see elm_box_clear()
6218     */
6219    EAPI void                elm_box_pack_end(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
6220    /**
6221     * Adds an object to the box before the indicated object
6222     *
6223     * This will add the @p subobj to the box indicated before the object
6224     * indicated with @p before. If @p before is not already in the box, results
6225     * are undefined. Before means either to the left of the indicated object or
6226     * above it depending on orientation.
6227     *
6228     * @param obj The box object
6229     * @param subobj The object to add to the box
6230     * @param before The object before which to add it
6231     *
6232     * @see elm_box_pack_start()
6233     * @see elm_box_pack_end()
6234     * @see elm_box_pack_after()
6235     * @see elm_box_unpack()
6236     * @see elm_box_unpack_all()
6237     * @see elm_box_clear()
6238     */
6239    EAPI void                elm_box_pack_before(Evas_Object *obj, Evas_Object *subobj, Evas_Object *before) EINA_ARG_NONNULL(1);
6240    /**
6241     * Adds an object to the box after the indicated object
6242     *
6243     * This will add the @p subobj to the box indicated after the object
6244     * indicated with @p after. If @p after is not already in the box, results
6245     * are undefined. After means either to the right of the indicated object or
6246     * below it depending on orientation.
6247     *
6248     * @param obj The box object
6249     * @param subobj The object to add to the box
6250     * @param after The object after which to add it
6251     *
6252     * @see elm_box_pack_start()
6253     * @see elm_box_pack_end()
6254     * @see elm_box_pack_before()
6255     * @see elm_box_unpack()
6256     * @see elm_box_unpack_all()
6257     * @see elm_box_clear()
6258     */
6259    EAPI void                elm_box_pack_after(Evas_Object *obj, Evas_Object *subobj, Evas_Object *after) EINA_ARG_NONNULL(1);
6260    /**
6261     * Clear the box of all children
6262     *
6263     * Remove all the elements contained by the box, deleting the respective
6264     * objects.
6265     *
6266     * @param obj The box object
6267     *
6268     * @see elm_box_unpack()
6269     * @see elm_box_unpack_all()
6270     */
6271    EAPI void                elm_box_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
6272    /**
6273     * Unpack a box item
6274     *
6275     * Remove the object given by @p subobj from the box @p obj without
6276     * deleting it.
6277     *
6278     * @param obj The box object
6279     *
6280     * @see elm_box_unpack_all()
6281     * @see elm_box_clear()
6282     */
6283    EAPI void                elm_box_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
6284    /**
6285     * Remove all items from the box, without deleting them
6286     *
6287     * Clear the box from all children, but don't delete the respective objects.
6288     * If no other references of the box children exist, the objects will never
6289     * be deleted, and thus the application will leak the memory. Make sure
6290     * when using this function that you hold a reference to all the objects
6291     * in the box @p obj.
6292     *
6293     * @param obj The box object
6294     *
6295     * @see elm_box_clear()
6296     * @see elm_box_unpack()
6297     */
6298    EAPI void                elm_box_unpack_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
6299    /**
6300     * Retrieve a list of the objects packed into the box
6301     *
6302     * Returns a new @c Eina_List with a pointer to @c Evas_Object in its nodes.
6303     * The order of the list corresponds to the packing order the box uses.
6304     *
6305     * You must free this list with eina_list_free() once you are done with it.
6306     *
6307     * @param obj The box object
6308     */
6309    EAPI const Eina_List    *elm_box_children_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6310    /**
6311     * Set the space (padding) between the box's elements.
6312     *
6313     * Extra space in pixels that will be added between a box child and its
6314     * neighbors after its containing cell has been calculated. This padding
6315     * is set for all elements in the box, besides any possible padding that
6316     * individual elements may have through their size hints.
6317     *
6318     * @param obj The box object
6319     * @param horizontal The horizontal space between elements
6320     * @param vertical The vertical space between elements
6321     */
6322    EAPI void                elm_box_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
6323    /**
6324     * Get the space (padding) between the box's elements.
6325     *
6326     * @param obj The box object
6327     * @param horizontal The horizontal space between elements
6328     * @param vertical The vertical space between elements
6329     *
6330     * @see elm_box_padding_set()
6331     */
6332    EAPI void                elm_box_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
6333    /**
6334     * Set the alignment of the whole bouding box of contents.
6335     *
6336     * Sets how the bounding box containing all the elements of the box, after
6337     * their sizes and position has been calculated, will be aligned within
6338     * the space given for the whole box widget.
6339     *
6340     * @param obj The box object
6341     * @param horizontal The horizontal alignment of elements
6342     * @param vertical The vertical alignment of elements
6343     */
6344    EAPI void                elm_box_align_set(Evas_Object *obj, double horizontal, double vertical) EINA_ARG_NONNULL(1);
6345    /**
6346     * Get the alignment of the whole bouding box of contents.
6347     *
6348     * @param obj The box object
6349     * @param horizontal The horizontal alignment of elements
6350     * @param vertical The vertical alignment of elements
6351     *
6352     * @see elm_box_align_set()
6353     */
6354    EAPI void                elm_box_align_get(const Evas_Object *obj, double *horizontal, double *vertical) EINA_ARG_NONNULL(1);
6355
6356    /**
6357     * Force the box to recalculate its children packing.
6358     *
6359     * If any children was added or removed, box will not calculate the
6360     * values immediately rather leaving it to the next main loop
6361     * iteration. While this is great as it would save lots of
6362     * recalculation, whenever you need to get the position of a just
6363     * added item you must force recalculate before doing so.
6364     *
6365     * @param obj The box object.
6366     */
6367    EAPI void                 elm_box_recalculate(Evas_Object *obj);
6368
6369    /**
6370     * Set the layout defining function to be used by the box
6371     *
6372     * Whenever anything changes that requires the box in @p obj to recalculate
6373     * the size and position of its elements, the function @p cb will be called
6374     * to determine what the layout of the children will be.
6375     *
6376     * Once a custom function is set, everything about the children layout
6377     * is defined by it. The flags set by elm_box_horizontal_set() and
6378     * elm_box_homogeneous_set() no longer have any meaning, and the values
6379     * given by elm_box_padding_set() and elm_box_align_set() are up to this
6380     * layout function to decide if they are used and how. These last two
6381     * will be found in the @c priv parameter, of type @c Evas_Object_Box_Data,
6382     * passed to @p cb. The @c Evas_Object the function receives is not the
6383     * Elementary widget, but the internal Evas Box it uses, so none of the
6384     * functions described here can be used on it.
6385     *
6386     * Any of the layout functions in @c Evas can be used here, as well as the
6387     * special elm_box_layout_transition().
6388     *
6389     * The final @p data argument received by @p cb is the same @p data passed
6390     * here, and the @p free_data function will be called to free it
6391     * whenever the box is destroyed or another layout function is set.
6392     *
6393     * Setting @p cb to NULL will revert back to the default layout function.
6394     *
6395     * @param obj The box object
6396     * @param cb The callback function used for layout
6397     * @param data Data that will be passed to layout function
6398     * @param free_data Function called to free @p data
6399     *
6400     * @see elm_box_layout_transition()
6401     */
6402    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);
6403    /**
6404     * Special layout function that animates the transition from one layout to another
6405     *
6406     * Normally, when switching the layout function for a box, this will be
6407     * reflected immediately on screen on the next render, but it's also
6408     * possible to do this through an animated transition.
6409     *
6410     * This is done by creating an ::Elm_Box_Transition and setting the box
6411     * layout to this function.
6412     *
6413     * For example:
6414     * @code
6415     * Elm_Box_Transition *t = elm_box_transition_new(1.0,
6416     *                            evas_object_box_layout_vertical, // start
6417     *                            NULL, // data for initial layout
6418     *                            NULL, // free function for initial data
6419     *                            evas_object_box_layout_horizontal, // end
6420     *                            NULL, // data for final layout
6421     *                            NULL, // free function for final data
6422     *                            anim_end, // will be called when animation ends
6423     *                            NULL); // data for anim_end function\
6424     * elm_box_layout_set(box, elm_box_layout_transition, t,
6425     *                    elm_box_transition_free);
6426     * @endcode
6427     *
6428     * @note This function can only be used with elm_box_layout_set(). Calling
6429     * it directly will not have the expected results.
6430     *
6431     * @see elm_box_transition_new
6432     * @see elm_box_transition_free
6433     * @see elm_box_layout_set
6434     */
6435    EAPI void                elm_box_layout_transition(Evas_Object *obj, Evas_Object_Box_Data *priv, void *data);
6436    /**
6437     * Create a new ::Elm_Box_Transition to animate the switch of layouts
6438     *
6439     * If you want to animate the change from one layout to another, you need
6440     * to set the layout function of the box to elm_box_layout_transition(),
6441     * passing as user data to it an instance of ::Elm_Box_Transition with the
6442     * necessary information to perform this animation. The free function to
6443     * set for the layout is elm_box_transition_free().
6444     *
6445     * The parameters to create an ::Elm_Box_Transition sum up to how long
6446     * will it be, in seconds, a layout function to describe the initial point,
6447     * another for the final position of the children and one function to be
6448     * called when the whole animation ends. This last function is useful to
6449     * set the definitive layout for the box, usually the same as the end
6450     * layout for the animation, but could be used to start another transition.
6451     *
6452     * @param start_layout The layout function that will be used to start the animation
6453     * @param start_layout_data The data to be passed the @p start_layout function
6454     * @param start_layout_free_data Function to free @p start_layout_data
6455     * @param end_layout The layout function that will be used to end the animation
6456     * @param end_layout_free_data The data to be passed the @p end_layout function
6457     * @param end_layout_free_data Function to free @p end_layout_data
6458     * @param transition_end_cb Callback function called when animation ends
6459     * @param transition_end_data Data to be passed to @p transition_end_cb
6460     * @return An instance of ::Elm_Box_Transition
6461     *
6462     * @see elm_box_transition_new
6463     * @see elm_box_layout_transition
6464     */
6465    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);
6466    /**
6467     * Free a Elm_Box_Transition instance created with elm_box_transition_new().
6468     *
6469     * This function is mostly useful as the @c free_data parameter in
6470     * elm_box_layout_set() when elm_box_layout_transition().
6471     *
6472     * @param data The Elm_Box_Transition instance to be freed.
6473     *
6474     * @see elm_box_transition_new
6475     * @see elm_box_layout_transition
6476     */
6477    EAPI void                elm_box_transition_free(void *data);
6478    /**
6479     * @}
6480     */
6481
6482    /* button */
6483    /**
6484     * @defgroup Button Button
6485     *
6486     * @image html img/widget/button/preview-00.png
6487     * @image latex img/widget/button/preview-00.eps
6488     * @image html img/widget/button/preview-01.png
6489     * @image latex img/widget/button/preview-01.eps
6490     * @image html img/widget/button/preview-02.png
6491     * @image latex img/widget/button/preview-02.eps
6492     *
6493     * This is a push-button. Press it and run some function. It can contain
6494     * a simple label and icon object and it also has an autorepeat feature.
6495     *
6496     * This widgets emits the following signals:
6497     * @li "clicked": the user clicked the button (press/release).
6498     * @li "repeated": the user pressed the button without releasing it.
6499     * @li "pressed": button was pressed.
6500     * @li "unpressed": button was released after being pressed.
6501     * In all three cases, the @c event parameter of the callback will be
6502     * @c NULL.
6503     *
6504     * Also, defined in the default theme, the button has the following styles
6505     * available:
6506     * @li default: a normal button.
6507     * @li anchor: Like default, but the button fades away when the mouse is not
6508     * over it, leaving only the text or icon.
6509     * @li hoversel_vertical: Internally used by @ref Hoversel to give a
6510     * continuous look across its options.
6511     * @li hoversel_vertical_entry: Another internal for @ref Hoversel.
6512     *
6513     * Default contents parts of the button widget that you can use for are:
6514     * @li "icon" - An icon of the button
6515     *
6516     * Default text parts of the button widget that you can use for are:
6517     * @li "default" - Label of the button
6518     *
6519     * Follow through a complete example @ref button_example_01 "here".
6520     * @{
6521     */
6522    /**
6523     * Add a new button to the parent's canvas
6524     *
6525     * @param parent The parent object
6526     * @return The new object or NULL if it cannot be created
6527     */
6528    EAPI Evas_Object *elm_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6529    /**
6530     * Set the label used in the button
6531     *
6532     * The passed @p label can be NULL to clean any existing text in it and
6533     * leave the button as an icon only object.
6534     *
6535     * @param obj The button object
6536     * @param label The text will be written on the button
6537     * @deprecated use elm_object_text_set() instead.
6538     */
6539    EINA_DEPRECATED EAPI void         elm_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6540    /**
6541     * Get the label set for the button
6542     *
6543     * The string returned is an internal pointer and should not be freed or
6544     * altered. It will also become invalid when the button is destroyed.
6545     * The string returned, if not NULL, is a stringshare, so if you need to
6546     * keep it around even after the button is destroyed, you can use
6547     * eina_stringshare_ref().
6548     *
6549     * @param obj The button object
6550     * @return The text set to the label, or NULL if nothing is set
6551     * @deprecated use elm_object_text_set() instead.
6552     */
6553    EINA_DEPRECATED EAPI const char  *elm_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6554    /**
6555     * Set the icon used for the button
6556     *
6557     * Setting a new icon will delete any other that was previously set, making
6558     * any reference to them invalid. If you need to maintain the previous
6559     * object alive, unset it first with elm_button_icon_unset().
6560     *
6561     * @param obj The button object
6562     * @param icon The icon object for the button
6563     * @deprecated use elm_object_part_content_set() instead.
6564     */
6565    EINA_DEPRECATED EAPI void         elm_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6566    /**
6567     * Get the icon used for the button
6568     *
6569     * Return the icon object which is set for this widget. If the button is
6570     * destroyed or another icon is set, the returned object will be deleted
6571     * and any reference to it will be invalid.
6572     *
6573     * @param obj The button object
6574     * @return The icon object that is being used
6575     *
6576     * @deprecated use elm_object_part_content_get() instead
6577     */
6578    EINA_DEPRECATED EAPI Evas_Object *elm_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6579    /**
6580     * Remove the icon set without deleting it and return the object
6581     *
6582     * This function drops the reference the button holds of the icon object
6583     * and returns this last object. It is used in case you want to remove any
6584     * icon, or set another one, without deleting the actual object. The button
6585     * will be left without an icon set.
6586     *
6587     * @param obj The button object
6588     * @return The icon object that was being used
6589     * @deprecated use elm_object_part_content_unset() instead.
6590     */
6591    EINA_DEPRECATED EAPI Evas_Object *elm_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6592    /**
6593     * Turn on/off the autorepeat event generated when the button is kept pressed
6594     *
6595     * When off, no autorepeat is performed and buttons emit a normal @c clicked
6596     * signal when they are clicked.
6597     *
6598     * When on, keeping a button pressed will continuously emit a @c repeated
6599     * signal until the button is released. The time it takes until it starts
6600     * emitting the signal is given by
6601     * elm_button_autorepeat_initial_timeout_set(), and the time between each
6602     * new emission by elm_button_autorepeat_gap_timeout_set().
6603     *
6604     * @param obj The button object
6605     * @param on  A bool to turn on/off the event
6606     */
6607    EAPI void         elm_button_autorepeat_set(Evas_Object *obj, Eina_Bool on) EINA_ARG_NONNULL(1);
6608    /**
6609     * Get whether the autorepeat feature is enabled
6610     *
6611     * @param obj The button object
6612     * @return EINA_TRUE if autorepeat is on, EINA_FALSE otherwise
6613     *
6614     * @see elm_button_autorepeat_set()
6615     */
6616    EAPI Eina_Bool    elm_button_autorepeat_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6617    /**
6618     * Set the initial timeout before the autorepeat event is generated
6619     *
6620     * Sets the timeout, in seconds, since the button is pressed until the
6621     * first @c repeated signal is emitted. If @p t is 0.0 or less, there
6622     * won't be any delay and the even will be fired the moment the button is
6623     * pressed.
6624     *
6625     * @param obj The button object
6626     * @param t   Timeout in seconds
6627     *
6628     * @see elm_button_autorepeat_set()
6629     * @see elm_button_autorepeat_gap_timeout_set()
6630     */
6631    EAPI void         elm_button_autorepeat_initial_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
6632    /**
6633     * Get the initial timeout before the autorepeat event is generated
6634     *
6635     * @param obj The button object
6636     * @return Timeout in seconds
6637     *
6638     * @see elm_button_autorepeat_initial_timeout_set()
6639     */
6640    EAPI double       elm_button_autorepeat_initial_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6641    /**
6642     * Set the interval between each generated autorepeat event
6643     *
6644     * After the first @c repeated event is fired, all subsequent ones will
6645     * follow after a delay of @p t seconds for each.
6646     *
6647     * @param obj The button object
6648     * @param t   Interval in seconds
6649     *
6650     * @see elm_button_autorepeat_initial_timeout_set()
6651     */
6652    EAPI void         elm_button_autorepeat_gap_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
6653    /**
6654     * Get the interval between each generated autorepeat event
6655     *
6656     * @param obj The button object
6657     * @return Interval in seconds
6658     */
6659    EAPI double       elm_button_autorepeat_gap_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6660    /**
6661     * @}
6662     */
6663
6664    /**
6665     * @defgroup File_Selector_Button File Selector Button
6666     *
6667     * @image html img/widget/fileselector_button/preview-00.png
6668     * @image latex img/widget/fileselector_button/preview-00.eps
6669     * @image html img/widget/fileselector_button/preview-01.png
6670     * @image latex img/widget/fileselector_button/preview-01.eps
6671     * @image html img/widget/fileselector_button/preview-02.png
6672     * @image latex img/widget/fileselector_button/preview-02.eps
6673     *
6674     * This is a button that, when clicked, creates an Elementary
6675     * window (or inner window) <b> with a @ref Fileselector "file
6676     * selector widget" within</b>. When a file is chosen, the (inner)
6677     * window is closed and the button emits a signal having the
6678     * selected file as it's @c event_info.
6679     *
6680     * This widget encapsulates operations on its internal file
6681     * selector on its own API. There is less control over its file
6682     * selector than that one would have instatiating one directly.
6683     *
6684     * The following styles are available for this button:
6685     * @li @c "default"
6686     * @li @c "anchor"
6687     * @li @c "hoversel_vertical"
6688     * @li @c "hoversel_vertical_entry"
6689     *
6690     * Smart callbacks one can register to:
6691     * - @c "file,chosen" - the user has selected a path, whose string
6692     *   pointer comes as the @c event_info data (a stringshared
6693     *   string)
6694     *
6695     * Here is an example on its usage:
6696     * @li @ref fileselector_button_example
6697     *
6698     * @see @ref File_Selector_Entry for a similar widget.
6699     * @{
6700     */
6701
6702    /**
6703     * Add a new file selector button widget to the given parent
6704     * Elementary (container) object
6705     *
6706     * @param parent The parent object
6707     * @return a new file selector button widget handle or @c NULL, on
6708     * errors
6709     */
6710    EAPI Evas_Object *elm_fileselector_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6711
6712    /**
6713     * Set the label for a given file selector button widget
6714     *
6715     * @param obj The file selector button widget
6716     * @param label The text label to be displayed on @p obj
6717     *
6718     * @deprecated use elm_object_text_set() instead.
6719     */
6720    EINA_DEPRECATED EAPI void         elm_fileselector_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6721
6722    /**
6723     * Get the label set for a given file selector button widget
6724     *
6725     * @param obj The file selector button widget
6726     * @return The button label
6727     *
6728     * @deprecated use elm_object_text_set() instead.
6729     */
6730    EINA_DEPRECATED EAPI const char  *elm_fileselector_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6731
6732    /**
6733     * Set the icon on a given file selector button widget
6734     *
6735     * @param obj The file selector button widget
6736     * @param icon The icon object for the button
6737     *
6738     * Once the icon object is set, a previously set one will be
6739     * deleted. If you want to keep the latter, use the
6740     * elm_fileselector_button_icon_unset() function.
6741     *
6742     * @see elm_fileselector_button_icon_get()
6743     */
6744    EAPI void         elm_fileselector_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6745
6746    /**
6747     * Get the icon set for a given file selector button widget
6748     *
6749     * @param obj The file selector button widget
6750     * @return The icon object currently set on @p obj or @c NULL, if
6751     * none is
6752     *
6753     * @see elm_fileselector_button_icon_set()
6754     */
6755    EAPI Evas_Object *elm_fileselector_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6756
6757    /**
6758     * Unset the icon used in a given file selector button widget
6759     *
6760     * @param obj The file selector button widget
6761     * @return The icon object that was being used on @p obj or @c
6762     * NULL, on errors
6763     *
6764     * Unparent and return the icon object which was set for this
6765     * widget.
6766     *
6767     * @see elm_fileselector_button_icon_set()
6768     */
6769    EAPI Evas_Object *elm_fileselector_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6770
6771    /**
6772     * Set the title for a given file selector button widget's window
6773     *
6774     * @param obj The file selector button widget
6775     * @param title The title string
6776     *
6777     * This will change the window's title, when the file selector pops
6778     * out after a click on the button. Those windows have the default
6779     * (unlocalized) value of @c "Select a file" as titles.
6780     *
6781     * @note It will only take any effect if the file selector
6782     * button widget is @b not under "inwin mode".
6783     *
6784     * @see elm_fileselector_button_window_title_get()
6785     */
6786    EAPI void         elm_fileselector_button_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
6787
6788    /**
6789     * Get the title set for a given file selector button widget's
6790     * window
6791     *
6792     * @param obj The file selector button widget
6793     * @return Title of the file selector button's window
6794     *
6795     * @see elm_fileselector_button_window_title_get() for more details
6796     */
6797    EAPI const char  *elm_fileselector_button_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6798
6799    /**
6800     * Set the size of a given file selector button widget's window,
6801     * holding the file selector itself.
6802     *
6803     * @param obj The file selector button widget
6804     * @param width The window's width
6805     * @param height The window's height
6806     *
6807     * @note it will only take any effect if the file selector button
6808     * widget is @b not under "inwin mode". The default size for the
6809     * window (when applicable) is 400x400 pixels.
6810     *
6811     * @see elm_fileselector_button_window_size_get()
6812     */
6813    EAPI void         elm_fileselector_button_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6814
6815    /**
6816     * Get the size of a given file selector button widget's window,
6817     * holding the file selector itself.
6818     *
6819     * @param obj The file selector button widget
6820     * @param width Pointer into which to store the width value
6821     * @param height Pointer into which to store the height value
6822     *
6823     * @note Use @c NULL pointers on the size values you're not
6824     * interested in: they'll be ignored by the function.
6825     *
6826     * @see elm_fileselector_button_window_size_set(), for more details
6827     */
6828    EAPI void         elm_fileselector_button_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6829
6830    /**
6831     * Set the initial file system path for a given file selector
6832     * button widget
6833     *
6834     * @param obj The file selector button widget
6835     * @param path The path string
6836     *
6837     * It must be a <b>directory</b> path, which will have the contents
6838     * displayed initially in the file selector's view, when invoked
6839     * from @p obj. The default initial path is the @c "HOME"
6840     * environment variable's value.
6841     *
6842     * @see elm_fileselector_button_path_get()
6843     */
6844    EAPI void         elm_fileselector_button_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6845
6846    /**
6847     * Get the initial file system path set for a given file selector
6848     * button widget
6849     *
6850     * @param obj The file selector button widget
6851     * @return path The path string
6852     *
6853     * @see elm_fileselector_button_path_set() for more details
6854     */
6855    EAPI const char  *elm_fileselector_button_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6856
6857    /**
6858     * Enable/disable a tree view in the given file selector button
6859     * widget's internal file selector
6860     *
6861     * @param obj The file selector button widget
6862     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
6863     * disable
6864     *
6865     * This has the same effect as elm_fileselector_expandable_set(),
6866     * but now applied to a file selector button's internal file
6867     * selector.
6868     *
6869     * @note There's no way to put a file selector button's internal
6870     * file selector in "grid mode", as one may do with "pure" file
6871     * selectors.
6872     *
6873     * @see elm_fileselector_expandable_get()
6874     */
6875    EAPI void         elm_fileselector_button_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6876
6877    /**
6878     * Get whether tree view is enabled for the given file selector
6879     * button widget's internal file selector
6880     *
6881     * @param obj The file selector button widget
6882     * @return @c EINA_TRUE if @p obj widget's internal file selector
6883     * is in tree view, @c EINA_FALSE otherwise (and or errors)
6884     *
6885     * @see elm_fileselector_expandable_set() for more details
6886     */
6887    EAPI Eina_Bool    elm_fileselector_button_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6888
6889    /**
6890     * Set whether a given file selector button widget's internal file
6891     * selector is to display folders only or the directory contents,
6892     * as well.
6893     *
6894     * @param obj The file selector button widget
6895     * @param only @c EINA_TRUE to make @p obj widget's internal file
6896     * selector only display directories, @c EINA_FALSE to make files
6897     * to be displayed in it too
6898     *
6899     * This has the same effect as elm_fileselector_folder_only_set(),
6900     * but now applied to a file selector button's internal file
6901     * selector.
6902     *
6903     * @see elm_fileselector_folder_only_get()
6904     */
6905    EAPI void         elm_fileselector_button_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6906
6907    /**
6908     * Get whether a given file selector button widget's internal file
6909     * selector is displaying folders only or the directory contents,
6910     * as well.
6911     *
6912     * @param obj The file selector button widget
6913     * @return @c EINA_TRUE if @p obj widget's internal file
6914     * selector is only displaying directories, @c EINA_FALSE if files
6915     * are being displayed in it too (and on errors)
6916     *
6917     * @see elm_fileselector_button_folder_only_set() for more details
6918     */
6919    EAPI Eina_Bool    elm_fileselector_button_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6920
6921    /**
6922     * Enable/disable the file name entry box where the user can type
6923     * in a name for a file, in a given file selector button widget's
6924     * internal file selector.
6925     *
6926     * @param obj The file selector button widget
6927     * @param is_save @c EINA_TRUE to make @p obj widget's internal
6928     * file selector a "saving dialog", @c EINA_FALSE otherwise
6929     *
6930     * This has the same effect as elm_fileselector_is_save_set(),
6931     * but now applied to a file selector button's internal file
6932     * selector.
6933     *
6934     * @see elm_fileselector_is_save_get()
6935     */
6936    EAPI void         elm_fileselector_button_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6937
6938    /**
6939     * Get whether the given file selector button widget's internal
6940     * file selector is in "saving dialog" mode
6941     *
6942     * @param obj The file selector button widget
6943     * @return @c EINA_TRUE, if @p obj widget's internal file selector
6944     * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
6945     * errors)
6946     *
6947     * @see elm_fileselector_button_is_save_set() for more details
6948     */
6949    EAPI Eina_Bool    elm_fileselector_button_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6950
6951    /**
6952     * Set whether a given file selector button widget's internal file
6953     * selector will raise an Elementary "inner window", instead of a
6954     * dedicated Elementary window. By default, it won't.
6955     *
6956     * @param obj The file selector button widget
6957     * @param value @c EINA_TRUE to make it use an inner window, @c
6958     * EINA_TRUE to make it use a dedicated window
6959     *
6960     * @see elm_win_inwin_add() for more information on inner windows
6961     * @see elm_fileselector_button_inwin_mode_get()
6962     */
6963    EAPI void         elm_fileselector_button_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6964
6965    /**
6966     * Get whether a given file selector button widget's internal file
6967     * selector will raise an Elementary "inner window", instead of a
6968     * dedicated Elementary window.
6969     *
6970     * @param obj The file selector button widget
6971     * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
6972     * if it will use a dedicated window
6973     *
6974     * @see elm_fileselector_button_inwin_mode_set() for more details
6975     */
6976    EAPI Eina_Bool    elm_fileselector_button_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6977
6978    /**
6979     * @}
6980     */
6981
6982     /**
6983     * @defgroup File_Selector_Entry File Selector Entry
6984     *
6985     * @image html img/widget/fileselector_entry/preview-00.png
6986     * @image latex img/widget/fileselector_entry/preview-00.eps
6987     *
6988     * This is an entry made to be filled with or display a <b>file
6989     * system path string</b>. Besides the entry itself, the widget has
6990     * a @ref File_Selector_Button "file selector button" on its side,
6991     * which will raise an internal @ref Fileselector "file selector widget",
6992     * when clicked, for path selection aided by file system
6993     * navigation.
6994     *
6995     * This file selector may appear in an Elementary window or in an
6996     * inner window. When a file is chosen from it, the (inner) window
6997     * is closed and the selected file's path string is exposed both as
6998     * an smart event and as the new text on the entry.
6999     *
7000     * This widget encapsulates operations on its internal file
7001     * selector on its own API. There is less control over its file
7002     * selector than that one would have instatiating one directly.
7003     *
7004     * Smart callbacks one can register to:
7005     * - @c "changed" - The text within the entry was changed
7006     * - @c "activated" - The entry has had editing finished and
7007     *   changes are to be "committed"
7008     * - @c "press" - The entry has been clicked
7009     * - @c "longpressed" - The entry has been clicked (and held) for a
7010     *   couple seconds
7011     * - @c "clicked" - The entry has been clicked
7012     * - @c "clicked,double" - The entry has been double clicked
7013     * - @c "focused" - The entry has received focus
7014     * - @c "unfocused" - The entry has lost focus
7015     * - @c "selection,paste" - A paste action has occurred on the
7016     *   entry
7017     * - @c "selection,copy" - A copy action has occurred on the entry
7018     * - @c "selection,cut" - A cut action has occurred on the entry
7019     * - @c "unpressed" - The file selector entry's button was released
7020     *   after being pressed.
7021     * - @c "file,chosen" - The user has selected a path via the file
7022     *   selector entry's internal file selector, whose string pointer
7023     *   comes as the @c event_info data (a stringshared string)
7024     *
7025     * Here is an example on its usage:
7026     * @li @ref fileselector_entry_example
7027     *
7028     * @see @ref File_Selector_Button for a similar widget.
7029     * @{
7030     */
7031
7032    /**
7033     * Add a new file selector entry widget to the given parent
7034     * Elementary (container) object
7035     *
7036     * @param parent The parent object
7037     * @return a new file selector entry widget handle or @c NULL, on
7038     * errors
7039     */
7040    EAPI Evas_Object *elm_fileselector_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7041
7042    /**
7043     * Set the label for a given file selector entry widget's button
7044     *
7045     * @param obj The file selector entry widget
7046     * @param label The text label to be displayed on @p obj widget's
7047     * button
7048     *
7049     * @deprecated use elm_object_text_set() instead.
7050     */
7051    EINA_DEPRECATED EAPI void         elm_fileselector_entry_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7052
7053    /**
7054     * Get the label set for a given file selector entry widget's button
7055     *
7056     * @param obj The file selector entry widget
7057     * @return The widget button's label
7058     *
7059     * @deprecated use elm_object_text_set() instead.
7060     */
7061    EINA_DEPRECATED EAPI const char  *elm_fileselector_entry_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7062
7063    /**
7064     * Set the icon on a given file selector entry widget's button
7065     *
7066     * @param obj The file selector entry widget
7067     * @param icon The icon object for the entry's button
7068     *
7069     * Once the icon object is set, a previously set one will be
7070     * deleted. If you want to keep the latter, use the
7071     * elm_fileselector_entry_button_icon_unset() function.
7072     *
7073     * @see elm_fileselector_entry_button_icon_get()
7074     */
7075    EAPI void         elm_fileselector_entry_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
7076
7077    /**
7078     * Get the icon set for a given file selector entry widget's button
7079     *
7080     * @param obj The file selector entry widget
7081     * @return The icon object currently set on @p obj widget's button
7082     * or @c NULL, if none is
7083     *
7084     * @see elm_fileselector_entry_button_icon_set()
7085     */
7086    EAPI Evas_Object *elm_fileselector_entry_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7087
7088    /**
7089     * Unset the icon used in a given file selector entry widget's
7090     * button
7091     *
7092     * @param obj The file selector entry widget
7093     * @return The icon object that was being used on @p obj widget's
7094     * button or @c NULL, on errors
7095     *
7096     * Unparent and return the icon object which was set for this
7097     * widget's button.
7098     *
7099     * @see elm_fileselector_entry_button_icon_set()
7100     */
7101    EAPI Evas_Object *elm_fileselector_entry_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7102
7103    /**
7104     * Set the title for a given file selector entry widget's window
7105     *
7106     * @param obj The file selector entry widget
7107     * @param title The title string
7108     *
7109     * This will change the window's title, when the file selector pops
7110     * out after a click on the entry's button. Those windows have the
7111     * default (unlocalized) value of @c "Select a file" as titles.
7112     *
7113     * @note It will only take any effect if the file selector
7114     * entry widget is @b not under "inwin mode".
7115     *
7116     * @see elm_fileselector_entry_window_title_get()
7117     */
7118    EAPI void         elm_fileselector_entry_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
7119
7120    /**
7121     * Get the title set for a given file selector entry widget's
7122     * window
7123     *
7124     * @param obj The file selector entry widget
7125     * @return Title of the file selector entry's window
7126     *
7127     * @see elm_fileselector_entry_window_title_get() for more details
7128     */
7129    EAPI const char  *elm_fileselector_entry_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7130
7131    /**
7132     * Set the size of a given file selector entry widget's window,
7133     * holding the file selector itself.
7134     *
7135     * @param obj The file selector entry widget
7136     * @param width The window's width
7137     * @param height The window's height
7138     *
7139     * @note it will only take any effect if the file selector entry
7140     * widget is @b not under "inwin mode". The default size for the
7141     * window (when applicable) is 400x400 pixels.
7142     *
7143     * @see elm_fileselector_entry_window_size_get()
7144     */
7145    EAPI void         elm_fileselector_entry_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
7146
7147    /**
7148     * Get the size of a given file selector entry widget's window,
7149     * holding the file selector itself.
7150     *
7151     * @param obj The file selector entry widget
7152     * @param width Pointer into which to store the width value
7153     * @param height Pointer into which to store the height value
7154     *
7155     * @note Use @c NULL pointers on the size values you're not
7156     * interested in: they'll be ignored by the function.
7157     *
7158     * @see elm_fileselector_entry_window_size_set(), for more details
7159     */
7160    EAPI void         elm_fileselector_entry_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
7161
7162    /**
7163     * Set the initial file system path and the entry's path string for
7164     * a given file selector entry widget
7165     *
7166     * @param obj The file selector entry widget
7167     * @param path The path string
7168     *
7169     * It must be a <b>directory</b> path, which will have the contents
7170     * displayed initially in the file selector's view, when invoked
7171     * from @p obj. The default initial path is the @c "HOME"
7172     * environment variable's value.
7173     *
7174     * @see elm_fileselector_entry_path_get()
7175     */
7176    EAPI void         elm_fileselector_entry_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
7177
7178    /**
7179     * Get the entry's path string for a given file selector entry
7180     * widget
7181     *
7182     * @param obj The file selector entry widget
7183     * @return path The path string
7184     *
7185     * @see elm_fileselector_entry_path_set() for more details
7186     */
7187    EAPI const char  *elm_fileselector_entry_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7188
7189    /**
7190     * Enable/disable a tree view in the given file selector entry
7191     * widget's internal file selector
7192     *
7193     * @param obj The file selector entry widget
7194     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
7195     * disable
7196     *
7197     * This has the same effect as elm_fileselector_expandable_set(),
7198     * but now applied to a file selector entry's internal file
7199     * selector.
7200     *
7201     * @note There's no way to put a file selector entry's internal
7202     * file selector in "grid mode", as one may do with "pure" file
7203     * selectors.
7204     *
7205     * @see elm_fileselector_expandable_get()
7206     */
7207    EAPI void         elm_fileselector_entry_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
7208
7209    /**
7210     * Get whether tree view is enabled for the given file selector
7211     * entry widget's internal file selector
7212     *
7213     * @param obj The file selector entry widget
7214     * @return @c EINA_TRUE if @p obj widget's internal file selector
7215     * is in tree view, @c EINA_FALSE otherwise (and or errors)
7216     *
7217     * @see elm_fileselector_expandable_set() for more details
7218     */
7219    EAPI Eina_Bool    elm_fileselector_entry_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7220
7221    /**
7222     * Set whether a given file selector entry widget's internal file
7223     * selector is to display folders only or the directory contents,
7224     * as well.
7225     *
7226     * @param obj The file selector entry widget
7227     * @param only @c EINA_TRUE to make @p obj widget's internal file
7228     * selector only display directories, @c EINA_FALSE to make files
7229     * to be displayed in it too
7230     *
7231     * This has the same effect as elm_fileselector_folder_only_set(),
7232     * but now applied to a file selector entry's internal file
7233     * selector.
7234     *
7235     * @see elm_fileselector_folder_only_get()
7236     */
7237    EAPI void         elm_fileselector_entry_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
7238
7239    /**
7240     * Get whether a given file selector entry widget's internal file
7241     * selector is displaying folders only or the directory contents,
7242     * as well.
7243     *
7244     * @param obj The file selector entry widget
7245     * @return @c EINA_TRUE if @p obj widget's internal file
7246     * selector is only displaying directories, @c EINA_FALSE if files
7247     * are being displayed in it too (and on errors)
7248     *
7249     * @see elm_fileselector_entry_folder_only_set() for more details
7250     */
7251    EAPI Eina_Bool    elm_fileselector_entry_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7252
7253    /**
7254     * Enable/disable the file name entry box where the user can type
7255     * in a name for a file, in a given file selector entry widget's
7256     * internal file selector.
7257     *
7258     * @param obj The file selector entry widget
7259     * @param is_save @c EINA_TRUE to make @p obj widget's internal
7260     * file selector a "saving dialog", @c EINA_FALSE otherwise
7261     *
7262     * This has the same effect as elm_fileselector_is_save_set(),
7263     * but now applied to a file selector entry's internal file
7264     * selector.
7265     *
7266     * @see elm_fileselector_is_save_get()
7267     */
7268    EAPI void         elm_fileselector_entry_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
7269
7270    /**
7271     * Get whether the given file selector entry widget's internal
7272     * file selector is in "saving dialog" mode
7273     *
7274     * @param obj The file selector entry widget
7275     * @return @c EINA_TRUE, if @p obj widget's internal file selector
7276     * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
7277     * errors)
7278     *
7279     * @see elm_fileselector_entry_is_save_set() for more details
7280     */
7281    EAPI Eina_Bool    elm_fileselector_entry_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7282
7283    /**
7284     * Set whether a given file selector entry widget's internal file
7285     * selector will raise an Elementary "inner window", instead of a
7286     * dedicated Elementary window. By default, it won't.
7287     *
7288     * @param obj The file selector entry widget
7289     * @param value @c EINA_TRUE to make it use an inner window, @c
7290     * EINA_TRUE to make it use a dedicated window
7291     *
7292     * @see elm_win_inwin_add() for more information on inner windows
7293     * @see elm_fileselector_entry_inwin_mode_get()
7294     */
7295    EAPI void         elm_fileselector_entry_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
7296
7297    /**
7298     * Get whether a given file selector entry widget's internal file
7299     * selector will raise an Elementary "inner window", instead of a
7300     * dedicated Elementary window.
7301     *
7302     * @param obj The file selector entry widget
7303     * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
7304     * if it will use a dedicated window
7305     *
7306     * @see elm_fileselector_entry_inwin_mode_set() for more details
7307     */
7308    EAPI Eina_Bool    elm_fileselector_entry_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7309
7310    /**
7311     * Set the initial file system path for a given file selector entry
7312     * widget
7313     *
7314     * @param obj The file selector entry widget
7315     * @param path The path string
7316     *
7317     * It must be a <b>directory</b> path, which will have the contents
7318     * displayed initially in the file selector's view, when invoked
7319     * from @p obj. The default initial path is the @c "HOME"
7320     * environment variable's value.
7321     *
7322     * @see elm_fileselector_entry_path_get()
7323     */
7324    EAPI void         elm_fileselector_entry_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
7325
7326    /**
7327     * Get the parent directory's path to the latest file selection on
7328     * a given filer selector entry widget
7329     *
7330     * @param obj The file selector object
7331     * @return The (full) path of the directory of the last selection
7332     * on @p obj widget, a @b stringshared string
7333     *
7334     * @see elm_fileselector_entry_path_set()
7335     */
7336    EAPI const char  *elm_fileselector_entry_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7337
7338    /**
7339     * @}
7340     */
7341
7342    /**
7343     * @defgroup Scroller Scroller
7344     *
7345     * A scroller holds a single object and "scrolls it around". This means that
7346     * it allows the user to use a scrollbar (or a finger) to drag the viewable
7347     * region around, allowing to move through a much larger object that is
7348     * contained in the scroller. The scroller will always have a small minimum
7349     * size by default as it won't be limited by the contents of the scroller.
7350     *
7351     * Signals that you can add callbacks for are:
7352     * @li "edge,left" - the left edge of the content has been reached
7353     * @li "edge,right" - the right edge of the content has been reached
7354     * @li "edge,top" - the top edge of the content has been reached
7355     * @li "edge,bottom" - the bottom edge of the content has been reached
7356     * @li "scroll" - the content has been scrolled (moved)
7357     * @li "scroll,anim,start" - scrolling animation has started
7358     * @li "scroll,anim,stop" - scrolling animation has stopped
7359     * @li "scroll,drag,start" - dragging the contents around has started
7360     * @li "scroll,drag,stop" - dragging the contents around has stopped
7361     * @note The "scroll,anim,*" and "scroll,drag,*" signals are only emitted by
7362     * user intervetion.
7363     *
7364     * @note When Elemementary is in embedded mode the scrollbars will not be
7365     * dragable, they appear merely as indicators of how much has been scrolled.
7366     * @note When Elementary is in desktop mode the thumbscroll(a.k.a.
7367     * fingerscroll) won't work.
7368     *
7369     * Default contents parts of the scroller widget that you can use for are:
7370     * @li "default" - A content of the scroller
7371     *
7372     * In @ref tutorial_scroller you'll find an example of how to use most of
7373     * this API.
7374     * @{
7375     */
7376    /**
7377     * @brief Type that controls when scrollbars should appear.
7378     *
7379     * @see elm_scroller_policy_set()
7380     */
7381    typedef enum _Elm_Scroller_Policy
7382      {
7383         ELM_SCROLLER_POLICY_AUTO = 0, /**< Show scrollbars as needed */
7384         ELM_SCROLLER_POLICY_ON, /**< Always show scrollbars */
7385         ELM_SCROLLER_POLICY_OFF, /**< Never show scrollbars */
7386         ELM_SCROLLER_POLICY_LAST
7387      } Elm_Scroller_Policy;
7388    /**
7389     * @brief Add a new scroller to the parent
7390     *
7391     * @param parent The parent object
7392     * @return The new object or NULL if it cannot be created
7393     */
7394    EAPI Evas_Object *elm_scroller_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7395    /**
7396     * @brief Set the content of the scroller widget (the object to be scrolled around).
7397     *
7398     * @param obj The scroller object
7399     * @param content The new content object
7400     *
7401     * Once the content object is set, a previously set one will be deleted.
7402     * If you want to keep that old content object, use the
7403     * elm_scroller_content_unset() function.
7404     * @deprecated use elm_object_content_set() instead
7405     */
7406    EINA_DEPRECATED EAPI void elm_scroller_content_set(Evas_Object *obj, Evas_Object *child) EINA_ARG_NONNULL(1);
7407    /**
7408     * @brief Get the content of the scroller widget
7409     *
7410     * @param obj The slider object
7411     * @return The content that is being used
7412     *
7413     * Return the content object which is set for this widget
7414     *
7415     * @see elm_scroller_content_set()
7416     * @deprecated use elm_object_content_get() instead.
7417     */
7418    EINA_DEPRECATED EAPI Evas_Object *elm_scroller_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7419    /**
7420     * @brief Unset the content of the scroller widget
7421     *
7422     * @param obj The slider object
7423     * @return The content that was being used
7424     *
7425     * Unparent and return the content object which was set for this widget
7426     *
7427     * @see elm_scroller_content_set()
7428     * @deprecated use elm_object_content_unset() instead.
7429     */
7430    EINA_DEPRECATED EAPI Evas_Object *elm_scroller_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7431    /**
7432     * @brief Set custom theme elements for the scroller
7433     *
7434     * @param obj The scroller object
7435     * @param widget The widget name to use (default is "scroller")
7436     * @param base The base name to use (default is "base")
7437     */
7438    EAPI void         elm_scroller_custom_widget_base_theme_set(Evas_Object *obj, const char *widget, const char *base) EINA_ARG_NONNULL(1, 2, 3);
7439    /**
7440     * @brief Make the scroller minimum size limited to the minimum size of the content
7441     *
7442     * @param obj The scroller object
7443     * @param w Enable limiting minimum size horizontally
7444     * @param h Enable limiting minimum size vertically
7445     *
7446     * By default the scroller will be as small as its design allows,
7447     * irrespective of its content. This will make the scroller minimum size the
7448     * right size horizontally and/or vertically to perfectly fit its content in
7449     * that direction.
7450     */
7451    EAPI void         elm_scroller_content_min_limit(Evas_Object *obj, Eina_Bool w, Eina_Bool h) EINA_ARG_NONNULL(1);
7452    /**
7453     * @brief Show a specific virtual region within the scroller content object
7454     *
7455     * @param obj The scroller object
7456     * @param x X coordinate of the region
7457     * @param y Y coordinate of the region
7458     * @param w Width of the region
7459     * @param h Height of the region
7460     *
7461     * This will ensure all (or part if it does not fit) of the designated
7462     * region in the virtual content object (0, 0 starting at the top-left of the
7463     * virtual content object) is shown within the scroller.
7464     */
7465    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);
7466    /**
7467     * @brief Set the scrollbar visibility policy
7468     *
7469     * @param obj The scroller object
7470     * @param policy_h Horizontal scrollbar policy
7471     * @param policy_v Vertical scrollbar policy
7472     *
7473     * This sets the scrollbar visibility policy for the given scroller.
7474     * ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is
7475     * needed, and otherwise kept hidden. ELM_SCROLLER_POLICY_ON turns it on all
7476     * the time, and ELM_SCROLLER_POLICY_OFF always keeps it off. This applies
7477     * respectively for the horizontal and vertical scrollbars.
7478     */
7479    EAPI void         elm_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
7480    /**
7481     * @brief Gets scrollbar visibility policy
7482     *
7483     * @param obj The scroller object
7484     * @param policy_h Horizontal scrollbar policy
7485     * @param policy_v Vertical scrollbar policy
7486     *
7487     * @see elm_scroller_policy_set()
7488     */
7489    EAPI void         elm_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v) EINA_ARG_NONNULL(1);
7490    /**
7491     * @brief Get the currently visible content region
7492     *
7493     * @param obj The scroller object
7494     * @param x X coordinate of the region
7495     * @param y Y coordinate of the region
7496     * @param w Width of the region
7497     * @param h Height of the region
7498     *
7499     * This gets the current region in the content object that is visible through
7500     * the scroller. The region co-ordinates are returned in the @p x, @p y, @p
7501     * w, @p h values pointed to.
7502     *
7503     * @note All coordinates are relative to the content.
7504     *
7505     * @see elm_scroller_region_show()
7506     */
7507    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);
7508    /**
7509     * @brief Get the size of the content object
7510     *
7511     * @param obj The scroller object
7512     * @param w Width of the content object.
7513     * @param h Height of the content object.
7514     *
7515     * This gets the size of the content object of the scroller.
7516     */
7517    EAPI void         elm_scroller_child_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
7518    /**
7519     * @brief Set bouncing behavior
7520     *
7521     * @param obj The scroller object
7522     * @param h_bounce Allow bounce horizontally
7523     * @param v_bounce Allow bounce vertically
7524     *
7525     * When scrolling, the scroller may "bounce" when reaching an edge of the
7526     * content object. This is a visual way to indicate the end has been reached.
7527     * This is enabled by default for both axis. This API will set if it is enabled
7528     * for the given axis with the boolean parameters for each axis.
7529     */
7530    EAPI void         elm_scroller_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
7531    /**
7532     * @brief Get the bounce behaviour
7533     *
7534     * @param obj The Scroller object
7535     * @param h_bounce Will the scroller bounce horizontally or not
7536     * @param v_bounce Will the scroller bounce vertically or not
7537     *
7538     * @see elm_scroller_bounce_set()
7539     */
7540    EAPI void         elm_scroller_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
7541    /**
7542     * @brief Set scroll page size relative to viewport size.
7543     *
7544     * @param obj The scroller object
7545     * @param h_pagerel The horizontal page relative size
7546     * @param v_pagerel The vertical page relative size
7547     *
7548     * The scroller is capable of limiting scrolling by the user to "pages". That
7549     * is to jump by and only show a "whole page" at a time as if the continuous
7550     * area of the scroller content is split into page sized pieces. This sets
7551     * the size of a page relative to the viewport of the scroller. 1.0 is "1
7552     * viewport" is size (horizontally or vertically). 0.0 turns it off in that
7553     * axis. This is mutually exclusive with page size
7554     * (see elm_scroller_page_size_set()  for more information). Likewise 0.5
7555     * is "half a viewport". Sane usable values are normally between 0.0 and 1.0
7556     * including 1.0. If you only want 1 axis to be page "limited", use 0.0 for
7557     * the other axis.
7558     */
7559    EAPI void         elm_scroller_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
7560    /**
7561     * @brief Set scroll page size.
7562     *
7563     * @param obj The scroller object
7564     * @param h_pagesize The horizontal page size
7565     * @param v_pagesize The vertical page size
7566     *
7567     * This sets the page size to an absolute fixed value, with 0 turning it off
7568     * for that axis.
7569     *
7570     * @see elm_scroller_page_relative_set()
7571     */
7572    EAPI void         elm_scroller_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
7573    /**
7574     * @brief Get scroll current page number.
7575     *
7576     * @param obj The scroller object
7577     * @param h_pagenumber The horizontal page number
7578     * @param v_pagenumber The vertical page number
7579     *
7580     * The page number starts from 0. 0 is the first page.
7581     * Current page means the page which meets the top-left of the viewport.
7582     * If there are two or more pages in the viewport, it returns the number of the page
7583     * which meets the top-left of the viewport.
7584     *
7585     * @see elm_scroller_last_page_get()
7586     * @see elm_scroller_page_show()
7587     * @see elm_scroller_page_brint_in()
7588     */
7589    EAPI void         elm_scroller_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
7590    /**
7591     * @brief Get scroll last page number.
7592     *
7593     * @param obj The scroller object
7594     * @param h_pagenumber The horizontal page number
7595     * @param v_pagenumber The vertical page number
7596     *
7597     * The page number starts from 0. 0 is the first page.
7598     * This returns the last page number among the pages.
7599     *
7600     * @see elm_scroller_current_page_get()
7601     * @see elm_scroller_page_show()
7602     * @see elm_scroller_page_brint_in()
7603     */
7604    EAPI void         elm_scroller_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
7605    /**
7606     * Show a specific virtual region within the scroller content object by page number.
7607     *
7608     * @param obj The scroller object
7609     * @param h_pagenumber The horizontal page number
7610     * @param v_pagenumber The vertical page number
7611     *
7612     * 0, 0 of the indicated page is located at the top-left of the viewport.
7613     * This will jump to the page directly without animation.
7614     *
7615     * Example of usage:
7616     *
7617     * @code
7618     * sc = elm_scroller_add(win);
7619     * elm_scroller_content_set(sc, content);
7620     * elm_scroller_page_relative_set(sc, 1, 0);
7621     * elm_scroller_current_page_get(sc, &h_page, &v_page);
7622     * elm_scroller_page_show(sc, h_page + 1, v_page);
7623     * @endcode
7624     *
7625     * @see elm_scroller_page_bring_in()
7626     */
7627    EAPI void         elm_scroller_page_show(Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
7628    /**
7629     * Show a specific virtual region within the scroller content object by page number.
7630     *
7631     * @param obj The scroller object
7632     * @param h_pagenumber The horizontal page number
7633     * @param v_pagenumber The vertical page number
7634     *
7635     * 0, 0 of the indicated page is located at the top-left of the viewport.
7636     * This will slide to the page with animation.
7637     *
7638     * Example of usage:
7639     *
7640     * @code
7641     * sc = elm_scroller_add(win);
7642     * elm_scroller_content_set(sc, content);
7643     * elm_scroller_page_relative_set(sc, 1, 0);
7644     * elm_scroller_last_page_get(sc, &h_page, &v_page);
7645     * elm_scroller_page_bring_in(sc, h_page, v_page);
7646     * @endcode
7647     *
7648     * @see elm_scroller_page_show()
7649     */
7650    EAPI void         elm_scroller_page_bring_in(Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
7651    /**
7652     * @brief Show a specific virtual region within the scroller content object.
7653     *
7654     * @param obj The scroller object
7655     * @param x X coordinate of the region
7656     * @param y Y coordinate of the region
7657     * @param w Width of the region
7658     * @param h Height of the region
7659     *
7660     * This will ensure all (or part if it does not fit) of the designated
7661     * region in the virtual content object (0, 0 starting at the top-left of the
7662     * virtual content object) is shown within the scroller. Unlike
7663     * elm_scroller_region_show(), this allow the scroller to "smoothly slide"
7664     * to this location (if configuration in general calls for transitions). It
7665     * may not jump immediately to the new location and make take a while and
7666     * show other content along the way.
7667     *
7668     * @see elm_scroller_region_show()
7669     */
7670    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);
7671    /**
7672     * @brief Set event propagation on a scroller
7673     *
7674     * @param obj The scroller object
7675     * @param propagation If propagation is enabled or not
7676     *
7677     * This enables or disabled event propagation from the scroller content to
7678     * the scroller and its parent. By default event propagation is disabled.
7679     */
7680    EAPI void         elm_scroller_propagate_events_set(Evas_Object *obj, Eina_Bool propagation) EINA_ARG_NONNULL(1);
7681    /**
7682     * @brief Get event propagation for a scroller
7683     *
7684     * @param obj The scroller object
7685     * @return The propagation state
7686     *
7687     * This gets the event propagation for a scroller.
7688     *
7689     * @see elm_scroller_propagate_events_set()
7690     */
7691    EAPI Eina_Bool    elm_scroller_propagate_events_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7692    /**
7693     * @brief Set scrolling gravity on a scroller
7694     *
7695     * @param obj The scroller object
7696     * @param x The scrolling horizontal gravity
7697     * @param y The scrolling vertical gravity
7698     *
7699     * The gravity, defines how the scroller will adjust its view
7700     * when the size of the scroller contents increase.
7701     *
7702     * The scroller will adjust the view to glue itself as follows.
7703     *
7704     *  x=0.0, for showing the left most region of the content.
7705     *  x=1.0, for showing the right most region of the content.
7706     *  y=0.0, for showing the bottom most region of the content.
7707     *  y=1.0, for showing the top most region of the content.
7708     *
7709     * Default values for x and y are 0.0
7710     */
7711    EAPI void         elm_scroller_gravity_set(Evas_Object *obj, double x, double y) EINA_ARG_NONNULL(1);
7712    /**
7713     * @brief Get scrolling gravity values for a scroller
7714     *
7715     * @param obj The scroller object
7716     * @param x The scrolling horizontal gravity
7717     * @param y The scrolling vertical gravity
7718     *
7719     * This gets gravity values for a scroller.
7720     *
7721     * @see elm_scroller_gravity_set()
7722     *
7723     */
7724    EAPI void         elm_scroller_gravity_get(const Evas_Object *obj, double *x, double *y) EINA_ARG_NONNULL(1);
7725    /**
7726     * @}
7727     */
7728
7729    /**
7730     * @defgroup Label Label
7731     *
7732     * @image html img/widget/label/preview-00.png
7733     * @image latex img/widget/label/preview-00.eps
7734     *
7735     * @brief Widget to display text, with simple html-like markup.
7736     *
7737     * The Label widget @b doesn't allow text to overflow its boundaries, if the
7738     * text doesn't fit the geometry of the label it will be ellipsized or be
7739     * cut. Elementary provides several styles for this widget:
7740     * @li default - No animation
7741     * @li marker - Centers the text in the label and make it bold by default
7742     * @li slide_long - The entire text appears from the right of the screen and
7743     * slides until it disappears in the left of the screen(reappering on the
7744     * right again).
7745     * @li slide_short - The text appears in the left of the label and slides to
7746     * the right to show the overflow. When all of the text has been shown the
7747     * position is reset.
7748     * @li slide_bounce - The text appears in the left of the label and slides to
7749     * the right to show the overflow. When all of the text has been shown the
7750     * animation reverses, moving the text to the left.
7751     *
7752     * Custom themes can of course invent new markup tags and style them any way
7753     * they like.
7754     *
7755     * The following signals may be emitted by the label widget:
7756     * @li "language,changed": The program's language changed.
7757     *
7758     * See @ref tutorial_label for a demonstration of how to use a label widget.
7759     * @{
7760     */
7761    /**
7762     * @brief Add a new label to the parent
7763     *
7764     * @param parent The parent object
7765     * @return The new object or NULL if it cannot be created
7766     */
7767    EAPI Evas_Object *elm_label_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7768    /**
7769     * @brief Set the label on the label object
7770     *
7771     * @param obj The label object
7772     * @param label The label will be used on the label object
7773     * @deprecated See elm_object_text_set()
7774     */
7775    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 */
7776    /**
7777     * @brief Get the label used on the label object
7778     *
7779     * @param obj The label object
7780     * @return The string inside the label
7781     * @deprecated See elm_object_text_get()
7782     */
7783    EINA_DEPRECATED EAPI const char *elm_label_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1); /* deprecated, use elm_object_text_get instead */
7784    /**
7785     * @brief Set the wrapping behavior of the label
7786     *
7787     * @param obj The label object
7788     * @param wrap To wrap text or not
7789     *
7790     * By default no wrapping is done. Possible values for @p wrap are:
7791     * @li ELM_WRAP_NONE - No wrapping
7792     * @li ELM_WRAP_CHAR - wrap between characters
7793     * @li ELM_WRAP_WORD - wrap between words
7794     * @li ELM_WRAP_MIXED - Word wrap, and if that fails, char wrap
7795     */
7796    EAPI void         elm_label_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
7797    /**
7798     * @brief Get the wrapping behavior of the label
7799     *
7800     * @param obj The label object
7801     * @return Wrap type
7802     *
7803     * @see elm_label_line_wrap_set()
7804     */
7805    EAPI Elm_Wrap_Type elm_label_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7806    /**
7807     * @brief Set wrap width of the label
7808     *
7809     * @param obj The label object
7810     * @param w The wrap width in pixels at a minimum where words need to wrap
7811     *
7812     * This function sets the maximum width size hint of the label.
7813     *
7814     * @warning This is only relevant if the label is inside a container.
7815     */
7816    EAPI void         elm_label_wrap_width_set(Evas_Object *obj, Evas_Coord w) EINA_ARG_NONNULL(1);
7817    /**
7818     * @brief Get wrap width of the label
7819     *
7820     * @param obj The label object
7821     * @return The wrap width in pixels at a minimum where words need to wrap
7822     *
7823     * @see elm_label_wrap_width_set()
7824     */
7825    EAPI Evas_Coord   elm_label_wrap_width_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7826    /**
7827     * @brief Set wrap height of the label
7828     *
7829     * @param obj The label object
7830     * @param h The wrap height in pixels at a minimum where words need to wrap
7831     *
7832     * This function sets the maximum height size hint of the label.
7833     *
7834     * @warning This is only relevant if the label is inside a container.
7835     */
7836    EAPI void         elm_label_wrap_height_set(Evas_Object *obj, Evas_Coord h) EINA_ARG_NONNULL(1);
7837    /**
7838     * @brief get wrap width of the label
7839     *
7840     * @param obj The label object
7841     * @return The wrap height in pixels at a minimum where words need to wrap
7842     */
7843    EAPI Evas_Coord   elm_label_wrap_height_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7844    /**
7845     * @brief Set the font size on the label object.
7846     *
7847     * @param obj The label object
7848     * @param size font size
7849     *
7850     * @warning NEVER use this. It is for hyper-special cases only. use styles
7851     * instead. e.g. "default", "marker", "slide_long" etc.
7852     */
7853    EAPI void         elm_label_fontsize_set(Evas_Object *obj, int fontsize) EINA_ARG_NONNULL(1);
7854    /**
7855     * @brief Set the text color on the label object
7856     *
7857     * @param obj The label object
7858     * @param r Red property background color of The label object
7859     * @param g Green property background color of The label object
7860     * @param b Blue property background color of The label object
7861     * @param a Alpha property background color of The label object
7862     *
7863     * @warning NEVER use this. It is for hyper-special cases only. use styles
7864     * instead. e.g. "default", "marker", "slide_long" etc.
7865     */
7866    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);
7867    /**
7868     * @brief Set the text align on the label object
7869     *
7870     * @param obj The label object
7871     * @param align align mode ("left", "center", "right")
7872     *
7873     * @warning NEVER use this. It is for hyper-special cases only. use styles
7874     * instead. e.g. "default", "marker", "slide_long" etc.
7875     */
7876    EAPI void         elm_label_text_align_set(Evas_Object *obj, const char *alignmode) EINA_ARG_NONNULL(1);
7877    /**
7878     * @brief Set background color of the label
7879     *
7880     * @param obj The label object
7881     * @param r Red property background color of The label object
7882     * @param g Green property background color of The label object
7883     * @param b Blue property background color of The label object
7884     * @param a Alpha property background alpha of The label object
7885     *
7886     * @warning NEVER use this. It is for hyper-special cases only. use styles
7887     * instead. e.g. "default", "marker", "slide_long" etc.
7888     */
7889    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);
7890    /**
7891     * @brief Set the ellipsis behavior of the label
7892     *
7893     * @param obj The label object
7894     * @param ellipsis To ellipsis text or not
7895     *
7896     * If set to true and the text doesn't fit in the label an ellipsis("...")
7897     * will be shown at the end of the widget.
7898     *
7899     * @warning This doesn't work with slide(elm_label_slide_set()) or if the
7900     * choosen wrap method was ELM_WRAP_WORD.
7901     */
7902    EAPI void         elm_label_ellipsis_set(Evas_Object *obj, Eina_Bool ellipsis) EINA_ARG_NONNULL(1);
7903    /**
7904     * @brief Set the text slide of the label
7905     *
7906     * @param obj The label object
7907     * @param slide To start slide or stop
7908     *
7909     * If set to true, the text of the label will slide/scroll through the length of
7910     * label.
7911     *
7912     * @warning This only works with the themes "slide_short", "slide_long" and
7913     * "slide_bounce".
7914     */
7915    EAPI void         elm_label_slide_set(Evas_Object *obj, Eina_Bool slide) EINA_ARG_NONNULL(1);
7916    /**
7917     * @brief Get the text slide mode of the label
7918     *
7919     * @param obj The label object
7920     * @return slide slide mode value
7921     *
7922     * @see elm_label_slide_set()
7923     */
7924    EAPI Eina_Bool    elm_label_slide_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
7925    /**
7926     * @brief Set the slide duration(speed) of the label
7927     *
7928     * @param obj The label object
7929     * @return The duration in seconds in moving text from slide begin position
7930     * to slide end position
7931     */
7932    EAPI void         elm_label_slide_duration_set(Evas_Object *obj, double duration) EINA_ARG_NONNULL(1);
7933    /**
7934     * @brief Get the slide duration(speed) of the label
7935     *
7936     * @param obj The label object
7937     * @return The duration time in moving text from slide begin position to slide end position
7938     *
7939     * @see elm_label_slide_duration_set()
7940     */
7941    EAPI double       elm_label_slide_duration_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
7942    /**
7943     * @}
7944     */
7945
7946    /**
7947     * @defgroup Toggle Toggle
7948     *
7949     * @image html img/widget/toggle/preview-00.png
7950     * @image latex img/widget/toggle/preview-00.eps
7951     *
7952     * @brief A toggle is a slider which can be used to toggle between
7953     * two values.  It has two states: on and off.
7954     *
7955     * This widget is deprecated. Please use elm_check_add() instead using the
7956     * toggle style like:
7957     *
7958     * @code
7959     * obj = elm_check_add(parent);
7960     * elm_object_style_set(obj, "toggle");
7961     * elm_object_part_text_set(obj, "on", "ON");
7962     * elm_object_part_text_set(obj, "off", "OFF");
7963     * @endcode
7964     *
7965     * Signals that you can add callbacks for are:
7966     * @li "changed" - Whenever the toggle value has been changed.  Is not called
7967     *                 until the toggle is released by the cursor (assuming it
7968     *                 has been triggered by the cursor in the first place).
7969     *
7970     * Default contents parts of the toggle widget that you can use for are:
7971     * @li "icon" - An icon of the toggle
7972     *
7973     * Default text parts of the toggle widget that you can use for are:
7974     * @li "elm.text" - Label of the toggle
7975     *
7976     * @ref tutorial_toggle show how to use a toggle.
7977     * @{
7978     */
7979    /**
7980     * @brief Add a toggle to @p parent.
7981     *
7982     * @param parent The parent object
7983     *
7984     * @return The toggle object
7985     */
7986    EINA_DEPRECATED EAPI Evas_Object *elm_toggle_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7987    /**
7988     * @brief Sets the label to be displayed with the toggle.
7989     *
7990     * @param obj The toggle object
7991     * @param label The label to be displayed
7992     *
7993     * @deprecated use elm_object_text_set() instead.
7994     */
7995    EINA_DEPRECATED EAPI void         elm_toggle_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7996    /**
7997     * @brief Gets the label of the toggle
7998     *
7999     * @param obj  toggle object
8000     * @return The label of the toggle
8001     *
8002     * @deprecated use elm_object_text_get() instead.
8003     */
8004    EINA_DEPRECATED EAPI const char  *elm_toggle_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8005    /**
8006     * @brief Set the icon used for the toggle
8007     *
8008     * @param obj The toggle object
8009     * @param icon The icon object for the button
8010     *
8011     * Once the icon object is set, a previously set one will be deleted
8012     * If you want to keep that old content object, use the
8013     * elm_toggle_icon_unset() function.
8014     *
8015     * @deprecated use elm_object_part_content_set() instead.
8016     */
8017    EINA_DEPRECATED EAPI void         elm_toggle_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
8018    /**
8019     * @brief Get the icon used for the toggle
8020     *
8021     * @param obj The toggle object
8022     * @return The icon object that is being used
8023     *
8024     * Return the icon object which is set for this widget.
8025     *
8026     * @see elm_toggle_icon_set()
8027     *
8028     * @deprecated use elm_object_part_content_get() instead.
8029     */
8030    EINA_DEPRECATED EAPI Evas_Object *elm_toggle_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8031    /**
8032     * @brief Unset the icon used for the toggle
8033     *
8034     * @param obj The toggle object
8035     * @return The icon object that was being used
8036     *
8037     * Unparent and return the icon object which was set for this widget.
8038     *
8039     * @see elm_toggle_icon_set()
8040     *
8041     * @deprecated use elm_object_part_content_unset() instead.
8042     */
8043    EINA_DEPRECATED EAPI Evas_Object *elm_toggle_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
8044    /**
8045     * @brief Sets the labels to be associated with the on and off states of the toggle.
8046     *
8047     * @param obj The toggle object
8048     * @param onlabel The label displayed when the toggle is in the "on" state
8049     * @param offlabel The label displayed when the toggle is in the "off" state
8050     *
8051     * @deprecated use elm_object_part_text_set() for "on" and "off" parts
8052     * instead.
8053     */
8054    EINA_DEPRECATED EAPI void         elm_toggle_states_labels_set(Evas_Object *obj, const char *onlabel, const char *offlabel) EINA_ARG_NONNULL(1);
8055    /**
8056     * @brief Gets the labels associated with the on and off states of the
8057     * toggle.
8058     *
8059     * @param obj The toggle object
8060     * @param onlabel A char** to place the onlabel of @p obj into
8061     * @param offlabel A char** to place the offlabel of @p obj into
8062     *
8063     * @deprecated use elm_object_part_text_get() for "on" and "off" parts
8064     * instead.
8065     */
8066    EINA_DEPRECATED EAPI void         elm_toggle_states_labels_get(const Evas_Object *obj, const char **onlabel, const char **offlabel) EINA_ARG_NONNULL(1);
8067    /**
8068     * @brief Sets the state of the toggle to @p state.
8069     *
8070     * @param obj The toggle object
8071     * @param state The state of @p obj
8072     *
8073     * @deprecated use elm_check_state_set() instead.
8074     */
8075    EINA_DEPRECATED EAPI void         elm_toggle_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
8076    /**
8077     * @brief Gets the state of the toggle to @p state.
8078     *
8079     * @param obj The toggle object
8080     * @return The state of @p obj
8081     *
8082     * @deprecated use elm_check_state_get() instead.
8083     */
8084    EINA_DEPRECATED EAPI Eina_Bool    elm_toggle_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8085    /**
8086     * @brief Sets the state pointer of the toggle to @p statep.
8087     *
8088     * @param obj The toggle object
8089     * @param statep The state pointer of @p obj
8090     *
8091     * @deprecated use elm_check_state_pointer_set() instead.
8092     */
8093    EINA_DEPRECATED EAPI void         elm_toggle_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
8094    /**
8095     * @}
8096     */
8097
8098    /**
8099     * @defgroup Frame Frame
8100     *
8101     * @image html img/widget/frame/preview-00.png
8102     * @image latex img/widget/frame/preview-00.eps
8103     *
8104     * @brief Frame is a widget that holds some content and has a title.
8105     *
8106     * The default look is a frame with a title, but Frame supports multple
8107     * styles:
8108     * @li default
8109     * @li pad_small
8110     * @li pad_medium
8111     * @li pad_large
8112     * @li pad_huge
8113     * @li outdent_top
8114     * @li outdent_bottom
8115     *
8116     * Of all this styles only default shows the title. Frame emits no signals.
8117     *
8118     * Default contents parts of the frame widget that you can use for are:
8119     * @li "default" - A content of the frame
8120     *
8121     * Default text parts of the frame widget that you can use for are:
8122     * @li "elm.text" - Label of the frame
8123     *
8124     * For a detailed example see the @ref tutorial_frame.
8125     *
8126     * @{
8127     */
8128    /**
8129     * @brief Add a new frame to the parent
8130     *
8131     * @param parent The parent object
8132     * @return The new object or NULL if it cannot be created
8133     */
8134    EAPI Evas_Object *elm_frame_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
8135    /**
8136     * @brief Set the frame label
8137     *
8138     * @param obj The frame object
8139     * @param label The label of this frame object
8140     *
8141     * @deprecated use elm_object_text_set() instead.
8142     */
8143    EINA_DEPRECATED EAPI void         elm_frame_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
8144    /**
8145     * @brief Get the frame label
8146     *
8147     * @param obj The frame object
8148     *
8149     * @return The label of this frame objet or NULL if unable to get frame
8150     *
8151     * @deprecated use elm_object_text_get() instead.
8152     */
8153    EINA_DEPRECATED EAPI const char  *elm_frame_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8154    /**
8155     * @brief Set the content of the frame widget
8156     *
8157     * Once the content object is set, a previously set one will be deleted.
8158     * If you want to keep that old content object, use the
8159     * elm_frame_content_unset() function.
8160     *
8161     * @param obj The frame object
8162     * @param content The content will be filled in this frame object
8163     *
8164     * @deprecated use elm_object_content_set() instead.
8165     */
8166    EINA_DEPRECATED EAPI void         elm_frame_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
8167    /**
8168     * @brief Get the content of the frame widget
8169     *
8170     * Return the content object which is set for this widget
8171     *
8172     * @param obj The frame object
8173     * @return The content that is being used
8174     *
8175     * @deprecated use elm_object_content_get() instead.
8176     */
8177    EINA_DEPRECATED EAPI Evas_Object *elm_frame_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8178    /**
8179     * @brief Unset the content of the frame widget
8180     *
8181     * Unparent and return the content object which was set for this widget
8182     *
8183     * @param obj The frame object
8184     * @return The content that was being used
8185     *
8186     * @deprecated use elm_object_content_unset() instead.
8187     */
8188    EINA_DEPRECATED EAPI Evas_Object *elm_frame_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
8189    /**
8190     * @}
8191     */
8192
8193    /**
8194     * @defgroup Table Table
8195     *
8196     * A container widget to arrange other widgets in a table where items can
8197     * also span multiple columns or rows - even overlap (and then be raised or
8198     * lowered accordingly to adjust stacking if they do overlap).
8199     *
8200     * For a Table widget the row/column count is not fixed.
8201     * The table widget adjusts itself when subobjects are added to it dynamically.
8202     *
8203     * The followin are examples of how to use a table:
8204     * @li @ref tutorial_table_01
8205     * @li @ref tutorial_table_02
8206     *
8207     * @{
8208     */
8209    /**
8210     * @brief Add a new table to the parent
8211     *
8212     * @param parent The parent object
8213     * @return The new object or NULL if it cannot be created
8214     */
8215    EAPI Evas_Object *elm_table_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
8216    /**
8217     * @brief Set the homogeneous layout in the table
8218     *
8219     * @param obj The layout object
8220     * @param homogeneous A boolean to set if the layout is homogeneous in the
8221     * table (EINA_TRUE = homogeneous,  EINA_FALSE = no homogeneous)
8222     */
8223    EAPI void         elm_table_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
8224    /**
8225     * @brief Get the current table homogeneous mode.
8226     *
8227     * @param obj The table object
8228     * @return A boolean to indicating if the layout is homogeneous in the table
8229     * (EINA_TRUE = homogeneous,  EINA_FALSE = no homogeneous)
8230     */
8231    EAPI Eina_Bool    elm_table_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8232    /**
8233     * @brief Set padding between cells.
8234     *
8235     * @param obj The layout object.
8236     * @param horizontal set the horizontal padding.
8237     * @param vertical set the vertical padding.
8238     *
8239     * Default value is 0.
8240     */
8241    EAPI void         elm_table_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
8242    /**
8243     * @brief Get padding between cells.
8244     *
8245     * @param obj The layout object.
8246     * @param horizontal set the horizontal padding.
8247     * @param vertical set the vertical padding.
8248     */
8249    EAPI void         elm_table_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
8250    /**
8251     * @brief Add a subobject on the table with the coordinates passed
8252     *
8253     * @param obj The table object
8254     * @param subobj The subobject to be added to the table
8255     * @param x Row number
8256     * @param y Column number
8257     * @param w rowspan
8258     * @param h colspan
8259     *
8260     * @note All positioning inside the table is relative to rows and columns, so
8261     * a value of 0 for x and y, means the top left cell of the table, and a
8262     * value of 1 for w and h means @p subobj only takes that 1 cell.
8263     */
8264    EAPI void         elm_table_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
8265    /**
8266     * @brief Remove child from table.
8267     *
8268     * @param obj The table object
8269     * @param subobj The subobject
8270     */
8271    EAPI void         elm_table_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
8272    /**
8273     * @brief Faster way to remove all child objects from a table object.
8274     *
8275     * @param obj The table object
8276     * @param clear If true, will delete children, else just remove from table.
8277     */
8278    EAPI void         elm_table_clear(Evas_Object *obj, Eina_Bool clear) EINA_ARG_NONNULL(1);
8279    /**
8280     * @brief Set the packing location of an existing child of the table
8281     *
8282     * @param subobj The subobject to be modified in the table
8283     * @param x Row number
8284     * @param y Column number
8285     * @param w rowspan
8286     * @param h colspan
8287     *
8288     * Modifies the position of an object already in the table.
8289     *
8290     * @note All positioning inside the table is relative to rows and columns, so
8291     * a value of 0 for x and y, means the top left cell of the table, and a
8292     * value of 1 for w and h means @p subobj only takes that 1 cell.
8293     */
8294    EAPI void         elm_table_pack_set(Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
8295    /**
8296     * @brief Get the packing location of an existing child of the table
8297     *
8298     * @param subobj The subobject to be modified in the table
8299     * @param x Row number
8300     * @param y Column number
8301     * @param w rowspan
8302     * @param h colspan
8303     *
8304     * @see elm_table_pack_set()
8305     */
8306    EAPI void         elm_table_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
8307    /**
8308     * @}
8309     */
8310
8311    /* TEMPORARY: DOCS WILL BE FILLED IN WITH CNP/SED */
8312    typedef struct Elm_Gen_Item Elm_Gen_Item;
8313    typedef struct _Elm_Gen_Item_Class Elm_Gen_Item_Class;
8314    typedef struct _Elm_Gen_Item_Class_Func Elm_Gen_Item_Class_Func; /**< Class functions for gen item classes. */
8315    typedef char        *(*Elm_Gen_Item_Text_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< Label fetching class function for gen item classes. */
8316    typedef Evas_Object *(*Elm_Gen_Item_Content_Get_Cb)  (void *data, Evas_Object *obj, const char *part); /**< Content(swallowed object) fetching class function for gen item classes. */
8317    typedef Eina_Bool    (*Elm_Gen_Item_State_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< State fetching class function for gen item classes. */
8318    typedef void         (*Elm_Gen_Item_Del_Cb)      (void *data, Evas_Object *obj); /**< Deletion class function for gen item classes. */
8319    struct _Elm_Gen_Item_Class
8320      {
8321         const char             *item_style;
8322         struct _Elm_Gen_Item_Class_Func
8323           {
8324              Elm_Gen_Item_Text_Get_Cb  text_get;
8325              Elm_Gen_Item_Content_Get_Cb  content_get;
8326              Elm_Gen_Item_State_Get_Cb state_get;
8327              Elm_Gen_Item_Del_Cb       del;
8328           } func;
8329      };
8330    EINA_DEPRECATED EAPI void elm_gen_clear(Evas_Object *obj);
8331    EINA_DEPRECATED EAPI void elm_gen_item_selected_set(Elm_Gen_Item *it, Eina_Bool selected);
8332    EINA_DEPRECATED EAPI Eina_Bool elm_gen_item_selected_get(const Elm_Gen_Item *it);
8333    EINA_DEPRECATED EAPI void elm_gen_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select);
8334    EINA_DEPRECATED EAPI Eina_Bool elm_gen_always_select_mode_get(const Evas_Object *obj);
8335    EINA_DEPRECATED EAPI void elm_gen_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select);
8336    EINA_DEPRECATED EAPI Eina_Bool elm_gen_no_select_mode_get(const Evas_Object *obj);
8337    EINA_DEPRECATED EAPI void elm_gen_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
8338    EINA_DEPRECATED EAPI void elm_gen_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
8339    EINA_DEPRECATED EAPI void elm_gen_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel);
8340    EINA_DEPRECATED EAPI void elm_gen_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel);
8341
8342    EINA_DEPRECATED EAPI void elm_gen_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize);
8343    EINA_DEPRECATED EAPI void elm_gen_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber);
8344    EINA_DEPRECATED EAPI void elm_gen_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber);
8345    EINA_DEPRECATED EAPI void elm_gen_page_show(const Evas_Object *obj, int h_pagenumber, int v_pagenumber);
8346    EINA_DEPRECATED EAPI void elm_gen_page_bring_in(const Evas_Object *obj, int h_pagenumber, int v_pagenumber);
8347    EINA_DEPRECATED EAPI Elm_Gen_Item *elm_gen_first_item_get(const Evas_Object *obj);
8348    EINA_DEPRECATED EAPI Elm_Gen_Item *elm_gen_last_item_get(const Evas_Object *obj);
8349    EINA_DEPRECATED EAPI Elm_Gen_Item *elm_gen_item_next_get(const Elm_Gen_Item *it);
8350    EINA_DEPRECATED EAPI Elm_Gen_Item *elm_gen_item_prev_get(const Elm_Gen_Item *it);
8351    EINA_DEPRECATED EAPI Evas_Object *elm_gen_item_widget_get(const Elm_Gen_Item *it);
8352
8353    /**
8354     * @defgroup Gengrid Gengrid (Generic grid)
8355     *
8356     * This widget aims to position objects in a grid layout while
8357     * actually creating and rendering only the visible ones, using the
8358     * same idea as the @ref Genlist "genlist": the user defines a @b
8359     * class for each item, specifying functions that will be called at
8360     * object creation, deletion, etc. When those items are selected by
8361     * the user, a callback function is issued. Users may interact with
8362     * a gengrid via the mouse (by clicking on items to select them and
8363     * clicking on the grid's viewport and swiping to pan the whole
8364     * view) or via the keyboard, navigating through item with the
8365     * arrow keys.
8366     *
8367     * @section Gengrid_Layouts Gengrid layouts
8368     *
8369     * Gengrid may layout its items in one of two possible layouts:
8370     * - horizontal or
8371     * - vertical.
8372     *
8373     * When in "horizontal mode", items will be placed in @b columns,
8374     * from top to bottom and, when the space for a column is filled,
8375     * another one is started on the right, thus expanding the grid
8376     * horizontally, making for horizontal scrolling. When in "vertical
8377     * mode" , though, items will be placed in @b rows, from left to
8378     * right and, when the space for a row is filled, another one is
8379     * started below, thus expanding the grid vertically (and making
8380     * for vertical scrolling).
8381     *
8382     * @section Gengrid_Items Gengrid items
8383     *
8384     * An item in a gengrid can have 0 or more texts (they can be
8385     * regular text or textblock Evas objects - that's up to the style
8386     * to determine), 0 or more contents (which are simply objects
8387     * swallowed into the gengrid item's theming Edje object) and 0 or
8388     * more <b>boolean states</b>, which have the behavior left to the
8389     * user to define. The Edje part names for each of these properties
8390     * will be looked up, in the theme file for the gengrid, under the
8391     * Edje (string) data items named @c "texts", @c "contents" and @c
8392     * "states", respectively. For each of those properties, if more
8393     * than one part is provided, they must have names listed separated
8394     * by spaces in the data fields. For the default gengrid item
8395     * theme, we have @b one text part (@c "elm.text"), @b two content 
8396     * parts (@c "elm.swalllow.icon" and @c "elm.swallow.end") and @b
8397     * no state parts.
8398     *
8399     * A gengrid item may be at one of several styles. Elementary
8400     * provides one by default - "default", but this can be extended by
8401     * system or application custom themes/overlays/extensions (see
8402     * @ref Theme "themes" for more details).
8403     *
8404     * @section Gengrid_Item_Class Gengrid item classes
8405     *
8406     * In order to have the ability to add and delete items on the fly,
8407     * gengrid implements a class (callback) system where the
8408     * application provides a structure with information about that
8409     * type of item (gengrid may contain multiple different items with
8410     * different classes, states and styles). Gengrid will call the
8411     * functions in this struct (methods) when an item is "realized"
8412     * (i.e., created dynamically, while the user is scrolling the
8413     * grid). All objects will simply be deleted when no longer needed
8414     * with evas_object_del(). The #Elm_GenGrid_Item_Class structure
8415     * contains the following members:
8416     * - @c item_style - This is a constant string and simply defines
8417     * the name of the item style. It @b must be specified and the
8418     * default should be @c "default".
8419     * - @c func.text_get - This function is called when an item
8420     * object is actually created. The @c data parameter will point to
8421     * the same data passed to elm_gengrid_item_append() and related
8422     * item creation functions. The @c obj parameter is the gengrid
8423     * object itself, while the @c part one is the name string of one
8424     * of the existing text parts in the Edje group implementing the
8425     * item's theme. This function @b must return a strdup'()ed string,
8426     * as the caller will free() it when done. See
8427     * #Elm_Gengrid_Item_Text_Get_Cb.
8428     * - @c func.content_get - This function is called when an item object
8429     * is actually created. The @c data parameter will point to the
8430     * same data passed to elm_gengrid_item_append() and related item
8431     * creation functions. The @c obj parameter is the gengrid object
8432     * itself, while the @c part one is the name string of one of the
8433     * existing (content) swallow parts in the Edje group implementing the
8434     * item's theme. It must return @c NULL, when no content is desired,
8435     * or a valid object handle, otherwise. The object will be deleted
8436     * by the gengrid on its deletion or when the item is "unrealized".
8437     * See #Elm_Gengrid_Item_Content_Get_Cb.
8438     * - @c func.state_get - This function is called when an item
8439     * object is actually created. The @c data parameter will point to
8440     * the same data passed to elm_gengrid_item_append() and related
8441     * item creation functions. The @c obj parameter is the gengrid
8442     * object itself, while the @c part one is the name string of one
8443     * of the state parts in the Edje group implementing the item's
8444     * theme. Return @c EINA_FALSE for false/off or @c EINA_TRUE for
8445     * true/on. Gengrids will emit a signal to its theming Edje object
8446     * with @c "elm,state,XXX,active" and @c "elm" as "emission" and
8447     * "source" arguments, respectively, when the state is true (the
8448     * default is false), where @c XXX is the name of the (state) part.
8449     * See #Elm_Gengrid_Item_State_Get_Cb.
8450     * - @c func.del - This is called when elm_gengrid_item_del() is
8451     * called on an item or elm_gengrid_clear() is called on the
8452     * gengrid. This is intended for use when gengrid items are
8453     * deleted, so any data attached to the item (e.g. its data
8454     * parameter on creation) can be deleted. See #Elm_Gengrid_Item_Del_Cb.
8455     *
8456     * @section Gengrid_Usage_Hints Usage hints
8457     *
8458     * If the user wants to have multiple items selected at the same
8459     * time, elm_gengrid_multi_select_set() will permit it. If the
8460     * gengrid is single-selection only (the default), then
8461     * elm_gengrid_select_item_get() will return the selected item or
8462     * @c NULL, if none is selected. If the gengrid is under
8463     * multi-selection, then elm_gengrid_selected_items_get() will
8464     * return a list (that is only valid as long as no items are
8465     * modified (added, deleted, selected or unselected) of child items
8466     * on a gengrid.
8467     *
8468     * If an item changes (internal (boolean) state, text or content
8469     * changes), then use elm_gengrid_item_update() to have gengrid
8470     * update the item with the new state. A gengrid will re-"realize"
8471     * the item, thus calling the functions in the
8472     * #Elm_Gengrid_Item_Class set for that item.
8473     *
8474     * To programmatically (un)select an item, use
8475     * elm_gengrid_item_selected_set(). To get its selected state use
8476     * elm_gengrid_item_selected_get(). To make an item disabled
8477     * (unable to be selected and appear differently) use
8478     * elm_gengrid_item_disabled_set() to set this and
8479     * elm_gengrid_item_disabled_get() to get the disabled state.
8480     *
8481     * Grid cells will only have their selection smart callbacks called
8482     * when firstly getting selected. Any further clicks will do
8483     * nothing, unless you enable the "always select mode", with
8484     * elm_gengrid_always_select_mode_set(), thus making every click to
8485     * issue selection callbacks. elm_gengrid_no_select_mode_set() will
8486     * turn off the ability to select items entirely in the widget and
8487     * they will neither appear selected nor call the selection smart
8488     * callbacks.
8489     *
8490     * Remember that you can create new styles and add your own theme
8491     * augmentation per application with elm_theme_extension_add(). If
8492     * you absolutely must have a specific style that overrides any
8493     * theme the user or system sets up you can use
8494     * elm_theme_overlay_add() to add such a file.
8495     *
8496     * @section Gengrid_Smart_Events Gengrid smart events
8497     *
8498     * Smart events that you can add callbacks for are:
8499     * - @c "activated" - The user has double-clicked or pressed
8500     *   (enter|return|spacebar) on an item. The @c event_info parameter
8501     *   is the gengrid item that was activated.
8502     * - @c "clicked,double" - The user has double-clicked an item.
8503     *   The @c event_info parameter is the gengrid item that was double-clicked.
8504     * - @c "longpressed" - This is called when the item is pressed for a certain
8505     *   amount of time. By default it's 1 second.
8506     * - @c "selected" - The user has made an item selected. The
8507     *   @c event_info parameter is the gengrid item that was selected.
8508     * - @c "unselected" - The user has made an item unselected. The
8509     *   @c event_info parameter is the gengrid item that was unselected.
8510     * - @c "realized" - This is called when the item in the gengrid
8511     *   has its implementing Evas object instantiated, de facto. @c
8512     *   event_info is the gengrid item that was created. The object
8513     *   may be deleted at any time, so it is highly advised to the
8514     *   caller @b not to use the object pointer returned from
8515     *   elm_gengrid_item_object_get(), because it may point to freed
8516     *   objects.
8517     * - @c "unrealized" - This is called when the implementing Evas
8518     *   object for this item is deleted. @c event_info is the gengrid
8519     *   item that was deleted.
8520     * - @c "changed" - Called when an item is added, removed, resized
8521     *   or moved and when the gengrid is resized or gets "horizontal"
8522     *   property changes.
8523     * - @c "scroll,anim,start" - This is called when scrolling animation has
8524     *   started.
8525     * - @c "scroll,anim,stop" - This is called when scrolling animation has
8526     *   stopped.
8527     * - @c "drag,start,up" - Called when the item in the gengrid has
8528     *   been dragged (not scrolled) up.
8529     * - @c "drag,start,down" - Called when the item in the gengrid has
8530     *   been dragged (not scrolled) down.
8531     * - @c "drag,start,left" - Called when the item in the gengrid has
8532     *   been dragged (not scrolled) left.
8533     * - @c "drag,start,right" - Called when the item in the gengrid has
8534     *   been dragged (not scrolled) right.
8535     * - @c "drag,stop" - Called when the item in the gengrid has
8536     *   stopped being dragged.
8537     * - @c "drag" - Called when the item in the gengrid is being
8538     *   dragged.
8539     * - @c "scroll" - called when the content has been scrolled
8540     *   (moved).
8541     * - @c "scroll,drag,start" - called when dragging the content has
8542     *   started.
8543     * - @c "scroll,drag,stop" - called when dragging the content has
8544     *   stopped.
8545     * - @c "edge,top" - This is called when the gengrid is scrolled until
8546     *   the top edge.
8547     * - @c "edge,bottom" - This is called when the gengrid is scrolled
8548     *   until the bottom edge.
8549     * - @c "edge,left" - This is called when the gengrid is scrolled
8550     *   until the left edge.
8551     * - @c "edge,right" - This is called when the gengrid is scrolled
8552     *   until the right edge.
8553     *
8554     * List of gengrid examples:
8555     * @li @ref gengrid_example
8556     */
8557
8558    /**
8559     * @addtogroup Gengrid
8560     * @{
8561     */
8562
8563    typedef struct _Elm_Gengrid_Item_Class Elm_Gengrid_Item_Class; /**< Gengrid item class definition structs */
8564    #define Elm_Gengrid_Item_Class Elm_Gen_Item_Class
8565    typedef struct _Elm_Gengrid_Item Elm_Gengrid_Item; /**< Gengrid item handles */
8566    #define Elm_Gengrid_Item Elm_Gen_Item /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
8567    typedef struct _Elm_Gengrid_Item_Class_Func Elm_Gengrid_Item_Class_Func; /**< Class functions for gengrid item classes. */
8568    /**
8569     * Text fetching class function for Elm_Gen_Item_Class.
8570     * @param data The data passed in the item creation function
8571     * @param obj The base widget object
8572     * @param part The part name of the swallow
8573     * @return The allocated (NOT stringshared) string to set as the text 
8574     */
8575    typedef char        *(*Elm_Gengrid_Item_Text_Get_Cb) (void *data, Evas_Object *obj, const char *part);
8576    /**
8577     * Content (swallowed object) fetching class function for Elm_Gen_Item_Class.
8578     * @param data The data passed in the item creation function
8579     * @param obj The base widget object
8580     * @param part The part name of the swallow
8581     * @return The content object to swallow
8582     */
8583    typedef Evas_Object *(*Elm_Gengrid_Item_Content_Get_Cb)  (void *data, Evas_Object *obj, const char *part);
8584    /**
8585     * State fetching class function for Elm_Gen_Item_Class.
8586     * @param data The data passed in the item creation function
8587     * @param obj The base widget object
8588     * @param part The part name of the swallow
8589     * @return The hell if I know
8590     */
8591    typedef Eina_Bool    (*Elm_Gengrid_Item_State_Get_Cb) (void *data, Evas_Object *obj, const char *part);
8592    /**
8593     * Deletion class function for Elm_Gen_Item_Class.
8594     * @param data The data passed in the item creation function
8595     * @param obj The base widget object
8596     */
8597    typedef void         (*Elm_Gengrid_Item_Del_Cb)      (void *data, Evas_Object *obj);
8598
8599    /**
8600     * @struct _Elm_Gengrid_Item_Class
8601     *
8602     * Gengrid item class definition. See @ref Gengrid_Item_Class for
8603     * field details.
8604     */
8605    struct _Elm_Gengrid_Item_Class
8606      {
8607         const char             *item_style;
8608         struct _Elm_Gengrid_Item_Class_Func
8609           {
8610              Elm_Gengrid_Item_Text_Get_Cb    text_get; /**< Text fetching class function for gengrid item classes.*/
8611              Elm_Gengrid_Item_Content_Get_Cb content_get; /**< Content fetching class function for gengrid item classes. */
8612              Elm_Gengrid_Item_State_Get_Cb   state_get; /**< State fetching class function for gengrid item classes. */
8613              Elm_Gengrid_Item_Del_Cb         del; /**< Deletion class function for gengrid item classes. */
8614           } func;
8615      }; /**< #Elm_Gengrid_Item_Class member definitions */
8616    #define Elm_Gengrid_Item_Class_Func Elm_Gen_Item_Class_Func
8617    /**
8618     * Add a new gengrid widget to the given parent Elementary
8619     * (container) object
8620     *
8621     * @param parent The parent object
8622     * @return a new gengrid widget handle or @c NULL, on errors
8623     *
8624     * This function inserts a new gengrid widget on the canvas.
8625     *
8626     * @see elm_gengrid_item_size_set()
8627     * @see elm_gengrid_group_item_size_set()
8628     * @see elm_gengrid_horizontal_set()
8629     * @see elm_gengrid_item_append()
8630     * @see elm_gengrid_item_del()
8631     * @see elm_gengrid_clear()
8632     *
8633     * @ingroup Gengrid
8634     */
8635    EAPI Evas_Object       *elm_gengrid_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
8636
8637    /**
8638     * Set the size for the items of a given gengrid widget
8639     *
8640     * @param obj The gengrid object.
8641     * @param w The items' width.
8642     * @param h The items' height;
8643     *
8644     * A gengrid, after creation, has still no information on the size
8645     * to give to each of its cells. So, you most probably will end up
8646     * with squares one @ref Fingers "finger" wide, the default
8647     * size. Use this function to force a custom size for you items,
8648     * making them as big as you wish.
8649     *
8650     * @see elm_gengrid_item_size_get()
8651     *
8652     * @ingroup Gengrid
8653     */
8654    EAPI void               elm_gengrid_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
8655
8656    /**
8657     * Get the size set for the items of a given gengrid widget
8658     *
8659     * @param obj The gengrid object.
8660     * @param w Pointer to a variable where to store the items' width.
8661     * @param h Pointer to a variable where to store the items' height.
8662     *
8663     * @note Use @c NULL pointers on the size values you're not
8664     * interested in: they'll be ignored by the function.
8665     *
8666     * @see elm_gengrid_item_size_get() for more details
8667     *
8668     * @ingroup Gengrid
8669     */
8670    EAPI void               elm_gengrid_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
8671
8672    /**
8673     * Set the size for the group items of a given gengrid widget
8674     *
8675     * @param obj The gengrid object.
8676     * @param w The group items' width.
8677     * @param h The group items' height;
8678     *
8679     * A gengrid, after creation, has still no information on the size
8680     * to give to each of its cells. So, you most probably will end up
8681     * with squares one @ref Fingers "finger" wide, the default
8682     * size. Use this function to force a custom size for you group items,
8683     * making them as big as you wish.
8684     *
8685     * @see elm_gengrid_group_item_size_get()
8686     *
8687     * @ingroup Gengrid
8688     */
8689    EAPI void               elm_gengrid_group_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
8690
8691    /**
8692     * Get the size set for the group items of a given gengrid widget
8693     *
8694     * @param obj The gengrid object.
8695     * @param w Pointer to a variable where to store the group items' width.
8696     * @param h Pointer to a variable where to store the group items' height.
8697     *
8698     * @note Use @c NULL pointers on the size values you're not
8699     * interested in: they'll be ignored by the function.
8700     *
8701     * @see elm_gengrid_group_item_size_get() for more details
8702     *
8703     * @ingroup Gengrid
8704     */
8705    EAPI void               elm_gengrid_group_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
8706
8707    /**
8708     * Set the items grid's alignment within a given gengrid widget
8709     *
8710     * @param obj The gengrid object.
8711     * @param align_x Alignment in the horizontal axis (0 <= align_x <= 1).
8712     * @param align_y Alignment in the vertical axis (0 <= align_y <= 1).
8713     *
8714     * This sets the alignment of the whole grid of items of a gengrid
8715     * within its given viewport. By default, those values are both
8716     * 0.5, meaning that the gengrid will have its items grid placed
8717     * exactly in the middle of its viewport.
8718     *
8719     * @note If given alignment values are out of the cited ranges,
8720     * they'll be changed to the nearest boundary values on the valid
8721     * ranges.
8722     *
8723     * @see elm_gengrid_align_get()
8724     *
8725     * @ingroup Gengrid
8726     */
8727    EAPI void               elm_gengrid_align_set(Evas_Object *obj, double align_x, double align_y) EINA_ARG_NONNULL(1);
8728
8729    /**
8730     * Get the items grid's alignment values within a given gengrid
8731     * widget
8732     *
8733     * @param obj The gengrid object.
8734     * @param align_x Pointer to a variable where to store the
8735     * horizontal alignment.
8736     * @param align_y Pointer to a variable where to store the vertical
8737     * alignment.
8738     *
8739     * @note Use @c NULL pointers on the alignment values you're not
8740     * interested in: they'll be ignored by the function.
8741     *
8742     * @see elm_gengrid_align_set() for more details
8743     *
8744     * @ingroup Gengrid
8745     */
8746    EAPI void               elm_gengrid_align_get(const Evas_Object *obj, double *align_x, double *align_y) EINA_ARG_NONNULL(1);
8747
8748    /**
8749     * Set whether a given gengrid widget is or not able have items
8750     * @b reordered
8751     *
8752     * @param obj The gengrid object
8753     * @param reorder_mode Use @c EINA_TRUE to turn reoderding on,
8754     * @c EINA_FALSE to turn it off
8755     *
8756     * If a gengrid is set to allow reordering, a click held for more
8757     * than 0.5 over a given item will highlight it specially,
8758     * signalling the gengrid has entered the reordering state. From
8759     * that time on, the user will be able to, while still holding the
8760     * mouse button down, move the item freely in the gengrid's
8761     * viewport, replacing to said item to the locations it goes to.
8762     * The replacements will be animated and, whenever the user
8763     * releases the mouse button, the item being replaced gets a new
8764     * definitive place in the grid.
8765     *
8766     * @see elm_gengrid_reorder_mode_get()
8767     *
8768     * @ingroup Gengrid
8769     */
8770    EAPI void               elm_gengrid_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
8771
8772    /**
8773     * Get whether a given gengrid widget is or not able have items
8774     * @b reordered
8775     *
8776     * @param obj The gengrid object
8777     * @return @c EINA_TRUE, if reoderding is on, @c EINA_FALSE if it's
8778     * off
8779     *
8780     * @see elm_gengrid_reorder_mode_set() for more details
8781     *
8782     * @ingroup Gengrid
8783     */
8784    EAPI Eina_Bool          elm_gengrid_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8785
8786    /**
8787     * Append a new item in a given gengrid widget.
8788     *
8789     * @param obj The gengrid object.
8790     * @param gic The item class for the item.
8791     * @param data The item data.
8792     * @param func Convenience function called when the item is
8793     * selected.
8794     * @param func_data Data to be passed to @p func.
8795     * @return A handle to the item added or @c NULL, on errors.
8796     *
8797     * This adds an item to the beginning of the gengrid.
8798     *
8799     * @see elm_gengrid_item_prepend()
8800     * @see elm_gengrid_item_insert_before()
8801     * @see elm_gengrid_item_insert_after()
8802     * @see elm_gengrid_item_del()
8803     *
8804     * @ingroup Gengrid
8805     */
8806    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);
8807
8808    /**
8809     * Prepend a new item in a given gengrid widget.
8810     *
8811     * @param obj The gengrid object.
8812     * @param gic The item class for the item.
8813     * @param data The item data.
8814     * @param func Convenience function called when the item is
8815     * selected.
8816     * @param func_data Data to be passed to @p func.
8817     * @return A handle to the item added or @c NULL, on errors.
8818     *
8819     * This adds an item to the end of the gengrid.
8820     *
8821     * @see elm_gengrid_item_append()
8822     * @see elm_gengrid_item_insert_before()
8823     * @see elm_gengrid_item_insert_after()
8824     * @see elm_gengrid_item_del()
8825     *
8826     * @ingroup Gengrid
8827     */
8828    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);
8829
8830    /**
8831     * Insert an item before another in a gengrid widget
8832     *
8833     * @param obj The gengrid object.
8834     * @param gic The item class for the item.
8835     * @param data The item data.
8836     * @param relative The item to place this new one before.
8837     * @param func Convenience function called when the item is
8838     * selected.
8839     * @param func_data Data to be passed to @p func.
8840     * @return A handle to the item added or @c NULL, on errors.
8841     *
8842     * This inserts an item before another in the gengrid.
8843     *
8844     * @see elm_gengrid_item_append()
8845     * @see elm_gengrid_item_prepend()
8846     * @see elm_gengrid_item_insert_after()
8847     * @see elm_gengrid_item_del()
8848     *
8849     * @ingroup Gengrid
8850     */
8851    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);
8852
8853    /**
8854     * Insert an item after another in a gengrid widget
8855     *
8856     * @param obj The gengrid object.
8857     * @param gic The item class for the item.
8858     * @param data The item data.
8859     * @param relative The item to place this new one after.
8860     * @param func Convenience function called when the item is
8861     * selected.
8862     * @param func_data Data to be passed to @p func.
8863     * @return A handle to the item added or @c NULL, on errors.
8864     *
8865     * This inserts an item after another in the gengrid.
8866     *
8867     * @see elm_gengrid_item_append()
8868     * @see elm_gengrid_item_prepend()
8869     * @see elm_gengrid_item_insert_after()
8870     * @see elm_gengrid_item_del()
8871     *
8872     * @ingroup Gengrid
8873     */
8874    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);
8875
8876    /**
8877     * Insert an item in a gengrid widget using a user-defined sort function.
8878     *
8879     * @param obj The gengrid object.
8880     * @param gic The item class for the item.
8881     * @param data The item data.
8882     * @param comp User defined comparison function that defines the sort order based on
8883     * Elm_Gen_Item and its data param.
8884     * @param func Convenience function called when the item is selected.
8885     * @param func_data Data to be passed to @p func.
8886     * @return A handle to the item added or @c NULL, on errors.
8887     *
8888     * This inserts an item in the gengrid based on user defined comparison function.
8889     *
8890     * @see elm_gengrid_item_append()
8891     * @see elm_gengrid_item_prepend()
8892     * @see elm_gengrid_item_insert_after()
8893     * @see elm_gengrid_item_del()
8894     * @see elm_gengrid_item_direct_sorted_insert()
8895     *
8896     * @ingroup Gengrid
8897     */
8898    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);
8899
8900    /**
8901     * Insert an item in a gengrid widget using a user-defined sort function.
8902     *
8903     * @param obj The gengrid object.
8904     * @param gic The item class for the item.
8905     * @param data The item data.
8906     * @param comp User defined comparison function that defines the sort order based on
8907     * Elm_Gen_Item.
8908     * @param func Convenience function called when the item is selected.
8909     * @param func_data Data to be passed to @p func.
8910     * @return A handle to the item added or @c NULL, on errors.
8911     *
8912     * This inserts an item in the gengrid based on user defined comparison function.
8913     *
8914     * @see elm_gengrid_item_append()
8915     * @see elm_gengrid_item_prepend()
8916     * @see elm_gengrid_item_insert_after()
8917     * @see elm_gengrid_item_del()
8918     * @see elm_gengrid_item_sorted_insert()
8919     *
8920     * @ingroup Gengrid
8921     */
8922    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);
8923
8924    /**
8925     * Set whether items on a given gengrid widget are to get their
8926     * selection callbacks issued for @b every subsequent selection
8927     * click on them or just for the first click.
8928     *
8929     * @param obj The gengrid object
8930     * @param always_select @c EINA_TRUE to make items "always
8931     * selected", @c EINA_FALSE, otherwise
8932     *
8933     * By default, grid items will only call their selection callback
8934     * function when firstly getting selected, any subsequent further
8935     * clicks will do nothing. With this call, you make those
8936     * subsequent clicks also to issue the selection callbacks.
8937     *
8938     * @note <b>Double clicks</b> will @b always be reported on items.
8939     *
8940     * @see elm_gengrid_always_select_mode_get()
8941     *
8942     * @ingroup Gengrid
8943     */
8944    EAPI void               elm_gengrid_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
8945
8946    /**
8947     * Get whether items on a given gengrid widget have their selection
8948     * callbacks issued for @b every subsequent selection click on them
8949     * or just for the first click.
8950     *
8951     * @param obj The gengrid object.
8952     * @return @c EINA_TRUE if the gengrid items are "always selected",
8953     * @c EINA_FALSE, otherwise
8954     *
8955     * @see elm_gengrid_always_select_mode_set() for more details
8956     *
8957     * @ingroup Gengrid
8958     */
8959    EAPI Eina_Bool          elm_gengrid_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8960
8961    /**
8962     * Set whether items on a given gengrid widget can be selected or not.
8963     *
8964     * @param obj The gengrid object
8965     * @param no_select @c EINA_TRUE to make items selectable,
8966     * @c EINA_FALSE otherwise
8967     *
8968     * This will make items in @p obj selectable or not. In the latter
8969     * case, any user interaction on the gengrid items will neither make
8970     * them appear selected nor them call their selection callback
8971     * functions.
8972     *
8973     * @see elm_gengrid_no_select_mode_get()
8974     *
8975     * @ingroup Gengrid
8976     */
8977    EAPI void               elm_gengrid_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
8978
8979    /**
8980     * Get whether items on a given gengrid widget can be selected or
8981     * not.
8982     *
8983     * @param obj The gengrid object
8984     * @return @c EINA_TRUE, if items are selectable, @c EINA_FALSE
8985     * otherwise
8986     *
8987     * @see elm_gengrid_no_select_mode_set() for more details
8988     *
8989     * @ingroup Gengrid
8990     */
8991    EAPI Eina_Bool          elm_gengrid_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8992
8993    /**
8994     * Enable or disable multi-selection in a given gengrid widget
8995     *
8996     * @param obj The gengrid object.
8997     * @param multi @c EINA_TRUE, to enable multi-selection,
8998     * @c EINA_FALSE to disable it.
8999     *
9000     * Multi-selection is the ability to have @b more than one
9001     * item selected, on a given gengrid, simultaneously. When it is
9002     * enabled, a sequence of clicks on different items will make them
9003     * all selected, progressively. A click on an already selected item
9004     * will unselect it. If interacting via the keyboard,
9005     * multi-selection is enabled while holding the "Shift" key.
9006     *
9007     * @note By default, multi-selection is @b disabled on gengrids
9008     *
9009     * @see elm_gengrid_multi_select_get()
9010     *
9011     * @ingroup Gengrid
9012     */
9013    EAPI void               elm_gengrid_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
9014
9015    /**
9016     * Get whether multi-selection is enabled or disabled for a given
9017     * gengrid widget
9018     *
9019     * @param obj The gengrid object.
9020     * @return @c EINA_TRUE, if multi-selection is enabled, @c
9021     * EINA_FALSE otherwise
9022     *
9023     * @see elm_gengrid_multi_select_set() for more details
9024     *
9025     * @ingroup Gengrid
9026     */
9027    EAPI Eina_Bool          elm_gengrid_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9028
9029    /**
9030     * Enable or disable bouncing effect for a given gengrid widget
9031     *
9032     * @param obj The gengrid object
9033     * @param h_bounce @c EINA_TRUE, to enable @b horizontal bouncing,
9034     * @c EINA_FALSE to disable it
9035     * @param v_bounce @c EINA_TRUE, to enable @b vertical bouncing,
9036     * @c EINA_FALSE to disable it
9037     *
9038     * The bouncing effect occurs whenever one reaches the gengrid's
9039     * edge's while panning it -- it will scroll past its limits a
9040     * little bit and return to the edge again, in a animated for,
9041     * automatically.
9042     *
9043     * @note By default, gengrids have bouncing enabled on both axis
9044     *
9045     * @see elm_gengrid_bounce_get()
9046     *
9047     * @ingroup Gengrid
9048     */
9049    EAPI void               elm_gengrid_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
9050
9051    /**
9052     * Get whether bouncing effects are enabled or disabled, for a
9053     * given gengrid widget, on each axis
9054     *
9055     * @param obj The gengrid object
9056     * @param h_bounce Pointer to a variable where to store the
9057     * horizontal bouncing flag.
9058     * @param v_bounce Pointer to a variable where to store the
9059     * vertical bouncing flag.
9060     *
9061     * @see elm_gengrid_bounce_set() for more details
9062     *
9063     * @ingroup Gengrid
9064     */
9065    EAPI void               elm_gengrid_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
9066
9067    /**
9068     * Set a given gengrid widget's scrolling page size, relative to
9069     * its viewport size.
9070     *
9071     * @param obj The gengrid object
9072     * @param h_pagerel The horizontal page (relative) size
9073     * @param v_pagerel The vertical page (relative) size
9074     *
9075     * The gengrid's scroller is capable of binding scrolling by the
9076     * user to "pages". It means that, while scrolling and, specially
9077     * after releasing the mouse button, the grid will @b snap to the
9078     * nearest displaying page's area. When page sizes are set, the
9079     * grid's continuous content area is split into (equal) page sized
9080     * pieces.
9081     *
9082     * This function sets the size of a page <b>relatively to the
9083     * viewport dimensions</b> of the gengrid, for each axis. A value
9084     * @c 1.0 means "the exact viewport's size", in that axis, while @c
9085     * 0.0 turns paging off in that axis. Likewise, @c 0.5 means "half
9086     * a viewport". Sane usable values are, than, between @c 0.0 and @c
9087     * 1.0. Values beyond those will make it behave behave
9088     * inconsistently. If you only want one axis to snap to pages, use
9089     * the value @c 0.0 for the other one.
9090     *
9091     * There is a function setting page size values in @b absolute
9092     * values, too -- elm_gengrid_page_size_set(). Naturally, its use
9093     * is mutually exclusive to this one.
9094     *
9095     * @see elm_gengrid_page_relative_get()
9096     *
9097     * @ingroup Gengrid
9098     */
9099    EAPI void               elm_gengrid_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
9100
9101    /**
9102     * Get a given gengrid widget's scrolling page size, relative to
9103     * its viewport size.
9104     *
9105     * @param obj The gengrid object
9106     * @param h_pagerel Pointer to a variable where to store the
9107     * horizontal page (relative) size
9108     * @param v_pagerel Pointer to a variable where to store the
9109     * vertical page (relative) size
9110     *
9111     * @see elm_gengrid_page_relative_set() for more details
9112     *
9113     * @ingroup Gengrid
9114     */
9115    EAPI void               elm_gengrid_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel) EINA_ARG_NONNULL(1);
9116
9117    /**
9118     * Set a given gengrid widget's scrolling page size
9119     *
9120     * @param obj The gengrid object
9121     * @param h_pagerel The horizontal page size, in pixels
9122     * @param v_pagerel The vertical page size, in pixels
9123     *
9124     * The gengrid's scroller is capable of binding scrolling by the
9125     * user to "pages". It means that, while scrolling and, specially
9126     * after releasing the mouse button, the grid will @b snap to the
9127     * nearest displaying page's area. When page sizes are set, the
9128     * grid's continuous content area is split into (equal) page sized
9129     * pieces.
9130     *
9131     * This function sets the size of a page of the gengrid, in pixels,
9132     * for each axis. Sane usable values are, between @c 0 and the
9133     * dimensions of @p obj, for each axis. Values beyond those will
9134     * make it behave behave inconsistently. If you only want one axis
9135     * to snap to pages, use the value @c 0 for the other one.
9136     *
9137     * There is a function setting page size values in @b relative
9138     * values, too -- elm_gengrid_page_relative_set(). Naturally, its
9139     * use is mutually exclusive to this one.
9140     *
9141     * @ingroup Gengrid
9142     */
9143    EAPI void               elm_gengrid_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
9144
9145    /**
9146     * @brief Get gengrid current page number.
9147     *
9148     * @param obj The gengrid object
9149     * @param h_pagenumber The horizontal page number
9150     * @param v_pagenumber The vertical page number
9151     *
9152     * The page number starts from 0. 0 is the first page.
9153     * Current page means the page which meet the top-left of the viewport.
9154     * If there are two or more pages in the viewport, it returns the number of page
9155     * which meet the top-left of the viewport.
9156     *
9157     * @see elm_gengrid_last_page_get()
9158     * @see elm_gengrid_page_show()
9159     * @see elm_gengrid_page_brint_in()
9160     */
9161    EAPI void         elm_gengrid_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
9162
9163    /**
9164     * @brief Get scroll last page number.
9165     *
9166     * @param obj The gengrid object
9167     * @param h_pagenumber The horizontal page number
9168     * @param v_pagenumber The vertical page number
9169     *
9170     * The page number starts from 0. 0 is the first page.
9171     * This returns the last page number among the pages.
9172     *
9173     * @see elm_gengrid_current_page_get()
9174     * @see elm_gengrid_page_show()
9175     * @see elm_gengrid_page_brint_in()
9176     */
9177    EAPI void         elm_gengrid_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
9178
9179    /**
9180     * Show a specific virtual region within the gengrid content object by page number.
9181     *
9182     * @param obj The gengrid object
9183     * @param h_pagenumber The horizontal page number
9184     * @param v_pagenumber The vertical page number
9185     *
9186     * 0, 0 of the indicated page is located at the top-left of the viewport.
9187     * This will jump to the page directly without animation.
9188     *
9189     * Example of usage:
9190     *
9191     * @code
9192     * sc = elm_gengrid_add(win);
9193     * elm_gengrid_content_set(sc, content);
9194     * elm_gengrid_page_relative_set(sc, 1, 0);
9195     * elm_gengrid_current_page_get(sc, &h_page, &v_page);
9196     * elm_gengrid_page_show(sc, h_page + 1, v_page);
9197     * @endcode
9198     *
9199     * @see elm_gengrid_page_bring_in()
9200     */
9201    EAPI void         elm_gengrid_page_show(const Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
9202
9203    /**
9204     * Show a specific virtual region within the gengrid content object by page number.
9205     *
9206     * @param obj The gengrid object
9207     * @param h_pagenumber The horizontal page number
9208     * @param v_pagenumber The vertical page number
9209     *
9210     * 0, 0 of the indicated page is located at the top-left of the viewport.
9211     * This will slide to the page with animation.
9212     *
9213     * Example of usage:
9214     *
9215     * @code
9216     * sc = elm_gengrid_add(win);
9217     * elm_gengrid_content_set(sc, content);
9218     * elm_gengrid_page_relative_set(sc, 1, 0);
9219     * elm_gengrid_last_page_get(sc, &h_page, &v_page);
9220     * elm_gengrid_page_bring_in(sc, h_page, v_page);
9221     * @endcode
9222     *
9223     * @see elm_gengrid_page_show()
9224     */
9225     EAPI void         elm_gengrid_page_bring_in(const Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
9226
9227    /**
9228     * Set the direction in which a given gengrid widget will expand while
9229     * placing its items.
9230     *
9231     * @param obj The gengrid object.
9232     * @param setting @c EINA_TRUE to make the gengrid expand
9233     * horizontally, @c EINA_FALSE to expand vertically.
9234     *
9235     * When in "horizontal mode" (@c EINA_TRUE), items will be placed
9236     * in @b columns, from top to bottom and, when the space for a
9237     * column is filled, another one is started on the right, thus
9238     * expanding the grid horizontally. When in "vertical mode"
9239     * (@c EINA_FALSE), though, items will be placed in @b rows, from left
9240     * to right and, when the space for a row is filled, another one is
9241     * started below, thus expanding the grid vertically.
9242     *
9243     * @see elm_gengrid_horizontal_get()
9244     *
9245     * @ingroup Gengrid
9246     */
9247    EAPI void               elm_gengrid_horizontal_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
9248
9249    /**
9250     * Get for what direction a given gengrid widget will expand while
9251     * placing its items.
9252     *
9253     * @param obj The gengrid object.
9254     * @return @c EINA_TRUE, if @p obj is set to expand horizontally,
9255     * @c EINA_FALSE if it's set to expand vertically.
9256     *
9257     * @see elm_gengrid_horizontal_set() for more detais
9258     *
9259     * @ingroup Gengrid
9260     */
9261    EAPI Eina_Bool          elm_gengrid_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9262
9263    /**
9264     * Get the first item in a given gengrid widget
9265     *
9266     * @param obj The gengrid object
9267     * @return The first item's handle or @c NULL, if there are no
9268     * items in @p obj (and on errors)
9269     *
9270     * This returns the first item in the @p obj's internal list of
9271     * items.
9272     *
9273     * @see elm_gengrid_last_item_get()
9274     *
9275     * @ingroup Gengrid
9276     */
9277    EAPI Elm_Gengrid_Item  *elm_gengrid_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9278
9279    /**
9280     * Get the last item in a given gengrid widget
9281     *
9282     * @param obj The gengrid object
9283     * @return The last item's handle or @c NULL, if there are no
9284     * items in @p obj (and on errors)
9285     *
9286     * This returns the last item in the @p obj's internal list of
9287     * items.
9288     *
9289     * @see elm_gengrid_first_item_get()
9290     *
9291     * @ingroup Gengrid
9292     */
9293    EAPI Elm_Gengrid_Item  *elm_gengrid_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9294
9295    /**
9296     * Get the @b next item in a gengrid widget's internal list of items,
9297     * given a handle to one of those items.
9298     *
9299     * @param item The gengrid item to fetch next from
9300     * @return The item after @p item, or @c NULL if there's none (and
9301     * on errors)
9302     *
9303     * This returns the item placed after the @p item, on the container
9304     * gengrid.
9305     *
9306     * @see elm_gengrid_item_prev_get()
9307     *
9308     * @ingroup Gengrid
9309     */
9310    EAPI Elm_Gengrid_Item  *elm_gengrid_item_next_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9311
9312    /**
9313     * Get the @b previous item in a gengrid widget's internal list of items,
9314     * given a handle to one of those items.
9315     *
9316     * @param item The gengrid item to fetch previous from
9317     * @return The item before @p item, or @c NULL if there's none (and
9318     * on errors)
9319     *
9320     * This returns the item placed before the @p item, on the container
9321     * gengrid.
9322     *
9323     * @see elm_gengrid_item_next_get()
9324     *
9325     * @ingroup Gengrid
9326     */
9327    EAPI Elm_Gengrid_Item  *elm_gengrid_item_prev_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9328
9329    /**
9330     * Get the gengrid object's handle which contains a given gengrid
9331     * item
9332     *
9333     * @param item The item to fetch the container from
9334     * @return The gengrid (parent) object
9335     *
9336     * This returns the gengrid object itself that an item belongs to.
9337     *
9338     * @ingroup Gengrid
9339     */
9340    EAPI Evas_Object       *elm_gengrid_item_gengrid_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9341
9342    /**
9343     * Remove a gengrid item from its parent, deleting it.
9344     *
9345     * @param item The item to be removed.
9346     * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
9347     *
9348     * @see elm_gengrid_clear(), to remove all items in a gengrid at
9349     * once.
9350     *
9351     * @ingroup Gengrid
9352     */
9353    EAPI void               elm_gengrid_item_del(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9354
9355    /**
9356     * Update the contents of a given gengrid item
9357     *
9358     * @param item The gengrid item
9359     *
9360     * This updates an item by calling all the item class functions
9361     * again to get the contents, texts and states. Use this when the
9362     * original item data has changed and you want the changes to be
9363     * reflected.
9364     *
9365     * @ingroup Gengrid
9366     */
9367    EAPI void               elm_gengrid_item_update(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9368
9369    /**
9370     * Get the Gengrid Item class for the given Gengrid Item.
9371     *
9372     * @param item The gengrid item
9373     *
9374     * This returns the Gengrid_Item_Class for the given item. It can be used to examine
9375     * the function pointers and item_style.
9376     *
9377     * @ingroup Gengrid
9378     */
9379    EAPI const Elm_Gengrid_Item_Class *elm_gengrid_item_item_class_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9380
9381    /**
9382     * Get the Gengrid Item class for the given Gengrid Item.
9383     *
9384     * This sets the Gengrid_Item_Class for the given item. It can be used to examine
9385     * the function pointers and item_style.
9386     *
9387     * @param item The gengrid item
9388     * @param gic The gengrid item class describing the function pointers and the item style.
9389     *
9390     * @ingroup Gengrid
9391     */
9392    EAPI void               elm_gengrid_item_item_class_set(Elm_Gengrid_Item *item, const Elm_Gengrid_Item_Class *gic) EINA_ARG_NONNULL(1, 2);
9393
9394    /**
9395     * Return the data associated to a given gengrid item
9396     *
9397     * @param item The gengrid item.
9398     * @return the data associated with this item.
9399     *
9400     * This returns the @c data value passed on the
9401     * elm_gengrid_item_append() and related item addition calls.
9402     *
9403     * @see elm_gengrid_item_append()
9404     * @see elm_gengrid_item_data_set()
9405     *
9406     * @ingroup Gengrid
9407     */
9408    EAPI void              *elm_gengrid_item_data_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9409
9410    /**
9411     * Set the data associated with a given gengrid item
9412     *
9413     * @param item The gengrid item
9414     * @param data The data pointer to set on it
9415     *
9416     * This @b overrides the @c data value passed on the
9417     * elm_gengrid_item_append() and related item addition calls. This
9418     * function @b won't call elm_gengrid_item_update() automatically,
9419     * so you'd issue it afterwards if you want to have the item
9420     * updated to reflect the new data.
9421     *
9422     * @see elm_gengrid_item_data_get()
9423     * @see elm_gengrid_item_update()
9424     *
9425     * @ingroup Gengrid
9426     */
9427    EAPI void               elm_gengrid_item_data_set(Elm_Gengrid_Item *item, const void *data) EINA_ARG_NONNULL(1);
9428
9429    /**
9430     * Get a given gengrid item's position, relative to the whole
9431     * gengrid's grid area.
9432     *
9433     * @param item The Gengrid item.
9434     * @param x Pointer to variable to store the item's <b>row number</b>.
9435     * @param y Pointer to variable to store the item's <b>column number</b>.
9436     *
9437     * This returns the "logical" position of the item within the
9438     * gengrid. For example, @c (0, 1) would stand for first row,
9439     * second column.
9440     *
9441     * @ingroup Gengrid
9442     */
9443    EAPI void               elm_gengrid_item_pos_get(const Elm_Gengrid_Item *item, unsigned int *x, unsigned int *y) EINA_ARG_NONNULL(1);
9444
9445    /**
9446     * Set whether a given gengrid item is selected or not
9447     *
9448     * @param item The gengrid item
9449     * @param selected Use @c EINA_TRUE, to make it selected, @c
9450     * EINA_FALSE to make it unselected
9451     *
9452     * This sets the selected state of an item. If multi-selection is
9453     * not enabled on the containing gengrid and @p selected is @c
9454     * EINA_TRUE, any other previously selected items will get
9455     * unselected in favor of this new one.
9456     *
9457     * @see elm_gengrid_item_selected_get()
9458     *
9459     * @ingroup Gengrid
9460     */
9461    EAPI void elm_gengrid_item_selected_set(Elm_Gengrid_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
9462
9463    /**
9464     * Get whether a given gengrid item is selected or not
9465     *
9466     * @param item The gengrid item
9467     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
9468     *
9469     * This API returns EINA_TRUE for all the items selected in multi-select mode as well.
9470     *
9471     * @see elm_gengrid_item_selected_set() for more details
9472     *
9473     * @ingroup Gengrid
9474     */
9475    EAPI Eina_Bool elm_gengrid_item_selected_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9476
9477    /**
9478     * Get the real Evas object created to implement the view of a
9479     * given gengrid item
9480     *
9481     * @param item The gengrid item.
9482     * @return the Evas object implementing this item's view.
9483     *
9484     * This returns the actual Evas object used to implement the
9485     * specified gengrid item's view. This may be @c NULL, as it may
9486     * not have been created or may have been deleted, at any time, by
9487     * the gengrid. <b>Do not modify this object</b> (move, resize,
9488     * show, hide, etc.), as the gengrid is controlling it. This
9489     * function is for querying, emitting custom signals or hooking
9490     * lower level callbacks for events on that object. Do not delete
9491     * this object under any circumstances.
9492     *
9493     * @see elm_gengrid_item_data_get()
9494     *
9495     * @ingroup Gengrid
9496     */
9497    EAPI const Evas_Object *elm_gengrid_item_object_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9498
9499    /**
9500     * Show the portion of a gengrid's internal grid containing a given
9501     * item, @b immediately.
9502     *
9503     * @param item The item to display
9504     *
9505     * This causes gengrid to @b redraw its viewport's contents to the
9506     * region contining the given @p item item, if it is not fully
9507     * visible.
9508     *
9509     * @see elm_gengrid_item_bring_in()
9510     *
9511     * @ingroup Gengrid
9512     */
9513    EAPI void               elm_gengrid_item_show(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9514
9515    /**
9516     * Animatedly bring in, to the visible area of a gengrid, a given
9517     * item on it.
9518     *
9519     * @param item The gengrid item to display
9520     *
9521     * This causes gengrid to jump to the given @p item and show
9522     * it (by scrolling), if it is not fully visible. This will use
9523     * animation to do so and take a period of time to complete.
9524     *
9525     * @see elm_gengrid_item_show()
9526     *
9527     * @ingroup Gengrid
9528     */
9529    EAPI void               elm_gengrid_item_bring_in(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9530
9531    /**
9532     * Set whether a given gengrid item is disabled or not.
9533     *
9534     * @param item The gengrid item
9535     * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
9536     * to enable it back.
9537     *
9538     * A disabled item cannot be selected or unselected. It will also
9539     * change its appearance, to signal the user it's disabled.
9540     *
9541     * @see elm_gengrid_item_disabled_get()
9542     *
9543     * @ingroup Gengrid
9544     */
9545    EAPI void               elm_gengrid_item_disabled_set(Elm_Gengrid_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
9546
9547    /**
9548     * Get whether a given gengrid item is disabled or not.
9549     *
9550     * @param item The gengrid item
9551     * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
9552     * (and on errors).
9553     *
9554     * @see elm_gengrid_item_disabled_set() for more details
9555     *
9556     * @ingroup Gengrid
9557     */
9558    EAPI Eina_Bool          elm_gengrid_item_disabled_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9559
9560    /**
9561     * Set the text to be shown in a given gengrid item's tooltips.
9562     *
9563     * @param item The gengrid item
9564     * @param text The text to set in the content
9565     *
9566     * This call will setup the text to be used as tooltip to that item
9567     * (analogous to elm_object_tooltip_text_set(), but being item
9568     * tooltips with higher precedence than object tooltips). It can
9569     * have only one tooltip at a time, so any previous tooltip data
9570     * will get removed.
9571     *
9572     * @ingroup Gengrid
9573     */
9574    EAPI void               elm_gengrid_item_tooltip_text_set(Elm_Gengrid_Item *item, const char *text) EINA_ARG_NONNULL(1);
9575
9576    /**
9577     * Set the content to be shown in a given gengrid item's tooltip
9578     *
9579     * @param item The gengrid item.
9580     * @param func The function returning the tooltip contents.
9581     * @param data What to provide to @a func as callback data/context.
9582     * @param del_cb Called when data is not needed anymore, either when
9583     *        another callback replaces @p func, the tooltip is unset with
9584     *        elm_gengrid_item_tooltip_unset() or the owner @p item
9585     *        dies. This callback receives as its first parameter the
9586     *        given @p data, being @c event_info the item handle.
9587     *
9588     * This call will setup the tooltip's contents to @p item
9589     * (analogous to elm_object_tooltip_content_cb_set(), but being
9590     * item tooltips with higher precedence than object tooltips). It
9591     * can have only one tooltip at a time, so any previous tooltip
9592     * content will get removed. @p func (with @p data) will be called
9593     * every time Elementary needs to show the tooltip and it should
9594     * return a valid Evas object, which will be fully managed by the
9595     * tooltip system, getting deleted when the tooltip is gone.
9596     *
9597     * @ingroup Gengrid
9598     */
9599    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);
9600
9601    /**
9602     * Unset a tooltip from a given gengrid item
9603     *
9604     * @param item gengrid item to remove a previously set tooltip from.
9605     *
9606     * This call removes any tooltip set on @p item. The callback
9607     * provided as @c del_cb to
9608     * elm_gengrid_item_tooltip_content_cb_set() will be called to
9609     * notify it is not used anymore (and have resources cleaned, if
9610     * need be).
9611     *
9612     * @see elm_gengrid_item_tooltip_content_cb_set()
9613     *
9614     * @ingroup Gengrid
9615     */
9616    EAPI void               elm_gengrid_item_tooltip_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9617
9618    /**
9619     * Set a different @b style for a given gengrid item's tooltip.
9620     *
9621     * @param item gengrid item with tooltip set
9622     * @param style the <b>theme style</b> to use on tooltips (e.g. @c
9623     * "default", @c "transparent", etc)
9624     *
9625     * Tooltips can have <b>alternate styles</b> to be displayed on,
9626     * which are defined by the theme set on Elementary. This function
9627     * works analogously as elm_object_tooltip_style_set(), but here
9628     * applied only to gengrid item objects. The default style for
9629     * tooltips is @c "default".
9630     *
9631     * @note before you set a style you should define a tooltip with
9632     *       elm_gengrid_item_tooltip_content_cb_set() or
9633     *       elm_gengrid_item_tooltip_text_set()
9634     *
9635     * @see elm_gengrid_item_tooltip_style_get()
9636     *
9637     * @ingroup Gengrid
9638     */
9639    EAPI void               elm_gengrid_item_tooltip_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
9640
9641    /**
9642     * Get the style set a given gengrid item's tooltip.
9643     *
9644     * @param item gengrid item with tooltip already set on.
9645     * @return style the theme style in use, which defaults to
9646     *         "default". If the object does not have a tooltip set,
9647     *         then @c NULL is returned.
9648     *
9649     * @see elm_gengrid_item_tooltip_style_set() for more details
9650     *
9651     * @ingroup Gengrid
9652     */
9653    EAPI const char        *elm_gengrid_item_tooltip_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9654    /**
9655     * @brief Disable size restrictions on an object's tooltip
9656     * @param item The tooltip's anchor object
9657     * @param disable If EINA_TRUE, size restrictions are disabled
9658     * @return EINA_FALSE on failure, EINA_TRUE on success
9659     *
9660     * This function allows a tooltip to expand beyond its parant window's canvas.
9661     * It will instead be limited only by the size of the display.
9662     */
9663    EAPI Eina_Bool          elm_gengrid_item_tooltip_window_mode_set(Elm_Gengrid_Item *item, Eina_Bool disable);
9664    /**
9665     * @brief Retrieve size restriction state of an object's tooltip
9666     * @param item The tooltip's anchor object
9667     * @return If EINA_TRUE, size restrictions are disabled
9668     *
9669     * This function returns whether a tooltip is allowed to expand beyond
9670     * its parant window's canvas.
9671     * It will instead be limited only by the size of the display.
9672     */
9673    EAPI Eina_Bool          elm_gengrid_item_tooltip_window_mode_get(const Elm_Gengrid_Item *item);
9674    /**
9675     * Set the type of mouse pointer/cursor decoration to be shown,
9676     * when the mouse pointer is over the given gengrid widget item
9677     *
9678     * @param item gengrid item to customize cursor on
9679     * @param cursor the cursor type's name
9680     *
9681     * This function works analogously as elm_object_cursor_set(), but
9682     * here the cursor's changing area is restricted to the item's
9683     * area, and not the whole widget's. Note that that item cursors
9684     * have precedence over widget cursors, so that a mouse over @p
9685     * item will always show cursor @p type.
9686     *
9687     * If this function is called twice for an object, a previously set
9688     * cursor will be unset on the second call.
9689     *
9690     * @see elm_object_cursor_set()
9691     * @see elm_gengrid_item_cursor_get()
9692     * @see elm_gengrid_item_cursor_unset()
9693     *
9694     * @ingroup Gengrid
9695     */
9696    EAPI void               elm_gengrid_item_cursor_set(Elm_Gengrid_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
9697
9698    /**
9699     * Get the type of mouse pointer/cursor decoration set to be shown,
9700     * when the mouse pointer is over the given gengrid widget item
9701     *
9702     * @param item gengrid item with custom cursor set
9703     * @return the cursor type's name or @c NULL, if no custom cursors
9704     * were set to @p item (and on errors)
9705     *
9706     * @see elm_object_cursor_get()
9707     * @see elm_gengrid_item_cursor_set() for more details
9708     * @see elm_gengrid_item_cursor_unset()
9709     *
9710     * @ingroup Gengrid
9711     */
9712    EAPI const char        *elm_gengrid_item_cursor_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9713
9714    /**
9715     * Unset any custom mouse pointer/cursor decoration set to be
9716     * shown, when the mouse pointer is over the given gengrid widget
9717     * item, thus making it show the @b default cursor again.
9718     *
9719     * @param item a gengrid item
9720     *
9721     * Use this call to undo any custom settings on this item's cursor
9722     * decoration, bringing it back to defaults (no custom style set).
9723     *
9724     * @see elm_object_cursor_unset()
9725     * @see elm_gengrid_item_cursor_set() for more details
9726     *
9727     * @ingroup Gengrid
9728     */
9729    EAPI void               elm_gengrid_item_cursor_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9730
9731    /**
9732     * Set a different @b style for a given custom cursor set for a
9733     * gengrid item.
9734     *
9735     * @param item gengrid item with custom cursor set
9736     * @param style the <b>theme style</b> to use (e.g. @c "default",
9737     * @c "transparent", etc)
9738     *
9739     * This function only makes sense when one is using custom mouse
9740     * cursor decorations <b>defined in a theme file</b> , which can
9741     * have, given a cursor name/type, <b>alternate styles</b> on
9742     * it. It works analogously as elm_object_cursor_style_set(), but
9743     * here applied only to gengrid item objects.
9744     *
9745     * @warning Before you set a cursor style you should have defined a
9746     *       custom cursor previously on the item, with
9747     *       elm_gengrid_item_cursor_set()
9748     *
9749     * @see elm_gengrid_item_cursor_engine_only_set()
9750     * @see elm_gengrid_item_cursor_style_get()
9751     *
9752     * @ingroup Gengrid
9753     */
9754    EAPI void               elm_gengrid_item_cursor_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
9755
9756    /**
9757     * Get the current @b style set for a given gengrid item's custom
9758     * cursor
9759     *
9760     * @param item gengrid item with custom cursor set.
9761     * @return style the cursor style in use. If the object does not
9762     *         have a cursor set, then @c NULL is returned.
9763     *
9764     * @see elm_gengrid_item_cursor_style_set() for more details
9765     *
9766     * @ingroup Gengrid
9767     */
9768    EAPI const char        *elm_gengrid_item_cursor_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9769
9770    /**
9771     * Set if the (custom) cursor for a given gengrid item should be
9772     * searched in its theme, also, or should only rely on the
9773     * rendering engine.
9774     *
9775     * @param item item with custom (custom) cursor already set on
9776     * @param engine_only Use @c EINA_TRUE to have cursors looked for
9777     * only on those provided by the rendering engine, @c EINA_FALSE to
9778     * have them searched on the widget's theme, as well.
9779     *
9780     * @note This call is of use only if you've set a custom cursor
9781     * for gengrid items, with elm_gengrid_item_cursor_set().
9782     *
9783     * @note By default, cursors will only be looked for between those
9784     * provided by the rendering engine.
9785     *
9786     * @ingroup Gengrid
9787     */
9788    EAPI void               elm_gengrid_item_cursor_engine_only_set(Elm_Gengrid_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
9789
9790    /**
9791     * Get if the (custom) cursor for a given gengrid item is being
9792     * searched in its theme, also, or is only relying on the rendering
9793     * engine.
9794     *
9795     * @param item a gengrid item
9796     * @return @c EINA_TRUE, if cursors are being looked for only on
9797     * those provided by the rendering engine, @c EINA_FALSE if they
9798     * are being searched on the widget's theme, as well.
9799     *
9800     * @see elm_gengrid_item_cursor_engine_only_set(), for more details
9801     *
9802     * @ingroup Gengrid
9803     */
9804    EAPI Eina_Bool          elm_gengrid_item_cursor_engine_only_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9805
9806    /**
9807     * Remove all items from a given gengrid widget
9808     *
9809     * @param obj The gengrid object.
9810     *
9811     * This removes (and deletes) all items in @p obj, leaving it
9812     * empty.
9813     *
9814     * @see elm_gengrid_item_del(), to remove just one item.
9815     *
9816     * @ingroup Gengrid
9817     */
9818    EAPI void elm_gengrid_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
9819
9820    /**
9821     * Get the selected item in a given gengrid widget
9822     *
9823     * @param obj The gengrid object.
9824     * @return The selected item's handleor @c NULL, if none is
9825     * selected at the moment (and on errors)
9826     *
9827     * This returns the selected item in @p obj. If multi selection is
9828     * enabled on @p obj (@see elm_gengrid_multi_select_set()), only
9829     * the first item in the list is selected, which might not be very
9830     * useful. For that case, see elm_gengrid_selected_items_get().
9831     *
9832     * @ingroup Gengrid
9833     */
9834    EAPI Elm_Gengrid_Item  *elm_gengrid_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9835
9836    /**
9837     * Get <b>a list</b> of selected items in a given gengrid
9838     *
9839     * @param obj The gengrid object.
9840     * @return The list of selected items or @c NULL, if none is
9841     * selected at the moment (and on errors)
9842     *
9843     * This returns a list of the selected items, in the order that
9844     * they appear in the grid. This list is only valid as long as no
9845     * more items are selected or unselected (or unselected implictly
9846     * by deletion). The list contains #Elm_Gengrid_Item pointers as
9847     * data, naturally.
9848     *
9849     * @see elm_gengrid_selected_item_get()
9850     *
9851     * @ingroup Gengrid
9852     */
9853    EAPI const Eina_List   *elm_gengrid_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9854
9855    /**
9856     * @}
9857     */
9858
9859    /**
9860     * @defgroup Clock Clock
9861     *
9862     * @image html img/widget/clock/preview-00.png
9863     * @image latex img/widget/clock/preview-00.eps
9864     *
9865     * This is a @b digital clock widget. In its default theme, it has a
9866     * vintage "flipping numbers clock" appearance, which will animate
9867     * sheets of individual algarisms individually as time goes by.
9868     *
9869     * A newly created clock will fetch system's time (already
9870     * considering local time adjustments) to start with, and will tick
9871     * accondingly. It may or may not show seconds.
9872     *
9873     * Clocks have an @b edition mode. When in it, the sheets will
9874     * display extra arrow indications on the top and bottom and the
9875     * user may click on them to raise or lower the time values. After
9876     * it's told to exit edition mode, it will keep ticking with that
9877     * new time set (it keeps the difference from local time).
9878     *
9879     * Also, when under edition mode, user clicks on the cited arrows
9880     * which are @b held for some time will make the clock to flip the
9881     * sheet, thus editing the time, continuosly and automatically for
9882     * the user. The interval between sheet flips will keep growing in
9883     * time, so that it helps the user to reach a time which is distant
9884     * from the one set.
9885     *
9886     * The time display is, by default, in military mode (24h), but an
9887     * am/pm indicator may be optionally shown, too, when it will
9888     * switch to 12h.
9889     *
9890     * Smart callbacks one can register to:
9891     * - "changed" - the clock's user changed the time
9892     *
9893     * Here is an example on its usage:
9894     * @li @ref clock_example
9895     */
9896
9897    /**
9898     * @addtogroup Clock
9899     * @{
9900     */
9901
9902    /**
9903     * Identifiers for which clock digits should be editable, when a
9904     * clock widget is in edition mode. Values may be ORed together to
9905     * make a mask, naturally.
9906     *
9907     * @see elm_clock_edit_set()
9908     * @see elm_clock_digit_edit_set()
9909     */
9910    typedef enum _Elm_Clock_Digedit
9911      {
9912         ELM_CLOCK_NONE         = 0, /**< Default value. Means that all digits are editable, when in edition mode. */
9913         ELM_CLOCK_HOUR_DECIMAL = 1 << 0, /**< Decimal algarism of hours value should be editable */
9914         ELM_CLOCK_HOUR_UNIT    = 1 << 1, /**< Unit algarism of hours value should be editable */
9915         ELM_CLOCK_MIN_DECIMAL  = 1 << 2, /**< Decimal algarism of minutes value should be editable */
9916         ELM_CLOCK_MIN_UNIT     = 1 << 3, /**< Unit algarism of minutes value should be editable */
9917         ELM_CLOCK_SEC_DECIMAL  = 1 << 4, /**< Decimal algarism of seconds value should be editable */
9918         ELM_CLOCK_SEC_UNIT     = 1 << 5, /**< Unit algarism of seconds value should be editable */
9919         ELM_CLOCK_ALL          = (1 << 6) - 1 /**< All digits should be editable */
9920      } Elm_Clock_Digedit;
9921
9922    /**
9923     * Add a new clock widget to the given parent Elementary
9924     * (container) object
9925     *
9926     * @param parent The parent object
9927     * @return a new clock widget handle or @c NULL, on errors
9928     *
9929     * This function inserts a new clock widget on the canvas.
9930     *
9931     * @ingroup Clock
9932     */
9933    EAPI Evas_Object      *elm_clock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9934
9935    /**
9936     * Set a clock widget's time, programmatically
9937     *
9938     * @param obj The clock widget object
9939     * @param hrs The hours to set
9940     * @param min The minutes to set
9941     * @param sec The secondes to set
9942     *
9943     * This function updates the time that is showed by the clock
9944     * widget.
9945     *
9946     *  Values @b must be set within the following ranges:
9947     * - 0 - 23, for hours
9948     * - 0 - 59, for minutes
9949     * - 0 - 59, for seconds,
9950     *
9951     * even if the clock is not in "military" mode.
9952     *
9953     * @warning The behavior for values set out of those ranges is @b
9954     * undefined.
9955     *
9956     * @ingroup Clock
9957     */
9958    EAPI void              elm_clock_time_set(Evas_Object *obj, int hrs, int min, int sec) EINA_ARG_NONNULL(1);
9959
9960    /**
9961     * Get a clock widget's time values
9962     *
9963     * @param obj The clock object
9964     * @param[out] hrs Pointer to the variable to get the hours value
9965     * @param[out] min Pointer to the variable to get the minutes value
9966     * @param[out] sec Pointer to the variable to get the seconds value
9967     *
9968     * This function gets the time set for @p obj, returning
9969     * it on the variables passed as the arguments to function
9970     *
9971     * @note Use @c NULL pointers on the time values you're not
9972     * interested in: they'll be ignored by the function.
9973     *
9974     * @ingroup Clock
9975     */
9976    EAPI void              elm_clock_time_get(const Evas_Object *obj, int *hrs, int *min, int *sec) EINA_ARG_NONNULL(1);
9977
9978    /**
9979     * Set whether a given clock widget is under <b>edition mode</b> or
9980     * under (default) displaying-only mode.
9981     *
9982     * @param obj The clock object
9983     * @param edit @c EINA_TRUE to put it in edition, @c EINA_FALSE to
9984     * put it back to "displaying only" mode
9985     *
9986     * This function makes a clock's time to be editable or not <b>by
9987     * user interaction</b>. When in edition mode, clocks @b stop
9988     * ticking, until one brings them back to canonical mode. The
9989     * elm_clock_digit_edit_set() function will influence which digits
9990     * of the clock will be editable. By default, all of them will be
9991     * (#ELM_CLOCK_NONE).
9992     *
9993     * @note am/pm sheets, if being shown, will @b always be editable
9994     * under edition mode.
9995     *
9996     * @see elm_clock_edit_get()
9997     *
9998     * @ingroup Clock
9999     */
10000    EAPI void              elm_clock_edit_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
10001
10002    /**
10003     * Retrieve whether a given clock widget is under <b>edition
10004     * mode</b> or under (default) displaying-only mode.
10005     *
10006     * @param obj The clock object
10007     * @param edit @c EINA_TRUE, if it's in edition mode, @c EINA_FALSE
10008     * otherwise
10009     *
10010     * This function retrieves whether the clock's time can be edited
10011     * or not by user interaction.
10012     *
10013     * @see elm_clock_edit_set() for more details
10014     *
10015     * @ingroup Clock
10016     */
10017    EAPI Eina_Bool         elm_clock_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10018
10019    /**
10020     * Set what digits of the given clock widget should be editable
10021     * when in edition mode.
10022     *
10023     * @param obj The clock object
10024     * @param digedit Bit mask indicating the digits to be editable
10025     * (values in #Elm_Clock_Digedit).
10026     *
10027     * If the @p digedit param is #ELM_CLOCK_NONE, editing will be
10028     * disabled on @p obj (same effect as elm_clock_edit_set(), with @c
10029     * EINA_FALSE).
10030     *
10031     * @see elm_clock_digit_edit_get()
10032     *
10033     * @ingroup Clock
10034     */
10035    EAPI void              elm_clock_digit_edit_set(Evas_Object *obj, Elm_Clock_Digedit digedit) EINA_ARG_NONNULL(1);
10036
10037    /**
10038     * Retrieve what digits of the given clock widget should be
10039     * editable when in edition mode.
10040     *
10041     * @param obj The clock object
10042     * @return Bit mask indicating the digits to be editable
10043     * (values in #Elm_Clock_Digedit).
10044     *
10045     * @see elm_clock_digit_edit_set() for more details
10046     *
10047     * @ingroup Clock
10048     */
10049    EAPI Elm_Clock_Digedit elm_clock_digit_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10050
10051    /**
10052     * Set if the given clock widget must show hours in military or
10053     * am/pm mode
10054     *
10055     * @param obj The clock object
10056     * @param am_pm @c EINA_TRUE to put it in am/pm mode, @c EINA_FALSE
10057     * to military mode
10058     *
10059     * This function sets if the clock must show hours in military or
10060     * am/pm mode. In some countries like Brazil the military mode
10061     * (00-24h-format) is used, in opposition to the USA, where the
10062     * am/pm mode is more commonly used.
10063     *
10064     * @see elm_clock_show_am_pm_get()
10065     *
10066     * @ingroup Clock
10067     */
10068    EAPI void              elm_clock_show_am_pm_set(Evas_Object *obj, Eina_Bool am_pm) EINA_ARG_NONNULL(1);
10069
10070    /**
10071     * Get if the given clock widget shows hours in military or am/pm
10072     * mode
10073     *
10074     * @param obj The clock object
10075     * @return @c EINA_TRUE, if in am/pm mode, @c EINA_FALSE if in
10076     * military
10077     *
10078     * This function gets if the clock shows hours in military or am/pm
10079     * mode.
10080     *
10081     * @see elm_clock_show_am_pm_set() for more details
10082     *
10083     * @ingroup Clock
10084     */
10085    EAPI Eina_Bool         elm_clock_show_am_pm_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10086
10087    /**
10088     * Set if the given clock widget must show time with seconds or not
10089     *
10090     * @param obj The clock object
10091     * @param seconds @c EINA_TRUE to show seconds, @c EINA_FALSE otherwise
10092     *
10093     * This function sets if the given clock must show or not elapsed
10094     * seconds. By default, they are @b not shown.
10095     *
10096     * @see elm_clock_show_seconds_get()
10097     *
10098     * @ingroup Clock
10099     */
10100    EAPI void              elm_clock_show_seconds_set(Evas_Object *obj, Eina_Bool seconds) EINA_ARG_NONNULL(1);
10101
10102    /**
10103     * Get whether the given clock widget is showing time with seconds
10104     * or not
10105     *
10106     * @param obj The clock object
10107     * @return @c EINA_TRUE if it's showing seconds, @c EINA_FALSE otherwise
10108     *
10109     * This function gets whether @p obj is showing or not the elapsed
10110     * seconds.
10111     *
10112     * @see elm_clock_show_seconds_set()
10113     *
10114     * @ingroup Clock
10115     */
10116    EAPI Eina_Bool         elm_clock_show_seconds_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10117
10118    /**
10119     * Set the interval on time updates for an user mouse button hold
10120     * on clock widgets' time edition.
10121     *
10122     * @param obj The clock object
10123     * @param interval The (first) interval value in seconds
10124     *
10125     * This interval value is @b decreased while the user holds the
10126     * mouse pointer either incrementing or decrementing a given the
10127     * clock digit's value.
10128     *
10129     * This helps the user to get to a given time distant from the
10130     * current one easier/faster, as it will start to flip quicker and
10131     * quicker on mouse button holds.
10132     *
10133     * The calculation for the next flip interval value, starting from
10134     * the one set with this call, is the previous interval divided by
10135     * 1.05, so it decreases a little bit.
10136     *
10137     * The default starting interval value for automatic flips is
10138     * @b 0.85 seconds.
10139     *
10140     * @see elm_clock_interval_get()
10141     *
10142     * @ingroup Clock
10143     */
10144    EAPI void              elm_clock_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
10145
10146    /**
10147     * Get the interval on time updates for an user mouse button hold
10148     * on clock widgets' time edition.
10149     *
10150     * @param obj The clock object
10151     * @return The (first) interval value, in seconds, set on it
10152     *
10153     * @see elm_clock_interval_set() for more details
10154     *
10155     * @ingroup Clock
10156     */
10157    EAPI double            elm_clock_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10158
10159    /**
10160     * @}
10161     */
10162
10163    /**
10164     * @defgroup Layout Layout
10165     *
10166     * @image html img/widget/layout/preview-00.png
10167     * @image latex img/widget/layout/preview-00.eps width=\textwidth
10168     *
10169     * @image html img/layout-predefined.png
10170     * @image latex img/layout-predefined.eps width=\textwidth
10171     *
10172     * This is a container widget that takes a standard Edje design file and
10173     * wraps it very thinly in a widget.
10174     *
10175     * An Edje design (theme) file has a very wide range of possibilities to
10176     * describe the behavior of elements added to the Layout. Check out the Edje
10177     * documentation and the EDC reference to get more information about what can
10178     * be done with Edje.
10179     *
10180     * Just like @ref List, @ref Box, and other container widgets, any
10181     * object added to the Layout will become its child, meaning that it will be
10182     * deleted if the Layout is deleted, move if the Layout is moved, and so on.
10183     *
10184     * The Layout widget can contain as many Contents, Boxes or Tables as
10185     * described in its theme file. For instance, objects can be added to
10186     * different Tables by specifying the respective Table part names. The same
10187     * is valid for Content and Box.
10188     *
10189     * The objects added as child of the Layout will behave as described in the
10190     * part description where they were added. There are 3 possible types of
10191     * parts where a child can be added:
10192     *
10193     * @section secContent Content (SWALLOW part)
10194     *
10195     * Only one object can be added to the @c SWALLOW part (but you still can
10196     * have many @c SWALLOW parts and one object on each of them). Use the @c
10197     * elm_object_content_set/get/unset functions to set, retrieve and unset
10198     * objects as content of the @c SWALLOW. After being set to this part, the
10199     * object size, position, visibility, clipping and other description
10200     * properties will be totally controlled by the description of the given part
10201     * (inside the Edje theme file).
10202     *
10203     * One can use @c evas_object_size_hint_* functions on the child to have some
10204     * kind of control over its behavior, but the resulting behavior will still
10205     * depend heavily on the @c SWALLOW part description.
10206     *
10207     * The Edje theme also can change the part description, based on signals or
10208     * scripts running inside the theme. This change can also be animated. All of
10209     * this will affect the child object set as content accordingly. The object
10210     * size will be changed if the part size is changed, it will animate move if
10211     * the part is moving, and so on.
10212     *
10213     * The following picture demonstrates a Layout widget with a child object
10214     * added to its @c SWALLOW:
10215     *
10216     * @image html layout_swallow.png
10217     * @image latex layout_swallow.eps width=\textwidth
10218     *
10219     * @section secBox Box (BOX part)
10220     *
10221     * An Edje @c BOX part is very similar to the Elementary @ref Box widget. It
10222     * allows one to add objects to the box and have them distributed along its
10223     * area, accordingly to the specified @a layout property (now by @a layout we
10224     * mean the chosen layouting design of the Box, not the Layout widget
10225     * itself).
10226     *
10227     * A similar effect for having a box with its position, size and other things
10228     * controlled by the Layout theme would be to create an Elementary @ref Box
10229     * widget and add it as a Content in the @c SWALLOW part.
10230     *
10231     * The main difference of using the Layout Box is that its behavior, the box
10232     * properties like layouting format, padding, align, etc. will be all
10233     * controlled by the theme. This means, for example, that a signal could be
10234     * sent to the Layout theme (with elm_object_signal_emit()) and the theme
10235     * handled the signal by changing the box padding, or align, or both. Using
10236     * the Elementary @ref Box widget is not necessarily harder or easier, it
10237     * just depends on the circunstances and requirements.
10238     *
10239     * The Layout Box can be used through the @c elm_layout_box_* set of
10240     * functions.
10241     *
10242     * The following picture demonstrates a Layout widget with many child objects
10243     * added to its @c BOX part:
10244     *
10245     * @image html layout_box.png
10246     * @image latex layout_box.eps width=\textwidth
10247     *
10248     * @section secTable Table (TABLE part)
10249     *
10250     * Just like the @ref secBox, the Layout Table is very similar to the
10251     * Elementary @ref Table widget. It allows one to add objects to the Table
10252     * specifying the row and column where the object should be added, and any
10253     * column or row span if necessary.
10254     *
10255     * Again, we could have this design by adding a @ref Table widget to the @c
10256     * SWALLOW part using elm_object_part_content_set(). The same difference happens
10257     * here when choosing to use the Layout Table (a @c TABLE part) instead of
10258     * the @ref Table plus @c SWALLOW part. It's just a matter of convenience.
10259     *
10260     * The Layout Table can be used through the @c elm_layout_table_* set of
10261     * functions.
10262     *
10263     * The following picture demonstrates a Layout widget with many child objects
10264     * added to its @c TABLE part:
10265     *
10266     * @image html layout_table.png
10267     * @image latex layout_table.eps width=\textwidth
10268     *
10269     * @section secPredef Predefined Layouts
10270     *
10271     * Another interesting thing about the Layout widget is that it offers some
10272     * predefined themes that come with the default Elementary theme. These
10273     * themes can be set by the call elm_layout_theme_set(), and provide some
10274     * basic functionality depending on the theme used.
10275     *
10276     * Most of them already send some signals, some already provide a toolbar or
10277     * back and next buttons.
10278     *
10279     * These are available predefined theme layouts. All of them have class = @c
10280     * layout, group = @c application, and style = one of the following options:
10281     *
10282     * @li @c toolbar-content - application with toolbar and main content area
10283     * @li @c toolbar-content-back - application with toolbar and main content
10284     * area with a back button and title area
10285     * @li @c toolbar-content-back-next - application with toolbar and main
10286     * content area with a back and next buttons and title area
10287     * @li @c content-back - application with a main content area with a back
10288     * button and title area
10289     * @li @c content-back-next - application with a main content area with a
10290     * back and next buttons and title area
10291     * @li @c toolbar-vbox - application with toolbar and main content area as a
10292     * vertical box
10293     * @li @c toolbar-table - application with toolbar and main content area as a
10294     * table
10295     *
10296     * @section secExamples Examples
10297     *
10298     * Some examples of the Layout widget can be found here:
10299     * @li @ref layout_example_01
10300     * @li @ref layout_example_02
10301     * @li @ref layout_example_03
10302     * @li @ref layout_example_edc
10303     *
10304     */
10305
10306    /**
10307     * Add a new layout to the parent
10308     *
10309     * @param parent The parent object
10310     * @return The new object or NULL if it cannot be created
10311     *
10312     * @see elm_layout_file_set()
10313     * @see elm_layout_theme_set()
10314     *
10315     * @ingroup Layout
10316     */
10317    EAPI Evas_Object       *elm_layout_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10318    /**
10319     * Set the file that will be used as layout
10320     *
10321     * @param obj The layout object
10322     * @param file The path to file (edj) that will be used as layout
10323     * @param group The group that the layout belongs in edje file
10324     *
10325     * @return (1 = success, 0 = error)
10326     *
10327     * @ingroup Layout
10328     */
10329    EAPI Eina_Bool          elm_layout_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
10330    /**
10331     * Set the edje group from the elementary theme that will be used as layout
10332     *
10333     * @param obj The layout object
10334     * @param clas the clas of the group
10335     * @param group the group
10336     * @param style the style to used
10337     *
10338     * @return (1 = success, 0 = error)
10339     *
10340     * @ingroup Layout
10341     */
10342    EAPI Eina_Bool          elm_layout_theme_set(Evas_Object *obj, const char *clas, const char *group, const char *style) EINA_ARG_NONNULL(1);
10343    /**
10344     * Set the layout content.
10345     *
10346     * @param obj The layout object
10347     * @param swallow The swallow part name in the edje file
10348     * @param content The child that will be added in this layout object
10349     *
10350     * Once the content object is set, a previously set one will be deleted.
10351     * If you want to keep that old content object, use the
10352     * elm_object_part_content_unset() function.
10353     *
10354     * @note In an Edje theme, the part used as a content container is called @c
10355     * SWALLOW. This is why the parameter name is called @p swallow, but it is
10356     * expected to be a part name just like the second parameter of
10357     * elm_layout_box_append().
10358     *
10359     * @see elm_layout_box_append()
10360     * @see elm_object_part_content_get()
10361     * @see elm_object_part_content_unset()
10362     * @see @ref secBox
10363     * @deprecated use elm_object_part_content_set() instead
10364     *
10365     * @ingroup Layout
10366     */
10367    EINA_DEPRECATED EAPI void               elm_layout_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
10368    /**
10369     * Get the child object in the given content part.
10370     *
10371     * @param obj The layout object
10372     * @param swallow The SWALLOW part to get its content
10373     *
10374     * @return The swallowed object or NULL if none or an error occurred
10375     *
10376     * @deprecated use elm_object_part_content_get() instead
10377     *
10378     * @ingroup Layout
10379     */
10380    EINA_DEPRECATED EAPI Evas_Object       *elm_layout_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10381    /**
10382     * Unset the layout content.
10383     *
10384     * @param obj The layout object
10385     * @param swallow The swallow part name in the edje file
10386     * @return The content that was being used
10387     *
10388     * Unparent and return the content object which was set for this part.
10389     *
10390     * @deprecated use elm_object_part_content_unset() instead
10391     *
10392     * @ingroup Layout
10393     */
10394    EINA_DEPRECATED EAPI Evas_Object       *elm_layout_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10395    /**
10396     * Set the text of the given part
10397     *
10398     * @param obj The layout object
10399     * @param part The TEXT part where to set the text
10400     * @param text The text to set
10401     *
10402     * @ingroup Layout
10403     * @deprecated use elm_object_part_text_set() instead.
10404     */
10405    EINA_DEPRECATED EAPI void               elm_layout_text_set(Evas_Object *obj, const char *part, const char *text) EINA_ARG_NONNULL(1);
10406    /**
10407     * Get the text set in the given part
10408     *
10409     * @param obj The layout object
10410     * @param part The TEXT part to retrieve the text off
10411     *
10412     * @return The text set in @p part
10413     *
10414     * @ingroup Layout
10415     * @deprecated use elm_object_part_text_get() instead.
10416     */
10417    EINA_DEPRECATED EAPI const char        *elm_layout_text_get(const Evas_Object *obj, const char *part) EINA_ARG_NONNULL(1);
10418    /**
10419     * Append child to layout box part.
10420     *
10421     * @param obj the layout object
10422     * @param part the box part to which the object will be appended.
10423     * @param child the child object to append to box.
10424     *
10425     * Once the object is appended, it will become child of the layout. Its
10426     * lifetime will be bound to the layout, whenever the layout dies the child
10427     * will be deleted automatically. One should use elm_layout_box_remove() to
10428     * make this layout forget about the object.
10429     *
10430     * @see elm_layout_box_prepend()
10431     * @see elm_layout_box_insert_before()
10432     * @see elm_layout_box_insert_at()
10433     * @see elm_layout_box_remove()
10434     *
10435     * @ingroup Layout
10436     */
10437    EAPI void               elm_layout_box_append(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
10438    /**
10439     * Prepend child to layout box part.
10440     *
10441     * @param obj the layout object
10442     * @param part the box part to prepend.
10443     * @param child the child object to prepend to box.
10444     *
10445     * Once the object is prepended, it will become child of the layout. Its
10446     * lifetime will be bound to the layout, whenever the layout dies the child
10447     * will be deleted automatically. One should use elm_layout_box_remove() to
10448     * make this layout forget about the object.
10449     *
10450     * @see elm_layout_box_append()
10451     * @see elm_layout_box_insert_before()
10452     * @see elm_layout_box_insert_at()
10453     * @see elm_layout_box_remove()
10454     *
10455     * @ingroup Layout
10456     */
10457    EAPI void               elm_layout_box_prepend(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
10458    /**
10459     * Insert child to layout box part before a reference object.
10460     *
10461     * @param obj the layout object
10462     * @param part the box part to insert.
10463     * @param child the child object to insert into box.
10464     * @param reference another reference object to insert before in box.
10465     *
10466     * Once the object is inserted, it will become child of the layout. Its
10467     * lifetime will be bound to the layout, whenever the layout dies the child
10468     * will be deleted automatically. One should use elm_layout_box_remove() to
10469     * make this layout forget about the object.
10470     *
10471     * @see elm_layout_box_append()
10472     * @see elm_layout_box_prepend()
10473     * @see elm_layout_box_insert_before()
10474     * @see elm_layout_box_remove()
10475     *
10476     * @ingroup Layout
10477     */
10478    EAPI void               elm_layout_box_insert_before(Evas_Object *obj, const char *part, Evas_Object *child, const Evas_Object *reference) EINA_ARG_NONNULL(1);
10479    /**
10480     * Insert child to layout box part at a given position.
10481     *
10482     * @param obj the layout object
10483     * @param part the box part to insert.
10484     * @param child the child object to insert into box.
10485     * @param pos the numeric position >=0 to insert the child.
10486     *
10487     * Once the object is inserted, it will become child of the layout. Its
10488     * lifetime will be bound to the layout, whenever the layout dies the child
10489     * will be deleted automatically. One should use elm_layout_box_remove() to
10490     * make this layout forget about the object.
10491     *
10492     * @see elm_layout_box_append()
10493     * @see elm_layout_box_prepend()
10494     * @see elm_layout_box_insert_before()
10495     * @see elm_layout_box_remove()
10496     *
10497     * @ingroup Layout
10498     */
10499    EAPI void               elm_layout_box_insert_at(Evas_Object *obj, const char *part, Evas_Object *child, unsigned int pos) EINA_ARG_NONNULL(1);
10500    /**
10501     * Remove a child of the given part box.
10502     *
10503     * @param obj The layout object
10504     * @param part The box part name to remove child.
10505     * @param child The object to remove from box.
10506     * @return The object that was being used, or NULL if not found.
10507     *
10508     * The object will be removed from the box part and its lifetime will
10509     * not be handled by the layout anymore. This is equivalent to
10510     * elm_object_part_content_unset() for box.
10511     *
10512     * @see elm_layout_box_append()
10513     * @see elm_layout_box_remove_all()
10514     *
10515     * @ingroup Layout
10516     */
10517    EAPI Evas_Object       *elm_layout_box_remove(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1, 2, 3);
10518    /**
10519     * Remove all children of the given part box.
10520     *
10521     * @param obj The layout object
10522     * @param part The box part name to remove child.
10523     * @param clear If EINA_TRUE, then all objects will be deleted as
10524     *        well, otherwise they will just be removed and will be
10525     *        dangling on the canvas.
10526     *
10527     * The objects will be removed from the box part and their lifetime will
10528     * not be handled by the layout anymore. This is equivalent to
10529     * elm_layout_box_remove() for all box children.
10530     *
10531     * @see elm_layout_box_append()
10532     * @see elm_layout_box_remove()
10533     *
10534     * @ingroup Layout
10535     */
10536    EAPI void               elm_layout_box_remove_all(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
10537    /**
10538     * Insert child to layout table part.
10539     *
10540     * @param obj the layout object
10541     * @param part the box part to pack child.
10542     * @param child_obj the child object to pack into table.
10543     * @param col the column to which the child should be added. (>= 0)
10544     * @param row the row to which the child should be added. (>= 0)
10545     * @param colspan how many columns should be used to store this object. (>=
10546     *        1)
10547     * @param rowspan how many rows should be used to store this object. (>= 1)
10548     *
10549     * Once the object is inserted, it will become child of the table. Its
10550     * lifetime will be bound to the layout, and whenever the layout dies the
10551     * child will be deleted automatically. One should use
10552     * elm_layout_table_remove() to make this layout forget about the object.
10553     *
10554     * If @p colspan or @p rowspan are bigger than 1, that object will occupy
10555     * more space than a single cell. For instance, the following code:
10556     * @code
10557     * elm_layout_table_pack(layout, "table_part", child, 0, 1, 3, 1);
10558     * @endcode
10559     *
10560     * Would result in an object being added like the following picture:
10561     *
10562     * @image html layout_colspan.png
10563     * @image latex layout_colspan.eps width=\textwidth
10564     *
10565     * @see elm_layout_table_unpack()
10566     * @see elm_layout_table_clear()
10567     *
10568     * @ingroup Layout
10569     */
10570    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);
10571    /**
10572     * Unpack (remove) a child of the given part table.
10573     *
10574     * @param obj The layout object
10575     * @param part The table part name to remove child.
10576     * @param child_obj The object to remove from table.
10577     * @return The object that was being used, or NULL if not found.
10578     *
10579     * The object will be unpacked from the table part and its lifetime
10580     * will not be handled by the layout anymore. This is equivalent to
10581     * elm_object_part_content_unset() for table.
10582     *
10583     * @see elm_layout_table_pack()
10584     * @see elm_layout_table_clear()
10585     *
10586     * @ingroup Layout
10587     */
10588    EAPI Evas_Object       *elm_layout_table_unpack(Evas_Object *obj, const char *part, Evas_Object *child_obj) EINA_ARG_NONNULL(1, 2, 3);
10589    /**
10590     * Remove all the child objects of the given part table.
10591     *
10592     * @param obj The layout object
10593     * @param part The table part name to remove child.
10594     * @param clear If EINA_TRUE, then all objects will be deleted as
10595     *        well, otherwise they will just be removed and will be
10596     *        dangling on the canvas.
10597     *
10598     * The objects will be removed from the table part and their lifetime will
10599     * not be handled by the layout anymore. This is equivalent to
10600     * elm_layout_table_unpack() for all table children.
10601     *
10602     * @see elm_layout_table_pack()
10603     * @see elm_layout_table_unpack()
10604     *
10605     * @ingroup Layout
10606     */
10607    EAPI void               elm_layout_table_clear(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
10608    /**
10609     * Get the edje layout
10610     *
10611     * @param obj The layout object
10612     *
10613     * @return A Evas_Object with the edje layout settings loaded
10614     * with function elm_layout_file_set
10615     *
10616     * This returns the edje object. It is not expected to be used to then
10617     * swallow objects via edje_object_part_swallow() for example. Use
10618     * elm_object_part_content_set() instead so child object handling and sizing is
10619     * done properly.
10620     *
10621     * @note This function should only be used if you really need to call some
10622     * low level Edje function on this edje object. All the common stuff (setting
10623     * text, emitting signals, hooking callbacks to signals, etc.) can be done
10624     * with proper elementary functions.
10625     *
10626     * @see elm_object_signal_callback_add()
10627     * @see elm_object_signal_emit()
10628     * @see elm_object_part_text_set()
10629     * @see elm_object_part_content_set()
10630     * @see elm_layout_box_append()
10631     * @see elm_layout_table_pack()
10632     * @see elm_layout_data_get()
10633     *
10634     * @ingroup Layout
10635     */
10636    EAPI Evas_Object       *elm_layout_edje_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10637    /**
10638     * Get the edje data from the given layout
10639     *
10640     * @param obj The layout object
10641     * @param key The data key
10642     *
10643     * @return The edje data string
10644     *
10645     * This function fetches data specified inside the edje theme of this layout.
10646     * This function return NULL if data is not found.
10647     *
10648     * In EDC this comes from a data block within the group block that @p
10649     * obj was loaded from. E.g.
10650     *
10651     * @code
10652     * collections {
10653     *   group {
10654     *     name: "a_group";
10655     *     data {
10656     *       item: "key1" "value1";
10657     *       item: "key2" "value2";
10658     *     }
10659     *   }
10660     * }
10661     * @endcode
10662     *
10663     * @ingroup Layout
10664     */
10665    EAPI const char        *elm_layout_data_get(const Evas_Object *obj, const char *key) EINA_ARG_NONNULL(1, 2);
10666    /**
10667     * Eval sizing
10668     *
10669     * @param obj The layout object
10670     *
10671     * Manually forces a sizing re-evaluation. This is useful when the minimum
10672     * size required by the edje theme of this layout has changed. The change on
10673     * the minimum size required by the edje theme is not immediately reported to
10674     * the elementary layout, so one needs to call this function in order to tell
10675     * the widget (layout) that it needs to reevaluate its own size.
10676     *
10677     * The minimum size of the theme is calculated based on minimum size of
10678     * parts, the size of elements inside containers like box and table, etc. All
10679     * of this can change due to state changes, and that's when this function
10680     * should be called.
10681     *
10682     * Also note that a standard signal of "size,eval" "elm" emitted from the
10683     * edje object will cause this to happen too.
10684     *
10685     * @ingroup Layout
10686     */
10687    EAPI void               elm_layout_sizing_eval(Evas_Object *obj) EINA_ARG_NONNULL(1);
10688
10689    /**
10690     * Sets a specific cursor for an edje part.
10691     *
10692     * @param obj The layout object.
10693     * @param part_name a part from loaded edje group.
10694     * @param cursor cursor name to use, see Elementary_Cursor.h
10695     *
10696     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
10697     *         part not exists or it has "mouse_events: 0".
10698     *
10699     * @ingroup Layout
10700     */
10701    EAPI Eina_Bool          elm_layout_part_cursor_set(Evas_Object *obj, const char *part_name, const char *cursor) EINA_ARG_NONNULL(1, 2);
10702
10703    /**
10704     * Get the cursor to be shown when mouse is over an edje part
10705     *
10706     * @param obj The layout object.
10707     * @param part_name a part from loaded edje group.
10708     * @return the cursor name.
10709     *
10710     * @ingroup Layout
10711     */
10712    EAPI const char        *elm_layout_part_cursor_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10713
10714    /**
10715     * Unsets a cursor previously set with elm_layout_part_cursor_set().
10716     *
10717     * @param obj The layout object.
10718     * @param part_name a part from loaded edje group, that had a cursor set
10719     *        with elm_layout_part_cursor_set().
10720     *
10721     * @ingroup Layout
10722     */
10723    EAPI void               elm_layout_part_cursor_unset(Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10724
10725    /**
10726     * Sets a specific cursor style for an edje part.
10727     *
10728     * @param obj The layout object.
10729     * @param part_name a part from loaded edje group.
10730     * @param style the theme style to use (default, transparent, ...)
10731     *
10732     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
10733     *         part not exists or it did not had a cursor set.
10734     *
10735     * @ingroup Layout
10736     */
10737    EAPI Eina_Bool          elm_layout_part_cursor_style_set(Evas_Object *obj, const char *part_name, const char *style) EINA_ARG_NONNULL(1, 2);
10738
10739    /**
10740     * Gets a specific cursor style for an edje part.
10741     *
10742     * @param obj The layout object.
10743     * @param part_name a part from loaded edje group.
10744     *
10745     * @return the theme style in use, defaults to "default". If the
10746     *         object does not have a cursor set, then NULL is returned.
10747     *
10748     * @ingroup Layout
10749     */
10750    EAPI const char        *elm_layout_part_cursor_style_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10751
10752    /**
10753     * Sets if the cursor set should be searched on the theme or should use
10754     * the provided by the engine, only.
10755     *
10756     * @note before you set if should look on theme you should define a
10757     * cursor with elm_layout_part_cursor_set(). By default it will only
10758     * look for cursors provided by the engine.
10759     *
10760     * @param obj The layout object.
10761     * @param part_name a part from loaded edje group.
10762     * @param engine_only if cursors should be just provided by the engine (EINA_TRUE)
10763     *        or should also search on widget's theme as well (EINA_FALSE)
10764     *
10765     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
10766     *         part not exists or it did not had a cursor set.
10767     *
10768     * @ingroup Layout
10769     */
10770    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);
10771
10772    /**
10773     * Gets a specific cursor engine_only for an edje part.
10774     *
10775     * @param obj The layout object.
10776     * @param part_name a part from loaded edje group.
10777     *
10778     * @return whenever the cursor is just provided by engine or also from theme.
10779     *
10780     * @ingroup Layout
10781     */
10782    EAPI Eina_Bool          elm_layout_part_cursor_engine_only_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10783
10784 /**
10785  * @def elm_layout_icon_set
10786  * Convenience macro to set the icon object in a layout that follows the
10787  * Elementary naming convention for its parts.
10788  *
10789  * @ingroup Layout
10790  */
10791 #define elm_layout_icon_set(_ly, _obj) \
10792   do { \
10793     const char *sig; \
10794     elm_object_part_content_set((_ly), "elm.swallow.icon", (_obj)); \
10795     if ((_obj)) sig = "elm,state,icon,visible"; \
10796     else sig = "elm,state,icon,hidden"; \
10797     elm_object_signal_emit((_ly), sig, "elm"); \
10798   } while (0)
10799
10800 /**
10801  * @def elm_layout_icon_get
10802  * Convienience macro to get the icon object from a layout that follows the
10803  * Elementary naming convention for its parts.
10804  *
10805  * @ingroup Layout
10806  */
10807 #define elm_layout_icon_get(_ly) \
10808   elm_object_part_content_get((_ly), "elm.swallow.icon")
10809
10810 /**
10811  * @def elm_layout_end_set
10812  * Convienience macro to set the end object in a layout that follows the
10813  * Elementary naming convention for its parts.
10814  *
10815  * @ingroup Layout
10816  */
10817 #define elm_layout_end_set(_ly, _obj) \
10818   do { \
10819     const char *sig; \
10820     elm_object_part_content_set((_ly), "elm.swallow.end", (_obj)); \
10821     if ((_obj)) sig = "elm,state,end,visible"; \
10822     else sig = "elm,state,end,hidden"; \
10823     elm_object_signal_emit((_ly), sig, "elm"); \
10824   } while (0)
10825
10826 /**
10827  * @def elm_layout_end_get
10828  * Convienience macro to get the end object in a layout that follows the
10829  * Elementary naming convention for its parts.
10830  *
10831  * @ingroup Layout
10832  */
10833 #define elm_layout_end_get(_ly) \
10834   elm_object_part_content_get((_ly), "elm.swallow.end")
10835
10836 /**
10837  * @def elm_layout_label_set
10838  * Convienience macro to set the label in a layout that follows the
10839  * Elementary naming convention for its parts.
10840  *
10841  * @ingroup Layout
10842  * @deprecated use elm_object_text_set() instead.
10843  */
10844 #define elm_layout_label_set(_ly, _txt) \
10845   elm_layout_text_set((_ly), "elm.text", (_txt))
10846
10847 /**
10848  * @def elm_layout_label_get
10849  * Convenience macro to get the label in a layout that follows the
10850  * Elementary naming convention for its parts.
10851  *
10852  * @ingroup Layout
10853  * @deprecated use elm_object_text_set() instead.
10854  */
10855 #define elm_layout_label_get(_ly) \
10856   elm_layout_text_get((_ly), "elm.text")
10857
10858    /* smart callbacks called:
10859     * "theme,changed" - when elm theme is changed.
10860     */
10861
10862    /**
10863     * @defgroup Notify Notify
10864     *
10865     * @image html img/widget/notify/preview-00.png
10866     * @image latex img/widget/notify/preview-00.eps
10867     *
10868     * Display a container in a particular region of the parent(top, bottom,
10869     * etc).  A timeout can be set to automatically hide the notify. This is so
10870     * that, after an evas_object_show() on a notify object, if a timeout was set
10871     * on it, it will @b automatically get hidden after that time.
10872     *
10873     * Signals that you can add callbacks for are:
10874     * @li "timeout" - when timeout happens on notify and it's hidden
10875     * @li "block,clicked" - when a click outside of the notify happens
10876     *
10877     * Default contents parts of the notify widget that you can use for are:
10878     * @li "default" - A content of the notify
10879     *
10880     * @ref tutorial_notify show usage of the API.
10881     *
10882     * @{
10883     */
10884    /**
10885     * @brief Possible orient values for notify.
10886     *
10887     * This values should be used in conjunction to elm_notify_orient_set() to
10888     * set the position in which the notify should appear(relative to its parent)
10889     * and in conjunction with elm_notify_orient_get() to know where the notify
10890     * is appearing.
10891     */
10892    typedef enum _Elm_Notify_Orient
10893      {
10894         ELM_NOTIFY_ORIENT_TOP, /**< Notify should appear in the top of parent, default */
10895         ELM_NOTIFY_ORIENT_CENTER, /**< Notify should appear in the center of parent */
10896         ELM_NOTIFY_ORIENT_BOTTOM, /**< Notify should appear in the bottom of parent */
10897         ELM_NOTIFY_ORIENT_LEFT, /**< Notify should appear in the left of parent */
10898         ELM_NOTIFY_ORIENT_RIGHT, /**< Notify should appear in the right of parent */
10899         ELM_NOTIFY_ORIENT_TOP_LEFT, /**< Notify should appear in the top left of parent */
10900         ELM_NOTIFY_ORIENT_TOP_RIGHT, /**< Notify should appear in the top right of parent */
10901         ELM_NOTIFY_ORIENT_BOTTOM_LEFT, /**< Notify should appear in the bottom left of parent */
10902         ELM_NOTIFY_ORIENT_BOTTOM_RIGHT, /**< Notify should appear in the bottom right of parent */
10903         ELM_NOTIFY_ORIENT_LAST /**< Sentinel value, @b don't use */
10904      } Elm_Notify_Orient;
10905    /**
10906     * @brief Add a new notify to the parent
10907     *
10908     * @param parent The parent object
10909     * @return The new object or NULL if it cannot be created
10910     */
10911    EAPI Evas_Object      *elm_notify_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10912    /**
10913     * @brief Set the content of the notify widget
10914     *
10915     * @param obj The notify object
10916     * @param content The content will be filled in this notify object
10917     *
10918     * Once the content object is set, a previously set one will be deleted. If
10919     * you want to keep that old content object, use the
10920     * elm_notify_content_unset() function.
10921     *
10922     * @deprecated use elm_object_content_set() instead
10923     *
10924     */
10925    EINA_DEPRECATED EAPI void              elm_notify_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
10926    /**
10927     * @brief Unset the content of the notify widget
10928     *
10929     * @param obj The notify object
10930     * @return The content that was being used
10931     *
10932     * Unparent and return the content object which was set for this widget
10933     *
10934     * @see elm_notify_content_set()
10935     * @deprecated use elm_object_content_unset() instead
10936     *
10937     */
10938    EINA_DEPRECATED EAPI Evas_Object      *elm_notify_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
10939    /**
10940     * @brief Return the content of the notify widget
10941     *
10942     * @param obj The notify object
10943     * @return The content that is being used
10944     *
10945     * @see elm_notify_content_set()
10946     * @deprecated use elm_object_content_get() instead
10947     *
10948     */
10949    EINA_DEPRECATED EAPI Evas_Object      *elm_notify_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10950    /**
10951     * @brief Set the notify parent
10952     *
10953     * @param obj The notify object
10954     * @param content The new parent
10955     *
10956     * Once the parent object is set, a previously set one will be disconnected
10957     * and replaced.
10958     */
10959    EAPI void              elm_notify_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
10960    /**
10961     * @brief Get the notify parent
10962     *
10963     * @param obj The notify object
10964     * @return The parent
10965     *
10966     * @see elm_notify_parent_set()
10967     */
10968    EAPI Evas_Object      *elm_notify_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10969    /**
10970     * @brief Set the orientation
10971     *
10972     * @param obj The notify object
10973     * @param orient The new orientation
10974     *
10975     * Sets the position in which the notify will appear in its parent.
10976     *
10977     * @see @ref Elm_Notify_Orient for possible values.
10978     */
10979    EAPI void              elm_notify_orient_set(Evas_Object *obj, Elm_Notify_Orient orient) EINA_ARG_NONNULL(1);
10980    /**
10981     * @brief Return the orientation
10982     * @param obj The notify object
10983     * @return The orientation of the notification
10984     *
10985     * @see elm_notify_orient_set()
10986     * @see Elm_Notify_Orient
10987     */
10988    EAPI Elm_Notify_Orient elm_notify_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10989    /**
10990     * @brief Set the time interval after which the notify window is going to be
10991     * hidden.
10992     *
10993     * @param obj The notify object
10994     * @param time The timeout in seconds
10995     *
10996     * This function sets a timeout and starts the timer controlling when the
10997     * notify is hidden. Since calling evas_object_show() on a notify restarts
10998     * the timer controlling when the notify is hidden, setting this before the
10999     * notify is shown will in effect mean starting the timer when the notify is
11000     * shown.
11001     *
11002     * @note Set a value <= 0.0 to disable a running timer.
11003     *
11004     * @note If the value > 0.0 and the notify is previously visible, the
11005     * timer will be started with this value, canceling any running timer.
11006     */
11007    EAPI void              elm_notify_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
11008    /**
11009     * @brief Return the timeout value (in seconds)
11010     * @param obj the notify object
11011     *
11012     * @see elm_notify_timeout_set()
11013     */
11014    EAPI double            elm_notify_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11015    /**
11016     * @brief Sets whether events should be passed to by a click outside
11017     * its area.
11018     *
11019     * @param obj The notify object
11020     * @param repeats EINA_TRUE Events are repeats, else no
11021     *
11022     * When true if the user clicks outside the window the events will be caught
11023     * by the others widgets, else the events are blocked.
11024     *
11025     * @note The default value is EINA_TRUE.
11026     */
11027    EAPI void              elm_notify_repeat_events_set(Evas_Object *obj, Eina_Bool repeat) EINA_ARG_NONNULL(1);
11028    /**
11029     * @brief Return true if events are repeat below the notify object
11030     * @param obj the notify object
11031     *
11032     * @see elm_notify_repeat_events_set()
11033     */
11034    EAPI Eina_Bool         elm_notify_repeat_events_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11035    /**
11036     * @}
11037     */
11038
11039    /**
11040     * @defgroup Hover Hover
11041     *
11042     * @image html img/widget/hover/preview-00.png
11043     * @image latex img/widget/hover/preview-00.eps
11044     *
11045     * A Hover object will hover over its @p parent object at the @p target
11046     * location. Anything in the background will be given a darker coloring to
11047     * indicate that the hover object is on top (at the default theme). When the
11048     * hover is clicked it is dismissed(hidden), if the contents of the hover are
11049     * clicked that @b doesn't cause the hover to be dismissed.
11050     *
11051     * A Hover object has two parents. One parent that owns it during creation
11052     * and the other parent being the one over which the hover object spans.
11053     *
11054     *
11055     * @note The hover object will take up the entire space of @p target
11056     * object.
11057     *
11058     * Elementary has the following styles for the hover widget:
11059     * @li default
11060     * @li popout
11061     * @li menu
11062     * @li hoversel_vertical
11063     *
11064     * The following are the available position for content:
11065     * @li left
11066     * @li top-left
11067     * @li top
11068     * @li top-right
11069     * @li right
11070     * @li bottom-right
11071     * @li bottom
11072     * @li bottom-left
11073     * @li middle
11074     * @li smart
11075     *
11076     * Signals that you can add callbacks for are:
11077     * @li "clicked" - the user clicked the empty space in the hover to dismiss
11078     * @li "smart,changed" - a content object placed under the "smart"
11079     *                   policy was replaced to a new slot direction.
11080     *
11081     * See @ref tutorial_hover for more information.
11082     *
11083     * @{
11084     */
11085    typedef enum _Elm_Hover_Axis
11086      {
11087         ELM_HOVER_AXIS_NONE, /**< ELM_HOVER_AXIS_NONE -- no prefered orientation */
11088         ELM_HOVER_AXIS_HORIZONTAL, /**< ELM_HOVER_AXIS_HORIZONTAL -- horizontal */
11089         ELM_HOVER_AXIS_VERTICAL, /**< ELM_HOVER_AXIS_VERTICAL -- vertical */
11090         ELM_HOVER_AXIS_BOTH /**< ELM_HOVER_AXIS_BOTH -- both */
11091      } Elm_Hover_Axis;
11092    /**
11093     * @brief Adds a hover object to @p parent
11094     *
11095     * @param parent The parent object
11096     * @return The hover object or NULL if one could not be created
11097     */
11098    EAPI Evas_Object *elm_hover_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11099    /**
11100     * @brief Sets the target object for the hover.
11101     *
11102     * @param obj The hover object
11103     * @param target The object to center the hover onto.
11104     *
11105     * This function will cause the hover to be centered on the target object.
11106     */
11107    EAPI void         elm_hover_target_set(Evas_Object *obj, Evas_Object *target) EINA_ARG_NONNULL(1);
11108    /**
11109     * @brief Gets the target object for the hover.
11110     *
11111     * @param obj The hover object
11112     * @return The target object for the hover.
11113     *
11114     * @see elm_hover_target_set()
11115     */
11116    EAPI Evas_Object *elm_hover_target_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11117    /**
11118     * @brief Sets the parent object for the hover.
11119     *
11120     * @param obj The hover object
11121     * @param parent The object to locate the hover over.
11122     *
11123     * This function will cause the hover to take up the entire space that the
11124     * parent object fills.
11125     */
11126    EAPI void         elm_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
11127    /**
11128     * @brief Gets the parent object for the hover.
11129     *
11130     * @param obj The hover object
11131     * @return The parent object to locate the hover over.
11132     *
11133     * @see elm_hover_parent_set()
11134     */
11135    EAPI Evas_Object *elm_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11136    /**
11137     * @brief Sets the content of the hover object and the direction in which it
11138     * will pop out.
11139     *
11140     * @param obj The hover object
11141     * @param swallow The direction that the object will be displayed
11142     * at. Accepted values are "left", "top-left", "top", "top-right",
11143     * "right", "bottom-right", "bottom", "bottom-left", "middle" and
11144     * "smart".
11145     * @param content The content to place at @p swallow
11146     *
11147     * Once the content object is set for a given direction, a previously
11148     * set one (on the same direction) will be deleted. If you want to
11149     * keep that old content object, use the elm_hover_content_unset()
11150     * function.
11151     *
11152     * All directions may have contents at the same time, except for
11153     * "smart". This is a special placement hint and its use case
11154     * independs of the calculations coming from
11155     * elm_hover_best_content_location_get(). Its use is for cases when
11156     * one desires only one hover content, but with a dynamic special
11157     * placement within the hover area. The content's geometry, whenever
11158     * it changes, will be used to decide on a best location, not
11159     * extrapolating the hover's parent object view to show it in (still
11160     * being the hover's target determinant of its medium part -- move and
11161     * resize it to simulate finger sizes, for example). If one of the
11162     * directions other than "smart" are used, a previously content set
11163     * using it will be deleted, and vice-versa.
11164     */
11165    EAPI void         elm_hover_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
11166    /**
11167     * @brief Get the content of the hover object, in a given direction.
11168     *
11169     * Return the content object which was set for this widget in the
11170     * @p swallow direction.
11171     *
11172     * @param obj The hover object
11173     * @param swallow The direction that the object was display at.
11174     * @return The content that was being used
11175     *
11176     * @see elm_hover_content_set()
11177     */
11178    EAPI Evas_Object *elm_hover_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
11179    /**
11180     * @brief Unset the content of the hover object, in a given direction.
11181     *
11182     * Unparent and return the content object set at @p swallow direction.
11183     *
11184     * @param obj The hover object
11185     * @param swallow The direction that the object was display at.
11186     * @return The content that was being used.
11187     *
11188     * @see elm_hover_content_set()
11189     */
11190    EAPI Evas_Object *elm_hover_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
11191    /**
11192     * @brief Returns the best swallow location for content in the hover.
11193     *
11194     * @param obj The hover object
11195     * @param pref_axis The preferred orientation axis for the hover object to use
11196     * @return The edje location to place content into the hover or @c
11197     *         NULL, on errors.
11198     *
11199     * Best is defined here as the location at which there is the most available
11200     * space.
11201     *
11202     * @p pref_axis may be one of
11203     * - @c ELM_HOVER_AXIS_NONE -- no prefered orientation
11204     * - @c ELM_HOVER_AXIS_HORIZONTAL -- horizontal
11205     * - @c ELM_HOVER_AXIS_VERTICAL -- vertical
11206     * - @c ELM_HOVER_AXIS_BOTH -- both
11207     *
11208     * If ELM_HOVER_AXIS_HORIZONTAL is choosen the returned position will
11209     * nescessarily be along the horizontal axis("left" or "right"). If
11210     * ELM_HOVER_AXIS_VERTICAL is choosen the returned position will nescessarily
11211     * be along the vertical axis("top" or "bottom"). Chossing
11212     * ELM_HOVER_AXIS_BOTH or ELM_HOVER_AXIS_NONE has the same effect and the
11213     * returned position may be in either axis.
11214     *
11215     * @see elm_hover_content_set()
11216     */
11217    EAPI const char  *elm_hover_best_content_location_get(const Evas_Object *obj, Elm_Hover_Axis pref_axis) EINA_ARG_NONNULL(1);
11218    /**
11219     * @}
11220     */
11221
11222    /* entry */
11223    /**
11224     * @defgroup Entry Entry
11225     *
11226     * @image html img/widget/entry/preview-00.png
11227     * @image latex img/widget/entry/preview-00.eps width=\textwidth
11228     * @image html img/widget/entry/preview-01.png
11229     * @image latex img/widget/entry/preview-01.eps width=\textwidth
11230     * @image html img/widget/entry/preview-02.png
11231     * @image latex img/widget/entry/preview-02.eps width=\textwidth
11232     * @image html img/widget/entry/preview-03.png
11233     * @image latex img/widget/entry/preview-03.eps width=\textwidth
11234     *
11235     * An entry is a convenience widget which shows a box that the user can
11236     * enter text into. Entries by default don't scroll, so they grow to
11237     * accomodate the entire text, resizing the parent window as needed. This
11238     * can be changed with the elm_entry_scrollable_set() function.
11239     *
11240     * They can also be single line or multi line (the default) and when set
11241     * to multi line mode they support text wrapping in any of the modes
11242     * indicated by #Elm_Wrap_Type.
11243     *
11244     * Other features include password mode, filtering of inserted text with
11245     * elm_entry_text_filter_append() and related functions, inline "items" and
11246     * formatted markup text.
11247     *
11248     * @section entry-markup Formatted text
11249     *
11250     * The markup tags supported by the Entry are defined by the theme, but
11251     * even when writing new themes or extensions it's a good idea to stick to
11252     * a sane default, to maintain coherency and avoid application breakages.
11253     * Currently defined by the default theme are the following tags:
11254     * @li \<br\>: Inserts a line break.
11255     * @li \<ps\>: Inserts a paragraph separator. This is preferred over line
11256     * breaks.
11257     * @li \<tab\>: Inserts a tab.
11258     * @li \<em\>...\</em\>: Emphasis. Sets the @em oblique style for the
11259     * enclosed text.
11260     * @li \<b\>...\</b\>: Sets the @b bold style for the enclosed text.
11261     * @li \<link\>...\</link\>: Underlines the enclosed text.
11262     * @li \<hilight\>...\</hilight\>: Hilights the enclosed text.
11263     *
11264     * @section entry-special Special markups
11265     *
11266     * Besides those used to format text, entries support two special markup
11267     * tags used to insert clickable portions of text or items inlined within
11268     * the text.
11269     *
11270     * @subsection entry-anchors Anchors
11271     *
11272     * Anchors are similar to HTML anchors. Text can be surrounded by \<a\> and
11273     * \</a\> tags and an event will be generated when this text is clicked,
11274     * like this:
11275     *
11276     * @code
11277     * This text is outside <a href=anc-01>but this one is an anchor</a>
11278     * @endcode
11279     *
11280     * The @c href attribute in the opening tag gives the name that will be
11281     * used to identify the anchor and it can be any valid utf8 string.
11282     *
11283     * When an anchor is clicked, an @c "anchor,clicked" signal is emitted with
11284     * an #Elm_Entry_Anchor_Info in the @c event_info parameter for the
11285     * callback function. The same applies for "anchor,in" (mouse in), "anchor,out"
11286     * (mouse out), "anchor,down" (mouse down), and "anchor,up" (mouse up) events on
11287     * an anchor.
11288     *
11289     * @subsection entry-items Items
11290     *
11291     * Inlined in the text, any other @c Evas_Object can be inserted by using
11292     * \<item\> tags this way:
11293     *
11294     * @code
11295     * <item size=16x16 vsize=full href=emoticon/haha></item>
11296     * @endcode
11297     *
11298     * Just like with anchors, the @c href identifies each item, but these need,
11299     * in addition, to indicate their size, which is done using any one of
11300     * @c size, @c absize or @c relsize attributes. These attributes take their
11301     * value in the WxH format, where W is the width and H the height of the
11302     * item.
11303     *
11304     * @li absize: Absolute pixel size for the item. Whatever value is set will
11305     * be the item's size regardless of any scale value the object may have
11306     * been set to. The final line height will be adjusted to fit larger items.
11307     * @li size: Similar to @c absize, but it's adjusted to the scale value set
11308     * for the object.
11309     * @li relsize: Size is adjusted for the item to fit within the current
11310     * line height.
11311     *
11312     * Besides their size, items are specificed a @c vsize value that affects
11313     * how their final size and position are calculated. The possible values
11314     * are:
11315     * @li ascent: Item will be placed within the line's baseline and its
11316     * ascent. That is, the height between the line where all characters are
11317     * positioned and the highest point in the line. For @c size and @c absize
11318     * items, the descent value will be added to the total line height to make
11319     * them fit. @c relsize items will be adjusted to fit within this space.
11320     * @li full: Items will be placed between the descent and ascent, or the
11321     * lowest point in the line and its highest.
11322     *
11323     * The next image shows different configurations of items and how
11324     * the previously mentioned options affect their sizes. In all cases,
11325     * the green line indicates the ascent, blue for the baseline and red for
11326     * the descent.
11327     *
11328     * @image html entry_item.png
11329     * @image latex entry_item.eps width=\textwidth
11330     *
11331     * And another one to show how size differs from absize. In the first one,
11332     * the scale value is set to 1.0, while the second one is using one of 2.0.
11333     *
11334     * @image html entry_item_scale.png
11335     * @image latex entry_item_scale.eps width=\textwidth
11336     *
11337     * After the size for an item is calculated, the entry will request an
11338     * object to place in its space. For this, the functions set with
11339     * elm_entry_item_provider_append() and related functions will be called
11340     * in order until one of them returns a @c non-NULL value. If no providers
11341     * are available, or all of them return @c NULL, then the entry falls back
11342     * to one of the internal defaults, provided the name matches with one of
11343     * them.
11344     *
11345     * All of the following are currently supported:
11346     *
11347     * - emoticon/angry
11348     * - emoticon/angry-shout
11349     * - emoticon/crazy-laugh
11350     * - emoticon/evil-laugh
11351     * - emoticon/evil
11352     * - emoticon/goggle-smile
11353     * - emoticon/grumpy
11354     * - emoticon/grumpy-smile
11355     * - emoticon/guilty
11356     * - emoticon/guilty-smile
11357     * - emoticon/haha
11358     * - emoticon/half-smile
11359     * - emoticon/happy-panting
11360     * - emoticon/happy
11361     * - emoticon/indifferent
11362     * - emoticon/kiss
11363     * - emoticon/knowing-grin
11364     * - emoticon/laugh
11365     * - emoticon/little-bit-sorry
11366     * - emoticon/love-lots
11367     * - emoticon/love
11368     * - emoticon/minimal-smile
11369     * - emoticon/not-happy
11370     * - emoticon/not-impressed
11371     * - emoticon/omg
11372     * - emoticon/opensmile
11373     * - emoticon/smile
11374     * - emoticon/sorry
11375     * - emoticon/squint-laugh
11376     * - emoticon/surprised
11377     * - emoticon/suspicious
11378     * - emoticon/tongue-dangling
11379     * - emoticon/tongue-poke
11380     * - emoticon/uh
11381     * - emoticon/unhappy
11382     * - emoticon/very-sorry
11383     * - emoticon/what
11384     * - emoticon/wink
11385     * - emoticon/worried
11386     * - emoticon/wtf
11387     *
11388     * Alternatively, an item may reference an image by its path, using
11389     * the URI form @c file:///path/to/an/image.png and the entry will then
11390     * use that image for the item.
11391     *
11392     * @section entry-files Loading and saving files
11393     *
11394     * Entries have convinience functions to load text from a file and save
11395     * changes back to it after a short delay. The automatic saving is enabled
11396     * by default, but can be disabled with elm_entry_autosave_set() and files
11397     * can be loaded directly as plain text or have any markup in them
11398     * recognized. See elm_entry_file_set() for more details.
11399     *
11400     * @section entry-signals Emitted signals
11401     *
11402     * This widget emits the following signals:
11403     *
11404     * @li "changed": The text within the entry was changed.
11405     * @li "changed,user": The text within the entry was changed because of user interaction.
11406     * @li "activated": The enter key was pressed on a single line entry.
11407     * @li "press": A mouse button has been pressed on the entry.
11408     * @li "longpressed": A mouse button has been pressed and held for a couple
11409     * seconds.
11410     * @li "clicked": The entry has been clicked (mouse press and release).
11411     * @li "clicked,double": The entry has been double clicked.
11412     * @li "clicked,triple": The entry has been triple clicked.
11413     * @li "focused": The entry has received focus.
11414     * @li "unfocused": The entry has lost focus.
11415     * @li "selection,paste": A paste of the clipboard contents was requested.
11416     * @li "selection,copy": A copy of the selected text into the clipboard was
11417     * requested.
11418     * @li "selection,cut": A cut of the selected text into the clipboard was
11419     * requested.
11420     * @li "selection,start": A selection has begun and no previous selection
11421     * existed.
11422     * @li "selection,changed": The current selection has changed.
11423     * @li "selection,cleared": The current selection has been cleared.
11424     * @li "cursor,changed": The cursor has changed position.
11425     * @li "anchor,clicked": An anchor has been clicked. The event_info
11426     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11427     * @li "anchor,in": Mouse cursor has moved into an anchor. The event_info
11428     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11429     * @li "anchor,out": Mouse cursor has moved out of an anchor. The event_info
11430     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11431     * @li "anchor,up": Mouse button has been unpressed on an anchor. The event_info
11432     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11433     * @li "anchor,down": Mouse button has been pressed on an anchor. The event_info
11434     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11435     * @li "preedit,changed": The preedit string has changed.
11436     * @li "language,changed": Program language changed.
11437     *
11438     * @section entry-examples
11439     *
11440     * An overview of the Entry API can be seen in @ref entry_example_01
11441     *
11442     * @{
11443     */
11444    /**
11445     * @typedef Elm_Entry_Anchor_Info
11446     *
11447     * The info sent in the callback for the "anchor,clicked" signals emitted
11448     * by entries.
11449     */
11450    typedef struct _Elm_Entry_Anchor_Info Elm_Entry_Anchor_Info;
11451    /**
11452     * @struct _Elm_Entry_Anchor_Info
11453     *
11454     * The info sent in the callback for the "anchor,clicked" signals emitted
11455     * by entries.
11456     */
11457    struct _Elm_Entry_Anchor_Info
11458      {
11459         const char *name; /**< The name of the anchor, as stated in its href */
11460         int         button; /**< The mouse button used to click on it */
11461         Evas_Coord  x, /**< Anchor geometry, relative to canvas */
11462                     y, /**< Anchor geometry, relative to canvas */
11463                     w, /**< Anchor geometry, relative to canvas */
11464                     h; /**< Anchor geometry, relative to canvas */
11465      };
11466    /**
11467     * @typedef Elm_Entry_Filter_Cb
11468     * This callback type is used by entry filters to modify text.
11469     * @param data The data specified as the last param when adding the filter
11470     * @param entry The entry object
11471     * @param text A pointer to the location of the text being filtered. This data can be modified,
11472     * but any additional allocations must be managed by the user.
11473     * @see elm_entry_text_filter_append
11474     * @see elm_entry_text_filter_prepend
11475     */
11476    typedef void (*Elm_Entry_Filter_Cb)(void *data, Evas_Object *entry, char **text);
11477
11478    /**
11479     * @typedef Elm_Entry_Change_Info
11480     * This corresponds to Edje_Entry_Change_Info. Includes information about
11481     * a change in the entry.
11482     */
11483    typedef Edje_Entry_Change_Info Elm_Entry_Change_Info;
11484
11485
11486    /**
11487     * This adds an entry to @p parent object.
11488     *
11489     * By default, entries are:
11490     * @li not scrolled
11491     * @li multi-line
11492     * @li word wrapped
11493     * @li autosave is enabled
11494     *
11495     * @param parent The parent object
11496     * @return The new object or NULL if it cannot be created
11497     */
11498    EAPI Evas_Object *elm_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11499    /**
11500     * Sets the entry to single line mode.
11501     *
11502     * In single line mode, entries don't ever wrap when the text reaches the
11503     * edge, and instead they keep growing horizontally. Pressing the @c Enter
11504     * key will generate an @c "activate" event instead of adding a new line.
11505     *
11506     * When @p single_line is @c EINA_FALSE, line wrapping takes effect again
11507     * and pressing enter will break the text into a different line
11508     * without generating any events.
11509     *
11510     * @param obj The entry object
11511     * @param single_line If true, the text in the entry
11512     * will be on a single line.
11513     */
11514    EAPI void         elm_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
11515    /**
11516     * Gets whether the entry is set to be single line.
11517     *
11518     * @param obj The entry object
11519     * @return single_line If true, the text in the entry is set to display
11520     * on a single line.
11521     *
11522     * @see elm_entry_single_line_set()
11523     */
11524    EAPI Eina_Bool    elm_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11525    /**
11526     * Sets the entry to password mode.
11527     *
11528     * In password mode, entries are implicitly single line and the display of
11529     * any text in them is replaced with asterisks (*).
11530     *
11531     * @param obj The entry object
11532     * @param password If true, password mode is enabled.
11533     */
11534    EAPI void         elm_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
11535    /**
11536     * Gets whether the entry is set to password mode.
11537     *
11538     * @param obj The entry object
11539     * @return If true, the entry is set to display all characters
11540     * as asterisks (*).
11541     *
11542     * @see elm_entry_password_set()
11543     */
11544    EAPI Eina_Bool    elm_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11545    /**
11546     * This sets the text displayed within the entry to @p entry.
11547     *
11548     * @param obj The entry object
11549     * @param entry The text to be displayed
11550     *
11551     * @deprecated Use elm_object_text_set() instead.
11552     * @note Using this function bypasses text filters
11553     */
11554    EAPI void         elm_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
11555    /**
11556     * This returns the text currently shown in object @p entry.
11557     * See also elm_entry_entry_set().
11558     *
11559     * @param obj The entry object
11560     * @return The currently displayed text or NULL on failure
11561     *
11562     * @deprecated Use elm_object_text_get() instead.
11563     */
11564    EAPI const char  *elm_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11565    /**
11566     * Appends @p entry to the text of the entry.
11567     *
11568     * Adds the text in @p entry to the end of any text already present in the
11569     * widget.
11570     *
11571     * The appended text is subject to any filters set for the widget.
11572     *
11573     * @param obj The entry object
11574     * @param entry The text to be displayed
11575     *
11576     * @see elm_entry_text_filter_append()
11577     */
11578    EAPI void         elm_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
11579    /**
11580     * Gets whether the entry is empty.
11581     *
11582     * Empty means no text at all. If there are any markup tags, like an item
11583     * tag for which no provider finds anything, and no text is displayed, this
11584     * function still returns EINA_FALSE.
11585     *
11586     * @param obj The entry object
11587     * @return EINA_TRUE if the entry is empty, EINA_FALSE otherwise.
11588     */
11589    EAPI Eina_Bool    elm_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11590    /**
11591     * Gets any selected text within the entry.
11592     *
11593     * If there's any selected text in the entry, this function returns it as
11594     * a string in markup format. NULL is returned if no selection exists or
11595     * if an error occurred.
11596     *
11597     * The returned value points to an internal string and should not be freed
11598     * or modified in any way. If the @p entry object is deleted or its
11599     * contents are changed, the returned pointer should be considered invalid.
11600     *
11601     * @param obj The entry object
11602     * @return The selected text within the entry or NULL on failure
11603     */
11604    EAPI const char  *elm_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11605    /**
11606     * Returns the actual textblock object of the entry.
11607     *
11608     * This function exposes the internal textblock object that actually
11609     * contains and draws the text. This should be used for low-level
11610     * manipulations that are otherwise not possible.
11611     *
11612     * Changing the textblock directly from here will not notify edje/elm to
11613     * recalculate the textblock size automatically, so any modifications
11614     * done to the textblock returned by this function should be followed by
11615     * a call to elm_entry_calc_force().
11616     *
11617     * The return value is marked as const as an additional warning.
11618     * One should not use the returned object with any of the generic evas
11619     * functions (geometry_get/resize/move and etc), but only with the textblock
11620     * functions; The former will either not work at all, or break the correct
11621     * functionality.
11622     *
11623     * IMPORTANT: Many functions may change (i.e delete and create a new one)
11624     * the internal textblock object. Do NOT cache the returned object, and try
11625     * not to mix calls on this object with regular elm_entry calls (which may
11626     * change the internal textblock object). This applies to all cursors
11627     * returned from textblock calls, and all the other derivative values.
11628     *
11629     * @param obj The entry object
11630     * @return The textblock object.
11631     */
11632    EAPI const Evas_Object *elm_entry_textblock_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11633    /**
11634     * Forces calculation of the entry size and text layouting.
11635     *
11636     * This should be used after modifying the textblock object directly. See
11637     * elm_entry_textblock_get() for more information.
11638     *
11639     * @param obj The entry object
11640     *
11641     * @see elm_entry_textblock_get()
11642     */
11643    EAPI void elm_entry_calc_force(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11644    /**
11645     * Inserts the given text into the entry at the current cursor position.
11646     *
11647     * This inserts text at the cursor position as if it was typed
11648     * by the user (note that this also allows markup which a user
11649     * can't just "type" as it would be converted to escaped text, so this
11650     * call can be used to insert things like emoticon items or bold push/pop
11651     * tags, other font and color change tags etc.)
11652     *
11653     * If any selection exists, it will be replaced by the inserted text.
11654     *
11655     * The inserted text is subject to any filters set for the widget.
11656     *
11657     * @param obj The entry object
11658     * @param entry The text to insert
11659     *
11660     * @see elm_entry_text_filter_append()
11661     */
11662    EAPI void         elm_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
11663    /**
11664     * Set the line wrap type to use on multi-line entries.
11665     *
11666     * Sets the wrap type used by the entry to any of the specified in
11667     * #Elm_Wrap_Type. This tells how the text will be implicitly cut into a new
11668     * line (without inserting a line break or paragraph separator) when it
11669     * reaches the far edge of the widget.
11670     *
11671     * Note that this only makes sense for multi-line entries. A widget set
11672     * to be single line will never wrap.
11673     *
11674     * @param obj The entry object
11675     * @param wrap The wrap mode to use. See #Elm_Wrap_Type for details on them
11676     */
11677    EAPI void         elm_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
11678    /**
11679     * Gets the wrap mode the entry was set to use.
11680     *
11681     * @param obj The entry object
11682     * @return Wrap type
11683     *
11684     * @see also elm_entry_line_wrap_set()
11685     */
11686    EAPI Elm_Wrap_Type elm_entry_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11687    /**
11688     * Sets if the entry is to be editable or not.
11689     *
11690     * By default, entries are editable and when focused, any text input by the
11691     * user will be inserted at the current cursor position. But calling this
11692     * function with @p editable as EINA_FALSE will prevent the user from
11693     * inputting text into the entry.
11694     *
11695     * The only way to change the text of a non-editable entry is to use
11696     * elm_object_text_set(), elm_entry_entry_insert() and other related
11697     * functions.
11698     *
11699     * @param obj The entry object
11700     * @param editable If EINA_TRUE, user input will be inserted in the entry,
11701     * if not, the entry is read-only and no user input is allowed.
11702     */
11703    EAPI void         elm_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
11704    /**
11705     * Gets whether the entry is editable or not.
11706     *
11707     * @param obj The entry object
11708     * @return If true, the entry is editable by the user.
11709     * If false, it is not editable by the user
11710     *
11711     * @see elm_entry_editable_set()
11712     */
11713    EAPI Eina_Bool    elm_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11714    /**
11715     * This drops any existing text selection within the entry.
11716     *
11717     * @param obj The entry object
11718     */
11719    EAPI void         elm_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
11720    /**
11721     * This selects all text within the entry.
11722     *
11723     * @param obj The entry object
11724     */
11725    EAPI void         elm_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
11726    /**
11727     * This moves the cursor one place to the right within the entry.
11728     *
11729     * @param obj The entry object
11730     * @return EINA_TRUE upon success, EINA_FALSE upon failure
11731     */
11732    EAPI Eina_Bool    elm_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
11733    /**
11734     * This moves the cursor one place to the left within the entry.
11735     *
11736     * @param obj The entry object
11737     * @return EINA_TRUE upon success, EINA_FALSE upon failure
11738     */
11739    EAPI Eina_Bool    elm_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
11740    /**
11741     * This moves the cursor one line up within the entry.
11742     *
11743     * @param obj The entry object
11744     * @return EINA_TRUE upon success, EINA_FALSE upon failure
11745     */
11746    EAPI Eina_Bool    elm_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
11747    /**
11748     * This moves the cursor one line down within the entry.
11749     *
11750     * @param obj The entry object
11751     * @return EINA_TRUE upon success, EINA_FALSE upon failure
11752     */
11753    EAPI Eina_Bool    elm_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
11754    /**
11755     * This moves the cursor to the beginning of the entry.
11756     *
11757     * @param obj The entry object
11758     */
11759    EAPI void         elm_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
11760    /**
11761     * This moves the cursor to the end of the entry.
11762     *
11763     * @param obj The entry object
11764     */
11765    EAPI void         elm_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
11766    /**
11767     * This moves the cursor to the beginning of the current line.
11768     *
11769     * @param obj The entry object
11770     */
11771    EAPI void         elm_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
11772    /**
11773     * This moves the cursor to the end of the current line.
11774     *
11775     * @param obj The entry object
11776     */
11777    EAPI void         elm_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
11778    /**
11779     * This begins a selection within the entry as though
11780     * the user were holding down the mouse button to make a selection.
11781     *
11782     * @param obj The entry object
11783     */
11784    EAPI void         elm_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
11785    /**
11786     * This ends a selection within the entry as though
11787     * the user had just released the mouse button while making a selection.
11788     *
11789     * @param obj The entry object
11790     */
11791    EAPI void         elm_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
11792    /**
11793     * Gets whether a format node exists at the current cursor position.
11794     *
11795     * A format node is anything that defines how the text is rendered. It can
11796     * be a visible format node, such as a line break or a paragraph separator,
11797     * or an invisible one, such as bold begin or end tag.
11798     * This function returns whether any format node exists at the current
11799     * cursor position.
11800     *
11801     * @param obj The entry object
11802     * @return EINA_TRUE if the current cursor position contains a format node,
11803     * EINA_FALSE otherwise.
11804     *
11805     * @see elm_entry_cursor_is_visible_format_get()
11806     */
11807    EAPI Eina_Bool    elm_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11808    /**
11809     * Gets if the current cursor position holds a visible format node.
11810     *
11811     * @param obj The entry object
11812     * @return EINA_TRUE if the current cursor is a visible format, EINA_FALSE
11813     * if it's an invisible one or no format exists.
11814     *
11815     * @see elm_entry_cursor_is_format_get()
11816     */
11817    EAPI Eina_Bool    elm_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11818    /**
11819     * Gets the character pointed by the cursor at its current position.
11820     *
11821     * This function returns a string with the utf8 character stored at the
11822     * current cursor position.
11823     * Only the text is returned, any format that may exist will not be part
11824     * of the return value.
11825     *
11826     * @param obj The entry object
11827     * @return The text pointed by the cursors.
11828     */
11829    EAPI const char  *elm_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11830    /**
11831     * This function returns the geometry of the cursor.
11832     *
11833     * It's useful if you want to draw something on the cursor (or where it is),
11834     * or for example in the case of scrolled entry where you want to show the
11835     * cursor.
11836     *
11837     * @param obj The entry object
11838     * @param x returned geometry
11839     * @param y returned geometry
11840     * @param w returned geometry
11841     * @param h returned geometry
11842     * @return EINA_TRUE upon success, EINA_FALSE upon failure
11843     */
11844    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);
11845    /**
11846     * Sets the cursor position in the entry to the given value
11847     *
11848     * The value in @p pos is the index of the character position within the
11849     * contents of the string as returned by elm_entry_cursor_pos_get().
11850     *
11851     * @param obj The entry object
11852     * @param pos The position of the cursor
11853     */
11854    EAPI void         elm_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
11855    /**
11856     * Retrieves the current position of the cursor in the entry
11857     *
11858     * @param obj The entry object
11859     * @return The cursor position
11860     */
11861    EAPI int          elm_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11862    /**
11863     * This executes a "cut" action on the selected text in the entry.
11864     *
11865     * @param obj The entry object
11866     */
11867    EAPI void         elm_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
11868    /**
11869     * This executes a "copy" action on the selected text in the entry.
11870     *
11871     * @param obj The entry object
11872     */
11873    EAPI void         elm_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
11874    /**
11875     * This executes a "paste" action in the entry.
11876     *
11877     * @param obj The entry object
11878     */
11879    EAPI void         elm_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
11880    /**
11881     * This clears and frees the items in a entry's contextual (longpress)
11882     * menu.
11883     *
11884     * @param obj The entry object
11885     *
11886     * @see elm_entry_context_menu_item_add()
11887     */
11888    EAPI void         elm_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
11889    /**
11890     * This adds an item to the entry's contextual menu.
11891     *
11892     * A longpress on an entry will make the contextual menu show up, if this
11893     * hasn't been disabled with elm_entry_context_menu_disabled_set().
11894     * By default, this menu provides a few options like enabling selection mode,
11895     * which is useful on embedded devices that need to be explicit about it,
11896     * and when a selection exists it also shows the copy and cut actions.
11897     *
11898     * With this function, developers can add other options to this menu to
11899     * perform any action they deem necessary.
11900     *
11901     * @param obj The entry object
11902     * @param label The item's text label
11903     * @param icon_file The item's icon file
11904     * @param icon_type The item's icon type
11905     * @param func The callback to execute when the item is clicked
11906     * @param data The data to associate with the item for related functions
11907     */
11908    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);
11909    /**
11910     * This disables the entry's contextual (longpress) menu.
11911     *
11912     * @param obj The entry object
11913     * @param disabled If true, the menu is disabled
11914     */
11915    EAPI void         elm_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
11916    /**
11917     * This returns whether the entry's contextual (longpress) menu is
11918     * disabled.
11919     *
11920     * @param obj The entry object
11921     * @return If true, the menu is disabled
11922     */
11923    EAPI Eina_Bool    elm_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11924    /**
11925     * This appends a custom item provider to the list for that entry
11926     *
11927     * This appends the given callback. The list is walked from beginning to end
11928     * with each function called given the item href string in the text. If the
11929     * function returns an object handle other than NULL (it should create an
11930     * object to do this), then this object is used to replace that item. If
11931     * not the next provider is called until one provides an item object, or the
11932     * default provider in entry does.
11933     *
11934     * @param obj The entry object
11935     * @param func The function called to provide the item object
11936     * @param data The data passed to @p func
11937     *
11938     * @see @ref entry-items
11939     */
11940    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);
11941    /**
11942     * This prepends a custom item provider to the list for that entry
11943     *
11944     * This prepends the given callback. See elm_entry_item_provider_append() for
11945     * more information
11946     *
11947     * @param obj The entry object
11948     * @param func The function called to provide the item object
11949     * @param data The data passed to @p func
11950     */
11951    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);
11952    /**
11953     * This removes a custom item provider to the list for that entry
11954     *
11955     * This removes the given callback. See elm_entry_item_provider_append() for
11956     * more information
11957     *
11958     * @param obj The entry object
11959     * @param func The function called to provide the item object
11960     * @param data The data passed to @p func
11961     */
11962    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);
11963    /**
11964     * Append a filter function for text inserted in the entry
11965     *
11966     * Append the given callback to the list. This functions will be called
11967     * whenever any text is inserted into the entry, with the text to be inserted
11968     * as a parameter. The callback function is free to alter the text in any way
11969     * it wants, but it must remember to free the given pointer and update it.
11970     * If the new text is to be discarded, the function can free it and set its
11971     * text parameter to NULL. This will also prevent any following filters from
11972     * being called.
11973     *
11974     * @param obj The entry object
11975     * @param func The function to use as text filter
11976     * @param data User data to pass to @p func
11977     */
11978    EAPI void         elm_entry_text_filter_append(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11979    /**
11980     * Prepend a filter function for text insdrted in the entry
11981     *
11982     * Prepend the given callback to the list. See elm_entry_text_filter_append()
11983     * for more information
11984     *
11985     * @param obj The entry object
11986     * @param func The function to use as text filter
11987     * @param data User data to pass to @p func
11988     */
11989    EAPI void         elm_entry_text_filter_prepend(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11990    /**
11991     * Remove a filter from the list
11992     *
11993     * Removes the given callback from the filter list. See
11994     * elm_entry_text_filter_append() for more information.
11995     *
11996     * @param obj The entry object
11997     * @param func The filter function to remove
11998     * @param data The user data passed when adding the function
11999     */
12000    EAPI void         elm_entry_text_filter_remove(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
12001    /**
12002     * This converts a markup (HTML-like) string into UTF-8.
12003     *
12004     * The returned string is a malloc'ed buffer and it should be freed when
12005     * not needed anymore.
12006     *
12007     * @param s The string (in markup) to be converted
12008     * @return The converted string (in UTF-8). It should be freed.
12009     */
12010    EAPI char        *elm_entry_markup_to_utf8(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
12011    /**
12012     * This converts a UTF-8 string into markup (HTML-like).
12013     *
12014     * The returned string is a malloc'ed buffer and it should be freed when
12015     * not needed anymore.
12016     *
12017     * @param s The string (in UTF-8) to be converted
12018     * @return The converted string (in markup). It should be freed.
12019     */
12020    EAPI char        *elm_entry_utf8_to_markup(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
12021    /**
12022     * This sets the file (and implicitly loads it) for the text to display and
12023     * then edit. All changes are written back to the file after a short delay if
12024     * the entry object is set to autosave (which is the default).
12025     *
12026     * If the entry had any other file set previously, any changes made to it
12027     * will be saved if the autosave feature is enabled, otherwise, the file
12028     * will be silently discarded and any non-saved changes will be lost.
12029     *
12030     * @param obj The entry object
12031     * @param file The path to the file to load and save
12032     * @param format The file format
12033     */
12034    EAPI void         elm_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
12035    /**
12036     * Gets the file being edited by the entry.
12037     *
12038     * This function can be used to retrieve any file set on the entry for
12039     * edition, along with the format used to load and save it.
12040     *
12041     * @param obj The entry object
12042     * @param file The path to the file to load and save
12043     * @param format The file format
12044     */
12045    EAPI void         elm_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
12046    /**
12047     * This function writes any changes made to the file set with
12048     * elm_entry_file_set()
12049     *
12050     * @param obj The entry object
12051     */
12052    EAPI void         elm_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
12053    /**
12054     * This sets the entry object to 'autosave' the loaded text file or not.
12055     *
12056     * @param obj The entry object
12057     * @param autosave Autosave the loaded file or not
12058     *
12059     * @see elm_entry_file_set()
12060     */
12061    EAPI void         elm_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
12062    /**
12063     * This gets the entry object's 'autosave' status.
12064     *
12065     * @param obj The entry object
12066     * @return Autosave the loaded file or not
12067     *
12068     * @see elm_entry_file_set()
12069     */
12070    EAPI Eina_Bool    elm_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12071    /**
12072     * Control pasting of text and images for the widget.
12073     *
12074     * Normally the entry allows both text and images to be pasted.  By setting
12075     * textonly to be true, this prevents images from being pasted.
12076     *
12077     * Note this only changes the behaviour of text.
12078     *
12079     * @param obj The entry object
12080     * @param textonly paste mode - EINA_TRUE is text only, EINA_FALSE is
12081     * text+image+other.
12082     */
12083    EAPI void         elm_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
12084    /**
12085     * Getting elm_entry text paste/drop mode.
12086     *
12087     * In textonly mode, only text may be pasted or dropped into the widget.
12088     *
12089     * @param obj The entry object
12090     * @return If the widget only accepts text from pastes.
12091     */
12092    EAPI Eina_Bool    elm_entry_cnp_textonly_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12093    /**
12094     * Enable or disable scrolling in entry
12095     *
12096     * Normally the entry is not scrollable unless you enable it with this call.
12097     *
12098     * @param obj The entry object
12099     * @param scroll EINA_TRUE if it is to be scrollable, EINA_FALSE otherwise
12100     */
12101    EAPI void         elm_entry_scrollable_set(Evas_Object *obj, Eina_Bool scroll);
12102    /**
12103     * Get the scrollable state of the entry
12104     *
12105     * Normally the entry is not scrollable. This gets the scrollable state
12106     * of the entry. See elm_entry_scrollable_set() for more information.
12107     *
12108     * @param obj The entry object
12109     * @return The scrollable state
12110     */
12111    EAPI Eina_Bool    elm_entry_scrollable_get(const Evas_Object *obj);
12112    /**
12113     * This sets a widget to be displayed to the left of a scrolled entry.
12114     *
12115     * @param obj The scrolled entry object
12116     * @param icon The widget to display on the left side of the scrolled
12117     * entry.
12118     *
12119     * @note A previously set widget will be destroyed.
12120     * @note If the object being set does not have minimum size hints set,
12121     * it won't get properly displayed.
12122     *
12123     * @see elm_entry_end_set()
12124     */
12125    EAPI void         elm_entry_icon_set(Evas_Object *obj, Evas_Object *icon);
12126    /**
12127     * Gets the leftmost widget of the scrolled entry. This object is
12128     * owned by the scrolled entry and should not be modified.
12129     *
12130     * @param obj The scrolled entry object
12131     * @return the left widget inside the scroller
12132     */
12133    EAPI Evas_Object *elm_entry_icon_get(const Evas_Object *obj);
12134    /**
12135     * Unset the leftmost widget of the scrolled entry, unparenting and
12136     * returning it.
12137     *
12138     * @param obj The scrolled entry object
12139     * @return the previously set icon sub-object of this entry, on
12140     * success.
12141     *
12142     * @see elm_entry_icon_set()
12143     */
12144    EAPI Evas_Object *elm_entry_icon_unset(Evas_Object *obj);
12145    /**
12146     * Sets the visibility of the left-side widget of the scrolled entry,
12147     * set by elm_entry_icon_set().
12148     *
12149     * @param obj The scrolled entry object
12150     * @param setting EINA_TRUE if the object should be displayed,
12151     * EINA_FALSE if not.
12152     */
12153    EAPI void         elm_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting);
12154    /**
12155     * This sets a widget to be displayed to the end of a scrolled entry.
12156     *
12157     * @param obj The scrolled entry object
12158     * @param end The widget to display on the right side of the scrolled
12159     * entry.
12160     *
12161     * @note A previously set widget will be destroyed.
12162     * @note If the object being set does not have minimum size hints set,
12163     * it won't get properly displayed.
12164     *
12165     * @see elm_entry_icon_set
12166     */
12167    EAPI void         elm_entry_end_set(Evas_Object *obj, Evas_Object *end);
12168    /**
12169     * Gets the endmost widget of the scrolled entry. This object is owned
12170     * by the scrolled entry and should not be modified.
12171     *
12172     * @param obj The scrolled entry object
12173     * @return the right widget inside the scroller
12174     */
12175    EAPI Evas_Object *elm_entry_end_get(const Evas_Object *obj);
12176    /**
12177     * Unset the endmost widget of the scrolled entry, unparenting and
12178     * returning it.
12179     *
12180     * @param obj The scrolled entry object
12181     * @return the previously set icon sub-object of this entry, on
12182     * success.
12183     *
12184     * @see elm_entry_icon_set()
12185     */
12186    EAPI Evas_Object *elm_entry_end_unset(Evas_Object *obj);
12187    /**
12188     * Sets the visibility of the end widget of the scrolled entry, set by
12189     * elm_entry_end_set().
12190     *
12191     * @param obj The scrolled entry object
12192     * @param setting EINA_TRUE if the object should be displayed,
12193     * EINA_FALSE if not.
12194     */
12195    EAPI void         elm_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting);
12196    /**
12197     * This sets the scrolled entry's scrollbar policy (ie. enabling/disabling
12198     * them).
12199     *
12200     * Setting an entry to single-line mode with elm_entry_single_line_set()
12201     * will automatically disable the display of scrollbars when the entry
12202     * moves inside its scroller.
12203     *
12204     * @param obj The scrolled entry object
12205     * @param h The horizontal scrollbar policy to apply
12206     * @param v The vertical scrollbar policy to apply
12207     */
12208    EAPI void         elm_entry_scrollbar_policy_set(Evas_Object *obj, Elm_Scroller_Policy h, Elm_Scroller_Policy v);
12209    /**
12210     * This enables/disables bouncing within the entry.
12211     *
12212     * This function sets whether the entry will bounce when scrolling reaches
12213     * the end of the contained entry.
12214     *
12215     * @param obj The scrolled entry object
12216     * @param h The horizontal bounce state
12217     * @param v The vertical bounce state
12218     */
12219    EAPI void         elm_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
12220    /**
12221     * Get the bounce mode
12222     *
12223     * @param obj The Entry object
12224     * @param h_bounce Allow bounce horizontally
12225     * @param v_bounce Allow bounce vertically
12226     */
12227    EAPI void         elm_entry_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
12228
12229    /* pre-made filters for entries */
12230    /**
12231     * @typedef Elm_Entry_Filter_Limit_Size
12232     *
12233     * Data for the elm_entry_filter_limit_size() entry filter.
12234     */
12235    typedef struct _Elm_Entry_Filter_Limit_Size Elm_Entry_Filter_Limit_Size;
12236    /**
12237     * @struct _Elm_Entry_Filter_Limit_Size
12238     *
12239     * Data for the elm_entry_filter_limit_size() entry filter.
12240     */
12241    struct _Elm_Entry_Filter_Limit_Size
12242      {
12243         int max_char_count; /**< The maximum number of characters allowed. */
12244         int max_byte_count; /**< The maximum number of bytes allowed*/
12245      };
12246    /**
12247     * Filter inserted text based on user defined character and byte limits
12248     *
12249     * Add this filter to an entry to limit the characters that it will accept
12250     * based the the contents of the provided #Elm_Entry_Filter_Limit_Size.
12251     * The funtion works on the UTF-8 representation of the string, converting
12252     * it from the set markup, thus not accounting for any format in it.
12253     *
12254     * The user must create an #Elm_Entry_Filter_Limit_Size structure and pass
12255     * it as data when setting the filter. In it, it's possible to set limits
12256     * by character count or bytes (any of them is disabled if 0), and both can
12257     * be set at the same time. In that case, it first checks for characters,
12258     * then bytes.
12259     *
12260     * The function will cut the inserted text in order to allow only the first
12261     * number of characters that are still allowed. The cut is made in
12262     * characters, even when limiting by bytes, in order to always contain
12263     * valid ones and avoid half unicode characters making it in.
12264     *
12265     * This filter, like any others, does not apply when setting the entry text
12266     * directly with elm_object_text_set() (or the deprecated
12267     * elm_entry_entry_set()).
12268     */
12269    EAPI void         elm_entry_filter_limit_size(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 2, 3);
12270    /**
12271     * @typedef Elm_Entry_Filter_Accept_Set
12272     *
12273     * Data for the elm_entry_filter_accept_set() entry filter.
12274     */
12275    typedef struct _Elm_Entry_Filter_Accept_Set Elm_Entry_Filter_Accept_Set;
12276    /**
12277     * @struct _Elm_Entry_Filter_Accept_Set
12278     *
12279     * Data for the elm_entry_filter_accept_set() entry filter.
12280     */
12281    struct _Elm_Entry_Filter_Accept_Set
12282      {
12283         const char *accepted; /**< Set of characters accepted in the entry. */
12284         const char *rejected; /**< Set of characters rejected from the entry. */
12285      };
12286    /**
12287     * Filter inserted text based on accepted or rejected sets of characters
12288     *
12289     * Add this filter to an entry to restrict the set of accepted characters
12290     * based on the sets in the provided #Elm_Entry_Filter_Accept_Set.
12291     * This structure contains both accepted and rejected sets, but they are
12292     * mutually exclusive.
12293     *
12294     * The @c accepted set takes preference, so if it is set, the filter will
12295     * only work based on the accepted characters, ignoring anything in the
12296     * @c rejected value. If @c accepted is @c NULL, then @c rejected is used.
12297     *
12298     * In both cases, the function filters by matching utf8 characters to the
12299     * raw markup text, so it can be used to remove formatting tags.
12300     *
12301     * This filter, like any others, does not apply when setting the entry text
12302     * directly with elm_object_text_set() (or the deprecated
12303     * elm_entry_entry_set()).
12304     */
12305    EAPI void         elm_entry_filter_accept_set(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 3);
12306    /**
12307     * Set the input panel layout of the entry
12308     *
12309     * @param obj The entry object
12310     * @param layout layout type
12311     */
12312    EAPI void elm_entry_input_panel_layout_set(Evas_Object *obj, Elm_Input_Panel_Layout layout) EINA_ARG_NONNULL(1);
12313    /**
12314     * Get the input panel layout of the entry
12315     *
12316     * @param obj The entry object
12317     * @return layout type
12318     *
12319     * @see elm_entry_input_panel_layout_set
12320     */
12321    EAPI Elm_Input_Panel_Layout elm_entry_input_panel_layout_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
12322    /**
12323     * Set the autocapitalization type on the immodule.
12324     *
12325     * @param obj The entry object
12326     * @param autocapital_type The type of autocapitalization
12327     */
12328    EAPI void         elm_entry_autocapital_type_set(Evas_Object *obj, Elm_Autocapital_Type autocapital_type) EINA_ARG_NONNULL(1);
12329    /**
12330     * Retrieve the autocapitalization type on the immodule.
12331     *
12332     * @param obj The entry object
12333     * @return autocapitalization type
12334     */
12335    EAPI Elm_Autocapital_Type elm_entry_autocapital_type_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
12336    /**
12337     * Sets the attribute to show the input panel automatically.
12338     *
12339     * @param obj The entry object
12340     * @param enabled If true, the input panel is appeared when entry is clicked or has a focus
12341     */
12342    EAPI void elm_entry_input_panel_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
12343    /**
12344     * Retrieve the attribute to show the input panel automatically.
12345     *
12346     * @param obj The entry object
12347     * @return EINA_TRUE if input panel will be appeared when the entry is clicked or has a focus, EINA_FALSE otherwise
12348     */
12349    EAPI Eina_Bool elm_entry_input_panel_enabled_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
12350
12351    /**
12352     * @}
12353     */
12354
12355    /* composite widgets - these basically put together basic widgets above
12356     * in convenient packages that do more than basic stuff */
12357
12358    /* anchorview */
12359    /**
12360     * @defgroup Anchorview Anchorview
12361     *
12362     * @image html img/widget/anchorview/preview-00.png
12363     * @image latex img/widget/anchorview/preview-00.eps
12364     *
12365     * Anchorview is for displaying text that contains markup with anchors
12366     * like <c>\<a href=1234\>something\</\></c> in it.
12367     *
12368     * Besides being styled differently, the anchorview widget provides the
12369     * necessary functionality so that clicking on these anchors brings up a
12370     * popup with user defined content such as "call", "add to contacts" or
12371     * "open web page". This popup is provided using the @ref Hover widget.
12372     *
12373     * This widget is very similar to @ref Anchorblock, so refer to that
12374     * widget for an example. The only difference Anchorview has is that the
12375     * widget is already provided with scrolling functionality, so if the
12376     * text set to it is too large to fit in the given space, it will scroll,
12377     * whereas the @ref Anchorblock widget will keep growing to ensure all the
12378     * text can be displayed.
12379     *
12380     * This widget emits the following signals:
12381     * @li "anchor,clicked": will be called when an anchor is clicked. The
12382     * @p event_info parameter on the callback will be a pointer of type
12383     * ::Elm_Entry_Anchorview_Info.
12384     *
12385     * See @ref Anchorblock for an example on how to use both of them.
12386     *
12387     * @see Anchorblock
12388     * @see Entry
12389     * @see Hover
12390     *
12391     * @{
12392     */
12393    /**
12394     * @typedef Elm_Entry_Anchorview_Info
12395     *
12396     * The info sent in the callback for "anchor,clicked" signals emitted by
12397     * the Anchorview widget.
12398     */
12399    typedef struct _Elm_Entry_Anchorview_Info Elm_Entry_Anchorview_Info;
12400    /**
12401     * @struct _Elm_Entry_Anchorview_Info
12402     *
12403     * The info sent in the callback for "anchor,clicked" signals emitted by
12404     * the Anchorview widget.
12405     */
12406    struct _Elm_Entry_Anchorview_Info
12407      {
12408         const char     *name; /**< Name of the anchor, as indicated in its href
12409                                    attribute */
12410         int             button; /**< The mouse button used to click on it */
12411         Evas_Object    *hover; /**< The hover object to use for the popup */
12412         struct {
12413              Evas_Coord    x, y, w, h;
12414         } anchor, /**< Geometry selection of text used as anchor */
12415           hover_parent; /**< Geometry of the object used as parent by the
12416                              hover */
12417         Eina_Bool       hover_left : 1; /**< Hint indicating if there's space
12418                                              for content on the left side of
12419                                              the hover. Before calling the
12420                                              callback, the widget will make the
12421                                              necessary calculations to check
12422                                              which sides are fit to be set with
12423                                              content, based on the position the
12424                                              hover is activated and its distance
12425                                              to the edges of its parent object
12426                                              */
12427         Eina_Bool       hover_right : 1; /**< Hint indicating content fits on
12428                                               the right side of the hover.
12429                                               See @ref hover_left */
12430         Eina_Bool       hover_top : 1; /**< Hint indicating content fits on top
12431                                             of the hover. See @ref hover_left */
12432         Eina_Bool       hover_bottom : 1; /**< Hint indicating content fits
12433                                                below the hover. See @ref
12434                                                hover_left */
12435      };
12436    /**
12437     * Add a new Anchorview object
12438     *
12439     * @param parent The parent object
12440     * @return The new object or NULL if it cannot be created
12441     */
12442    EAPI Evas_Object *elm_anchorview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12443    /**
12444     * Set the text to show in the anchorview
12445     *
12446     * Sets the text of the anchorview to @p text. This text can include markup
12447     * format tags, including <c>\<a href=anchorname\></c> to begin a segment of
12448     * text that will be specially styled and react to click events, ended with
12449     * either of \</a\> or \</\>. When clicked, the anchor will emit an
12450     * "anchor,clicked" signal that you can attach a callback to with
12451     * evas_object_smart_callback_add(). The name of the anchor given in the
12452     * event info struct will be the one set in the href attribute, in this
12453     * case, anchorname.
12454     *
12455     * Other markup can be used to style the text in different ways, but it's
12456     * up to the style defined in the theme which tags do what.
12457     * @deprecated use elm_object_text_set() instead.
12458     */
12459    EINA_DEPRECATED EAPI void         elm_anchorview_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
12460    /**
12461     * Get the markup text set for the anchorview
12462     *
12463     * Retrieves the text set on the anchorview, with markup tags included.
12464     *
12465     * @param obj The anchorview object
12466     * @return The markup text set or @c NULL if nothing was set or an error
12467     * occurred
12468     * @deprecated use elm_object_text_set() instead.
12469     */
12470    EINA_DEPRECATED EAPI const char  *elm_anchorview_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12471    /**
12472     * Set the parent of the hover popup
12473     *
12474     * Sets the parent object to use by the hover created by the anchorview
12475     * when an anchor is clicked. See @ref Hover for more details on this.
12476     * If no parent is set, the same anchorview object will be used.
12477     *
12478     * @param obj The anchorview object
12479     * @param parent The object to use as parent for the hover
12480     */
12481    EAPI void         elm_anchorview_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
12482    /**
12483     * Get the parent of the hover popup
12484     *
12485     * Get the object used as parent for the hover created by the anchorview
12486     * widget. See @ref Hover for more details on this.
12487     *
12488     * @param obj The anchorview object
12489     * @return The object used as parent for the hover, NULL if none is set.
12490     */
12491    EAPI Evas_Object *elm_anchorview_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12492    /**
12493     * Set the style that the hover should use
12494     *
12495     * When creating the popup hover, anchorview will request that it's
12496     * themed according to @p style.
12497     *
12498     * @param obj The anchorview object
12499     * @param style The style to use for the underlying hover
12500     *
12501     * @see elm_object_style_set()
12502     */
12503    EAPI void         elm_anchorview_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
12504    /**
12505     * Get the style that the hover should use
12506     *
12507     * Get the style the hover created by anchorview will use.
12508     *
12509     * @param obj The anchorview object
12510     * @return The style to use by the hover. NULL means the default is used.
12511     *
12512     * @see elm_object_style_set()
12513     */
12514    EAPI const char  *elm_anchorview_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12515    /**
12516     * Ends the hover popup in the anchorview
12517     *
12518     * When an anchor is clicked, the anchorview widget will create a hover
12519     * object to use as a popup with user provided content. This function
12520     * terminates this popup, returning the anchorview to its normal state.
12521     *
12522     * @param obj The anchorview object
12523     */
12524    EAPI void         elm_anchorview_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
12525    /**
12526     * Set bouncing behaviour when the scrolled content reaches an edge
12527     *
12528     * Tell the internal scroller object whether it should bounce or not
12529     * when it reaches the respective edges for each axis.
12530     *
12531     * @param obj The anchorview object
12532     * @param h_bounce Whether to bounce or not in the horizontal axis
12533     * @param v_bounce Whether to bounce or not in the vertical axis
12534     *
12535     * @see elm_scroller_bounce_set()
12536     */
12537    EAPI void         elm_anchorview_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
12538    /**
12539     * Get the set bouncing behaviour of the internal scroller
12540     *
12541     * Get whether the internal scroller should bounce when the edge of each
12542     * axis is reached scrolling.
12543     *
12544     * @param obj The anchorview object
12545     * @param h_bounce Pointer where to store the bounce state of the horizontal
12546     *                 axis
12547     * @param v_bounce Pointer where to store the bounce state of the vertical
12548     *                 axis
12549     *
12550     * @see elm_scroller_bounce_get()
12551     */
12552    EAPI void         elm_anchorview_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
12553    /**
12554     * Appends a custom item provider to the given anchorview
12555     *
12556     * Appends the given function to the list of items providers. This list is
12557     * called, one function at a time, with the given @p data pointer, the
12558     * anchorview object and, in the @p item parameter, the item name as
12559     * referenced in its href string. Following functions in the list will be
12560     * called in order until one of them returns something different to NULL,
12561     * which should be an Evas_Object which will be used in place of the item
12562     * element.
12563     *
12564     * Items in the markup text take the form \<item relsize=16x16 vsize=full
12565     * href=item/name\>\</item\>
12566     *
12567     * @param obj The anchorview object
12568     * @param func The function to add to the list of providers
12569     * @param data User data that will be passed to the callback function
12570     *
12571     * @see elm_entry_item_provider_append()
12572     */
12573    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);
12574    /**
12575     * Prepend a custom item provider to the given anchorview
12576     *
12577     * Like elm_anchorview_item_provider_append(), but it adds the function
12578     * @p func to the beginning of the list, instead of the end.
12579     *
12580     * @param obj The anchorview object
12581     * @param func The function to add to the list of providers
12582     * @param data User data that will be passed to the callback function
12583     */
12584    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);
12585    /**
12586     * Remove a custom item provider from the list of the given anchorview
12587     *
12588     * Removes the function and data pairing that matches @p func and @p data.
12589     * That is, unless the same function and same user data are given, the
12590     * function will not be removed from the list. This allows us to add the
12591     * same callback several times, with different @p data pointers and be
12592     * able to remove them later without conflicts.
12593     *
12594     * @param obj The anchorview object
12595     * @param func The function to remove from the list
12596     * @param data The data matching the function to remove from the list
12597     */
12598    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);
12599    /**
12600     * @}
12601     */
12602
12603    /* anchorblock */
12604    /**
12605     * @defgroup Anchorblock Anchorblock
12606     *
12607     * @image html img/widget/anchorblock/preview-00.png
12608     * @image latex img/widget/anchorblock/preview-00.eps
12609     *
12610     * Anchorblock is for displaying text that contains markup with anchors
12611     * like <c>\<a href=1234\>something\</\></c> in it.
12612     *
12613     * Besides being styled differently, the anchorblock widget provides the
12614     * necessary functionality so that clicking on these anchors brings up a
12615     * popup with user defined content such as "call", "add to contacts" or
12616     * "open web page". This popup is provided using the @ref Hover widget.
12617     *
12618     * This widget emits the following signals:
12619     * @li "anchor,clicked": will be called when an anchor is clicked. The
12620     * @p event_info parameter on the callback will be a pointer of type
12621     * ::Elm_Entry_Anchorblock_Info.
12622     *
12623     * @see Anchorview
12624     * @see Entry
12625     * @see Hover
12626     *
12627     * Since examples are usually better than plain words, we might as well
12628     * try @ref tutorial_anchorblock_example "one".
12629     */
12630    /**
12631     * @addtogroup Anchorblock
12632     * @{
12633     */
12634    /**
12635     * @typedef Elm_Entry_Anchorblock_Info
12636     *
12637     * The info sent in the callback for "anchor,clicked" signals emitted by
12638     * the Anchorblock widget.
12639     */
12640    typedef struct _Elm_Entry_Anchorblock_Info Elm_Entry_Anchorblock_Info;
12641    /**
12642     * @struct _Elm_Entry_Anchorblock_Info
12643     *
12644     * The info sent in the callback for "anchor,clicked" signals emitted by
12645     * the Anchorblock widget.
12646     */
12647    struct _Elm_Entry_Anchorblock_Info
12648      {
12649         const char     *name; /**< Name of the anchor, as indicated in its href
12650                                    attribute */
12651         int             button; /**< The mouse button used to click on it */
12652         Evas_Object    *hover; /**< The hover object to use for the popup */
12653         struct {
12654              Evas_Coord    x, y, w, h;
12655         } anchor, /**< Geometry selection of text used as anchor */
12656           hover_parent; /**< Geometry of the object used as parent by the
12657                              hover */
12658         Eina_Bool       hover_left : 1; /**< Hint indicating if there's space
12659                                              for content on the left side of
12660                                              the hover. Before calling the
12661                                              callback, the widget will make the
12662                                              necessary calculations to check
12663                                              which sides are fit to be set with
12664                                              content, based on the position the
12665                                              hover is activated and its distance
12666                                              to the edges of its parent object
12667                                              */
12668         Eina_Bool       hover_right : 1; /**< Hint indicating content fits on
12669                                               the right side of the hover.
12670                                               See @ref hover_left */
12671         Eina_Bool       hover_top : 1; /**< Hint indicating content fits on top
12672                                             of the hover. See @ref hover_left */
12673         Eina_Bool       hover_bottom : 1; /**< Hint indicating content fits
12674                                                below the hover. See @ref
12675                                                hover_left */
12676      };
12677    /**
12678     * Add a new Anchorblock object
12679     *
12680     * @param parent The parent object
12681     * @return The new object or NULL if it cannot be created
12682     */
12683    EAPI Evas_Object *elm_anchorblock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12684    /**
12685     * Set the text to show in the anchorblock
12686     *
12687     * Sets the text of the anchorblock to @p text. This text can include markup
12688     * format tags, including <c>\<a href=anchorname\></a></c> to begin a segment
12689     * of text that will be specially styled and react to click events, ended
12690     * with either of \</a\> or \</\>. When clicked, the anchor will emit an
12691     * "anchor,clicked" signal that you can attach a callback to with
12692     * evas_object_smart_callback_add(). The name of the anchor given in the
12693     * event info struct will be the one set in the href attribute, in this
12694     * case, anchorname.
12695     *
12696     * Other markup can be used to style the text in different ways, but it's
12697     * up to the style defined in the theme which tags do what.
12698     * @deprecated use elm_object_text_set() instead.
12699     */
12700    EINA_DEPRECATED EAPI void         elm_anchorblock_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
12701    /**
12702     * Get the markup text set for the anchorblock
12703     *
12704     * Retrieves the text set on the anchorblock, with markup tags included.
12705     *
12706     * @param obj The anchorblock object
12707     * @return The markup text set or @c NULL if nothing was set or an error
12708     * occurred
12709     * @deprecated use elm_object_text_set() instead.
12710     */
12711    EINA_DEPRECATED EAPI const char  *elm_anchorblock_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12712    /**
12713     * Set the parent of the hover popup
12714     *
12715     * Sets the parent object to use by the hover created by the anchorblock
12716     * when an anchor is clicked. See @ref Hover for more details on this.
12717     *
12718     * @param obj The anchorblock object
12719     * @param parent The object to use as parent for the hover
12720     */
12721    EAPI void         elm_anchorblock_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
12722    /**
12723     * Get the parent of the hover popup
12724     *
12725     * Get the object used as parent for the hover created by the anchorblock
12726     * widget. See @ref Hover for more details on this.
12727     * If no parent is set, the same anchorblock object will be used.
12728     *
12729     * @param obj The anchorblock object
12730     * @return The object used as parent for the hover, NULL if none is set.
12731     */
12732    EAPI Evas_Object *elm_anchorblock_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12733    /**
12734     * Set the style that the hover should use
12735     *
12736     * When creating the popup hover, anchorblock will request that it's
12737     * themed according to @p style.
12738     *
12739     * @param obj The anchorblock object
12740     * @param style The style to use for the underlying hover
12741     *
12742     * @see elm_object_style_set()
12743     */
12744    EAPI void         elm_anchorblock_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
12745    /**
12746     * Get the style that the hover should use
12747     *
12748     * Get the style, the hover created by anchorblock will use.
12749     *
12750     * @param obj The anchorblock object
12751     * @return The style to use by the hover. NULL means the default is used.
12752     *
12753     * @see elm_object_style_set()
12754     */
12755    EAPI const char  *elm_anchorblock_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12756    /**
12757     * Ends the hover popup in the anchorblock
12758     *
12759     * When an anchor is clicked, the anchorblock widget will create a hover
12760     * object to use as a popup with user provided content. This function
12761     * terminates this popup, returning the anchorblock to its normal state.
12762     *
12763     * @param obj The anchorblock object
12764     */
12765    EAPI void         elm_anchorblock_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
12766    /**
12767     * Appends a custom item provider to the given anchorblock
12768     *
12769     * Appends the given function to the list of items providers. This list is
12770     * called, one function at a time, with the given @p data pointer, the
12771     * anchorblock object and, in the @p item parameter, the item name as
12772     * referenced in its href string. Following functions in the list will be
12773     * called in order until one of them returns something different to NULL,
12774     * which should be an Evas_Object which will be used in place of the item
12775     * element.
12776     *
12777     * Items in the markup text take the form \<item relsize=16x16 vsize=full
12778     * href=item/name\>\</item\>
12779     *
12780     * @param obj The anchorblock object
12781     * @param func The function to add to the list of providers
12782     * @param data User data that will be passed to the callback function
12783     *
12784     * @see elm_entry_item_provider_append()
12785     */
12786    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);
12787    /**
12788     * Prepend a custom item provider to the given anchorblock
12789     *
12790     * Like elm_anchorblock_item_provider_append(), but it adds the function
12791     * @p func to the beginning of the list, instead of the end.
12792     *
12793     * @param obj The anchorblock object
12794     * @param func The function to add to the list of providers
12795     * @param data User data that will be passed to the callback function
12796     */
12797    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);
12798    /**
12799     * Remove a custom item provider from the list of the given anchorblock
12800     *
12801     * Removes the function and data pairing that matches @p func and @p data.
12802     * That is, unless the same function and same user data are given, the
12803     * function will not be removed from the list. This allows us to add the
12804     * same callback several times, with different @p data pointers and be
12805     * able to remove them later without conflicts.
12806     *
12807     * @param obj The anchorblock object
12808     * @param func The function to remove from the list
12809     * @param data The data matching the function to remove from the list
12810     */
12811    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);
12812    /**
12813     * @}
12814     */
12815
12816    /**
12817     * @defgroup Bubble Bubble
12818     *
12819     * @image html img/widget/bubble/preview-00.png
12820     * @image latex img/widget/bubble/preview-00.eps
12821     * @image html img/widget/bubble/preview-01.png
12822     * @image latex img/widget/bubble/preview-01.eps
12823     * @image html img/widget/bubble/preview-02.png
12824     * @image latex img/widget/bubble/preview-02.eps
12825     *
12826     * @brief The Bubble is a widget to show text similar to how speech is
12827     * represented in comics.
12828     *
12829     * The bubble widget contains 5 important visual elements:
12830     * @li The frame is a rectangle with rounded edjes and an "arrow".
12831     * @li The @p icon is an image to which the frame's arrow points to.
12832     * @li The @p label is a text which appears to the right of the icon if the
12833     * corner is "top_left" or "bottom_left" and is right aligned to the frame
12834     * otherwise.
12835     * @li The @p info is a text which appears to the right of the label. Info's
12836     * font is of a ligther color than label.
12837     * @li The @p content is an evas object that is shown inside the frame.
12838     *
12839     * The position of the arrow, icon, label and info depends on which corner is
12840     * selected. The four available corners are:
12841     * @li "top_left" - Default
12842     * @li "top_right"
12843     * @li "bottom_left"
12844     * @li "bottom_right"
12845     *
12846     * Signals that you can add callbacks for are:
12847     * @li "clicked" - This is called when a user has clicked the bubble.
12848     *
12849     * Default contents parts of the bubble that you can use for are:
12850     * @li "default" - A content of the bubble
12851     * @li "icon" - An icon of the bubble
12852     *
12853     * Default text parts of the button widget that you can use for are:
12854     * @li NULL - Label of the bubble
12855     *
12856          * For an example of using a buble see @ref bubble_01_example_page "this".
12857     *
12858     * @{
12859     */
12860
12861    /**
12862     * Add a new bubble to the parent
12863     *
12864     * @param parent The parent object
12865     * @return The new object or NULL if it cannot be created
12866     *
12867     * This function adds a text bubble to the given parent evas object.
12868     */
12869    EAPI Evas_Object *elm_bubble_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12870    /**
12871     * Set the label of the bubble
12872     *
12873     * @param obj The bubble object
12874     * @param label The string to set in the label
12875     *
12876     * This function sets the title of the bubble. Where this appears depends on
12877     * the selected corner.
12878     * @deprecated use elm_object_text_set() instead.
12879     */
12880    EINA_DEPRECATED EAPI void         elm_bubble_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
12881    /**
12882     * Get the label of the bubble
12883     *
12884     * @param obj The bubble object
12885     * @return The string of set in the label
12886     *
12887     * This function gets the title of the bubble.
12888     * @deprecated use elm_object_text_get() instead.
12889     */
12890    EINA_DEPRECATED EAPI const char  *elm_bubble_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12891    /**
12892     * Set the info of the bubble
12893     *
12894     * @param obj The bubble object
12895     * @param info The given info about the bubble
12896     *
12897     * This function sets the info of the bubble. Where this appears depends on
12898     * the selected corner.
12899     * @deprecated use elm_object_part_text_set() instead. (with "info" as the parameter).
12900     */
12901    EINA_DEPRECATED EAPI void         elm_bubble_info_set(Evas_Object *obj, const char *info) EINA_ARG_NONNULL(1);
12902    /**
12903     * Get the info of the bubble
12904     *
12905     * @param obj The bubble object
12906     *
12907     * @return The "info" string of the bubble
12908     *
12909     * This function gets the info text.
12910     * @deprecated use elm_object_part_text_get() instead. (with "info" as the parameter).
12911     */
12912    EINA_DEPRECATED EAPI const char  *elm_bubble_info_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12913    /**
12914     * Set the content to be shown in the bubble
12915     *
12916     * Once the content object is set, a previously set one will be deleted.
12917     * If you want to keep the old content object, use the
12918     * elm_bubble_content_unset() function.
12919     *
12920     * @param obj The bubble object
12921     * @param content The given content of the bubble
12922     *
12923     * This function sets the content shown on the middle of the bubble.
12924     *
12925     * @deprecated use elm_object_content_set() instead
12926     *
12927     */
12928    EINA_DEPRECATED EAPI void         elm_bubble_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
12929    /**
12930     * Get the content shown in the bubble
12931     *
12932     * Return the content object which is set for this widget.
12933     *
12934     * @param obj The bubble object
12935     * @return The content that is being used
12936     *
12937     * @deprecated use elm_object_content_get() instead
12938     *
12939     */
12940    EINA_DEPRECATED EAPI Evas_Object *elm_bubble_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12941    /**
12942     * Unset the content shown in the bubble
12943     *
12944     * Unparent and return the content object which was set for this widget.
12945     *
12946     * @param obj The bubble object
12947     * @return The content that was being used
12948     *
12949     * @deprecated use elm_object_content_unset() instead
12950     *
12951     */
12952    EINA_DEPRECATED EAPI Evas_Object *elm_bubble_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12953    /**
12954     * Set the icon of the bubble
12955     *
12956     * Once the icon object is set, a previously set one will be deleted.
12957     * If you want to keep the old content object, use the
12958     * elm_icon_content_unset() function.
12959     *
12960     * @param obj The bubble object
12961     * @param icon The given icon for the bubble
12962     *
12963     * @deprecated use elm_object_part_content_set() instead
12964     *
12965     */
12966    EINA_DEPRECATED EAPI void         elm_bubble_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
12967    /**
12968     * Get the icon of the bubble
12969     *
12970     * @param obj The bubble object
12971     * @return The icon for the bubble
12972     *
12973     * This function gets the icon shown on the top left of bubble.
12974     *
12975     * @deprecated use elm_object_part_content_get() instead
12976     *
12977     */
12978    EINA_DEPRECATED EAPI Evas_Object *elm_bubble_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12979    /**
12980     * Unset the icon of the bubble
12981     *
12982     * Unparent and return the icon object which was set for this widget.
12983     *
12984     * @param obj The bubble object
12985     * @return The icon that was being used
12986     *
12987     * @deprecated use elm_object_part_content_unset() instead
12988     *
12989     */
12990    EINA_DEPRECATED EAPI Evas_Object *elm_bubble_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12991    /**
12992     * Set the corner of the bubble
12993     *
12994     * @param obj The bubble object.
12995     * @param corner The given corner for the bubble.
12996     *
12997     * This function sets the corner of the bubble. The corner will be used to
12998     * determine where the arrow in the frame points to and where label, icon and
12999     * info are shown.
13000     *
13001     * Possible values for corner are:
13002     * @li "top_left" - Default
13003     * @li "top_right"
13004     * @li "bottom_left"
13005     * @li "bottom_right"
13006     */
13007    EAPI void         elm_bubble_corner_set(Evas_Object *obj, const char *corner) EINA_ARG_NONNULL(1, 2);
13008    /**
13009     * Get the corner of the bubble
13010     *
13011     * @param obj The bubble object.
13012     * @return The given corner for the bubble.
13013     *
13014     * This function gets the selected corner of the bubble.
13015     */
13016    EAPI const char  *elm_bubble_corner_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13017    /**
13018     * @}
13019     */
13020
13021    /**
13022     * @defgroup Photo Photo
13023     *
13024     * For displaying the photo of a person (contact). Simple, yet
13025     * with a very specific purpose.
13026     *
13027     * Signals that you can add callbacks for are:
13028     *
13029     * "clicked" - This is called when a user has clicked the photo
13030     * "drag,start" - Someone started dragging the image out of the object
13031     * "drag,end" - Dragged item was dropped (somewhere)
13032     *
13033     * @{
13034     */
13035
13036    /**
13037     * Add a new photo to the parent
13038     *
13039     * @param parent The parent object
13040     * @return The new object or NULL if it cannot be created
13041     *
13042     * @ingroup Photo
13043     */
13044    EAPI Evas_Object *elm_photo_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13045
13046    /**
13047     * Set the file that will be used as photo
13048     *
13049     * @param obj The photo object
13050     * @param file The path to file that will be used as photo
13051     *
13052     * @return (1 = success, 0 = error)
13053     *
13054     * @ingroup Photo
13055     */
13056    EAPI Eina_Bool    elm_photo_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
13057
13058     /**
13059     * Set the file that will be used as thumbnail in the photo.
13060     *
13061     * @param obj The photo object.
13062     * @param file The path to file that will be used as thumb.
13063     * @param group The key used in case of an EET file.
13064     *
13065     * @ingroup Photo
13066     */
13067    EAPI void         elm_photo_thumb_set(const Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
13068
13069    /**
13070     * Set the size that will be used on the photo
13071     *
13072     * @param obj The photo object
13073     * @param size The size that the photo will be
13074     *
13075     * @ingroup Photo
13076     */
13077    EAPI void         elm_photo_size_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
13078
13079    /**
13080     * Set if the photo should be completely visible or not.
13081     *
13082     * @param obj The photo object
13083     * @param fill if true the photo will be completely visible
13084     *
13085     * @ingroup Photo
13086     */
13087    EAPI void         elm_photo_fill_inside_set(Evas_Object *obj, Eina_Bool fill) EINA_ARG_NONNULL(1);
13088
13089    /**
13090     * Set editability of the photo.
13091     *
13092     * An editable photo can be dragged to or from, and can be cut or
13093     * pasted too.  Note that pasting an image or dropping an item on
13094     * the image will delete the existing content.
13095     *
13096     * @param obj The photo object.
13097     * @param set To set of clear editablity.
13098     */
13099    EAPI void         elm_photo_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
13100
13101    /**
13102     * @}
13103     */
13104
13105    /* gesture layer */
13106    /**
13107     * @defgroup Elm_Gesture_Layer Gesture Layer
13108     * Gesture Layer Usage:
13109     *
13110     * Use Gesture Layer to detect gestures.
13111     * The advantage is that you don't have to implement
13112     * gesture detection, just set callbacks of gesture state.
13113     * By using gesture layer we make standard interface.
13114     *
13115     * In order to use Gesture Layer you start with @ref elm_gesture_layer_add
13116     * with a parent object parameter.
13117     * Next 'activate' gesture layer with a @ref elm_gesture_layer_attach
13118     * call. Usually with same object as target (2nd parameter).
13119     *
13120     * Now you need to tell gesture layer what gestures you follow.
13121     * This is done with @ref elm_gesture_layer_cb_set call.
13122     * By setting the callback you actually saying to gesture layer:
13123     * I would like to know when the gesture @ref Elm_Gesture_Types
13124     * switches to state @ref Elm_Gesture_State.
13125     *
13126     * Next, you need to implement the actual action that follows the input
13127     * in your callback.
13128     *
13129     * Note that if you like to stop being reported about a gesture, just set
13130     * all callbacks referring this gesture to NULL.
13131     * (again with @ref elm_gesture_layer_cb_set)
13132     *
13133     * The information reported by gesture layer to your callback is depending
13134     * on @ref Elm_Gesture_Types:
13135     * @ref Elm_Gesture_Taps_Info is the info reported for tap gestures:
13136     * @ref ELM_GESTURE_N_TAPS, @ref ELM_GESTURE_N_LONG_TAPS,
13137     * @ref ELM_GESTURE_N_DOUBLE_TAPS, @ref ELM_GESTURE_N_TRIPLE_TAPS.
13138     *
13139     * @ref Elm_Gesture_Momentum_Info is info reported for momentum gestures:
13140     * @ref ELM_GESTURE_MOMENTUM.
13141     *
13142     * @ref Elm_Gesture_Line_Info is the info reported for line gestures:
13143     * (this also contains @ref Elm_Gesture_Momentum_Info internal structure)
13144     * @ref ELM_GESTURE_N_LINES, @ref ELM_GESTURE_N_FLICKS.
13145     * Note that we consider a flick as a line-gesture that should be completed
13146     * in flick-time-limit as defined in @ref Config.
13147     *
13148     * @ref Elm_Gesture_Zoom_Info is the info reported for @ref ELM_GESTURE_ZOOM gesture.
13149     *
13150     * @ref Elm_Gesture_Rotate_Info is the info reported for @ref ELM_GESTURE_ROTATE gesture.
13151     *
13152     *
13153     * Gesture Layer Tweaks:
13154     *
13155     * Note that line, flick, gestures can start without the need to remove fingers from surface.
13156     * When user fingers rests on same-spot gesture is ended and starts again when fingers moved.
13157     *
13158     * Setting glayer_continues_enable to false in @ref Config will change this behavior
13159     * so gesture starts when user touches (a *DOWN event) touch-surface
13160     * and ends when no fingers touches surface (a *UP event).
13161     */
13162
13163    /**
13164     * @enum _Elm_Gesture_Types
13165     * Enum of supported gesture types.
13166     * @ingroup Elm_Gesture_Layer
13167     */
13168    enum _Elm_Gesture_Types
13169      {
13170         ELM_GESTURE_FIRST = 0,
13171
13172         ELM_GESTURE_N_TAPS, /**< N fingers single taps */
13173         ELM_GESTURE_N_LONG_TAPS, /**< N fingers single long-taps */
13174         ELM_GESTURE_N_DOUBLE_TAPS, /**< N fingers double-single taps */
13175         ELM_GESTURE_N_TRIPLE_TAPS, /**< N fingers triple-single taps */
13176
13177         ELM_GESTURE_MOMENTUM, /**< Reports momentum in the dircetion of move */
13178
13179         ELM_GESTURE_N_LINES, /**< N fingers line gesture */
13180         ELM_GESTURE_N_FLICKS, /**< N fingers flick gesture */
13181
13182         ELM_GESTURE_ZOOM, /**< Zoom */
13183         ELM_GESTURE_ROTATE, /**< Rotate */
13184
13185         ELM_GESTURE_LAST
13186      };
13187
13188    /**
13189     * @typedef Elm_Gesture_Types
13190     * gesture types enum
13191     * @ingroup Elm_Gesture_Layer
13192     */
13193    typedef enum _Elm_Gesture_Types Elm_Gesture_Types;
13194
13195    /**
13196     * @enum _Elm_Gesture_State
13197     * Enum of gesture states.
13198     * @ingroup Elm_Gesture_Layer
13199     */
13200    enum _Elm_Gesture_State
13201      {
13202         ELM_GESTURE_STATE_UNDEFINED = -1, /**< Gesture not STARTed */
13203         ELM_GESTURE_STATE_START,          /**< Gesture STARTed     */
13204         ELM_GESTURE_STATE_MOVE,           /**< Gesture is ongoing  */
13205         ELM_GESTURE_STATE_END,            /**< Gesture completed   */
13206         ELM_GESTURE_STATE_ABORT    /**< Onging gesture was ABORTed */
13207      };
13208
13209    /**
13210     * @typedef Elm_Gesture_State
13211     * gesture states enum
13212     * @ingroup Elm_Gesture_Layer
13213     */
13214    typedef enum _Elm_Gesture_State Elm_Gesture_State;
13215
13216    /**
13217     * @struct _Elm_Gesture_Taps_Info
13218     * Struct holds taps info for user
13219     * @ingroup Elm_Gesture_Layer
13220     */
13221    struct _Elm_Gesture_Taps_Info
13222      {
13223         Evas_Coord x, y;         /**< Holds center point between fingers */
13224         unsigned int n;          /**< Number of fingers tapped           */
13225         unsigned int timestamp;  /**< event timestamp       */
13226      };
13227
13228    /**
13229     * @typedef Elm_Gesture_Taps_Info
13230     * holds taps info for user
13231     * @ingroup Elm_Gesture_Layer
13232     */
13233    typedef struct _Elm_Gesture_Taps_Info Elm_Gesture_Taps_Info;
13234
13235    /**
13236     * @struct _Elm_Gesture_Momentum_Info
13237     * Struct holds momentum info for user
13238     * x1 and y1 are not necessarily in sync
13239     * x1 holds x value of x direction starting point
13240     * and same holds for y1.
13241     * This is noticeable when doing V-shape movement
13242     * @ingroup Elm_Gesture_Layer
13243     */
13244    struct _Elm_Gesture_Momentum_Info
13245      {  /* Report line ends, timestamps, and momentum computed        */
13246         Evas_Coord x1; /**< Final-swipe direction starting point on X */
13247         Evas_Coord y1; /**< Final-swipe direction starting point on Y */
13248         Evas_Coord x2; /**< Final-swipe direction ending point on X   */
13249         Evas_Coord y2; /**< Final-swipe direction ending point on Y   */
13250
13251         unsigned int tx; /**< Timestamp of start of final x-swipe */
13252         unsigned int ty; /**< Timestamp of start of final y-swipe */
13253
13254         Evas_Coord mx; /**< Momentum on X */
13255         Evas_Coord my; /**< Momentum on Y */
13256
13257         unsigned int n;  /**< Number of fingers */
13258      };
13259
13260    /**
13261     * @typedef Elm_Gesture_Momentum_Info
13262     * holds momentum info for user
13263     * @ingroup Elm_Gesture_Layer
13264     */
13265     typedef struct _Elm_Gesture_Momentum_Info Elm_Gesture_Momentum_Info;
13266
13267    /**
13268     * @struct _Elm_Gesture_Line_Info
13269     * Struct holds line info for user
13270     * @ingroup Elm_Gesture_Layer
13271     */
13272    struct _Elm_Gesture_Line_Info
13273      {  /* Report line ends, timestamps, and momentum computed      */
13274         Elm_Gesture_Momentum_Info momentum; /**< Line momentum info */
13275         double angle;              /**< Angle (direction) of lines  */
13276      };
13277
13278    /**
13279     * @typedef Elm_Gesture_Line_Info
13280     * Holds line info for user
13281     * @ingroup Elm_Gesture_Layer
13282     */
13283     typedef struct  _Elm_Gesture_Line_Info Elm_Gesture_Line_Info;
13284
13285    /**
13286     * @struct _Elm_Gesture_Zoom_Info
13287     * Struct holds zoom info for user
13288     * @ingroup Elm_Gesture_Layer
13289     */
13290    struct _Elm_Gesture_Zoom_Info
13291      {
13292         Evas_Coord x, y;       /**< Holds zoom center point reported to user  */
13293         Evas_Coord radius; /**< Holds radius between fingers reported to user */
13294         double zoom;            /**< Zoom value: 1.0 means no zoom             */
13295         double momentum;        /**< Zoom momentum: zoom growth per second (NOT YET SUPPORTED) */
13296      };
13297
13298    /**
13299     * @typedef Elm_Gesture_Zoom_Info
13300     * Holds zoom info for user
13301     * @ingroup Elm_Gesture_Layer
13302     */
13303    typedef struct _Elm_Gesture_Zoom_Info Elm_Gesture_Zoom_Info;
13304
13305    /**
13306     * @struct _Elm_Gesture_Rotate_Info
13307     * Struct holds rotation info for user
13308     * @ingroup Elm_Gesture_Layer
13309     */
13310    struct _Elm_Gesture_Rotate_Info
13311      {
13312         Evas_Coord x, y;   /**< Holds zoom center point reported to user      */
13313         Evas_Coord radius; /**< Holds radius between fingers reported to user */
13314         double base_angle; /**< Holds start-angle */
13315         double angle;      /**< Rotation value: 0.0 means no rotation         */
13316         double momentum;   /**< Rotation momentum: rotation done per second (NOT YET SUPPORTED) */
13317      };
13318
13319    /**
13320     * @typedef Elm_Gesture_Rotate_Info
13321     * Holds rotation info for user
13322     * @ingroup Elm_Gesture_Layer
13323     */
13324    typedef struct _Elm_Gesture_Rotate_Info Elm_Gesture_Rotate_Info;
13325
13326    /**
13327     * @typedef Elm_Gesture_Event_Cb
13328     * User callback used to stream gesture info from gesture layer
13329     * @param data user data
13330     * @param event_info gesture report info
13331     * Returns a flag field to be applied on the causing event.
13332     * You should probably return EVAS_EVENT_FLAG_ON_HOLD if your widget acted
13333     * upon the event, in an irreversible way.
13334     *
13335     * @ingroup Elm_Gesture_Layer
13336     */
13337    typedef Evas_Event_Flags (*Elm_Gesture_Event_Cb) (void *data, void *event_info);
13338
13339    /**
13340     * Use function to set callbacks to be notified about
13341     * change of state of gesture.
13342     * When a user registers a callback with this function
13343     * this means this gesture has to be tested.
13344     *
13345     * When ALL callbacks for a gesture are set to NULL
13346     * it means user isn't interested in gesture-state
13347     * and it will not be tested.
13348     *
13349     * @param obj Pointer to gesture-layer.
13350     * @param idx The gesture you would like to track its state.
13351     * @param cb callback function pointer.
13352     * @param cb_type what event this callback tracks: START, MOVE, END, ABORT.
13353     * @param data user info to be sent to callback (usually, Smart Data)
13354     *
13355     * @ingroup Elm_Gesture_Layer
13356     */
13357    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);
13358
13359    /**
13360     * Call this function to get repeat-events settings.
13361     *
13362     * @param obj Pointer to gesture-layer.
13363     *
13364     * @return repeat events settings.
13365     * @see elm_gesture_layer_hold_events_set()
13366     * @ingroup Elm_Gesture_Layer
13367     */
13368    EAPI Eina_Bool elm_gesture_layer_hold_events_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
13369
13370    /**
13371     * This function called in order to make gesture-layer repeat events.
13372     * Set this of you like to get the raw events only if gestures were not detected.
13373     * Clear this if you like gesture layer to fwd events as testing gestures.
13374     *
13375     * @param obj Pointer to gesture-layer.
13376     * @param r Repeat: TRUE/FALSE
13377     *
13378     * @ingroup Elm_Gesture_Layer
13379     */
13380    EAPI void elm_gesture_layer_hold_events_set(Evas_Object *obj, Eina_Bool r) EINA_ARG_NONNULL(1);
13381
13382    /**
13383     * This function sets step-value for zoom action.
13384     * Set step to any positive value.
13385     * Cancel step setting by setting to 0.0
13386     *
13387     * @param obj Pointer to gesture-layer.
13388     * @param s new zoom step value.
13389     *
13390     * @ingroup Elm_Gesture_Layer
13391     */
13392    EAPI void elm_gesture_layer_zoom_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
13393
13394    /**
13395     * This function sets step-value for rotate action.
13396     * Set step to any positive value.
13397     * Cancel step setting by setting to 0.0
13398     *
13399     * @param obj Pointer to gesture-layer.
13400     * @param s new roatate step value.
13401     *
13402     * @ingroup Elm_Gesture_Layer
13403     */
13404    EAPI void elm_gesture_layer_rotate_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
13405
13406    /**
13407     * This function called to attach gesture-layer to an Evas_Object.
13408     * @param obj Pointer to gesture-layer.
13409     * @param t Pointer to underlying object (AKA Target)
13410     *
13411     * @return TRUE, FALSE on success, failure.
13412     *
13413     * @ingroup Elm_Gesture_Layer
13414     */
13415    EAPI Eina_Bool elm_gesture_layer_attach(Evas_Object *obj, Evas_Object *t) EINA_ARG_NONNULL(1, 2);
13416
13417    /**
13418     * Call this function to construct a new gesture-layer object.
13419     * This does not activate the gesture layer. You have to
13420     * call elm_gesture_layer_attach in order to 'activate' gesture-layer.
13421     *
13422     * @param parent the parent object.
13423     *
13424     * @return Pointer to new gesture-layer object.
13425     *
13426     * @ingroup Elm_Gesture_Layer
13427     */
13428    EAPI Evas_Object *elm_gesture_layer_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13429
13430    /**
13431     * @defgroup Thumb Thumb
13432     *
13433     * @image html img/widget/thumb/preview-00.png
13434     * @image latex img/widget/thumb/preview-00.eps
13435     *
13436     * A thumb object is used for displaying the thumbnail of an image or video.
13437     * You must have compiled Elementary with Ethumb_Client support and the DBus
13438     * service must be present and auto-activated in order to have thumbnails to
13439     * be generated.
13440     *
13441     * Once the thumbnail object becomes visible, it will check if there is a
13442     * previously generated thumbnail image for the file set on it. If not, it
13443     * will start generating this thumbnail.
13444     *
13445     * Different config settings will cause different thumbnails to be generated
13446     * even on the same file.
13447     *
13448     * Generated thumbnails are stored under @c $HOME/.thumbnails/. Check the
13449     * Ethumb documentation to change this path, and to see other configuration
13450     * options.
13451     *
13452     * Signals that you can add callbacks for are:
13453     *
13454     * - "clicked" - This is called when a user has clicked the thumb without dragging
13455     *             around.
13456     * - "clicked,double" - This is called when a user has double-clicked the thumb.
13457     * - "press" - This is called when a user has pressed down the thumb.
13458     * - "generate,start" - The thumbnail generation started.
13459     * - "generate,stop" - The generation process stopped.
13460     * - "generate,error" - The generation failed.
13461     * - "load,error" - The thumbnail image loading failed.
13462     *
13463     * available styles:
13464     * - default
13465     * - noframe
13466     *
13467     * An example of use of thumbnail:
13468     *
13469     * - @ref thumb_example_01
13470     */
13471
13472    /**
13473     * @addtogroup Thumb
13474     * @{
13475     */
13476
13477    /**
13478     * @enum _Elm_Thumb_Animation_Setting
13479     * @typedef Elm_Thumb_Animation_Setting
13480     *
13481     * Used to set if a video thumbnail is animating or not.
13482     *
13483     * @ingroup Thumb
13484     */
13485    typedef enum _Elm_Thumb_Animation_Setting
13486      {
13487         ELM_THUMB_ANIMATION_START = 0, /**< Play animation once */
13488         ELM_THUMB_ANIMATION_LOOP,      /**< Keep playing animation until stop is requested */
13489         ELM_THUMB_ANIMATION_STOP,      /**< Stop playing the animation */
13490         ELM_THUMB_ANIMATION_LAST
13491      } Elm_Thumb_Animation_Setting;
13492
13493    /**
13494     * Add a new thumb object to the parent.
13495     *
13496     * @param parent The parent object.
13497     * @return The new object or NULL if it cannot be created.
13498     *
13499     * @see elm_thumb_file_set()
13500     * @see elm_thumb_ethumb_client_get()
13501     *
13502     * @ingroup Thumb
13503     */
13504    EAPI Evas_Object                 *elm_thumb_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13505    /**
13506     * Reload thumbnail if it was generated before.
13507     *
13508     * @param obj The thumb object to reload
13509     *
13510     * This is useful if the ethumb client configuration changed, like its
13511     * size, aspect or any other property one set in the handle returned
13512     * by elm_thumb_ethumb_client_get().
13513     *
13514     * If the options didn't change, the thumbnail won't be generated again, but
13515     * the old one will still be used.
13516     *
13517     * @see elm_thumb_file_set()
13518     *
13519     * @ingroup Thumb
13520     */
13521    EAPI void                         elm_thumb_reload(Evas_Object *obj) EINA_ARG_NONNULL(1);
13522    /**
13523     * Set the file that will be used as thumbnail.
13524     *
13525     * @param obj The thumb object.
13526     * @param file The path to file that will be used as thumb.
13527     * @param key The key used in case of an EET file.
13528     *
13529     * The file can be an image or a video (in that case, acceptable extensions are:
13530     * avi, mp4, ogv, mov, mpg and wmv). To start the video animation, use the
13531     * function elm_thumb_animate().
13532     *
13533     * @see elm_thumb_file_get()
13534     * @see elm_thumb_reload()
13535     * @see elm_thumb_animate()
13536     *
13537     * @ingroup Thumb
13538     */
13539    EAPI void                         elm_thumb_file_set(Evas_Object *obj, const char *file, const char *key) EINA_ARG_NONNULL(1);
13540    /**
13541     * Get the image or video path and key used to generate the thumbnail.
13542     *
13543     * @param obj The thumb object.
13544     * @param file Pointer to filename.
13545     * @param key Pointer to key.
13546     *
13547     * @see elm_thumb_file_set()
13548     * @see elm_thumb_path_get()
13549     *
13550     * @ingroup Thumb
13551     */
13552    EAPI void                         elm_thumb_file_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
13553    /**
13554     * Get the path and key to the image or video generated by ethumb.
13555     *
13556     * One just need to make sure that the thumbnail was generated before getting
13557     * its path; otherwise, the path will be NULL. One way to do that is by asking
13558     * for the path when/after the "generate,stop" smart callback is called.
13559     *
13560     * @param obj The thumb object.
13561     * @param file Pointer to thumb path.
13562     * @param key Pointer to thumb key.
13563     *
13564     * @see elm_thumb_file_get()
13565     *
13566     * @ingroup Thumb
13567     */
13568    EAPI void                         elm_thumb_path_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
13569    /**
13570     * Set the animation state for the thumb object. If its content is an animated
13571     * video, you may start/stop the animation or tell it to play continuously and
13572     * looping.
13573     *
13574     * @param obj The thumb object.
13575     * @param setting The animation setting.
13576     *
13577     * @see elm_thumb_file_set()
13578     *
13579     * @ingroup Thumb
13580     */
13581    EAPI void                         elm_thumb_animate_set(Evas_Object *obj, Elm_Thumb_Animation_Setting s) EINA_ARG_NONNULL(1);
13582    /**
13583     * Get the animation state for the thumb object.
13584     *
13585     * @param obj The thumb object.
13586     * @return getting The animation setting or @c ELM_THUMB_ANIMATION_LAST,
13587     * on errors.
13588     *
13589     * @see elm_thumb_animate_set()
13590     *
13591     * @ingroup Thumb
13592     */
13593    EAPI Elm_Thumb_Animation_Setting  elm_thumb_animate_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13594    /**
13595     * Get the ethumb_client handle so custom configuration can be made.
13596     *
13597     * @return Ethumb_Client instance or NULL.
13598     *
13599     * This must be called before the objects are created to be sure no object is
13600     * visible and no generation started.
13601     *
13602     * Example of usage:
13603     *
13604     * @code
13605     * #include <Elementary.h>
13606     * #ifndef ELM_LIB_QUICKLAUNCH
13607     * EAPI_MAIN int
13608     * elm_main(int argc, char **argv)
13609     * {
13610     *    Ethumb_Client *client;
13611     *
13612     *    elm_need_ethumb();
13613     *
13614     *    // ... your code
13615     *
13616     *    client = elm_thumb_ethumb_client_get();
13617     *    if (!client)
13618     *      {
13619     *         ERR("could not get ethumb_client");
13620     *         return 1;
13621     *      }
13622     *    ethumb_client_size_set(client, 100, 100);
13623     *    ethumb_client_crop_align_set(client, 0.5, 0.5);
13624     *    // ... your code
13625     *
13626     *    // Create elm_thumb objects here
13627     *
13628     *    elm_run();
13629     *    elm_shutdown();
13630     *    return 0;
13631     * }
13632     * #endif
13633     * ELM_MAIN()
13634     * @endcode
13635     *
13636     * @note There's only one client handle for Ethumb, so once a configuration
13637     * change is done to it, any other request for thumbnails (for any thumbnail
13638     * object) will use that configuration. Thus, this configuration is global.
13639     *
13640     * @ingroup Thumb
13641     */
13642    EAPI void                        *elm_thumb_ethumb_client_get(void);
13643    /**
13644     * Get the ethumb_client connection state.
13645     *
13646     * @return EINA_TRUE if the client is connected to the server or EINA_FALSE
13647     * otherwise.
13648     */
13649    EAPI Eina_Bool                    elm_thumb_ethumb_client_connected(void);
13650    /**
13651     * Make the thumbnail 'editable'.
13652     *
13653     * @param obj Thumb object.
13654     * @param set Turn on or off editability. Default is @c EINA_FALSE.
13655     *
13656     * This means the thumbnail is a valid drag target for drag and drop, and can be
13657     * cut or pasted too.
13658     *
13659     * @see elm_thumb_editable_get()
13660     *
13661     * @ingroup Thumb
13662     */
13663    EAPI Eina_Bool                    elm_thumb_editable_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
13664    /**
13665     * Make the thumbnail 'editable'.
13666     *
13667     * @param obj Thumb object.
13668     * @return Editability.
13669     *
13670     * This means the thumbnail is a valid drag target for drag and drop, and can be
13671     * cut or pasted too.
13672     *
13673     * @see elm_thumb_editable_set()
13674     *
13675     * @ingroup Thumb
13676     */
13677    EAPI Eina_Bool                    elm_thumb_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13678
13679    /**
13680     * @}
13681     */
13682
13683    /**
13684     * @defgroup Web Web
13685     *
13686     * @image html img/widget/web/preview-00.png
13687     * @image latex img/widget/web/preview-00.eps
13688     *
13689     * A web object is used for displaying web pages (HTML/CSS/JS)
13690     * using WebKit-EFL. You must have compiled Elementary with
13691     * ewebkit support.
13692     *
13693     * Signals that you can add callbacks for are:
13694     * @li "download,request": A file download has been requested. Event info is
13695     * a pointer to a Elm_Web_Download
13696     * @li "editorclient,contents,changed": Editor client's contents changed
13697     * @li "editorclient,selection,changed": Editor client's selection changed
13698     * @li "frame,created": A new frame was created. Event info is an
13699     * Evas_Object which can be handled with WebKit's ewk_frame API
13700     * @li "icon,received": An icon was received by the main frame
13701     * @li "inputmethod,changed": Input method changed. Event info is an
13702     * Eina_Bool indicating whether it's enabled or not
13703     * @li "js,windowobject,clear": JS window object has been cleared
13704     * @li "link,hover,in": Mouse cursor is hovering over a link. Event info
13705     * is a char *link[2], where the first string contains the URL the link
13706     * points to, and the second one the title of the link
13707     * @li "link,hover,out": Mouse cursor left the link
13708     * @li "load,document,finished": Loading of a document finished. Event info
13709     * is the frame that finished loading
13710     * @li "load,error": Load failed. Event info is a pointer to
13711     * Elm_Web_Frame_Load_Error
13712     * @li "load,finished": Load finished. Event info is NULL on success, on
13713     * error it's a pointer to Elm_Web_Frame_Load_Error
13714     * @li "load,newwindow,show": A new window was created and is ready to be
13715     * shown
13716     * @li "load,progress": Overall load progress. Event info is a pointer to
13717     * a double containing a value between 0.0 and 1.0
13718     * @li "load,provisional": Started provisional load
13719     * @li "load,started": Loading of a document started
13720     * @li "menubar,visible,get": Queries if the menubar is visible. Event info
13721     * is a pointer to Eina_Bool where the callback should set EINA_TRUE if
13722     * the menubar is visible, or EINA_FALSE in case it's not
13723     * @li "menubar,visible,set": Informs menubar visibility. Event info is
13724     * an Eina_Bool indicating the visibility
13725     * @li "popup,created": A dropdown widget was activated, requesting its
13726     * popup menu to be created. Event info is a pointer to Elm_Web_Menu
13727     * @li "popup,willdelete": The web object is ready to destroy the popup
13728     * object created. Event info is a pointer to Elm_Web_Menu
13729     * @li "ready": Page is fully loaded
13730     * @li "scrollbars,visible,get": Queries visibility of scrollbars. Event
13731     * info is a pointer to Eina_Bool where the visibility state should be set
13732     * @li "scrollbars,visible,set": Informs scrollbars visibility. Event info
13733     * is an Eina_Bool with the visibility state set
13734     * @li "statusbar,text,set": Text of the statusbar changed. Even info is
13735     * a string with the new text
13736     * @li "statusbar,visible,get": Queries visibility of the status bar.
13737     * Event info is a pointer to Eina_Bool where the visibility state should be
13738     * set.
13739     * @li "statusbar,visible,set": Informs statusbar visibility. Event info is
13740     * an Eina_Bool with the visibility value
13741     * @li "title,changed": Title of the main frame changed. Event info is a
13742     * string with the new title
13743     * @li "toolbars,visible,get": Queries visibility of toolbars. Event info
13744     * is a pointer to Eina_Bool where the visibility state should be set
13745     * @li "toolbars,visible,set": Informs the visibility of toolbars. Event
13746     * info is an Eina_Bool with the visibility state
13747     * @li "tooltip,text,set": Show and set text of a tooltip. Event info is
13748     * a string with the text to show
13749     * @li "uri,changed": URI of the main frame changed. Event info is a string
13750     * with the new URI
13751     * @li "view,resized": The web object internal's view changed sized
13752     * @li "windows,close,request": A JavaScript request to close the current
13753     * window was requested
13754     * @li "zoom,animated,end": Animated zoom finished
13755     *
13756     * available styles:
13757     * - default
13758     *
13759     * An example of use of web:
13760     *
13761     * - @ref web_example_01 TBD
13762     */
13763
13764    /**
13765     * @addtogroup Web
13766     * @{
13767     */
13768
13769    /**
13770     * Structure used to report load errors.
13771     *
13772     * Load errors are reported as signal by elm_web. All the strings are
13773     * temporary references and should @b not be used after the signal
13774     * callback returns. If it's required, make copies with strdup() or
13775     * eina_stringshare_add() (they are not even guaranteed to be
13776     * stringshared, so must use eina_stringshare_add() and not
13777     * eina_stringshare_ref()).
13778     */
13779    typedef struct _Elm_Web_Frame_Load_Error Elm_Web_Frame_Load_Error;
13780    /**
13781     * Structure used to report load errors.
13782     *
13783     * Load errors are reported as signal by elm_web. All the strings are
13784     * temporary references and should @b not be used after the signal
13785     * callback returns. If it's required, make copies with strdup() or
13786     * eina_stringshare_add() (they are not even guaranteed to be
13787     * stringshared, so must use eina_stringshare_add() and not
13788     * eina_stringshare_ref()).
13789     */
13790    struct _Elm_Web_Frame_Load_Error
13791      {
13792         int code; /**< Numeric error code */
13793         Eina_Bool is_cancellation; /**< Error produced by cancelling a request */
13794         const char *domain; /**< Error domain name */
13795         const char *description; /**< Error description (already localized) */
13796         const char *failing_url; /**< The URL that failed to load */
13797         Evas_Object *frame; /**< Frame object that produced the error */
13798      };
13799
13800    /**
13801     * The possibles types that the items in a menu can be
13802     */
13803    typedef enum _Elm_Web_Menu_Item_Type
13804      {
13805         ELM_WEB_MENU_SEPARATOR,
13806         ELM_WEB_MENU_GROUP,
13807         ELM_WEB_MENU_OPTION
13808      } Elm_Web_Menu_Item_Type;
13809
13810    /**
13811     * Structure describing the items in a menu
13812     */
13813    typedef struct _Elm_Web_Menu_Item Elm_Web_Menu_Item;
13814    /**
13815     * Structure describing the items in a menu
13816     */
13817    struct _Elm_Web_Menu_Item
13818      {
13819         const char *text; /**< The text for the item */
13820         Elm_Web_Menu_Item_Type type; /**< The type of the item */
13821      };
13822
13823    /**
13824     * Structure describing the menu of a popup
13825     *
13826     * This structure will be passed as the @c event_info for the "popup,create"
13827     * signal, which is emitted when a dropdown menu is opened. Users wanting
13828     * to handle these popups by themselves should listen to this signal and
13829     * set the @c handled property of the struct to @c EINA_TRUE. Leaving this
13830     * property as @c EINA_FALSE means that the user will not handle the popup
13831     * and the default implementation will be used.
13832     *
13833     * When the popup is ready to be dismissed, a "popup,willdelete" signal
13834     * will be emitted to notify the user that it can destroy any objects and
13835     * free all data related to it.
13836     *
13837     * @see elm_web_popup_selected_set()
13838     * @see elm_web_popup_destroy()
13839     */
13840    typedef struct _Elm_Web_Menu Elm_Web_Menu;
13841    /**
13842     * Structure describing the menu of a popup
13843     *
13844     * This structure will be passed as the @c event_info for the "popup,create"
13845     * signal, which is emitted when a dropdown menu is opened. Users wanting
13846     * to handle these popups by themselves should listen to this signal and
13847     * set the @c handled property of the struct to @c EINA_TRUE. Leaving this
13848     * property as @c EINA_FALSE means that the user will not handle the popup
13849     * and the default implementation will be used.
13850     *
13851     * When the popup is ready to be dismissed, a "popup,willdelete" signal
13852     * will be emitted to notify the user that it can destroy any objects and
13853     * free all data related to it.
13854     *
13855     * @see elm_web_popup_selected_set()
13856     * @see elm_web_popup_destroy()
13857     */
13858    struct _Elm_Web_Menu
13859      {
13860         Eina_List *items; /**< List of #Elm_Web_Menu_Item */
13861         int x; /**< The X position of the popup, relative to the elm_web object */
13862         int y; /**< The Y position of the popup, relative to the elm_web object */
13863         int width; /**< Width of the popup menu */
13864         int height; /**< Height of the popup menu */
13865
13866         Eina_Bool handled : 1; /**< Set to @c EINA_TRUE by the user to indicate that the popup has been handled and the default implementation should be ignored. Leave as @c EINA_FALSE otherwise. */
13867      };
13868
13869    typedef struct _Elm_Web_Download Elm_Web_Download;
13870    struct _Elm_Web_Download
13871      {
13872         const char *url;
13873      };
13874
13875    /**
13876     * Types of zoom available.
13877     */
13878    typedef enum _Elm_Web_Zoom_Mode
13879      {
13880         ELM_WEB_ZOOM_MODE_MANUAL = 0, /**< Zoom controlled normally by elm_web_zoom_set */
13881         ELM_WEB_ZOOM_MODE_AUTO_FIT, /**< Zoom until content fits in web object */
13882         ELM_WEB_ZOOM_MODE_AUTO_FILL, /**< Zoom until content fills web object */
13883         ELM_WEB_ZOOM_MODE_LAST
13884      } Elm_Web_Zoom_Mode;
13885    /**
13886     * Opaque handler containing the features (such as statusbar, menubar, etc)
13887     * that are to be set on a newly requested window.
13888     */
13889    typedef struct _Elm_Web_Window_Features Elm_Web_Window_Features;
13890    /**
13891     * Callback type for the create_window hook.
13892     *
13893     * The function parameters are:
13894     * @li @p data User data pointer set when setting the hook function
13895     * @li @p obj The elm_web object requesting the new window
13896     * @li @p js Set to @c EINA_TRUE if the request was originated from
13897     * JavaScript. @c EINA_FALSE otherwise.
13898     * @li @p window_features A pointer of #Elm_Web_Window_Features indicating
13899     * the features requested for the new window.
13900     *
13901     * The returned value of the function should be the @c elm_web widget where
13902     * the request will be loaded. That is, if a new window or tab is created,
13903     * the elm_web widget in it should be returned, and @b NOT the window
13904     * object.
13905     * Returning @c NULL should cancel the request.
13906     *
13907     * @see elm_web_window_create_hook_set()
13908     */
13909    typedef Evas_Object *(*Elm_Web_Window_Open)(void *data, Evas_Object *obj, Eina_Bool js, const Elm_Web_Window_Features *window_features);
13910    /**
13911     * Callback type for the JS alert hook.
13912     *
13913     * The function parameters are:
13914     * @li @p data User data pointer set when setting the hook function
13915     * @li @p obj The elm_web object requesting the new window
13916     * @li @p message The message to show in the alert dialog
13917     *
13918     * The function should return the object representing the alert dialog.
13919     * Elm_Web will run a second main loop to handle the dialog and normal
13920     * flow of the application will be restored when the object is deleted, so
13921     * the user should handle the popup properly in order to delete the object
13922     * when the action is finished.
13923     * If the function returns @c NULL the popup will be ignored.
13924     *
13925     * @see elm_web_dialog_alert_hook_set()
13926     */
13927    typedef Evas_Object *(*Elm_Web_Dialog_Alert)(void *data, Evas_Object *obj, const char *message);
13928    /**
13929     * Callback type for the JS confirm hook.
13930     *
13931     * The function parameters are:
13932     * @li @p data User data pointer set when setting the hook function
13933     * @li @p obj The elm_web object requesting the new window
13934     * @li @p message The message to show in the confirm dialog
13935     * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
13936     * the user selected @c Ok, @c EINA_FALSE otherwise.
13937     *
13938     * The function should return the object representing the confirm dialog.
13939     * Elm_Web will run a second main loop to handle the dialog and normal
13940     * flow of the application will be restored when the object is deleted, so
13941     * the user should handle the popup properly in order to delete the object
13942     * when the action is finished.
13943     * If the function returns @c NULL the popup will be ignored.
13944     *
13945     * @see elm_web_dialog_confirm_hook_set()
13946     */
13947    typedef Evas_Object *(*Elm_Web_Dialog_Confirm)(void *data, Evas_Object *obj, const char *message, Eina_Bool *ret);
13948    /**
13949     * Callback type for the JS prompt hook.
13950     *
13951     * The function parameters are:
13952     * @li @p data User data pointer set when setting the hook function
13953     * @li @p obj The elm_web object requesting the new window
13954     * @li @p message The message to show in the prompt dialog
13955     * @li @p def_value The default value to present the user in the entry
13956     * @li @p value Pointer where to store the value given by the user. Must
13957     * be a malloc'ed string or @c NULL if the user cancelled the popup.
13958     * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
13959     * the user selected @c Ok, @c EINA_FALSE otherwise.
13960     *
13961     * The function should return the object representing the prompt dialog.
13962     * Elm_Web will run a second main loop to handle the dialog and normal
13963     * flow of the application will be restored when the object is deleted, so
13964     * the user should handle the popup properly in order to delete the object
13965     * when the action is finished.
13966     * If the function returns @c NULL the popup will be ignored.
13967     *
13968     * @see elm_web_dialog_prompt_hook_set()
13969     */
13970    typedef Evas_Object *(*Elm_Web_Dialog_Prompt)(void *data, Evas_Object *obj, const char *message, const char *def_value, char **value, Eina_Bool *ret);
13971    /**
13972     * Callback type for the JS file selector hook.
13973     *
13974     * The function parameters are:
13975     * @li @p data User data pointer set when setting the hook function
13976     * @li @p obj The elm_web object requesting the new window
13977     * @li @p allows_multiple @c EINA_TRUE if multiple files can be selected.
13978     * @li @p accept_types Mime types accepted
13979     * @li @p selected Pointer where to store the list of malloc'ed strings
13980     * containing the path to each file selected. Must be @c NULL if the file
13981     * dialog is cancelled
13982     * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
13983     * the user selected @c Ok, @c EINA_FALSE otherwise.
13984     *
13985     * The function should return the object representing the file selector
13986     * dialog.
13987     * Elm_Web will run a second main loop to handle the dialog and normal
13988     * flow of the application will be restored when the object is deleted, so
13989     * the user should handle the popup properly in order to delete the object
13990     * when the action is finished.
13991     * If the function returns @c NULL the popup will be ignored.
13992     *
13993     * @see elm_web_dialog_file selector_hook_set()
13994     */
13995    typedef Evas_Object *(*Elm_Web_Dialog_File_Selector)(void *data, Evas_Object *obj, Eina_Bool allows_multiple, Eina_List *accept_types, Eina_List **selected, Eina_Bool *ret);
13996    /**
13997     * Callback type for the JS console message hook.
13998     *
13999     * When a console message is added from JavaScript, any set function to the
14000     * console message hook will be called for the user to handle. There is no
14001     * default implementation of this hook.
14002     *
14003     * The function parameters are:
14004     * @li @p data User data pointer set when setting the hook function
14005     * @li @p obj The elm_web object that originated the message
14006     * @li @p message The message sent
14007     * @li @p line_number The line number
14008     * @li @p source_id Source id
14009     *
14010     * @see elm_web_console_message_hook_set()
14011     */
14012    typedef void (*Elm_Web_Console_Message)(void *data, Evas_Object *obj, const char *message, unsigned int line_number, const char *source_id);
14013    /**
14014     * Add a new web object to the parent.
14015     *
14016     * @param parent The parent object.
14017     * @return The new object or NULL if it cannot be created.
14018     *
14019     * @see elm_web_uri_set()
14020     * @see elm_web_webkit_view_get()
14021     */
14022    EAPI Evas_Object                 *elm_web_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14023
14024    /**
14025     * Get internal ewk_view object from web object.
14026     *
14027     * Elementary may not provide some low level features of EWebKit,
14028     * instead of cluttering the API with proxy methods we opted to
14029     * return the internal reference. Be careful using it as it may
14030     * interfere with elm_web behavior.
14031     *
14032     * @param obj The web object.
14033     * @return The internal ewk_view object or NULL if it does not
14034     *         exist. (Failure to create or Elementary compiled without
14035     *         ewebkit)
14036     *
14037     * @see elm_web_add()
14038     */
14039    EAPI Evas_Object                 *elm_web_webkit_view_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14040
14041    /**
14042     * Sets the function to call when a new window is requested
14043     *
14044     * This hook will be called when a request to create a new window is
14045     * issued from the web page loaded.
14046     * There is no default implementation for this feature, so leaving this
14047     * unset or passing @c NULL in @p func will prevent new windows from
14048     * opening.
14049     *
14050     * @param obj The web object where to set the hook function
14051     * @param func The hook function to be called when a window is requested
14052     * @param data User data
14053     */
14054    EAPI void                         elm_web_window_create_hook_set(Evas_Object *obj, Elm_Web_Window_Open func, void *data);
14055    /**
14056     * Sets the function to call when an alert dialog
14057     *
14058     * This hook will be called when a JavaScript alert dialog is requested.
14059     * If no function is set or @c NULL is passed in @p func, the default
14060     * implementation will take place.
14061     *
14062     * @param obj The web object where to set the hook function
14063     * @param func The callback function to be used
14064     * @param data User data
14065     *
14066     * @see elm_web_inwin_mode_set()
14067     */
14068    EAPI void                         elm_web_dialog_alert_hook_set(Evas_Object *obj, Elm_Web_Dialog_Alert func, void *data);
14069    /**
14070     * Sets the function to call when an confirm dialog
14071     *
14072     * This hook will be called when a JavaScript confirm dialog is requested.
14073     * If no function is set or @c NULL is passed in @p func, the default
14074     * implementation will take place.
14075     *
14076     * @param obj The web object where to set the hook function
14077     * @param func The callback function to be used
14078     * @param data User data
14079     *
14080     * @see elm_web_inwin_mode_set()
14081     */
14082    EAPI void                         elm_web_dialog_confirm_hook_set(Evas_Object *obj, Elm_Web_Dialog_Confirm func, void *data);
14083    /**
14084     * Sets the function to call when an prompt dialog
14085     *
14086     * This hook will be called when a JavaScript prompt dialog is requested.
14087     * If no function is set or @c NULL is passed in @p func, the default
14088     * implementation will take place.
14089     *
14090     * @param obj The web object where to set the hook function
14091     * @param func The callback function to be used
14092     * @param data User data
14093     *
14094     * @see elm_web_inwin_mode_set()
14095     */
14096    EAPI void                         elm_web_dialog_prompt_hook_set(Evas_Object *obj, Elm_Web_Dialog_Prompt func, void *data);
14097    /**
14098     * Sets the function to call when an file selector dialog
14099     *
14100     * This hook will be called when a JavaScript file selector dialog is
14101     * requested.
14102     * If no function is set or @c NULL is passed in @p func, the default
14103     * implementation will take place.
14104     *
14105     * @param obj The web object where to set the hook function
14106     * @param func The callback function to be used
14107     * @param data User data
14108     *
14109     * @see elm_web_inwin_mode_set()
14110     */
14111    EAPI void                         elm_web_dialog_file_selector_hook_set(Evas_Object *obj, Elm_Web_Dialog_File_Selector func, void *data);
14112    /**
14113     * Sets the function to call when a console message is emitted from JS
14114     *
14115     * This hook will be called when a console message is emitted from
14116     * JavaScript. There is no default implementation for this feature.
14117     *
14118     * @param obj The web object where to set the hook function
14119     * @param func The callback function to be used
14120     * @param data User data
14121     */
14122    EAPI void                         elm_web_console_message_hook_set(Evas_Object *obj, Elm_Web_Console_Message func, void *data);
14123    /**
14124     * Gets the status of the tab propagation
14125     *
14126     * @param obj The web object to query
14127     * @return EINA_TRUE if tab propagation is enabled, EINA_FALSE otherwise
14128     *
14129     * @see elm_web_tab_propagate_set()
14130     */
14131    EAPI Eina_Bool                    elm_web_tab_propagate_get(const Evas_Object *obj);
14132    /**
14133     * Sets whether to use tab propagation
14134     *
14135     * If tab propagation is enabled, whenever the user presses the Tab key,
14136     * Elementary will handle it and switch focus to the next widget.
14137     * The default value is disabled, where WebKit will handle the Tab key to
14138     * cycle focus though its internal objects, jumping to the next widget
14139     * only when that cycle ends.
14140     *
14141     * @param obj The web object
14142     * @param propagate Whether to propagate Tab keys to Elementary or not
14143     */
14144    EAPI void                         elm_web_tab_propagate_set(Evas_Object *obj, Eina_Bool propagate);
14145    /**
14146     * Sets the URI for the web object
14147     *
14148     * It must be a full URI, with resource included, in the form
14149     * http://www.enlightenment.org or file:///tmp/something.html
14150     *
14151     * @param obj The web object
14152     * @param uri The URI to set
14153     * @return EINA_TRUE if the URI could be, EINA_FALSE if an error occurred
14154     */
14155    EAPI Eina_Bool                    elm_web_uri_set(Evas_Object *obj, const char *uri);
14156    /**
14157     * Gets the current URI for the object
14158     *
14159     * The returned string must not be freed and is guaranteed to be
14160     * stringshared.
14161     *
14162     * @param obj The web object
14163     * @return A stringshared internal string with the current URI, or NULL on
14164     * failure
14165     */
14166    EAPI const char                  *elm_web_uri_get(const Evas_Object *obj);
14167    /**
14168     * Gets the current title
14169     *
14170     * The returned string must not be freed and is guaranteed to be
14171     * stringshared.
14172     *
14173     * @param obj The web object
14174     * @return A stringshared internal string with the current title, or NULL on
14175     * failure
14176     */
14177    EAPI const char                  *elm_web_title_get(const Evas_Object *obj);
14178    /**
14179     * Sets the background color to be used by the web object
14180     *
14181     * This is the color that will be used by default when the loaded page
14182     * does not set it's own. Color values are pre-multiplied.
14183     *
14184     * @param obj The web object
14185     * @param r Red component
14186     * @param g Green component
14187     * @param b Blue component
14188     * @param a Alpha component
14189     */
14190    EAPI void                         elm_web_bg_color_set(Evas_Object *obj, int r, int g, int b, int a);
14191    /**
14192     * Gets the background color to be used by the web object
14193     *
14194     * This is the color that will be used by default when the loaded page
14195     * does not set it's own. Color values are pre-multiplied.
14196     *
14197     * @param obj The web object
14198     * @param r Red component
14199     * @param g Green component
14200     * @param b Blue component
14201     * @param a Alpha component
14202     */
14203    EAPI void                         elm_web_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b, int *a);
14204    /**
14205     * Gets a copy of the currently selected text
14206     *
14207     * The string returned must be freed by the user when it's done with it.
14208     *
14209     * @param obj The web object
14210     * @return A newly allocated string, or NULL if nothing is selected or an
14211     * error occurred
14212     */
14213    EAPI char                        *elm_view_selection_get(const Evas_Object *obj);
14214    /**
14215     * Tells the web object which index in the currently open popup was selected
14216     *
14217     * When the user handles the popup creation from the "popup,created" signal,
14218     * it needs to tell the web object which item was selected by calling this
14219     * function with the index corresponding to the item.
14220     *
14221     * @param obj The web object
14222     * @param index The index selected
14223     *
14224     * @see elm_web_popup_destroy()
14225     */
14226    EAPI void                         elm_web_popup_selected_set(Evas_Object *obj, int index);
14227    /**
14228     * Dismisses an open dropdown popup
14229     *
14230     * When the popup from a dropdown widget is to be dismissed, either after
14231     * selecting an option or to cancel it, this function must be called, which
14232     * will later emit an "popup,willdelete" signal to notify the user that
14233     * any memory and objects related to this popup can be freed.
14234     *
14235     * @param obj The web object
14236     * @return EINA_TRUE if the menu was successfully destroyed, or EINA_FALSE
14237     * if there was no menu to destroy
14238     */
14239    EAPI Eina_Bool                    elm_web_popup_destroy(Evas_Object *obj);
14240    /**
14241     * Searches the given string in a document.
14242     *
14243     * @param obj The web object where to search the text
14244     * @param string String to search
14245     * @param case_sensitive If search should be case sensitive or not
14246     * @param forward If search is from cursor and on or backwards
14247     * @param wrap If search should wrap at the end
14248     *
14249     * @return @c EINA_TRUE if the given string was found, @c EINA_FALSE if not
14250     * or failure
14251     */
14252    EAPI Eina_Bool                    elm_web_text_search(const Evas_Object *obj, const char *string, Eina_Bool case_sensitive, Eina_Bool forward, Eina_Bool wrap);
14253    /**
14254     * Marks matches of the given string in a document.
14255     *
14256     * @param obj The web object where to search text
14257     * @param string String to match
14258     * @param case_sensitive If match should be case sensitive or not
14259     * @param highlight If matches should be highlighted
14260     * @param limit Maximum amount of matches, or zero to unlimited
14261     *
14262     * @return number of matched @a string
14263     */
14264    EAPI unsigned int                 elm_web_text_matches_mark(Evas_Object *obj, const char *string, Eina_Bool case_sensitive, Eina_Bool highlight, unsigned int limit);
14265    /**
14266     * Clears all marked matches in the document
14267     *
14268     * @param obj The web object
14269     *
14270     * @return EINA_TRUE on success, EINA_FALSE otherwise
14271     */
14272    EAPI Eina_Bool                    elm_web_text_matches_unmark_all(Evas_Object *obj);
14273    /**
14274     * Sets whether to highlight the matched marks
14275     *
14276     * If enabled, marks set with elm_web_text_matches_mark() will be
14277     * highlighted.
14278     *
14279     * @param obj The web object
14280     * @param highlight Whether to highlight the marks or not
14281     *
14282     * @return EINA_TRUE on success, EINA_FALSE otherwise
14283     */
14284    EAPI Eina_Bool                    elm_web_text_matches_highlight_set(Evas_Object *obj, Eina_Bool highlight);
14285    /**
14286     * Gets whether highlighting marks is enabled
14287     *
14288     * @param The web object
14289     *
14290     * @return EINA_TRUE is marks are set to be highlighted, EINA_FALSE
14291     * otherwise
14292     */
14293    EAPI Eina_Bool                    elm_web_text_matches_highlight_get(const Evas_Object *obj);
14294    /**
14295     * Gets the overall loading progress of the page
14296     *
14297     * Returns the estimated loading progress of the page, with a value between
14298     * 0.0 and 1.0. This is an estimated progress accounting for all the frames
14299     * included in the page.
14300     *
14301     * @param The web object
14302     *
14303     * @return A value between 0.0 and 1.0 indicating the progress, or -1.0 on
14304     * failure
14305     */
14306    EAPI double                       elm_web_load_progress_get(const Evas_Object *obj);
14307    /**
14308     * Stops loading the current page
14309     *
14310     * Cancels the loading of the current page in the web object. This will
14311     * cause a "load,error" signal to be emitted, with the is_cancellation
14312     * flag set to EINA_TRUE.
14313     *
14314     * @param obj The web object
14315     *
14316     * @return EINA_TRUE if the cancel was successful, EINA_FALSE otherwise
14317     */
14318    EAPI Eina_Bool                    elm_web_stop(Evas_Object *obj);
14319    /**
14320     * Requests a reload of the current document in the object
14321     *
14322     * @param obj The web object
14323     *
14324     * @return EINA_TRUE on success, EINA_FALSE otherwise
14325     */
14326    EAPI Eina_Bool                    elm_web_reload(Evas_Object *obj);
14327    /**
14328     * Requests a reload of the current document, avoiding any existing caches
14329     *
14330     * @param obj The web object
14331     *
14332     * @return EINA_TRUE on success, EINA_FALSE otherwise
14333     */
14334    EAPI Eina_Bool                    elm_web_reload_full(Evas_Object *obj);
14335    /**
14336     * Goes back one step in the browsing history
14337     *
14338     * This is equivalent to calling elm_web_object_navigate(obj, -1);
14339     *
14340     * @param obj The web object
14341     *
14342     * @return EINA_TRUE on success, EINA_FALSE otherwise
14343     *
14344     * @see elm_web_history_enable_set()
14345     * @see elm_web_back_possible()
14346     * @see elm_web_forward()
14347     * @see elm_web_navigate()
14348     */
14349    EAPI Eina_Bool                    elm_web_back(Evas_Object *obj);
14350    /**
14351     * Goes forward one step in the browsing history
14352     *
14353     * This is equivalent to calling elm_web_object_navigate(obj, 1);
14354     *
14355     * @param obj The web object
14356     *
14357     * @return EINA_TRUE on success, EINA_FALSE otherwise
14358     *
14359     * @see elm_web_history_enable_set()
14360     * @see elm_web_forward_possible()
14361     * @see elm_web_back()
14362     * @see elm_web_navigate()
14363     */
14364    EAPI Eina_Bool                    elm_web_forward(Evas_Object *obj);
14365    /**
14366     * Jumps the given number of steps in the browsing history
14367     *
14368     * The @p steps value can be a negative integer to back in history, or a
14369     * positive to move forward.
14370     *
14371     * @param obj The web object
14372     * @param steps The number of steps to jump
14373     *
14374     * @return EINA_TRUE on success, EINA_FALSE on error or if not enough
14375     * history exists to jump the given number of steps
14376     *
14377     * @see elm_web_history_enable_set()
14378     * @see elm_web_navigate_possible()
14379     * @see elm_web_back()
14380     * @see elm_web_forward()
14381     */
14382    EAPI Eina_Bool                    elm_web_navigate(Evas_Object *obj, int steps);
14383    /**
14384     * Queries whether it's possible to go back in history
14385     *
14386     * @param obj The web object
14387     *
14388     * @return EINA_TRUE if it's possible to back in history, EINA_FALSE
14389     * otherwise
14390     */
14391    EAPI Eina_Bool                    elm_web_back_possible(Evas_Object *obj);
14392    /**
14393     * Queries whether it's possible to go forward in history
14394     *
14395     * @param obj The web object
14396     *
14397     * @return EINA_TRUE if it's possible to forward in history, EINA_FALSE
14398     * otherwise
14399     */
14400    EAPI Eina_Bool                    elm_web_forward_possible(Evas_Object *obj);
14401    /**
14402     * Queries whether it's possible to jump the given number of steps
14403     *
14404     * The @p steps value can be a negative integer to back in history, or a
14405     * positive to move forward.
14406     *
14407     * @param obj The web object
14408     * @param steps The number of steps to check for
14409     *
14410     * @return EINA_TRUE if enough history exists to perform the given jump,
14411     * EINA_FALSE otherwise
14412     */
14413    EAPI Eina_Bool                    elm_web_navigate_possible(Evas_Object *obj, int steps);
14414    /**
14415     * Gets whether browsing history is enabled for the given object
14416     *
14417     * @param obj The web object
14418     *
14419     * @return EINA_TRUE if history is enabled, EINA_FALSE otherwise
14420     */
14421    EAPI Eina_Bool                    elm_web_history_enable_get(const Evas_Object *obj);
14422    /**
14423     * Enables or disables the browsing history
14424     *
14425     * @param obj The web object
14426     * @param enable Whether to enable or disable the browsing history
14427     */
14428    EAPI void                         elm_web_history_enable_set(Evas_Object *obj, Eina_Bool enable);
14429    /**
14430     * Sets the zoom level of the web object
14431     *
14432     * Zoom level matches the Webkit API, so 1.0 means normal zoom, with higher
14433     * values meaning zoom in and lower meaning zoom out. This function will
14434     * only affect the zoom level if the mode set with elm_web_zoom_mode_set()
14435     * is ::ELM_WEB_ZOOM_MODE_MANUAL.
14436     *
14437     * @param obj The web object
14438     * @param zoom The zoom level to set
14439     */
14440    EAPI void                         elm_web_zoom_set(Evas_Object *obj, double zoom);
14441    /**
14442     * Gets the current zoom level set on the web object
14443     *
14444     * Note that this is the zoom level set on the web object and not that
14445     * of the underlying Webkit one. In the ::ELM_WEB_ZOOM_MODE_MANUAL mode,
14446     * the two zoom levels should match, but for the other two modes the
14447     * Webkit zoom is calculated internally to match the chosen mode without
14448     * changing the zoom level set for the web object.
14449     *
14450     * @param obj The web object
14451     *
14452     * @return The zoom level set on the object
14453     */
14454    EAPI double                       elm_web_zoom_get(const Evas_Object *obj);
14455    /**
14456     * Sets the zoom mode to use
14457     *
14458     * The modes can be any of those defined in ::Elm_Web_Zoom_Mode, except
14459     * ::ELM_WEB_ZOOM_MODE_LAST. The default is ::ELM_WEB_ZOOM_MODE_MANUAL.
14460     *
14461     * ::ELM_WEB_ZOOM_MODE_MANUAL means the zoom level will be controlled
14462     * with the elm_web_zoom_set() function.
14463     * ::ELM_WEB_ZOOM_MODE_AUTO_FIT will calculate the needed zoom level to
14464     * make sure the entirety of the web object's contents are shown.
14465     * ::ELM_WEB_ZOOM_MODE_AUTO_FILL will calculate the needed zoom level to
14466     * fit the contents in the web object's size, without leaving any space
14467     * unused.
14468     *
14469     * @param obj The web object
14470     * @param mode The mode to set
14471     */
14472    EAPI void                         elm_web_zoom_mode_set(Evas_Object *obj, Elm_Web_Zoom_Mode mode);
14473    /**
14474     * Gets the currently set zoom mode
14475     *
14476     * @param obj The web object
14477     *
14478     * @return The current zoom mode set for the object, or
14479     * ::ELM_WEB_ZOOM_MODE_LAST on error
14480     */
14481    EAPI Elm_Web_Zoom_Mode            elm_web_zoom_mode_get(const Evas_Object *obj);
14482    /**
14483     * Shows the given region in the web object
14484     *
14485     * @param obj The web object
14486     * @param x The x coordinate of the region to show
14487     * @param y The y coordinate of the region to show
14488     * @param w The width of the region to show
14489     * @param h The height of the region to show
14490     */
14491    EAPI void                         elm_web_region_show(Evas_Object *obj, int x, int y, int w, int h);
14492    /**
14493     * Brings in the region to the visible area
14494     *
14495     * Like elm_web_region_show(), but it animates the scrolling of the object
14496     * to show the area
14497     *
14498     * @param obj The web object
14499     * @param x The x coordinate of the region to show
14500     * @param y The y coordinate of the region to show
14501     * @param w The width of the region to show
14502     * @param h The height of the region to show
14503     */
14504    EAPI void                         elm_web_region_bring_in(Evas_Object *obj, int x, int y, int w, int h);
14505    /**
14506     * Sets the default dialogs to use an Inwin instead of a normal window
14507     *
14508     * If set, then the default implementation for the JavaScript dialogs and
14509     * file selector will be opened in an Inwin. Otherwise they will use a
14510     * normal separated window.
14511     *
14512     * @param obj The web object
14513     * @param value EINA_TRUE to use Inwin, EINA_FALSE to use a normal window
14514     */
14515    EAPI void                         elm_web_inwin_mode_set(Evas_Object *obj, Eina_Bool value);
14516    /**
14517     * Gets whether Inwin mode is set for the current object
14518     *
14519     * @param obj The web object
14520     *
14521     * @return EINA_TRUE if Inwin mode is set, EINA_FALSE otherwise
14522     */
14523    EAPI Eina_Bool                    elm_web_inwin_mode_get(const Evas_Object *obj);
14524
14525    EAPI void                         elm_web_window_features_ref(Elm_Web_Window_Features *wf);
14526    EAPI void                         elm_web_window_features_unref(Elm_Web_Window_Features *wf);
14527    EAPI void                         elm_web_window_features_bool_property_get(const Elm_Web_Window_Features *wf, Eina_Bool *toolbar_visible, Eina_Bool *statusbar_visible, Eina_Bool *scrollbars_visible, Eina_Bool *menubar_visible, Eina_Bool *locationbar_visble, Eina_Bool *fullscreen);
14528    EAPI void                         elm_web_window_features_int_property_get(const Elm_Web_Window_Features *wf, int *x, int *y, int *w, int *h);
14529
14530    /**
14531     * @}
14532     */
14533
14534    /**
14535     * @defgroup Hoversel Hoversel
14536     *
14537     * @image html img/widget/hoversel/preview-00.png
14538     * @image latex img/widget/hoversel/preview-00.eps
14539     *
14540     * A hoversel is a button that pops up a list of items (automatically
14541     * choosing the direction to display) that have a label and, optionally, an
14542     * icon to select from. It is a convenience widget to avoid the need to do
14543     * all the piecing together yourself. It is intended for a small number of
14544     * items in the hoversel menu (no more than 8), though is capable of many
14545     * more.
14546     *
14547     * Signals that you can add callbacks for are:
14548     * "clicked" - the user clicked the hoversel button and popped up the sel
14549     * "selected" - an item in the hoversel list is selected. event_info is the item
14550     * "dismissed" - the hover is dismissed
14551     *
14552     * See @ref tutorial_hoversel for an example.
14553     * @{
14554     */
14555    typedef struct _Elm_Hoversel_Item Elm_Hoversel_Item; /**< Item of Elm_Hoversel. Sub-type of Elm_Widget_Item */
14556    /**
14557     * @brief Add a new Hoversel object
14558     *
14559     * @param parent The parent object
14560     * @return The new object or NULL if it cannot be created
14561     */
14562    EAPI Evas_Object       *elm_hoversel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14563    /**
14564     * @brief This sets the hoversel to expand horizontally.
14565     *
14566     * @param obj The hoversel object
14567     * @param horizontal If true, the hover will expand horizontally to the
14568     * right.
14569     *
14570     * @note The initial button will display horizontally regardless of this
14571     * setting.
14572     */
14573    EAPI void               elm_hoversel_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
14574    /**
14575     * @brief This returns whether the hoversel is set to expand horizontally.
14576     *
14577     * @param obj The hoversel object
14578     * @return If true, the hover will expand horizontally to the right.
14579     *
14580     * @see elm_hoversel_horizontal_set()
14581     */
14582    EAPI Eina_Bool          elm_hoversel_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14583    /**
14584     * @brief Set the Hover parent
14585     *
14586     * @param obj The hoversel object
14587     * @param parent The parent to use
14588     *
14589     * Sets the hover parent object, the area that will be darkened when the
14590     * hoversel is clicked. Should probably be the window that the hoversel is
14591     * in. See @ref Hover objects for more information.
14592     */
14593    EAPI void               elm_hoversel_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
14594    /**
14595     * @brief Get the Hover parent
14596     *
14597     * @param obj The hoversel object
14598     * @return The used parent
14599     *
14600     * Gets the hover parent object.
14601     *
14602     * @see elm_hoversel_hover_parent_set()
14603     */
14604    EAPI Evas_Object       *elm_hoversel_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14605    /**
14606     * @brief Set the hoversel button label
14607     *
14608     * @param obj The hoversel object
14609     * @param label The label text.
14610     *
14611     * This sets the label of the button that is always visible (before it is
14612     * clicked and expanded).
14613     *
14614     * @deprecated elm_object_text_set()
14615     */
14616    EINA_DEPRECATED EAPI void               elm_hoversel_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
14617    /**
14618     * @brief Get the hoversel button label
14619     *
14620     * @param obj The hoversel object
14621     * @return The label text.
14622     *
14623     * @deprecated elm_object_text_get()
14624     */
14625    EINA_DEPRECATED EAPI const char        *elm_hoversel_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14626    /**
14627     * @brief Set the icon of the hoversel button
14628     *
14629     * @param obj The hoversel object
14630     * @param icon The icon object
14631     *
14632     * Sets the icon of the button that is always visible (before it is clicked
14633     * and expanded).  Once the icon object is set, a previously set one will be
14634     * deleted, if you want to keep that old content object, use the
14635     * elm_hoversel_icon_unset() function.
14636     *
14637     * @see elm_object_content_set() for the button widget
14638     */
14639    EAPI void               elm_hoversel_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
14640    /**
14641     * @brief Get the icon of the hoversel button
14642     *
14643     * @param obj The hoversel object
14644     * @return The icon object
14645     *
14646     * Get the icon of the button that is always visible (before it is clicked
14647     * and expanded). Also see elm_object_content_get() for the button widget.
14648     *
14649     * @see elm_hoversel_icon_set()
14650     */
14651    EAPI Evas_Object       *elm_hoversel_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14652    /**
14653     * @brief Get and unparent the icon of the hoversel button
14654     *
14655     * @param obj The hoversel object
14656     * @return The icon object that was being used
14657     *
14658     * Unparent and return the icon of the button that is always visible
14659     * (before it is clicked and expanded).
14660     *
14661     * @see elm_hoversel_icon_set()
14662     * @see elm_object_content_unset() for the button widget
14663     */
14664    EAPI Evas_Object       *elm_hoversel_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
14665    /**
14666     * @brief This triggers the hoversel popup from code, the same as if the user
14667     * had clicked the button.
14668     *
14669     * @param obj The hoversel object
14670     */
14671    EAPI void               elm_hoversel_hover_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
14672    /**
14673     * @brief This dismisses the hoversel popup as if the user had clicked
14674     * outside the hover.
14675     *
14676     * @param obj The hoversel object
14677     */
14678    EAPI void               elm_hoversel_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
14679    /**
14680     * @brief Returns whether the hoversel is expanded.
14681     *
14682     * @param obj The hoversel object
14683     * @return  This will return EINA_TRUE if the hoversel is expanded or
14684     * EINA_FALSE if it is not expanded.
14685     */
14686    EAPI Eina_Bool          elm_hoversel_expanded_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14687    /**
14688     * @brief This will remove all the children items from the hoversel.
14689     *
14690     * @param obj The hoversel object
14691     *
14692     * @warning Should @b not be called while the hoversel is active; use
14693     * elm_hoversel_expanded_get() to check first.
14694     *
14695     * @see elm_hoversel_item_del_cb_set()
14696     * @see elm_hoversel_item_del()
14697     */
14698    EAPI void               elm_hoversel_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
14699    /**
14700     * @brief Get the list of items within the given hoversel.
14701     *
14702     * @param obj The hoversel object
14703     * @return Returns a list of Elm_Hoversel_Item*
14704     *
14705     * @see elm_hoversel_item_add()
14706     */
14707    EAPI const Eina_List   *elm_hoversel_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14708    /**
14709     * @brief Add an item to the hoversel button
14710     *
14711     * @param obj The hoversel object
14712     * @param label The text label to use for the item (NULL if not desired)
14713     * @param icon_file An image file path on disk to use for the icon or standard
14714     * icon name (NULL if not desired)
14715     * @param icon_type The icon type if relevant
14716     * @param func Convenience function to call when this item is selected
14717     * @param data Data to pass to item-related functions
14718     * @return A handle to the item added.
14719     *
14720     * This adds an item to the hoversel to show when it is clicked. Note: if you
14721     * need to use an icon from an edje file then use
14722     * elm_hoversel_item_icon_set() right after the this function, and set
14723     * icon_file to NULL here.
14724     *
14725     * For more information on what @p icon_file and @p icon_type are see the
14726     * @ref Icon "icon documentation".
14727     */
14728    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);
14729    /**
14730     * @brief Delete an item from the hoversel
14731     *
14732     * @param item The item to delete
14733     *
14734     * This deletes the item from the hoversel (should not be called while the
14735     * hoversel is active; use elm_hoversel_expanded_get() to check first).
14736     *
14737     * @see elm_hoversel_item_add()
14738     * @see elm_hoversel_item_del_cb_set()
14739     */
14740    EAPI void               elm_hoversel_item_del(Elm_Hoversel_Item *item) EINA_ARG_NONNULL(1);
14741    /**
14742     * @brief Set the function to be called when an item from the hoversel is
14743     * freed.
14744     *
14745     * @param item The item to set the callback on
14746     * @param func The function called
14747     *
14748     * That function will receive these parameters:
14749     * @li void *item_data
14750     * @li Evas_Object *the_item_object
14751     * @li Elm_Hoversel_Item *the_object_struct
14752     *
14753     * @see elm_hoversel_item_add()
14754     */
14755    EAPI void               elm_hoversel_item_del_cb_set(Elm_Hoversel_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
14756    /**
14757     * @brief This returns the data pointer supplied with elm_hoversel_item_add()
14758     * that will be passed to associated function callbacks.
14759     *
14760     * @param item The item to get the data from
14761     * @return The data pointer set with elm_hoversel_item_add()
14762     *
14763     * @see elm_hoversel_item_add()
14764     */
14765    EAPI void              *elm_hoversel_item_data_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
14766    /**
14767     * @brief This returns the label text of the given hoversel item.
14768     *
14769     * @param item The item to get the label
14770     * @return The label text of the hoversel item
14771     *
14772     * @see elm_hoversel_item_add()
14773     */
14774    EAPI const char        *elm_hoversel_item_label_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
14775    /**
14776     * @brief This sets the icon for the given hoversel item.
14777     *
14778     * @param item The item to set the icon
14779     * @param icon_file An image file path on disk to use for the icon or standard
14780     * icon name
14781     * @param icon_group The edje group to use if @p icon_file is an edje file. Set this
14782     * to NULL if the icon is not an edje file
14783     * @param icon_type The icon type
14784     *
14785     * The icon can be loaded from the standard set, from an image file, or from
14786     * an edje file.
14787     *
14788     * @see elm_hoversel_item_add()
14789     */
14790    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);
14791    /**
14792     * @brief Get the icon object of the hoversel item
14793     *
14794     * @param item The item to get the icon from
14795     * @param icon_file The image file path on disk used for the icon or standard
14796     * icon name
14797     * @param icon_group The edje group used if @p icon_file is an edje file. NULL
14798     * if the icon is not an edje file
14799     * @param icon_type The icon type
14800     *
14801     * @see elm_hoversel_item_icon_set()
14802     * @see elm_hoversel_item_add()
14803     */
14804    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);
14805    /**
14806     * @}
14807     */
14808
14809    /**
14810     * @defgroup Toolbar Toolbar
14811     * @ingroup Elementary
14812     *
14813     * @image html img/widget/toolbar/preview-00.png
14814     * @image latex img/widget/toolbar/preview-00.eps width=\textwidth
14815     *
14816     * @image html img/toolbar.png
14817     * @image latex img/toolbar.eps width=\textwidth
14818     *
14819     * A toolbar is a widget that displays a list of items inside
14820     * a box. It can be scrollable, show a menu with items that don't fit
14821     * to toolbar size or even crop them.
14822     *
14823     * Only one item can be selected at a time.
14824     *
14825     * Items can have multiple states, or show menus when selected by the user.
14826     *
14827     * Smart callbacks one can listen to:
14828     * - "clicked" - when the user clicks on a toolbar item and becomes selected.
14829     * - "language,changed" - when the program language changes
14830     *
14831     * Available styles for it:
14832     * - @c "default"
14833     * - @c "transparent" - no background or shadow, just show the content
14834     *
14835     * Default text parts of the toolbar items that you can use for are:
14836     * @li "default" - label of the toolbar item
14837     *  
14838     * List of examples:
14839     * @li @ref toolbar_example_01
14840     * @li @ref toolbar_example_02
14841     * @li @ref toolbar_example_03
14842     */
14843
14844    /**
14845     * @addtogroup Toolbar
14846     * @{
14847     */
14848
14849    /**
14850     * @enum _Elm_Toolbar_Shrink_Mode
14851     * @typedef Elm_Toolbar_Shrink_Mode
14852     *
14853     * Set toolbar's items display behavior, it can be scrollabel,
14854     * show a menu with exceeding items, or simply hide them.
14855     *
14856     * @note Default value is #ELM_TOOLBAR_SHRINK_MENU. It reads value
14857     * from elm config.
14858     *
14859     * Values <b> don't </b> work as bitmask, only one can be choosen.
14860     *
14861     * @see elm_toolbar_mode_shrink_set()
14862     * @see elm_toolbar_mode_shrink_get()
14863     *
14864     * @ingroup Toolbar
14865     */
14866    typedef enum _Elm_Toolbar_Shrink_Mode
14867      {
14868         ELM_TOOLBAR_SHRINK_NONE,   /**< Set toolbar minimun size to fit all the items. */
14869         ELM_TOOLBAR_SHRINK_HIDE,   /**< Hide exceeding items. */
14870         ELM_TOOLBAR_SHRINK_SCROLL, /**< Allow accessing exceeding items through a scroller. */
14871         ELM_TOOLBAR_SHRINK_MENU,   /**< Inserts a button to pop up a menu with exceeding items. */
14872         ELM_TOOLBAR_SHRINK_LAST    /**< Indicates error if returned by elm_toolbar_shrink_mode_get() */
14873      } Elm_Toolbar_Shrink_Mode;
14874
14875    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(). */
14876
14877    /**
14878     * Add a new toolbar widget to the given parent Elementary
14879     * (container) object.
14880     *
14881     * @param parent The parent object.
14882     * @return a new toolbar widget handle or @c NULL, on errors.
14883     *
14884     * This function inserts a new toolbar widget on the canvas.
14885     *
14886     * @ingroup Toolbar
14887     */
14888    EAPI Evas_Object            *elm_toolbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14889    /**
14890     * Set the icon size, in pixels, to be used by toolbar items.
14891     *
14892     * @param obj The toolbar object
14893     * @param icon_size The icon size in pixels
14894     *
14895     * @note Default value is @c 32. It reads value from elm config.
14896     *
14897     * @see elm_toolbar_icon_size_get()
14898     *
14899     * @ingroup Toolbar
14900     */
14901    EAPI void                    elm_toolbar_icon_size_set(Evas_Object *obj, int icon_size) EINA_ARG_NONNULL(1);
14902    /**
14903     * Get the icon size, in pixels, to be used by toolbar items.
14904     *
14905     * @param obj The toolbar object.
14906     * @return The icon size in pixels.
14907     *
14908     * @see elm_toolbar_icon_size_set() for details.
14909     *
14910     * @ingroup Toolbar
14911     */
14912    EAPI int                     elm_toolbar_icon_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14913    /**
14914     * Sets icon lookup order, for toolbar items' icons.
14915     *
14916     * @param obj The toolbar object.
14917     * @param order The icon lookup order.
14918     *
14919     * Icons added before calling this function will not be affected.
14920     * The default lookup order is #ELM_ICON_LOOKUP_THEME_FDO.
14921     *
14922     * @see elm_toolbar_icon_order_lookup_get()
14923     *
14924     * @ingroup Toolbar
14925     */
14926    EAPI void                    elm_toolbar_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
14927    /**
14928     * Gets the icon lookup order.
14929     *
14930     * @param obj The toolbar object.
14931     * @return The icon lookup order.
14932     *
14933     * @see elm_toolbar_icon_order_lookup_set() for details.
14934     *
14935     * @ingroup Toolbar
14936     */
14937    EAPI Elm_Icon_Lookup_Order   elm_toolbar_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14938    /**
14939     * Set whether the toolbar should always have an item selected.
14940     *
14941     * @param obj The toolbar object.
14942     * @param wrap @c EINA_TRUE to enable always-select mode or @c EINA_FALSE to
14943     * disable it.
14944     *
14945     * This will cause the toolbar to always have an item selected, and clicking
14946     * the selected item will not cause a selected event to be emitted. Enabling this mode
14947     * will immediately select the first toolbar item.
14948     *
14949     * Always-selected is disabled by default.
14950     *
14951     * @see elm_toolbar_always_select_mode_get().
14952     *
14953     * @ingroup Toolbar
14954     */
14955    EAPI void                    elm_toolbar_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
14956    /**
14957     * Get whether the toolbar should always have an item selected.
14958     *
14959     * @param obj The toolbar object.
14960     * @return @c EINA_TRUE means an item will always be selected, @c EINA_FALSE indicates
14961     * that it is possible to have no items selected. If @p obj is @c NULL, @c EINA_FALSE is returned.
14962     *
14963     * @see elm_toolbar_always_select_mode_set() for details.
14964     *
14965     * @ingroup Toolbar
14966     */
14967    EAPI Eina_Bool               elm_toolbar_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14968    /**
14969     * Set whether the toolbar items' should be selected by the user or not.
14970     *
14971     * @param obj The toolbar object.
14972     * @param wrap @c EINA_TRUE to disable selection or @c EINA_FALSE to
14973     * enable it.
14974     *
14975     * This will turn off the ability to select items entirely and they will
14976     * neither appear selected nor emit selected signals. The clicked
14977     * callback function will still be called.
14978     *
14979     * Selection is enabled by default.
14980     *
14981     * @see elm_toolbar_no_select_mode_get().
14982     *
14983     * @ingroup Toolbar
14984     */
14985    EAPI void                    elm_toolbar_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
14986
14987    /**
14988     * Set whether the toolbar items' should be selected by the user or not.
14989     *
14990     * @param obj The toolbar object.
14991     * @return @c EINA_TRUE means items can be selected. @c EINA_FALSE indicates
14992     * they can't. If @p obj is @c NULL, @c EINA_FALSE is returned.
14993     *
14994     * @see elm_toolbar_no_select_mode_set() for details.
14995     *
14996     * @ingroup Toolbar
14997     */
14998    EAPI Eina_Bool               elm_toolbar_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14999    /**
15000     * Append item to the toolbar.
15001     *
15002     * @param obj The toolbar object.
15003     * @param icon A string with icon name or the absolute path of an image file.
15004     * @param label The label of the item.
15005     * @param func The function to call when the item is clicked.
15006     * @param data The data to associate with the item for related callbacks.
15007     * @return The created item or @c NULL upon failure.
15008     *
15009     * A new item will be created and appended to the toolbar, i.e., will
15010     * be set as @b last item.
15011     *
15012     * Items created with this method can be deleted with
15013     * elm_toolbar_item_del().
15014     *
15015     * Associated @p data can be properly freed when item is deleted if a
15016     * callback function is set with elm_toolbar_item_del_cb_set().
15017     *
15018     * If a function is passed as argument, it will be called everytime this item
15019     * is selected, i.e., the user clicks over an unselected item.
15020     * If such function isn't needed, just passing
15021     * @c NULL as @p func is enough. The same should be done for @p data.
15022     *
15023     * Toolbar will load icon image from fdo or current theme.
15024     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
15025     * If an absolute path is provided it will load it direct from a file.
15026     *
15027     * @see elm_toolbar_item_icon_set()
15028     * @see elm_toolbar_item_del()
15029     * @see elm_toolbar_item_del_cb_set()
15030     *
15031     * @ingroup Toolbar
15032     */
15033    EAPI Elm_Object_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);
15034    /**
15035     * Prepend item to the toolbar.
15036     *
15037     * @param obj The toolbar object.
15038     * @param icon A string with icon name or the absolute path of an image file.
15039     * @param label The label of the item.
15040     * @param func The function to call when the item is clicked.
15041     * @param data The data to associate with the item for related callbacks.
15042     * @return The created item or @c NULL upon failure.
15043     *
15044     * A new item will be created and prepended to the toolbar, i.e., will
15045     * be set as @b first item.
15046     *
15047     * Items created with this method can be deleted with
15048     * elm_toolbar_item_del().
15049     *
15050     * Associated @p data can be properly freed when item is deleted if a
15051     * callback function is set with elm_toolbar_item_del_cb_set().
15052     *
15053     * If a function is passed as argument, it will be called everytime this item
15054     * is selected, i.e., the user clicks over an unselected item.
15055     * If such function isn't needed, just passing
15056     * @c NULL as @p func is enough. The same should be done for @p data.
15057     *
15058     * Toolbar will load icon image from fdo or current theme.
15059     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
15060     * If an absolute path is provided it will load it direct from a file.
15061     *
15062     * @see elm_toolbar_item_icon_set()
15063     * @see elm_toolbar_item_del()
15064     * @see elm_toolbar_item_del_cb_set()
15065     *
15066     * @ingroup Toolbar
15067     */
15068    EAPI Elm_Object_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);
15069    /**
15070     * Insert a new item into the toolbar object before item @p before.
15071     *
15072     * @param obj The toolbar object.
15073     * @param before The toolbar item to insert before.
15074     * @param icon A string with icon name or the absolute path of an image file.
15075     * @param label The label of the item.
15076     * @param func The function to call when the item is clicked.
15077     * @param data The data to associate with the item for related callbacks.
15078     * @return The created item or @c NULL upon failure.
15079     *
15080     * A new item will be created and added to the toolbar. Its position in
15081     * this toolbar will be just before item @p before.
15082     *
15083     * Items created with this method can be deleted with
15084     * elm_toolbar_item_del().
15085     *
15086     * Associated @p data can be properly freed when item is deleted if a
15087     * callback function is set with elm_toolbar_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 such function isn't needed, just passing
15092     * @c NULL as @p func is enough. The same should be done for @p data.
15093     *
15094     * Toolbar will load icon image from fdo or current theme.
15095     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
15096     * If an absolute path is provided it will load it direct from a file.
15097     *
15098     * @see elm_toolbar_item_icon_set()
15099     * @see elm_toolbar_item_del()
15100     * @see elm_toolbar_item_del_cb_set()
15101     *
15102     * @ingroup Toolbar
15103     */
15104    EAPI Elm_Object_Item       *elm_toolbar_item_insert_before(Evas_Object *obj, Elm_Object_Item *before, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
15105
15106    /**
15107     * Insert a new item into the toolbar object after item @p after.
15108     *
15109     * @param obj The toolbar object.
15110     * @param after The toolbar item to insert after.
15111     * @param icon A string with icon name or the absolute path of an image file.
15112     * @param label The label of the item.
15113     * @param func The function to call when the item is clicked.
15114     * @param data The data to associate with the item for related callbacks.
15115     * @return The created item or @c NULL upon failure.
15116     *
15117     * A new item will be created and added to the toolbar. Its position in
15118     * this toolbar will be just after item @p after.
15119     *
15120     * Items created with this method can be deleted with
15121     * elm_toolbar_item_del().
15122     *
15123     * Associated @p data can be properly freed when item is deleted if a
15124     * callback function is set with elm_toolbar_item_del_cb_set().
15125     *
15126     * If a function is passed as argument, it will be called everytime this item
15127     * is selected, i.e., the user clicks over an unselected item.
15128     * If such function isn't needed, just passing
15129     * @c NULL as @p func is enough. The same should be done for @p data.
15130     *
15131     * Toolbar will load icon image from fdo or current theme.
15132     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
15133     * If an absolute path is provided it will load it direct from a file.
15134     *
15135     * @see elm_toolbar_item_icon_set()
15136     * @see elm_toolbar_item_del()
15137     * @see elm_toolbar_item_del_cb_set()
15138     *
15139     * @ingroup Toolbar
15140     */
15141    EAPI Elm_Object_Item       *elm_toolbar_item_insert_after(Evas_Object *obj, Elm_Object_Item *after, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
15142    /**
15143     * Get the first item in the given toolbar widget's list of
15144     * items.
15145     *
15146     * @param obj The toolbar object
15147     * @return The first item or @c NULL, if it has no items (and on
15148     * errors)
15149     *
15150     * @see elm_toolbar_item_append()
15151     * @see elm_toolbar_last_item_get()
15152     *
15153     * @ingroup Toolbar
15154     */
15155    EAPI Elm_Object_Item       *elm_toolbar_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15156    /**
15157     * Get the last item in the given toolbar widget's list of
15158     * items.
15159     *
15160     * @param obj The toolbar object
15161     * @return The last item or @c NULL, if it has no items (and on
15162     * errors)
15163     *
15164     * @see elm_toolbar_item_prepend()
15165     * @see elm_toolbar_first_item_get()
15166     *
15167     * @ingroup Toolbar
15168     */
15169    EAPI Elm_Object_Item       *elm_toolbar_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15170    /**
15171     * Get the item after @p item in toolbar.
15172     *
15173     * @param it The toolbar item.
15174     * @return The item after @p item, or @c NULL if none or on failure.
15175     *
15176     * @note If it is the last item, @c NULL will be returned.
15177     *
15178     * @see elm_toolbar_item_append()
15179     *
15180     * @ingroup Toolbar
15181     */
15182    EAPI Elm_Object_Item       *elm_toolbar_item_next_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15183    /**
15184     * Get the item before @p item in toolbar.
15185     *
15186     * @param item The toolbar item.
15187     * @return The item before @p item, or @c NULL if none or on failure.
15188     *
15189     * @note If it is the first item, @c NULL will be returned.
15190     *
15191     * @see elm_toolbar_item_prepend()
15192     *
15193     * @ingroup Toolbar
15194     */
15195    EAPI Elm_Object_Item       *elm_toolbar_item_prev_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15196    /**
15197     * Get the toolbar object from an item.
15198     *
15199     * @param it The item.
15200     * @return The toolbar object.
15201     *
15202     * This returns the toolbar object itself that an item belongs to.
15203     *
15204          * @deprecated use elm_object_item_object_get() instead.
15205     * @ingroup Toolbar
15206     */
15207    EINA_DEPRECATED EAPI Evas_Object            *elm_toolbar_item_toolbar_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15208    /**
15209     * Set the priority of a toolbar item.
15210     *
15211     * @param it The toolbar item.
15212     * @param priority The item priority. The default is zero.
15213     *
15214     * This is used only when the toolbar shrink mode is set to
15215     * #ELM_TOOLBAR_SHRINK_MENU or #ELM_TOOLBAR_SHRINK_HIDE.
15216     * When space is less than required, items with low priority
15217     * will be removed from the toolbar and added to a dynamically-created menu,
15218     * while items with higher priority will remain on the toolbar,
15219     * with the same order they were added.
15220     *
15221     * @see elm_toolbar_item_priority_get()
15222     *
15223     * @ingroup Toolbar
15224     */
15225    EAPI void                    elm_toolbar_item_priority_set(Elm_Object_Item *it, int priority) EINA_ARG_NONNULL(1);
15226    /**
15227     * Get the priority of a toolbar item.
15228     *
15229     * @param it The toolbar item.
15230     * @return The @p item priority, or @c 0 on failure.
15231     *
15232     * @see elm_toolbar_item_priority_set() for details.
15233     *
15234     * @ingroup Toolbar
15235     */
15236    EAPI int                     elm_toolbar_item_priority_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15237    /**
15238     * Get the label of item.
15239     *
15240     * @param it The item of toolbar.
15241     * @return The label of item.
15242     *
15243     * The return value is a pointer to the label associated to @p item when
15244     * it was created, with function elm_toolbar_item_append() or similar,
15245     * or later,
15246     * with function elm_toolbar_item_label_set. If no label
15247     * was passed as argument, it will return @c NULL.
15248     *
15249     * @see elm_toolbar_item_label_set() for more details.
15250     * @see elm_toolbar_item_append()
15251     *
15252          * @deprecated use elm_object_item_text_get() instead.
15253     * @ingroup Toolbar
15254     */
15255    EINA_DEPRECATED EAPI const char             *elm_toolbar_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15256    /**
15257     * Set the label of item.
15258     *
15259     * @param it The item of toolbar.
15260     * @param text The label of item.
15261     *
15262     * The label to be displayed by the item.
15263     * Label will be placed at icons bottom (if set).
15264     *
15265     * If a label was passed as argument on item creation, with function
15266     * elm_toolbar_item_append() or similar, it will be already
15267     * displayed by the item.
15268     *
15269     * @see elm_toolbar_item_label_get()
15270     * @see elm_toolbar_item_append()
15271     *
15272          * @deprecated use elm_object_item_text_set() instead
15273     * @ingroup Toolbar
15274     */
15275    EINA_DEPRECATED EAPI void                    elm_toolbar_item_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
15276    /**
15277     * Return the data associated with a given toolbar widget item.
15278     *
15279     * @param it The toolbar widget item handle.
15280     * @return The data associated with @p item.
15281     *
15282     * @see elm_toolbar_item_data_set()
15283     *
15284          * @deprecated use elm_object_item_data_get() instead.
15285     * @ingroup Toolbar
15286     */
15287    EINA_DEPRECATED EAPI void                   *elm_toolbar_item_data_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15288    /**
15289     * Set the data associated with a given toolbar widget item.
15290     *
15291     * @param it The toolbar widget item handle
15292     * @param data The new data pointer to set to @p item.
15293     *
15294     * This sets new item data on @p item.
15295     *
15296     * @warning The old data pointer won't be touched by this function, so
15297     * the user had better to free that old data himself/herself.
15298     *
15299          * @deprecated use elm_object_item_data_set() instead.
15300     * @ingroup Toolbar
15301     */
15302    EINA_DEPRECATED EAPI void                    elm_toolbar_item_data_set(Elm_Object_Item *it, const void *data) EINA_ARG_NONNULL(1);
15303    /**
15304     * Returns a pointer to a toolbar item by its label.
15305     *
15306     * @param obj The toolbar object.
15307     * @param label The label of the item to find.
15308     *
15309     * @return The pointer to the toolbar item matching @p label or @c NULL
15310     * on failure.
15311     *
15312     * @ingroup Toolbar
15313     */
15314    EAPI Elm_Object_Item       *elm_toolbar_item_find_by_label(const Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
15315    /*
15316     * Get whether the @p item is selected or not.
15317     *
15318     * @param it The toolbar item.
15319     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
15320     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
15321     *
15322     * @see elm_toolbar_selected_item_set() for details.
15323     * @see elm_toolbar_item_selected_get()
15324     *
15325     * @ingroup Toolbar
15326     */
15327    EAPI Eina_Bool               elm_toolbar_item_selected_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15328    /**
15329     * Set the selected state of an item.
15330     *
15331     * @param it The toolbar item
15332     * @param selected The selected state
15333     *
15334     * This sets the selected state of the given item @p it.
15335     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
15336     *
15337     * If a new item is selected the previosly selected will be unselected.
15338     * Previoulsy selected item can be get with function
15339     * elm_toolbar_selected_item_get().
15340     *
15341     * Selected items will be highlighted.
15342     *
15343     * @see elm_toolbar_item_selected_get()
15344     * @see elm_toolbar_selected_item_get()
15345     *
15346     * @ingroup Toolbar
15347     */
15348    EAPI void                    elm_toolbar_item_selected_set(Elm_Object_Item *it, Eina_Bool selected) EINA_ARG_NONNULL(1);
15349    /**
15350     * Get the selected item.
15351     *
15352     * @param obj The toolbar object.
15353     * @return The selected toolbar item.
15354     *
15355     * The selected item can be unselected with function
15356     * elm_toolbar_item_selected_set().
15357     *
15358     * The selected item always will be highlighted on toolbar.
15359     *
15360     * @see elm_toolbar_selected_items_get()
15361     *
15362     * @ingroup Toolbar
15363     */
15364    EAPI Elm_Object_Item       *elm_toolbar_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15365    /**
15366     * Set the icon associated with @p item.
15367     *
15368     * @param obj The parent of this item.
15369     * @param it The toolbar item.
15370     * @param icon A string with icon name or the absolute path of an image file.
15371     *
15372     * Toolbar will load icon image from fdo or current theme.
15373     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
15374     * If an absolute path is provided it will load it direct from a file.
15375     *
15376     * @see elm_toolbar_icon_order_lookup_set()
15377     * @see elm_toolbar_icon_order_lookup_get()
15378     *
15379     * @ingroup Toolbar
15380     */
15381    EAPI void                    elm_toolbar_item_icon_set(Elm_Object_Item *it, const char *icon) EINA_ARG_NONNULL(1);
15382    /**
15383     * Get the string used to set the icon of @p item.
15384     *
15385     * @param it The toolbar item.
15386     * @return The string associated with the icon object.
15387     *
15388     * @see elm_toolbar_item_icon_set() for details.
15389     *
15390     * @ingroup Toolbar
15391     */
15392    EAPI const char             *elm_toolbar_item_icon_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15393    /**
15394     * Get the object of @p item.
15395     *
15396     * @param it The toolbar item.
15397     * @return The object
15398     *
15399     * @ingroup Toolbar
15400     */
15401    EAPI Evas_Object            *elm_toolbar_item_object_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15402    /**
15403     * Get the icon object of @p item.
15404     *
15405     * @param it The toolbar item.
15406     * @return The icon object
15407     *
15408     * @see elm_toolbar_item_icon_set(), elm_toolbar_item_icon_file_set(),
15409     * or elm_toolbar_item_icon_memfile_set() for details.
15410     *
15411     * @ingroup Toolbar
15412     */
15413    EAPI Evas_Object            *elm_toolbar_item_icon_object_get(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15414    /**
15415     * Set the icon associated with @p item to an image in a binary buffer.
15416     *
15417     * @param it The toolbar item.
15418     * @param img The binary data that will be used as an image
15419     * @param size The size of binary data @p img
15420     * @param format Optional format of @p img to pass to the image loader
15421     * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
15422     *
15423     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
15424     *
15425     * @note The icon image set by this function can be changed by
15426     * elm_toolbar_item_icon_set().
15427     *
15428     * @ingroup Toolbar
15429     */
15430    EAPI Eina_Bool elm_toolbar_item_icon_memfile_set(Elm_Object_Item *it, const void *img, size_t size, const char *format, const char *key) EINA_ARG_NONNULL(1);
15431
15432    /**
15433     * Set the icon associated with @p item to an image in a binary buffer.
15434     *
15435     * @param it The toolbar item.
15436     * @param file The file that contains the image
15437     * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
15438     *
15439     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
15440     *
15441     * @note The icon image set by this function can be changed by
15442     * elm_toolbar_item_icon_set().
15443     *
15444     * @ingroup Toolbar
15445     */
15446    EAPI Eina_Bool elm_toolbar_item_icon_file_set(Elm_Object_Item *it, const char *file, const char *key) EINA_ARG_NONNULL(1);
15447
15448    /**
15449     * Delete them item from the toolbar.
15450     *
15451     * @param it The item of toolbar to be deleted.
15452     *
15453     * @see elm_toolbar_item_append()
15454     * @see elm_toolbar_item_del_cb_set()
15455     *
15456     * @ingroup Toolbar
15457     */
15458    EAPI void                    elm_toolbar_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15459
15460    /**
15461     * Set the function called when a toolbar item is freed.
15462     *
15463     * @param it The item to set the callback on.
15464     * @param func The function called.
15465     *
15466     * If there is a @p func, then it will be called prior item's memory release.
15467     * That will be called with the following arguments:
15468     * @li item's data;
15469     * @li item's Evas object;
15470     * @li item itself;
15471     *
15472     * This way, a data associated to a toolbar item could be properly freed.
15473     *
15474     * @ingroup Toolbar
15475     */
15476    EAPI void                    elm_toolbar_item_del_cb_set(Elm_Object_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
15477
15478    /**
15479     * Get a value whether toolbar item is disabled or not.
15480     *
15481     * @param it The item.
15482     * @return The disabled state.
15483     *
15484     * @see elm_toolbar_item_disabled_set() for more details.
15485     *
15486     * @deprecated use elm_object_item_disabled_get() instead.
15487     * @ingroup Toolbar
15488     */
15489    EINA_DEPRECATED EAPI Eina_Bool               elm_toolbar_item_disabled_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15490
15491    /**
15492     * Sets the disabled/enabled state of a toolbar item.
15493     *
15494     * @param it The item.
15495     * @param disabled The disabled state.
15496     *
15497     * A disabled item cannot be selected or unselected. It will also
15498     * change its appearance (generally greyed out). This sets the
15499     * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
15500     * enabled).
15501     *
15502     * @deprecated use elm_object_item_disabled_set() instead.
15503     * @ingroup Toolbar
15504     */
15505    EINA_DEPRECATED EAPI void                    elm_toolbar_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
15506
15507    /**
15508     * Set or unset item as a separator.
15509     *
15510     * @param it The toolbar item.
15511     * @param setting @c EINA_TRUE to set item @p item as separator or
15512     * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
15513     *
15514     * Items aren't set as separator by default.
15515     *
15516     * If set as separator it will display separator theme, so won't display
15517     * icons or label.
15518     *
15519     * @see elm_toolbar_item_separator_get()
15520     *
15521     * @ingroup Toolbar
15522     */
15523    EAPI void                    elm_toolbar_item_separator_set(Elm_Object_Item *it, Eina_Bool separator) EINA_ARG_NONNULL(1);
15524
15525    /**
15526     * Get a value whether item is a separator or not.
15527     *
15528     * @param it The toolbar item.
15529     * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
15530     * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
15531     *
15532     * @see elm_toolbar_item_separator_set() for details.
15533     *
15534     * @ingroup Toolbar
15535     */
15536    EAPI Eina_Bool               elm_toolbar_item_separator_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15537
15538    /**
15539     * Set the shrink state of toolbar @p obj.
15540     *
15541     * @param obj The toolbar object.
15542     * @param shrink_mode Toolbar's items display behavior.
15543     *
15544     * The toolbar won't scroll if #ELM_TOOLBAR_SHRINK_NONE,
15545     * but will enforce a minimun size so all the items will fit, won't scroll
15546     * and won't show the items that don't fit if #ELM_TOOLBAR_SHRINK_HIDE,
15547     * will scroll if #ELM_TOOLBAR_SHRINK_SCROLL, and will create a button to
15548     * pop up excess elements with #ELM_TOOLBAR_SHRINK_MENU.
15549     *
15550     * @ingroup Toolbar
15551     */
15552    EAPI void                    elm_toolbar_mode_shrink_set(Evas_Object *obj, Elm_Toolbar_Shrink_Mode shrink_mode) EINA_ARG_NONNULL(1);
15553
15554    /**
15555     * Get the shrink mode of toolbar @p obj.
15556     *
15557     * @param obj The toolbar object.
15558     * @return Toolbar's items display behavior.
15559     *
15560     * @see elm_toolbar_mode_shrink_set() for details.
15561     *
15562     * @ingroup Toolbar
15563     */
15564    EAPI Elm_Toolbar_Shrink_Mode elm_toolbar_mode_shrink_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15565
15566    /**
15567     * Enable/disable homogeneous mode.
15568     *
15569     * @param obj The toolbar object
15570     * @param homogeneous Assume the items within the toolbar are of the
15571     * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
15572     *
15573     * This will enable the homogeneous mode where items are of the same size.
15574     * @see elm_toolbar_homogeneous_get()
15575     *
15576     * @ingroup Toolbar
15577     */
15578    EAPI void                    elm_toolbar_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
15579
15580    /**
15581     * Get whether the homogeneous mode is enabled.
15582     *
15583     * @param obj The toolbar object.
15584     * @return Assume the items within the toolbar are of the same height
15585     * and width (EINA_TRUE = on, EINA_FALSE = off).
15586     *
15587     * @see elm_toolbar_homogeneous_set()
15588     *
15589     * @ingroup Toolbar
15590     */
15591    EAPI Eina_Bool               elm_toolbar_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15592    /**
15593     * Set the parent object of the toolbar items' menus.
15594     *
15595     * @param obj The toolbar object.
15596     * @param parent The parent of the menu objects.
15597     *
15598     * Each item can be set as item menu, with elm_toolbar_item_menu_set().
15599     *
15600     * For more details about setting the parent for toolbar menus, see
15601     * elm_menu_parent_set().
15602     *
15603     * @see elm_menu_parent_set() for details.
15604     * @see elm_toolbar_item_menu_set() for details.
15605     *
15606     * @ingroup Toolbar
15607     */
15608    EAPI void                    elm_toolbar_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
15609    /**
15610     * Get the parent object of the toolbar items' menus.
15611     *
15612     * @param obj The toolbar object.
15613     * @return The parent of the menu objects.
15614     *
15615     * @see elm_toolbar_menu_parent_set() for details.
15616     *
15617     * @ingroup Toolbar
15618     */
15619    EAPI Evas_Object            *elm_toolbar_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15620    /**
15621     * Set the alignment of the items.
15622     *
15623     * @param obj The toolbar object.
15624     * @param align The new alignment, a float between <tt> 0.0 </tt>
15625     * and <tt> 1.0 </tt>.
15626     *
15627     * Alignment of toolbar items, from <tt> 0.0 </tt> to indicates to align
15628     * left, to <tt> 1.0 </tt>, to align to right. <tt> 0.5 </tt> centralize
15629     * items.
15630     *
15631     * Centered items by default.
15632     *
15633     * @see elm_toolbar_align_get()
15634     *
15635     * @ingroup Toolbar
15636     */
15637    EAPI void                    elm_toolbar_align_set(Evas_Object *obj, double align) EINA_ARG_NONNULL(1);
15638    /**
15639     * Get the alignment of the items.
15640     *
15641     * @param obj The toolbar object.
15642     * @return toolbar items alignment, a float between <tt> 0.0 </tt> and
15643     * <tt> 1.0 </tt>.
15644     *
15645     * @see elm_toolbar_align_set() for details.
15646     *
15647     * @ingroup Toolbar
15648     */
15649    EAPI double                  elm_toolbar_align_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15650    /**
15651     * Set whether the toolbar item opens a menu.
15652     *
15653     * @param it The toolbar item.
15654     * @param menu If @c EINA_TRUE, @p item will opens a menu when selected.
15655     *
15656     * A toolbar item can be set to be a menu, using this function.
15657     *
15658     * Once it is set to be a menu, it can be manipulated through the
15659     * menu-like function elm_toolbar_menu_parent_set() and the other
15660     * elm_menu functions, using the Evas_Object @c menu returned by
15661     * elm_toolbar_item_menu_get().
15662     *
15663     * So, items to be displayed in this item's menu should be added with
15664     * elm_menu_item_add().
15665     *
15666     * The following code exemplifies the most basic usage:
15667     * @code
15668     * tb = elm_toolbar_add(win)
15669     * item = elm_toolbar_item_append(tb, "refresh", "Menu", NULL, NULL);
15670     * elm_toolbar_item_menu_set(item, EINA_TRUE);
15671     * elm_toolbar_menu_parent_set(tb, win);
15672     * menu = elm_toolbar_item_menu_get(item);
15673     * elm_menu_item_add(menu, NULL, "edit-cut", "Cut", NULL, NULL);
15674     * menu_item = elm_menu_item_add(menu, NULL, "edit-copy", "Copy", NULL,
15675     * NULL);
15676     * @endcode
15677     *
15678     * @see elm_toolbar_item_menu_get()
15679     *
15680     * @ingroup Toolbar
15681     */
15682    EAPI void                    elm_toolbar_item_menu_set(Elm_Object_Item *it, Eina_Bool menu) EINA_ARG_NONNULL(1);
15683    /**
15684     * Get toolbar item's menu.
15685     *
15686     * @param it The toolbar item.
15687     * @return Item's menu object or @c NULL on failure.
15688     *
15689     * If @p item wasn't set as menu item with elm_toolbar_item_menu_set(),
15690     * this function will set it.
15691     *
15692     * @see elm_toolbar_item_menu_set() for details.
15693     *
15694     * @ingroup Toolbar
15695     */
15696    EAPI Evas_Object            *elm_toolbar_item_menu_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15697    /**
15698     * Add a new state to @p item.
15699     *
15700     * @param it The toolbar item.
15701     * @param icon A string with icon name or the absolute path of an image file.
15702     * @param label The label of the new state.
15703     * @param func The function to call when the item is clicked when this
15704     * state is selected.
15705     * @param data The data to associate with the state.
15706     * @return The toolbar item state, or @c NULL upon failure.
15707     *
15708     * Toolbar will load icon image from fdo or current theme.
15709     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
15710     * If an absolute path is provided it will load it direct from a file.
15711     *
15712     * States created with this function can be removed with
15713     * elm_toolbar_item_state_del().
15714     *
15715     * @see elm_toolbar_item_state_del()
15716     * @see elm_toolbar_item_state_sel()
15717     * @see elm_toolbar_item_state_get()
15718     *
15719     * @ingroup Toolbar
15720     */
15721    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_add(Elm_Object_Item *it, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
15722    /**
15723     * Delete a previoulsy added state to @p item.
15724     *
15725     * @param it The toolbar item.
15726     * @param state The state to be deleted.
15727     * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
15728     *
15729     * @see elm_toolbar_item_state_add()
15730     */
15731    EAPI Eina_Bool               elm_toolbar_item_state_del(Elm_Object_Item *it, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
15732    /**
15733     * Set @p state as the current state of @p it.
15734     *
15735     * @param it The toolbar item.
15736     * @param state The state to use.
15737     * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
15738     *
15739     * If @p state is @c NULL, it won't select any state and the default item's
15740     * icon and label will be used. It's the same behaviour than
15741     * elm_toolbar_item_state_unser().
15742     *
15743     * @see elm_toolbar_item_state_unset()
15744     *
15745     * @ingroup Toolbar
15746     */
15747    EAPI Eina_Bool               elm_toolbar_item_state_set(Elm_Object_Item *it, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
15748    /**
15749     * Unset the state of @p it.
15750     *
15751     * @param it The toolbar item.
15752     *
15753     * The default icon and label from this item will be displayed.
15754     *
15755     * @see elm_toolbar_item_state_set() for more details.
15756     *
15757     * @ingroup Toolbar
15758     */
15759    EAPI void                    elm_toolbar_item_state_unset(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15760    /**
15761     * Get the current state of @p it.
15762     *
15763     * @param it The toolbar item.
15764     * @return The selected state or @c NULL if none is selected or on failure.
15765     *
15766     * @see elm_toolbar_item_state_set() for details.
15767     * @see elm_toolbar_item_state_unset()
15768     * @see elm_toolbar_item_state_add()
15769     *
15770     * @ingroup Toolbar
15771     */
15772    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15773    /**
15774     * Get the state after selected state in toolbar's @p item.
15775     *
15776     * @param it The toolbar item to change state.
15777     * @return The state after current state, or @c NULL on failure.
15778     *
15779     * If last state is selected, this function will return first state.
15780     *
15781     * @see elm_toolbar_item_state_set()
15782     * @see elm_toolbar_item_state_add()
15783     *
15784     * @ingroup Toolbar
15785     */
15786    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_next(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15787    /**
15788     * Get the state before selected state in toolbar's @p item.
15789     *
15790     * @param it The toolbar item to change state.
15791     * @return The state before current state, or @c NULL on failure.
15792     *
15793     * If first state is selected, this function will return last state.
15794     *
15795     * @see elm_toolbar_item_state_set()
15796     * @see elm_toolbar_item_state_add()
15797     *
15798     * @ingroup Toolbar
15799     */
15800    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_prev(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15801    /**
15802     * Set the text to be shown in a given toolbar item's tooltips.
15803     *
15804     * @param it toolbar item.
15805     * @param text The text to set in the content.
15806     *
15807     * Setup the text as tooltip to object. The item can have only one tooltip,
15808     * so any previous tooltip data - set with this function or
15809     * elm_toolbar_item_tooltip_content_cb_set() - is removed.
15810     *
15811     * @see elm_object_tooltip_text_set() for more details.
15812     *
15813     * @ingroup Toolbar
15814     */
15815    EAPI void             elm_toolbar_item_tooltip_text_set(Elm_Object_Item *it, const char *text) EINA_ARG_NONNULL(1);
15816    /**
15817     * Set the content to be shown in the tooltip item.
15818     *
15819     * Setup the tooltip to item. The item can have only one tooltip,
15820     * so any previous tooltip data is removed. @p func(with @p data) will
15821     * be called every time that need show the tooltip and it should
15822     * return a valid Evas_Object. This object is then managed fully by
15823     * tooltip system and is deleted when the tooltip is gone.
15824     *
15825     * @param it the toolbar item being attached a tooltip.
15826     * @param func the function used to create the tooltip contents.
15827     * @param data what to provide to @a func as callback data/context.
15828     * @param del_cb called when data is not needed anymore, either when
15829     *        another callback replaces @a func, the tooltip is unset with
15830     *        elm_toolbar_item_tooltip_unset() or the owner @a item
15831     *        dies. This callback receives as the first parameter the
15832     *        given @a data, and @c event_info is the item.
15833     *
15834     * @see elm_object_tooltip_content_cb_set() for more details.
15835     *
15836     * @ingroup Toolbar
15837     */
15838    EAPI void             elm_toolbar_item_tooltip_content_cb_set(Elm_Object_Item *it, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) EINA_ARG_NONNULL(1);
15839    /**
15840     * Unset tooltip from item.
15841     *
15842     * @param it toolbar item to remove previously set tooltip.
15843     *
15844     * Remove tooltip from item. The callback provided as del_cb to
15845     * elm_toolbar_item_tooltip_content_cb_set() will be called to notify
15846     * it is not used anymore.
15847     *
15848     * @see elm_object_tooltip_unset() for more details.
15849     * @see elm_toolbar_item_tooltip_content_cb_set()
15850     *
15851     * @ingroup Toolbar
15852     */
15853    EAPI void             elm_toolbar_item_tooltip_unset(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15854    /**
15855     * Sets a different style for this item tooltip.
15856     *
15857     * @note before you set a style you should define a tooltip with
15858     *       elm_toolbar_item_tooltip_content_cb_set() or
15859     *       elm_toolbar_item_tooltip_text_set()
15860     *
15861     * @param it toolbar item with tooltip already set.
15862     * @param style the theme style to use (default, transparent, ...)
15863     *
15864     * @see elm_object_tooltip_style_set() for more details.
15865     *
15866     * @ingroup Toolbar
15867     */
15868    EAPI void             elm_toolbar_item_tooltip_style_set(Elm_Object_Item *it, const char *style) EINA_ARG_NONNULL(1);
15869    /**
15870     * Get the style for this item tooltip.
15871     *
15872     * @param it toolbar item with tooltip already set.
15873     * @return style the theme style in use, defaults to "default". If the
15874     *         object does not have a tooltip set, then NULL is returned.
15875     *
15876     * @see elm_object_tooltip_style_get() for more details.
15877     * @see elm_toolbar_item_tooltip_style_set()
15878     *
15879     * @ingroup Toolbar
15880     */
15881    EAPI const char      *elm_toolbar_item_tooltip_style_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15882    /**
15883     * Set the type of mouse pointer/cursor decoration to be shown,
15884     * when the mouse pointer is over the given toolbar widget item
15885     *
15886     * @param it toolbar item to customize cursor on
15887     * @param cursor the cursor type's name
15888     *
15889     * This function works analogously as elm_object_cursor_set(), but
15890     * here the cursor's changing area is restricted to the item's
15891     * area, and not the whole widget's. Note that that item cursors
15892     * have precedence over widget cursors, so that a mouse over an
15893     * item with custom cursor set will always show @b that cursor.
15894     *
15895     * If this function is called twice for an object, a previously set
15896     * cursor will be unset on the second call.
15897     *
15898     * @see elm_object_cursor_set()
15899     * @see elm_toolbar_item_cursor_get()
15900     * @see elm_toolbar_item_cursor_unset()
15901     *
15902     * @ingroup Toolbar
15903     */
15904    EAPI void             elm_toolbar_item_cursor_set(Elm_Object_Item *it, const char *cursor) EINA_ARG_NONNULL(1);
15905
15906    /*
15907     * Get the type of mouse pointer/cursor decoration set to be shown,
15908     * when the mouse pointer is over the given toolbar widget item
15909     *
15910     * @param it toolbar item with custom cursor set
15911     * @return the cursor type's name or @c NULL, if no custom cursors
15912     * were set to @p item (and on errors)
15913     *
15914     * @see elm_object_cursor_get()
15915     * @see elm_toolbar_item_cursor_set()
15916     * @see elm_toolbar_item_cursor_unset()
15917     *
15918     * @ingroup Toolbar
15919     */
15920    EAPI const char      *elm_toolbar_item_cursor_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15921
15922    /**
15923     * Unset any custom mouse pointer/cursor decoration set to be
15924     * shown, when the mouse pointer is over the given toolbar widget
15925     * item, thus making it show the @b default cursor again.
15926     *
15927     * @param it a toolbar item
15928     *
15929     * Use this call to undo any custom settings on this item's cursor
15930     * decoration, bringing it back to defaults (no custom style set).
15931     *
15932     * @see elm_object_cursor_unset()
15933     * @see elm_toolbar_item_cursor_set()
15934     *
15935     * @ingroup Toolbar
15936     */
15937    EAPI void             elm_toolbar_item_cursor_unset(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15938
15939    /**
15940     * Set a different @b style for a given custom cursor set for a
15941     * toolbar item.
15942     *
15943     * @param it toolbar item with custom cursor set
15944     * @param style the <b>theme style</b> to use (e.g. @c "default",
15945     * @c "transparent", etc)
15946     *
15947     * This function only makes sense when one is using custom mouse
15948     * cursor decorations <b>defined in a theme file</b>, which can have,
15949     * given a cursor name/type, <b>alternate styles</b> on it. It
15950     * works analogously as elm_object_cursor_style_set(), but here
15951     * applyed only to toolbar item objects.
15952     *
15953     * @warning Before you set a cursor style you should have definen a
15954     *       custom cursor previously on the item, with
15955     *       elm_toolbar_item_cursor_set()
15956     *
15957     * @see elm_toolbar_item_cursor_engine_only_set()
15958     * @see elm_toolbar_item_cursor_style_get()
15959     *
15960     * @ingroup Toolbar
15961     */
15962    EAPI void             elm_toolbar_item_cursor_style_set(Elm_Object_Item *it, const char *style) EINA_ARG_NONNULL(1);
15963
15964    /**
15965     * Get the current @b style set for a given toolbar item's custom
15966     * cursor
15967     *
15968     * @param it toolbar item with custom cursor set.
15969     * @return style the cursor style in use. If the object does not
15970     *         have a cursor set, then @c NULL is returned.
15971     *
15972     * @see elm_toolbar_item_cursor_style_set() for more details
15973     *
15974     * @ingroup Toolbar
15975     */
15976    EAPI const char      *elm_toolbar_item_cursor_style_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15977
15978    /**
15979     * Set if the (custom)cursor for a given toolbar item should be
15980     * searched in its theme, also, or should only rely on the
15981     * rendering engine.
15982     *
15983     * @param it item with custom (custom) cursor already set on
15984     * @param engine_only Use @c EINA_TRUE to have cursors looked for
15985     * only on those provided by the rendering engine, @c EINA_FALSE to
15986     * have them searched on the widget's theme, as well.
15987     *
15988     * @note This call is of use only if you've set a custom cursor
15989     * for toolbar items, with elm_toolbar_item_cursor_set().
15990     *
15991     * @note By default, cursors will only be looked for between those
15992     * provided by the rendering engine.
15993     *
15994     * @ingroup Toolbar
15995     */
15996    EAPI void             elm_toolbar_item_cursor_engine_only_set(Elm_Object_Item *it, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
15997
15998    /**
15999     * Get if the (custom) cursor for a given toolbar item is being
16000     * searched in its theme, also, or is only relying on the rendering
16001     * engine.
16002     *
16003     * @param it a toolbar item
16004     * @return @c EINA_TRUE, if cursors are being looked for only on
16005     * those provided by the rendering engine, @c EINA_FALSE if they
16006     * are being searched on the widget's theme, as well.
16007     *
16008     * @see elm_toolbar_item_cursor_engine_only_set(), for more details
16009     *
16010     * @ingroup Toolbar
16011     */
16012    EAPI Eina_Bool        elm_toolbar_item_cursor_engine_only_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16013
16014    /**
16015     * Change a toolbar's orientation
16016     * @param obj The toolbar object
16017     * @param vertical If @c EINA_TRUE, the toolbar is vertical
16018     * By default, a toolbar will be horizontal. Use this function to create a vertical toolbar.
16019     * @ingroup Toolbar
16020     * @deprecated use elm_toolbar_horizontal_set() instead.
16021     */
16022    EINA_DEPRECATED EAPI void             elm_toolbar_orientation_set(Evas_Object *obj, Eina_Bool vertical) EINA_ARG_NONNULL(1);
16023
16024    /**
16025     * Change a toolbar's orientation
16026     * @param obj The toolbar object
16027     * @param horizontal If @c EINA_TRUE, the toolbar is horizontal
16028     * By default, a toolbar will be horizontal. Use this function to create a vertical toolbar.
16029     * @ingroup Toolbar
16030     */
16031    EAPI void             elm_toolbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
16032
16033    /**
16034     * Get a toolbar's orientation
16035     * @param obj The toolbar object
16036     * @return If @c EINA_TRUE, the toolbar is vertical
16037     * By default, a toolbar will be horizontal. Use this function to determine whether a toolbar is vertical.
16038     * @ingroup Toolbar
16039     * @deprecated use elm_toolbar_horizontal_get() instead.
16040     */
16041    EINA_DEPRECATED EAPI Eina_Bool        elm_toolbar_orientation_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16042
16043    /**
16044     * Get a toolbar's orientation
16045     * @param obj The toolbar object
16046     * @return If @c EINA_TRUE, the toolbar is horizontal
16047     * By default, a toolbar will be horizontal. Use this function to determine whether a toolbar is vertical.
16048     * @ingroup Toolbar
16049     */
16050    EAPI Eina_Bool elm_toolbar_horizontal_get(const Evas_Object *obj);
16051    /**
16052     * @}
16053     */
16054
16055    /**
16056     * @defgroup Tooltips Tooltips
16057     *
16058     * The Tooltip is an (internal, for now) smart object used to show a
16059     * content in a frame on mouse hover of objects(or widgets), with
16060     * tips/information about them.
16061     *
16062     * @{
16063     */
16064
16065    EAPI double       elm_tooltip_delay_get(void);
16066    EAPI Eina_Bool    elm_tooltip_delay_set(double delay);
16067    EAPI void         elm_object_tooltip_show(Evas_Object *obj) EINA_ARG_NONNULL(1);
16068    EAPI void         elm_object_tooltip_hide(Evas_Object *obj) EINA_ARG_NONNULL(1);
16069    EAPI void         elm_object_tooltip_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1, 2);
16070    EAPI void         elm_object_tooltip_domain_translatable_text_set(Evas_Object *obj, const char *domain, const char *text) EINA_ARG_NONNULL(1, 3);
16071 #define elm_object_tooltip_translatable_text_set(obj, text) elm_object_tooltip_domain_translatable_text_set((obj), NULL, (text))
16072    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);
16073    EAPI void         elm_object_tooltip_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
16074    EAPI void         elm_object_tooltip_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
16075    EAPI const char  *elm_object_tooltip_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16076    EAPI Eina_Bool    elm_object_tooltip_window_mode_set(Evas_Object *obj, Eina_Bool disable) EINA_ARG_NONNULL(1);
16077    EAPI Eina_Bool    elm_object_tooltip_window_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16078
16079    /**
16080     * @}
16081     */
16082
16083    /**
16084     * @defgroup Cursors Cursors
16085     *
16086     * The Elementary cursor is an internal smart object used to
16087     * customize the mouse cursor displayed over objects (or
16088     * widgets). In the most common scenario, the cursor decoration
16089     * comes from the graphical @b engine Elementary is running
16090     * on. Those engines may provide different decorations for cursors,
16091     * and Elementary provides functions to choose them (think of X11
16092     * cursors, as an example).
16093     *
16094     * There's also the possibility of, besides using engine provided
16095     * cursors, also use ones coming from Edje theming files. Both
16096     * globally and per widget, Elementary makes it possible for one to
16097     * make the cursors lookup to be held on engines only or on
16098     * Elementary's theme file, too. To set cursor's hot spot,
16099     * two data items should be added to cursor's theme: "hot_x" and
16100     * "hot_y", that are the offset from upper-left corner of the cursor
16101     * (coordinates 0,0).
16102     *
16103     * @{
16104     */
16105
16106    /**
16107     * Set the cursor to be shown when mouse is over the object
16108     *
16109     * Set the cursor that will be displayed when mouse is over the
16110     * object. The object can have only one cursor set to it, so if
16111     * this function is called twice for an object, the previous set
16112     * will be unset.
16113     * If using X cursors, a definition of all the valid cursor names
16114     * is listed on Elementary_Cursors.h. If an invalid name is set
16115     * the default cursor will be used.
16116     *
16117     * @param obj the object being set a cursor.
16118     * @param cursor the cursor name to be used.
16119     *
16120     * @ingroup Cursors
16121     */
16122    EAPI void         elm_object_cursor_set(Evas_Object *obj, const char *cursor) EINA_ARG_NONNULL(1);
16123
16124    /**
16125     * Get the cursor to be shown when mouse is over the object
16126     *
16127     * @param obj an object with cursor already set.
16128     * @return the cursor name.
16129     *
16130     * @ingroup Cursors
16131     */
16132    EAPI const char  *elm_object_cursor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16133
16134    /**
16135     * Unset cursor for object
16136     *
16137     * Unset cursor for object, and set the cursor to default if the mouse
16138     * was over this object.
16139     *
16140     * @param obj Target object
16141     * @see elm_object_cursor_set()
16142     *
16143     * @ingroup Cursors
16144     */
16145    EAPI void         elm_object_cursor_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
16146
16147    /**
16148     * Sets a different style for this object cursor.
16149     *
16150     * @note before you set a style you should define a cursor with
16151     *       elm_object_cursor_set()
16152     *
16153     * @param obj an object with cursor already set.
16154     * @param style the theme style to use (default, transparent, ...)
16155     *
16156     * @ingroup Cursors
16157     */
16158    EAPI void         elm_object_cursor_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
16159
16160    /**
16161     * Get the style for this object cursor.
16162     *
16163     * @param obj an object with cursor already set.
16164     * @return style the theme style in use, defaults to "default". If the
16165     *         object does not have a cursor set, then NULL is returned.
16166     *
16167     * @ingroup Cursors
16168     */
16169    EAPI const char  *elm_object_cursor_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16170
16171    /**
16172     * Set if the cursor set should be searched on the theme or should use
16173     * the provided by the engine, only.
16174     *
16175     * @note before you set if should look on theme you should define a cursor
16176     * with elm_object_cursor_set(). By default it will only look for cursors
16177     * provided by the engine.
16178     *
16179     * @param obj an object with cursor already set.
16180     * @param engine_only boolean to define it cursors should be looked only
16181     * between the provided by the engine or searched on widget's theme as well.
16182     *
16183     * @ingroup Cursors
16184     */
16185    EAPI void         elm_object_cursor_engine_only_set(Evas_Object *obj, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
16186
16187    /**
16188     * Get the cursor engine only usage for this object cursor.
16189     *
16190     * @param obj an object with cursor already set.
16191     * @return engine_only boolean to define it cursors should be
16192     * looked only between the provided by the engine or searched on
16193     * widget's theme as well. If the object does not have a cursor
16194     * set, then EINA_FALSE is returned.
16195     *
16196     * @ingroup Cursors
16197     */
16198    EAPI Eina_Bool    elm_object_cursor_engine_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16199
16200    /**
16201     * Get the configured cursor engine only usage
16202     *
16203     * This gets the globally configured exclusive usage of engine cursors.
16204     *
16205     * @return 1 if only engine cursors should be used
16206     * @ingroup Cursors
16207     */
16208    EAPI int          elm_cursor_engine_only_get(void);
16209
16210    /**
16211     * Set the configured cursor engine only usage
16212     *
16213     * This sets the globally configured exclusive usage of engine cursors.
16214     * It won't affect cursors set before changing this value.
16215     *
16216     * @param engine_only If 1 only engine cursors will be enabled, if 0 will
16217     * look for them on theme before.
16218     * @return EINA_TRUE if value is valid and setted (0 or 1)
16219     * @ingroup Cursors
16220     */
16221    EAPI Eina_Bool    elm_cursor_engine_only_set(int engine_only);
16222
16223    /**
16224     * @}
16225     */
16226
16227    /**
16228     * @defgroup Menu Menu
16229     *
16230     * @image html img/widget/menu/preview-00.png
16231     * @image latex img/widget/menu/preview-00.eps
16232     *
16233     * A menu is a list of items displayed above its parent. When the menu is
16234     * showing its parent is darkened. Each item can have a sub-menu. The menu
16235     * object can be used to display a menu on a right click event, in a toolbar,
16236     * anywhere.
16237     *
16238     * Signals that you can add callbacks for are:
16239     * @li "clicked" - the user clicked the empty space in the menu to dismiss.
16240     *
16241     * Default contents parts of the menu items that you can use for are:
16242     * @li "default" - A main content of the menu item
16243     *
16244     * Default text parts of the menu items that you can use for are:
16245     * @li "default" - label in the menu item
16246     *
16247     * @see @ref tutorial_menu
16248     * @{
16249     */
16250
16251    /**
16252     * @brief Add a new menu to the parent
16253     *
16254     * @param parent The parent object.
16255     * @return The new object or NULL if it cannot be created.
16256     */
16257    EAPI Evas_Object       *elm_menu_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16258    /**
16259     * @brief Set the parent for the given menu widget
16260     *
16261     * @param obj The menu object.
16262     * @param parent The new parent.
16263     */
16264    EAPI void               elm_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
16265    /**
16266     * @brief Get the parent for the given menu widget
16267     *
16268     * @param obj The menu object.
16269     * @return The parent.
16270     *
16271     * @see elm_menu_parent_set()
16272     */
16273    EAPI Evas_Object       *elm_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16274    /**
16275     * @brief Move the menu to a new position
16276     *
16277     * @param obj The menu object.
16278     * @param x The new position.
16279     * @param y The new position.
16280     *
16281     * Sets the top-left position of the menu to (@p x,@p y).
16282     *
16283     * @note @p x and @p y coordinates are relative to parent.
16284     */
16285    EAPI void               elm_menu_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
16286    /**
16287     * @brief Close a opened menu
16288     *
16289     * @param obj the menu object
16290     * @return void
16291     *
16292     * Hides the menu and all it's sub-menus.
16293     */
16294    EAPI void               elm_menu_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
16295    /**
16296     * @brief Returns a list of @p item's items.
16297     *
16298     * @param obj The menu object
16299     * @return An Eina_List* of @p item's items
16300     */
16301    EAPI const Eina_List   *elm_menu_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16302    /**
16303     * @brief Get the Evas_Object of an Elm_Object_Item
16304     *
16305     * @param it The menu item object.
16306     * @return The edje object containing the swallowed content
16307     *
16308     * @warning Don't manipulate this object!
16309     *
16310     */
16311    EAPI Evas_Object       *elm_menu_item_object_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16312    /**
16313     * @brief Add an item at the end of the given menu widget
16314     *
16315     * @param obj The menu object.
16316     * @param parent The parent menu item (optional)
16317     * @param icon An icon display on the item. The icon will be destryed by the menu.
16318     * @param label The label of the item.
16319     * @param func Function called when the user select the item.
16320     * @param data Data sent by the callback.
16321     * @return Returns the new item.
16322     */
16323    EAPI Elm_Object_Item     *elm_menu_item_add(Evas_Object *obj, Elm_Object_Item *parent, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
16324    /**
16325     * @brief Add an object swallowed in an item at the end of the given menu
16326     * widget
16327     *
16328     * @param obj The menu object.
16329     * @param parent The parent menu item (optional)
16330     * @param subobj The object to swallow
16331     * @param func Function called when the user select the item.
16332     * @param data Data sent by the callback.
16333     * @return Returns the new item.
16334     *
16335     * Add an evas object as an item to the menu.
16336     */
16337    EAPI Elm_Object_Item     *elm_menu_item_add_object(Evas_Object *obj, Elm_Object_Item *parent, Evas_Object *subobj, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
16338    /**
16339     * @brief Set the label of a menu item
16340     *
16341     * @param it The menu item object.
16342     * @param label The label to set for @p item
16343     *
16344     * @warning Don't use this funcion on items created with
16345     * elm_menu_item_add_object() or elm_menu_item_separator_add().
16346     *
16347     * @deprecated Use elm_object_item_text_set() instead
16348     */
16349    EINA_DEPRECATED EAPI void               elm_menu_item_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
16350    /**
16351     * @brief Get the label of a menu item
16352     *
16353     * @param it The menu item object.
16354     * @return The label of @p item
16355          * @deprecated Use elm_object_item_text_get() instead
16356     */
16357    EINA_DEPRECATED EAPI const char        *elm_menu_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16358    /**
16359     * @brief Set the icon of a menu item to the standard icon with name @p icon
16360     *
16361     * @param it The menu item object.
16362     * @param icon The icon object to set for the content of @p item
16363     *
16364     * Once this icon is set, any previously set icon will be deleted.
16365     */
16366    EAPI void               elm_menu_item_object_icon_name_set(Elm_Object_Item *it, const char *icon) EINA_ARG_NONNULL(1, 2);
16367    /**
16368     * @brief Get the string representation from the icon of a menu item
16369     *
16370     * @param it The menu item object.
16371     * @return The string representation of @p item's icon or NULL
16372     *
16373     * @see elm_menu_item_object_icon_name_set()
16374     */
16375    EAPI const char        *elm_menu_item_object_icon_name_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16376    /**
16377     * @brief Set the content object of a menu item
16378     *
16379     * @param it The menu item object
16380     * @param The content object or NULL
16381     * @return EINA_TRUE on success, else EINA_FALSE
16382     *
16383     * Use this function to change the object swallowed by a menu item, deleting
16384     * any previously swallowed object.
16385     *
16386     * @deprecated Use elm_object_item_content_set() instead
16387     */
16388    EINA_DEPRECATED EAPI Eina_Bool          elm_menu_item_object_content_set(Elm_Object_Item *it, Evas_Object *obj) EINA_ARG_NONNULL(1);
16389    /**
16390     * @brief Get the content object of a menu item
16391     *
16392     * @param it The menu item object
16393     * @return The content object or NULL
16394     * @note If @p item was added with elm_menu_item_add_object, this
16395     * function will return the object passed, else it will return the
16396     * icon object.
16397     *
16398     * @see elm_menu_item_object_content_set()
16399     *
16400     * @deprecated Use elm_object_item_content_get() instead
16401     */
16402    EINA_DEPRECATED EAPI Evas_Object *elm_menu_item_object_content_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16403    /**
16404     * @brief Set the selected state of @p item.
16405     *
16406     * @param it The menu item object.
16407     * @param selected The selected/unselected state of the item
16408     */
16409    EAPI void               elm_menu_item_selected_set(Elm_Object_Item *it, Eina_Bool selected) EINA_ARG_NONNULL(1);
16410    /**
16411     * @brief Get the selected state of @p item.
16412     *
16413     * @param it The menu item object.
16414     * @return The selected/unselected state of the item
16415     *
16416     * @see elm_menu_item_selected_set()
16417     */
16418    EAPI Eina_Bool          elm_menu_item_selected_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16419    /**
16420     * @brief Set the disabled state of @p item.
16421     *
16422     * @param it The menu item object.
16423     * @param disabled The enabled/disabled state of the item
16424     * @deprecated Use elm_object_item_disabled_set() instead
16425     */
16426    EINA_DEPRECATED EAPI void               elm_menu_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
16427    /**
16428     * @brief Get the disabled state of @p item.
16429     *
16430     * @param it The menu item object.
16431     * @return The enabled/disabled state of the item
16432     *
16433     * @see elm_menu_item_disabled_set()
16434     * @deprecated Use elm_object_item_disabled_get() instead
16435     */
16436    EINA_DEPRECATED EAPI Eina_Bool          elm_menu_item_disabled_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16437    /**
16438     * @brief Add a separator item to menu @p obj under @p parent.
16439     *
16440     * @param obj The menu object
16441     * @param parent The item to add the separator under
16442     * @return The created item or NULL on failure
16443     *
16444     * This is item is a @ref Separator.
16445     */
16446    EAPI Elm_Object_Item     *elm_menu_item_separator_add(Evas_Object *obj, Elm_Object_Item *parent) EINA_ARG_NONNULL(1);
16447    /**
16448     * @brief Returns whether @p item is a separator.
16449     *
16450     * @param it The item to check
16451     * @return If true, @p item is a separator
16452     *
16453     * @see elm_menu_item_separator_add()
16454     */
16455    EAPI Eina_Bool          elm_menu_item_is_separator(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16456    /**
16457     * @brief Deletes an item from the menu.
16458     *
16459     * @param it The item to delete.
16460     *
16461     * @see elm_menu_item_add()
16462     */
16463    EAPI void               elm_menu_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16464    /**
16465     * @brief Set the function called when a menu item is deleted.
16466     *
16467     * @param it The item to set the callback on
16468     * @param func The function called
16469     *
16470     * @see elm_menu_item_add()
16471     * @see elm_menu_item_del()
16472     */
16473    EAPI void               elm_menu_item_del_cb_set(Elm_Object_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
16474    /**
16475     * @brief Returns the data associated with menu item @p item.
16476     *
16477     * @param it The item
16478     * @return The data associated with @p item or NULL if none was set.
16479     *
16480     * This is the data set with elm_menu_add() or elm_menu_item_data_set().
16481          *
16482          * @deprecated Use elm_object_item_data_get() instead
16483     */
16484    EINA_DEPRECATED EAPI void              *elm_menu_item_data_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16485    /**
16486     * @brief Sets the data to be associated with menu item @p item.
16487     *
16488     * @param it The item
16489     * @param data The data to be associated with @p item
16490          *
16491          * @deprecated Use elm_object_item_data_set() instead
16492     */
16493    EINA_DEPRECATED EAPI void               elm_menu_item_data_set(Elm_Object_Item *it, const void *data) EINA_ARG_NONNULL(1);
16494
16495    /**
16496     * @brief Returns a list of @p item's subitems.
16497     *
16498     * @param it The item
16499     * @return An Eina_List* of @p item's subitems
16500     *
16501     * @see elm_menu_add()
16502     */
16503    EAPI const Eina_List   *elm_menu_item_subitems_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16504    /**
16505     * @brief Get the position of a menu item
16506     *
16507     * @param it The menu item
16508     * @return The item's index
16509     *
16510     * This function returns the index position of a menu item in a menu.
16511     * For a sub-menu, this number is relative to the first item in the sub-menu.
16512     *
16513     * @note Index values begin with 0
16514     */
16515    EAPI unsigned int       elm_menu_item_index_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1) EINA_PURE;
16516    /**
16517     * @brief @brief Return a menu item's owner menu
16518     *
16519     * @param it The menu item
16520     * @return The menu object owning @p item, or NULL on failure
16521     *
16522     * Use this function to get the menu object owning an item.
16523     */
16524    EAPI Evas_Object       *elm_menu_item_menu_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1) EINA_PURE;
16525    /**
16526     * @brief Get the selected item in the menu
16527     *
16528     * @param obj The menu object
16529     * @return The selected item, or NULL if none
16530     *
16531     * @see elm_menu_item_selected_get()
16532     * @see elm_menu_item_selected_set()
16533     */
16534    EAPI Elm_Object_Item *elm_menu_selected_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
16535    /**
16536     * @brief Get the last item in the menu
16537     *
16538     * @param obj The menu object
16539     * @return The last item, or NULL if none
16540     */
16541    EAPI Elm_Object_Item *elm_menu_last_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
16542    /**
16543     * @brief Get the first item in the menu
16544     *
16545     * @param obj The menu object
16546     * @return The first item, or NULL if none
16547     */
16548    EAPI Elm_Object_Item *elm_menu_first_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
16549    /**
16550     * @brief Get the next item in the menu.
16551     *
16552     * @param it The menu item object.
16553     * @return The item after it, or NULL if none
16554     */
16555    EAPI Elm_Object_Item *elm_menu_item_next_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16556    /**
16557     * @brief Get the previous item in the menu.
16558     *
16559     * @param it The menu item object.
16560     * @return The item before it, or NULL if none
16561     */
16562    EAPI Elm_Object_Item *elm_menu_item_prev_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16563    /**
16564     * @}
16565     */
16566
16567    /**
16568     * @defgroup List List
16569     * @ingroup Elementary
16570     *
16571     * @image html img/widget/list/preview-00.png
16572     * @image latex img/widget/list/preview-00.eps width=\textwidth
16573     *
16574     * @image html img/list.png
16575     * @image latex img/list.eps width=\textwidth
16576     *
16577     * A list widget is a container whose children are displayed vertically or
16578     * horizontally, in order, and can be selected.
16579     * The list can accept only one or multiple items selection. Also has many
16580     * modes of items displaying.
16581     *
16582     * A list is a very simple type of list widget.  For more robust
16583     * lists, @ref Genlist should probably be used.
16584     *
16585     * Smart callbacks one can listen to:
16586     * - @c "activated" - The user has double-clicked or pressed
16587     *   (enter|return|spacebar) on an item. The @c event_info parameter
16588     *   is the item that was activated.
16589     * - @c "clicked,double" - The user has double-clicked an item.
16590     *   The @c event_info parameter is the item that was double-clicked.
16591     * - "selected" - when the user selected an item
16592     * - "unselected" - when the user unselected an item
16593     * - "longpressed" - an item in the list is long-pressed
16594     * - "edge,top" - the list is scrolled until the top edge
16595     * - "edge,bottom" - the list is scrolled until the bottom edge
16596     * - "edge,left" - the list is scrolled until the left edge
16597     * - "edge,right" - the list is scrolled until the right edge
16598     * - "language,changed" - the program's language changed
16599     *
16600     * Available styles for it:
16601     * - @c "default"
16602     *
16603     * List of examples:
16604     * @li @ref list_example_01
16605     * @li @ref list_example_02
16606     * @li @ref list_example_03
16607     */
16608
16609    /**
16610     * @addtogroup List
16611     * @{
16612     */
16613
16614    /**
16615     * @enum _Elm_List_Mode
16616     * @typedef Elm_List_Mode
16617     *
16618     * Set list's resize behavior, transverse axis scroll and
16619     * items cropping. See each mode's description for more details.
16620     *
16621     * @note Default value is #ELM_LIST_SCROLL.
16622     *
16623     * Values <b> don't </b> work as bitmask, only one can be choosen.
16624     *
16625     * @see elm_list_mode_set()
16626     * @see elm_list_mode_get()
16627     *
16628     * @ingroup List
16629     */
16630    typedef enum _Elm_List_Mode
16631      {
16632         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. */
16633         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). */
16634         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. */
16635         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. */
16636         ELM_LIST_LAST /**< Indicates error if returned by elm_list_mode_get() */
16637      } Elm_List_Mode;
16638
16639    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().  */
16640
16641    /**
16642     * Add a new list widget to the given parent Elementary
16643     * (container) object.
16644     *
16645     * @param parent The parent object.
16646     * @return a new list widget handle or @c NULL, on errors.
16647     *
16648     * This function inserts a new list widget on the canvas.
16649     *
16650     * @ingroup List
16651     */
16652    EAPI Evas_Object     *elm_list_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16653
16654    /**
16655     * Starts the list.
16656     *
16657     * @param obj The list object
16658     *
16659     * @note Call before running show() on the list object.
16660     * @warning If not called, it won't display the list properly.
16661     *
16662     * @code
16663     * li = elm_list_add(win);
16664     * elm_list_item_append(li, "First", NULL, NULL, NULL, NULL);
16665     * elm_list_item_append(li, "Second", NULL, NULL, NULL, NULL);
16666     * elm_list_go(li);
16667     * evas_object_show(li);
16668     * @endcode
16669     *
16670     * @ingroup List
16671     */
16672    EAPI void             elm_list_go(Evas_Object *obj) EINA_ARG_NONNULL(1);
16673
16674    /**
16675     * Enable or disable multiple items selection on the list object.
16676     *
16677     * @param obj The list object
16678     * @param multi @c EINA_TRUE to enable multi selection or @c EINA_FALSE to
16679     * disable it.
16680     *
16681     * Disabled by default. If disabled, the user can select a single item of
16682     * the list each time. Selected items are highlighted on list.
16683     * If enabled, many items can be selected.
16684     *
16685     * If a selected item is selected again, it will be unselected.
16686     *
16687     * @see elm_list_multi_select_get()
16688     *
16689     * @ingroup List
16690     */
16691    EAPI void             elm_list_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
16692
16693    /**
16694     * Get a value whether multiple items selection is enabled or not.
16695     *
16696     * @see elm_list_multi_select_set() for details.
16697     *
16698     * @param obj The list object.
16699     * @return @c EINA_TRUE means multiple items selection is enabled.
16700     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
16701     * @c EINA_FALSE is returned.
16702     *
16703     * @ingroup List
16704     */
16705    EAPI Eina_Bool        elm_list_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16706
16707    /**
16708     * Set which mode to use for the list object.
16709     *
16710     * @param obj The list object
16711     * @param mode One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
16712     * #ELM_LIST_LIMIT or #ELM_LIST_EXPAND.
16713     *
16714     * Set list's resize behavior, transverse axis scroll and
16715     * items cropping. See each mode's description for more details.
16716     *
16717     * @note Default value is #ELM_LIST_SCROLL.
16718     *
16719     * Only one can be set, if a previous one was set, it will be changed
16720     * by the new mode set. Bitmask won't work as well.
16721     *
16722     * @see elm_list_mode_get()
16723     *
16724     * @ingroup List
16725     */
16726    EAPI void             elm_list_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
16727
16728    /**
16729     * Get the mode the list is at.
16730     *
16731     * @param obj The list object
16732     * @return One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
16733     * #ELM_LIST_LIMIT, #ELM_LIST_EXPAND or #ELM_LIST_LAST on errors.
16734     *
16735     * @note see elm_list_mode_set() for more information.
16736     *
16737     * @ingroup List
16738     */
16739    EAPI Elm_List_Mode    elm_list_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16740
16741    /**
16742     * Enable or disable horizontal mode on the list object.
16743     *
16744     * @param obj The list object.
16745     * @param horizontal @c EINA_TRUE to enable horizontal or @c EINA_FALSE to
16746     * disable it, i.e., to enable vertical mode.
16747     *
16748     * @note Vertical mode is set by default.
16749     *
16750     * On horizontal mode items are displayed on list from left to right,
16751     * instead of from top to bottom. Also, the list will scroll horizontally.
16752     * Each item will presents left icon on top and right icon, or end, at
16753     * the bottom.
16754     *
16755     * @see elm_list_horizontal_get()
16756     *
16757     * @ingroup List
16758     */
16759    EAPI void             elm_list_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
16760
16761    /**
16762     * Get a value whether horizontal mode is enabled or not.
16763     *
16764     * @param obj The list object.
16765     * @return @c EINA_TRUE means horizontal mode selection is enabled.
16766     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
16767     * @c EINA_FALSE is returned.
16768     *
16769     * @see elm_list_horizontal_set() for details.
16770     *
16771     * @ingroup List
16772     */
16773    EAPI Eina_Bool        elm_list_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16774
16775    /**
16776     * Enable or disable always select mode on the list object.
16777     *
16778     * @param obj The list object
16779     * @param always_select @c EINA_TRUE to enable always select mode or
16780     * @c EINA_FALSE to disable it.
16781     *
16782     * @note Always select mode is disabled by default.
16783     *
16784     * Default behavior of list items is to only call its callback function
16785     * the first time it's pressed, i.e., when it is selected. If a selected
16786     * item is pressed again, and multi-select is disabled, it won't call
16787     * this function (if multi-select is enabled it will unselect the item).
16788     *
16789     * If always select is enabled, it will call the callback function
16790     * everytime a item is pressed, so it will call when the item is selected,
16791     * and again when a selected item is pressed.
16792     *
16793     * @see elm_list_always_select_mode_get()
16794     * @see elm_list_multi_select_set()
16795     *
16796     * @ingroup List
16797     */
16798    EAPI void             elm_list_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
16799
16800    /**
16801     * Get a value whether always select mode is enabled or not, meaning that
16802     * an item will always call its callback function, even if already selected.
16803     *
16804     * @param obj The list object
16805     * @return @c EINA_TRUE means horizontal mode selection is enabled.
16806     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
16807     * @c EINA_FALSE is returned.
16808     *
16809     * @see elm_list_always_select_mode_set() for details.
16810     *
16811     * @ingroup List
16812     */
16813    EAPI Eina_Bool        elm_list_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16814
16815    /**
16816     * Set bouncing behaviour when the scrolled content reaches an edge.
16817     *
16818     * Tell the internal scroller object whether it should bounce or not
16819     * when it reaches the respective edges for each axis.
16820     *
16821     * @param obj The list object
16822     * @param h_bounce Whether to bounce or not in the horizontal axis.
16823     * @param v_bounce Whether to bounce or not in the vertical axis.
16824     *
16825     * @see elm_scroller_bounce_set()
16826     *
16827     * @ingroup List
16828     */
16829    EAPI void             elm_list_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
16830
16831    /**
16832     * Get the bouncing behaviour of the internal scroller.
16833     *
16834     * Get whether the internal scroller should bounce when the edge of each
16835     * axis is reached scrolling.
16836     *
16837     * @param obj The list object.
16838     * @param h_bounce Pointer where to store the bounce state of the horizontal
16839     * axis.
16840     * @param v_bounce Pointer where to store the bounce state of the vertical
16841     * axis.
16842     *
16843     * @see elm_scroller_bounce_get()
16844     * @see elm_list_bounce_set()
16845     *
16846     * @ingroup List
16847     */
16848    EAPI void             elm_list_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
16849
16850    /**
16851     * Set the scrollbar policy.
16852     *
16853     * @param obj The list object
16854     * @param policy_h Horizontal scrollbar policy.
16855     * @param policy_v Vertical scrollbar policy.
16856     *
16857     * This sets the scrollbar visibility policy for the given scroller.
16858     * #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it
16859     * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
16860     * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
16861     * This applies respectively for the horizontal and vertical scrollbars.
16862     *
16863     * The both are disabled by default, i.e., are set to
16864     * #ELM_SCROLLER_POLICY_OFF.
16865     *
16866     * @ingroup List
16867     */
16868    EAPI void             elm_list_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
16869
16870    /**
16871     * Get the scrollbar policy.
16872     *
16873     * @see elm_list_scroller_policy_get() for details.
16874     *
16875     * @param obj The list object.
16876     * @param policy_h Pointer where to store horizontal scrollbar policy.
16877     * @param policy_v Pointer where to store vertical scrollbar policy.
16878     *
16879     * @ingroup List
16880     */
16881    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);
16882
16883    /**
16884     * Append a new item to the list object.
16885     *
16886     * @param obj The list object.
16887     * @param label The label of the list item.
16888     * @param icon The icon object to use for the left side of the item. An
16889     * icon can be any Evas object, but usually it is an icon created
16890     * with elm_icon_add().
16891     * @param end The icon object to use for the right side of the item. An
16892     * icon can be any Evas object.
16893     * @param func The function to call when the item is clicked.
16894     * @param data The data to associate with the item for related callbacks.
16895     *
16896     * @return The created item or @c NULL upon failure.
16897     *
16898     * A new item will be created and appended to the list, i.e., will
16899     * be set as @b last item.
16900     *
16901     * Items created with this method can be deleted with
16902     * elm_list_item_del().
16903     *
16904     * Associated @p data can be properly freed when item is deleted if a
16905     * callback function is set with elm_list_item_del_cb_set().
16906     *
16907     * If a function is passed as argument, it will be called everytime this item
16908     * is selected, i.e., the user clicks over an unselected item.
16909     * If always select is enabled it will call this function every time
16910     * user clicks over an item (already selected or not).
16911     * If such function isn't needed, just passing
16912     * @c NULL as @p func is enough. The same should be done for @p data.
16913     *
16914     * Simple example (with no function callback or data associated):
16915     * @code
16916     * li = elm_list_add(win);
16917     * ic = elm_icon_add(win);
16918     * elm_icon_file_set(ic, "path/to/image", NULL);
16919     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
16920     * elm_list_item_append(li, "label", ic, NULL, NULL, NULL);
16921     * elm_list_go(li);
16922     * evas_object_show(li);
16923     * @endcode
16924     *
16925     * @see elm_list_always_select_mode_set()
16926     * @see elm_list_item_del()
16927     * @see elm_list_item_del_cb_set()
16928     * @see elm_list_clear()
16929     * @see elm_icon_add()
16930     *
16931     * @ingroup List
16932     */
16933    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);
16934
16935    /**
16936     * Prepend a new item to the list object.
16937     *
16938     * @param obj The list object.
16939     * @param label The label of the list item.
16940     * @param icon The icon object to use for the left side of the item. An
16941     * icon can be any Evas object, but usually it is an icon created
16942     * with elm_icon_add().
16943     * @param end The icon object to use for the right side of the item. An
16944     * icon can be any Evas object.
16945     * @param func The function to call when the item is clicked.
16946     * @param data The data to associate with the item for related callbacks.
16947     *
16948     * @return The created item or @c NULL upon failure.
16949     *
16950     * A new item will be created and prepended to the list, i.e., will
16951     * be set as @b first item.
16952     *
16953     * Items created with this method can be deleted with
16954     * elm_list_item_del().
16955     *
16956     * Associated @p data can be properly freed when item is deleted if a
16957     * callback function is set with elm_list_item_del_cb_set().
16958     *
16959     * If a function is passed as argument, it will be called everytime this item
16960     * is selected, i.e., the user clicks over an unselected item.
16961     * If always select is enabled it will call this function every time
16962     * user clicks over an item (already selected or not).
16963     * If such function isn't needed, just passing
16964     * @c NULL as @p func is enough. The same should be done for @p data.
16965     *
16966     * @see elm_list_item_append() for a simple code example.
16967     * @see elm_list_always_select_mode_set()
16968     * @see elm_list_item_del()
16969     * @see elm_list_item_del_cb_set()
16970     * @see elm_list_clear()
16971     * @see elm_icon_add()
16972     *
16973     * @ingroup List
16974     */
16975    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);
16976
16977    /**
16978     * Insert a new item into the list object before item @p before.
16979     *
16980     * @param obj The list object.
16981     * @param before The list item to insert before.
16982     * @param label The label of the list item.
16983     * @param icon The icon object to use for the left side of the item. An
16984     * icon can be any Evas object, but usually it is an icon created
16985     * with elm_icon_add().
16986     * @param end The icon object to use for the right side of the item. An
16987     * icon can be any Evas object.
16988     * @param func The function to call when the item is clicked.
16989     * @param data The data to associate with the item for related callbacks.
16990     *
16991     * @return The created item or @c NULL upon failure.
16992     *
16993     * A new item will be created and added to the list. Its position in
16994     * this list will be just before item @p before.
16995     *
16996     * Items created with this method can be deleted with
16997     * elm_list_item_del().
16998     *
16999     * Associated @p data can be properly freed when item is deleted if a
17000     * callback function is set with elm_list_item_del_cb_set().
17001     *
17002     * If a function is passed as argument, it will be called everytime this item
17003     * is selected, i.e., the user clicks over an unselected item.
17004     * If always select is enabled it will call this function every time
17005     * user clicks over an item (already selected or not).
17006     * If such function isn't needed, just passing
17007     * @c NULL as @p func is enough. The same should be done for @p data.
17008     *
17009     * @see elm_list_item_append() for a simple code example.
17010     * @see elm_list_always_select_mode_set()
17011     * @see elm_list_item_del()
17012     * @see elm_list_item_del_cb_set()
17013     * @see elm_list_clear()
17014     * @see elm_icon_add()
17015     *
17016     * @ingroup List
17017     */
17018    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);
17019
17020    /**
17021     * Insert a new item into the list object after item @p after.
17022     *
17023     * @param obj The list object.
17024     * @param after The list item to insert after.
17025     * @param label The label of the list item.
17026     * @param icon The icon object to use for the left side of the item. An
17027     * icon can be any Evas object, but usually it is an icon created
17028     * with elm_icon_add().
17029     * @param end The icon object to use for the right side of the item. An
17030     * icon can be any Evas object.
17031     * @param func The function to call when the item is clicked.
17032     * @param data The data to associate with the item for related callbacks.
17033     *
17034     * @return The created item or @c NULL upon failure.
17035     *
17036     * A new item will be created and added to the list. Its position in
17037     * this list will be just after item @p after.
17038     *
17039     * Items created with this method can be deleted with
17040     * elm_list_item_del().
17041     *
17042     * Associated @p data can be properly freed when item is deleted if a
17043     * callback function is set with elm_list_item_del_cb_set().
17044     *
17045     * If a function is passed as argument, it will be called everytime this item
17046     * is selected, i.e., the user clicks over an unselected item.
17047     * If always select is enabled it will call this function every time
17048     * user clicks over an item (already selected or not).
17049     * If such function isn't needed, just passing
17050     * @c NULL as @p func is enough. The same should be done for @p data.
17051     *
17052     * @see elm_list_item_append() for a simple code example.
17053     * @see elm_list_always_select_mode_set()
17054     * @see elm_list_item_del()
17055     * @see elm_list_item_del_cb_set()
17056     * @see elm_list_clear()
17057     * @see elm_icon_add()
17058     *
17059     * @ingroup List
17060     */
17061    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);
17062
17063    /**
17064     * Insert a new item into the sorted list object.
17065     *
17066     * @param obj The list object.
17067     * @param label The label of the list item.
17068     * @param icon The icon object to use for the left side of the item. An
17069     * icon can be any Evas object, but usually it is an icon created
17070     * with elm_icon_add().
17071     * @param end The icon object to use for the right side of the item. An
17072     * icon can be any Evas object.
17073     * @param func The function to call when the item is clicked.
17074     * @param data The data to associate with the item for related callbacks.
17075     * @param cmp_func The comparing function to be used to sort list
17076     * items <b>by #Elm_List_Item item handles</b>. This function will
17077     * receive two items and compare them, returning a non-negative integer
17078     * if the second item should be place after the first, or negative value
17079     * if should be placed before.
17080     *
17081     * @return The created item or @c NULL upon failure.
17082     *
17083     * @note This function inserts values into a list object assuming it was
17084     * sorted and the result will be sorted.
17085     *
17086     * A new item will be created and added to the list. Its position in
17087     * this list will be found comparing the new item with previously inserted
17088     * items using function @p cmp_func.
17089     *
17090     * Items created with this method can be deleted with
17091     * elm_list_item_del().
17092     *
17093     * Associated @p data can be properly freed when item is deleted if a
17094     * callback function is set with elm_list_item_del_cb_set().
17095     *
17096     * If a function is passed as argument, it will be called everytime this item
17097     * is selected, i.e., the user clicks over an unselected item.
17098     * If always select is enabled it will call this function every time
17099     * user clicks over an item (already selected or not).
17100     * If such function isn't needed, just passing
17101     * @c NULL as @p func is enough. The same should be done for @p data.
17102     *
17103     * @see elm_list_item_append() for a simple code example.
17104     * @see elm_list_always_select_mode_set()
17105     * @see elm_list_item_del()
17106     * @see elm_list_item_del_cb_set()
17107     * @see elm_list_clear()
17108     * @see elm_icon_add()
17109     *
17110     * @ingroup List
17111     */
17112    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);
17113
17114    /**
17115     * Remove all list's items.
17116     *
17117     * @param obj The list object
17118     *
17119     * @see elm_list_item_del()
17120     * @see elm_list_item_append()
17121     *
17122     * @ingroup List
17123     */
17124    EAPI void             elm_list_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
17125
17126    /**
17127     * Get a list of all the list items.
17128     *
17129     * @param obj The list object
17130     * @return An @c Eina_List of list items, #Elm_List_Item,
17131     * or @c NULL on failure.
17132     *
17133     * @see elm_list_item_append()
17134     * @see elm_list_item_del()
17135     * @see elm_list_clear()
17136     *
17137     * @ingroup List
17138     */
17139    EAPI const Eina_List *elm_list_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17140
17141    /**
17142     * Get the selected item.
17143     *
17144     * @param obj The list object.
17145     * @return The selected list item.
17146     *
17147     * The selected item can be unselected with function
17148     * elm_list_item_selected_set().
17149     *
17150     * The selected item always will be highlighted on list.
17151     *
17152     * @see elm_list_selected_items_get()
17153     *
17154     * @ingroup List
17155     */
17156    EAPI Elm_List_Item   *elm_list_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17157
17158    /**
17159     * Return a list of the currently selected list items.
17160     *
17161     * @param obj The list object.
17162     * @return An @c Eina_List of list items, #Elm_List_Item,
17163     * or @c NULL on failure.
17164     *
17165     * Multiple items can be selected if multi select is enabled. It can be
17166     * done with elm_list_multi_select_set().
17167     *
17168     * @see elm_list_selected_item_get()
17169     * @see elm_list_multi_select_set()
17170     *
17171     * @ingroup List
17172     */
17173    EAPI const Eina_List *elm_list_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17174
17175    /**
17176     * Set the selected state of an item.
17177     *
17178     * @param item The list item
17179     * @param selected The selected state
17180     *
17181     * This sets the selected state of the given item @p it.
17182     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
17183     *
17184     * If a new item is selected the previosly selected will be unselected,
17185     * unless multiple selection is enabled with elm_list_multi_select_set().
17186     * Previoulsy selected item can be get with function
17187     * elm_list_selected_item_get().
17188     *
17189     * Selected items will be highlighted.
17190     *
17191     * @see elm_list_item_selected_get()
17192     * @see elm_list_selected_item_get()
17193     * @see elm_list_multi_select_set()
17194     *
17195     * @ingroup List
17196     */
17197    EAPI void             elm_list_item_selected_set(Elm_List_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
17198
17199    /*
17200     * Get whether the @p item is selected or not.
17201     *
17202     * @param item The list item.
17203     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
17204     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
17205     *
17206     * @see elm_list_selected_item_set() for details.
17207     * @see elm_list_item_selected_get()
17208     *
17209     * @ingroup List
17210     */
17211    EAPI Eina_Bool        elm_list_item_selected_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17212
17213    /**
17214     * Set or unset item as a separator.
17215     *
17216     * @param it The list item.
17217     * @param setting @c EINA_TRUE to set item @p it as separator or
17218     * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
17219     *
17220     * Items aren't set as separator by default.
17221     *
17222     * If set as separator it will display separator theme, so won't display
17223     * icons or label.
17224     *
17225     * @see elm_list_item_separator_get()
17226     *
17227     * @ingroup List
17228     */
17229    EAPI void             elm_list_item_separator_set(Elm_List_Item *it, Eina_Bool setting) EINA_ARG_NONNULL(1);
17230
17231    /**
17232     * Get a value whether item is a separator or not.
17233     *
17234     * @see elm_list_item_separator_set() for details.
17235     *
17236     * @param it The list item.
17237     * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
17238     * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
17239     *
17240     * @ingroup List
17241     */
17242    EAPI Eina_Bool        elm_list_item_separator_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
17243
17244    /**
17245     * Show @p item in the list view.
17246     *
17247     * @param item The list item to be shown.
17248     *
17249     * It won't animate list until item is visible. If such behavior is wanted,
17250     * use elm_list_bring_in() intead.
17251     *
17252     * @ingroup List
17253     */
17254    EAPI void             elm_list_item_show(Elm_List_Item *item) EINA_ARG_NONNULL(1);
17255
17256    /**
17257     * Bring in the given item to list view.
17258     *
17259     * @param item The item.
17260     *
17261     * This causes list to jump to the given item @p item and show it
17262     * (by scrolling), if it is not fully visible.
17263     *
17264     * This may use animation to do so and take a period of time.
17265     *
17266     * If animation isn't wanted, elm_list_item_show() can be used.
17267     *
17268     * @ingroup List
17269     */
17270    EAPI void             elm_list_item_bring_in(Elm_List_Item *item) EINA_ARG_NONNULL(1);
17271
17272    /**
17273     * Delete them item from the list.
17274     *
17275     * @param item The item of list to be deleted.
17276     *
17277     * If deleting all list items is required, elm_list_clear()
17278     * should be used instead of getting items list and deleting each one.
17279     *
17280     * @see elm_list_clear()
17281     * @see elm_list_item_append()
17282     * @see elm_list_item_del_cb_set()
17283     *
17284     * @ingroup List
17285     */
17286    EAPI void             elm_list_item_del(Elm_List_Item *item) EINA_ARG_NONNULL(1);
17287
17288    /**
17289     * Set the function called when a list item is freed.
17290     *
17291     * @param item The item to set the callback on
17292     * @param func The function called
17293     *
17294     * If there is a @p func, then it will be called prior item's memory release.
17295     * That will be called with the following arguments:
17296     * @li item's data;
17297     * @li item's Evas object;
17298     * @li item itself;
17299     *
17300     * This way, a data associated to a list item could be properly freed.
17301     *
17302     * @ingroup List
17303     */
17304    EAPI void             elm_list_item_del_cb_set(Elm_List_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
17305
17306    /**
17307     * Get the data associated to the item.
17308     *
17309     * @param item The list item
17310     * @return The data associated to @p item
17311     *
17312     * The return value is a pointer to data associated to @p item when it was
17313     * created, with function elm_list_item_append() or similar. If no data
17314     * was passed as argument, it will return @c NULL.
17315     *
17316     * @see elm_list_item_append()
17317     *
17318     * @ingroup List
17319     */
17320    EAPI void            *elm_list_item_data_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17321
17322    /**
17323     * Get the left side icon associated to the item.
17324     *
17325     * @param item The list item
17326     * @return The left side icon associated to @p item
17327     *
17328     * The return value is a pointer to the icon associated to @p item when
17329     * it was
17330     * created, with function elm_list_item_append() or similar, or later
17331     * with function elm_list_item_icon_set(). If no icon
17332     * was passed as argument, it will return @c NULL.
17333     *
17334     * @see elm_list_item_append()
17335     * @see elm_list_item_icon_set()
17336     *
17337     * @ingroup List
17338     */
17339    EAPI Evas_Object     *elm_list_item_icon_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17340
17341    /**
17342     * Set the left side icon associated to the item.
17343     *
17344     * @param item The list item
17345     * @param icon The left side icon object to associate with @p item
17346     *
17347     * The icon object to use at left side of the item. An
17348     * icon can be any Evas object, but usually it is an icon created
17349     * with elm_icon_add().
17350     *
17351     * Once the icon object is set, a previously set one will be deleted.
17352     * @warning Setting the same icon for two items will cause the icon to
17353     * dissapear from the first item.
17354     *
17355     * If an icon was passed as argument on item creation, with function
17356     * elm_list_item_append() or similar, it will be already
17357     * associated to the item.
17358     *
17359     * @see elm_list_item_append()
17360     * @see elm_list_item_icon_get()
17361     *
17362     * @ingroup List
17363     */
17364    EAPI void             elm_list_item_icon_set(Elm_List_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
17365
17366    /**
17367     * Get the right side icon associated to the item.
17368     *
17369     * @param item The list item
17370     * @return The right side icon associated to @p item
17371     *
17372     * The return value is a pointer to the icon associated to @p item when
17373     * it was
17374     * created, with function elm_list_item_append() or similar, or later
17375     * with function elm_list_item_icon_set(). If no icon
17376     * was passed as argument, it will return @c NULL.
17377     *
17378     * @see elm_list_item_append()
17379     * @see elm_list_item_icon_set()
17380     *
17381     * @ingroup List
17382     */
17383    EAPI Evas_Object     *elm_list_item_end_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17384
17385    /**
17386     * Set the right side icon associated to the item.
17387     *
17388     * @param item The list item
17389     * @param end The right side icon object to associate with @p item
17390     *
17391     * The icon object to use at right side of the item. An
17392     * icon can be any Evas object, but usually it is an icon created
17393     * with elm_icon_add().
17394     *
17395     * Once the icon object is set, a previously set one will be deleted.
17396     * @warning Setting the same icon for two items will cause the icon to
17397     * dissapear from the first item.
17398     *
17399     * If an icon was passed as argument on item creation, with function
17400     * elm_list_item_append() or similar, it will be already
17401     * associated to the item.
17402     *
17403     * @see elm_list_item_append()
17404     * @see elm_list_item_end_get()
17405     *
17406     * @ingroup List
17407     */
17408    EAPI void             elm_list_item_end_set(Elm_List_Item *item, Evas_Object *end) EINA_ARG_NONNULL(1);
17409
17410    /**
17411     * Gets the base object of the item.
17412     *
17413     * @param item The list item
17414     * @return The base object associated with @p item
17415     *
17416     * Base object is the @c Evas_Object that represents that item.
17417     *
17418     * @ingroup List
17419     */
17420    EAPI Evas_Object     *elm_list_item_object_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17421    EINA_DEPRECATED EAPI Evas_Object     *elm_list_item_base_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17422
17423    /**
17424     * Get the label of item.
17425     *
17426     * @param item The item of list.
17427     * @return The label of item.
17428     *
17429     * The return value is a pointer to the label associated to @p item when
17430     * it was created, with function elm_list_item_append(), or later
17431     * with function elm_list_item_label_set. If no label
17432     * was passed as argument, it will return @c NULL.
17433     *
17434     * @see elm_list_item_label_set() for more details.
17435     * @see elm_list_item_append()
17436     *
17437     * @ingroup List
17438     */
17439    EAPI const char      *elm_list_item_label_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17440
17441    /**
17442     * Set the label of item.
17443     *
17444     * @param item The item of list.
17445     * @param text The label of item.
17446     *
17447     * The label to be displayed by the item.
17448     * Label will be placed between left and right side icons (if set).
17449     *
17450     * If a label was passed as argument on item creation, with function
17451     * elm_list_item_append() or similar, it will be already
17452     * displayed by the item.
17453     *
17454     * @see elm_list_item_label_get()
17455     * @see elm_list_item_append()
17456     *
17457     * @ingroup List
17458     */
17459    EAPI void             elm_list_item_label_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
17460
17461
17462    /**
17463     * Get the item before @p it in list.
17464     *
17465     * @param it The list item.
17466     * @return The item before @p it, or @c NULL if none or on failure.
17467     *
17468     * @note If it is the first item, @c NULL will be returned.
17469     *
17470     * @see elm_list_item_append()
17471     * @see elm_list_items_get()
17472     *
17473     * @ingroup List
17474     */
17475    EAPI Elm_List_Item   *elm_list_item_prev(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
17476
17477    /**
17478     * Get the item after @p it in list.
17479     *
17480     * @param it The list item.
17481     * @return The item after @p it, or @c NULL if none or on failure.
17482     *
17483     * @note If it is the last item, @c NULL will be returned.
17484     *
17485     * @see elm_list_item_append()
17486     * @see elm_list_items_get()
17487     *
17488     * @ingroup List
17489     */
17490    EAPI Elm_List_Item   *elm_list_item_next(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
17491
17492    /**
17493     * Sets the disabled/enabled state of a list item.
17494     *
17495     * @param it The item.
17496     * @param disabled The disabled state.
17497     *
17498     * A disabled item cannot be selected or unselected. It will also
17499     * change its appearance (generally greyed out). This sets the
17500     * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
17501     * enabled).
17502     *
17503     * @ingroup List
17504     */
17505    EAPI void             elm_list_item_disabled_set(Elm_List_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
17506
17507    /**
17508     * Get a value whether list item is disabled or not.
17509     *
17510     * @param it The item.
17511     * @return The disabled state.
17512     *
17513     * @see elm_list_item_disabled_set() for more details.
17514     *
17515     * @ingroup List
17516     */
17517    EAPI Eina_Bool        elm_list_item_disabled_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
17518
17519    /**
17520     * Set the text to be shown in a given list item's tooltips.
17521     *
17522     * @param item Target item.
17523     * @param text The text to set in the content.
17524     *
17525     * Setup the text as tooltip to object. The item can have only one tooltip,
17526     * so any previous tooltip data - set with this function or
17527     * elm_list_item_tooltip_content_cb_set() - is removed.
17528     *
17529     * @see elm_object_tooltip_text_set() for more details.
17530     *
17531     * @ingroup List
17532     */
17533    EAPI void             elm_list_item_tooltip_text_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
17534
17535
17536    /**
17537     * @brief Disable size restrictions on an object's tooltip
17538     * @param item The tooltip's anchor object
17539     * @param disable If EINA_TRUE, size restrictions are disabled
17540     * @return EINA_FALSE on failure, EINA_TRUE on success
17541     *
17542     * This function allows a tooltip to expand beyond its parant window's canvas.
17543     * It will instead be limited only by the size of the display.
17544     */
17545    EAPI Eina_Bool        elm_list_item_tooltip_window_mode_set(Elm_List_Item *item, Eina_Bool disable) EINA_ARG_NONNULL(1);
17546    /**
17547     * @brief Retrieve size restriction state of an object's tooltip
17548     * @param obj The tooltip's anchor object
17549     * @return If EINA_TRUE, size restrictions are disabled
17550     *
17551     * This function returns whether a tooltip is allowed to expand beyond
17552     * its parant window's canvas.
17553     * It will instead be limited only by the size of the display.
17554     */
17555    EAPI Eina_Bool        elm_list_item_tooltip_window_mode_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17556
17557    /**
17558     * Set the content to be shown in the tooltip item.
17559     *
17560     * Setup the tooltip to item. The item can have only one tooltip,
17561     * so any previous tooltip data is removed. @p func(with @p data) will
17562     * be called every time that need show the tooltip and it should
17563     * return a valid Evas_Object. This object is then managed fully by
17564     * tooltip system and is deleted when the tooltip is gone.
17565     *
17566     * @param item the list item being attached a tooltip.
17567     * @param func the function used to create the tooltip contents.
17568     * @param data what to provide to @a func as callback data/context.
17569     * @param del_cb called when data is not needed anymore, either when
17570     *        another callback replaces @a func, the tooltip is unset with
17571     *        elm_list_item_tooltip_unset() or the owner @a item
17572     *        dies. This callback receives as the first parameter the
17573     *        given @a data, and @c event_info is the item.
17574     *
17575     * @see elm_object_tooltip_content_cb_set() for more details.
17576     *
17577     * @ingroup List
17578     */
17579    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);
17580
17581    /**
17582     * Unset tooltip from item.
17583     *
17584     * @param item list item to remove previously set tooltip.
17585     *
17586     * Remove tooltip from item. The callback provided as del_cb to
17587     * elm_list_item_tooltip_content_cb_set() will be called to notify
17588     * it is not used anymore.
17589     *
17590     * @see elm_object_tooltip_unset() for more details.
17591     * @see elm_list_item_tooltip_content_cb_set()
17592     *
17593     * @ingroup List
17594     */
17595    EAPI void             elm_list_item_tooltip_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
17596
17597    /**
17598     * Sets a different style for this item tooltip.
17599     *
17600     * @note before you set a style you should define a tooltip with
17601     *       elm_list_item_tooltip_content_cb_set() or
17602     *       elm_list_item_tooltip_text_set()
17603     *
17604     * @param item list item with tooltip already set.
17605     * @param style the theme style to use (default, transparent, ...)
17606     *
17607     * @see elm_object_tooltip_style_set() for more details.
17608     *
17609     * @ingroup List
17610     */
17611    EAPI void             elm_list_item_tooltip_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
17612
17613    /**
17614     * Get the style for this item tooltip.
17615     *
17616     * @param item list item with tooltip already set.
17617     * @return style the theme style in use, defaults to "default". If the
17618     *         object does not have a tooltip set, then NULL is returned.
17619     *
17620     * @see elm_object_tooltip_style_get() for more details.
17621     * @see elm_list_item_tooltip_style_set()
17622     *
17623     * @ingroup List
17624     */
17625    EAPI const char      *elm_list_item_tooltip_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17626
17627    /**
17628     * Set the type of mouse pointer/cursor decoration to be shown,
17629     * when the mouse pointer is over the given list widget item
17630     *
17631     * @param item list item to customize cursor on
17632     * @param cursor the cursor type's name
17633     *
17634     * This function works analogously as elm_object_cursor_set(), but
17635     * here the cursor's changing area is restricted to the item's
17636     * area, and not the whole widget's. Note that that item cursors
17637     * have precedence over widget cursors, so that a mouse over an
17638     * item with custom cursor set will always show @b that cursor.
17639     *
17640     * If this function is called twice for an object, a previously set
17641     * cursor will be unset on the second call.
17642     *
17643     * @see elm_object_cursor_set()
17644     * @see elm_list_item_cursor_get()
17645     * @see elm_list_item_cursor_unset()
17646     *
17647     * @ingroup List
17648     */
17649    EAPI void             elm_list_item_cursor_set(Elm_List_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
17650
17651    /*
17652     * Get the type of mouse pointer/cursor decoration set to be shown,
17653     * when the mouse pointer is over the given list widget item
17654     *
17655     * @param item list item with custom cursor set
17656     * @return the cursor type's name or @c NULL, if no custom cursors
17657     * were set to @p item (and on errors)
17658     *
17659     * @see elm_object_cursor_get()
17660     * @see elm_list_item_cursor_set()
17661     * @see elm_list_item_cursor_unset()
17662     *
17663     * @ingroup List
17664     */
17665    EAPI const char      *elm_list_item_cursor_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17666
17667    /**
17668     * Unset any custom mouse pointer/cursor decoration set to be
17669     * shown, when the mouse pointer is over the given list widget
17670     * item, thus making it show the @b default cursor again.
17671     *
17672     * @param item a list item
17673     *
17674     * Use this call to undo any custom settings on this item's cursor
17675     * decoration, bringing it back to defaults (no custom style set).
17676     *
17677     * @see elm_object_cursor_unset()
17678     * @see elm_list_item_cursor_set()
17679     *
17680     * @ingroup List
17681     */
17682    EAPI void             elm_list_item_cursor_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
17683
17684    /**
17685     * Set a different @b style for a given custom cursor set for a
17686     * list item.
17687     *
17688     * @param item list item with custom cursor set
17689     * @param style the <b>theme style</b> to use (e.g. @c "default",
17690     * @c "transparent", etc)
17691     *
17692     * This function only makes sense when one is using custom mouse
17693     * cursor decorations <b>defined in a theme file</b>, which can have,
17694     * given a cursor name/type, <b>alternate styles</b> on it. It
17695     * works analogously as elm_object_cursor_style_set(), but here
17696     * applyed only to list item objects.
17697     *
17698     * @warning Before you set a cursor style you should have definen a
17699     *       custom cursor previously on the item, with
17700     *       elm_list_item_cursor_set()
17701     *
17702     * @see elm_list_item_cursor_engine_only_set()
17703     * @see elm_list_item_cursor_style_get()
17704     *
17705     * @ingroup List
17706     */
17707    EAPI void             elm_list_item_cursor_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
17708
17709    /**
17710     * Get the current @b style set for a given list item's custom
17711     * cursor
17712     *
17713     * @param item list item with custom cursor set.
17714     * @return style the cursor style in use. If the object does not
17715     *         have a cursor set, then @c NULL is returned.
17716     *
17717     * @see elm_list_item_cursor_style_set() for more details
17718     *
17719     * @ingroup List
17720     */
17721    EAPI const char      *elm_list_item_cursor_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17722
17723    /**
17724     * Set if the (custom)cursor for a given list item should be
17725     * searched in its theme, also, or should only rely on the
17726     * rendering engine.
17727     *
17728     * @param item item with custom (custom) cursor already set on
17729     * @param engine_only Use @c EINA_TRUE to have cursors looked for
17730     * only on those provided by the rendering engine, @c EINA_FALSE to
17731     * have them searched on the widget's theme, as well.
17732     *
17733     * @note This call is of use only if you've set a custom cursor
17734     * for list items, with elm_list_item_cursor_set().
17735     *
17736     * @note By default, cursors will only be looked for between those
17737     * provided by the rendering engine.
17738     *
17739     * @ingroup List
17740     */
17741    EAPI void             elm_list_item_cursor_engine_only_set(Elm_List_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
17742
17743    /**
17744     * Get if the (custom) cursor for a given list item is being
17745     * searched in its theme, also, or is only relying on the rendering
17746     * engine.
17747     *
17748     * @param item a list item
17749     * @return @c EINA_TRUE, if cursors are being looked for only on
17750     * those provided by the rendering engine, @c EINA_FALSE if they
17751     * are being searched on the widget's theme, as well.
17752     *
17753     * @see elm_list_item_cursor_engine_only_set(), for more details
17754     *
17755     * @ingroup List
17756     */
17757    EAPI Eina_Bool        elm_list_item_cursor_engine_only_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17758
17759    /**
17760     * @}
17761     */
17762
17763    /**
17764     * @defgroup Slider Slider
17765     * @ingroup Elementary
17766     *
17767     * @image html img/widget/slider/preview-00.png
17768     * @image latex img/widget/slider/preview-00.eps width=\textwidth
17769     *
17770     * The slider adds a dragable ā€œsliderā€ widget for selecting the value of
17771     * something within a range.
17772     *
17773     * A slider can be horizontal or vertical. It can contain an Icon and has a
17774     * primary label as well as a units label (that is formatted with floating
17775     * point values and thus accepts a printf-style format string, like
17776     * ā€œ%1.2f unitsā€. There is also an indicator string that may be somewhere
17777     * else (like on the slider itself) that also accepts a format string like
17778     * units. Label, Icon Unit and Indicator strings/objects are optional.
17779     *
17780     * A slider may be inverted which means values invert, with high vales being
17781     * on the left or top and low values on the right or bottom (as opposed to
17782     * normally being low on the left or top and high on the bottom and right).
17783     *
17784     * The slider should have its minimum and maximum values set by the
17785     * application with  elm_slider_min_max_set() and value should also be set by
17786     * the application before use with  elm_slider_value_set(). The span of the
17787     * slider is its length (horizontally or vertically). This will be scaled by
17788     * the object or applications scaling factor. At any point code can query the
17789     * slider for its value with elm_slider_value_get().
17790     *
17791     * Smart callbacks one can listen to:
17792     * - "changed" - Whenever the slider value is changed by the user.
17793     * - "slider,drag,start" - dragging the slider indicator around has started.
17794     * - "slider,drag,stop" - dragging the slider indicator around has stopped.
17795     * - "delay,changed" - A short time after the value is changed by the user.
17796     * This will be called only when the user stops dragging for
17797     * a very short period or when they release their
17798     * finger/mouse, so it avoids possibly expensive reactions to
17799     * the value change.
17800     *
17801     * Available styles for it:
17802     * - @c "default"
17803     *
17804     * Default contents parts of the slider widget that you can use for are:
17805     * @li "icon" - An icon of the slider
17806     * @li "end" - A end part content of the slider
17807     *
17808     * Default text parts of the silder widget that you can use for are:
17809     * @li "default" - Label of the silder
17810     * Here is an example on its usage:
17811     * @li @ref slider_example
17812     */
17813
17814    /**
17815     * @addtogroup Slider
17816     * @{
17817     */
17818
17819    /**
17820     * Add a new slider widget to the given parent Elementary
17821     * (container) object.
17822     *
17823     * @param parent The parent object.
17824     * @return a new slider widget handle or @c NULL, on errors.
17825     *
17826     * This function inserts a new slider widget on the canvas.
17827     *
17828     * @ingroup Slider
17829     */
17830    EAPI Evas_Object       *elm_slider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
17831
17832    /**
17833     * Set the label of a given slider widget
17834     *
17835     * @param obj The progress bar object
17836     * @param label The text label string, in UTF-8
17837     *
17838     * @ingroup Slider
17839     * @deprecated use elm_object_text_set() instead.
17840     */
17841    EINA_DEPRECATED EAPI void               elm_slider_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
17842
17843    /**
17844     * Get the label of a given slider widget
17845     *
17846     * @param obj The progressbar object
17847     * @return The text label string, in UTF-8
17848     *
17849     * @ingroup Slider
17850     * @deprecated use elm_object_text_get() instead.
17851     */
17852    EINA_DEPRECATED EAPI const char        *elm_slider_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17853
17854    /**
17855     * Set the icon object of the slider object.
17856     *
17857     * @param obj The slider object.
17858     * @param icon The icon object.
17859     *
17860     * On horizontal mode, icon is placed at left, and on vertical mode,
17861     * placed at top.
17862     *
17863     * @note Once the icon object is set, a previously set one will be deleted.
17864     * If you want to keep that old content object, use the
17865     * elm_slider_icon_unset() function.
17866     *
17867     * @warning If the object being set does not have minimum size hints set,
17868     * it won't get properly displayed.
17869     *
17870     * @ingroup Slider
17871     * @deprecated use elm_object_part_content_set() instead.
17872     */
17873    EINA_DEPRECATED EAPI void               elm_slider_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
17874
17875    /**
17876     * Unset an icon set on a given slider widget.
17877     *
17878     * @param obj The slider object.
17879     * @return The icon object that was being used, if any was set, or
17880     * @c NULL, otherwise (and on errors).
17881     *
17882     * On horizontal mode, icon is placed at left, and on vertical mode,
17883     * placed at top.
17884     *
17885     * This call will unparent and return the icon object which was set
17886     * for this widget, previously, on success.
17887     *
17888     * @see elm_slider_icon_set() for more details
17889     * @see elm_slider_icon_get()
17890     * @deprecated use elm_object_part_content_unset() instead.
17891     *
17892     * @ingroup Slider
17893     */
17894    EINA_DEPRECATED EAPI Evas_Object       *elm_slider_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
17895
17896    /**
17897     * Retrieve the icon object set for a given slider widget.
17898     *
17899     * @param obj The slider object.
17900     * @return The icon object's handle, if @p obj had one set, or @c NULL,
17901     * otherwise (and on errors).
17902     *
17903     * On horizontal mode, icon is placed at left, and on vertical mode,
17904     * placed at top.
17905     *
17906     * @see elm_slider_icon_set() for more details
17907     * @see elm_slider_icon_unset()
17908     *
17909     * @deprecated use elm_object_part_content_get() instead.
17910     *
17911     * @ingroup Slider
17912     */
17913    EINA_DEPRECATED EAPI Evas_Object       *elm_slider_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17914
17915    /**
17916     * Set the end object of the slider object.
17917     *
17918     * @param obj The slider object.
17919     * @param end The end object.
17920     *
17921     * On horizontal mode, end is placed at left, and on vertical mode,
17922     * placed at bottom.
17923     *
17924     * @note Once the icon object is set, a previously set one will be deleted.
17925     * If you want to keep that old content object, use the
17926     * elm_slider_end_unset() function.
17927     *
17928     * @warning If the object being set does not have minimum size hints set,
17929     * it won't get properly displayed.
17930     *
17931     * @deprecated use elm_object_part_content_set() instead.
17932     *
17933     * @ingroup Slider
17934     */
17935    EINA_DEPRECATED EAPI void               elm_slider_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1);
17936
17937    /**
17938     * Unset an end object set on a given slider widget.
17939     *
17940     * @param obj The slider object.
17941     * @return The end object that was being used, if any was set, or
17942     * @c NULL, otherwise (and on errors).
17943     *
17944     * On horizontal mode, end is placed at left, and on vertical mode,
17945     * placed at bottom.
17946     *
17947     * This call will unparent and return the icon object which was set
17948     * for this widget, previously, on success.
17949     *
17950     * @see elm_slider_end_set() for more details.
17951     * @see elm_slider_end_get()
17952     *
17953     * @deprecated use elm_object_part_content_unset() instead
17954     * instead.
17955     *
17956     * @ingroup Slider
17957     */
17958    EINA_DEPRECATED EAPI Evas_Object       *elm_slider_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
17959
17960    /**
17961     * Retrieve the end object set for a given slider widget.
17962     *
17963     * @param obj The slider object.
17964     * @return The end object's handle, if @p obj had one set, or @c NULL,
17965     * otherwise (and on errors).
17966     *
17967     * On horizontal mode, icon is placed at right, and on vertical mode,
17968     * placed at bottom.
17969     *
17970     * @see elm_slider_end_set() for more details.
17971     * @see elm_slider_end_unset()
17972     *
17973     *
17974     * @deprecated use elm_object_part_content_get() instead
17975     * instead.
17976     *
17977     * @ingroup Slider
17978     */
17979    EINA_DEPRECATED EAPI Evas_Object       *elm_slider_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17980
17981    /**
17982     * Set the (exact) length of the bar region of a given slider widget.
17983     *
17984     * @param obj The slider object.
17985     * @param size The length of the slider's bar region.
17986     *
17987     * This sets the minimum width (when in horizontal mode) or height
17988     * (when in vertical mode) of the actual bar area of the slider
17989     * @p obj. This in turn affects the object's minimum size. Use
17990     * this when you're not setting other size hints expanding on the
17991     * given direction (like weight and alignment hints) and you would
17992     * like it to have a specific size.
17993     *
17994     * @note Icon, end, label, indicator and unit text around @p obj
17995     * will require their
17996     * own space, which will make @p obj to require more the @p size,
17997     * actually.
17998     *
17999     * @see elm_slider_span_size_get()
18000     *
18001     * @ingroup Slider
18002     */
18003    EAPI void               elm_slider_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
18004
18005    /**
18006     * Get the length set for the bar region of a given slider widget
18007     *
18008     * @param obj The slider object.
18009     * @return The length of the slider's bar region.
18010     *
18011     * If that size was not set previously, with
18012     * elm_slider_span_size_set(), this call will return @c 0.
18013     *
18014     * @ingroup Slider
18015     */
18016    EAPI Evas_Coord         elm_slider_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18017
18018    /**
18019     * Set the format string for the unit label.
18020     *
18021     * @param obj The slider object.
18022     * @param format The format string for the unit display.
18023     *
18024     * Unit label is displayed all the time, if set, after slider's bar.
18025     * In horizontal mode, at right and in vertical mode, at bottom.
18026     *
18027     * If @c NULL, unit label won't be visible. If not it sets the format
18028     * string for the label text. To the label text is provided a floating point
18029     * value, so the label text can display up to 1 floating point value.
18030     * Note that this is optional.
18031     *
18032     * Use a format string such as "%1.2f meters" for example, and it will
18033     * display values like: "3.14 meters" for a value equal to 3.14159.
18034     *
18035     * Default is unit label disabled.
18036     *
18037     * @see elm_slider_indicator_format_get()
18038     *
18039     * @ingroup Slider
18040     */
18041    EAPI void               elm_slider_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
18042
18043    /**
18044     * Get the unit label format of the slider.
18045     *
18046     * @param obj The slider object.
18047     * @return The unit label format string in UTF-8.
18048     *
18049     * Unit label is displayed all the time, if set, after slider's bar.
18050     * In horizontal mode, at right and in vertical mode, at bottom.
18051     *
18052     * @see elm_slider_unit_format_set() for more
18053     * information on how this works.
18054     *
18055     * @ingroup Slider
18056     */
18057    EAPI const char        *elm_slider_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18058
18059    /**
18060     * Set the format string for the indicator label.
18061     *
18062     * @param obj The slider object.
18063     * @param indicator The format string for the indicator display.
18064     *
18065     * The slider may display its value somewhere else then unit label,
18066     * for example, above the slider knob that is dragged around. This function
18067     * sets the format string used for this.
18068     *
18069     * If @c NULL, indicator label won't be visible. If not it sets the format
18070     * string for the label text. To the label text is provided a floating point
18071     * value, so the label text can display up to 1 floating point value.
18072     * Note that this is optional.
18073     *
18074     * Use a format string such as "%1.2f meters" for example, and it will
18075     * display values like: "3.14 meters" for a value equal to 3.14159.
18076     *
18077     * Default is indicator label disabled.
18078     *
18079     * @see elm_slider_indicator_format_get()
18080     *
18081     * @ingroup Slider
18082     */
18083    EAPI void               elm_slider_indicator_format_set(Evas_Object *obj, const char *indicator) EINA_ARG_NONNULL(1);
18084
18085    /**
18086     * Get the indicator label format of the slider.
18087     *
18088     * @param obj The slider object.
18089     * @return The indicator label format string in UTF-8.
18090     *
18091     * The slider may display its value somewhere else then unit label,
18092     * for example, above the slider knob that is dragged around. This function
18093     * gets the format string used for this.
18094     *
18095     * @see elm_slider_indicator_format_set() for more
18096     * information on how this works.
18097     *
18098     * @ingroup Slider
18099     */
18100    EAPI const char        *elm_slider_indicator_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18101
18102    /**
18103     * Set the format function pointer for the indicator label
18104     *
18105     * @param obj The slider object.
18106     * @param func The indicator format function.
18107     * @param free_func The freeing function for the format string.
18108     *
18109     * Set the callback function to format the indicator string.
18110     *
18111     * @see elm_slider_indicator_format_set() for more info on how this works.
18112     *
18113     * @ingroup Slider
18114     */
18115   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);
18116
18117   /**
18118    * Set the format function pointer for the units label
18119    *
18120    * @param obj The slider object.
18121    * @param func The units format function.
18122    * @param free_func The freeing function for the format string.
18123    *
18124    * Set the callback function to format the indicator string.
18125    *
18126    * @see elm_slider_units_format_set() for more info on how this works.
18127    *
18128    * @ingroup Slider
18129    */
18130   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);
18131
18132   /**
18133    * Set the orientation of a given slider widget.
18134    *
18135    * @param obj The slider object.
18136    * @param horizontal Use @c EINA_TRUE to make @p obj to be
18137    * @b horizontal, @c EINA_FALSE to make it @b vertical.
18138    *
18139    * Use this function to change how your slider is to be
18140    * disposed: vertically or horizontally.
18141    *
18142    * By default it's displayed horizontally.
18143    *
18144    * @see elm_slider_horizontal_get()
18145    *
18146    * @ingroup Slider
18147    */
18148    EAPI void               elm_slider_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
18149
18150    /**
18151     * Retrieve the orientation of a given slider widget
18152     *
18153     * @param obj The slider object.
18154     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
18155     * @c EINA_FALSE if it's @b vertical (and on errors).
18156     *
18157     * @see elm_slider_horizontal_set() for more details.
18158     *
18159     * @ingroup Slider
18160     */
18161    EAPI Eina_Bool          elm_slider_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18162
18163    /**
18164     * Set the minimum and maximum values for the slider.
18165     *
18166     * @param obj The slider object.
18167     * @param min The minimum value.
18168     * @param max The maximum value.
18169     *
18170     * Define the allowed range of values to be selected by the user.
18171     *
18172     * If actual value is less than @p min, it will be updated to @p min. If it
18173     * is bigger then @p max, will be updated to @p max. Actual value can be
18174     * get with elm_slider_value_get().
18175     *
18176     * By default, min is equal to 0.0, and max is equal to 1.0.
18177     *
18178     * @warning Maximum must be greater than minimum, otherwise behavior
18179     * is undefined.
18180     *
18181     * @see elm_slider_min_max_get()
18182     *
18183     * @ingroup Slider
18184     */
18185    EAPI void               elm_slider_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
18186
18187    /**
18188     * Get the minimum and maximum values of the slider.
18189     *
18190     * @param obj The slider object.
18191     * @param min Pointer where to store the minimum value.
18192     * @param max Pointer where to store the maximum value.
18193     *
18194     * @note If only one value is needed, the other pointer can be passed
18195     * as @c NULL.
18196     *
18197     * @see elm_slider_min_max_set() for details.
18198     *
18199     * @ingroup Slider
18200     */
18201    EAPI void               elm_slider_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
18202
18203    /**
18204     * Set the value the slider displays.
18205     *
18206     * @param obj The slider object.
18207     * @param val The value to be displayed.
18208     *
18209     * Value will be presented on the unit label following format specified with
18210     * elm_slider_unit_format_set() and on indicator with
18211     * elm_slider_indicator_format_set().
18212     *
18213     * @warning The value must to be between min and max values. This values
18214     * are set by elm_slider_min_max_set().
18215     *
18216     * @see elm_slider_value_get()
18217     * @see elm_slider_unit_format_set()
18218     * @see elm_slider_indicator_format_set()
18219     * @see elm_slider_min_max_set()
18220     *
18221     * @ingroup Slider
18222     */
18223    EAPI void               elm_slider_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
18224
18225    /**
18226     * Get the value displayed by the spinner.
18227     *
18228     * @param obj The spinner object.
18229     * @return The value displayed.
18230     *
18231     * @see elm_spinner_value_set() for details.
18232     *
18233     * @ingroup Slider
18234     */
18235    EAPI double             elm_slider_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18236
18237    /**
18238     * Invert a given slider widget's displaying values order
18239     *
18240     * @param obj The slider object.
18241     * @param inverted Use @c EINA_TRUE to make @p obj inverted,
18242     * @c EINA_FALSE to bring it back to default, non-inverted values.
18243     *
18244     * A slider may be @b inverted, in which state it gets its
18245     * values inverted, with high vales being on the left or top and
18246     * low values on the right or bottom, as opposed to normally have
18247     * the low values on the former and high values on the latter,
18248     * respectively, for horizontal and vertical modes.
18249     *
18250     * @see elm_slider_inverted_get()
18251     *
18252     * @ingroup Slider
18253     */
18254    EAPI void               elm_slider_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
18255
18256    /**
18257     * Get whether a given slider widget's displaying values are
18258     * inverted or not.
18259     *
18260     * @param obj The slider object.
18261     * @return @c EINA_TRUE, if @p obj has inverted values,
18262     * @c EINA_FALSE otherwise (and on errors).
18263     *
18264     * @see elm_slider_inverted_set() for more details.
18265     *
18266     * @ingroup Slider
18267     */
18268    EAPI Eina_Bool          elm_slider_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18269
18270    /**
18271     * Set whether to enlarge slider indicator (augmented knob) or not.
18272     *
18273     * @param obj The slider object.
18274     * @param show @c EINA_TRUE will make it enlarge, @c EINA_FALSE will
18275     * let the knob always at default size.
18276     *
18277     * By default, indicator will be bigger while dragged by the user.
18278     *
18279     * @warning It won't display values set with
18280     * elm_slider_indicator_format_set() if you disable indicator.
18281     *
18282     * @ingroup Slider
18283     */
18284    EAPI void               elm_slider_indicator_show_set(Evas_Object *obj, Eina_Bool show) EINA_ARG_NONNULL(1);
18285
18286    /**
18287     * Get whether a given slider widget's enlarging indicator or not.
18288     *
18289     * @param obj The slider object.
18290     * @return @c EINA_TRUE, if @p obj is enlarging indicator, or
18291     * @c EINA_FALSE otherwise (and on errors).
18292     *
18293     * @see elm_slider_indicator_show_set() for details.
18294     *
18295     * @ingroup Slider
18296     */
18297    EAPI Eina_Bool          elm_slider_indicator_show_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18298
18299    /**
18300     * @}
18301     */
18302
18303    /**
18304     * @addtogroup Actionslider Actionslider
18305     *
18306     * @image html img/widget/actionslider/preview-00.png
18307     * @image latex img/widget/actionslider/preview-00.eps
18308     *
18309     * An actionslider is a switcher for 2 or 3 labels with customizable magnet
18310     * properties. The user drags and releases the indicator, to choose a label.
18311     *
18312     * Labels occupy the following positions.
18313     * a. Left
18314     * b. Right
18315     * c. Center
18316     *
18317     * Positions can be enabled or disabled.
18318     *
18319     * Magnets can be set on the above positions.
18320     *
18321     * When the indicator is released, it will move to its nearest "enabled and magnetized" position.
18322     *
18323     * @note By default all positions are set as enabled.
18324     *
18325     * Signals that you can add callbacks for are:
18326     *
18327     * "selected" - when user selects an enabled position (the label is passed
18328     *              as event info)".
18329     * @n
18330     * "pos_changed" - when the indicator reaches any of the positions("left",
18331     *                 "right" or "center").
18332     *
18333     * See an example of actionslider usage @ref actionslider_example_page "here"
18334     * @{
18335     */
18336    typedef enum _Elm_Actionslider_Pos
18337      {
18338         ELM_ACTIONSLIDER_NONE = 0,
18339         ELM_ACTIONSLIDER_LEFT = 1 << 0,
18340         ELM_ACTIONSLIDER_CENTER = 1 << 1,
18341         ELM_ACTIONSLIDER_RIGHT = 1 << 2,
18342         ELM_ACTIONSLIDER_ALL = (1 << 3) -1
18343      } Elm_Actionslider_Pos;
18344
18345    /**
18346     * Add a new actionslider to the parent.
18347     *
18348     * @param parent The parent object
18349     * @return The new actionslider object or NULL if it cannot be created
18350     */
18351    EAPI Evas_Object          *elm_actionslider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18352    /**
18353     * Set actionslider labels.
18354     *
18355     * @param obj The actionslider object
18356     * @param left_label The label to be set on the left.
18357     * @param center_label The label to be set on the center.
18358     * @param right_label The label to be set on the right.
18359     * @deprecated use elm_object_text_set() instead.
18360     */
18361    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);
18362    /**
18363     * Get actionslider labels.
18364     *
18365     * @param obj The actionslider object
18366     * @param left_label A char** to place the left_label of @p obj into.
18367     * @param center_label A char** to place the center_label of @p obj into.
18368     * @param right_label A char** to place the right_label of @p obj into.
18369     * @deprecated use elm_object_text_set() instead.
18370     */
18371    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);
18372    /**
18373     * Get actionslider selected label.
18374     *
18375     * @param obj The actionslider object
18376     * @return The selected label
18377     */
18378    EAPI const char           *elm_actionslider_selected_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18379    /**
18380     * Set actionslider indicator position.
18381     *
18382     * @param obj The actionslider object.
18383     * @param pos The position of the indicator.
18384     */
18385    EAPI void                  elm_actionslider_indicator_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
18386    /**
18387     * Get actionslider indicator position.
18388     *
18389     * @param obj The actionslider object.
18390     * @return The position of the indicator.
18391     */
18392    EAPI Elm_Actionslider_Pos  elm_actionslider_indicator_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18393    /**
18394     * Set actionslider magnet position. To make multiple positions magnets @c or
18395     * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT)
18396     *
18397     * @param obj The actionslider object.
18398     * @param pos Bit mask indicating the magnet positions.
18399     */
18400    EAPI void                  elm_actionslider_magnet_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
18401    /**
18402     * Get actionslider magnet position.
18403     *
18404     * @param obj The actionslider object.
18405     * @return The positions with magnet property.
18406     */
18407    EAPI Elm_Actionslider_Pos  elm_actionslider_magnet_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18408    /**
18409     * Set actionslider enabled position. To set multiple positions as enabled @c or
18410     * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT).
18411     *
18412     * @note All the positions are enabled by default.
18413     *
18414     * @param obj The actionslider object.
18415     * @param pos Bit mask indicating the enabled positions.
18416     */
18417    EAPI void                  elm_actionslider_enabled_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
18418    /**
18419     * Get actionslider enabled position.
18420     *
18421     * @param obj The actionslider object.
18422     * @return The enabled positions.
18423     */
18424    EAPI Elm_Actionslider_Pos  elm_actionslider_enabled_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18425    /**
18426     * Set the label used on the indicator.
18427     *
18428     * @param obj The actionslider object
18429     * @param label The label to be set on the indicator.
18430     * @deprecated use elm_object_text_set() instead.
18431     */
18432    EINA_DEPRECATED EAPI void                  elm_actionslider_indicator_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
18433    /**
18434     * Get the label used on the indicator object.
18435     *
18436     * @param obj The actionslider object
18437     * @return The indicator label
18438     * @deprecated use elm_object_text_get() instead.
18439     */
18440    EINA_DEPRECATED EAPI const char           *elm_actionslider_indicator_label_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
18441    /**
18442     * @}
18443     */
18444
18445    /**
18446     * @defgroup Genlist Genlist
18447     *
18448     * @image html img/widget/genlist/preview-00.png
18449     * @image latex img/widget/genlist/preview-00.eps
18450     * @image html img/genlist.png
18451     * @image latex img/genlist.eps
18452     *
18453     * This widget aims to have more expansive list than the simple list in
18454     * Elementary that could have more flexible items and allow many more entries
18455     * while still being fast and low on memory usage. At the same time it was
18456     * also made to be able to do tree structures. But the price to pay is more
18457     * complexity when it comes to usage. If all you want is a simple list with
18458     * icons and a single text, use the normal @ref List object.
18459     *
18460     * Genlist has a fairly large API, mostly because it's relatively complex,
18461     * trying to be both expansive, powerful and efficient. First we will begin
18462     * an overview on the theory behind genlist.
18463     *
18464     * @section Genlist_Item_Class Genlist item classes - creating items
18465     *
18466     * In order to have the ability to add and delete items on the fly, genlist
18467     * implements a class (callback) system where the application provides a
18468     * structure with information about that type of item (genlist may contain
18469     * multiple different items with different classes, states and styles).
18470     * Genlist will call the functions in this struct (methods) when an item is
18471     * "realized" (i.e., created dynamically, while the user is scrolling the
18472     * grid). All objects will simply be deleted when no longer needed with
18473     * evas_object_del(). The #Elm_Genlist_Item_Class structure contains the
18474     * following members:
18475     * - @c item_style - This is a constant string and simply defines the name
18476     *   of the item style. It @b must be specified and the default should be @c
18477     *   "default".
18478     *
18479     * - @c func - A struct with pointers to functions that will be called when
18480     *   an item is going to be actually created. All of them receive a @c data
18481     *   parameter that will point to the same data passed to
18482     *   elm_genlist_item_append() and related item creation functions, and a @c
18483     *   obj parameter that points to the genlist object itself.
18484     *
18485     * The function pointers inside @c func are @c text_get, @c content_get, @c
18486     * state_get and @c del. The 3 first functions also receive a @c part
18487     * parameter described below. A brief description of these functions follows:
18488     *
18489     * - @c text_get - The @c part parameter is the name string of one of the
18490     *   existing text parts in the Edje group implementing the item's theme.
18491     *   This function @b must return a strdup'()ed string, as the caller will
18492     *   free() it when done. See #Elm_Genlist_Item_Text_Get_Cb.
18493     * - @c content_get - The @c part parameter is the name string of one of the
18494     *   existing (content) swallow parts in the Edje group implementing the item's
18495     *   theme. It must return @c NULL, when no content is desired, or a valid
18496     *   object handle, otherwise.  The object will be deleted by the genlist on
18497     *   its deletion or when the item is "unrealized".  See
18498     *   #Elm_Genlist_Item_Content_Get_Cb.
18499     * - @c func.state_get - The @c part parameter is the name string of one of
18500     *   the state parts in the Edje group implementing the item's theme. Return
18501     *   @c EINA_FALSE for false/off or @c EINA_TRUE for true/on. Genlists will
18502     *   emit a signal to its theming Edje object with @c "elm,state,XXX,active"
18503     *   and @c "elm" as "emission" and "source" arguments, respectively, when
18504     *   the state is true (the default is false), where @c XXX is the name of
18505     *   the (state) part.  See #Elm_Genlist_Item_State_Get_Cb.
18506     * - @c func.del - This is intended for use when genlist items are deleted,
18507     *   so any data attached to the item (e.g. its data parameter on creation)
18508     *   can be deleted. See #Elm_Genlist_Item_Del_Cb.
18509     *
18510     * available item styles:
18511     * - default
18512     * - default_style - The text part is a textblock
18513     *
18514     * @image html img/widget/genlist/preview-04.png
18515     * @image latex img/widget/genlist/preview-04.eps
18516     *
18517     * - double_label
18518     *
18519     * @image html img/widget/genlist/preview-01.png
18520     * @image latex img/widget/genlist/preview-01.eps
18521     *
18522     * - icon_top_text_bottom
18523     *
18524     * @image html img/widget/genlist/preview-02.png
18525     * @image latex img/widget/genlist/preview-02.eps
18526     *
18527     * - group_index
18528     *
18529     * @image html img/widget/genlist/preview-03.png
18530     * @image latex img/widget/genlist/preview-03.eps
18531     *
18532     * @section Genlist_Items Structure of items
18533     *
18534     * An item in a genlist can have 0 or more texts (they can be regular
18535     * text or textblock Evas objects - that's up to the style to determine), 0
18536     * or more contents (which are simply objects swallowed into the genlist item's
18537     * theming Edje object) and 0 or more <b>boolean states</b>, which have the
18538     * behavior left to the user to define. The Edje part names for each of
18539     * these properties will be looked up, in the theme file for the genlist,
18540     * under the Edje (string) data items named @c "labels", @c "contents" and @c
18541     * "states", respectively. For each of those properties, if more than one
18542     * part is provided, they must have names listed separated by spaces in the
18543     * data fields. For the default genlist item theme, we have @b one text 
18544     * part (@c "elm.text"), @b two content parts (@c "elm.swalllow.icon" and @c
18545     * "elm.swallow.end") and @b no state parts.
18546     *
18547     * A genlist item may be at one of several styles. Elementary provides one
18548     * by default - "default", but this can be extended by system or application
18549     * custom themes/overlays/extensions (see @ref Theme "themes" for more
18550     * details).
18551     *
18552     * @section Genlist_Manipulation Editing and Navigating
18553     *
18554     * Items can be added by several calls. All of them return a @ref
18555     * Elm_Genlist_Item handle that is an internal member inside the genlist.
18556     * They all take a data parameter that is meant to be used for a handle to
18557     * the applications internal data (eg the struct with the original item
18558     * data). The parent parameter is the parent genlist item this belongs to if
18559     * it is a tree or an indexed group, and NULL if there is no parent. The
18560     * flags can be a bitmask of #ELM_GENLIST_ITEM_NONE,
18561     * #ELM_GENLIST_ITEM_SUBITEMS and #ELM_GENLIST_ITEM_GROUP. If
18562     * #ELM_GENLIST_ITEM_SUBITEMS is set then this item is displayed as an item
18563     * that is able to expand and have child items.  If ELM_GENLIST_ITEM_GROUP
18564     * is set then this item is group index item that is displayed at the top
18565     * until the next group comes. The func parameter is a convenience callback
18566     * that is called when the item is selected and the data parameter will be
18567     * the func_data parameter, obj be the genlist object and event_info will be
18568     * the genlist item.
18569     *
18570     * elm_genlist_item_append() adds an item to the end of the list, or if
18571     * there is a parent, to the end of all the child items of the parent.
18572     * elm_genlist_item_prepend() is the same but adds to the beginning of
18573     * the list or children list. elm_genlist_item_insert_before() inserts at
18574     * item before another item and elm_genlist_item_insert_after() inserts after
18575     * the indicated item.
18576     *
18577     * The application can clear the list with elm_genlist_clear() which deletes
18578     * all the items in the list and elm_genlist_item_del() will delete a specific
18579     * item. elm_genlist_item_subitems_clear() will clear all items that are
18580     * children of the indicated parent item.
18581     *
18582     * To help inspect list items you can jump to the item at the top of the list
18583     * with elm_genlist_first_item_get() which will return the item pointer, and
18584     * similarly elm_genlist_last_item_get() gets the item at the end of the list.
18585     * elm_genlist_item_next_get() and elm_genlist_item_prev_get() get the next
18586     * and previous items respectively relative to the indicated item. Using
18587     * these calls you can walk the entire item list/tree. Note that as a tree
18588     * the items are flattened in the list, so elm_genlist_item_parent_get() will
18589     * let you know which item is the parent (and thus know how to skip them if
18590     * wanted).
18591     *
18592     * @section Genlist_Muti_Selection Multi-selection
18593     *
18594     * If the application wants multiple items to be able to be selected,
18595     * elm_genlist_multi_select_set() can enable this. If the list is
18596     * single-selection only (the default), then elm_genlist_selected_item_get()
18597     * will return the selected item, if any, or NULL if none is selected. If the
18598     * list is multi-select then elm_genlist_selected_items_get() will return a
18599     * list (that is only valid as long as no items are modified (added, deleted,
18600     * selected or unselected)).
18601     *
18602     * @section Genlist_Usage_Hints Usage hints
18603     *
18604     * There are also convenience functions. elm_genlist_item_genlist_get() will
18605     * return the genlist object the item belongs to. elm_genlist_item_show()
18606     * will make the scroller scroll to show that specific item so its visible.
18607     * elm_genlist_item_data_get() returns the data pointer set by the item
18608     * creation functions.
18609     *
18610     * If an item changes (state of boolean changes, text or contents change),
18611     * then use elm_genlist_item_update() to have genlist update the item with
18612     * the new state. Genlist will re-realize the item thus call the functions
18613     * in the _Elm_Genlist_Item_Class for that item.
18614     *
18615     * To programmatically (un)select an item use elm_genlist_item_selected_set().
18616     * To get its selected state use elm_genlist_item_selected_get(). Similarly
18617     * to expand/contract an item and get its expanded state, use
18618     * elm_genlist_item_expanded_set() and elm_genlist_item_expanded_get(). And
18619     * again to make an item disabled (unable to be selected and appear
18620     * differently) use elm_genlist_item_disabled_set() to set this and
18621     * elm_genlist_item_disabled_get() to get the disabled state.
18622     *
18623     * In general to indicate how the genlist should expand items horizontally to
18624     * fill the list area, use elm_genlist_horizontal_set(). Valid modes are
18625     * ELM_LIST_LIMIT and ELM_LIST_SCROLL. The default is ELM_LIST_SCROLL. This
18626     * mode means that if items are too wide to fit, the scroller will scroll
18627     * horizontally. Otherwise items are expanded to fill the width of the
18628     * viewport of the scroller. If it is ELM_LIST_LIMIT, items will be expanded
18629     * to the viewport width and limited to that size. This can be combined with
18630     * a different style that uses edjes' ellipsis feature (cutting text off like
18631     * this: "tex...").
18632     *
18633     * Items will only call their selection func and callback when first becoming
18634     * selected. Any further clicks will do nothing, unless you enable always
18635     * select with elm_genlist_always_select_mode_set(). This means even if
18636     * selected, every click will make the selected callbacks be called.
18637     * elm_genlist_no_select_mode_set() will turn off the ability to select
18638     * items entirely and they will neither appear selected nor call selected
18639     * callback functions.
18640     *
18641     * Remember that you can create new styles and add your own theme augmentation
18642     * per application with elm_theme_extension_add(). If you absolutely must
18643     * have a specific style that overrides any theme the user or system sets up
18644     * you can use elm_theme_overlay_add() to add such a file.
18645     *
18646     * @section Genlist_Implementation Implementation
18647     *
18648     * Evas tracks every object you create. Every time it processes an event
18649     * (mouse move, down, up etc.) it needs to walk through objects and find out
18650     * what event that affects. Even worse every time it renders display updates,
18651     * in order to just calculate what to re-draw, it needs to walk through many
18652     * many many objects. Thus, the more objects you keep active, the more
18653     * overhead Evas has in just doing its work. It is advisable to keep your
18654     * active objects to the minimum working set you need. Also remember that
18655     * object creation and deletion carries an overhead, so there is a
18656     * middle-ground, which is not easily determined. But don't keep massive lists
18657     * of objects you can't see or use. Genlist does this with list objects. It
18658     * creates and destroys them dynamically as you scroll around. It groups them
18659     * into blocks so it can determine the visibility etc. of a whole block at
18660     * once as opposed to having to walk the whole list. This 2-level list allows
18661     * for very large numbers of items to be in the list (tests have used up to
18662     * 2,000,000 items). Also genlist employs a queue for adding items. As items
18663     * may be different sizes, every item added needs to be calculated as to its
18664     * size and thus this presents a lot of overhead on populating the list, this
18665     * genlist employs a queue. Any item added is queued and spooled off over
18666     * time, actually appearing some time later, so if your list has many members
18667     * you may find it takes a while for them to all appear, with your process
18668     * consuming a lot of CPU while it is busy spooling.
18669     *
18670     * Genlist also implements a tree structure, but it does so with callbacks to
18671     * the application, with the application filling in tree structures when
18672     * requested (allowing for efficient building of a very deep tree that could
18673     * even be used for file-management). See the above smart signal callbacks for
18674     * details.
18675     *
18676     * @section Genlist_Smart_Events Genlist smart events
18677     *
18678     * Signals that you can add callbacks for are:
18679     * - @c "activated" - The user has double-clicked or pressed
18680     *   (enter|return|spacebar) on an item. The @c event_info parameter is the
18681     *   item that was activated.
18682     * - @c "clicked,double" - The user has double-clicked an item.  The @c
18683     *   event_info parameter is the item that was double-clicked.
18684     * - @c "selected" - This is called when a user has made an item selected.
18685     *   The event_info parameter is the genlist item that was selected.
18686     * - @c "unselected" - This is called when a user has made an item
18687     *   unselected. The event_info parameter is the genlist item that was
18688     *   unselected.
18689     * - @c "expanded" - This is called when elm_genlist_item_expanded_set() is
18690     *   called and the item is now meant to be expanded. The event_info
18691     *   parameter is the genlist item that was indicated to expand.  It is the
18692     *   job of this callback to then fill in the child items.
18693     * - @c "contracted" - This is called when elm_genlist_item_expanded_set() is
18694     *   called and the item is now meant to be contracted. The event_info
18695     *   parameter is the genlist item that was indicated to contract. It is the
18696     *   job of this callback to then delete the child items.
18697     * - @c "expand,request" - This is called when a user has indicated they want
18698     *   to expand a tree branch item. The callback should decide if the item can
18699     *   expand (has any children) and then call elm_genlist_item_expanded_set()
18700     *   appropriately to set the state. The event_info parameter is the genlist
18701     *   item that was indicated to expand.
18702     * - @c "contract,request" - This is called when a user has indicated they
18703     *   want to contract a tree branch item. The callback should decide if the
18704     *   item can contract (has any children) and then call
18705     *   elm_genlist_item_expanded_set() appropriately to set the state. The
18706     *   event_info parameter is the genlist item that was indicated to contract.
18707     * - @c "realized" - This is called when the item in the list is created as a
18708     *   real evas object. event_info parameter is the genlist item that was
18709     *   created. The object may be deleted at any time, so it is up to the
18710     *   caller to not use the object pointer from elm_genlist_item_object_get()
18711     *   in a way where it may point to freed objects.
18712     * - @c "unrealized" - This is called just before an item is unrealized.
18713     *   After this call content objects provided will be deleted and the item
18714     *   object itself delete or be put into a floating cache.
18715     * - @c "drag,start,up" - This is called when the item in the list has been
18716     *   dragged (not scrolled) up.
18717     * - @c "drag,start,down" - This is called when the item in the list has been
18718     *   dragged (not scrolled) down.
18719     * - @c "drag,start,left" - This is called when the item in the list has been
18720     *   dragged (not scrolled) left.
18721     * - @c "drag,start,right" - This is called when the item in the list has
18722     *   been dragged (not scrolled) right.
18723     * - @c "drag,stop" - This is called when the item in the list has stopped
18724     *   being dragged.
18725     * - @c "drag" - This is called when the item in the list is being dragged.
18726     * - @c "longpressed" - This is called when the item is pressed for a certain
18727     *   amount of time. By default it's 1 second.
18728     * - @c "scroll,anim,start" - This is called when scrolling animation has
18729     *   started.
18730     * - @c "scroll,anim,stop" - This is called when scrolling animation has
18731     *   stopped.
18732     * - @c "scroll,drag,start" - This is called when dragging the content has
18733     *   started.
18734     * - @c "scroll,drag,stop" - This is called when dragging the content has
18735     *   stopped.
18736     * - @c "edge,top" - This is called when the genlist is scrolled until
18737     *   the top edge.
18738     * - @c "edge,bottom" - This is called when the genlist is scrolled
18739     *   until the bottom edge.
18740     * - @c "edge,left" - This is called when the genlist is scrolled
18741     *   until the left edge.
18742     * - @c "edge,right" - This is called when the genlist is scrolled
18743     *   until the right edge.
18744     * - @c "multi,swipe,left" - This is called when the genlist is multi-touch
18745     *   swiped left.
18746     * - @c "multi,swipe,right" - This is called when the genlist is multi-touch
18747     *   swiped right.
18748     * - @c "multi,swipe,up" - This is called when the genlist is multi-touch
18749     *   swiped up.
18750     * - @c "multi,swipe,down" - This is called when the genlist is multi-touch
18751     *   swiped down.
18752     * - @c "multi,pinch,out" - This is called when the genlist is multi-touch
18753     *   pinched out.  "- @c multi,pinch,in" - This is called when the genlist is
18754     *   multi-touch pinched in.
18755     * - @c "swipe" - This is called when the genlist is swiped.
18756     * - @c "moved" - This is called when a genlist item is moved.
18757     * - @c "language,changed" - This is called when the program's language is
18758     *   changed.
18759     *
18760     * @section Genlist_Examples Examples
18761     *
18762     * Here is a list of examples that use the genlist, trying to show some of
18763     * its capabilities:
18764     * - @ref genlist_example_01
18765     * - @ref genlist_example_02
18766     * - @ref genlist_example_03
18767     * - @ref genlist_example_04
18768     * - @ref genlist_example_05
18769     */
18770
18771    /**
18772     * @addtogroup Genlist
18773     * @{
18774     */
18775
18776    /**
18777     * @enum _Elm_Genlist_Item_Flags
18778     * @typedef Elm_Genlist_Item_Flags
18779     *
18780     * Defines if the item is of any special type (has subitems or it's the
18781     * index of a group), or is just a simple item.
18782     *
18783     * @ingroup Genlist
18784     */
18785    typedef enum _Elm_Genlist_Item_Flags
18786      {
18787         ELM_GENLIST_ITEM_NONE = 0, /**< simple item */
18788         ELM_GENLIST_ITEM_SUBITEMS = (1 << 0), /**< may expand and have child items */
18789         ELM_GENLIST_ITEM_GROUP = (1 << 1) /**< index of a group of items */
18790      } Elm_Genlist_Item_Flags;
18791    typedef enum _Elm_Genlist_Item_Field_Flags
18792      {
18793         ELM_GENLIST_ITEM_FIELD_ALL = 0,
18794         ELM_GENLIST_ITEM_FIELD_LABEL = (1 << 0),
18795         ELM_GENLIST_ITEM_FIELD_CONTENT = (1 << 1),
18796         ELM_GENLIST_ITEM_FIELD_STATE = (1 << 2)
18797      } Elm_Genlist_Item_Field_Flags;
18798    typedef struct _Elm_Genlist_Item_Class Elm_Genlist_Item_Class;  /**< Genlist item class definition structs */
18799    #define Elm_Genlist_Item_Class Elm_Gen_Item_Class
18800    typedef struct _Elm_Genlist_Item       Elm_Genlist_Item; /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
18801    #define Elm_Genlist_Item Elm_Gen_Item /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
18802    typedef struct _Elm_Genlist_Item_Class_Func Elm_Genlist_Item_Class_Func; /**< Class functions for genlist item class */
18803    /**
18804     * Text fetching class function for Elm_Gen_Item_Class.
18805     * @param data The data passed in the item creation function
18806     * @param obj The base widget object
18807     * @param part The part name of the swallow
18808     * @return The allocated (NOT stringshared) string to set as the text
18809     */
18810    typedef char        *(*Elm_Genlist_Item_Text_Get_Cb) (void *data, Evas_Object *obj, const char *part);
18811    /**
18812     * Content (swallowed object) fetching class function for Elm_Gen_Item_Class.
18813     * @param data The data passed in the item creation function
18814     * @param obj The base widget object
18815     * @param part The part name of the swallow
18816     * @return The content object to swallow
18817     */
18818    typedef Evas_Object *(*Elm_Genlist_Item_Content_Get_Cb)  (void *data, Evas_Object *obj, const char *part);
18819    /**
18820     * State fetching class function for Elm_Gen_Item_Class.
18821     * @param data The data passed in the item creation function
18822     * @param obj The base widget object
18823     * @param part The part name of the swallow
18824     * @return The hell if I know
18825     */
18826    typedef Eina_Bool    (*Elm_Genlist_Item_State_Get_Cb) (void *data, Evas_Object *obj, const char *part);
18827    /**
18828     * Deletion class function for Elm_Gen_Item_Class.
18829     * @param data The data passed in the item creation function
18830     * @param obj The base widget object
18831     */
18832    typedef void         (*Elm_Genlist_Item_Del_Cb)      (void *data, Evas_Object *obj);
18833
18834    /**
18835     * @struct _Elm_Genlist_Item_Class
18836     *
18837     * Genlist item class definition structs.
18838     *
18839     * This struct contains the style and fetching functions that will define the
18840     * contents of each item.
18841     *
18842     * @see @ref Genlist_Item_Class
18843     */
18844    struct _Elm_Genlist_Item_Class
18845      {
18846         const char                *item_style; /**< style of this class. */
18847         struct Elm_Genlist_Item_Class_Func
18848           {
18849              Elm_Genlist_Item_Text_Get_Cb    text_get; /**< Text fetching class function for genlist item classes.*/
18850              Elm_Genlist_Item_Content_Get_Cb content_get; /**< Content fetching class function for genlist item classes. */
18851              Elm_Genlist_Item_State_Get_Cb   state_get; /**< State fetching class function for genlist item classes. */
18852              Elm_Genlist_Item_Del_Cb         del; /**< Deletion class function for genlist item classes. */
18853           } func;
18854      };
18855    #define Elm_Genlist_Item_Class_Func Elm_Gen_Item_Class_Func
18856    /**
18857     * Add a new genlist widget to the given parent Elementary
18858     * (container) object
18859     *
18860     * @param parent The parent object
18861     * @return a new genlist widget handle or @c NULL, on errors
18862     *
18863     * This function inserts a new genlist widget on the canvas.
18864     *
18865     * @see elm_genlist_item_append()
18866     * @see elm_genlist_item_del()
18867     * @see elm_genlist_clear()
18868     *
18869     * @ingroup Genlist
18870     */
18871    EAPI Evas_Object      *elm_genlist_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18872    /**
18873     * Remove all items from a given genlist widget.
18874     *
18875     * @param obj The genlist object
18876     *
18877     * This removes (and deletes) all items in @p obj, leaving it empty.
18878     *
18879     * @see elm_genlist_item_del(), to remove just one item.
18880     *
18881     * @ingroup Genlist
18882     */
18883    EAPI void elm_genlist_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
18884    /**
18885     * Enable or disable multi-selection in the genlist
18886     *
18887     * @param obj The genlist object
18888     * @param multi Multi-select enable/disable. Default is disabled.
18889     *
18890     * This enables (@c EINA_TRUE) or disables (@c EINA_FALSE) multi-selection in
18891     * the list. This allows more than 1 item to be selected. To retrieve the list
18892     * of selected items, use elm_genlist_selected_items_get().
18893     *
18894     * @see elm_genlist_selected_items_get()
18895     * @see elm_genlist_multi_select_get()
18896     *
18897     * @ingroup Genlist
18898     */
18899    EAPI void              elm_genlist_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
18900    /**
18901     * Gets if multi-selection in genlist is enabled or disabled.
18902     *
18903     * @param obj The genlist object
18904     * @return Multi-select enabled/disabled
18905     * (@c EINA_TRUE = enabled/@c EINA_FALSE = disabled). Default is @c EINA_FALSE.
18906     *
18907     * @see elm_genlist_multi_select_set()
18908     *
18909     * @ingroup Genlist
18910     */
18911    EAPI Eina_Bool         elm_genlist_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18912    /**
18913     * This sets the horizontal stretching mode.
18914     *
18915     * @param obj The genlist object
18916     * @param mode The mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).
18917     *
18918     * This sets the mode used for sizing items horizontally. Valid modes
18919     * are #ELM_LIST_LIMIT and #ELM_LIST_SCROLL. The default is
18920     * ELM_LIST_SCROLL. This mode means that if items are too wide to fit,
18921     * the scroller will scroll horizontally. Otherwise items are expanded
18922     * to fill the width of the viewport of the scroller. If it is
18923     * ELM_LIST_LIMIT, items will be expanded to the viewport width and
18924     * limited to that size.
18925     *
18926     * @see elm_genlist_horizontal_get()
18927     *
18928     * @ingroup Genlist
18929     */
18930    EAPI void              elm_genlist_horizontal_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
18931    EINA_DEPRECATED EAPI void              elm_genlist_horizontal_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
18932    /**
18933     * Gets the horizontal stretching mode.
18934     *
18935     * @param obj The genlist object
18936     * @return The mode to use
18937     * (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL)
18938     *
18939     * @see elm_genlist_horizontal_set()
18940     *
18941     * @ingroup Genlist
18942     */
18943    EAPI Elm_List_Mode     elm_genlist_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18944    EINA_DEPRECATED EAPI Elm_List_Mode     elm_genlist_horizontal_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18945    /**
18946     * Set the always select mode.
18947     *
18948     * @param obj The genlist object
18949     * @param always_select The always select mode (@c EINA_TRUE = on, @c
18950     * EINA_FALSE = off). Default is @c EINA_FALSE.
18951     *
18952     * Items will only call their selection func and callback when first
18953     * becoming selected. Any further clicks will do nothing, unless you
18954     * enable always select with elm_genlist_always_select_mode_set().
18955     * This means that, even if selected, every click will make the selected
18956     * callbacks be called.
18957     *
18958     * @see elm_genlist_always_select_mode_get()
18959     *
18960     * @ingroup Genlist
18961     */
18962    EAPI void              elm_genlist_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
18963    /**
18964     * Get the always select mode.
18965     *
18966     * @param obj The genlist object
18967     * @return The always select mode
18968     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
18969     *
18970     * @see elm_genlist_always_select_mode_set()
18971     *
18972     * @ingroup Genlist
18973     */
18974    EAPI Eina_Bool         elm_genlist_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18975    /**
18976     * Enable/disable the no select mode.
18977     *
18978     * @param obj The genlist object
18979     * @param no_select The no select mode
18980     * (EINA_TRUE = on, EINA_FALSE = off)
18981     *
18982     * This will turn off the ability to select items entirely and they
18983     * will neither appear selected nor call selected callback functions.
18984     *
18985     * @see elm_genlist_no_select_mode_get()
18986     *
18987     * @ingroup Genlist
18988     */
18989    EAPI void              elm_genlist_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
18990    /**
18991     * Gets whether the no select mode is enabled.
18992     *
18993     * @param obj The genlist object
18994     * @return The no select mode
18995     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
18996     *
18997     * @see elm_genlist_no_select_mode_set()
18998     *
18999     * @ingroup Genlist
19000     */
19001    EAPI Eina_Bool         elm_genlist_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19002    /**
19003     * Enable/disable compress mode.
19004     *
19005     * @param obj The genlist object
19006     * @param compress The compress mode
19007     * (@c EINA_TRUE = on, @c EINA_FALSE = off). Default is @c EINA_FALSE.
19008     *
19009     * This will enable the compress mode where items are "compressed"
19010     * horizontally to fit the genlist scrollable viewport width. This is
19011     * special for genlist.  Do not rely on
19012     * elm_genlist_horizontal_set() being set to @c ELM_LIST_COMPRESS to
19013     * work as genlist needs to handle it specially.
19014     *
19015     * @see elm_genlist_compress_mode_get()
19016     *
19017     * @ingroup Genlist
19018     */
19019    EAPI void              elm_genlist_compress_mode_set(Evas_Object *obj, Eina_Bool compress) EINA_ARG_NONNULL(1);
19020    /**
19021     * Get whether the compress mode is enabled.
19022     *
19023     * @param obj The genlist object
19024     * @return The compress mode
19025     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
19026     *
19027     * @see elm_genlist_compress_mode_set()
19028     *
19029     * @ingroup Genlist
19030     */
19031    EAPI Eina_Bool         elm_genlist_compress_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19032    /**
19033     * Enable/disable height-for-width mode.
19034     *
19035     * @param obj The genlist object
19036     * @param setting The height-for-width mode (@c EINA_TRUE = on,
19037     * @c EINA_FALSE = off). Default is @c EINA_FALSE.
19038     *
19039     * With height-for-width mode the item width will be fixed (restricted
19040     * to a minimum of) to the list width when calculating its size in
19041     * order to allow the height to be calculated based on it. This allows,
19042     * for instance, text block to wrap lines if the Edje part is
19043     * configured with "text.min: 0 1".
19044     *
19045     * @note This mode will make list resize slower as it will have to
19046     *       recalculate every item height again whenever the list width
19047     *       changes!
19048     *
19049     * @note When height-for-width mode is enabled, it also enables
19050     *       compress mode (see elm_genlist_compress_mode_set()) and
19051     *       disables homogeneous (see elm_genlist_homogeneous_set()).
19052     *
19053     * @ingroup Genlist
19054     */
19055    EAPI void              elm_genlist_height_for_width_mode_set(Evas_Object *obj, Eina_Bool height_for_width) EINA_ARG_NONNULL(1);
19056    /**
19057     * Get whether the height-for-width mode is enabled.
19058     *
19059     * @param obj The genlist object
19060     * @return The height-for-width mode (@c EINA_TRUE = on, @c EINA_FALSE =
19061     * off)
19062     *
19063     * @ingroup Genlist
19064     */
19065    EAPI Eina_Bool         elm_genlist_height_for_width_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19066    /**
19067     * Enable/disable horizontal and vertical bouncing effect.
19068     *
19069     * @param obj The genlist object
19070     * @param h_bounce Allow bounce horizontally (@c EINA_TRUE = on, @c
19071     * EINA_FALSE = off). Default is @c EINA_FALSE.
19072     * @param v_bounce Allow bounce vertically (@c EINA_TRUE = on, @c
19073     * EINA_FALSE = off). Default is @c EINA_TRUE.
19074     *
19075     * This will enable or disable the scroller bouncing effect for the
19076     * genlist. See elm_scroller_bounce_set() for details.
19077     *
19078     * @see elm_scroller_bounce_set()
19079     * @see elm_genlist_bounce_get()
19080     *
19081     * @ingroup Genlist
19082     */
19083    EAPI void              elm_genlist_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
19084    /**
19085     * Get whether the horizontal and vertical bouncing effect is enabled.
19086     *
19087     * @param obj The genlist object
19088     * @param h_bounce Pointer to a bool to receive if the bounce horizontally
19089     * option is set.
19090     * @param v_bounce Pointer to a bool to receive if the bounce vertically
19091     * option is set.
19092     *
19093     * @see elm_genlist_bounce_set()
19094     *
19095     * @ingroup Genlist
19096     */
19097    EAPI void              elm_genlist_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
19098    /**
19099     * Enable/disable homogeneous mode.
19100     *
19101     * @param obj The genlist object
19102     * @param homogeneous Assume the items within the genlist are of the
19103     * same height and width (EINA_TRUE = on, EINA_FALSE = off). Default is @c
19104     * EINA_FALSE.
19105     *
19106     * This will enable the homogeneous mode where items are of the same
19107     * height and width so that genlist may do the lazy-loading at its
19108     * maximum (which increases the performance for scrolling the list). This
19109     * implies 'compressed' mode.
19110     *
19111     * @see elm_genlist_compress_mode_set()
19112     * @see elm_genlist_homogeneous_get()
19113     *
19114     * @ingroup Genlist
19115     */
19116    EAPI void              elm_genlist_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
19117    /**
19118     * Get whether the homogeneous mode is enabled.
19119     *
19120     * @param obj The genlist object
19121     * @return Assume the items within the genlist are of the same height
19122     * and width (EINA_TRUE = on, EINA_FALSE = off)
19123     *
19124     * @see elm_genlist_homogeneous_set()
19125     *
19126     * @ingroup Genlist
19127     */
19128    EAPI Eina_Bool         elm_genlist_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19129    /**
19130     * Set the maximum number of items within an item block
19131     *
19132     * @param obj The genlist object
19133     * @param n   Maximum number of items within an item block. Default is 32.
19134     *
19135     * This will configure the block count to tune to the target with
19136     * particular performance matrix.
19137     *
19138     * A block of objects will be used to reduce the number of operations due to
19139     * many objects in the screen. It can determine the visibility, or if the
19140     * object has changed, it theme needs to be updated, etc. doing this kind of
19141     * calculation to the entire block, instead of per object.
19142     *
19143     * The default value for the block count is enough for most lists, so unless
19144     * you know you will have a lot of objects visible in the screen at the same
19145     * time, don't try to change this.
19146     *
19147     * @see elm_genlist_block_count_get()
19148     * @see @ref Genlist_Implementation
19149     *
19150     * @ingroup Genlist
19151     */
19152    EAPI void              elm_genlist_block_count_set(Evas_Object *obj, int n) EINA_ARG_NONNULL(1);
19153    /**
19154     * Get the maximum number of items within an item block
19155     *
19156     * @param obj The genlist object
19157     * @return Maximum number of items within an item block
19158     *
19159     * @see elm_genlist_block_count_set()
19160     *
19161     * @ingroup Genlist
19162     */
19163    EAPI int               elm_genlist_block_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19164    /**
19165     * Set the timeout in seconds for the longpress event.
19166     *
19167     * @param obj The genlist object
19168     * @param timeout timeout in seconds. Default is 1.
19169     *
19170     * This option will change how long it takes to send an event "longpressed"
19171     * after the mouse down signal is sent to the list. If this event occurs, no
19172     * "clicked" event will be sent.
19173     *
19174     * @see elm_genlist_longpress_timeout_set()
19175     *
19176     * @ingroup Genlist
19177     */
19178    EAPI void              elm_genlist_longpress_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
19179    /**
19180     * Get the timeout in seconds for the longpress event.
19181     *
19182     * @param obj The genlist object
19183     * @return timeout in seconds
19184     *
19185     * @see elm_genlist_longpress_timeout_get()
19186     *
19187     * @ingroup Genlist
19188     */
19189    EAPI double            elm_genlist_longpress_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19190    /**
19191     * Append a new item in a given genlist widget.
19192     *
19193     * @param obj The genlist object
19194     * @param itc The item class for the item
19195     * @param data The item data
19196     * @param parent The parent item, or NULL if none
19197     * @param flags Item flags
19198     * @param func Convenience function called when the item is selected
19199     * @param func_data Data passed to @p func above.
19200     * @return A handle to the item added or @c NULL if not possible
19201     *
19202     * This adds the given item to the end of the list or the end of
19203     * the children list if the @p parent is given.
19204     *
19205     * @see elm_genlist_item_prepend()
19206     * @see elm_genlist_item_insert_before()
19207     * @see elm_genlist_item_insert_after()
19208     * @see elm_genlist_item_del()
19209     *
19210     * @ingroup Genlist
19211     */
19212    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);
19213    /**
19214     * Prepend a new item in a given genlist widget.
19215     *
19216     * @param obj The genlist object
19217     * @param itc The item class for the item
19218     * @param data The item data
19219     * @param parent The parent item, or NULL if none
19220     * @param flags Item flags
19221     * @param func Convenience function called when the item is selected
19222     * @param func_data Data passed to @p func above.
19223     * @return A handle to the item added or NULL if not possible
19224     *
19225     * This adds an item to the beginning of the list or beginning of the
19226     * children of the parent if given.
19227     *
19228     * @see elm_genlist_item_append()
19229     * @see elm_genlist_item_insert_before()
19230     * @see elm_genlist_item_insert_after()
19231     * @see elm_genlist_item_del()
19232     *
19233     * @ingroup Genlist
19234     */
19235    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);
19236    /**
19237     * Insert an item before another in a genlist widget
19238     *
19239     * @param obj The genlist object
19240     * @param itc The item class for the item
19241     * @param data The item data
19242     * @param before The item to place this new one before.
19243     * @param flags Item flags
19244     * @param func Convenience function called when the item is selected
19245     * @param func_data Data passed to @p func above.
19246     * @return A handle to the item added or @c NULL if not possible
19247     *
19248     * This inserts an item before another in the list. It will be in the
19249     * same tree level or group as the item it is inserted before.
19250     *
19251     * @see elm_genlist_item_append()
19252     * @see elm_genlist_item_prepend()
19253     * @see elm_genlist_item_insert_after()
19254     * @see elm_genlist_item_del()
19255     *
19256     * @ingroup Genlist
19257     */
19258    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);
19259    /**
19260     * Insert an item after another in a genlist widget
19261     *
19262     * @param obj The genlist object
19263     * @param itc The item class for the item
19264     * @param data The item data
19265     * @param after The item to place this new one after.
19266     * @param flags Item flags
19267     * @param func Convenience function called when the item is selected
19268     * @param func_data Data passed to @p func above.
19269     * @return A handle to the item added or @c NULL if not possible
19270     *
19271     * This inserts an item after another in the list. It will be in the
19272     * same tree level or group as the item it is inserted after.
19273     *
19274     * @see elm_genlist_item_append()
19275     * @see elm_genlist_item_prepend()
19276     * @see elm_genlist_item_insert_before()
19277     * @see elm_genlist_item_del()
19278     *
19279     * @ingroup Genlist
19280     */
19281    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);
19282    /**
19283     * Insert a new item into the sorted genlist object
19284     *
19285     * @param obj The genlist object
19286     * @param itc The item class for the item
19287     * @param data The item data
19288     * @param parent The parent item, or NULL if none
19289     * @param flags Item flags
19290     * @param comp The function called for the sort
19291     * @param func Convenience function called when item selected
19292     * @param func_data Data passed to @p func above.
19293     * @return A handle to the item added or NULL if not possible
19294     *
19295     * @ingroup Genlist
19296     */
19297    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);
19298    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);
19299    /* operations to retrieve existing items */
19300    /**
19301     * Get the selectd item in the genlist.
19302     *
19303     * @param obj The genlist object
19304     * @return The selected item, or NULL if none is selected.
19305     *
19306     * This gets the selected item in the list (if multi-selection is enabled, only
19307     * the item that was first selected in the list is returned - which is not very
19308     * useful, so see elm_genlist_selected_items_get() for when multi-selection is
19309     * used).
19310     *
19311     * If no item is selected, NULL is returned.
19312     *
19313     * @see elm_genlist_selected_items_get()
19314     *
19315     * @ingroup Genlist
19316     */
19317    EAPI Elm_Genlist_Item *elm_genlist_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19318    /**
19319     * Get a list of selected items in the genlist.
19320     *
19321     * @param obj The genlist object
19322     * @return The list of selected items, or NULL if none are selected.
19323     *
19324     * It returns a list of the selected items. This list pointer is only valid so
19325     * long as the selection doesn't change (no items are selected or unselected, or
19326     * unselected implicitly by deletion). The list contains Elm_Genlist_Item
19327     * pointers. The order of the items in this list is the order which they were
19328     * selected, i.e. the first item in this list is the first item that was
19329     * selected, and so on.
19330     *
19331     * @note If not in multi-select mode, consider using function
19332     * elm_genlist_selected_item_get() instead.
19333     *
19334     * @see elm_genlist_multi_select_set()
19335     * @see elm_genlist_selected_item_get()
19336     *
19337     * @ingroup Genlist
19338     */
19339    EAPI const Eina_List  *elm_genlist_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19340    /**
19341     * Get the mode item style of items in the genlist
19342     * @param obj The genlist object
19343     * @return The mode item style string, or NULL if none is specified
19344     *
19345     * This is a constant string and simply defines the name of the
19346     * style that will be used for mode animations. It can be
19347     * @c NULL if you don't plan to use Genlist mode. See
19348     * elm_genlist_item_mode_set() for more info.
19349     *
19350     * @ingroup Genlist
19351     */
19352    EAPI const char       *elm_genlist_mode_item_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19353    /**
19354     * Set the mode item style of items in the genlist
19355     * @param obj The genlist object
19356     * @param style The mode item style string, or NULL if none is desired
19357     *
19358     * This is a constant string and simply defines the name of the
19359     * style that will be used for mode animations. It can be
19360     * @c NULL if you don't plan to use Genlist mode. See
19361     * elm_genlist_item_mode_set() for more info.
19362     *
19363     * @ingroup Genlist
19364     */
19365    EAPI void              elm_genlist_mode_item_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
19366    /**
19367     * Get a list of realized items in genlist
19368     *
19369     * @param obj The genlist object
19370     * @return The list of realized items, nor NULL if none are realized.
19371     *
19372     * This returns a list of the realized items in the genlist. The list
19373     * contains Elm_Genlist_Item pointers. The list must be freed by the
19374     * caller when done with eina_list_free(). The item pointers in the
19375     * list are only valid so long as those items are not deleted or the
19376     * genlist is not deleted.
19377     *
19378     * @see elm_genlist_realized_items_update()
19379     *
19380     * @ingroup Genlist
19381     */
19382    EAPI Eina_List        *elm_genlist_realized_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19383    /**
19384     * Get the item that is at the x, y canvas coords.
19385     *
19386     * @param obj The gelinst object.
19387     * @param x The input x coordinate
19388     * @param y The input y coordinate
19389     * @param posret The position relative to the item returned here
19390     * @return The item at the coordinates or NULL if none
19391     *
19392     * This returns the item at the given coordinates (which are canvas
19393     * relative, not object-relative). If an item is at that coordinate,
19394     * that item handle is returned, and if @p posret is not NULL, the
19395     * integer pointed to is set to a value of -1, 0 or 1, depending if
19396     * the coordinate is on the upper portion of that item (-1), on the
19397     * middle section (0) or on the lower part (1). If NULL is returned as
19398     * an item (no item found there), then posret may indicate -1 or 1
19399     * based if the coordinate is above or below all items respectively in
19400     * the genlist.
19401     *
19402     * @ingroup Genlist
19403     */
19404    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);
19405    /**
19406     * Get the first item in the genlist
19407     *
19408     * This returns the first item in the list.
19409     *
19410     * @param obj The genlist object
19411     * @return The first item, or NULL if none
19412     *
19413     * @ingroup Genlist
19414     */
19415    EAPI Elm_Genlist_Item *elm_genlist_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19416    /**
19417     * Get the last item in the genlist
19418     *
19419     * This returns the last item in the list.
19420     *
19421     * @return The last item, or NULL if none
19422     *
19423     * @ingroup Genlist
19424     */
19425    EAPI Elm_Genlist_Item *elm_genlist_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19426    /**
19427     * Set the scrollbar policy
19428     *
19429     * @param obj The genlist object
19430     * @param policy_h Horizontal scrollbar policy.
19431     * @param policy_v Vertical scrollbar policy.
19432     *
19433     * This sets the scrollbar visibility policy for the given genlist
19434     * scroller. #ELM_SMART_SCROLLER_POLICY_AUTO means the scrollbar is
19435     * made visible if it is needed, and otherwise kept hidden.
19436     * #ELM_SMART_SCROLLER_POLICY_ON turns it on all the time, and
19437     * #ELM_SMART_SCROLLER_POLICY_OFF always keeps it off. This applies
19438     * respectively for the horizontal and vertical scrollbars. Default is
19439     * #ELM_SMART_SCROLLER_POLICY_AUTO
19440     *
19441     * @see elm_genlist_scroller_policy_get()
19442     *
19443     * @ingroup Genlist
19444     */
19445    EAPI void              elm_genlist_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
19446    /**
19447     * Get the scrollbar policy
19448     *
19449     * @param obj The genlist object
19450     * @param policy_h Pointer to store the horizontal scrollbar policy.
19451     * @param policy_v Pointer to store the vertical scrollbar policy.
19452     *
19453     * @see elm_genlist_scroller_policy_set()
19454     *
19455     * @ingroup Genlist
19456     */
19457    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);
19458    /**
19459     * Get the @b next item in a genlist widget's internal list of items,
19460     * given a handle to one of those items.
19461     *
19462     * @param item The genlist item to fetch next from
19463     * @return The item after @p item, or @c NULL if there's none (and
19464     * on errors)
19465     *
19466     * This returns the item placed after the @p item, on the container
19467     * genlist.
19468     *
19469     * @see elm_genlist_item_prev_get()
19470     *
19471     * @ingroup Genlist
19472     */
19473    EAPI Elm_Genlist_Item  *elm_genlist_item_next_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19474    /**
19475     * Get the @b previous item in a genlist widget's internal list of items,
19476     * given a handle to one of those items.
19477     *
19478     * @param item The genlist item to fetch previous from
19479     * @return The item before @p item, or @c NULL if there's none (and
19480     * on errors)
19481     *
19482     * This returns the item placed before the @p item, on the container
19483     * genlist.
19484     *
19485     * @see elm_genlist_item_next_get()
19486     *
19487     * @ingroup Genlist
19488     */
19489    EAPI Elm_Genlist_Item  *elm_genlist_item_prev_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19490    /**
19491     * Get the genlist object's handle which contains a given genlist
19492     * item
19493     *
19494     * @param item The item to fetch the container from
19495     * @return The genlist (parent) object
19496     *
19497     * This returns the genlist object itself that an item belongs to.
19498     *
19499     * @ingroup Genlist
19500     */
19501    EAPI Evas_Object       *elm_genlist_item_genlist_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19502    /**
19503     * Get the parent item of the given item
19504     *
19505     * @param it The item
19506     * @return The parent of the item or @c NULL if it has no parent.
19507     *
19508     * This returns the item that was specified as parent of the item @p it on
19509     * elm_genlist_item_append() and insertion related functions.
19510     *
19511     * @ingroup Genlist
19512     */
19513    EAPI Elm_Genlist_Item  *elm_genlist_item_parent_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19514    /**
19515     * Remove all sub-items (children) of the given item
19516     *
19517     * @param it The item
19518     *
19519     * This removes all items that are children (and their descendants) of the
19520     * given item @p it.
19521     *
19522     * @see elm_genlist_clear()
19523     * @see elm_genlist_item_del()
19524     *
19525     * @ingroup Genlist
19526     */
19527    EAPI void               elm_genlist_item_subitems_clear(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19528    /**
19529     * Set whether a given genlist item is selected or not
19530     *
19531     * @param it The item
19532     * @param selected Use @c EINA_TRUE, to make it selected, @c
19533     * EINA_FALSE to make it unselected
19534     *
19535     * This sets the selected state of an item. If multi selection is
19536     * not enabled on the containing genlist and @p selected is @c
19537     * EINA_TRUE, any other previously selected items will get
19538     * unselected in favor of this new one.
19539     *
19540     * @see elm_genlist_item_selected_get()
19541     *
19542     * @ingroup Genlist
19543     */
19544    EAPI void elm_genlist_item_selected_set(Elm_Genlist_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
19545    /**
19546     * Get whether a given genlist item is selected or not
19547     *
19548     * @param it The item
19549     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
19550     *
19551     * @see elm_genlist_item_selected_set() for more details
19552     *
19553     * @ingroup Genlist
19554     */
19555    EAPI Eina_Bool elm_genlist_item_selected_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19556    /**
19557     * Sets the expanded state of an item.
19558     *
19559     * @param it The item
19560     * @param expanded The expanded state (@c EINA_TRUE expanded, @c EINA_FALSE not expanded).
19561     *
19562     * This function flags the item of type #ELM_GENLIST_ITEM_SUBITEMS as
19563     * expanded or not.
19564     *
19565     * The theme will respond to this change visually, and a signal "expanded" or
19566     * "contracted" will be sent from the genlist with a pointer to the item that
19567     * has been expanded/contracted.
19568     *
19569     * Calling this function won't show or hide any child of this item (if it is
19570     * a parent). You must manually delete and create them on the callbacks fo
19571     * the "expanded" or "contracted" signals.
19572     *
19573     * @see elm_genlist_item_expanded_get()
19574     *
19575     * @ingroup Genlist
19576     */
19577    EAPI void               elm_genlist_item_expanded_set(Elm_Genlist_Item *item, Eina_Bool expanded) EINA_ARG_NONNULL(1);
19578    /**
19579     * Get the expanded state of an item
19580     *
19581     * @param it The item
19582     * @return The expanded state
19583     *
19584     * This gets the expanded state of an item.
19585     *
19586     * @see elm_genlist_item_expanded_set()
19587     *
19588     * @ingroup Genlist
19589     */
19590    EAPI Eina_Bool          elm_genlist_item_expanded_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19591    /**
19592     * Get the depth of expanded item
19593     *
19594     * @param it The genlist item object
19595     * @return The depth of expanded item
19596     *
19597     * @ingroup Genlist
19598     */
19599    EAPI int                elm_genlist_item_expanded_depth_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19600    /**
19601     * Set whether a given genlist item is disabled or not.
19602     *
19603     * @param it The item
19604     * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
19605     * to enable it back.
19606     *
19607     * A disabled item cannot be selected or unselected. It will also
19608     * change its appearance, to signal the user it's disabled.
19609     *
19610     * @see elm_genlist_item_disabled_get()
19611     *
19612     * @ingroup Genlist
19613     */
19614    EAPI void               elm_genlist_item_disabled_set(Elm_Genlist_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
19615    /**
19616     * Get whether a given genlist item is disabled or not.
19617     *
19618     * @param it The item
19619     * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
19620     * (and on errors).
19621     *
19622     * @see elm_genlist_item_disabled_set() for more details
19623     *
19624     * @ingroup Genlist
19625     */
19626    EAPI Eina_Bool          elm_genlist_item_disabled_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19627    /**
19628     * Sets the display only state of an item.
19629     *
19630     * @param it The item
19631     * @param display_only @c EINA_TRUE if the item is display only, @c
19632     * EINA_FALSE otherwise.
19633     *
19634     * A display only item cannot be selected or unselected. It is for
19635     * display only and not selecting or otherwise clicking, dragging
19636     * etc. by the user, thus finger size rules will not be applied to
19637     * this item.
19638     *
19639     * It's good to set group index items to display only state.
19640     *
19641     * @see elm_genlist_item_display_only_get()
19642     *
19643     * @ingroup Genlist
19644     */
19645    EAPI void               elm_genlist_item_display_only_set(Elm_Genlist_Item *it, Eina_Bool display_only) EINA_ARG_NONNULL(1);
19646    /**
19647     * Get the display only state of an item
19648     *
19649     * @param it The item
19650     * @return @c EINA_TRUE if the item is display only, @c
19651     * EINA_FALSE otherwise.
19652     *
19653     * @see elm_genlist_item_display_only_set()
19654     *
19655     * @ingroup Genlist
19656     */
19657    EAPI Eina_Bool          elm_genlist_item_display_only_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19658    /**
19659     * Show the portion of a genlist's internal list containing a given
19660     * item, immediately.
19661     *
19662     * @param it The item to display
19663     *
19664     * This causes genlist to jump to the given item @p it and show it (by
19665     * immediately scrolling to that position), if it is not fully visible.
19666     *
19667     * @see elm_genlist_item_bring_in()
19668     * @see elm_genlist_item_top_show()
19669     * @see elm_genlist_item_middle_show()
19670     *
19671     * @ingroup Genlist
19672     */
19673    EAPI void               elm_genlist_item_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19674    /**
19675     * Animatedly bring in, to the visible are of a genlist, a given
19676     * item on it.
19677     *
19678     * @param it The item to display
19679     *
19680     * This causes genlist to jump to the given item @p it and show it (by
19681     * animatedly scrolling), if it is not fully visible. This may use animation
19682     * to do so and take a period of time
19683     *
19684     * @see elm_genlist_item_show()
19685     * @see elm_genlist_item_top_bring_in()
19686     * @see elm_genlist_item_middle_bring_in()
19687     *
19688     * @ingroup Genlist
19689     */
19690    EAPI void               elm_genlist_item_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19691    /**
19692     * Show the portion of a genlist's internal list containing a given
19693     * item, immediately.
19694     *
19695     * @param it The item to display
19696     *
19697     * This causes genlist to jump to the given item @p it and show it (by
19698     * immediately scrolling to that position), if it is not fully visible.
19699     *
19700     * The item will be positioned at the top of the genlist viewport.
19701     *
19702     * @see elm_genlist_item_show()
19703     * @see elm_genlist_item_top_bring_in()
19704     *
19705     * @ingroup Genlist
19706     */
19707    EAPI void               elm_genlist_item_top_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19708    /**
19709     * Animatedly bring in, to the visible are of a genlist, a given
19710     * item on it.
19711     *
19712     * @param it The item
19713     *
19714     * This causes genlist to jump to the given item @p it and show it (by
19715     * animatedly scrolling), if it is not fully visible. This may use animation
19716     * to do so and take a period of time
19717     *
19718     * The item will be positioned at the top of the genlist viewport.
19719     *
19720     * @see elm_genlist_item_bring_in()
19721     * @see elm_genlist_item_top_show()
19722     *
19723     * @ingroup Genlist
19724     */
19725    EAPI void               elm_genlist_item_top_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19726    /**
19727     * Show the portion of a genlist's internal list containing a given
19728     * item, immediately.
19729     *
19730     * @param it The item to display
19731     *
19732     * This causes genlist to jump to the given item @p it and show it (by
19733     * immediately scrolling to that position), if it is not fully visible.
19734     *
19735     * The item will be positioned at the middle of the genlist viewport.
19736     *
19737     * @see elm_genlist_item_show()
19738     * @see elm_genlist_item_middle_bring_in()
19739     *
19740     * @ingroup Genlist
19741     */
19742    EAPI void               elm_genlist_item_middle_show(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19743    /**
19744     * Animatedly bring in, to the visible are of a genlist, a given
19745     * item on it.
19746     *
19747     * @param it The item
19748     *
19749     * This causes genlist to jump to the given item @p it and show it (by
19750     * animatedly scrolling), if it is not fully visible. This may use animation
19751     * to do so and take a period of time
19752     *
19753     * The item will be positioned at the middle of the genlist viewport.
19754     *
19755     * @see elm_genlist_item_bring_in()
19756     * @see elm_genlist_item_middle_show()
19757     *
19758     * @ingroup Genlist
19759     */
19760    EAPI void               elm_genlist_item_middle_bring_in(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19761    /**
19762     * Remove a genlist item from the its parent, deleting it.
19763     *
19764     * @param item The item to be removed.
19765     * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
19766     *
19767     * @see elm_genlist_clear(), to remove all items in a genlist at
19768     * once.
19769     *
19770     * @ingroup Genlist
19771     */
19772    EAPI void               elm_genlist_item_del(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19773    /**
19774     * Return the data associated to a given genlist item
19775     *
19776     * @param item The genlist item.
19777     * @return the data associated to this item.
19778     *
19779     * This returns the @c data value passed on the
19780     * elm_genlist_item_append() and related item addition calls.
19781     *
19782     * @see elm_genlist_item_append()
19783     * @see elm_genlist_item_data_set()
19784     *
19785     * @ingroup Genlist
19786     */
19787    EAPI void              *elm_genlist_item_data_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19788    /**
19789     * Set the data associated to a given genlist item
19790     *
19791     * @param item The genlist item
19792     * @param data The new data pointer to set on it
19793     *
19794     * This @b overrides the @c data value passed on the
19795     * elm_genlist_item_append() and related item addition calls. This
19796     * function @b won't call elm_genlist_item_update() automatically,
19797     * so you'd issue it afterwards if you want to hove the item
19798     * updated to reflect the that new data.
19799     *
19800     * @see elm_genlist_item_data_get()
19801     *
19802     * @ingroup Genlist
19803     */
19804    EAPI void               elm_genlist_item_data_set(Elm_Genlist_Item *it, const void *data) EINA_ARG_NONNULL(1);
19805    /**
19806     * Tells genlist to "orphan" contents fetchs by the item class
19807     *
19808     * @param it The item
19809     *
19810     * This instructs genlist to release references to contents in the item,
19811     * meaning that they will no longer be managed by genlist and are
19812     * floating "orphans" that can be re-used elsewhere if the user wants
19813     * to.
19814     *
19815     * @ingroup Genlist
19816     */
19817    EAPI void               elm_genlist_item_contents_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19818    EINA_DEPRECATED EAPI void               elm_genlist_item_icons_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19819    /**
19820     * Get the real Evas object created to implement the view of a
19821     * given genlist item
19822     *
19823     * @param item The genlist item.
19824     * @return the Evas object implementing this item's view.
19825     *
19826     * This returns the actual Evas object used to implement the
19827     * specified genlist item's view. This may be @c NULL, as it may
19828     * not have been created or may have been deleted, at any time, by
19829     * the genlist. <b>Do not modify this object</b> (move, resize,
19830     * show, hide, etc.), as the genlist is controlling it. This
19831     * function is for querying, emitting custom signals or hooking
19832     * lower level callbacks for events on that object. Do not delete
19833     * this object under any circumstances.
19834     *
19835     * @see elm_genlist_item_data_get()
19836     *
19837     * @ingroup Genlist
19838     */
19839    EAPI const Evas_Object *elm_genlist_item_object_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19840    /**
19841     * Update the contents of an item
19842     *
19843     * @param it The item
19844     *
19845     * This updates an item by calling all the item class functions again
19846     * to get the contents, texts and states. Use this when the original
19847     * item data has changed and the changes are desired to be reflected.
19848     *
19849     * Use elm_genlist_realized_items_update() to update all already realized
19850     * items.
19851     *
19852     * @see elm_genlist_realized_items_update()
19853     *
19854     * @ingroup Genlist
19855     */
19856    EAPI void               elm_genlist_item_update(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19857    /**
19858     * Promote an item to the top of the list
19859     *
19860     * @param it The item
19861     *
19862     * @ingroup Genlist
19863     */
19864    EAPI void               elm_genlist_item_promote(Elm_Gen_Item *it) EINA_ARG_NONNULL(1);
19865    /**
19866     * Demote an item to the end of the list
19867     *
19868     * @param it The item
19869     *
19870     * @ingroup Genlist
19871     */
19872    EAPI void               elm_genlist_item_demote(Elm_Gen_Item *it) EINA_ARG_NONNULL(1);
19873    /**
19874     * Update the part of an item
19875     *
19876     * @param it The item
19877     * @param parts The name of item's part
19878     * @param itf The flags of item's part type
19879     *
19880     * This updates an item's part by calling item's fetching functions again
19881     * to get the contents, texts and states. Use this when the original
19882     * item data has changed and the changes are desired to be reflected.
19883     * Second parts argument is used for globbing to match '*', '?', and '.'
19884     * It can be used at updating multi fields.
19885     *
19886     * Use elm_genlist_realized_items_update() to update an item's all
19887     * property.
19888     *
19889     * @see elm_genlist_item_update()
19890     *
19891     * @ingroup Genlist
19892     */
19893    EAPI void               elm_genlist_item_fields_update(Elm_Genlist_Item *it, const char *parts, Elm_Genlist_Item_Field_Flags itf) EINA_ARG_NONNULL(1);
19894    /**
19895     * Update the item class of an item
19896     *
19897     * @param it The item
19898     * @param itc The item class for the item
19899     *
19900     * This sets another class fo the item, changing the way that it is
19901     * displayed. After changing the item class, elm_genlist_item_update() is
19902     * called on the item @p it.
19903     *
19904     * @ingroup Genlist
19905     */
19906    EAPI void               elm_genlist_item_item_class_update(Elm_Genlist_Item *it, const Elm_Genlist_Item_Class *itc) EINA_ARG_NONNULL(1, 2);
19907    EAPI const Elm_Genlist_Item_Class *elm_genlist_item_item_class_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19908    /**
19909     * Set the text to be shown in a given genlist item's tooltips.
19910     *
19911     * @param item The genlist item
19912     * @param text The text to set in the content
19913     *
19914     * This call will setup the text to be used as tooltip to that item
19915     * (analogous to elm_object_tooltip_text_set(), but being item
19916     * tooltips with higher precedence than object tooltips). It can
19917     * have only one tooltip at a time, so any previous tooltip data
19918     * will get removed.
19919     *
19920     * In order to set a content or something else as a tooltip, look at
19921     * elm_genlist_item_tooltip_content_cb_set().
19922     *
19923     * @ingroup Genlist
19924     */
19925    EAPI void               elm_genlist_item_tooltip_text_set(Elm_Genlist_Item *item, const char *text) EINA_ARG_NONNULL(1);
19926    /**
19927     * Set the content to be shown in a given genlist item's tooltips
19928     *
19929     * @param item The genlist item.
19930     * @param func The function returning the tooltip contents.
19931     * @param data What to provide to @a func as callback data/context.
19932     * @param del_cb Called when data is not needed anymore, either when
19933     *        another callback replaces @p func, the tooltip is unset with
19934     *        elm_genlist_item_tooltip_unset() or the owner @p item
19935     *        dies. This callback receives as its first parameter the
19936     *        given @p data, being @c event_info the item handle.
19937     *
19938     * This call will setup the tooltip's contents to @p item
19939     * (analogous to elm_object_tooltip_content_cb_set(), but being
19940     * item tooltips with higher precedence than object tooltips). It
19941     * can have only one tooltip at a time, so any previous tooltip
19942     * content will get removed. @p func (with @p data) will be called
19943     * every time Elementary needs to show the tooltip and it should
19944     * return a valid Evas object, which will be fully managed by the
19945     * tooltip system, getting deleted when the tooltip is gone.
19946     *
19947     * In order to set just a text as a tooltip, look at
19948     * elm_genlist_item_tooltip_text_set().
19949     *
19950     * @ingroup Genlist
19951     */
19952    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);
19953    /**
19954     * Unset a tooltip from a given genlist item
19955     *
19956     * @param item genlist item to remove a previously set tooltip from.
19957     *
19958     * This call removes any tooltip set on @p item. The callback
19959     * provided as @c del_cb to
19960     * elm_genlist_item_tooltip_content_cb_set() will be called to
19961     * notify it is not used anymore (and have resources cleaned, if
19962     * need be).
19963     *
19964     * @see elm_genlist_item_tooltip_content_cb_set()
19965     *
19966     * @ingroup Genlist
19967     */
19968    EAPI void               elm_genlist_item_tooltip_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19969    /**
19970     * Set a different @b style for a given genlist item's tooltip.
19971     *
19972     * @param item genlist item with tooltip set
19973     * @param style the <b>theme style</b> to use on tooltips (e.g. @c
19974     * "default", @c "transparent", etc)
19975     *
19976     * Tooltips can have <b>alternate styles</b> to be displayed on,
19977     * which are defined by the theme set on Elementary. This function
19978     * works analogously as elm_object_tooltip_style_set(), but here
19979     * applied only to genlist item objects. The default style for
19980     * tooltips is @c "default".
19981     *
19982     * @note before you set a style you should define a tooltip with
19983     *       elm_genlist_item_tooltip_content_cb_set() or
19984     *       elm_genlist_item_tooltip_text_set()
19985     *
19986     * @see elm_genlist_item_tooltip_style_get()
19987     *
19988     * @ingroup Genlist
19989     */
19990    EAPI void               elm_genlist_item_tooltip_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
19991    /**
19992     * Get the style set a given genlist item's tooltip.
19993     *
19994     * @param item genlist item with tooltip already set on.
19995     * @return style the theme style in use, which defaults to
19996     *         "default". If the object does not have a tooltip set,
19997     *         then @c NULL is returned.
19998     *
19999     * @see elm_genlist_item_tooltip_style_set() for more details
20000     *
20001     * @ingroup Genlist
20002     */
20003    EAPI const char        *elm_genlist_item_tooltip_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20004    /**
20005     * @brief Disable size restrictions on an object's tooltip
20006     * @param item The tooltip's anchor object
20007     * @param disable If EINA_TRUE, size restrictions are disabled
20008     * @return EINA_FALSE on failure, EINA_TRUE on success
20009     *
20010     * This function allows a tooltip to expand beyond its parant window's canvas.
20011     * It will instead be limited only by the size of the display.
20012     */
20013    EAPI Eina_Bool          elm_genlist_item_tooltip_window_mode_set(Elm_Genlist_Item *item, Eina_Bool disable);
20014    /**
20015     * @brief Retrieve size restriction state of an object's tooltip
20016     * @param item The tooltip's anchor object
20017     * @return If EINA_TRUE, size restrictions are disabled
20018     *
20019     * This function returns whether a tooltip is allowed to expand beyond
20020     * its parant window's canvas.
20021     * It will instead be limited only by the size of the display.
20022     */
20023    EAPI Eina_Bool          elm_genlist_item_tooltip_window_mode_get(const Elm_Genlist_Item *item);
20024    /**
20025     * Set the type of mouse pointer/cursor decoration to be shown,
20026     * when the mouse pointer is over the given genlist widget item
20027     *
20028     * @param item genlist item to customize cursor on
20029     * @param cursor the cursor type's name
20030     *
20031     * This function works analogously as elm_object_cursor_set(), but
20032     * here the cursor's changing area is restricted to the item's
20033     * area, and not the whole widget's. Note that that item cursors
20034     * have precedence over widget cursors, so that a mouse over @p
20035     * item will always show cursor @p type.
20036     *
20037     * If this function is called twice for an object, a previously set
20038     * cursor will be unset on the second call.
20039     *
20040     * @see elm_object_cursor_set()
20041     * @see elm_genlist_item_cursor_get()
20042     * @see elm_genlist_item_cursor_unset()
20043     *
20044     * @ingroup Genlist
20045     */
20046    EAPI void               elm_genlist_item_cursor_set(Elm_Genlist_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
20047    /**
20048     * Get the type of mouse pointer/cursor decoration set to be shown,
20049     * when the mouse pointer is over the given genlist widget item
20050     *
20051     * @param item genlist item with custom cursor set
20052     * @return the cursor type's name or @c NULL, if no custom cursors
20053     * were set to @p item (and on errors)
20054     *
20055     * @see elm_object_cursor_get()
20056     * @see elm_genlist_item_cursor_set() for more details
20057     * @see elm_genlist_item_cursor_unset()
20058     *
20059     * @ingroup Genlist
20060     */
20061    EAPI const char        *elm_genlist_item_cursor_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20062    /**
20063     * Unset any custom mouse pointer/cursor decoration set to be
20064     * shown, when the mouse pointer is over the given genlist widget
20065     * item, thus making it show the @b default cursor again.
20066     *
20067     * @param item a genlist item
20068     *
20069     * Use this call to undo any custom settings on this item's cursor
20070     * decoration, bringing it back to defaults (no custom style set).
20071     *
20072     * @see elm_object_cursor_unset()
20073     * @see elm_genlist_item_cursor_set() for more details
20074     *
20075     * @ingroup Genlist
20076     */
20077    EAPI void               elm_genlist_item_cursor_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20078    /**
20079     * Set a different @b style for a given custom cursor set for a
20080     * genlist item.
20081     *
20082     * @param item genlist item with custom cursor set
20083     * @param style the <b>theme style</b> to use (e.g. @c "default",
20084     * @c "transparent", etc)
20085     *
20086     * This function only makes sense when one is using custom mouse
20087     * cursor decorations <b>defined in a theme file</b> , which can
20088     * have, given a cursor name/type, <b>alternate styles</b> on
20089     * it. It works analogously as elm_object_cursor_style_set(), but
20090     * here applied only to genlist item objects.
20091     *
20092     * @warning Before you set a cursor style you should have defined a
20093     *       custom cursor previously on the item, with
20094     *       elm_genlist_item_cursor_set()
20095     *
20096     * @see elm_genlist_item_cursor_engine_only_set()
20097     * @see elm_genlist_item_cursor_style_get()
20098     *
20099     * @ingroup Genlist
20100     */
20101    EAPI void               elm_genlist_item_cursor_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
20102    /**
20103     * Get the current @b style set for a given genlist item's custom
20104     * cursor
20105     *
20106     * @param item genlist item with custom cursor set.
20107     * @return style the cursor style in use. If the object does not
20108     *         have a cursor set, then @c NULL is returned.
20109     *
20110     * @see elm_genlist_item_cursor_style_set() for more details
20111     *
20112     * @ingroup Genlist
20113     */
20114    EAPI const char        *elm_genlist_item_cursor_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20115    /**
20116     * Set if the (custom) cursor for a given genlist item should be
20117     * searched in its theme, also, or should only rely on the
20118     * rendering engine.
20119     *
20120     * @param item item with custom (custom) cursor already set on
20121     * @param engine_only Use @c EINA_TRUE to have cursors looked for
20122     * only on those provided by the rendering engine, @c EINA_FALSE to
20123     * have them searched on the widget's theme, as well.
20124     *
20125     * @note This call is of use only if you've set a custom cursor
20126     * for genlist items, with elm_genlist_item_cursor_set().
20127     *
20128     * @note By default, cursors will only be looked for between those
20129     * provided by the rendering engine.
20130     *
20131     * @ingroup Genlist
20132     */
20133    EAPI void               elm_genlist_item_cursor_engine_only_set(Elm_Genlist_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
20134    /**
20135     * Get if the (custom) cursor for a given genlist item is being
20136     * searched in its theme, also, or is only relying on the rendering
20137     * engine.
20138     *
20139     * @param item a genlist item
20140     * @return @c EINA_TRUE, if cursors are being looked for only on
20141     * those provided by the rendering engine, @c EINA_FALSE if they
20142     * are being searched on the widget's theme, as well.
20143     *
20144     * @see elm_genlist_item_cursor_engine_only_set(), for more details
20145     *
20146     * @ingroup Genlist
20147     */
20148    EAPI Eina_Bool          elm_genlist_item_cursor_engine_only_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20149    /**
20150     * Update the contents of all realized items.
20151     *
20152     * @param obj The genlist object.
20153     *
20154     * This updates all realized items by calling all the item class functions again
20155     * to get the contents, texts and states. Use this when the original
20156     * item data has changed and the changes are desired to be reflected.
20157     *
20158     * To update just one item, use elm_genlist_item_update().
20159     *
20160     * @see elm_genlist_realized_items_get()
20161     * @see elm_genlist_item_update()
20162     *
20163     * @ingroup Genlist
20164     */
20165    EAPI void               elm_genlist_realized_items_update(Evas_Object *obj) EINA_ARG_NONNULL(1);
20166    /**
20167     * Activate a genlist mode on an item
20168     *
20169     * @param item The genlist item
20170     * @param mode Mode name
20171     * @param mode_set Boolean to define set or unset mode.
20172     *
20173     * A genlist mode is a different way of selecting an item. Once a mode is
20174     * activated on an item, any other selected item is immediately unselected.
20175     * This feature provides an easy way of implementing a new kind of animation
20176     * for selecting an item, without having to entirely rewrite the item style
20177     * theme. However, the elm_genlist_selected_* API can't be used to get what
20178     * item is activate for a mode.
20179     *
20180     * The current item style will still be used, but applying a genlist mode to
20181     * an item will select it using a different kind of animation.
20182     *
20183     * The current active item for a mode can be found by
20184     * elm_genlist_mode_item_get().
20185     *
20186     * The characteristics of genlist mode are:
20187     * - Only one mode can be active at any time, and for only one item.
20188     * - Genlist handles deactivating other items when one item is activated.
20189     * - A mode is defined in the genlist theme (edc), and more modes can easily
20190     *   be added.
20191     * - A mode style and the genlist item style are different things. They
20192     *   can be combined to provide a default style to the item, with some kind
20193     *   of animation for that item when the mode is activated.
20194     *
20195     * When a mode is activated on an item, a new view for that item is created.
20196     * The theme of this mode defines the animation that will be used to transit
20197     * the item from the old view to the new view. This second (new) view will be
20198     * active for that item while the mode is active on the item, and will be
20199     * destroyed after the mode is totally deactivated from that item.
20200     *
20201     * @see elm_genlist_mode_get()
20202     * @see elm_genlist_mode_item_get()
20203     *
20204     * @ingroup Genlist
20205     */
20206    EAPI void               elm_genlist_item_mode_set(Elm_Genlist_Item *it, const char *mode_type, Eina_Bool mode_set) EINA_ARG_NONNULL(1, 2);
20207    /**
20208     * Get the last (or current) genlist mode used.
20209     *
20210     * @param obj The genlist object
20211     *
20212     * This function just returns the name of the last used genlist mode. It will
20213     * be the current mode if it's still active.
20214     *
20215     * @see elm_genlist_item_mode_set()
20216     * @see elm_genlist_mode_item_get()
20217     *
20218     * @ingroup Genlist
20219     */
20220    EAPI const char        *elm_genlist_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20221    /**
20222     * Get active genlist mode item
20223     *
20224     * @param obj The genlist object
20225     * @return The active item for that current mode. Or @c NULL if no item is
20226     * activated with any mode.
20227     *
20228     * This function returns the item that was activated with a mode, by the
20229     * function elm_genlist_item_mode_set().
20230     *
20231     * @see elm_genlist_item_mode_set()
20232     * @see elm_genlist_mode_get()
20233     *
20234     * @ingroup Genlist
20235     */
20236    EAPI const Elm_Genlist_Item *elm_genlist_mode_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20237
20238    /**
20239     * Set reorder mode
20240     *
20241     * @param obj The genlist object
20242     * @param reorder_mode The reorder mode
20243     * (EINA_TRUE = on, EINA_FALSE = off)
20244     *
20245     * @ingroup Genlist
20246     */
20247    EAPI void               elm_genlist_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
20248
20249    /**
20250     * Get the reorder mode
20251     *
20252     * @param obj The genlist object
20253     * @return The reorder mode
20254     * (EINA_TRUE = on, EINA_FALSE = off)
20255     *
20256     * @ingroup Genlist
20257     */
20258    EAPI Eina_Bool          elm_genlist_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20259
20260    /**
20261     * @}
20262     */
20263
20264    /**
20265     * @defgroup Check Check
20266     *
20267     * @image html img/widget/check/preview-00.png
20268     * @image latex img/widget/check/preview-00.eps
20269     * @image html img/widget/check/preview-01.png
20270     * @image latex img/widget/check/preview-01.eps
20271     * @image html img/widget/check/preview-02.png
20272     * @image latex img/widget/check/preview-02.eps
20273     *
20274     * @brief The check widget allows for toggling a value between true and
20275     * false.
20276     *
20277     * Check objects are a lot like radio objects in layout and functionality
20278     * except they do not work as a group, but independently and only toggle the
20279     * value of a boolean from false to true (0 or 1). elm_check_state_set() sets
20280     * the boolean state (1 for true, 0 for false), and elm_check_state_get()
20281     * returns the current state. For convenience, like the radio objects, you
20282     * can set a pointer to a boolean directly with elm_check_state_pointer_set()
20283     * for it to modify.
20284     *
20285     * Signals that you can add callbacks for are:
20286     * "changed" - This is called whenever the user changes the state of one of
20287     *             the check object(event_info is NULL).
20288     *
20289     * Default contents parts of the check widget that you can use for are:
20290     * @li "icon" - An icon of the check
20291     *
20292     * Default text parts of the check widget that you can use for are:
20293     * @li "elm.text" - Label of the check
20294     *
20295     * @ref tutorial_check should give you a firm grasp of how to use this widget
20296     * .
20297     * @{
20298     */
20299    /**
20300     * @brief Add a new Check object
20301     *
20302     * @param parent The parent object
20303     * @return The new object or NULL if it cannot be created
20304     */
20305    EAPI Evas_Object *elm_check_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20306    /**
20307     * @brief Set the text label of the check object
20308     *
20309     * @param obj The check object
20310     * @param label The text label string in UTF-8
20311     *
20312     * @deprecated use elm_object_text_set() instead.
20313     */
20314    EINA_DEPRECATED EAPI void         elm_check_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
20315    /**
20316     * @brief Get the text label of the check object
20317     *
20318     * @param obj The check object
20319     * @return The text label string in UTF-8
20320     *
20321     * @deprecated use elm_object_text_get() instead.
20322     */
20323    EINA_DEPRECATED EAPI const char  *elm_check_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20324    /**
20325     * @brief Set the icon object of the check object
20326     *
20327     * @param obj The check object
20328     * @param icon The icon object
20329     *
20330     * Once the icon object is set, a previously set one will be deleted.
20331     * If you want to keep that old content object, use the
20332     * elm_object_content_unset() function.
20333     *
20334     * @deprecated use elm_object_part_content_set() instead.
20335     *
20336     */
20337    EINA_DEPRECATED EAPI void         elm_check_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
20338    /**
20339     * @brief Get the icon object of the check object
20340     *
20341     * @param obj The check object
20342     * @return The icon object
20343     *
20344     * @deprecated use elm_object_part_content_get() instead.
20345     *
20346     */
20347    EINA_DEPRECATED EAPI Evas_Object *elm_check_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20348    /**
20349     * @brief Unset the icon used for the check object
20350     *
20351     * @param obj The check object
20352     * @return The icon object that was being used
20353     *
20354     * Unparent and return the icon object which was set for this widget.
20355     *
20356     * @deprecated use elm_object_part_content_unset() instead.
20357     *
20358     */
20359    EINA_DEPRECATED EAPI Evas_Object *elm_check_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
20360    /**
20361     * @brief Set the on/off state of the check object
20362     *
20363     * @param obj The check object
20364     * @param state The state to use (1 == on, 0 == off)
20365     *
20366     * This sets the state of the check. If set
20367     * with elm_check_state_pointer_set() the state of that variable is also
20368     * changed. Calling this @b doesn't cause the "changed" signal to be emited.
20369     */
20370    EAPI void         elm_check_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
20371    /**
20372     * @brief Get the state of the check object
20373     *
20374     * @param obj The check object
20375     * @return The boolean state
20376     */
20377    EAPI Eina_Bool    elm_check_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20378    /**
20379     * @brief Set a convenience pointer to a boolean to change
20380     *
20381     * @param obj The check object
20382     * @param statep Pointer to the boolean to modify
20383     *
20384     * This sets a pointer to a boolean, that, in addition to the check objects
20385     * state will also be modified directly. To stop setting the object pointed
20386     * to simply use NULL as the @p statep parameter. If @p statep is not NULL,
20387     * then when this is called, the check objects state will also be modified to
20388     * reflect the value of the boolean @p statep points to, just like calling
20389     * elm_check_state_set().
20390     */
20391    EAPI void         elm_check_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
20392    EINA_DEPRECATED EAPI void         elm_check_states_labels_set(Evas_Object *obj, const char *ontext, const char *offtext) EINA_ARG_NONNULL(1,2,3);
20393    EINA_DEPRECATED EAPI void         elm_check_states_labels_get(const Evas_Object *obj, const char **ontext, const char **offtext) EINA_ARG_NONNULL(1,2,3);
20394
20395    /**
20396     * @}
20397     */
20398
20399    /**
20400     * @defgroup Radio Radio
20401     *
20402     * @image html img/widget/radio/preview-00.png
20403     * @image latex img/widget/radio/preview-00.eps
20404     *
20405     * @brief Radio is a widget that allows for 1 or more options to be displayed
20406     * and have the user choose only 1 of them.
20407     *
20408     * A radio object contains an indicator, an optional Label and an optional
20409     * icon object. While it's possible to have a group of only one radio they,
20410     * are normally used in groups of 2 or more. To add a radio to a group use
20411     * elm_radio_group_add(). The radio object(s) will select from one of a set
20412     * of integer values, so any value they are configuring needs to be mapped to
20413     * a set of integers. To configure what value that radio object represents,
20414     * use  elm_radio_state_value_set() to set the integer it represents. To set
20415     * the value the whole group(which one is currently selected) is to indicate
20416     * use elm_radio_value_set() on any group member, and to get the groups value
20417     * use elm_radio_value_get(). For convenience the radio objects are also able
20418     * to directly set an integer(int) to the value that is selected. To specify
20419     * the pointer to this integer to modify, use elm_radio_value_pointer_set().
20420     * The radio objects will modify this directly. That implies the pointer must
20421     * point to valid memory for as long as the radio objects exist.
20422     *
20423     * Signals that you can add callbacks for are:
20424     * @li changed - This is called whenever the user changes the state of one of
20425     * the radio objects within the group of radio objects that work together.
20426     *
20427     * Default contents parts of the radio widget that you can use for are:
20428     * @li "icon" - An icon of the radio
20429     *
20430     * @ref tutorial_radio show most of this API in action.
20431     * @{
20432     */
20433    /**
20434     * @brief Add a new radio to the parent
20435     *
20436     * @param parent The parent object
20437     * @return The new object or NULL if it cannot be created
20438     */
20439    EAPI Evas_Object *elm_radio_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20440    /**
20441     * @brief Set the text label of the radio object
20442     *
20443     * @param obj The radio object
20444     * @param label The text label string in UTF-8
20445     *
20446     * @deprecated use elm_object_text_set() instead.
20447     */
20448    EINA_DEPRECATED EAPI void         elm_radio_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
20449    /**
20450     * @brief Get the text label of the radio object
20451     *
20452     * @param obj The radio object
20453     * @return The text label string in UTF-8
20454     *
20455     * @deprecated use elm_object_text_set() instead.
20456     */
20457    EINA_DEPRECATED EAPI const char  *elm_radio_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20458    /**
20459     * @brief Set the icon object of the radio object
20460     *
20461     * @param obj The radio object
20462     * @param icon The icon object
20463     *
20464     * Once the icon object is set, a previously set one will be deleted. If you
20465     * want to keep that old content object, use the elm_radio_icon_unset()
20466     * function.
20467     *
20468     * @deprecated use elm_object_part_content_set() instead.
20469     *
20470     */
20471    EINA_DEPRECATED EAPI void         elm_radio_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
20472    /**
20473     * @brief Get the icon object of the radio object
20474     *
20475     * @param obj The radio object
20476     * @return The icon object
20477     *
20478     * @see elm_radio_icon_set()
20479     *
20480     * @deprecated use elm_object_part_content_get() instead.
20481     *
20482     */
20483    EINA_DEPRECATED EAPI Evas_Object *elm_radio_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20484    /**
20485     * @brief Unset the icon used for the radio object
20486     *
20487     * @param obj The radio object
20488     * @return The icon object that was being used
20489     *
20490     * Unparent and return the icon object which was set for this widget.
20491     *
20492     * @see elm_radio_icon_set()
20493     * @deprecated use elm_object_part_content_unset() instead.
20494     *
20495     */
20496    EINA_DEPRECATED EAPI Evas_Object *elm_radio_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
20497    /**
20498     * @brief Add this radio to a group of other radio objects
20499     *
20500     * @param obj The radio object
20501     * @param group Any object whose group the @p obj is to join.
20502     *
20503     * Radio objects work in groups. Each member should have a different integer
20504     * value assigned. In order to have them work as a group, they need to know
20505     * about each other. This adds the given radio object to the group of which
20506     * the group object indicated is a member.
20507     */
20508    EAPI void         elm_radio_group_add(Evas_Object *obj, Evas_Object *group) EINA_ARG_NONNULL(1);
20509    /**
20510     * @brief Set the integer value that this radio object represents
20511     *
20512     * @param obj The radio object
20513     * @param value The value to use if this radio object is selected
20514     *
20515     * This sets the value of the radio.
20516     */
20517    EAPI void         elm_radio_state_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
20518    /**
20519     * @brief Get the integer value that this radio object represents
20520     *
20521     * @param obj The radio object
20522     * @return The value used if this radio object is selected
20523     *
20524     * This gets the value of the radio.
20525     *
20526     * @see elm_radio_value_set()
20527     */
20528    EAPI int          elm_radio_state_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20529    /**
20530     * @brief Set the value of the radio.
20531     *
20532     * @param obj The radio object
20533     * @param value The value to use for the group
20534     *
20535     * This sets the value of the radio group and will also set the value if
20536     * pointed to, to the value supplied, but will not call any callbacks.
20537     */
20538    EAPI void         elm_radio_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
20539    /**
20540     * @brief Get the state of the radio object
20541     *
20542     * @param obj The radio object
20543     * @return The integer state
20544     */
20545    EAPI int          elm_radio_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20546    /**
20547     * @brief Set a convenience pointer to a integer to change
20548     *
20549     * @param obj The radio object
20550     * @param valuep Pointer to the integer to modify
20551     *
20552     * This sets a pointer to a integer, that, in addition to the radio objects
20553     * state will also be modified directly. To stop setting the object pointed
20554     * to simply use NULL as the @p valuep argument. If valuep is not NULL, then
20555     * when this is called, the radio objects state will also be modified to
20556     * reflect the value of the integer valuep points to, just like calling
20557     * elm_radio_value_set().
20558     */
20559    EAPI void         elm_radio_value_pointer_set(Evas_Object *obj, int *valuep) EINA_ARG_NONNULL(1);
20560    /**
20561     * @}
20562     */
20563
20564    /**
20565     * @defgroup Pager Pager
20566     *
20567     * @image html img/widget/pager/preview-00.png
20568     * @image latex img/widget/pager/preview-00.eps
20569     *
20570     * @brief Widget that allows flipping between one or more ā€œpagesā€
20571     * of objects.
20572     *
20573     * The flipping between pages of objects is animated. All content
20574     * in the pager is kept in a stack, being the last content added
20575     * (visible one) on the top of that stack.
20576     *
20577     * Objects can be pushed or popped from the stack or deleted as
20578     * well. Pushes and pops will animate the widget accordingly to its
20579     * style (a pop will also delete the child object once the
20580     * animation is finished). Any object already in the pager can be
20581     * promoted to the top (from its current stacking position) through
20582     * the use of elm_pager_content_promote(). New objects are pushed
20583     * to the top with elm_pager_content_push(). When the top item is
20584     * no longer wanted, simply pop it with elm_pager_content_pop() and
20585     * it will also be deleted. If an object is no longer needed and is
20586     * not the top item, just delete it as normal. You can query which
20587     * objects are the top and bottom with
20588     * elm_pager_content_bottom_get() and elm_pager_content_top_get().
20589     *
20590     * Signals that you can add callbacks for are:
20591     * - @c "show,finished" - when a new page is actually shown on the top
20592     * - @c "hide,finished" - when a previous page is hidden
20593     *
20594     * Only after the first of that signals the child object is
20595     * guaranteed to be visible, as in @c evas_object_visible_get().
20596     *
20597     * This widget has the following styles available:
20598     * - @c "default"
20599     * - @c "fade"
20600     * - @c "fade_translucide"
20601     * - @c "fade_invisible"
20602     *
20603     * @note These styles affect only the flipping animations on the
20604     * default theme; the appearance when not animating is unaffected
20605     * by them.
20606     *
20607     * @ref tutorial_pager gives a good overview of the usage of the API.
20608     * @{
20609     */
20610
20611    /**
20612     * Add a new pager to the parent
20613     *
20614     * @param parent The parent object
20615     * @return The new object or NULL if it cannot be created
20616     *
20617     * @ingroup Pager
20618     */
20619    EAPI Evas_Object *elm_pager_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20620
20621    /**
20622     * @brief Push an object to the top of the pager stack (and show it).
20623     *
20624     * @param obj The pager object
20625     * @param content The object to push
20626     *
20627     * The object pushed becomes a child of the pager, it will be controlled and
20628     * deleted when the pager is deleted.
20629     *
20630     * @note If the content is already in the stack use
20631     * elm_pager_content_promote().
20632     * @warning Using this function on @p content already in the stack results in
20633     * undefined behavior.
20634     */
20635    EAPI void         elm_pager_content_push(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
20636
20637    /**
20638     * @brief Pop the object that is on top of the stack
20639     *
20640     * @param obj The pager object
20641     *
20642     * This pops the object that is on the top(visible) of the pager, makes it
20643     * disappear, then deletes the object. The object that was underneath it on
20644     * the stack will become visible.
20645     */
20646    EAPI void         elm_pager_content_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
20647
20648    /**
20649     * @brief Moves an object already in the pager stack to the top of the stack.
20650     *
20651     * @param obj The pager object
20652     * @param content The object to promote
20653     *
20654     * This will take the @p content and move it to the top of the stack as
20655     * if it had been pushed there.
20656     *
20657     * @note If the content isn't already in the stack use
20658     * elm_pager_content_push().
20659     * @warning Using this function on @p content not already in the stack
20660     * results in undefined behavior.
20661     */
20662    EAPI void         elm_pager_content_promote(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
20663
20664    /**
20665     * @brief Return the object at the bottom of the pager stack
20666     *
20667     * @param obj The pager object
20668     * @return The bottom object or NULL if none
20669     */
20670    EAPI Evas_Object *elm_pager_content_bottom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20671
20672    /**
20673     * @brief  Return the object at the top of the pager stack
20674     *
20675     * @param obj The pager object
20676     * @return The top object or NULL if none
20677     */
20678    EAPI Evas_Object *elm_pager_content_top_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20679
20680    /**
20681     * @}
20682     */
20683
20684    /**
20685     * @defgroup Slideshow Slideshow
20686     *
20687     * @image html img/widget/slideshow/preview-00.png
20688     * @image latex img/widget/slideshow/preview-00.eps
20689     *
20690     * This widget, as the name indicates, is a pre-made image
20691     * slideshow panel, with API functions acting on (child) image
20692     * items presentation. Between those actions, are:
20693     * - advance to next/previous image
20694     * - select the style of image transition animation
20695     * - set the exhibition time for each image
20696     * - start/stop the slideshow
20697     *
20698     * The transition animations are defined in the widget's theme,
20699     * consequently new animations can be added without having to
20700     * update the widget's code.
20701     *
20702     * @section Slideshow_Items Slideshow items
20703     *
20704     * For slideshow items, just like for @ref Genlist "genlist" ones,
20705     * the user defines a @b classes, specifying functions that will be
20706     * called on the item's creation and deletion times.
20707     *
20708     * The #Elm_Slideshow_Item_Class structure contains the following
20709     * members:
20710     *
20711     * - @c func.get - When an item is displayed, this function is
20712     *   called, and it's where one should create the item object, de
20713     *   facto. For example, the object can be a pure Evas image object
20714     *   or an Elementary @ref Photocam "photocam" widget. See
20715     *   #SlideshowItemGetFunc.
20716     * - @c func.del - When an item is no more displayed, this function
20717     *   is called, where the user must delete any data associated to
20718     *   the item. See #SlideshowItemDelFunc.
20719     *
20720     * @section Slideshow_Caching Slideshow caching
20721     *
20722     * The slideshow provides facilities to have items adjacent to the
20723     * one being displayed <b>already "realized"</b> (i.e. loaded) for
20724     * you, so that the system does not have to decode image data
20725     * anymore at the time it has to actually switch images on its
20726     * viewport. The user is able to set the numbers of items to be
20727     * cached @b before and @b after the current item, in the widget's
20728     * item list.
20729     *
20730     * Smart events one can add callbacks for are:
20731     *
20732     * - @c "changed" - when the slideshow switches its view to a new
20733     *   item. event_info parameter in callback contains the current visible item
20734     * - @c "transition,end" - when a slide transition ends. event_info parameter
20735     *   in callback contains the current visible item
20736     *
20737     * List of examples for the slideshow widget:
20738     * @li @ref slideshow_example
20739     */
20740
20741    /**
20742     * @addtogroup Slideshow
20743     * @{
20744     */
20745
20746    typedef struct _Elm_Slideshow_Item_Class Elm_Slideshow_Item_Class; /**< Slideshow item class definition struct */
20747    typedef struct _Elm_Slideshow_Item_Class_Func Elm_Slideshow_Item_Class_Func; /**< Class functions for slideshow item classes. */
20748    typedef Evas_Object *(*SlideshowItemGetFunc) (void *data, Evas_Object *obj); /**< Image fetching class function for slideshow item classes. */
20749    typedef void         (*SlideshowItemDelFunc) (void *data, Evas_Object *obj); /**< Deletion class function for slideshow item classes. */
20750
20751    /**
20752     * @struct _Elm_Slideshow_Item_Class
20753     *
20754     * Slideshow item class definition. See @ref Slideshow_Items for
20755     * field details.
20756     */
20757    struct _Elm_Slideshow_Item_Class
20758      {
20759         struct _Elm_Slideshow_Item_Class_Func
20760           {
20761              SlideshowItemGetFunc get;
20762              SlideshowItemDelFunc del;
20763           } func;
20764      }; /**< #Elm_Slideshow_Item_Class member definitions */
20765
20766    /**
20767     * Add a new slideshow widget to the given parent Elementary
20768     * (container) object
20769     *
20770     * @param parent The parent object
20771     * @return A new slideshow widget handle or @c NULL, on errors
20772     *
20773     * This function inserts a new slideshow widget on the canvas.
20774     *
20775     * @ingroup Slideshow
20776     */
20777    EAPI Evas_Object        *elm_slideshow_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20778
20779    /**
20780     * Add (append) a new item in a given slideshow widget.
20781     *
20782     * @param obj The slideshow object
20783     * @param itc The item class for the item
20784     * @param data The item's data
20785     * @return A handle to the item added or @c NULL, on errors
20786     *
20787     * Add a new item to @p obj's internal list of items, appending it.
20788     * The item's class must contain the function really fetching the
20789     * image object to show for this item, which could be an Evas image
20790     * object or an Elementary photo, for example. The @p data
20791     * parameter is going to be passed to both class functions of the
20792     * item.
20793     *
20794     * @see #Elm_Slideshow_Item_Class
20795     * @see elm_slideshow_item_sorted_insert()
20796     *
20797     * @ingroup Slideshow
20798     */
20799    EAPI Elm_Object_Item *elm_slideshow_item_add(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data) EINA_ARG_NONNULL(1);
20800
20801    /**
20802     * Insert a new item into the given slideshow widget, using the @p func
20803     * function to sort items (by item handles).
20804     *
20805     * @param obj The slideshow object
20806     * @param itc The item class for the item
20807     * @param data The item's data
20808     * @param func The comparing function to be used to sort slideshow
20809     * items <b>by #Elm_Slideshow_Item item handles</b>
20810     * @return Returns The slideshow item handle, on success, or
20811     * @c NULL, on errors
20812     *
20813     * Add a new item to @p obj's internal list of items, in a position
20814     * determined by the @p func comparing function. The item's class
20815     * must contain the function really fetching the image object to
20816     * show for this item, which could be an Evas image object or an
20817     * Elementary photo, for example. The @p data parameter is going to
20818     * be passed to both class functions of the item.
20819     *
20820     * @see #Elm_Slideshow_Item_Class
20821     * @see elm_slideshow_item_add()
20822     *
20823     * @ingroup Slideshow
20824     */
20825    EAPI Elm_Object_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);
20826
20827    /**
20828     * Display a given slideshow widget's item, programmatically.
20829     *
20830     * @param it The item to display on @p obj's viewport
20831     *
20832     * The change between the current item and @p item will use the
20833     * transition @p obj is set to use (@see
20834     * elm_slideshow_transition_set()).
20835     *
20836     * @ingroup Slideshow
20837     */
20838    EAPI void                elm_slideshow_show(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
20839
20840    /**
20841     * Slide to the @b next item, in a given slideshow widget
20842     *
20843     * @param obj The slideshow object
20844     *
20845     * The sliding animation @p obj is set to use will be the
20846     * transition effect used, after this call is issued.
20847     *
20848     * @note If the end of the slideshow's internal list of items is
20849     * reached, it'll wrap around to the list's beginning, again.
20850     *
20851     * @ingroup Slideshow
20852     */
20853    EAPI void                elm_slideshow_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
20854
20855    /**
20856     * Slide to the @b previous item, in a given slideshow widget
20857     *
20858     * @param obj The slideshow object
20859     *
20860     * The sliding animation @p obj is set to use will be the
20861     * transition effect used, after this call is issued.
20862     *
20863     * @note If the beginning of the slideshow's internal list of items
20864     * is reached, it'll wrap around to the list's end, again.
20865     *
20866     * @ingroup Slideshow
20867     */
20868    EAPI void                elm_slideshow_previous(Evas_Object *obj) EINA_ARG_NONNULL(1);
20869
20870    /**
20871     * Returns the list of sliding transition/effect names available, for a
20872     * given slideshow widget.
20873     *
20874     * @param obj The slideshow object
20875     * @return The list of transitions (list of @b stringshared strings
20876     * as data)
20877     *
20878     * The transitions, which come from @p obj's theme, must be an EDC
20879     * data item named @c "transitions" on the theme file, with (prefix)
20880     * names of EDC programs actually implementing them.
20881     *
20882     * The available transitions for slideshows on the default theme are:
20883     * - @c "fade" - the current item fades out, while the new one
20884     *   fades in to the slideshow's viewport.
20885     * - @c "black_fade" - the current item fades to black, and just
20886     *   then, the new item will fade in.
20887     * - @c "horizontal" - the current item slides horizontally, until
20888     *   it gets out of the slideshow's viewport, while the new item
20889     *   comes from the left to take its place.
20890     * - @c "vertical" - the current item slides vertically, until it
20891     *   gets out of the slideshow's viewport, while the new item comes
20892     *   from the bottom to take its place.
20893     * - @c "square" - the new item starts to appear from the middle of
20894     *   the current one, but with a tiny size, growing until its
20895     *   target (full) size and covering the old one.
20896     *
20897     * @warning The stringshared strings get no new references
20898     * exclusive to the user grabbing the list, here, so if you'd like
20899     * to use them out of this call's context, you'd better @c
20900     * eina_stringshare_ref() them.
20901     *
20902     * @see elm_slideshow_transition_set()
20903     *
20904     * @ingroup Slideshow
20905     */
20906    EAPI const Eina_List    *elm_slideshow_transitions_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20907
20908    /**
20909     * Set the current slide transition/effect in use for a given
20910     * slideshow widget
20911     *
20912     * @param obj The slideshow object
20913     * @param transition The new transition's name string
20914     *
20915     * If @p transition is implemented in @p obj's theme (i.e., is
20916     * contained in the list returned by
20917     * elm_slideshow_transitions_get()), this new sliding effect will
20918     * be used on the widget.
20919     *
20920     * @see elm_slideshow_transitions_get() for more details
20921     *
20922     * @ingroup Slideshow
20923     */
20924    EAPI void                elm_slideshow_transition_set(Evas_Object *obj, const char *transition) EINA_ARG_NONNULL(1);
20925
20926    /**
20927     * Get the current slide transition/effect in use for a given
20928     * slideshow widget
20929     *
20930     * @param obj The slideshow object
20931     * @return The current transition's name
20932     *
20933     * @see elm_slideshow_transition_set() for more details
20934     *
20935     * @ingroup Slideshow
20936     */
20937    EAPI const char         *elm_slideshow_transition_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20938
20939    /**
20940     * Set the interval between each image transition on a given
20941     * slideshow widget, <b>and start the slideshow, itself</b>
20942     *
20943     * @param obj The slideshow object
20944     * @param timeout The new displaying timeout for images
20945     *
20946     * After this call, the slideshow widget will start cycling its
20947     * view, sequentially and automatically, with the images of the
20948     * items it has. The time between each new image displayed is going
20949     * to be @p timeout, in @b seconds. If a different timeout was set
20950     * previously and an slideshow was in progress, it will continue
20951     * with the new time between transitions, after this call.
20952     *
20953     * @note A value less than or equal to 0 on @p timeout will disable
20954     * the widget's internal timer, thus halting any slideshow which
20955     * could be happening on @p obj.
20956     *
20957     * @see elm_slideshow_timeout_get()
20958     *
20959     * @ingroup Slideshow
20960     */
20961    EAPI void                elm_slideshow_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
20962
20963    /**
20964     * Get the interval set for image transitions on a given slideshow
20965     * widget.
20966     *
20967     * @param obj The slideshow object
20968     * @return Returns the timeout set on it
20969     *
20970     * @see elm_slideshow_timeout_set() for more details
20971     *
20972     * @ingroup Slideshow
20973     */
20974    EAPI double              elm_slideshow_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20975
20976    /**
20977     * Set if, after a slideshow is started, for a given slideshow
20978     * widget, its items should be displayed cyclically or not.
20979     *
20980     * @param obj The slideshow object
20981     * @param loop Use @c EINA_TRUE to make it cycle through items or
20982     * @c EINA_FALSE for it to stop at the end of @p obj's internal
20983     * list of items
20984     *
20985     * @note elm_slideshow_next() and elm_slideshow_previous() will @b
20986     * ignore what is set by this functions, i.e., they'll @b always
20987     * cycle through items. This affects only the "automatic"
20988     * slideshow, as set by elm_slideshow_timeout_set().
20989     *
20990     * @see elm_slideshow_loop_get()
20991     *
20992     * @ingroup Slideshow
20993     */
20994    EAPI void                elm_slideshow_loop_set(Evas_Object *obj, Eina_Bool loop) EINA_ARG_NONNULL(1);
20995
20996    /**
20997     * Get if, after a slideshow is started, for a given slideshow
20998     * widget, its items are to be displayed cyclically or not.
20999     *
21000     * @param obj The slideshow object
21001     * @return @c EINA_TRUE, if the items in @p obj will be cycled
21002     * through or @c EINA_FALSE, otherwise
21003     *
21004     * @see elm_slideshow_loop_set() for more details
21005     *
21006     * @ingroup Slideshow
21007     */
21008    EAPI Eina_Bool           elm_slideshow_loop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21009
21010    /**
21011     * Remove all items from a given slideshow widget
21012     *
21013     * @param obj The slideshow object
21014     *
21015     * This removes (and deletes) all items in @p obj, leaving it
21016     * empty.
21017     *
21018     * @see elm_slideshow_item_del(), to remove just one item.
21019     *
21020     * @ingroup Slideshow
21021     */
21022    EAPI void                elm_slideshow_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
21023
21024    /**
21025     * Get the internal list of items in a given slideshow widget.
21026     *
21027     * @param obj The slideshow object
21028     * @return The list of items (#Elm_Object_Item as data) or
21029     * @c NULL on errors.
21030     *
21031     * This list is @b not to be modified in any way and must not be
21032     * freed. Use the list members with functions like
21033     * elm_slideshow_item_del(), elm_slideshow_item_data_get().
21034     *
21035     * @warning This list is only valid until @p obj object's internal
21036     * items list is changed. It should be fetched again with another
21037     * call to this function when changes happen.
21038     *
21039     * @ingroup Slideshow
21040     */
21041    EAPI const Eina_List    *elm_slideshow_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21042
21043    /**
21044     * Delete a given item from a slideshow widget.
21045     *
21046     * @param it The slideshow item
21047     *
21048     * @ingroup Slideshow
21049     */
21050    EAPI void                elm_slideshow_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
21051
21052    /**
21053     * Return the data associated with a given slideshow item
21054     *
21055     * @param it The slideshow item
21056     * @return Returns the data associated to this item
21057     *
21058     * @ingroup Slideshow
21059     */
21060    EAPI void               *elm_slideshow_item_data_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
21061
21062    /**
21063     * Returns the currently displayed item, in a given slideshow widget
21064     *
21065     * @param obj The slideshow object
21066     * @return A handle to the item being displayed in @p obj or
21067     * @c NULL, if none is (and on errors)
21068     *
21069     * @ingroup Slideshow
21070     */
21071    EAPI Elm_Object_Item *elm_slideshow_item_current_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21072
21073    /**
21074     * Get the real Evas object created to implement the view of a
21075     * given slideshow item
21076     *
21077     * @param item The slideshow item.
21078     * @return the Evas object implementing this item's view.
21079     *
21080     * This returns the actual Evas object used to implement the
21081     * specified slideshow item's view. This may be @c NULL, as it may
21082     * not have been created or may have been deleted, at any time, by
21083     * the slideshow. <b>Do not modify this object</b> (move, resize,
21084     * show, hide, etc.), as the slideshow is controlling it. This
21085     * function is for querying, emitting custom signals or hooking
21086     * lower level callbacks for events on that object. Do not delete
21087     * this object under any circumstances.
21088     *
21089     * @see elm_slideshow_item_data_get()
21090     *
21091     * @ingroup Slideshow
21092     */
21093    EAPI Evas_Object*        elm_slideshow_item_object_get(const Elm_Object_Item* it) EINA_ARG_NONNULL(1);
21094
21095    /**
21096     * Get the the item, in a given slideshow widget, placed at
21097     * position @p nth, in its internal items list
21098     *
21099     * @param obj The slideshow object
21100     * @param nth The number of the item to grab a handle to (0 being
21101     * the first)
21102     * @return The item stored in @p obj at position @p nth or @c NULL,
21103     * if there's no item with that index (and on errors)
21104     *
21105     * @ingroup Slideshow
21106     */
21107    EAPI Elm_Object_Item *elm_slideshow_item_nth_get(const Evas_Object *obj, unsigned int nth) EINA_ARG_NONNULL(1);
21108
21109    /**
21110     * Set the current slide layout in use for a given slideshow widget
21111     *
21112     * @param obj The slideshow object
21113     * @param layout The new layout's name string
21114     *
21115     * If @p layout is implemented in @p obj's theme (i.e., is contained
21116     * in the list returned by elm_slideshow_layouts_get()), this new
21117     * images layout will be used on the widget.
21118     *
21119     * @see elm_slideshow_layouts_get() for more details
21120     *
21121     * @ingroup Slideshow
21122     */
21123    EAPI void                elm_slideshow_layout_set(Evas_Object *obj, const char *layout) EINA_ARG_NONNULL(1);
21124
21125    /**
21126     * Get the current slide layout in use for a given slideshow widget
21127     *
21128     * @param obj The slideshow object
21129     * @return The current layout's name
21130     *
21131     * @see elm_slideshow_layout_set() for more details
21132     *
21133     * @ingroup Slideshow
21134     */
21135    EAPI const char         *elm_slideshow_layout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21136
21137    /**
21138     * Returns the list of @b layout names available, for a given
21139     * slideshow widget.
21140     *
21141     * @param obj The slideshow object
21142     * @return The list of layouts (list of @b stringshared strings
21143     * as data)
21144     *
21145     * Slideshow layouts will change how the widget is to dispose each
21146     * image item in its viewport, with regard to cropping, scaling,
21147     * etc.
21148     *
21149     * The layouts, which come from @p obj's theme, must be an EDC
21150     * data item name @c "layouts" on the theme file, with (prefix)
21151     * names of EDC programs actually implementing them.
21152     *
21153     * The available layouts for slideshows on the default theme are:
21154     * - @c "fullscreen" - item images with original aspect, scaled to
21155     *   touch top and down slideshow borders or, if the image's heigh
21156     *   is not enough, left and right slideshow borders.
21157     * - @c "not_fullscreen" - the same behavior as the @c "fullscreen"
21158     *   one, but always leaving 10% of the slideshow's dimensions of
21159     *   distance between the item image's borders and the slideshow
21160     *   borders, for each axis.
21161     *
21162     * @warning The stringshared strings get no new references
21163     * exclusive to the user grabbing the list, here, so if you'd like
21164     * to use them out of this call's context, you'd better @c
21165     * eina_stringshare_ref() them.
21166     *
21167     * @see elm_slideshow_layout_set()
21168     *
21169     * @ingroup Slideshow
21170     */
21171    EAPI const Eina_List    *elm_slideshow_layouts_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21172
21173    /**
21174     * Set the number of items to cache, on a given slideshow widget,
21175     * <b>before the current item</b>
21176     *
21177     * @param obj The slideshow object
21178     * @param count Number of items to cache before the current one
21179     *
21180     * The default value for this property is @c 2. See
21181     * @ref Slideshow_Caching "slideshow caching" for more details.
21182     *
21183     * @see elm_slideshow_cache_before_get()
21184     *
21185     * @ingroup Slideshow
21186     */
21187    EAPI void                elm_slideshow_cache_before_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
21188
21189    /**
21190     * Retrieve the number of items to cache, on a given slideshow widget,
21191     * <b>before the current item</b>
21192     *
21193     * @param obj The slideshow object
21194     * @return The number of items set to be cached before the current one
21195     *
21196     * @see elm_slideshow_cache_before_set() for more details
21197     *
21198     * @ingroup Slideshow
21199     */
21200    EAPI int                 elm_slideshow_cache_before_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21201
21202    /**
21203     * Set the number of items to cache, on a given slideshow widget,
21204     * <b>after the current item</b>
21205     *
21206     * @param obj The slideshow object
21207     * @param count Number of items to cache after the current one
21208     *
21209     * The default value for this property is @c 2. See
21210     * @ref Slideshow_Caching "slideshow caching" for more details.
21211     *
21212     * @see elm_slideshow_cache_after_get()
21213     *
21214     * @ingroup Slideshow
21215     */
21216    EAPI void                elm_slideshow_cache_after_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
21217
21218    /**
21219     * Retrieve the number of items to cache, on a given slideshow widget,
21220     * <b>after the current item</b>
21221     *
21222     * @param obj The slideshow object
21223     * @return The number of items set to be cached after the current one
21224     *
21225     * @see elm_slideshow_cache_after_set() for more details
21226     *
21227     * @ingroup Slideshow
21228     */
21229    EAPI int                 elm_slideshow_cache_after_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21230
21231    /**
21232     * Get the number of items stored in a given slideshow widget
21233     *
21234     * @param obj The slideshow object
21235     * @return The number of items on @p obj, at the moment of this call
21236     *
21237     * @ingroup Slideshow
21238     */
21239    EAPI unsigned int        elm_slideshow_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21240
21241    /**
21242     * @}
21243     */
21244
21245    /**
21246     * @defgroup Fileselector File Selector
21247     *
21248     * @image html img/widget/fileselector/preview-00.png
21249     * @image latex img/widget/fileselector/preview-00.eps
21250     *
21251     * A file selector is a widget that allows a user to navigate
21252     * through a file system, reporting file selections back via its
21253     * API.
21254     *
21255     * It contains shortcut buttons for home directory (@c ~) and to
21256     * jump one directory upwards (..), as well as cancel/ok buttons to
21257     * confirm/cancel a given selection. After either one of those two
21258     * former actions, the file selector will issue its @c "done" smart
21259     * callback.
21260     *
21261     * There's a text entry on it, too, showing the name of the current
21262     * selection. There's the possibility of making it editable, so it
21263     * is useful on file saving dialogs on applications, where one
21264     * gives a file name to save contents to, in a given directory in
21265     * the system. This custom file name will be reported on the @c
21266     * "done" smart callback (explained in sequence).
21267     *
21268     * Finally, it has a view to display file system items into in two
21269     * possible forms:
21270     * - list
21271     * - grid
21272     *
21273     * If Elementary is built with support of the Ethumb thumbnailing
21274     * library, the second form of view will display preview thumbnails
21275     * of files which it supports.
21276     *
21277     * Smart callbacks one can register to:
21278     *
21279     * - @c "selected" - the user has clicked on a file (when not in
21280     *      folders-only mode) or directory (when in folders-only mode)
21281     * - @c "directory,open" - the list has been populated with new
21282     *      content (@c event_info is a pointer to the directory's
21283     *      path, a @b stringshared string)
21284     * - @c "done" - the user has clicked on the "ok" or "cancel"
21285     *      buttons (@c event_info is a pointer to the selection's
21286     *      path, a @b stringshared string)
21287     *
21288     * Here is an example on its usage:
21289     * @li @ref fileselector_example
21290     */
21291
21292    /**
21293     * @addtogroup Fileselector
21294     * @{
21295     */
21296
21297    /**
21298     * Defines how a file selector widget is to layout its contents
21299     * (file system entries).
21300     */
21301    typedef enum _Elm_Fileselector_Mode
21302      {
21303         ELM_FILESELECTOR_LIST = 0, /**< layout as a list */
21304         ELM_FILESELECTOR_GRID, /**< layout as a grid */
21305         ELM_FILESELECTOR_LAST /**< sentinel (helper) value, not used */
21306      } Elm_Fileselector_Mode;
21307
21308    /**
21309     * Add a new file selector widget to the given parent Elementary
21310     * (container) object
21311     *
21312     * @param parent The parent object
21313     * @return a new file selector widget handle or @c NULL, on errors
21314     *
21315     * This function inserts a new file selector widget on the canvas.
21316     *
21317     * @ingroup Fileselector
21318     */
21319    EAPI Evas_Object          *elm_fileselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21320
21321    /**
21322     * Enable/disable the file name entry box where the user can type
21323     * in a name for a file, in a given file selector widget
21324     *
21325     * @param obj The file selector object
21326     * @param is_save @c EINA_TRUE to make the file selector a "saving
21327     * dialog", @c EINA_FALSE otherwise
21328     *
21329     * Having the entry editable is useful on file saving dialogs on
21330     * applications, where one gives a file name to save contents to,
21331     * in a given directory in the system. This custom file name will
21332     * be reported on the @c "done" smart callback.
21333     *
21334     * @see elm_fileselector_is_save_get()
21335     *
21336     * @ingroup Fileselector
21337     */
21338    EAPI void                  elm_fileselector_is_save_set(Evas_Object *obj, Eina_Bool is_save) EINA_ARG_NONNULL(1);
21339
21340    /**
21341     * Get whether the given file selector is in "saving dialog" mode
21342     *
21343     * @param obj The file selector object
21344     * @return @c EINA_TRUE, if the file selector is in "saving dialog"
21345     * mode, @c EINA_FALSE otherwise (and on errors)
21346     *
21347     * @see elm_fileselector_is_save_set() for more details
21348     *
21349     * @ingroup Fileselector
21350     */
21351    EAPI Eina_Bool             elm_fileselector_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21352
21353    /**
21354     * Enable/disable folder-only view for a given file selector widget
21355     *
21356     * @param obj The file selector object
21357     * @param only @c EINA_TRUE to make @p obj only display
21358     * directories, @c EINA_FALSE to make files to be displayed in it
21359     * too
21360     *
21361     * If enabled, the widget's view will only display folder items,
21362     * naturally.
21363     *
21364     * @see elm_fileselector_folder_only_get()
21365     *
21366     * @ingroup Fileselector
21367     */
21368    EAPI void                  elm_fileselector_folder_only_set(Evas_Object *obj, Eina_Bool only) EINA_ARG_NONNULL(1);
21369
21370    /**
21371     * Get whether folder-only view is set for a given file selector
21372     * widget
21373     *
21374     * @param obj The file selector object
21375     * @return only @c EINA_TRUE if @p obj is only displaying
21376     * directories, @c EINA_FALSE if files are being displayed in it
21377     * too (and on errors)
21378     *
21379     * @see elm_fileselector_folder_only_get()
21380     *
21381     * @ingroup Fileselector
21382     */
21383    EAPI Eina_Bool             elm_fileselector_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21384
21385    /**
21386     * Enable/disable the "ok" and "cancel" buttons on a given file
21387     * selector widget
21388     *
21389     * @param obj The file selector object
21390     * @param only @c EINA_TRUE to show them, @c EINA_FALSE to hide.
21391     *
21392     * @note A file selector without those buttons will never emit the
21393     * @c "done" smart event, and is only usable if one is just hooking
21394     * to the other two events.
21395     *
21396     * @see elm_fileselector_buttons_ok_cancel_get()
21397     *
21398     * @ingroup Fileselector
21399     */
21400    EAPI void                  elm_fileselector_buttons_ok_cancel_set(Evas_Object *obj, Eina_Bool buttons) EINA_ARG_NONNULL(1);
21401
21402    /**
21403     * Get whether the "ok" and "cancel" buttons on a given file
21404     * selector widget are being shown.
21405     *
21406     * @param obj The file selector object
21407     * @return @c EINA_TRUE if they are being shown, @c EINA_FALSE
21408     * otherwise (and on errors)
21409     *
21410     * @see elm_fileselector_buttons_ok_cancel_set() for more details
21411     *
21412     * @ingroup Fileselector
21413     */
21414    EAPI Eina_Bool             elm_fileselector_buttons_ok_cancel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21415
21416    /**
21417     * Enable/disable a tree view in the given file selector widget,
21418     * <b>if it's in @c #ELM_FILESELECTOR_LIST mode</b>
21419     *
21420     * @param obj The file selector object
21421     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
21422     * disable
21423     *
21424     * In a tree view, arrows are created on the sides of directories,
21425     * allowing them to expand in place.
21426     *
21427     * @note If it's in other mode, the changes made by this function
21428     * will only be visible when one switches back to "list" mode.
21429     *
21430     * @see elm_fileselector_expandable_get()
21431     *
21432     * @ingroup Fileselector
21433     */
21434    EAPI void                  elm_fileselector_expandable_set(Evas_Object *obj, Eina_Bool expand) EINA_ARG_NONNULL(1);
21435
21436    /**
21437     * Get whether tree view is enabled for the given file selector
21438     * widget
21439     *
21440     * @param obj The file selector object
21441     * @return @c EINA_TRUE if @p obj is in tree view, @c EINA_FALSE
21442     * otherwise (and or errors)
21443     *
21444     * @see elm_fileselector_expandable_set() for more details
21445     *
21446     * @ingroup Fileselector
21447     */
21448    EAPI Eina_Bool             elm_fileselector_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21449
21450    /**
21451     * Set, programmatically, the @b directory that a given file
21452     * selector widget will display contents from
21453     *
21454     * @param obj The file selector object
21455     * @param path The path to display in @p obj
21456     *
21457     * This will change the @b directory that @p obj is displaying. It
21458     * will also clear the text entry area on the @p obj object, which
21459     * displays select files' names.
21460     *
21461     * @see elm_fileselector_path_get()
21462     *
21463     * @ingroup Fileselector
21464     */
21465    EAPI void                  elm_fileselector_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
21466
21467    /**
21468     * Get the parent directory's path that a given file selector
21469     * widget is displaying
21470     *
21471     * @param obj The file selector object
21472     * @return The (full) path of the directory the file selector is
21473     * displaying, a @b stringshared string
21474     *
21475     * @see elm_fileselector_path_set()
21476     *
21477     * @ingroup Fileselector
21478     */
21479    EAPI const char           *elm_fileselector_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21480
21481    /**
21482     * Set, programmatically, the currently selected file/directory in
21483     * the given file selector widget
21484     *
21485     * @param obj The file selector object
21486     * @param path The (full) path to a file or directory
21487     * @return @c EINA_TRUE on success, @c EINA_FALSE on failure. The
21488     * latter case occurs if the directory or file pointed to do not
21489     * exist.
21490     *
21491     * @see elm_fileselector_selected_get()
21492     *
21493     * @ingroup Fileselector
21494     */
21495    EAPI Eina_Bool             elm_fileselector_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
21496
21497    /**
21498     * Get the currently selected item's (full) path, in the given file
21499     * selector widget
21500     *
21501     * @param obj The file selector object
21502     * @return The absolute path of the selected item, a @b
21503     * stringshared string
21504     *
21505     * @note Custom editions on @p obj object's text entry, if made,
21506     * will appear on the return string of this function, naturally.
21507     *
21508     * @see elm_fileselector_selected_set() for more details
21509     *
21510     * @ingroup Fileselector
21511     */
21512    EAPI const char           *elm_fileselector_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21513
21514    /**
21515     * Set the mode in which a given file selector widget will display
21516     * (layout) file system entries in its view
21517     *
21518     * @param obj The file selector object
21519     * @param mode The mode of the fileselector, being it one of
21520     * #ELM_FILESELECTOR_LIST (default) or #ELM_FILESELECTOR_GRID. The
21521     * first one, naturally, will display the files in a list. The
21522     * latter will make the widget to display its entries in a grid
21523     * form.
21524     *
21525     * @note By using elm_fileselector_expandable_set(), the user may
21526     * trigger a tree view for that list.
21527     *
21528     * @note If Elementary is built with support of the Ethumb
21529     * thumbnailing library, the second form of view will display
21530     * preview thumbnails of files which it supports. You must have
21531     * elm_need_ethumb() called in your Elementary for thumbnailing to
21532     * work, though.
21533     *
21534     * @see elm_fileselector_expandable_set().
21535     * @see elm_fileselector_mode_get().
21536     *
21537     * @ingroup Fileselector
21538     */
21539    EAPI void                  elm_fileselector_mode_set(Evas_Object *obj, Elm_Fileselector_Mode mode) EINA_ARG_NONNULL(1);
21540
21541    /**
21542     * Get the mode in which a given file selector widget is displaying
21543     * (layouting) file system entries in its view
21544     *
21545     * @param obj The fileselector object
21546     * @return The mode in which the fileselector is at
21547     *
21548     * @see elm_fileselector_mode_set() for more details
21549     *
21550     * @ingroup Fileselector
21551     */
21552    EAPI Elm_Fileselector_Mode elm_fileselector_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21553
21554    /**
21555     * @}
21556     */
21557
21558    /**
21559     * @defgroup Progressbar Progress bar
21560     *
21561     * The progress bar is a widget for visually representing the
21562     * progress status of a given job/task.
21563     *
21564     * A progress bar may be horizontal or vertical. It may display an
21565     * icon besides it, as well as primary and @b units labels. The
21566     * former is meant to label the widget as a whole, while the
21567     * latter, which is formatted with floating point values (and thus
21568     * accepts a <c>printf</c>-style format string, like <c>"%1.2f
21569     * units"</c>), is meant to label the widget's <b>progress
21570     * value</b>. Label, icon and unit strings/objects are @b optional
21571     * for progress bars.
21572     *
21573     * A progress bar may be @b inverted, in which state it gets its
21574     * values inverted, with high values being on the left or top and
21575     * low values on the right or bottom, as opposed to normally have
21576     * the low values on the former and high values on the latter,
21577     * respectively, for horizontal and vertical modes.
21578     *
21579     * The @b span of the progress, as set by
21580     * elm_progressbar_span_size_set(), is its length (horizontally or
21581     * vertically), unless one puts size hints on the widget to expand
21582     * on desired directions, by any container. That length will be
21583     * scaled by the object or applications scaling factor. At any
21584     * point code can query the progress bar for its value with
21585     * elm_progressbar_value_get().
21586     *
21587     * Available widget styles for progress bars:
21588     * - @c "default"
21589     * - @c "wheel" (simple style, no text, no progression, only
21590     *      "pulse" effect is available)
21591     *
21592     * Default contents parts of the progressbar widget that you can use for are:
21593     * @li "icon" - An icon of the progressbar
21594     *
21595     * Here is an example on its usage:
21596     * @li @ref progressbar_example
21597     */
21598
21599    /**
21600     * Add a new progress bar widget to the given parent Elementary
21601     * (container) object
21602     *
21603     * @param parent The parent object
21604     * @return a new progress bar widget handle or @c NULL, on errors
21605     *
21606     * This function inserts a new progress bar widget on the canvas.
21607     *
21608     * @ingroup Progressbar
21609     */
21610    EAPI Evas_Object *elm_progressbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21611
21612    /**
21613     * Set whether a given progress bar widget is at "pulsing mode" or
21614     * not.
21615     *
21616     * @param obj The progress bar object
21617     * @param pulse @c EINA_TRUE to put @p obj in pulsing mode,
21618     * @c EINA_FALSE to put it back to its default one
21619     *
21620     * By default, progress bars will display values from the low to
21621     * high value boundaries. There are, though, contexts in which the
21622     * state of progression of a given task is @b unknown.  For those,
21623     * one can set a progress bar widget to a "pulsing state", to give
21624     * the user an idea that some computation is being held, but
21625     * without exact progress values. In the default theme it will
21626     * animate its bar with the contents filling in constantly and back
21627     * to non-filled, in a loop. To start and stop this pulsing
21628     * animation, one has to explicitly call elm_progressbar_pulse().
21629     *
21630     * @see elm_progressbar_pulse_get()
21631     * @see elm_progressbar_pulse()
21632     *
21633     * @ingroup Progressbar
21634     */
21635    EAPI void         elm_progressbar_pulse_set(Evas_Object *obj, Eina_Bool pulse) EINA_ARG_NONNULL(1);
21636
21637    /**
21638     * Get whether a given progress bar widget is at "pulsing mode" or
21639     * not.
21640     *
21641     * @param obj The progress bar object
21642     * @return @c EINA_TRUE, if @p obj is in pulsing mode, @c EINA_FALSE
21643     * if it's in the default one (and on errors)
21644     *
21645     * @ingroup Progressbar
21646     */
21647    EAPI Eina_Bool    elm_progressbar_pulse_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21648
21649    /**
21650     * Start/stop a given progress bar "pulsing" animation, if its
21651     * under that mode
21652     *
21653     * @param obj The progress bar object
21654     * @param state @c EINA_TRUE, to @b start the pulsing animation,
21655     * @c EINA_FALSE to @b stop it
21656     *
21657     * @note This call won't do anything if @p obj is not under "pulsing mode".
21658     *
21659     * @see elm_progressbar_pulse_set() for more details.
21660     *
21661     * @ingroup Progressbar
21662     */
21663    EAPI void         elm_progressbar_pulse(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
21664
21665    /**
21666     * Set the progress value (in percentage) on a given progress bar
21667     * widget
21668     *
21669     * @param obj The progress bar object
21670     * @param val The progress value (@b must be between @c 0.0 and @c
21671     * 1.0)
21672     *
21673     * Use this call to set progress bar levels.
21674     *
21675     * @note If you passes a value out of the specified range for @p
21676     * val, it will be interpreted as the @b closest of the @b boundary
21677     * values in the range.
21678     *
21679     * @ingroup Progressbar
21680     */
21681    EAPI void         elm_progressbar_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
21682
21683    /**
21684     * Get the progress value (in percentage) on a given progress bar
21685     * widget
21686     *
21687     * @param obj The progress bar object
21688     * @return The value of the progressbar
21689     *
21690     * @see elm_progressbar_value_set() for more details
21691     *
21692     * @ingroup Progressbar
21693     */
21694    EAPI double       elm_progressbar_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21695
21696    /**
21697     * Set the label of a given progress bar widget
21698     *
21699     * @param obj The progress bar object
21700     * @param label The text label string, in UTF-8
21701     *
21702     * @ingroup Progressbar
21703     * @deprecated use elm_object_text_set() instead.
21704     */
21705    EINA_DEPRECATED EAPI void         elm_progressbar_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
21706
21707    /**
21708     * Get the label of a given progress bar widget
21709     *
21710     * @param obj The progressbar object
21711     * @return The text label string, in UTF-8
21712     *
21713     * @ingroup Progressbar
21714     * @deprecated use elm_object_text_set() instead.
21715     */
21716    EINA_DEPRECATED EAPI const char  *elm_progressbar_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21717
21718    /**
21719     * Set the icon object of a given progress bar widget
21720     *
21721     * @param obj The progress bar object
21722     * @param icon The icon object
21723     *
21724     * Use this call to decorate @p obj with an icon next to it.
21725     *
21726     * @note Once the icon object is set, a previously set one will be
21727     * deleted. If you want to keep that old content object, use the
21728     * elm_progressbar_icon_unset() function.
21729     *
21730     * @see elm_progressbar_icon_get()
21731     * @deprecated use elm_object_part_content_set() instead.
21732     *
21733     * @ingroup Progressbar
21734     */
21735    EINA_DEPRECATED EAPI void         elm_progressbar_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
21736
21737    /**
21738     * Retrieve the icon object set for a given progress bar widget
21739     *
21740     * @param obj The progress bar object
21741     * @return The icon object's handle, if @p obj had one set, or @c NULL,
21742     * otherwise (and on errors)
21743     *
21744     * @see elm_progressbar_icon_set() for more details
21745     * @deprecated use elm_object_part_content_get() instead.
21746     *
21747     * @ingroup Progressbar
21748     */
21749    EINA_DEPRECATED EAPI Evas_Object *elm_progressbar_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21750
21751    /**
21752     * Unset an icon set on a given progress bar widget
21753     *
21754     * @param obj The progress bar object
21755     * @return The icon object that was being used, if any was set, or
21756     * @c NULL, otherwise (and on errors)
21757     *
21758     * This call will unparent and return the icon object which was set
21759     * for this widget, previously, on success.
21760     *
21761     * @see elm_progressbar_icon_set() for more details
21762     * @deprecated use elm_object_part_content_unset() instead.
21763     *
21764     * @ingroup Progressbar
21765     */
21766    EINA_DEPRECATED EAPI Evas_Object *elm_progressbar_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
21767
21768    /**
21769     * Set the (exact) length of the bar region of a given progress bar
21770     * widget
21771     *
21772     * @param obj The progress bar object
21773     * @param size The length of the progress bar's bar region
21774     *
21775     * This sets the minimum width (when in horizontal mode) or height
21776     * (when in vertical mode) of the actual bar area of the progress
21777     * bar @p obj. This in turn affects the object's minimum size. Use
21778     * this when you're not setting other size hints expanding on the
21779     * given direction (like weight and alignment hints) and you would
21780     * like it to have a specific size.
21781     *
21782     * @note Icon, label and unit text around @p obj will require their
21783     * own space, which will make @p obj to require more the @p size,
21784     * actually.
21785     *
21786     * @see elm_progressbar_span_size_get()
21787     *
21788     * @ingroup Progressbar
21789     */
21790    EAPI void         elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
21791
21792    /**
21793     * Get the length set for the bar region of a given progress bar
21794     * widget
21795     *
21796     * @param obj The progress bar object
21797     * @return The length of the progress bar's bar region
21798     *
21799     * If that size was not set previously, with
21800     * elm_progressbar_span_size_set(), this call will return @c 0.
21801     *
21802     * @ingroup Progressbar
21803     */
21804    EAPI Evas_Coord   elm_progressbar_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21805
21806    /**
21807     * Set the format string for a given progress bar widget's units
21808     * label
21809     *
21810     * @param obj The progress bar object
21811     * @param format The format string for @p obj's units label
21812     *
21813     * If @c NULL is passed on @p format, it will make @p obj's units
21814     * area to be hidden completely. If not, it'll set the <b>format
21815     * string</b> for the units label's @b text. The units label is
21816     * provided a floating point value, so the units text is up display
21817     * at most one floating point falue. Note that the units label is
21818     * optional. Use a format string such as "%1.2f meters" for
21819     * example.
21820     *
21821     * @note The default format string for a progress bar is an integer
21822     * percentage, as in @c "%.0f %%".
21823     *
21824     * @see elm_progressbar_unit_format_get()
21825     *
21826     * @ingroup Progressbar
21827     */
21828    EAPI void         elm_progressbar_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
21829
21830    /**
21831     * Retrieve the format string set for a given progress bar widget's
21832     * units label
21833     *
21834     * @param obj The progress bar object
21835     * @return The format set string for @p obj's units label or
21836     * @c NULL, if none was set (and on errors)
21837     *
21838     * @see elm_progressbar_unit_format_set() for more details
21839     *
21840     * @ingroup Progressbar
21841     */
21842    EAPI const char  *elm_progressbar_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21843
21844    /**
21845     * Set the orientation of a given progress bar widget
21846     *
21847     * @param obj The progress bar object
21848     * @param horizontal Use @c EINA_TRUE to make @p obj to be
21849     * @b horizontal, @c EINA_FALSE to make it @b vertical
21850     *
21851     * Use this function to change how your progress bar is to be
21852     * disposed: vertically or horizontally.
21853     *
21854     * @see elm_progressbar_horizontal_get()
21855     *
21856     * @ingroup Progressbar
21857     */
21858    EAPI void         elm_progressbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
21859
21860    /**
21861     * Retrieve the orientation of a given progress bar widget
21862     *
21863     * @param obj The progress bar object
21864     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
21865     * @c EINA_FALSE if it's @b vertical (and on errors)
21866     *
21867     * @see elm_progressbar_horizontal_set() for more details
21868     *
21869     * @ingroup Progressbar
21870     */
21871    EAPI Eina_Bool    elm_progressbar_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21872
21873    /**
21874     * Invert a given progress bar widget's displaying values order
21875     *
21876     * @param obj The progress bar object
21877     * @param inverted Use @c EINA_TRUE to make @p obj inverted,
21878     * @c EINA_FALSE to bring it back to default, non-inverted values.
21879     *
21880     * A progress bar may be @b inverted, in which state it gets its
21881     * values inverted, with high values being on the left or top and
21882     * low values on the right or bottom, as opposed to normally have
21883     * the low values on the former and high values on the latter,
21884     * respectively, for horizontal and vertical modes.
21885     *
21886     * @see elm_progressbar_inverted_get()
21887     *
21888     * @ingroup Progressbar
21889     */
21890    EAPI void         elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
21891
21892    /**
21893     * Get whether a given progress bar widget's displaying values are
21894     * inverted or not
21895     *
21896     * @param obj The progress bar object
21897     * @return @c EINA_TRUE, if @p obj has inverted values,
21898     * @c EINA_FALSE otherwise (and on errors)
21899     *
21900     * @see elm_progressbar_inverted_set() for more details
21901     *
21902     * @ingroup Progressbar
21903     */
21904    EAPI Eina_Bool    elm_progressbar_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21905
21906    /**
21907     * @defgroup Separator Separator
21908     *
21909     * @brief Separator is a very thin object used to separate other objects.
21910     *
21911     * A separator can be vertical or horizontal.
21912     *
21913     * @ref tutorial_separator is a good example of how to use a separator.
21914     * @{
21915     */
21916    /**
21917     * @brief Add a separator object to @p parent
21918     *
21919     * @param parent The parent object
21920     *
21921     * @return The separator object, or NULL upon failure
21922     */
21923    EAPI Evas_Object *elm_separator_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21924    /**
21925     * @brief Set the horizontal mode of a separator object
21926     *
21927     * @param obj The separator object
21928     * @param horizontal If true, the separator is horizontal
21929     */
21930    EAPI void         elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
21931    /**
21932     * @brief Get the horizontal mode of a separator object
21933     *
21934     * @param obj The separator object
21935     * @return If true, the separator is horizontal
21936     *
21937     * @see elm_separator_horizontal_set()
21938     */
21939    EAPI Eina_Bool    elm_separator_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21940    /**
21941     * @}
21942     */
21943
21944    /**
21945     * @defgroup Spinner Spinner
21946     * @ingroup Elementary
21947     *
21948     * @image html img/widget/spinner/preview-00.png
21949     * @image latex img/widget/spinner/preview-00.eps
21950     *
21951     * A spinner is a widget which allows the user to increase or decrease
21952     * numeric values using arrow buttons, or edit values directly, clicking
21953     * over it and typing the new value.
21954     *
21955     * By default the spinner will not wrap and has a label
21956     * of "%.0f" (just showing the integer value of the double).
21957     *
21958     * A spinner has a label that is formatted with floating
21959     * point values and thus accepts a printf-style format string, like
21960     * ā€œ%1.2f unitsā€.
21961     *
21962     * It also allows specific values to be replaced by pre-defined labels.
21963     *
21964     * Smart callbacks one can register to:
21965     *
21966     * - "changed" - Whenever the spinner value is changed.
21967     * - "delay,changed" - A short time after the value is changed by the user.
21968     *    This will be called only when the user stops dragging for a very short
21969     *    period or when they release their finger/mouse, so it avoids possibly
21970     *    expensive reactions to the value change.
21971     *
21972     * Available styles for it:
21973     * - @c "default";
21974     * - @c "vertical": up/down buttons at the right side and text left aligned.
21975     *
21976     * Here is an example on its usage:
21977     * @ref spinner_example
21978     */
21979
21980    /**
21981     * @addtogroup Spinner
21982     * @{
21983     */
21984
21985    /**
21986     * Add a new spinner widget to the given parent Elementary
21987     * (container) object.
21988     *
21989     * @param parent The parent object.
21990     * @return a new spinner widget handle or @c NULL, on errors.
21991     *
21992     * This function inserts a new spinner widget on the canvas.
21993     *
21994     * @ingroup Spinner
21995     *
21996     */
21997    EAPI Evas_Object *elm_spinner_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21998
21999    /**
22000     * Set the format string of the displayed label.
22001     *
22002     * @param obj The spinner object.
22003     * @param fmt The format string for the label display.
22004     *
22005     * If @c NULL, this sets the format to "%.0f". If not it sets the format
22006     * string for the label text. The label text is provided a floating point
22007     * value, so the label text can display up to 1 floating point value.
22008     * Note that this is optional.
22009     *
22010     * Use a format string such as "%1.2f meters" for example, and it will
22011     * display values like: "3.14 meters" for a value equal to 3.14159.
22012     *
22013     * Default is "%0.f".
22014     *
22015     * @see elm_spinner_label_format_get()
22016     *
22017     * @ingroup Spinner
22018     */
22019    EAPI void         elm_spinner_label_format_set(Evas_Object *obj, const char *fmt) EINA_ARG_NONNULL(1);
22020
22021    /**
22022     * Get the label format of the spinner.
22023     *
22024     * @param obj The spinner object.
22025     * @return The text label format string in UTF-8.
22026     *
22027     * @see elm_spinner_label_format_set() for details.
22028     *
22029     * @ingroup Spinner
22030     */
22031    EAPI const char  *elm_spinner_label_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22032
22033    /**
22034     * Set the minimum and maximum values for the spinner.
22035     *
22036     * @param obj The spinner object.
22037     * @param min The minimum value.
22038     * @param max The maximum value.
22039     *
22040     * Define the allowed range of values to be selected by the user.
22041     *
22042     * If actual value is less than @p min, it will be updated to @p min. If it
22043     * is bigger then @p max, will be updated to @p max. Actual value can be
22044     * get with elm_spinner_value_get().
22045     *
22046     * By default, min is equal to 0, and max is equal to 100.
22047     *
22048     * @warning Maximum must be greater than minimum.
22049     *
22050     * @see elm_spinner_min_max_get()
22051     *
22052     * @ingroup Spinner
22053     */
22054    EAPI void         elm_spinner_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
22055
22056    /**
22057     * Get the minimum and maximum values of the spinner.
22058     *
22059     * @param obj The spinner object.
22060     * @param min Pointer where to store the minimum value.
22061     * @param max Pointer where to store the maximum value.
22062     *
22063     * @note If only one value is needed, the other pointer can be passed
22064     * as @c NULL.
22065     *
22066     * @see elm_spinner_min_max_set() for details.
22067     *
22068     * @ingroup Spinner
22069     */
22070    EAPI void         elm_spinner_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
22071
22072    /**
22073     * Set the step used to increment or decrement the spinner value.
22074     *
22075     * @param obj The spinner object.
22076     * @param step The step value.
22077     *
22078     * This value will be incremented or decremented to the displayed value.
22079     * It will be incremented while the user keep right or top arrow pressed,
22080     * and will be decremented while the user keep left or bottom arrow pressed.
22081     *
22082     * The interval to increment / decrement can be set with
22083     * elm_spinner_interval_set().
22084     *
22085     * By default step value is equal to 1.
22086     *
22087     * @see elm_spinner_step_get()
22088     *
22089     * @ingroup Spinner
22090     */
22091    EAPI void         elm_spinner_step_set(Evas_Object *obj, double step) EINA_ARG_NONNULL(1);
22092
22093    /**
22094     * Get the step used to increment or decrement the spinner value.
22095     *
22096     * @param obj The spinner object.
22097     * @return The step value.
22098     *
22099     * @see elm_spinner_step_get() for more details.
22100     *
22101     * @ingroup Spinner
22102     */
22103    EAPI double       elm_spinner_step_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22104
22105    /**
22106     * Set the value the spinner displays.
22107     *
22108     * @param obj The spinner object.
22109     * @param val The value to be displayed.
22110     *
22111     * Value will be presented on the label following format specified with
22112     * elm_spinner_format_set().
22113     *
22114     * @warning The value must to be between min and max values. This values
22115     * are set by elm_spinner_min_max_set().
22116     *
22117     * @see elm_spinner_value_get().
22118     * @see elm_spinner_format_set().
22119     * @see elm_spinner_min_max_set().
22120     *
22121     * @ingroup Spinner
22122     */
22123    EAPI void         elm_spinner_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
22124
22125    /**
22126     * Get the value displayed by the spinner.
22127     *
22128     * @param obj The spinner object.
22129     * @return The value displayed.
22130     *
22131     * @see elm_spinner_value_set() for details.
22132     *
22133     * @ingroup Spinner
22134     */
22135    EAPI double       elm_spinner_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22136
22137    /**
22138     * Set whether the spinner should wrap when it reaches its
22139     * minimum or maximum value.
22140     *
22141     * @param obj The spinner object.
22142     * @param wrap @c EINA_TRUE to enable wrap or @c EINA_FALSE to
22143     * disable it.
22144     *
22145     * Disabled by default. If disabled, when the user tries to increment the
22146     * value,
22147     * but displayed value plus step value is bigger than maximum value,
22148     * the spinner
22149     * won't allow it. The same happens when the user tries to decrement it,
22150     * but the value less step is less than minimum value.
22151     *
22152     * When wrap is enabled, in such situations it will allow these changes,
22153     * but will get the value that would be less than minimum and subtracts
22154     * from maximum. Or add the value that would be more than maximum to
22155     * the minimum.
22156     *
22157     * E.g.:
22158     * @li min value = 10
22159     * @li max value = 50
22160     * @li step value = 20
22161     * @li displayed value = 20
22162     *
22163     * When the user decrement value (using left or bottom arrow), it will
22164     * displays @c 40, because max - (min - (displayed - step)) is
22165     * @c 50 - (@c 10 - (@c 20 - @c 20)) = @c 40.
22166     *
22167     * @see elm_spinner_wrap_get().
22168     *
22169     * @ingroup Spinner
22170     */
22171    EAPI void         elm_spinner_wrap_set(Evas_Object *obj, Eina_Bool wrap) EINA_ARG_NONNULL(1);
22172
22173    /**
22174     * Get whether the spinner should wrap when it reaches its
22175     * minimum or maximum value.
22176     *
22177     * @param obj The spinner object
22178     * @return @c EINA_TRUE means wrap is enabled. @c EINA_FALSE indicates
22179     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
22180     *
22181     * @see elm_spinner_wrap_set() for details.
22182     *
22183     * @ingroup Spinner
22184     */
22185    EAPI Eina_Bool    elm_spinner_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22186
22187    /**
22188     * Set whether the spinner can be directly edited by the user or not.
22189     *
22190     * @param obj The spinner object.
22191     * @param editable @c EINA_TRUE to allow users to edit it or @c EINA_FALSE to
22192     * don't allow users to edit it directly.
22193     *
22194     * Spinner objects can have edition @b disabled, in which state they will
22195     * be changed only by arrows.
22196     * Useful for contexts
22197     * where you don't want your users to interact with it writting the value.
22198     * Specially
22199     * when using special values, the user can see real value instead
22200     * of special label on edition.
22201     *
22202     * It's enabled by default.
22203     *
22204     * @see elm_spinner_editable_get()
22205     *
22206     * @ingroup Spinner
22207     */
22208    EAPI void         elm_spinner_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
22209
22210    /**
22211     * Get whether the spinner can be directly edited by the user or not.
22212     *
22213     * @param obj The spinner object.
22214     * @return @c EINA_TRUE means edition is enabled. @c EINA_FALSE indicates
22215     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
22216     *
22217     * @see elm_spinner_editable_set() for details.
22218     *
22219     * @ingroup Spinner
22220     */
22221    EAPI Eina_Bool    elm_spinner_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22222
22223    /**
22224     * Set a special string to display in the place of the numerical value.
22225     *
22226     * @param obj The spinner object.
22227     * @param value The value to be replaced.
22228     * @param label The label to be used.
22229     *
22230     * It's useful for cases when a user should select an item that is
22231     * better indicated by a label than a value. For example, weekdays or months.
22232     *
22233     * E.g.:
22234     * @code
22235     * sp = elm_spinner_add(win);
22236     * elm_spinner_min_max_set(sp, 1, 3);
22237     * elm_spinner_special_value_add(sp, 1, "January");
22238     * elm_spinner_special_value_add(sp, 2, "February");
22239     * elm_spinner_special_value_add(sp, 3, "March");
22240     * evas_object_show(sp);
22241     * @endcode
22242     *
22243     * @ingroup Spinner
22244     */
22245    EAPI void         elm_spinner_special_value_add(Evas_Object *obj, double value, const char *label) EINA_ARG_NONNULL(1);
22246
22247    /**
22248     * Set the interval on time updates for an user mouse button hold
22249     * on spinner widgets' arrows.
22250     *
22251     * @param obj The spinner object.
22252     * @param interval The (first) interval value in seconds.
22253     *
22254     * This interval value is @b decreased while the user holds the
22255     * mouse pointer either incrementing or decrementing spinner's value.
22256     *
22257     * This helps the user to get to a given value distant from the
22258     * current one easier/faster, as it will start to change quicker and
22259     * quicker on mouse button holds.
22260     *
22261     * The calculation for the next change interval value, starting from
22262     * the one set with this call, is the previous interval divided by
22263     * @c 1.05, so it decreases a little bit.
22264     *
22265     * The default starting interval value for automatic changes is
22266     * @c 0.85 seconds.
22267     *
22268     * @see elm_spinner_interval_get()
22269     *
22270     * @ingroup Spinner
22271     */
22272    EAPI void         elm_spinner_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
22273
22274    /**
22275     * Get the interval on time updates for an user mouse button hold
22276     * on spinner widgets' arrows.
22277     *
22278     * @param obj The spinner object.
22279     * @return The (first) interval value, in seconds, set on it.
22280     *
22281     * @see elm_spinner_interval_set() for more details.
22282     *
22283     * @ingroup Spinner
22284     */
22285    EAPI double       elm_spinner_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22286
22287    /**
22288     * @}
22289     */
22290
22291    /**
22292     * @defgroup Index Index
22293     *
22294     * @image html img/widget/index/preview-00.png
22295     * @image latex img/widget/index/preview-00.eps
22296     *
22297     * An index widget gives you an index for fast access to whichever
22298     * group of other UI items one might have. It's a list of text
22299     * items (usually letters, for alphabetically ordered access).
22300     *
22301     * Index widgets are by default hidden and just appear when the
22302     * user clicks over it's reserved area in the canvas. In its
22303     * default theme, it's an area one @ref Fingers "finger" wide on
22304     * the right side of the index widget's container.
22305     *
22306     * When items on the index are selected, smart callbacks get
22307     * called, so that its user can make other container objects to
22308     * show a given area or child object depending on the index item
22309     * selected. You'd probably be using an index together with @ref
22310     * List "lists", @ref Genlist "generic lists" or @ref Gengrid
22311     * "general grids".
22312     *
22313     * Smart events one  can add callbacks for are:
22314     * - @c "changed" - When the selected index item changes. @c
22315     *      event_info is the selected item's data pointer.
22316     * - @c "delay,changed" - When the selected index item changes, but
22317     *      after a small idling period. @c event_info is the selected
22318     *      item's data pointer.
22319     * - @c "selected" - When the user releases a mouse button and
22320     *      selects an item. @c event_info is the selected item's data
22321     *      pointer.
22322     * - @c "level,up" - when the user moves a finger from the first
22323     *      level to the second level
22324     * - @c "level,down" - when the user moves a finger from the second
22325     *      level to the first level
22326     *
22327     * The @c "delay,changed" event is so that it'll wait a small time
22328     * before actually reporting those events and, moreover, just the
22329     * last event happening on those time frames will actually be
22330     * reported.
22331     *
22332     * Here are some examples on its usage:
22333     * @li @ref index_example_01
22334     * @li @ref index_example_02
22335     */
22336
22337    /**
22338     * @addtogroup Index
22339     * @{
22340     */
22341
22342    typedef struct _Elm_Index_Item Elm_Index_Item; /**< Opaque handle for items of Elementary index widgets */
22343
22344    /**
22345     * Add a new index widget to the given parent Elementary
22346     * (container) object
22347     *
22348     * @param parent The parent object
22349     * @return a new index widget handle or @c NULL, on errors
22350     *
22351     * This function inserts a new index widget on the canvas.
22352     *
22353     * @ingroup Index
22354     */
22355    EAPI Evas_Object    *elm_index_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22356
22357    /**
22358     * Set whether a given index widget is or not visible,
22359     * programatically.
22360     *
22361     * @param obj The index object
22362     * @param active @c EINA_TRUE to show it, @c EINA_FALSE to hide it
22363     *
22364     * Not to be confused with visible as in @c evas_object_show() --
22365     * visible with regard to the widget's auto hiding feature.
22366     *
22367     * @see elm_index_active_get()
22368     *
22369     * @ingroup Index
22370     */
22371    EAPI void            elm_index_active_set(Evas_Object *obj, Eina_Bool active) EINA_ARG_NONNULL(1);
22372
22373    /**
22374     * Get whether a given index widget is currently visible or not.
22375     *
22376     * @param obj The index object
22377     * @return @c EINA_TRUE, if it's shown, @c EINA_FALSE otherwise
22378     *
22379     * @see elm_index_active_set() for more details
22380     *
22381     * @ingroup Index
22382     */
22383    EAPI Eina_Bool       elm_index_active_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22384
22385    /**
22386     * Set the items level for a given index widget.
22387     *
22388     * @param obj The index object.
22389     * @param level @c 0 or @c 1, the currently implemented levels.
22390     *
22391     * @see elm_index_item_level_get()
22392     *
22393     * @ingroup Index
22394     */
22395    EAPI void            elm_index_item_level_set(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
22396
22397    /**
22398     * Get the items level set for a given index widget.
22399     *
22400     * @param obj The index object.
22401     * @return @c 0 or @c 1, which are the levels @p obj might be at.
22402     *
22403     * @see elm_index_item_level_set() for more information
22404     *
22405     * @ingroup Index
22406     */
22407    EAPI int             elm_index_item_level_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22408
22409    /**
22410     * Returns the last selected item, for a given index widget.
22411     *
22412     * @param obj The index object.
22413     * @return The last item @b selected on @p obj (or @c NULL, on errors).
22414     *
22415     * @ingroup Index
22416     */
22417    EAPI Elm_Index_Item *elm_index_item_selected_get(const Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
22418
22419    /**
22420     * Append a new item on a given index widget.
22421     *
22422     * @param obj The index object.
22423     * @param letter Letter under which the item should be indexed
22424     * @param item The item data to set for the index's item
22425     *
22426     * Despite the most common usage of the @p letter argument is for
22427     * single char strings, one could use arbitrary strings as index
22428     * entries.
22429     *
22430     * @c item will be the pointer returned back on @c "changed", @c
22431     * "delay,changed" and @c "selected" smart events.
22432     *
22433     * @ingroup Index
22434     */
22435    EAPI void            elm_index_item_append(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
22436
22437    /**
22438     * Prepend a new item on a given index widget.
22439     *
22440     * @param obj The index object.
22441     * @param letter Letter under which the item should be indexed
22442     * @param item The item data to set for the index's item
22443     *
22444     * Despite the most common usage of the @p letter argument is for
22445     * single char strings, one could use arbitrary strings as index
22446     * entries.
22447     *
22448     * @c item will be the pointer returned back on @c "changed", @c
22449     * "delay,changed" and @c "selected" smart events.
22450     *
22451     * @ingroup Index
22452     */
22453    EAPI void            elm_index_item_prepend(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
22454
22455    /**
22456     * Append a new item, on a given index widget, <b>after the item
22457     * having @p relative as data</b>.
22458     *
22459     * @param obj The index object.
22460     * @param letter Letter under which the item should be indexed
22461     * @param item The item data to set for the index's item
22462     * @param relative The index item to be the predecessor of this new one
22463     *
22464     * Despite the most common usage of the @p letter argument is for
22465     * single char strings, one could use arbitrary strings as index
22466     * entries.
22467     *
22468     * @c item will be the pointer returned back on @c "changed", @c
22469     * "delay,changed" and @c "selected" smart events.
22470     *
22471     * @note If @p relative is @c NULL this function will behave as
22472     * elm_index_item_append().
22473     *
22474     * @ingroup Index
22475     */
22476    EAPI void            elm_index_item_append_relative(Evas_Object *obj, const char *letter, const void *item, const Elm_Index_Item *relative) EINA_ARG_NONNULL(1);
22477
22478    /**
22479     * Prepend a new item, on a given index widget, <b>after the item
22480     * having @p relative as data</b>.
22481     *
22482     * @param obj The index object.
22483     * @param letter Letter under which the item should be indexed
22484     * @param item The item data to set for the index's item
22485     * @param relative The index item to be the successor of this new one
22486     *
22487     * Despite the most common usage of the @p letter argument is for
22488     * single char strings, one could use arbitrary strings as index
22489     * entries.
22490     *
22491     * @c item will be the pointer returned back on @c "changed", @c
22492     * "delay,changed" and @c "selected" smart events.
22493     *
22494     * @note If @p relative is @c NULL this function will behave as
22495     * elm_index_item_prepend().
22496     *
22497     * @ingroup Index
22498     */
22499    EAPI void            elm_index_item_prepend_relative(Evas_Object *obj, const char *letter, const void *item, const Elm_Index_Item *relative) EINA_ARG_NONNULL(1);
22500
22501    /**
22502     * Insert a new item into the given index widget, using @p cmp_func
22503     * function to sort items (by item handles).
22504     *
22505     * @param obj The index object.
22506     * @param letter Letter under which the item should be indexed
22507     * @param item The item data to set for the index's item
22508     * @param cmp_func The comparing function to be used to sort index
22509     * items <b>by #Elm_Index_Item item handles</b>
22510     * @param cmp_data_func A @b fallback function to be called for the
22511     * sorting of index items <b>by item data</b>). It will be used
22512     * when @p cmp_func returns @c 0 (equality), which means an index
22513     * item with provided item data already exists. To decide which
22514     * data item should be pointed to by the index item in question, @p
22515     * cmp_data_func will be used. If @p cmp_data_func returns a
22516     * non-negative value, the previous index item data will be
22517     * replaced by the given @p item pointer. If the previous data need
22518     * to be freed, it should be done by the @p cmp_data_func function,
22519     * because all references to it will be lost. If this function is
22520     * not provided (@c NULL is given), index items will be @b
22521     * duplicated, if @p cmp_func returns @c 0.
22522     *
22523     * Despite the most common usage of the @p letter argument is for
22524     * single char strings, one could use arbitrary strings as index
22525     * entries.
22526     *
22527     * @c item will be the pointer returned back on @c "changed", @c
22528     * "delay,changed" and @c "selected" smart events.
22529     *
22530     * @ingroup Index
22531     */
22532    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);
22533
22534    /**
22535     * Remove an item from a given index widget, <b>to be referenced by
22536     * it's data value</b>.
22537     *
22538     * @param obj The index object
22539     * @param item The item to be removed from @p obj
22540     *
22541     * If a deletion callback is set, via elm_index_item_del_cb_set(),
22542     * that callback function will be called by this one.
22543     *
22544     * @ingroup Index
22545     */
22546    EAPI void            elm_index_item_del(Evas_Object *obj, Elm_Index_Item *item) EINA_ARG_NONNULL(1);
22547
22548    /**
22549     * Find a given index widget's item, <b>using item data</b>.
22550     *
22551     * @param obj The index object
22552     * @param item The item data pointed to by the desired index item
22553     * @return The index item handle, if found, or @c NULL otherwise
22554     *
22555     * @ingroup Index
22556     */
22557    EAPI Elm_Index_Item *elm_index_item_find(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
22558
22559    /**
22560     * Removes @b all items from a given index widget.
22561     *
22562     * @param obj The index object.
22563     *
22564     * If deletion callbacks are set, via elm_index_item_del_cb_set(),
22565     * that callback function will be called for each item in @p obj.
22566     *
22567     * @ingroup Index
22568     */
22569    EAPI void            elm_index_item_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
22570
22571    /**
22572     * Go to a given items level on a index widget
22573     *
22574     * @param obj The index object
22575     * @param level The index level (one of @c 0 or @c 1)
22576     *
22577     * @ingroup Index
22578     */
22579    EAPI void            elm_index_item_go(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
22580
22581    /**
22582     * Return the data associated with a given index widget item
22583     *
22584     * @param it The index widget item handle
22585     * @return The data associated with @p it
22586     *
22587     * @see elm_index_item_data_set()
22588     *
22589     * @ingroup Index
22590     */
22591    EAPI void           *elm_index_item_data_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
22592
22593    /**
22594     * Set the data associated with a given index widget item
22595     *
22596     * @param it The index widget item handle
22597     * @param data The new data pointer to set to @p it
22598     *
22599     * This sets new item data on @p it.
22600     *
22601     * @warning The old data pointer won't be touched by this function, so
22602     * the user had better to free that old data himself/herself.
22603     *
22604     * @ingroup Index
22605     */
22606    EAPI void            elm_index_item_data_set(Elm_Index_Item *it, const void *data) EINA_ARG_NONNULL(1);
22607
22608    /**
22609     * Set the function to be called when a given index widget item is freed.
22610     *
22611     * @param it The item to set the callback on
22612     * @param func The function to call on the item's deletion
22613     *
22614     * When called, @p func will have both @c data and @c event_info
22615     * arguments with the @p it item's data value and, naturally, the
22616     * @c obj argument with a handle to the parent index widget.
22617     *
22618     * @ingroup Index
22619     */
22620    EAPI void            elm_index_item_del_cb_set(Elm_Index_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
22621
22622    /**
22623     * Get the letter (string) set on a given index widget item.
22624     *
22625     * @param it The index item handle
22626     * @return The letter string set on @p it
22627     *
22628     * @ingroup Index
22629     */
22630    EAPI const char     *elm_index_item_letter_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
22631
22632    /**
22633     * @}
22634     */
22635
22636    /**
22637     * @defgroup Photocam Photocam
22638     *
22639     * @image html img/widget/photocam/preview-00.png
22640     * @image latex img/widget/photocam/preview-00.eps
22641     *
22642     * This is a widget specifically for displaying high-resolution digital
22643     * camera photos giving speedy feedback (fast load), low memory footprint
22644     * and zooming and panning as well as fitting logic. It is entirely focused
22645     * on jpeg images, and takes advantage of properties of the jpeg format (via
22646     * evas loader features in the jpeg loader).
22647     *
22648     * Signals that you can add callbacks for are:
22649     * @li "clicked" - This is called when a user has clicked the photo without
22650     *                 dragging around.
22651     * @li "press" - This is called when a user has pressed down on the photo.
22652     * @li "longpressed" - This is called when a user has pressed down on the
22653     *                     photo for a long time without dragging around.
22654     * @li "clicked,double" - This is called when a user has double-clicked the
22655     *                        photo.
22656     * @li "load" - Photo load begins.
22657     * @li "loaded" - This is called when the image file load is complete for the
22658     *                first view (low resolution blurry version).
22659     * @li "load,detail" - Photo detailed data load begins.
22660     * @li "loaded,detail" - This is called when the image file load is complete
22661     *                      for the detailed image data (full resolution needed).
22662     * @li "zoom,start" - Zoom animation started.
22663     * @li "zoom,stop" - Zoom animation stopped.
22664     * @li "zoom,change" - Zoom changed when using an auto zoom mode.
22665     * @li "scroll" - the content has been scrolled (moved)
22666     * @li "scroll,anim,start" - scrolling animation has started
22667     * @li "scroll,anim,stop" - scrolling animation has stopped
22668     * @li "scroll,drag,start" - dragging the contents around has started
22669     * @li "scroll,drag,stop" - dragging the contents around has stopped
22670     *
22671     * @ref tutorial_photocam shows the API in action.
22672     * @{
22673     */
22674    /**
22675     * @brief Types of zoom available.
22676     */
22677    typedef enum _Elm_Photocam_Zoom_Mode
22678      {
22679         ELM_PHOTOCAM_ZOOM_MODE_MANUAL = 0, /**< Zoom controlled normally by elm_photocam_zoom_set */
22680         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT, /**< Zoom until photo fits in photocam */
22681         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL, /**< Zoom until photo fills photocam */
22682         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT_IN, /**< Unzoom until photo fits in photocam */
22683         ELM_PHOTOCAM_ZOOM_MODE_LAST
22684      } Elm_Photocam_Zoom_Mode;
22685    /**
22686     * @brief Add a new Photocam object
22687     *
22688     * @param parent The parent object
22689     * @return The new object or NULL if it cannot be created
22690     */
22691    EAPI Evas_Object           *elm_photocam_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22692    /**
22693     * @brief Set the photo file to be shown
22694     *
22695     * @param obj The photocam object
22696     * @param file The photo file
22697     * @return The return error (see EVAS_LOAD_ERROR_NONE, EVAS_LOAD_ERROR_GENERIC etc.)
22698     *
22699     * This sets (and shows) the specified file (with a relative or absolute
22700     * path) and will return a load error (same error that
22701     * evas_object_image_load_error_get() will return). The image will change and
22702     * adjust its size at this point and begin a background load process for this
22703     * photo that at some time in the future will be displayed at the full
22704     * quality needed.
22705     */
22706    EAPI Evas_Load_Error        elm_photocam_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
22707    /**
22708     * @brief Returns the path of the current image file
22709     *
22710     * @param obj The photocam object
22711     * @return Returns the path
22712     *
22713     * @see elm_photocam_file_set()
22714     */
22715    EAPI const char            *elm_photocam_file_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22716    /**
22717     * @brief Set the zoom level of the photo
22718     *
22719     * @param obj The photocam object
22720     * @param zoom The zoom level to set
22721     *
22722     * This sets the zoom level. 1 will be 1:1 pixel for pixel. 2 will be 2:1
22723     * (that is 2x2 photo pixels will display as 1 on-screen pixel). 4:1 will be
22724     * 4x4 photo pixels as 1 screen pixel, and so on. The @p zoom parameter must
22725     * be greater than 0. It is usggested to stick to powers of 2. (1, 2, 4, 8,
22726     * 16, 32, etc.).
22727     */
22728    EAPI void                   elm_photocam_zoom_set(Evas_Object *obj, double zoom) EINA_ARG_NONNULL(1);
22729    /**
22730     * @brief Get the zoom level of the photo
22731     *
22732     * @param obj The photocam object
22733     * @return The current zoom level
22734     *
22735     * This returns the current zoom level of the photocam object. Note that if
22736     * you set the fill mode to other than ELM_PHOTOCAM_ZOOM_MODE_MANUAL
22737     * (which is the default), the zoom level may be changed at any time by the
22738     * photocam object itself to account for photo size and photocam viewpoer
22739     * size.
22740     *
22741     * @see elm_photocam_zoom_set()
22742     * @see elm_photocam_zoom_mode_set()
22743     */
22744    EAPI double                 elm_photocam_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22745    /**
22746     * @brief Set the zoom mode
22747     *
22748     * @param obj The photocam object
22749     * @param mode The desired mode
22750     *
22751     * This sets the zoom mode to manual or one of several automatic levels.
22752     * Manual (ELM_PHOTOCAM_ZOOM_MODE_MANUAL) means that zoom is set manually by
22753     * elm_photocam_zoom_set() and will stay at that level until changed by code
22754     * or until zoom mode is changed. This is the default mode. The Automatic
22755     * modes will allow the photocam object to automatically adjust zoom mode
22756     * based on properties. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT) will adjust zoom so
22757     * the photo fits EXACTLY inside the scroll frame with no pixels outside this
22758     * area. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL will be similar but ensure no
22759     * pixels within the frame are left unfilled.
22760     */
22761    EAPI void                   elm_photocam_zoom_mode_set(Evas_Object *obj, Elm_Photocam_Zoom_Mode mode) EINA_ARG_NONNULL(1);
22762    /**
22763     * @brief Get the zoom mode
22764     *
22765     * @param obj The photocam object
22766     * @return The current zoom mode
22767     *
22768     * This gets the current zoom mode of the photocam object.
22769     *
22770     * @see elm_photocam_zoom_mode_set()
22771     */
22772    EAPI Elm_Photocam_Zoom_Mode elm_photocam_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22773    /**
22774     * @brief Get the current image pixel width and height
22775     *
22776     * @param obj The photocam object
22777     * @param w A pointer to the width return
22778     * @param h A pointer to the height return
22779     *
22780     * This gets the current photo pixel width and height (for the original).
22781     * The size will be returned in the integers @p w and @p h that are pointed
22782     * to.
22783     */
22784    EAPI void                   elm_photocam_image_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
22785    /**
22786     * @brief Get the area of the image that is currently shown
22787     *
22788     * @param obj
22789     * @param x A pointer to the X-coordinate of region
22790     * @param y A pointer to the Y-coordinate of region
22791     * @param w A pointer to the width
22792     * @param h A pointer to the height
22793     *
22794     * @see elm_photocam_image_region_show()
22795     * @see elm_photocam_image_region_bring_in()
22796     */
22797    EAPI void                   elm_photocam_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
22798    /**
22799     * @brief Set the viewed portion of the image
22800     *
22801     * @param obj The photocam object
22802     * @param x X-coordinate of region in image original pixels
22803     * @param y Y-coordinate of region in image original pixels
22804     * @param w Width of region in image original pixels
22805     * @param h Height of region in image original pixels
22806     *
22807     * This shows the region of the image without using animation.
22808     */
22809    EAPI void                   elm_photocam_image_region_show(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
22810    /**
22811     * @brief Bring in the viewed portion of the image
22812     *
22813     * @param obj The photocam object
22814     * @param x X-coordinate of region in image original pixels
22815     * @param y Y-coordinate of region in image original pixels
22816     * @param w Width of region in image original pixels
22817     * @param h Height of region in image original pixels
22818     *
22819     * This shows the region of the image using animation.
22820     */
22821    EAPI void                   elm_photocam_image_region_bring_in(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
22822    /**
22823     * @brief Set the paused state for photocam
22824     *
22825     * @param obj The photocam object
22826     * @param paused The pause state to set
22827     *
22828     * This sets the paused state to on(EINA_TRUE) or off (EINA_FALSE) for
22829     * photocam. The default is off. This will stop zooming using animation on
22830     * zoom levels changes and change instantly. This will stop any existing
22831     * animations that are running.
22832     */
22833    EAPI void                   elm_photocam_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
22834    /**
22835     * @brief Get the paused state for photocam
22836     *
22837     * @param obj The photocam object
22838     * @return The current paused state
22839     *
22840     * This gets the current paused state for the photocam object.
22841     *
22842     * @see elm_photocam_paused_set()
22843     */
22844    EAPI Eina_Bool              elm_photocam_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22845    /**
22846     * @brief Get the internal low-res image used for photocam
22847     *
22848     * @param obj The photocam object
22849     * @return The internal image object handle, or NULL if none exists
22850     *
22851     * This gets the internal image object inside photocam. Do not modify it. It
22852     * is for inspection only, and hooking callbacks to. Nothing else. It may be
22853     * deleted at any time as well.
22854     */
22855    EAPI Evas_Object           *elm_photocam_internal_image_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22856    /**
22857     * @brief Set the photocam scrolling bouncing.
22858     *
22859     * @param obj The photocam object
22860     * @param h_bounce bouncing for horizontal
22861     * @param v_bounce bouncing for vertical
22862     */
22863    EAPI void                   elm_photocam_bounce_set(Evas_Object *obj,  Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
22864    /**
22865     * @brief Get the photocam scrolling bouncing.
22866     *
22867     * @param obj The photocam object
22868     * @param h_bounce bouncing for horizontal
22869     * @param v_bounce bouncing for vertical
22870     *
22871     * @see elm_photocam_bounce_set()
22872     */
22873    EAPI void                   elm_photocam_bounce_get(const Evas_Object *obj,  Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
22874    /**
22875     * @}
22876     */
22877
22878    /**
22879     * @defgroup Map Map
22880     * @ingroup Elementary
22881     *
22882     * @image html img/widget/map/preview-00.png
22883     * @image latex img/widget/map/preview-00.eps
22884     *
22885     * This is a widget specifically for displaying a map. It uses basically
22886     * OpenStreetMap provider http://www.openstreetmap.org/,
22887     * but custom providers can be added.
22888     *
22889     * It supports some basic but yet nice features:
22890     * @li zoom and scroll
22891     * @li markers with content to be displayed when user clicks over it
22892     * @li group of markers
22893     * @li routes
22894     *
22895     * Smart callbacks one can listen to:
22896     *
22897     * - "clicked" - This is called when a user has clicked the map without
22898     *   dragging around.
22899     * - "press" - This is called when a user has pressed down on the map.
22900     * - "longpressed" - This is called when a user has pressed down on the map
22901     *   for a long time without dragging around.
22902     * - "clicked,double" - This is called when a user has double-clicked
22903     *   the map.
22904     * - "load,detail" - Map detailed data load begins.
22905     * - "loaded,detail" - This is called when all currently visible parts of
22906     *   the map are loaded.
22907     * - "zoom,start" - Zoom animation started.
22908     * - "zoom,stop" - Zoom animation stopped.
22909     * - "zoom,change" - Zoom changed when using an auto zoom mode.
22910     * - "scroll" - the content has been scrolled (moved).
22911     * - "scroll,anim,start" - scrolling animation has started.
22912     * - "scroll,anim,stop" - scrolling animation has stopped.
22913     * - "scroll,drag,start" - dragging the contents around has started.
22914     * - "scroll,drag,stop" - dragging the contents around has stopped.
22915     * - "downloaded" - This is called when all currently required map images
22916     *   are downloaded.
22917     * - "route,load" - This is called when route request begins.
22918     * - "route,loaded" - This is called when route request ends.
22919     * - "name,load" - This is called when name request begins.
22920     * - "name,loaded- This is called when name request ends.
22921     *
22922     * Available style for map widget:
22923     * - @c "default"
22924     *
22925     * Available style for markers:
22926     * - @c "radio"
22927     * - @c "radio2"
22928     * - @c "empty"
22929     *
22930     * Available style for marker bubble:
22931     * - @c "default"
22932     *
22933     * List of examples:
22934     * @li @ref map_example_01
22935     * @li @ref map_example_02
22936     * @li @ref map_example_03
22937     */
22938
22939    /**
22940     * @addtogroup Map
22941     * @{
22942     */
22943
22944    /**
22945     * @enum _Elm_Map_Zoom_Mode
22946     * @typedef Elm_Map_Zoom_Mode
22947     *
22948     * Set map's zoom behavior. It can be set to manual or automatic.
22949     *
22950     * Default value is #ELM_MAP_ZOOM_MODE_MANUAL.
22951     *
22952     * Values <b> don't </b> work as bitmask, only one can be choosen.
22953     *
22954     * @note Valid sizes are 2^zoom, consequently the map may be smaller
22955     * than the scroller view.
22956     *
22957     * @see elm_map_zoom_mode_set()
22958     * @see elm_map_zoom_mode_get()
22959     *
22960     * @ingroup Map
22961     */
22962    typedef enum _Elm_Map_Zoom_Mode
22963      {
22964         ELM_MAP_ZOOM_MODE_MANUAL, /**< Zoom controlled manually by elm_map_zoom_set(). It's set by default. */
22965         ELM_MAP_ZOOM_MODE_AUTO_FIT, /**< Zoom until map fits inside the scroll frame with no pixels outside this area. */
22966         ELM_MAP_ZOOM_MODE_AUTO_FILL, /**< Zoom until map fills scroll, ensuring no pixels are left unfilled. */
22967         ELM_MAP_ZOOM_MODE_LAST
22968      } Elm_Map_Zoom_Mode;
22969
22970    /**
22971     * @enum _Elm_Map_Route_Sources
22972     * @typedef Elm_Map_Route_Sources
22973     *
22974     * Set route service to be used. By default used source is
22975     * #ELM_MAP_ROUTE_SOURCE_YOURS.
22976     *
22977     * @see elm_map_route_source_set()
22978     * @see elm_map_route_source_get()
22979     *
22980     * @ingroup Map
22981     */
22982    typedef enum _Elm_Map_Route_Sources
22983      {
22984         ELM_MAP_ROUTE_SOURCE_YOURS, /**< Routing service http://www.yournavigation.org/ . Set by default.*/
22985         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. */
22986         ELM_MAP_ROUTE_SOURCE_ORS, /**< Open Route Service: http://www.openrouteservice.org/ . It's not working with Map yet. */
22987         ELM_MAP_ROUTE_SOURCE_LAST
22988      } Elm_Map_Route_Sources;
22989
22990    typedef enum _Elm_Map_Name_Sources
22991      {
22992         ELM_MAP_NAME_SOURCE_NOMINATIM,
22993         ELM_MAP_NAME_SOURCE_LAST
22994      } Elm_Map_Name_Sources;
22995
22996    /**
22997     * @enum _Elm_Map_Route_Type
22998     * @typedef Elm_Map_Route_Type
22999     *
23000     * Set type of transport used on route.
23001     *
23002     * @see elm_map_route_add()
23003     *
23004     * @ingroup Map
23005     */
23006    typedef enum _Elm_Map_Route_Type
23007      {
23008         ELM_MAP_ROUTE_TYPE_MOTOCAR, /**< Route should consider an automobile will be used. */
23009         ELM_MAP_ROUTE_TYPE_BICYCLE, /**< Route should consider a bicycle will be used by the user. */
23010         ELM_MAP_ROUTE_TYPE_FOOT, /**< Route should consider user will be walking. */
23011         ELM_MAP_ROUTE_TYPE_LAST
23012      } Elm_Map_Route_Type;
23013
23014    /**
23015     * @enum _Elm_Map_Route_Method
23016     * @typedef Elm_Map_Route_Method
23017     *
23018     * Set the routing method, what should be priorized, time or distance.
23019     *
23020     * @see elm_map_route_add()
23021     *
23022     * @ingroup Map
23023     */
23024    typedef enum _Elm_Map_Route_Method
23025      {
23026         ELM_MAP_ROUTE_METHOD_FASTEST, /**< Route should priorize time. */
23027         ELM_MAP_ROUTE_METHOD_SHORTEST, /**< Route should priorize distance. */
23028         ELM_MAP_ROUTE_METHOD_LAST
23029      } Elm_Map_Route_Method;
23030
23031    typedef enum _Elm_Map_Name_Method
23032      {
23033         ELM_MAP_NAME_METHOD_SEARCH,
23034         ELM_MAP_NAME_METHOD_REVERSE,
23035         ELM_MAP_NAME_METHOD_LAST
23036      } Elm_Map_Name_Method;
23037
23038    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(). */
23039    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(). */
23040    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(). */
23041    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(). */
23042    typedef struct _Elm_Map_Name            Elm_Map_Name; /**< A handle for specific coordinates. */
23043    typedef struct _Elm_Map_Track           Elm_Map_Track;
23044
23045    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. */
23046    typedef void         (*ElmMapMarkerDelFunc)      (Evas_Object *obj, Elm_Map_Marker *marker, void *data, Evas_Object *o); /**< Function to delete bubble content for marker classes. */
23047    typedef Evas_Object *(*ElmMapMarkerIconGetFunc)  (Evas_Object *obj, Elm_Map_Marker *marker, void *data); /**< Icon fetching class function for marker classes. */
23048    typedef Evas_Object *(*ElmMapGroupIconGetFunc)   (Evas_Object *obj, void *data); /**< Icon fetching class function for markers group classes. */
23049
23050    typedef char        *(*ElmMapModuleSourceFunc) (void);
23051    typedef int          (*ElmMapModuleZoomMinFunc) (void);
23052    typedef int          (*ElmMapModuleZoomMaxFunc) (void);
23053    typedef char        *(*ElmMapModuleUrlFunc) (Evas_Object *obj, int x, int y, int zoom);
23054    typedef int          (*ElmMapModuleRouteSourceFunc) (void);
23055    typedef char        *(*ElmMapModuleRouteUrlFunc) (Evas_Object *obj, char *type_name, int method, double flon, double flat, double tlon, double tlat);
23056    typedef char        *(*ElmMapModuleNameUrlFunc) (Evas_Object *obj, int method, char *name, double lon, double lat);
23057    typedef Eina_Bool    (*ElmMapModuleGeoIntoCoordFunc) (const Evas_Object *obj, int zoom, double lon, double lat, int size, int *x, int *y);
23058    typedef Eina_Bool    (*ElmMapModuleCoordIntoGeoFunc) (const Evas_Object *obj, int zoom, int x, int y, int size, double *lon, double *lat);
23059
23060    /**
23061     * Add a new map widget to the given parent Elementary (container) object.
23062     *
23063     * @param parent The parent object.
23064     * @return a new map widget handle or @c NULL, on errors.
23065     *
23066     * This function inserts a new map widget on the canvas.
23067     *
23068     * @ingroup Map
23069     */
23070    EAPI Evas_Object          *elm_map_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23071
23072    /**
23073     * Set the zoom level of the map.
23074     *
23075     * @param obj The map object.
23076     * @param zoom The zoom level to set.
23077     *
23078     * This sets the zoom level.
23079     *
23080     * It will respect limits defined by elm_map_source_zoom_min_set() and
23081     * elm_map_source_zoom_max_set().
23082     *
23083     * By default these values are 0 (world map) and 18 (maximum zoom).
23084     *
23085     * This function should be used when zoom mode is set to
23086     * #ELM_MAP_ZOOM_MODE_MANUAL. This is the default mode, and can be set
23087     * with elm_map_zoom_mode_set().
23088     *
23089     * @see elm_map_zoom_mode_set().
23090     * @see elm_map_zoom_get().
23091     *
23092     * @ingroup Map
23093     */
23094    EAPI void                  elm_map_zoom_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
23095
23096    /**
23097     * Get the zoom level of the map.
23098     *
23099     * @param obj The map object.
23100     * @return The current zoom level.
23101     *
23102     * This returns the current zoom level of the map object.
23103     *
23104     * Note that if you set the fill mode to other than #ELM_MAP_ZOOM_MODE_MANUAL
23105     * (which is the default), the zoom level may be changed at any time by the
23106     * map object itself to account for map size and map viewport size.
23107     *
23108     * @see elm_map_zoom_set() for details.
23109     *
23110     * @ingroup Map
23111     */
23112    EAPI int                   elm_map_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23113
23114    /**
23115     * Set the zoom mode used by the map object.
23116     *
23117     * @param obj The map object.
23118     * @param mode The zoom mode of the map, being it one of
23119     * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
23120     * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
23121     *
23122     * This sets the zoom mode to manual or one of the automatic levels.
23123     * Manual (#ELM_MAP_ZOOM_MODE_MANUAL) means that zoom is set manually by
23124     * elm_map_zoom_set() and will stay at that level until changed by code
23125     * or until zoom mode is changed. This is the default mode.
23126     *
23127     * The Automatic modes will allow the map object to automatically
23128     * adjust zoom mode based on properties. #ELM_MAP_ZOOM_MODE_AUTO_FIT will
23129     * adjust zoom so the map fits inside the scroll frame with no pixels
23130     * outside this area. #ELM_MAP_ZOOM_MODE_AUTO_FILL will be similar but
23131     * ensure no pixels within the frame are left unfilled. Do not forget that
23132     * the valid sizes are 2^zoom, consequently the map may be smaller than
23133     * the scroller view.
23134     *
23135     * @see elm_map_zoom_set()
23136     *
23137     * @ingroup Map
23138     */
23139    EAPI void                  elm_map_zoom_mode_set(Evas_Object *obj, Elm_Map_Zoom_Mode mode) EINA_ARG_NONNULL(1);
23140
23141    /**
23142     * Get the zoom mode used by the map object.
23143     *
23144     * @param obj The map object.
23145     * @return The zoom mode of the map, being it one of
23146     * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
23147     * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
23148     *
23149     * This function returns the current zoom mode used by the map object.
23150     *
23151     * @see elm_map_zoom_mode_set() for more details.
23152     *
23153     * @ingroup Map
23154     */
23155    EAPI Elm_Map_Zoom_Mode     elm_map_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23156
23157    /**
23158     * Get the current coordinates of the map.
23159     *
23160     * @param obj The map object.
23161     * @param lon Pointer where to store longitude.
23162     * @param lat Pointer where to store latitude.
23163     *
23164     * This gets the current center coordinates of the map object. It can be
23165     * set by elm_map_geo_region_bring_in() and elm_map_geo_region_show().
23166     *
23167     * @see elm_map_geo_region_bring_in()
23168     * @see elm_map_geo_region_show()
23169     *
23170     * @ingroup Map
23171     */
23172    EAPI void                  elm_map_geo_region_get(const Evas_Object *obj, double *lon, double *lat) EINA_ARG_NONNULL(1);
23173
23174    /**
23175     * Animatedly bring in given coordinates to the center of the map.
23176     *
23177     * @param obj The map object.
23178     * @param lon Longitude to center at.
23179     * @param lat Latitude to center at.
23180     *
23181     * This causes map to jump to the given @p lat and @p lon coordinates
23182     * and show it (by scrolling) in the center of the viewport, if it is not
23183     * already centered. This will use animation to do so and take a period
23184     * of time to complete.
23185     *
23186     * @see elm_map_geo_region_show() for a function to avoid animation.
23187     * @see elm_map_geo_region_get()
23188     *
23189     * @ingroup Map
23190     */
23191    EAPI void                  elm_map_geo_region_bring_in(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
23192
23193    /**
23194     * Show the given coordinates at the center of the map, @b immediately.
23195     *
23196     * @param obj The map object.
23197     * @param lon Longitude to center at.
23198     * @param lat Latitude to center at.
23199     *
23200     * This causes map to @b redraw its viewport's contents to the
23201     * region contining the given @p lat and @p lon, that will be moved to the
23202     * center of the map.
23203     *
23204     * @see elm_map_geo_region_bring_in() for a function to move with animation.
23205     * @see elm_map_geo_region_get()
23206     *
23207     * @ingroup Map
23208     */
23209    EAPI void                  elm_map_geo_region_show(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
23210
23211    /**
23212     * Pause or unpause the map.
23213     *
23214     * @param obj The map object.
23215     * @param paused Use @c EINA_TRUE to pause the map @p obj or @c EINA_FALSE
23216     * to unpause it.
23217     *
23218     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
23219     * for map.
23220     *
23221     * The default is off.
23222     *
23223     * This will stop zooming using animation, changing zoom levels will
23224     * change instantly. This will stop any existing animations that are running.
23225     *
23226     * @see elm_map_paused_get()
23227     *
23228     * @ingroup Map
23229     */
23230    EAPI void                  elm_map_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
23231
23232    /**
23233     * Get a value whether map is paused or not.
23234     *
23235     * @param obj The map object.
23236     * @return @c EINA_TRUE means map is pause. @c EINA_FALSE indicates
23237     * it is not. If @p obj is @c NULL, @c EINA_FALSE is returned.
23238     *
23239     * This gets the current paused state for the map object.
23240     *
23241     * @see elm_map_paused_set() for details.
23242     *
23243     * @ingroup Map
23244     */
23245    EAPI Eina_Bool             elm_map_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23246
23247    /**
23248     * Set to show markers during zoom level changes or not.
23249     *
23250     * @param obj The map object.
23251     * @param paused Use @c EINA_TRUE to @b not show markers or @c EINA_FALSE
23252     * to show them.
23253     *
23254     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
23255     * for map.
23256     *
23257     * The default is off.
23258     *
23259     * This will stop zooming using animation, changing zoom levels will
23260     * change instantly. This will stop any existing animations that are running.
23261     *
23262     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
23263     * for the markers.
23264     *
23265     * The default  is off.
23266     *
23267     * Enabling it will force the map to stop displaying the markers during
23268     * zoom level changes. Set to on if you have a large number of markers.
23269     *
23270     * @see elm_map_paused_markers_get()
23271     *
23272     * @ingroup Map
23273     */
23274    EAPI void                  elm_map_paused_markers_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
23275
23276    /**
23277     * Get a value whether markers will be displayed on zoom level changes or not
23278     *
23279     * @param obj The map object.
23280     * @return @c EINA_TRUE means map @b won't display markers or @c EINA_FALSE
23281     * indicates it will. If @p obj is @c NULL, @c EINA_FALSE is returned.
23282     *
23283     * This gets the current markers paused state for the map object.
23284     *
23285     * @see elm_map_paused_markers_set() for details.
23286     *
23287     * @ingroup Map
23288     */
23289    EAPI Eina_Bool             elm_map_paused_markers_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23290
23291    /**
23292     * Get the information of downloading status.
23293     *
23294     * @param obj The map object.
23295     * @param try_num Pointer where to store number of tiles being downloaded.
23296     * @param finish_num Pointer where to store number of tiles successfully
23297     * downloaded.
23298     *
23299     * This gets the current downloading status for the map object, the number
23300     * of tiles being downloaded and the number of tiles already downloaded.
23301     *
23302     * @ingroup Map
23303     */
23304    EAPI void                  elm_map_utils_downloading_status_get(const Evas_Object *obj, int *try_num, int *finish_num) EINA_ARG_NONNULL(1, 2, 3);
23305
23306    /**
23307     * Convert a pixel coordinate (x,y) into a geographic coordinate
23308     * (longitude, latitude).
23309     *
23310     * @param obj The map object.
23311     * @param x the coordinate.
23312     * @param y the coordinate.
23313     * @param size the size in pixels of the map.
23314     * The map is a square and generally his size is : pow(2.0, zoom)*256.
23315     * @param lon Pointer where to store the longitude that correspond to x.
23316     * @param lat Pointer where to store the latitude that correspond to y.
23317     *
23318     * @note Origin pixel point is the top left corner of the viewport.
23319     * Map zoom and size are taken on account.
23320     *
23321     * @see elm_map_utils_convert_geo_into_coord() if you need the inverse.
23322     *
23323     * @ingroup Map
23324     */
23325    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);
23326
23327    /**
23328     * Convert a geographic coordinate (longitude, latitude) into a pixel
23329     * coordinate (x, y).
23330     *
23331     * @param obj The map object.
23332     * @param lon the longitude.
23333     * @param lat the latitude.
23334     * @param size the size in pixels of the map. The map is a square
23335     * and generally his size is : pow(2.0, zoom)*256.
23336     * @param x Pointer where to store the horizontal pixel coordinate that
23337     * correspond to the longitude.
23338     * @param y Pointer where to store the vertical pixel coordinate that
23339     * correspond to the latitude.
23340     *
23341     * @note Origin pixel point is the top left corner of the viewport.
23342     * Map zoom and size are taken on account.
23343     *
23344     * @see elm_map_utils_convert_coord_into_geo() if you need the inverse.
23345     *
23346     * @ingroup Map
23347     */
23348    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);
23349
23350    /**
23351     * Convert a geographic coordinate (longitude, latitude) into a name
23352     * (address).
23353     *
23354     * @param obj The map object.
23355     * @param lon the longitude.
23356     * @param lat the latitude.
23357     * @return name A #Elm_Map_Name handle for this coordinate.
23358     *
23359     * To get the string for this address, elm_map_name_address_get()
23360     * should be used.
23361     *
23362     * @see elm_map_utils_convert_name_into_coord() if you need the inverse.
23363     *
23364     * @ingroup Map
23365     */
23366    EAPI Elm_Map_Name         *elm_map_utils_convert_coord_into_name(const Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
23367
23368    /**
23369     * Convert a name (address) into a geographic coordinate
23370     * (longitude, latitude).
23371     *
23372     * @param obj The map object.
23373     * @param name The address.
23374     * @return name A #Elm_Map_Name handle for this address.
23375     *
23376     * To get the longitude and latitude, elm_map_name_region_get()
23377     * should be used.
23378     *
23379     * @see elm_map_utils_convert_coord_into_name() if you need the inverse.
23380     *
23381     * @ingroup Map
23382     */
23383    EAPI Elm_Map_Name         *elm_map_utils_convert_name_into_coord(const Evas_Object *obj, char *address) EINA_ARG_NONNULL(1, 2);
23384
23385    /**
23386     * Convert a pixel coordinate into a rotated pixel coordinate.
23387     *
23388     * @param obj The map object.
23389     * @param x horizontal coordinate of the point to rotate.
23390     * @param y vertical coordinate of the point to rotate.
23391     * @param cx rotation's center horizontal position.
23392     * @param cy rotation's center vertical position.
23393     * @param degree amount of degrees from 0.0 to 360.0 to rotate arount Z axis.
23394     * @param xx Pointer where to store rotated x.
23395     * @param yy Pointer where to store rotated y.
23396     *
23397     * @ingroup Map
23398     */
23399    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);
23400
23401    /**
23402     * Add a new marker to the map object.
23403     *
23404     * @param obj The map object.
23405     * @param lon The longitude of the marker.
23406     * @param lat The latitude of the marker.
23407     * @param clas The class, to use when marker @b isn't grouped to others.
23408     * @param clas_group The class group, to use when marker is grouped to others
23409     * @param data The data passed to the callbacks.
23410     *
23411     * @return The created marker or @c NULL upon failure.
23412     *
23413     * A marker will be created and shown in a specific point of the map, defined
23414     * by @p lon and @p lat.
23415     *
23416     * It will be displayed using style defined by @p class when this marker
23417     * is displayed alone (not grouped). A new class can be created with
23418     * elm_map_marker_class_new().
23419     *
23420     * If the marker is grouped to other markers, it will be displayed with
23421     * style defined by @p class_group. Markers with the same group are grouped
23422     * if they are close. A new group class can be created with
23423     * elm_map_marker_group_class_new().
23424     *
23425     * Markers created with this method can be deleted with
23426     * elm_map_marker_remove().
23427     *
23428     * A marker can have associated content to be displayed by a bubble,
23429     * when a user click over it, as well as an icon. These objects will
23430     * be fetch using class' callback functions.
23431     *
23432     * @see elm_map_marker_class_new()
23433     * @see elm_map_marker_group_class_new()
23434     * @see elm_map_marker_remove()
23435     *
23436     * @ingroup Map
23437     */
23438    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);
23439
23440    /**
23441     * Set the maximum numbers of markers' content to be displayed in a group.
23442     *
23443     * @param obj The map object.
23444     * @param max The maximum numbers of items displayed in a bubble.
23445     *
23446     * A bubble will be displayed when the user clicks over the group,
23447     * and will place the content of markers that belong to this group
23448     * inside it.
23449     *
23450     * A group can have a long list of markers, consequently the creation
23451     * of the content of the bubble can be very slow.
23452     *
23453     * In order to avoid this, a maximum number of items is displayed
23454     * in a bubble.
23455     *
23456     * By default this number is 30.
23457     *
23458     * Marker with the same group class are grouped if they are close.
23459     *
23460     * @see elm_map_marker_add()
23461     *
23462     * @ingroup Map
23463     */
23464    EAPI void                  elm_map_max_marker_per_group_set(Evas_Object *obj, int max) EINA_ARG_NONNULL(1);
23465
23466    /**
23467     * Remove a marker from the map.
23468     *
23469     * @param marker The marker to remove.
23470     *
23471     * @see elm_map_marker_add()
23472     *
23473     * @ingroup Map
23474     */
23475    EAPI void                  elm_map_marker_remove(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
23476
23477    /**
23478     * Get the current coordinates of the marker.
23479     *
23480     * @param marker marker.
23481     * @param lat Pointer where to store the marker's latitude.
23482     * @param lon Pointer where to store the marker's longitude.
23483     *
23484     * These values are set when adding markers, with function
23485     * elm_map_marker_add().
23486     *
23487     * @see elm_map_marker_add()
23488     *
23489     * @ingroup Map
23490     */
23491    EAPI void                  elm_map_marker_region_get(const Elm_Map_Marker *marker, double *lon, double *lat) EINA_ARG_NONNULL(1);
23492
23493    /**
23494     * Animatedly bring in given marker to the center of the map.
23495     *
23496     * @param marker The marker to center at.
23497     *
23498     * This causes map to jump to the given @p marker's coordinates
23499     * and show it (by scrolling) in the center of the viewport, if it is not
23500     * already centered. This will use animation to do so and take a period
23501     * of time to complete.
23502     *
23503     * @see elm_map_marker_show() for a function to avoid animation.
23504     * @see elm_map_marker_region_get()
23505     *
23506     * @ingroup Map
23507     */
23508    EAPI void                  elm_map_marker_bring_in(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
23509
23510    /**
23511     * Show the given marker at the center of the map, @b immediately.
23512     *
23513     * @param marker The marker to center at.
23514     *
23515     * This causes map to @b redraw its viewport's contents to the
23516     * region contining the given @p marker's coordinates, that will be
23517     * moved to the center of the map.
23518     *
23519     * @see elm_map_marker_bring_in() for a function to move with animation.
23520     * @see elm_map_markers_list_show() if more than one marker need to be
23521     * displayed.
23522     * @see elm_map_marker_region_get()
23523     *
23524     * @ingroup Map
23525     */
23526    EAPI void                  elm_map_marker_show(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
23527
23528    /**
23529     * Move and zoom the map to display a list of markers.
23530     *
23531     * @param markers A list of #Elm_Map_Marker handles.
23532     *
23533     * The map will be centered on the center point of the markers in the list.
23534     * Then the map will be zoomed in order to fit the markers using the maximum
23535     * zoom which allows display of all the markers.
23536     *
23537     * @warning All the markers should belong to the same map object.
23538     *
23539     * @see elm_map_marker_show() to show a single marker.
23540     * @see elm_map_marker_bring_in()
23541     *
23542     * @ingroup Map
23543     */
23544    EAPI void                  elm_map_markers_list_show(Eina_List *markers) EINA_ARG_NONNULL(1);
23545
23546    /**
23547     * Get the Evas object returned by the ElmMapMarkerGetFunc callback
23548     *
23549     * @param marker The marker wich content should be returned.
23550     * @return Return the evas object if it exists, else @c NULL.
23551     *
23552     * To set callback function #ElmMapMarkerGetFunc for the marker class,
23553     * elm_map_marker_class_get_cb_set() should be used.
23554     *
23555     * This content is what will be inside the bubble that will be displayed
23556     * when an user clicks over the marker.
23557     *
23558     * This returns the actual Evas object used to be placed inside
23559     * the bubble. This may be @c NULL, as it may
23560     * not have been created or may have been deleted, at any time, by
23561     * the map. <b>Do not modify this object</b> (move, resize,
23562     * show, hide, etc.), as the map is controlling it. This
23563     * function is for querying, emitting custom signals or hooking
23564     * lower level callbacks for events on that object. Do not delete
23565     * this object under any circumstances.
23566     *
23567     * @ingroup Map
23568     */
23569    EAPI Evas_Object          *elm_map_marker_object_get(const Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
23570
23571    /**
23572     * Update the marker
23573     *
23574     * @param marker The marker to be updated.
23575     *
23576     * If a content is set to this marker, it will call function to delete it,
23577     * #ElmMapMarkerDelFunc, and then will fetch the content again with
23578     * #ElmMapMarkerGetFunc.
23579     *
23580     * These functions are set for the marker class with
23581     * elm_map_marker_class_get_cb_set() and elm_map_marker_class_del_cb_set().
23582     *
23583     * @ingroup Map
23584     */
23585    EAPI void                  elm_map_marker_update(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
23586
23587    /**
23588     * Close all the bubbles opened by the user.
23589     *
23590     * @param obj The map object.
23591     *
23592     * A bubble is displayed with a content fetched with #ElmMapMarkerGetFunc
23593     * when the user clicks on a marker.
23594     *
23595     * This functions is set for the marker class with
23596     * elm_map_marker_class_get_cb_set().
23597     *
23598     * @ingroup Map
23599     */
23600    EAPI void                  elm_map_bubbles_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
23601
23602    /**
23603     * Create a new group class.
23604     *
23605     * @param obj The map object.
23606     * @return Returns the new group class.
23607     *
23608     * Each marker must be associated to a group class. Markers in the same
23609     * group are grouped if they are close.
23610     *
23611     * The group class defines the style of the marker when a marker is grouped
23612     * to others markers. When it is alone, another class will be used.
23613     *
23614     * A group class will need to be provided when creating a marker with
23615     * elm_map_marker_add().
23616     *
23617     * Some properties and functions can be set by class, as:
23618     * - style, with elm_map_group_class_style_set()
23619     * - data - to be associated to the group class. It can be set using
23620     *   elm_map_group_class_data_set().
23621     * - min zoom to display markers, set with
23622     *   elm_map_group_class_zoom_displayed_set().
23623     * - max zoom to group markers, set using
23624     *   elm_map_group_class_zoom_grouped_set().
23625     * - visibility - set if markers will be visible or not, set with
23626     *   elm_map_group_class_hide_set().
23627     * - #ElmMapGroupIconGetFunc - used to fetch icon for markers group classes.
23628     *   It can be set using elm_map_group_class_icon_cb_set().
23629     *
23630     * @see elm_map_marker_add()
23631     * @see elm_map_group_class_style_set()
23632     * @see elm_map_group_class_data_set()
23633     * @see elm_map_group_class_zoom_displayed_set()
23634     * @see elm_map_group_class_zoom_grouped_set()
23635     * @see elm_map_group_class_hide_set()
23636     * @see elm_map_group_class_icon_cb_set()
23637     *
23638     * @ingroup Map
23639     */
23640    EAPI Elm_Map_Group_Class  *elm_map_group_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
23641
23642    /**
23643     * Set the marker's style of a group class.
23644     *
23645     * @param clas The group class.
23646     * @param style The style to be used by markers.
23647     *
23648     * Each marker must be associated to a group class, and will use the style
23649     * defined by such class when grouped to other markers.
23650     *
23651     * The following styles are provided by default theme:
23652     * @li @c radio - blue circle
23653     * @li @c radio2 - green circle
23654     * @li @c empty
23655     *
23656     * @see elm_map_group_class_new() for more details.
23657     * @see elm_map_marker_add()
23658     *
23659     * @ingroup Map
23660     */
23661    EAPI void                  elm_map_group_class_style_set(Elm_Map_Group_Class *clas, const char *style) EINA_ARG_NONNULL(1);
23662
23663    /**
23664     * Set the icon callback function of a group class.
23665     *
23666     * @param clas The group class.
23667     * @param icon_get The callback function that will return the icon.
23668     *
23669     * Each marker must be associated to a group class, and it can display a
23670     * custom icon. The function @p icon_get must return this icon.
23671     *
23672     * @see elm_map_group_class_new() for more details.
23673     * @see elm_map_marker_add()
23674     *
23675     * @ingroup Map
23676     */
23677    EAPI void                  elm_map_group_class_icon_cb_set(Elm_Map_Group_Class *clas, ElmMapGroupIconGetFunc icon_get) EINA_ARG_NONNULL(1);
23678
23679    /**
23680     * Set the data associated to the group class.
23681     *
23682     * @param clas The group class.
23683     * @param data The new user data.
23684     *
23685     * This data will be passed for callback functions, like icon get callback,
23686     * that can be set with elm_map_group_class_icon_cb_set().
23687     *
23688     * If a data was previously set, the object will lose the pointer for it,
23689     * so if needs to be freed, you must do it yourself.
23690     *
23691     * @see elm_map_group_class_new() for more details.
23692     * @see elm_map_group_class_icon_cb_set()
23693     * @see elm_map_marker_add()
23694     *
23695     * @ingroup Map
23696     */
23697    EAPI void                  elm_map_group_class_data_set(Elm_Map_Group_Class *clas, void *data) EINA_ARG_NONNULL(1);
23698
23699    /**
23700     * Set the minimum zoom from where the markers are displayed.
23701     *
23702     * @param clas The group class.
23703     * @param zoom The minimum zoom.
23704     *
23705     * Markers only will be displayed when the map is displayed at @p zoom
23706     * or bigger.
23707     *
23708     * @see elm_map_group_class_new() for more details.
23709     * @see elm_map_marker_add()
23710     *
23711     * @ingroup Map
23712     */
23713    EAPI void                  elm_map_group_class_zoom_displayed_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
23714
23715    /**
23716     * Set the zoom from where the markers are no more grouped.
23717     *
23718     * @param clas The group class.
23719     * @param zoom The maximum zoom.
23720     *
23721     * Markers only will be grouped when the map is displayed at
23722     * less than @p zoom.
23723     *
23724     * @see elm_map_group_class_new() for more details.
23725     * @see elm_map_marker_add()
23726     *
23727     * @ingroup Map
23728     */
23729    EAPI void                  elm_map_group_class_zoom_grouped_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
23730
23731    /**
23732     * Set if the markers associated to the group class @clas are hidden or not.
23733     *
23734     * @param clas The group class.
23735     * @param hide Use @c EINA_TRUE to hide markers or @c EINA_FALSE
23736     * to show them.
23737     *
23738     * If @p hide is @c EINA_TRUE the markers will be hidden, but default
23739     * is to show them.
23740     *
23741     * @ingroup Map
23742     */
23743    EAPI void                  elm_map_group_class_hide_set(Evas_Object *obj, Elm_Map_Group_Class *clas, Eina_Bool hide) EINA_ARG_NONNULL(1, 2);
23744
23745    /**
23746     * Create a new marker class.
23747     *
23748     * @param obj The map object.
23749     * @return Returns the new group class.
23750     *
23751     * Each marker must be associated to a class.
23752     *
23753     * The marker class defines the style of the marker when a marker is
23754     * displayed alone, i.e., not grouped to to others markers. When grouped
23755     * it will use group class style.
23756     *
23757     * A marker class will need to be provided when creating a marker with
23758     * elm_map_marker_add().
23759     *
23760     * Some properties and functions can be set by class, as:
23761     * - style, with elm_map_marker_class_style_set()
23762     * - #ElmMapMarkerIconGetFunc - used to fetch icon for markers classes.
23763     *   It can be set using elm_map_marker_class_icon_cb_set().
23764     * - #ElmMapMarkerGetFunc - used to fetch bubble content for marker classes.
23765     *   Set using elm_map_marker_class_get_cb_set().
23766     * - #ElmMapMarkerDelFunc - used to delete bubble content for marker classes.
23767     *   Set using elm_map_marker_class_del_cb_set().
23768     *
23769     * @see elm_map_marker_add()
23770     * @see elm_map_marker_class_style_set()
23771     * @see elm_map_marker_class_icon_cb_set()
23772     * @see elm_map_marker_class_get_cb_set()
23773     * @see elm_map_marker_class_del_cb_set()
23774     *
23775     * @ingroup Map
23776     */
23777    EAPI Elm_Map_Marker_Class *elm_map_marker_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
23778
23779    /**
23780     * Set the marker's style of a marker class.
23781     *
23782     * @param clas The marker class.
23783     * @param style The style to be used by markers.
23784     *
23785     * Each marker must be associated to a marker class, and will use the style
23786     * defined by such class when alone, i.e., @b not grouped to other markers.
23787     *
23788     * The following styles are provided by default theme:
23789     * @li @c radio
23790     * @li @c radio2
23791     * @li @c empty
23792     *
23793     * @see elm_map_marker_class_new() for more details.
23794     * @see elm_map_marker_add()
23795     *
23796     * @ingroup Map
23797     */
23798    EAPI void                  elm_map_marker_class_style_set(Elm_Map_Marker_Class *clas, const char *style) EINA_ARG_NONNULL(1);
23799
23800    /**
23801     * Set the icon callback function of a marker class.
23802     *
23803     * @param clas The marker class.
23804     * @param icon_get The callback function that will return the icon.
23805     *
23806     * Each marker must be associated to a marker class, and it can display a
23807     * custom icon. The function @p icon_get must return this icon.
23808     *
23809     * @see elm_map_marker_class_new() for more details.
23810     * @see elm_map_marker_add()
23811     *
23812     * @ingroup Map
23813     */
23814    EAPI void                  elm_map_marker_class_icon_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerIconGetFunc icon_get) EINA_ARG_NONNULL(1);
23815
23816    /**
23817     * Set the bubble content callback function of a marker class.
23818     *
23819     * @param clas The marker class.
23820     * @param get The callback function that will return the content.
23821     *
23822     * Each marker must be associated to a marker class, and it can display a
23823     * a content on a bubble that opens when the user click over the marker.
23824     * The function @p get must return this content object.
23825     *
23826     * If this content will need to be deleted, elm_map_marker_class_del_cb_set()
23827     * can be used.
23828     *
23829     * @see elm_map_marker_class_new() for more details.
23830     * @see elm_map_marker_class_del_cb_set()
23831     * @see elm_map_marker_add()
23832     *
23833     * @ingroup Map
23834     */
23835    EAPI void                  elm_map_marker_class_get_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerGetFunc get) EINA_ARG_NONNULL(1);
23836
23837    /**
23838     * Set the callback function used to delete bubble content of a marker class.
23839     *
23840     * @param clas The marker class.
23841     * @param del The callback function that will delete the content.
23842     *
23843     * Each marker must be associated to a marker class, and it can display a
23844     * a content on a bubble that opens when the user click over the marker.
23845     * The function to return such content can be set with
23846     * elm_map_marker_class_get_cb_set().
23847     *
23848     * If this content must be freed, a callback function need to be
23849     * set for that task with this function.
23850     *
23851     * If this callback is defined it will have to delete (or not) the
23852     * object inside, but if the callback is not defined the object will be
23853     * destroyed with evas_object_del().
23854     *
23855     * @see elm_map_marker_class_new() for more details.
23856     * @see elm_map_marker_class_get_cb_set()
23857     * @see elm_map_marker_add()
23858     *
23859     * @ingroup Map
23860     */
23861    EAPI void                  elm_map_marker_class_del_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerDelFunc del) EINA_ARG_NONNULL(1);
23862
23863    /**
23864     * Get the list of available sources.
23865     *
23866     * @param obj The map object.
23867     * @return The source names list.
23868     *
23869     * It will provide a list with all available sources, that can be set as
23870     * current source with elm_map_source_name_set(), or get with
23871     * elm_map_source_name_get().
23872     *
23873     * Available sources:
23874     * @li "Mapnik"
23875     * @li "Osmarender"
23876     * @li "CycleMap"
23877     * @li "Maplint"
23878     *
23879     * @see elm_map_source_name_set() for more details.
23880     * @see elm_map_source_name_get()
23881     *
23882     * @ingroup Map
23883     */
23884    EAPI const char          **elm_map_source_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23885
23886    /**
23887     * Set the source of the map.
23888     *
23889     * @param obj The map object.
23890     * @param source The source to be used.
23891     *
23892     * Map widget retrieves images that composes the map from a web service.
23893     * This web service can be set with this method.
23894     *
23895     * A different service can return a different maps with different
23896     * information and it can use different zoom values.
23897     *
23898     * The @p source_name need to match one of the names provided by
23899     * elm_map_source_names_get().
23900     *
23901     * The current source can be get using elm_map_source_name_get().
23902     *
23903     * @see elm_map_source_names_get()
23904     * @see elm_map_source_name_get()
23905     *
23906     *
23907     * @ingroup Map
23908     */
23909    EAPI void                  elm_map_source_name_set(Evas_Object *obj, const char *source_name) EINA_ARG_NONNULL(1);
23910
23911    /**
23912     * Get the name of currently used source.
23913     *
23914     * @param obj The map object.
23915     * @return Returns the name of the source in use.
23916     *
23917     * @see elm_map_source_name_set() for more details.
23918     *
23919     * @ingroup Map
23920     */
23921    EAPI const char           *elm_map_source_name_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23922
23923    /**
23924     * Set the source of the route service to be used by the map.
23925     *
23926     * @param obj The map object.
23927     * @param source The route service to be used, being it one of
23928     * #ELM_MAP_ROUTE_SOURCE_YOURS (default), #ELM_MAP_ROUTE_SOURCE_MONAV,
23929     * and #ELM_MAP_ROUTE_SOURCE_ORS.
23930     *
23931     * Each one has its own algorithm, so the route retrieved may
23932     * differ depending on the source route. Now, only the default is working.
23933     *
23934     * #ELM_MAP_ROUTE_SOURCE_YOURS is the routing service provided at
23935     * http://www.yournavigation.org/.
23936     *
23937     * #ELM_MAP_ROUTE_SOURCE_MONAV, offers exact routing without heuristic
23938     * assumptions. Its routing core is based on Contraction Hierarchies.
23939     *
23940     * #ELM_MAP_ROUTE_SOURCE_ORS, is provided at http://www.openrouteservice.org/
23941     *
23942     * @see elm_map_route_source_get().
23943     *
23944     * @ingroup Map
23945     */
23946    EAPI void                  elm_map_route_source_set(Evas_Object *obj, Elm_Map_Route_Sources source) EINA_ARG_NONNULL(1);
23947
23948    /**
23949     * Get the current route source.
23950     *
23951     * @param obj The map object.
23952     * @return The source of the route service used by the map.
23953     *
23954     * @see elm_map_route_source_set() for details.
23955     *
23956     * @ingroup Map
23957     */
23958    EAPI Elm_Map_Route_Sources elm_map_route_source_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23959
23960    /**
23961     * Set the minimum zoom of the source.
23962     *
23963     * @param obj The map object.
23964     * @param zoom New minimum zoom value to be used.
23965     *
23966     * By default, it's 0.
23967     *
23968     * @ingroup Map
23969     */
23970    EAPI void                  elm_map_source_zoom_min_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
23971
23972    /**
23973     * Get the minimum zoom of the source.
23974     *
23975     * @param obj The map object.
23976     * @return Returns the minimum zoom of the source.
23977     *
23978     * @see elm_map_source_zoom_min_set() for details.
23979     *
23980     * @ingroup Map
23981     */
23982    EAPI int                   elm_map_source_zoom_min_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23983
23984    /**
23985     * Set the maximum zoom of the source.
23986     *
23987     * @param obj The map object.
23988     * @param zoom New maximum zoom value to be used.
23989     *
23990     * By default, it's 18.
23991     *
23992     * @ingroup Map
23993     */
23994    EAPI void                  elm_map_source_zoom_max_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
23995
23996    /**
23997     * Get the maximum zoom of the source.
23998     *
23999     * @param obj The map object.
24000     * @return Returns the maximum zoom of the source.
24001     *
24002     * @see elm_map_source_zoom_min_set() for details.
24003     *
24004     * @ingroup Map
24005     */
24006    EAPI int                   elm_map_source_zoom_max_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24007
24008    /**
24009     * Set the user agent used by the map object to access routing services.
24010     *
24011     * @param obj The map object.
24012     * @param user_agent The user agent to be used by the map.
24013     *
24014     * User agent is a client application implementing a network protocol used
24015     * in communications within a clientā€“server distributed computing system
24016     *
24017     * The @p user_agent identification string will transmitted in a header
24018     * field @c User-Agent.
24019     *
24020     * @see elm_map_user_agent_get()
24021     *
24022     * @ingroup Map
24023     */
24024    EAPI void                  elm_map_user_agent_set(Evas_Object *obj, const char *user_agent) EINA_ARG_NONNULL(1, 2);
24025
24026    /**
24027     * Get the user agent used by the map object.
24028     *
24029     * @param obj The map object.
24030     * @return The user agent identification string used by the map.
24031     *
24032     * @see elm_map_user_agent_set() for details.
24033     *
24034     * @ingroup Map
24035     */
24036    EAPI const char           *elm_map_user_agent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24037
24038    /**
24039     * Add a new route to the map object.
24040     *
24041     * @param obj The map object.
24042     * @param type The type of transport to be considered when tracing a route.
24043     * @param method The routing method, what should be priorized.
24044     * @param flon The start longitude.
24045     * @param flat The start latitude.
24046     * @param tlon The destination longitude.
24047     * @param tlat The destination latitude.
24048     *
24049     * @return The created route or @c NULL upon failure.
24050     *
24051     * A route will be traced by point on coordinates (@p flat, @p flon)
24052     * to point on coordinates (@p tlat, @p tlon), using the route service
24053     * set with elm_map_route_source_set().
24054     *
24055     * It will take @p type on consideration to define the route,
24056     * depending if the user will be walking or driving, the route may vary.
24057     * One of #ELM_MAP_ROUTE_TYPE_MOTOCAR, #ELM_MAP_ROUTE_TYPE_BICYCLE, or
24058     * #ELM_MAP_ROUTE_TYPE_FOOT need to be used.
24059     *
24060     * Another parameter is what the route should priorize, the minor distance
24061     * or the less time to be spend on the route. So @p method should be one
24062     * of #ELM_MAP_ROUTE_METHOD_SHORTEST or #ELM_MAP_ROUTE_METHOD_FASTEST.
24063     *
24064     * Routes created with this method can be deleted with
24065     * elm_map_route_remove(), colored with elm_map_route_color_set(),
24066     * and distance can be get with elm_map_route_distance_get().
24067     *
24068     * @see elm_map_route_remove()
24069     * @see elm_map_route_color_set()
24070     * @see elm_map_route_distance_get()
24071     * @see elm_map_route_source_set()
24072     *
24073     * @ingroup Map
24074     */
24075    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);
24076
24077    /**
24078     * Remove a route from the map.
24079     *
24080     * @param route The route to remove.
24081     *
24082     * @see elm_map_route_add()
24083     *
24084     * @ingroup Map
24085     */
24086    EAPI void                  elm_map_route_remove(Elm_Map_Route *route) EINA_ARG_NONNULL(1);
24087
24088    /**
24089     * Set the route color.
24090     *
24091     * @param route The route object.
24092     * @param r Red channel value, from 0 to 255.
24093     * @param g Green channel value, from 0 to 255.
24094     * @param b Blue channel value, from 0 to 255.
24095     * @param a Alpha channel value, from 0 to 255.
24096     *
24097     * It uses an additive color model, so each color channel represents
24098     * how much of each primary colors must to be used. 0 represents
24099     * ausence of this color, so if all of the three are set to 0,
24100     * the color will be black.
24101     *
24102     * These component values should be integers in the range 0 to 255,
24103     * (single 8-bit byte).
24104     *
24105     * This sets the color used for the route. By default, it is set to
24106     * solid red (r = 255, g = 0, b = 0, a = 255).
24107     *
24108     * For alpha channel, 0 represents completely transparent, and 255, opaque.
24109     *
24110     * @see elm_map_route_color_get()
24111     *
24112     * @ingroup Map
24113     */
24114    EAPI void                  elm_map_route_color_set(Elm_Map_Route *route, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
24115
24116    /**
24117     * Get the route color.
24118     *
24119     * @param route The route object.
24120     * @param r Pointer where to store the red channel value.
24121     * @param g Pointer where to store the green channel value.
24122     * @param b Pointer where to store the blue channel value.
24123     * @param a Pointer where to store the alpha channel value.
24124     *
24125     * @see elm_map_route_color_set() for details.
24126     *
24127     * @ingroup Map
24128     */
24129    EAPI void                  elm_map_route_color_get(const Elm_Map_Route *route, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
24130
24131    /**
24132     * Get the route distance in kilometers.
24133     *
24134     * @param route The route object.
24135     * @return The distance of route (unit : km).
24136     *
24137     * @ingroup Map
24138     */
24139    EAPI double                elm_map_route_distance_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
24140
24141    /**
24142     * Get the information of route nodes.
24143     *
24144     * @param route The route object.
24145     * @return Returns a string with the nodes of route.
24146     *
24147     * @ingroup Map
24148     */
24149    EAPI const char           *elm_map_route_node_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
24150
24151    /**
24152     * Get the information of route waypoint.
24153     *
24154     * @param route the route object.
24155     * @return Returns a string with information about waypoint of route.
24156     *
24157     * @ingroup Map
24158     */
24159    EAPI const char           *elm_map_route_waypoint_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
24160
24161    /**
24162     * Get the address of the name.
24163     *
24164     * @param name The name handle.
24165     * @return Returns the address string of @p name.
24166     *
24167     * This gets the coordinates of the @p name, created with one of the
24168     * conversion functions.
24169     *
24170     * @see elm_map_utils_convert_name_into_coord()
24171     * @see elm_map_utils_convert_coord_into_name()
24172     *
24173     * @ingroup Map
24174     */
24175    EAPI const char           *elm_map_name_address_get(const Elm_Map_Name *name) EINA_ARG_NONNULL(1);
24176
24177    /**
24178     * Get the current coordinates of the name.
24179     *
24180     * @param name The name handle.
24181     * @param lat Pointer where to store the latitude.
24182     * @param lon Pointer where to store The longitude.
24183     *
24184     * This gets the coordinates of the @p name, created with one of the
24185     * conversion functions.
24186     *
24187     * @see elm_map_utils_convert_name_into_coord()
24188     * @see elm_map_utils_convert_coord_into_name()
24189     *
24190     * @ingroup Map
24191     */
24192    EAPI void                  elm_map_name_region_get(const Elm_Map_Name *name, double *lon, double *lat) EINA_ARG_NONNULL(1);
24193
24194    /**
24195     * Remove a name from the map.
24196     *
24197     * @param name The name to remove.
24198     *
24199     * Basically the struct handled by @p name will be freed, so convertions
24200     * between address and coordinates will be lost.
24201     *
24202     * @see elm_map_utils_convert_name_into_coord()
24203     * @see elm_map_utils_convert_coord_into_name()
24204     *
24205     * @ingroup Map
24206     */
24207    EAPI void                  elm_map_name_remove(Elm_Map_Name *name) EINA_ARG_NONNULL(1);
24208
24209    /**
24210     * Rotate the map.
24211     *
24212     * @param obj The map object.
24213     * @param degree Angle from 0.0 to 360.0 to rotate arount Z axis.
24214     * @param cx Rotation's center horizontal position.
24215     * @param cy Rotation's center vertical position.
24216     *
24217     * @see elm_map_rotate_get()
24218     *
24219     * @ingroup Map
24220     */
24221    EAPI void                  elm_map_rotate_set(Evas_Object *obj, double degree, Evas_Coord cx, Evas_Coord cy) EINA_ARG_NONNULL(1);
24222
24223    /**
24224     * Get the rotate degree of the map
24225     *
24226     * @param obj The map object
24227     * @param degree Pointer where to store degrees from 0.0 to 360.0
24228     * to rotate arount Z axis.
24229     * @param cx Pointer where to store rotation's center horizontal position.
24230     * @param cy Pointer where to store rotation's center vertical position.
24231     *
24232     * @see elm_map_rotate_set() to set map rotation.
24233     *
24234     * @ingroup Map
24235     */
24236    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);
24237
24238    /**
24239     * Enable or disable mouse wheel to be used to zoom in / out the map.
24240     *
24241     * @param obj The map object.
24242     * @param disabled Use @c EINA_TRUE to disable mouse wheel or @c EINA_FALSE
24243     * to enable it.
24244     *
24245     * Mouse wheel can be used for the user to zoom in or zoom out the map.
24246     *
24247     * It's disabled by default.
24248     *
24249     * @see elm_map_wheel_disabled_get()
24250     *
24251     * @ingroup Map
24252     */
24253    EAPI void                  elm_map_wheel_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
24254
24255    /**
24256     * Get a value whether mouse wheel is enabled or not.
24257     *
24258     * @param obj The map object.
24259     * @return @c EINA_TRUE means map is disabled. @c EINA_FALSE indicates
24260     * it is enabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
24261     *
24262     * Mouse wheel can be used for the user to zoom in or zoom out the map.
24263     *
24264     * @see elm_map_wheel_disabled_set() for details.
24265     *
24266     * @ingroup Map
24267     */
24268    EAPI Eina_Bool             elm_map_wheel_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24269
24270 #ifdef ELM_EMAP
24271    /**
24272     * Add a track on the map
24273     *
24274     * @param obj The map object.
24275     * @param emap The emap route object.
24276     * @return The route object. This is an elm object of type Route.
24277     *
24278     * @see elm_route_add() for details.
24279     *
24280     * @ingroup Map
24281     */
24282    EAPI Evas_Object          *elm_map_track_add(Evas_Object *obj, EMap_Route *emap) EINA_ARG_NONNULL(1);
24283 #endif
24284
24285    /**
24286     * Remove a track from the map
24287     *
24288     * @param obj The map object.
24289     * @param route The track to remove.
24290     *
24291     * @ingroup Map
24292     */
24293    EAPI void                  elm_map_track_remove(Evas_Object *obj, Evas_Object *route) EINA_ARG_NONNULL(1);
24294
24295    /**
24296     * @}
24297     */
24298
24299    /* Route */
24300    EAPI Evas_Object *elm_route_add(Evas_Object *parent);
24301 #ifdef ELM_EMAP
24302    EAPI void elm_route_emap_set(Evas_Object *obj, EMap_Route *emap);
24303 #endif
24304    EAPI double elm_route_lon_min_get(Evas_Object *obj);
24305    EAPI double elm_route_lat_min_get(Evas_Object *obj);
24306    EAPI double elm_route_lon_max_get(Evas_Object *obj);
24307    EAPI double elm_route_lat_max_get(Evas_Object *obj);
24308
24309
24310    /**
24311     * @defgroup Panel Panel
24312     *
24313     * @image html img/widget/panel/preview-00.png
24314     * @image latex img/widget/panel/preview-00.eps
24315     *
24316     * @brief A panel is a type of animated container that contains subobjects.
24317     * It can be expanded or contracted by clicking the button on it's edge.
24318     *
24319     * Orientations are as follows:
24320     * @li ELM_PANEL_ORIENT_TOP
24321     * @li ELM_PANEL_ORIENT_LEFT
24322     * @li ELM_PANEL_ORIENT_RIGHT
24323     *
24324     * Default contents parts of the panel widget that you can use for are:
24325     * @li "default" - A content of the panel
24326     *
24327     * @ref tutorial_panel shows one way to use this widget.
24328     * @{
24329     */
24330    typedef enum _Elm_Panel_Orient
24331      {
24332         ELM_PANEL_ORIENT_TOP, /**< Panel (dis)appears from the top */
24333         ELM_PANEL_ORIENT_BOTTOM, /**< Not implemented */
24334         ELM_PANEL_ORIENT_LEFT, /**< Panel (dis)appears from the left */
24335         ELM_PANEL_ORIENT_RIGHT, /**< Panel (dis)appears from the right */
24336      } Elm_Panel_Orient;
24337    /**
24338     * @brief Adds a panel object
24339     *
24340     * @param parent The parent object
24341     *
24342     * @return The panel object, or NULL on failure
24343     */
24344    EAPI Evas_Object          *elm_panel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24345    /**
24346     * @brief Sets the orientation of the panel
24347     *
24348     * @param parent The parent object
24349     * @param orient The panel orientation. Can be one of the following:
24350     * @li ELM_PANEL_ORIENT_TOP
24351     * @li ELM_PANEL_ORIENT_LEFT
24352     * @li ELM_PANEL_ORIENT_RIGHT
24353     *
24354     * Sets from where the panel will (dis)appear.
24355     */
24356    EAPI void                  elm_panel_orient_set(Evas_Object *obj, Elm_Panel_Orient orient) EINA_ARG_NONNULL(1);
24357    /**
24358     * @brief Get the orientation of the panel.
24359     *
24360     * @param obj The panel object
24361     * @return The Elm_Panel_Orient, or ELM_PANEL_ORIENT_LEFT on failure.
24362     */
24363    EAPI Elm_Panel_Orient      elm_panel_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24364    /**
24365     * @brief Set the content of the panel.
24366     *
24367     * @param obj The panel object
24368     * @param content The panel content
24369     *
24370     * Once the content object is set, a previously set one will be deleted.
24371     * If you want to keep that old content object, use the
24372     * elm_panel_content_unset() function.
24373     *
24374     * @deprecated use elm_object_content_set() instead
24375     *
24376     */
24377    EINA_DEPRECATED EAPI void                  elm_panel_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24378    /**
24379     * @brief Get the content of the panel.
24380     *
24381     * @param obj The panel object
24382     * @return The content that is being used
24383     *
24384     * Return the content object which is set for this widget.
24385     *
24386     * @see elm_panel_content_set()
24387     *
24388     * @deprecated use elm_object_content_get() instead
24389     *
24390     */
24391    EINA_DEPRECATED EAPI Evas_Object          *elm_panel_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24392    /**
24393     * @brief Unset the content of the panel.
24394     *
24395     * @param obj The panel object
24396     * @return The content that was being used
24397     *
24398     * Unparent and return the content object which was set for this widget.
24399     *
24400     * @see elm_panel_content_set()
24401     *
24402     * @deprecated use elm_object_content_unset() instead
24403     *
24404     */
24405    EINA_DEPRECATED EAPI Evas_Object          *elm_panel_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24406    /**
24407     * @brief Set the state of the panel.
24408     *
24409     * @param obj The panel object
24410     * @param hidden If true, the panel will run the animation to contract
24411     */
24412    EAPI void                  elm_panel_hidden_set(Evas_Object *obj, Eina_Bool hidden) EINA_ARG_NONNULL(1);
24413    /**
24414     * @brief Get the state of the panel.
24415     *
24416     * @param obj The panel object
24417     * @param hidden If true, the panel is in the "hide" state
24418     */
24419    EAPI Eina_Bool             elm_panel_hidden_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24420    /**
24421     * @brief Toggle the hidden state of the panel from code
24422     *
24423     * @param obj The panel object
24424     */
24425    EAPI void                  elm_panel_toggle(Evas_Object *obj) EINA_ARG_NONNULL(1);
24426    /**
24427     * @}
24428     */
24429
24430    /**
24431     * @defgroup Panes Panes
24432     * @ingroup Elementary
24433     *
24434     * @image html img/widget/panes/preview-00.png
24435     * @image latex img/widget/panes/preview-00.eps width=\textwidth
24436     *
24437     * @image html img/panes.png
24438     * @image latex img/panes.eps width=\textwidth
24439     *
24440     * The panes adds a dragable bar between two contents. When dragged
24441     * this bar will resize contents size.
24442     *
24443     * Panes can be displayed vertically or horizontally, and contents
24444     * size proportion can be customized (homogeneous by default).
24445     *
24446     * Smart callbacks one can listen to:
24447     * - "press" - The panes has been pressed (button wasn't released yet).
24448     * - "unpressed" - The panes was released after being pressed.
24449     * - "clicked" - The panes has been clicked>
24450     * - "clicked,double" - The panes has been double clicked
24451     *
24452     * Available styles for it:
24453     * - @c "default"
24454     *
24455     * Default contents parts of the panes widget that you can use for are:
24456     * @li "left" - A leftside content of the panes
24457     * @li "right" - A rightside content of the panes
24458     *
24459     * If panes is displayed vertically, left content will be displayed at
24460     * top.
24461     *
24462     * Here is an example on its usage:
24463     * @li @ref panes_example
24464     */
24465
24466    /**
24467     * @addtogroup Panes
24468     * @{
24469     */
24470
24471    /**
24472     * Add a new panes widget to the given parent Elementary
24473     * (container) object.
24474     *
24475     * @param parent The parent object.
24476     * @return a new panes widget handle or @c NULL, on errors.
24477     *
24478     * This function inserts a new panes widget on the canvas.
24479     *
24480     * @ingroup Panes
24481     */
24482    EAPI Evas_Object          *elm_panes_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24483
24484    /**
24485     * Set the left content of the panes widget.
24486     *
24487     * @param obj The panes object.
24488     * @param content The new left content object.
24489     *
24490     * Once the content object is set, a previously set one will be deleted.
24491     * If you want to keep that old content object, use the
24492     * elm_panes_content_left_unset() function.
24493     *
24494     * If panes is displayed vertically, left content will be displayed at
24495     * top.
24496     *
24497     * @see elm_panes_content_left_get()
24498     * @see elm_panes_content_right_set() to set content on the other side.
24499     *
24500     * @deprecated use elm_object_part_content_set() instead
24501     *
24502     * @ingroup Panes
24503     */
24504    EINA_DEPRECATED EAPI void                  elm_panes_content_left_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24505
24506    /**
24507     * Set the right content of the panes widget.
24508     *
24509     * @param obj The panes object.
24510     * @param content The new right content object.
24511     *
24512     * Once the content object is set, a previously set one will be deleted.
24513     * If you want to keep that old content object, use the
24514     * elm_panes_content_right_unset() function.
24515     *
24516     * If panes is displayed vertically, left content will be displayed at
24517     * bottom.
24518     *
24519     * @see elm_panes_content_right_get()
24520     * @see elm_panes_content_left_set() to set content on the other side.
24521     *
24522     * @deprecated use elm_object_part_content_set() instead
24523     *
24524     * @ingroup Panes
24525     */
24526    EINA_DEPRECATED EAPI void                  elm_panes_content_right_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24527
24528    /**
24529     * Get the left content of the panes.
24530     *
24531     * @param obj The panes object.
24532     * @return The left content object that is being used.
24533     *
24534     * Return the left content object which is set for this widget.
24535     *
24536     * @see elm_panes_content_left_set() for details.
24537     *
24538     * @deprecated use elm_object_part_content_get() instead
24539     *
24540     * @ingroup Panes
24541     */
24542    EINA_DEPRECATED EAPI Evas_Object          *elm_panes_content_left_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24543
24544    /**
24545     * Get the right content of the panes.
24546     *
24547     * @param obj The panes object
24548     * @return The right content object that is being used
24549     *
24550     * Return the right content object which is set for this widget.
24551     *
24552     * @see elm_panes_content_right_set() for details.
24553     *
24554     * @deprecated use elm_object_part_content_get() instead
24555     *
24556     * @ingroup Panes
24557     */
24558    EINA_DEPRECATED EAPI Evas_Object          *elm_panes_content_right_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24559
24560    /**
24561     * Unset the left content used for the panes.
24562     *
24563     * @param obj The panes object.
24564     * @return The left content object that was being used.
24565     *
24566     * Unparent and return the left content object which was set for this widget.
24567     *
24568     * @see elm_panes_content_left_set() for details.
24569     * @see elm_panes_content_left_get().
24570     *
24571     * @deprecated use elm_object_part_content_unset() instead
24572     *
24573     * @ingroup Panes
24574     */
24575    EINA_DEPRECATED EAPI Evas_Object          *elm_panes_content_left_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24576
24577    /**
24578     * Unset the right content used for the panes.
24579     *
24580     * @param obj The panes object.
24581     * @return The right content object that was being used.
24582     *
24583     * Unparent and return the right content object which was set for this
24584     * widget.
24585     *
24586     * @see elm_panes_content_right_set() for details.
24587     * @see elm_panes_content_right_get().
24588     *
24589     * @deprecated use elm_object_part_content_unset() instead
24590     *
24591     * @ingroup Panes
24592     */
24593    EINA_DEPRECATED EAPI Evas_Object          *elm_panes_content_right_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24594
24595    /**
24596     * Get the size proportion of panes widget's left side.
24597     *
24598     * @param obj The panes object.
24599     * @return float value between 0.0 and 1.0 representing size proportion
24600     * of left side.
24601     *
24602     * @see elm_panes_content_left_size_set() for more details.
24603     *
24604     * @ingroup Panes
24605     */
24606    EAPI double                elm_panes_content_left_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24607
24608    /**
24609     * Set the size proportion of panes widget's left side.
24610     *
24611     * @param obj The panes object.
24612     * @param size Value between 0.0 and 1.0 representing size proportion
24613     * of left side.
24614     *
24615     * By default it's homogeneous, i.e., both sides have the same size.
24616     *
24617     * If something different is required, it can be set with this function.
24618     * For example, if the left content should be displayed over
24619     * 75% of the panes size, @p size should be passed as @c 0.75.
24620     * This way, right content will be resized to 25% of panes size.
24621     *
24622     * If displayed vertically, left content is displayed at top, and
24623     * right content at bottom.
24624     *
24625     * @note This proportion will change when user drags the panes bar.
24626     *
24627     * @see elm_panes_content_left_size_get()
24628     *
24629     * @ingroup Panes
24630     */
24631    EAPI void                  elm_panes_content_left_size_set(Evas_Object *obj, double size) EINA_ARG_NONNULL(1);
24632
24633   /**
24634    * Set the orientation of a given panes widget.
24635    *
24636    * @param obj The panes object.
24637    * @param horizontal Use @c EINA_TRUE to make @p obj to be
24638    * @b horizontal, @c EINA_FALSE to make it @b vertical.
24639    *
24640    * Use this function to change how your panes is to be
24641    * disposed: vertically or horizontally.
24642    *
24643    * By default it's displayed horizontally.
24644    *
24645    * @see elm_panes_horizontal_get()
24646    *
24647    * @ingroup Panes
24648    */
24649    EAPI void                  elm_panes_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
24650
24651    /**
24652     * Retrieve the orientation of a given panes widget.
24653     *
24654     * @param obj The panes object.
24655     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
24656     * @c EINA_FALSE if it's @b vertical (and on errors).
24657     *
24658     * @see elm_panes_horizontal_set() for more details.
24659     *
24660     * @ingroup Panes
24661     */
24662    EAPI Eina_Bool             elm_panes_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24663    EAPI void                  elm_panes_fixed_set(Evas_Object *obj, Eina_Bool fixed) EINA_ARG_NONNULL(1);
24664    EAPI Eina_Bool             elm_panes_fixed_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24665
24666    /**
24667     * @}
24668     */
24669
24670    /**
24671     * @defgroup Flip Flip
24672     *
24673     * @image html img/widget/flip/preview-00.png
24674     * @image latex img/widget/flip/preview-00.eps
24675     *
24676     * This widget holds 2 content objects(Evas_Object): one on the front and one
24677     * on the back. It allows you to flip from front to back and vice-versa using
24678     * various animations.
24679     *
24680     * If either the front or back contents are not set the flip will treat that
24681     * as transparent. So if you wore to set the front content but not the back,
24682     * and then call elm_flip_go() you would see whatever is below the flip.
24683     *
24684     * For a list of supported animations see elm_flip_go().
24685     *
24686     * Signals that you can add callbacks for are:
24687     * "animate,begin" - when a flip animation was started
24688     * "animate,done" - when a flip animation is finished
24689     *
24690     * @ref tutorial_flip show how to use most of the API.
24691     *
24692     * @{
24693     */
24694    typedef enum _Elm_Flip_Mode
24695      {
24696         ELM_FLIP_ROTATE_Y_CENTER_AXIS,
24697         ELM_FLIP_ROTATE_X_CENTER_AXIS,
24698         ELM_FLIP_ROTATE_XZ_CENTER_AXIS,
24699         ELM_FLIP_ROTATE_YZ_CENTER_AXIS,
24700         ELM_FLIP_CUBE_LEFT,
24701         ELM_FLIP_CUBE_RIGHT,
24702         ELM_FLIP_CUBE_UP,
24703         ELM_FLIP_CUBE_DOWN,
24704         ELM_FLIP_PAGE_LEFT,
24705         ELM_FLIP_PAGE_RIGHT,
24706         ELM_FLIP_PAGE_UP,
24707         ELM_FLIP_PAGE_DOWN
24708      } Elm_Flip_Mode;
24709    typedef enum _Elm_Flip_Interaction
24710      {
24711         ELM_FLIP_INTERACTION_NONE,
24712         ELM_FLIP_INTERACTION_ROTATE,
24713         ELM_FLIP_INTERACTION_CUBE,
24714         ELM_FLIP_INTERACTION_PAGE
24715      } Elm_Flip_Interaction;
24716    typedef enum _Elm_Flip_Direction
24717      {
24718         ELM_FLIP_DIRECTION_UP, /**< Allows interaction with the top of the widget */
24719         ELM_FLIP_DIRECTION_DOWN, /**< Allows interaction with the bottom of the widget */
24720         ELM_FLIP_DIRECTION_LEFT, /**< Allows interaction with the left portion of the widget */
24721         ELM_FLIP_DIRECTION_RIGHT /**< Allows interaction with the right portion of the widget */
24722      } Elm_Flip_Direction;
24723    /**
24724     * @brief Add a new flip to the parent
24725     *
24726     * @param parent The parent object
24727     * @return The new object or NULL if it cannot be created
24728     */
24729    EAPI Evas_Object *elm_flip_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24730    /**
24731     * @brief Set the front content of the flip widget.
24732     *
24733     * @param obj The flip object
24734     * @param content The new front content object
24735     *
24736     * Once the content object is set, a previously set one will be deleted.
24737     * If you want to keep that old content object, use the
24738     * elm_flip_content_front_unset() function.
24739     */
24740    EAPI void         elm_flip_content_front_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24741    /**
24742     * @brief Set the back content of the flip widget.
24743     *
24744     * @param obj The flip object
24745     * @param content The new back content object
24746     *
24747     * Once the content object is set, a previously set one will be deleted.
24748     * If you want to keep that old content object, use the
24749     * elm_flip_content_back_unset() function.
24750     */
24751    EAPI void         elm_flip_content_back_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24752    /**
24753     * @brief Get the front content used for the flip
24754     *
24755     * @param obj The flip object
24756     * @return The front content object that is being used
24757     *
24758     * Return the front content object which is set for this widget.
24759     */
24760    EAPI Evas_Object *elm_flip_content_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24761    /**
24762     * @brief Get the back content used for the flip
24763     *
24764     * @param obj The flip object
24765     * @return The back content object that is being used
24766     *
24767     * Return the back content object which is set for this widget.
24768     */
24769    EAPI Evas_Object *elm_flip_content_back_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24770    /**
24771     * @brief Unset the front content used for the flip
24772     *
24773     * @param obj The flip object
24774     * @return The front content object that was being used
24775     *
24776     * Unparent and return the front content object which was set for this widget.
24777     */
24778    EAPI Evas_Object *elm_flip_content_front_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24779    /**
24780     * @brief Unset the back content used for the flip
24781     *
24782     * @param obj The flip object
24783     * @return The back content object that was being used
24784     *
24785     * Unparent and return the back content object which was set for this widget.
24786     */
24787    EAPI Evas_Object *elm_flip_content_back_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24788    /**
24789     * @brief Get flip front visibility state
24790     *
24791     * @param obj The flip objct
24792     * @return EINA_TRUE if front front is showing, EINA_FALSE if the back is
24793     * showing.
24794     */
24795    EAPI Eina_Bool    elm_flip_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24796    /**
24797     * @brief Set flip perspective
24798     *
24799     * @param obj The flip object
24800     * @param foc The coordinate to set the focus on
24801     * @param x The X coordinate
24802     * @param y The Y coordinate
24803     *
24804     * @warning This function currently does nothing.
24805     */
24806    EAPI void         elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
24807    /**
24808     * @brief Runs the flip animation
24809     *
24810     * @param obj The flip object
24811     * @param mode The mode type
24812     *
24813     * Flips the front and back contents using the @p mode animation. This
24814     * efectively hides the currently visible content and shows the hidden one.
24815     *
24816     * There a number of possible animations to use for the flipping:
24817     * @li ELM_FLIP_ROTATE_X_CENTER_AXIS - Rotate the currently visible content
24818     * around a horizontal axis in the middle of its height, the other content
24819     * is shown as the other side of the flip.
24820     * @li ELM_FLIP_ROTATE_Y_CENTER_AXIS - Rotate the currently visible content
24821     * around a vertical axis in the middle of its width, the other content is
24822     * shown as the other side of the flip.
24823     * @li ELM_FLIP_ROTATE_XZ_CENTER_AXIS - Rotate the currently visible content
24824     * around a diagonal axis in the middle of its width, the other content is
24825     * shown as the other side of the flip.
24826     * @li ELM_FLIP_ROTATE_YZ_CENTER_AXIS - Rotate the currently visible content
24827     * around a diagonal axis in the middle of its height, the other content is
24828     * shown as the other side of the flip.
24829     * @li ELM_FLIP_CUBE_LEFT - Rotate the currently visible content to the left
24830     * as if the flip was a cube, the other content is show as the right face of
24831     * the cube.
24832     * @li ELM_FLIP_CUBE_RIGHT - Rotate the currently visible content to the
24833     * right as if the flip was a cube, the other content is show as the left
24834     * face of the cube.
24835     * @li ELM_FLIP_CUBE_UP - Rotate the currently visible content up as if the
24836     * flip was a cube, the other content is show as the bottom face of the cube.
24837     * @li ELM_FLIP_CUBE_DOWN - Rotate the currently visible content down as if
24838     * the flip was a cube, the other content is show as the upper face of the
24839     * cube.
24840     * @li ELM_FLIP_PAGE_LEFT - Move the currently visible content to the left as
24841     * if the flip was a book, the other content is shown as the page below that.
24842     * @li ELM_FLIP_PAGE_RIGHT - Move the currently visible content to the right
24843     * as if the flip was a book, the other content is shown as the page below
24844     * that.
24845     * @li ELM_FLIP_PAGE_UP - Move the currently visible content up as if the
24846     * flip was a book, the other content is shown as the page below that.
24847     * @li ELM_FLIP_PAGE_DOWN - Move the currently visible content down as if the
24848     * flip was a book, the other content is shown as the page below that.
24849     *
24850     * @image html elm_flip.png
24851     * @image latex elm_flip.eps width=\textwidth
24852     */
24853    EAPI void         elm_flip_go(Evas_Object *obj, Elm_Flip_Mode mode) EINA_ARG_NONNULL(1);
24854    /**
24855     * @brief Set the interactive flip mode
24856     *
24857     * @param obj The flip object
24858     * @param mode The interactive flip mode to use
24859     *
24860     * This sets if the flip should be interactive (allow user to click and
24861     * drag a side of the flip to reveal the back page and cause it to flip).
24862     * By default a flip is not interactive. You may also need to set which
24863     * sides of the flip are "active" for flipping and how much space they use
24864     * (a minimum of a finger size) with elm_flip_interacton_direction_enabled_set()
24865     * and elm_flip_interacton_direction_hitsize_set()
24866     *
24867     * The four avilable mode of interaction are:
24868     * @li ELM_FLIP_INTERACTION_NONE - No interaction is allowed
24869     * @li ELM_FLIP_INTERACTION_ROTATE - Interaction will cause rotate animation
24870     * @li ELM_FLIP_INTERACTION_CUBE - Interaction will cause cube animation
24871     * @li ELM_FLIP_INTERACTION_PAGE - Interaction will cause page animation
24872     *
24873     * @note ELM_FLIP_INTERACTION_ROTATE won't cause
24874     * ELM_FLIP_ROTATE_XZ_CENTER_AXIS or ELM_FLIP_ROTATE_YZ_CENTER_AXIS to
24875     * happen, those can only be acheived with elm_flip_go();
24876     */
24877    EAPI void         elm_flip_interaction_set(Evas_Object *obj, Elm_Flip_Interaction mode);
24878    /**
24879     * @brief Get the interactive flip mode
24880     *
24881     * @param obj The flip object
24882     * @return The interactive flip mode
24883     *
24884     * Returns the interactive flip mode set by elm_flip_interaction_set()
24885     */
24886    EAPI Elm_Flip_Interaction elm_flip_interaction_get(const Evas_Object *obj);
24887    /**
24888     * @brief Set which directions of the flip respond to interactive flip
24889     *
24890     * @param obj The flip object
24891     * @param dir The direction to change
24892     * @param enabled If that direction is enabled or not
24893     *
24894     * By default all directions are disabled, so you may want to enable the
24895     * desired directions for flipping if you need interactive flipping. You must
24896     * call this function once for each direction that should be enabled.
24897     *
24898     * @see elm_flip_interaction_set()
24899     */
24900    EAPI void         elm_flip_interacton_direction_enabled_set(Evas_Object *obj, Elm_Flip_Direction dir, Eina_Bool enabled);
24901    /**
24902     * @brief Get the enabled state of that flip direction
24903     *
24904     * @param obj The flip object
24905     * @param dir The direction to check
24906     * @return If that direction is enabled or not
24907     *
24908     * Gets the enabled state set by elm_flip_interacton_direction_enabled_set()
24909     *
24910     * @see elm_flip_interaction_set()
24911     */
24912    EAPI Eina_Bool    elm_flip_interacton_direction_enabled_get(Evas_Object *obj, Elm_Flip_Direction dir);
24913    /**
24914     * @brief Set the amount of the flip that is sensitive to interactive flip
24915     *
24916     * @param obj The flip object
24917     * @param dir The direction to modify
24918     * @param hitsize The amount of that dimension (0.0 to 1.0) to use
24919     *
24920     * Set the amount of the flip that is sensitive to interactive flip, with 0
24921     * representing no area in the flip and 1 representing the entire flip. There
24922     * is however a consideration to be made in that the area will never be
24923     * smaller than the finger size set(as set in your Elementary configuration).
24924     *
24925     * @see elm_flip_interaction_set()
24926     */
24927    EAPI void         elm_flip_interacton_direction_hitsize_set(Evas_Object *obj, Elm_Flip_Direction dir, double hitsize);
24928    /**
24929     * @brief Get the amount of the flip that is sensitive to interactive flip
24930     *
24931     * @param obj The flip object
24932     * @param dir The direction to check
24933     * @return The size set for that direction
24934     *
24935     * Returns the amount os sensitive area set by
24936     * elm_flip_interacton_direction_hitsize_set().
24937     */
24938    EAPI double       elm_flip_interacton_direction_hitsize_get(Evas_Object *obj, Elm_Flip_Direction dir);
24939    /**
24940     * @}
24941     */
24942
24943    /* scrolledentry */
24944    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24945    EINA_DEPRECATED EAPI void         elm_scrolled_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
24946    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24947    EINA_DEPRECATED EAPI void         elm_scrolled_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
24948    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24949    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
24950    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24951    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
24952    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24953    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24954    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
24955    EINA_DEPRECATED EAPI void         elm_scrolled_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
24956    EINA_DEPRECATED EAPI void         elm_scrolled_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
24957    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24958    EINA_DEPRECATED EAPI void         elm_scrolled_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
24959    EINA_DEPRECATED EAPI void         elm_scrolled_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
24960    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
24961    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
24962    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
24963    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
24964    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24965    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24966    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24967    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24968    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
24969    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
24970    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24971    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24972    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24973    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
24974    EINA_DEPRECATED EAPI int          elm_scrolled_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24975    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
24976    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
24977    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
24978    EINA_DEPRECATED EAPI void         elm_scrolled_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
24979    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);
24980    EINA_DEPRECATED EAPI void         elm_scrolled_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
24981    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24982    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);
24983    EINA_DEPRECATED EAPI void         elm_scrolled_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
24984    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);
24985    EINA_DEPRECATED EAPI void         elm_scrolled_entry_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1, 2);
24986    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24987    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24988    EINA_DEPRECATED EAPI void         elm_scrolled_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
24989    EINA_DEPRECATED EAPI void         elm_scrolled_entry_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1, 2);
24990    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24991    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24992    EINA_DEPRECATED EAPI void         elm_scrolled_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
24993    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);
24994    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);
24995    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);
24996    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);
24997    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);
24998    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);
24999    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
25000    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
25001    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
25002    EINA_DEPRECATED EAPI void         elm_scrolled_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
25003    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25004    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
25005    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cnp_textonly_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
25006
25007    /**
25008     * @defgroup Conformant Conformant
25009     * @ingroup Elementary
25010     *
25011     * @image html img/widget/conformant/preview-00.png
25012     * @image latex img/widget/conformant/preview-00.eps width=\textwidth
25013     *
25014     * @image html img/conformant.png
25015     * @image latex img/conformant.eps width=\textwidth
25016     *
25017     * The aim is to provide a widget that can be used in elementary apps to
25018     * account for space taken up by the indicator, virtual keypad & softkey
25019     * windows when running the illume2 module of E17.
25020     *
25021     * So conformant content will be sized and positioned considering the
25022     * space required for such stuff, and when they popup, as a keyboard
25023     * shows when an entry is selected, conformant content won't change.
25024     *
25025     * Available styles for it:
25026     * - @c "default"
25027     *
25028     * Default contents parts of the conformant widget that you can use for are:
25029     * @li "default" - A content of the conformant
25030     *
25031     * See how to use this widget in this example:
25032     * @ref conformant_example
25033     */
25034
25035    /**
25036     * @addtogroup Conformant
25037     * @{
25038     */
25039
25040    /**
25041     * Add a new conformant widget to the given parent Elementary
25042     * (container) object.
25043     *
25044     * @param parent The parent object.
25045     * @return A new conformant widget handle or @c NULL, on errors.
25046     *
25047     * This function inserts a new conformant widget on the canvas.
25048     *
25049     * @ingroup Conformant
25050     */
25051    EAPI Evas_Object *elm_conformant_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25052
25053    /**
25054     * Set the content of the conformant widget.
25055     *
25056     * @param obj The conformant object.
25057     * @param content The content to be displayed by the conformant.
25058     *
25059     * Content will be sized and positioned considering the space required
25060     * to display a virtual keyboard. So it won't fill all the conformant
25061     * size. This way is possible to be sure that content won't resize
25062     * or be re-positioned after the keyboard is displayed.
25063     *
25064     * Once the content object is set, a previously set one will be deleted.
25065     * If you want to keep that old content object, use the
25066     * elm_object_content_unset() function.
25067     *
25068     * @see elm_object_content_unset()
25069     * @see elm_object_content_get()
25070     *
25071     * @deprecated use elm_object_content_set() instead
25072     *
25073     * @ingroup Conformant
25074     */
25075    EINA_DEPRECATED EAPI void         elm_conformant_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
25076
25077    /**
25078     * Get the content of the conformant widget.
25079     *
25080     * @param obj The conformant object.
25081     * @return The content that is being used.
25082     *
25083     * Return the content object which is set for this widget.
25084     * It won't be unparent from conformant. For that, use
25085     * elm_object_content_unset().
25086     *
25087     * @see elm_object_content_set().
25088     * @see elm_object_content_unset()
25089     *
25090     * @deprecated use elm_object_content_get() instead
25091     *
25092     * @ingroup Conformant
25093     */
25094    EINA_DEPRECATED EAPI Evas_Object *elm_conformant_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25095
25096    /**
25097     * Unset the content of the conformant widget.
25098     *
25099     * @param obj The conformant object.
25100     * @return The content that was being used.
25101     *
25102     * Unparent and return the content object which was set for this widget.
25103     *
25104     * @see elm_object_content_set().
25105     *
25106     * @deprecated use elm_object_content_unset() instead
25107     *
25108     * @ingroup Conformant
25109     */
25110    EINA_DEPRECATED EAPI Evas_Object *elm_conformant_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
25111
25112    /**
25113     * Returns the Evas_Object that represents the content area.
25114     *
25115     * @param obj The conformant object.
25116     * @return The content area of the widget.
25117     *
25118     * @ingroup Conformant
25119     */
25120    EAPI Evas_Object *elm_conformant_content_area_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25121
25122    /**
25123     * @}
25124     */
25125
25126    /**
25127     * @defgroup Mapbuf Mapbuf
25128     * @ingroup Elementary
25129     *
25130     * @image html img/widget/mapbuf/preview-00.png
25131     * @image latex img/widget/mapbuf/preview-00.eps width=\textwidth
25132     *
25133     * This holds one content object and uses an Evas Map of transformation
25134     * points to be later used with this content. So the content will be
25135     * moved, resized, etc as a single image. So it will improve performance
25136     * when you have a complex interafce, with a lot of elements, and will
25137     * need to resize or move it frequently (the content object and its
25138     * children).
25139     *
25140     * Default contents parts of the mapbuf widget that you can use for are:
25141     * @li "default" - A content of the mapbuf
25142     *
25143     * To enable map, elm_mapbuf_enabled_set() should be used.
25144     *
25145     * See how to use this widget in this example:
25146     * @ref mapbuf_example
25147     */
25148
25149    /**
25150     * @addtogroup Mapbuf
25151     * @{
25152     */
25153
25154    /**
25155     * Add a new mapbuf widget to the given parent Elementary
25156     * (container) object.
25157     *
25158     * @param parent The parent object.
25159     * @return A new mapbuf widget handle or @c NULL, on errors.
25160     *
25161     * This function inserts a new mapbuf widget on the canvas.
25162     *
25163     * @ingroup Mapbuf
25164     */
25165    EAPI Evas_Object *elm_mapbuf_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25166
25167    /**
25168     * Set the content of the mapbuf.
25169     *
25170     * @param obj The mapbuf object.
25171     * @param content The content that will be filled in this mapbuf object.
25172     *
25173     * Once the content object is set, a previously set one will be deleted.
25174     * If you want to keep that old content object, use the
25175     * elm_mapbuf_content_unset() function.
25176     *
25177     * To enable map, elm_mapbuf_enabled_set() should be used.
25178     *
25179     * @deprecated use elm_object_content_set() instead
25180     *
25181     * @ingroup Mapbuf
25182     */
25183    EINA_DEPRECATED EAPI void         elm_mapbuf_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
25184
25185    /**
25186     * Get the content of the mapbuf.
25187     *
25188     * @param obj The mapbuf object.
25189     * @return The content that is being used.
25190     *
25191     * Return the content object which is set for this widget.
25192     *
25193     * @see elm_mapbuf_content_set() for details.
25194     *
25195     * @deprecated use elm_object_content_get() instead
25196     *
25197     * @ingroup Mapbuf
25198     */
25199    EINA_DEPRECATED EAPI Evas_Object *elm_mapbuf_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25200
25201    /**
25202     * Unset the content of the mapbuf.
25203     *
25204     * @param obj The mapbuf object.
25205     * @return The content that was being used.
25206     *
25207     * Unparent and return the content object which was set for this widget.
25208     *
25209     * @see elm_mapbuf_content_set() for details.
25210     *
25211     * @deprecated use elm_object_content_unset() instead
25212     *
25213     * @ingroup Mapbuf
25214     */
25215    EINA_DEPRECATED EAPI Evas_Object *elm_mapbuf_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
25216
25217    /**
25218     * Enable or disable the map.
25219     *
25220     * @param obj The mapbuf object.
25221     * @param enabled @c EINA_TRUE to enable map or @c EINA_FALSE to disable it.
25222     *
25223     * This enables the map that is set or disables it. On enable, the object
25224     * geometry will be saved, and the new geometry will change (position and
25225     * size) to reflect the map geometry set.
25226     *
25227     * Also, when enabled, alpha and smooth states will be used, so if the
25228     * content isn't solid, alpha should be enabled, for example, otherwise
25229     * a black retangle will fill the content.
25230     *
25231     * When disabled, the stored map will be freed and geometry prior to
25232     * enabling the map will be restored.
25233     *
25234     * It's disabled by default.
25235     *
25236     * @see elm_mapbuf_alpha_set()
25237     * @see elm_mapbuf_smooth_set()
25238     *
25239     * @ingroup Mapbuf
25240     */
25241    EAPI void         elm_mapbuf_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
25242
25243    /**
25244     * Get a value whether map is enabled or not.
25245     *
25246     * @param obj The mapbuf object.
25247     * @return @c EINA_TRUE means map is enabled. @c EINA_FALSE indicates
25248     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
25249     *
25250     * @see elm_mapbuf_enabled_set() for details.
25251     *
25252     * @ingroup Mapbuf
25253     */
25254    EAPI Eina_Bool    elm_mapbuf_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25255
25256    /**
25257     * Enable or disable smooth map rendering.
25258     *
25259     * @param obj The mapbuf object.
25260     * @param smooth @c EINA_TRUE to enable smooth map rendering or @c EINA_FALSE
25261     * to disable it.
25262     *
25263     * This sets smoothing for map rendering. If the object is a type that has
25264     * its own smoothing settings, then both the smooth settings for this object
25265     * and the map must be turned off.
25266     *
25267     * By default smooth maps are enabled.
25268     *
25269     * @ingroup Mapbuf
25270     */
25271    EAPI void         elm_mapbuf_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
25272
25273    /**
25274     * Get a value whether smooth map rendering is enabled or not.
25275     *
25276     * @param obj The mapbuf object.
25277     * @return @c EINA_TRUE means smooth map rendering is enabled. @c EINA_FALSE
25278     * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
25279     *
25280     * @see elm_mapbuf_smooth_set() for details.
25281     *
25282     * @ingroup Mapbuf
25283     */
25284    EAPI Eina_Bool    elm_mapbuf_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25285
25286    /**
25287     * Set or unset alpha flag for map rendering.
25288     *
25289     * @param obj The mapbuf object.
25290     * @param alpha @c EINA_TRUE to enable alpha blending or @c EINA_FALSE
25291     * to disable it.
25292     *
25293     * This sets alpha flag for map rendering. If the object is a type that has
25294     * its own alpha settings, then this will take precedence. Only image objects
25295     * have this currently. It stops alpha blending of the map area, and is
25296     * useful if you know the object and/or all sub-objects is 100% solid.
25297     *
25298     * Alpha is enabled by default.
25299     *
25300     * @ingroup Mapbuf
25301     */
25302    EAPI void         elm_mapbuf_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
25303
25304    /**
25305     * Get a value whether alpha blending is enabled or not.
25306     *
25307     * @param obj The mapbuf object.
25308     * @return @c EINA_TRUE means alpha blending is enabled. @c EINA_FALSE
25309     * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
25310     *
25311     * @see elm_mapbuf_alpha_set() for details.
25312     *
25313     * @ingroup Mapbuf
25314     */
25315    EAPI Eina_Bool    elm_mapbuf_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25316
25317    /**
25318     * @}
25319     */
25320
25321    /**
25322     * @defgroup Flipselector Flip Selector
25323     *
25324     * @image html img/widget/flipselector/preview-00.png
25325     * @image latex img/widget/flipselector/preview-00.eps
25326     *
25327     * A flip selector is a widget to show a set of @b text items, one
25328     * at a time, with the same sheet switching style as the @ref Clock
25329     * "clock" widget, when one changes the current displaying sheet
25330     * (thus, the "flip" in the name).
25331     *
25332     * User clicks to flip sheets which are @b held for some time will
25333     * make the flip selector to flip continuosly and automatically for
25334     * the user. The interval between flips will keep growing in time,
25335     * so that it helps the user to reach an item which is distant from
25336     * the current selection.
25337     *
25338     * Smart callbacks one can register to:
25339     * - @c "selected" - when the widget's selected text item is changed
25340     * - @c "overflowed" - when the widget's current selection is changed
25341     *   from the first item in its list to the last
25342     * - @c "underflowed" - when the widget's current selection is changed
25343     *   from the last item in its list to the first
25344     *
25345     * Available styles for it:
25346     * - @c "default"
25347     *
25348          * To set/get the label of the flipselector item, you can use
25349          * elm_object_item_text_set/get APIs.
25350          * Once the text is set, a previously set one will be deleted.
25351          *
25352     * Here is an example on its usage:
25353     * @li @ref flipselector_example
25354     */
25355
25356    /**
25357     * @addtogroup Flipselector
25358     * @{
25359     */
25360
25361    /**
25362     * Add a new flip selector widget to the given parent Elementary
25363     * (container) widget
25364     *
25365     * @param parent The parent object
25366     * @return a new flip selector widget handle or @c NULL, on errors
25367     *
25368     * This function inserts a new flip selector widget on the canvas.
25369     *
25370     * @ingroup Flipselector
25371     */
25372    EAPI Evas_Object               *elm_flipselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25373
25374    /**
25375     * Programmatically select the next item of a flip selector widget
25376     *
25377     * @param obj The flipselector object
25378     *
25379     * @note The selection will be animated. Also, if it reaches the
25380     * end of its list of member items, it will continue with the first
25381     * one onwards.
25382     *
25383     * @ingroup Flipselector
25384     */
25385    EAPI void                       elm_flipselector_flip_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
25386
25387    /**
25388     * Programmatically select the previous item of a flip selector
25389     * widget
25390     *
25391     * @param obj The flipselector object
25392     *
25393     * @note The selection will be animated.  Also, if it reaches the
25394     * beginning of its list of member items, it will continue with the
25395     * last one backwards.
25396     *
25397     * @ingroup Flipselector
25398     */
25399    EAPI void                       elm_flipselector_flip_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
25400
25401    /**
25402     * Append a (text) item to a flip selector widget
25403     *
25404     * @param obj The flipselector object
25405     * @param label The (text) label of the new item
25406     * @param func Convenience callback function to take place when
25407     * item is selected
25408     * @param data Data passed to @p func, above
25409     * @return A handle to the item added or @c NULL, on errors
25410     *
25411     * The widget's list of labels to show will be appended with the
25412     * given value. If the user wishes so, a callback function pointer
25413     * can be passed, which will get called when this same item is
25414     * selected.
25415     *
25416     * @note The current selection @b won't be modified by appending an
25417     * element to the list.
25418     *
25419     * @note The maximum length of the text label is going to be
25420     * determined <b>by the widget's theme</b>. Strings larger than
25421     * that value are going to be @b truncated.
25422     *
25423     * @ingroup Flipselector
25424     */
25425    EAPI Elm_Object_Item     *elm_flipselector_item_append(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
25426
25427    /**
25428     * Prepend a (text) item to a flip selector widget
25429     *
25430     * @param obj The flipselector object
25431     * @param label The (text) label of the new item
25432     * @param func Convenience callback function to take place when
25433     * item is selected
25434     * @param data Data passed to @p func, above
25435     * @return A handle to the item added or @c NULL, on errors
25436     *
25437     * The widget's list of labels to show will be prepended with the
25438     * given value. If the user wishes so, a callback function pointer
25439     * can be passed, which will get called when this same item is
25440     * selected.
25441     *
25442     * @note The current selection @b won't be modified by prepending
25443     * an element to the list.
25444     *
25445     * @note The maximum length of the text label is going to be
25446     * determined <b>by the widget's theme</b>. Strings larger than
25447     * that value are going to be @b truncated.
25448     *
25449     * @ingroup Flipselector
25450     */
25451    EAPI Elm_Object_Item     *elm_flipselector_item_prepend(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
25452
25453    /**
25454     * Get the internal list of items in a given flip selector widget.
25455     *
25456     * @param obj The flipselector object
25457     * @return The list of items (#Elm_Object_Item as data) or
25458     * @c NULL on errors.
25459     *
25460     * This list is @b not to be modified in any way and must not be
25461     * freed. Use the list members with functions like
25462     * elm_object_item_text_set(),
25463     * elm_object_item_text_get(),
25464     * elm_flipselector_item_del(),
25465     * elm_flipselector_item_selected_get(),
25466     * elm_flipselector_item_selected_set().
25467     *
25468     * @warning This list is only valid until @p obj object's internal
25469     * items list is changed. It should be fetched again with another
25470     * call to this function when changes happen.
25471     *
25472     * @ingroup Flipselector
25473     */
25474    EAPI const Eina_List           *elm_flipselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25475
25476    /**
25477     * Get the first item in the given flip selector widget's list of
25478     * items.
25479     *
25480     * @param obj The flipselector object
25481     * @return The first item or @c NULL, if it has no items (and on
25482     * errors)
25483     *
25484     * @see elm_flipselector_item_append()
25485     * @see elm_flipselector_last_item_get()
25486     *
25487     * @ingroup Flipselector
25488     */
25489    EAPI Elm_Object_Item     *elm_flipselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25490
25491    /**
25492     * Get the last item in the given flip selector widget's list of
25493     * items.
25494     *
25495     * @param obj The flipselector object
25496     * @return The last item or @c NULL, if it has no items (and on
25497     * errors)
25498     *
25499     * @see elm_flipselector_item_prepend()
25500     * @see elm_flipselector_first_item_get()
25501     *
25502     * @ingroup Flipselector
25503     */
25504    EAPI Elm_Object_Item     *elm_flipselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25505
25506    /**
25507     * Get the currently selected item in a flip selector widget.
25508     *
25509     * @param obj The flipselector object
25510     * @return The selected item or @c NULL, if the widget has no items
25511     * (and on erros)
25512     *
25513     * @ingroup Flipselector
25514     */
25515    EAPI Elm_Object_Item     *elm_flipselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25516
25517    /**
25518     * Set whether a given flip selector widget's item should be the
25519     * currently selected one.
25520     *
25521     * @param it The flip selector item
25522     * @param selected @c EINA_TRUE to select it, @c EINA_FALSE to unselect.
25523     *
25524     * This sets whether @p item is or not the selected (thus, under
25525     * display) one. If @p item is different than one under display,
25526     * the latter will be unselected. If the @p item is set to be
25527     * unselected, on the other hand, the @b first item in the widget's
25528     * internal members list will be the new selected one.
25529     *
25530     * @see elm_flipselector_item_selected_get()
25531     *
25532     * @ingroup Flipselector
25533     */
25534    EAPI void                       elm_flipselector_item_selected_set(Elm_Object_Item *it, Eina_Bool selected) EINA_ARG_NONNULL(1);
25535
25536    /**
25537     * Get whether a given flip selector widget's item is the currently
25538     * selected one.
25539     *
25540     * @param it The flip selector item
25541     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
25542     * (or on errors).
25543     *
25544     * @see elm_flipselector_item_selected_set()
25545     *
25546     * @ingroup Flipselector
25547     */
25548    EAPI Eina_Bool                  elm_flipselector_item_selected_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25549
25550    /**
25551     * Delete a given item from a flip selector widget.
25552     *
25553     * @param it The item to delete
25554     *
25555     * @ingroup Flipselector
25556     */
25557    EAPI void                       elm_flipselector_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25558
25559    /**
25560     * Get the label of a given flip selector widget's item.
25561     *
25562     * @param it The item to get label from
25563     * @return The text label of @p item or @c NULL, on errors
25564     *
25565     * @see elm_object_item_text_set()
25566     *
25567     * @deprecated see elm_object_item_text_get() instead
25568     * @ingroup Flipselector
25569     */
25570    EINA_DEPRECATED EAPI const char                *elm_flipselector_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25571
25572    /**
25573     * Set the label of a given flip selector widget's item.
25574     *
25575     * @param it The item to set label on
25576     * @param label The text label string, in UTF-8 encoding
25577     *
25578     * @see elm_object_item_text_get()
25579     *
25580          * @deprecated see elm_object_item_text_set() instead
25581     * @ingroup Flipselector
25582     */
25583    EINA_DEPRECATED EAPI void                       elm_flipselector_item_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
25584
25585    /**
25586     * Gets the item before @p item in a flip selector widget's
25587     * internal list of items.
25588     *
25589     * @param it The item to fetch previous from
25590     * @return The item before the @p item, in its parent's list. If
25591     *         there is no previous item for @p item or there's an
25592     *         error, @c NULL is returned.
25593     *
25594     * @see elm_flipselector_item_next_get()
25595     *
25596     * @ingroup Flipselector
25597     */
25598    EAPI Elm_Object_Item     *elm_flipselector_item_prev_get(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25599
25600    /**
25601     * Gets the item after @p item in a flip selector widget's
25602     * internal list of items.
25603     *
25604     * @param it The item to fetch next from
25605     * @return The item after the @p item, in its parent's list. If
25606     *         there is no next item for @p item or there's an
25607     *         error, @c NULL is returned.
25608     *
25609     * @see elm_flipselector_item_next_get()
25610     *
25611     * @ingroup Flipselector
25612     */
25613    EAPI Elm_Object_Item     *elm_flipselector_item_next_get(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25614
25615    /**
25616     * Set the interval on time updates for an user mouse button hold
25617     * on a flip selector widget.
25618     *
25619     * @param obj The flip selector object
25620     * @param interval The (first) interval value in seconds
25621     *
25622     * This interval value is @b decreased while the user holds the
25623     * mouse pointer either flipping up or flipping doww a given flip
25624     * selector.
25625     *
25626     * This helps the user to get to a given item distant from the
25627     * current one easier/faster, as it will start to flip quicker and
25628     * quicker on mouse button holds.
25629     *
25630     * The calculation for the next flip interval value, starting from
25631     * the one set with this call, is the previous interval divided by
25632     * 1.05, so it decreases a little bit.
25633     *
25634     * The default starting interval value for automatic flips is
25635     * @b 0.85 seconds.
25636     *
25637     * @see elm_flipselector_interval_get()
25638     *
25639     * @ingroup Flipselector
25640     */
25641    EAPI void                       elm_flipselector_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
25642
25643    /**
25644     * Get the interval on time updates for an user mouse button hold
25645     * on a flip selector widget.
25646     *
25647     * @param obj The flip selector object
25648     * @return The (first) interval value, in seconds, set on it
25649     *
25650     * @see elm_flipselector_interval_set() for more details
25651     *
25652     * @ingroup Flipselector
25653     */
25654    EAPI double                     elm_flipselector_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25655    /**
25656     * @}
25657     */
25658
25659    /**
25660     * @addtogroup Calendar
25661     * @{
25662     */
25663
25664    /**
25665     * @enum _Elm_Calendar_Mark_Repeat
25666     * @typedef Elm_Calendar_Mark_Repeat
25667     *
25668     * Event periodicity, used to define if a mark should be repeated
25669     * @b beyond event's day. It's set when a mark is added.
25670     *
25671     * So, for a mark added to 13th May with periodicity set to WEEKLY,
25672     * there will be marks every week after this date. Marks will be displayed
25673     * at 13th, 20th, 27th, 3rd June ...
25674     *
25675     * Values don't work as bitmask, only one can be choosen.
25676     *
25677     * @see elm_calendar_mark_add()
25678     *
25679     * @ingroup Calendar
25680     */
25681    typedef enum _Elm_Calendar_Mark_Repeat
25682      {
25683         ELM_CALENDAR_UNIQUE, /**< Default value. Marks will be displayed only on event day. */
25684         ELM_CALENDAR_DAILY, /**< Marks will be displayed everyday after event day (inclusive). */
25685         ELM_CALENDAR_WEEKLY, /**< Marks will be displayed every week after event day (inclusive) - i.e. each seven days. */
25686         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*/
25687         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. */
25688      } Elm_Calendar_Mark_Repeat;
25689
25690    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(). */
25691
25692    /**
25693     * Add a new calendar widget to the given parent Elementary
25694     * (container) object.
25695     *
25696     * @param parent The parent object.
25697     * @return a new calendar widget handle or @c NULL, on errors.
25698     *
25699     * This function inserts a new calendar widget on the canvas.
25700     *
25701     * @ref calendar_example_01
25702     *
25703     * @ingroup Calendar
25704     */
25705    EAPI Evas_Object       *elm_calendar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25706
25707    /**
25708     * Get weekdays names displayed by the calendar.
25709     *
25710     * @param obj The calendar object.
25711     * @return Array of seven strings to be used as weekday names.
25712     *
25713     * By default, weekdays abbreviations get from system are displayed:
25714     * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
25715     * The first string is related to Sunday, the second to Monday...
25716     *
25717     * @see elm_calendar_weekdays_name_set()
25718     *
25719     * @ref calendar_example_05
25720     *
25721     * @ingroup Calendar
25722     */
25723    EAPI const char       **elm_calendar_weekdays_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25724
25725    /**
25726     * Set weekdays names to be displayed by the calendar.
25727     *
25728     * @param obj The calendar object.
25729     * @param weekdays Array of seven strings to be used as weekday names.
25730     * @warning It must have 7 elements, or it will access invalid memory.
25731     * @warning The strings must be NULL terminated ('@\0').
25732     *
25733     * By default, weekdays abbreviations get from system are displayed:
25734     * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
25735     *
25736     * The first string should be related to Sunday, the second to Monday...
25737     *
25738     * The usage should be like this:
25739     * @code
25740     *   const char *weekdays[] =
25741     *   {
25742     *      "Sunday", "Monday", "Tuesday", "Wednesday",
25743     *      "Thursday", "Friday", "Saturday"
25744     *   };
25745     *   elm_calendar_weekdays_names_set(calendar, weekdays);
25746     * @endcode
25747     *
25748     * @see elm_calendar_weekdays_name_get()
25749     *
25750     * @ref calendar_example_02
25751     *
25752     * @ingroup Calendar
25753     */
25754    EAPI void               elm_calendar_weekdays_names_set(Evas_Object *obj, const char *weekdays[]) EINA_ARG_NONNULL(1, 2);
25755
25756    /**
25757     * Set the minimum and maximum values for the year
25758     *
25759     * @param obj The calendar object
25760     * @param min The minimum year, greater than 1901;
25761     * @param max The maximum year;
25762     *
25763     * Maximum must be greater than minimum, except if you don't wan't to set
25764     * maximum year.
25765     * Default values are 1902 and -1.
25766     *
25767     * If the maximum year is a negative value, it will be limited depending
25768     * on the platform architecture (year 2037 for 32 bits);
25769     *
25770     * @see elm_calendar_min_max_year_get()
25771     *
25772     * @ref calendar_example_03
25773     *
25774     * @ingroup Calendar
25775     */
25776    EAPI void               elm_calendar_min_max_year_set(Evas_Object *obj, int min, int max) EINA_ARG_NONNULL(1);
25777
25778    /**
25779     * Get the minimum and maximum values for the year
25780     *
25781     * @param obj The calendar object.
25782     * @param min The minimum year.
25783     * @param max The maximum year.
25784     *
25785     * Default values are 1902 and -1.
25786     *
25787     * @see elm_calendar_min_max_year_get() for more details.
25788     *
25789     * @ref calendar_example_05
25790     *
25791     * @ingroup Calendar
25792     */
25793    EAPI void               elm_calendar_min_max_year_get(const Evas_Object *obj, int *min, int *max) EINA_ARG_NONNULL(1);
25794
25795    /**
25796     * Enable or disable day selection
25797     *
25798     * @param obj The calendar object.
25799     * @param enabled @c EINA_TRUE to enable selection or @c EINA_FALSE to
25800     * disable it.
25801     *
25802     * Enabled by default. If disabled, the user still can select months,
25803     * but not days. Selected days are highlighted on calendar.
25804     * It should be used if you won't need such selection for the widget usage.
25805     *
25806     * When a day is selected, or month is changed, smart callbacks for
25807     * signal "changed" will be called.
25808     *
25809     * @see elm_calendar_day_selection_enable_get()
25810     *
25811     * @ref calendar_example_04
25812     *
25813     * @ingroup Calendar
25814     */
25815    EAPI void               elm_calendar_day_selection_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
25816
25817    /**
25818     * Get a value whether day selection is enabled or not.
25819     *
25820     * @see elm_calendar_day_selection_enable_set() for details.
25821     *
25822     * @param obj The calendar object.
25823     * @return EINA_TRUE means day selection is enabled. EINA_FALSE indicates
25824     * it's disabled. If @p obj is NULL, EINA_FALSE is returned.
25825     *
25826     * @ref calendar_example_05
25827     *
25828     * @ingroup Calendar
25829     */
25830    EAPI Eina_Bool          elm_calendar_day_selection_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25831
25832
25833    /**
25834     * Set selected date to be highlighted on calendar.
25835     *
25836     * @param obj The calendar object.
25837     * @param selected_time A @b tm struct to represent the selected date.
25838     *
25839     * Set the selected date, changing the displayed month if needed.
25840     * Selected date changes when the user goes to next/previous month or
25841     * select a day pressing over it on calendar.
25842     *
25843     * @see elm_calendar_selected_time_get()
25844     *
25845     * @ref calendar_example_04
25846     *
25847     * @ingroup Calendar
25848     */
25849    EAPI void               elm_calendar_selected_time_set(Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1);
25850
25851    /**
25852     * Get selected date.
25853     *
25854     * @param obj The calendar object
25855     * @param selected_time A @b tm struct to point to selected date
25856     * @return EINA_FALSE means an error ocurred and returned time shouldn't
25857     * be considered.
25858     *
25859     * Get date selected by the user or set by function
25860     * elm_calendar_selected_time_set().
25861     * Selected date changes when the user goes to next/previous month or
25862     * select a day pressing over it on calendar.
25863     *
25864     * @see elm_calendar_selected_time_get()
25865     *
25866     * @ref calendar_example_05
25867     *
25868     * @ingroup Calendar
25869     */
25870    EAPI Eina_Bool          elm_calendar_selected_time_get(const Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1, 2);
25871
25872    /**
25873     * Set a function to format the string that will be used to display
25874     * month and year;
25875     *
25876     * @param obj The calendar object
25877     * @param format_function Function to set the month-year string given
25878     * the selected date
25879     *
25880     * By default it uses strftime with "%B %Y" format string.
25881     * It should allocate the memory that will be used by the string,
25882     * that will be freed by the widget after usage.
25883     * A pointer to the string and a pointer to the time struct will be provided.
25884     *
25885     * Example:
25886     * @code
25887     * static char *
25888     * _format_month_year(struct tm *selected_time)
25889     * {
25890     *    char buf[32];
25891     *    if (!strftime(buf, sizeof(buf), "%B %Y", selected_time)) return NULL;
25892     *    return strdup(buf);
25893     * }
25894     *
25895     * elm_calendar_format_function_set(calendar, _format_month_year);
25896     * @endcode
25897     *
25898     * @ref calendar_example_02
25899     *
25900     * @ingroup Calendar
25901     */
25902    EAPI void               elm_calendar_format_function_set(Evas_Object *obj, char * (*format_function) (struct tm *stime)) EINA_ARG_NONNULL(1);
25903
25904    /**
25905     * Add a new mark to the calendar
25906     *
25907     * @param obj The calendar object
25908     * @param mark_type A string used to define the type of mark. It will be
25909     * emitted to the theme, that should display a related modification on these
25910     * days representation.
25911     * @param mark_time A time struct to represent the date of inclusion of the
25912     * mark. For marks that repeats it will just be displayed after the inclusion
25913     * date in the calendar.
25914     * @param repeat Repeat the event following this periodicity. Can be a unique
25915     * mark (that don't repeat), daily, weekly, monthly or annually.
25916     * @return The created mark or @p NULL upon failure.
25917     *
25918     * Add a mark that will be drawn in the calendar respecting the insertion
25919     * time and periodicity. It will emit the type as signal to the widget theme.
25920     * Default theme supports "holiday" and "checked", but it can be extended.
25921     *
25922     * It won't immediately update the calendar, drawing the marks.
25923     * For this, call elm_calendar_marks_draw(). However, when user selects
25924     * next or previous month calendar forces marks drawn.
25925     *
25926     * Marks created with this method can be deleted with
25927     * elm_calendar_mark_del().
25928     *
25929     * Example
25930     * @code
25931     * struct tm selected_time;
25932     * time_t current_time;
25933     *
25934     * current_time = time(NULL) + 5 * 84600;
25935     * localtime_r(&current_time, &selected_time);
25936     * elm_calendar_mark_add(cal, "holiday", selected_time,
25937     *     ELM_CALENDAR_ANNUALLY);
25938     *
25939     * current_time = time(NULL) + 1 * 84600;
25940     * localtime_r(&current_time, &selected_time);
25941     * elm_calendar_mark_add(cal, "checked", selected_time, ELM_CALENDAR_UNIQUE);
25942     *
25943     * elm_calendar_marks_draw(cal);
25944     * @endcode
25945     *
25946     * @see elm_calendar_marks_draw()
25947     * @see elm_calendar_mark_del()
25948     *
25949     * @ref calendar_example_06
25950     *
25951     * @ingroup Calendar
25952     */
25953    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);
25954
25955    /**
25956     * Delete mark from the calendar.
25957     *
25958     * @param mark The mark to be deleted.
25959     *
25960     * If deleting all calendar marks is required, elm_calendar_marks_clear()
25961     * should be used instead of getting marks list and deleting each one.
25962     *
25963     * @see elm_calendar_mark_add()
25964     *
25965     * @ref calendar_example_06
25966     *
25967     * @ingroup Calendar
25968     */
25969    EAPI void               elm_calendar_mark_del(Elm_Calendar_Mark *mark) EINA_ARG_NONNULL(1);
25970
25971    /**
25972     * Remove all calendar's marks
25973     *
25974     * @param obj The calendar object.
25975     *
25976     * @see elm_calendar_mark_add()
25977     * @see elm_calendar_mark_del()
25978     *
25979     * @ingroup Calendar
25980     */
25981    EAPI void               elm_calendar_marks_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
25982
25983
25984    /**
25985     * Get a list of all the calendar marks.
25986     *
25987     * @param obj The calendar object.
25988     * @return An @c Eina_List of calendar marks objects, or @c NULL on failure.
25989     *
25990     * @see elm_calendar_mark_add()
25991     * @see elm_calendar_mark_del()
25992     * @see elm_calendar_marks_clear()
25993     *
25994     * @ingroup Calendar
25995     */
25996    EAPI const Eina_List   *elm_calendar_marks_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25997
25998    /**
25999     * Draw calendar marks.
26000     *
26001     * @param obj The calendar object.
26002     *
26003     * Should be used after adding, removing or clearing marks.
26004     * It will go through the entire marks list updating the calendar.
26005     * If lots of marks will be added, add all the marks and then call
26006     * this function.
26007     *
26008     * When the month is changed, i.e. user selects next or previous month,
26009     * marks will be drawed.
26010     *
26011     * @see elm_calendar_mark_add()
26012     * @see elm_calendar_mark_del()
26013     * @see elm_calendar_marks_clear()
26014     *
26015     * @ref calendar_example_06
26016     *
26017     * @ingroup Calendar
26018     */
26019    EAPI void               elm_calendar_marks_draw(Evas_Object *obj) EINA_ARG_NONNULL(1);
26020
26021    /**
26022     * Set a day text color to the same that represents Saturdays.
26023     *
26024     * @param obj The calendar object.
26025     * @param pos The text position. Position is the cell counter, from left
26026     * to right, up to down. It starts on 0 and ends on 41.
26027     *
26028     * @deprecated use elm_calendar_mark_add() instead like:
26029     *
26030     * @code
26031     * struct tm t = { 0, 0, 12, 6, 0, 0, 6, 6, -1 };
26032     * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
26033     * @endcode
26034     *
26035     * @see elm_calendar_mark_add()
26036     *
26037     * @ingroup Calendar
26038     */
26039    EINA_DEPRECATED EAPI void               elm_calendar_text_saturday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
26040
26041    /**
26042     * Set a day text color to the same that represents Sundays.
26043     *
26044     * @param obj The calendar object.
26045     * @param pos The text position. Position is the cell counter, from left
26046     * to right, up to down. It starts on 0 and ends on 41.
26047
26048     * @deprecated use elm_calendar_mark_add() instead like:
26049     *
26050     * @code
26051     * struct tm t = { 0, 0, 12, 7, 0, 0, 0, 0, -1 };
26052     * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
26053     * @endcode
26054     *
26055     * @see elm_calendar_mark_add()
26056     *
26057     * @ingroup Calendar
26058     */
26059    EINA_DEPRECATED EAPI void               elm_calendar_text_sunday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
26060
26061    /**
26062     * Set a day text color to the same that represents Weekdays.
26063     *
26064     * @param obj The calendar object
26065     * @param pos The text position. Position is the cell counter, from left
26066     * to right, up to down. It starts on 0 and ends on 41.
26067     *
26068     * @deprecated use elm_calendar_mark_add() instead like:
26069     *
26070     * @code
26071     * struct tm t = { 0, 0, 12, 1, 0, 0, 0, 0, -1 };
26072     *
26073     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // monday
26074     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
26075     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // tuesday
26076     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
26077     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // wednesday
26078     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
26079     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // thursday
26080     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
26081     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // friday
26082     * @endcode
26083     *
26084     * @see elm_calendar_mark_add()
26085     *
26086     * @ingroup Calendar
26087     */
26088    EINA_DEPRECATED EAPI void               elm_calendar_text_weekday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
26089
26090    /**
26091     * Set the interval on time updates for an user mouse button hold
26092     * on calendar widgets' month selection.
26093     *
26094     * @param obj The calendar object
26095     * @param interval The (first) interval value in seconds
26096     *
26097     * This interval value is @b decreased while the user holds the
26098     * mouse pointer either selecting next or previous month.
26099     *
26100     * This helps the user to get to a given month distant from the
26101     * current one easier/faster, as it will start to change quicker and
26102     * quicker on mouse button holds.
26103     *
26104     * The calculation for the next change interval value, starting from
26105     * the one set with this call, is the previous interval divided by
26106     * 1.05, so it decreases a little bit.
26107     *
26108     * The default starting interval value for automatic changes is
26109     * @b 0.85 seconds.
26110     *
26111     * @see elm_calendar_interval_get()
26112     *
26113     * @ingroup Calendar
26114     */
26115    EAPI void               elm_calendar_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
26116
26117    /**
26118     * Get the interval on time updates for an user mouse button hold
26119     * on calendar widgets' month selection.
26120     *
26121     * @param obj The calendar object
26122     * @return The (first) interval value, in seconds, set on it
26123     *
26124     * @see elm_calendar_interval_set() for more details
26125     *
26126     * @ingroup Calendar
26127     */
26128    EAPI double             elm_calendar_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26129
26130    /**
26131     * @}
26132     */
26133
26134    /**
26135     * @defgroup Diskselector Diskselector
26136     * @ingroup Elementary
26137     *
26138     * @image html img/widget/diskselector/preview-00.png
26139     * @image latex img/widget/diskselector/preview-00.eps
26140     *
26141     * A diskselector is a kind of list widget. It scrolls horizontally,
26142     * and can contain label and icon objects. Three items are displayed
26143     * with the selected one in the middle.
26144     *
26145     * It can act like a circular list with round mode and labels can be
26146     * reduced for a defined length for side items.
26147     *
26148     * Smart callbacks one can listen to:
26149     * - "selected" - when item is selected, i.e. scroller stops.
26150     *
26151     * Available styles for it:
26152     * - @c "default"
26153     *
26154     * List of examples:
26155     * @li @ref diskselector_example_01
26156     * @li @ref diskselector_example_02
26157     */
26158
26159    /**
26160     * @addtogroup Diskselector
26161     * @{
26162     */
26163
26164    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(). */
26165
26166    /**
26167     * Add a new diskselector widget to the given parent Elementary
26168     * (container) object.
26169     *
26170     * @param parent The parent object.
26171     * @return a new diskselector widget handle or @c NULL, on errors.
26172     *
26173     * This function inserts a new diskselector widget on the canvas.
26174     *
26175     * @ingroup Diskselector
26176     */
26177    EAPI Evas_Object           *elm_diskselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26178
26179    /**
26180     * Enable or disable round mode.
26181     *
26182     * @param obj The diskselector object.
26183     * @param round @c EINA_TRUE to enable round mode or @c EINA_FALSE to
26184     * disable it.
26185     *
26186     * Disabled by default. If round mode is enabled the items list will
26187     * work like a circle list, so when the user reaches the last item,
26188     * the first one will popup.
26189     *
26190     * @see elm_diskselector_round_get()
26191     *
26192     * @ingroup Diskselector
26193     */
26194    EAPI void                   elm_diskselector_round_set(Evas_Object *obj, Eina_Bool round) EINA_ARG_NONNULL(1);
26195
26196    /**
26197     * Get a value whether round mode is enabled or not.
26198     *
26199     * @see elm_diskselector_round_set() for details.
26200     *
26201     * @param obj The diskselector object.
26202     * @return @c EINA_TRUE means round mode is enabled. @c EINA_FALSE indicates
26203     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
26204     *
26205     * @ingroup Diskselector
26206     */
26207    EAPI Eina_Bool              elm_diskselector_round_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26208
26209    /**
26210     * Get the side labels max length.
26211     *
26212     * @deprecated use elm_diskselector_side_label_length_get() instead:
26213     *
26214     * @param obj The diskselector object.
26215     * @return The max length defined for side labels, or 0 if not a valid
26216     * diskselector.
26217     *
26218     * @ingroup Diskselector
26219     */
26220    EINA_DEPRECATED EAPI int    elm_diskselector_side_label_lenght_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26221
26222    /**
26223     * Set the side labels max length.
26224     *
26225     * @deprecated use elm_diskselector_side_label_length_set() instead:
26226     *
26227     * @param obj The diskselector object.
26228     * @param len The max length defined for side labels.
26229     *
26230     * @ingroup Diskselector
26231     */
26232    EINA_DEPRECATED EAPI void   elm_diskselector_side_label_lenght_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
26233
26234    /**
26235     * Get the side labels max length.
26236     *
26237     * @see elm_diskselector_side_label_length_set() for details.
26238     *
26239     * @param obj The diskselector object.
26240     * @return The max length defined for side labels, or 0 if not a valid
26241     * diskselector.
26242     *
26243     * @ingroup Diskselector
26244     */
26245    EAPI int                    elm_diskselector_side_label_length_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26246
26247    /**
26248     * Set the side labels max length.
26249     *
26250     * @param obj The diskselector object.
26251     * @param len The max length defined for side labels.
26252     *
26253     * Length is the number of characters of items' label that will be
26254     * visible when it's set on side positions. It will just crop
26255     * the string after defined size. E.g.:
26256     *
26257     * An item with label "January" would be displayed on side position as
26258     * "Jan" if max length is set to 3, or "Janu", if this property
26259     * is set to 4.
26260     *
26261     * When it's selected, the entire label will be displayed, except for
26262     * width restrictions. In this case label will be cropped and "..."
26263     * will be concatenated.
26264     *
26265     * Default side label max length is 3.
26266     *
26267     * This property will be applyed over all items, included before or
26268     * later this function call.
26269     *
26270     * @ingroup Diskselector
26271     */
26272    EAPI void                   elm_diskselector_side_label_length_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
26273
26274    /**
26275     * Set the number of items to be displayed.
26276     *
26277     * @param obj The diskselector object.
26278     * @param num The number of items the diskselector will display.
26279     *
26280     * Default value is 3, and also it's the minimun. If @p num is less
26281     * than 3, it will be set to 3.
26282     *
26283     * Also, it can be set on theme, using data item @c display_item_num
26284     * on group "elm/diskselector/item/X", where X is style set.
26285     * E.g.:
26286     *
26287     * group { name: "elm/diskselector/item/X";
26288     * data {
26289     *     item: "display_item_num" "5";
26290     *     }
26291     *
26292     * @ingroup Diskselector
26293     */
26294    EAPI void                   elm_diskselector_display_item_num_set(Evas_Object *obj, int num) EINA_ARG_NONNULL(1);
26295
26296    /**
26297     * Get the number of items in the diskselector object.
26298     *
26299     * @param obj The diskselector object.
26300     *
26301     * @ingroup Diskselector
26302     */
26303    EAPI int                   elm_diskselector_display_item_num_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26304
26305    /**
26306     * Set bouncing behaviour when the scrolled content reaches an edge.
26307     *
26308     * Tell the internal scroller object whether it should bounce or not
26309     * when it reaches the respective edges for each axis.
26310     *
26311     * @param obj The diskselector object.
26312     * @param h_bounce Whether to bounce or not in the horizontal axis.
26313     * @param v_bounce Whether to bounce or not in the vertical axis.
26314     *
26315     * @see elm_scroller_bounce_set()
26316     *
26317     * @ingroup Diskselector
26318     */
26319    EAPI void                   elm_diskselector_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
26320
26321    /**
26322     * Get the bouncing behaviour of the internal scroller.
26323     *
26324     * Get whether the internal scroller should bounce when the edge of each
26325     * axis is reached scrolling.
26326     *
26327     * @param obj The diskselector object.
26328     * @param h_bounce Pointer where to store the bounce state of the horizontal
26329     * axis.
26330     * @param v_bounce Pointer where to store the bounce state of the vertical
26331     * axis.
26332     *
26333     * @see elm_scroller_bounce_get()
26334     * @see elm_diskselector_bounce_set()
26335     *
26336     * @ingroup Diskselector
26337     */
26338    EAPI void                   elm_diskselector_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
26339
26340    /**
26341     * Get the scrollbar policy.
26342     *
26343     * @see elm_diskselector_scroller_policy_get() for details.
26344     *
26345     * @param obj The diskselector object.
26346     * @param policy_h Pointer where to store horizontal scrollbar policy.
26347     * @param policy_v Pointer where to store vertical scrollbar policy.
26348     *
26349     * @ingroup Diskselector
26350     */
26351    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);
26352
26353    /**
26354     * Set the scrollbar policy.
26355     *
26356     * @param obj The diskselector object.
26357     * @param policy_h Horizontal scrollbar policy.
26358     * @param policy_v Vertical scrollbar policy.
26359     *
26360     * This sets the scrollbar visibility policy for the given scroller.
26361     * #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it
26362     * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
26363     * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
26364     * This applies respectively for the horizontal and vertical scrollbars.
26365     *
26366     * The both are disabled by default, i.e., are set to
26367     * #ELM_SCROLLER_POLICY_OFF.
26368     *
26369     * @ingroup Diskselector
26370     */
26371    EAPI void                   elm_diskselector_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
26372
26373    /**
26374     * Remove all diskselector's items.
26375     *
26376     * @param obj The diskselector object.
26377     *
26378     * @see elm_diskselector_item_del()
26379     * @see elm_diskselector_item_append()
26380     *
26381     * @ingroup Diskselector
26382     */
26383    EAPI void                   elm_diskselector_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
26384
26385    /**
26386     * Get a list of all the diskselector items.
26387     *
26388     * @param obj The diskselector object.
26389     * @return An @c Eina_List of diskselector items, #Elm_Diskselector_Item,
26390     * or @c NULL on failure.
26391     *
26392     * @see elm_diskselector_item_append()
26393     * @see elm_diskselector_item_del()
26394     * @see elm_diskselector_clear()
26395     *
26396     * @ingroup Diskselector
26397     */
26398    EAPI const Eina_List       *elm_diskselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26399
26400    /**
26401     * Appends a new item to the diskselector object.
26402     *
26403     * @param obj The diskselector object.
26404     * @param label The label of the diskselector item.
26405     * @param icon The icon object to use at left side of the item. An
26406     * icon can be any Evas object, but usually it is an icon created
26407     * with elm_icon_add().
26408     * @param func The function to call when the item is selected.
26409     * @param data The data to associate with the item for related callbacks.
26410     *
26411     * @return The created item or @c NULL upon failure.
26412     *
26413     * A new item will be created and appended to the diskselector, i.e., will
26414     * be set as last item. Also, if there is no selected item, it will
26415     * be selected. This will always happens for the first appended item.
26416     *
26417     * If no icon is set, label will be centered on item position, otherwise
26418     * the icon will be placed at left of the label, that will be shifted
26419     * to the right.
26420     *
26421     * Items created with this method can be deleted with
26422     * elm_diskselector_item_del().
26423     *
26424     * Associated @p data can be properly freed when item is deleted if a
26425     * callback function is set with elm_diskselector_item_del_cb_set().
26426     *
26427     * If a function is passed as argument, it will be called everytime this item
26428     * is selected, i.e., the user stops the diskselector with this
26429     * item on center position. If such function isn't needed, just passing
26430     * @c NULL as @p func is enough. The same should be done for @p data.
26431     *
26432     * Simple example (with no function callback or data associated):
26433     * @code
26434     * disk = elm_diskselector_add(win);
26435     * ic = elm_icon_add(win);
26436     * elm_icon_file_set(ic, "path/to/image", NULL);
26437     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
26438     * elm_diskselector_item_append(disk, "label", ic, NULL, NULL);
26439     * @endcode
26440     *
26441     * @see elm_diskselector_item_del()
26442     * @see elm_diskselector_item_del_cb_set()
26443     * @see elm_diskselector_clear()
26444     * @see elm_icon_add()
26445     *
26446     * @ingroup Diskselector
26447     */
26448    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);
26449
26450
26451    /**
26452     * Delete them item from the diskselector.
26453     *
26454     * @param it The item of diskselector to be deleted.
26455     *
26456     * If deleting all diskselector items is required, elm_diskselector_clear()
26457     * should be used instead of getting items list and deleting each one.
26458     *
26459     * @see elm_diskselector_clear()
26460     * @see elm_diskselector_item_append()
26461     * @see elm_diskselector_item_del_cb_set()
26462     *
26463     * @ingroup Diskselector
26464     */
26465    EAPI void                   elm_diskselector_item_del(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26466
26467    /**
26468     * Set the function called when a diskselector item is freed.
26469     *
26470     * @param it The item to set the callback on
26471     * @param func The function called
26472     *
26473     * If there is a @p func, then it will be called prior item's memory release.
26474     * That will be called with the following arguments:
26475     * @li item's data;
26476     * @li item's Evas object;
26477     * @li item itself;
26478     *
26479     * This way, a data associated to a diskselector item could be properly
26480     * freed.
26481     *
26482     * @ingroup Diskselector
26483     */
26484    EAPI void                   elm_diskselector_item_del_cb_set(Elm_Diskselector_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
26485
26486    /**
26487     * Get the data associated to the item.
26488     *
26489     * @param it The diskselector item
26490     * @return The data associated to @p it
26491     *
26492     * The return value is a pointer to data associated to @p item when it was
26493     * created, with function elm_diskselector_item_append(). If no data
26494     * was passed as argument, it will return @c NULL.
26495     *
26496     * @see elm_diskselector_item_append()
26497     *
26498     * @ingroup Diskselector
26499     */
26500    EAPI void                  *elm_diskselector_item_data_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26501
26502    /**
26503     * Set the icon associated to the item.
26504     *
26505     * @param it The diskselector item
26506     * @param icon The icon object to associate with @p it
26507     *
26508     * The icon object to use at left side of the item. An
26509     * icon can be any Evas object, but usually it is an icon created
26510     * with elm_icon_add().
26511     *
26512     * Once the icon object is set, a previously set one will be deleted.
26513     * @warning Setting the same icon for two items will cause the icon to
26514     * dissapear from the first item.
26515     *
26516     * If an icon was passed as argument on item creation, with function
26517     * elm_diskselector_item_append(), it will be already
26518     * associated to the item.
26519     *
26520     * @see elm_diskselector_item_append()
26521     * @see elm_diskselector_item_icon_get()
26522     *
26523     * @ingroup Diskselector
26524     */
26525    EAPI void                   elm_diskselector_item_icon_set(Elm_Diskselector_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
26526
26527    /**
26528     * Get the icon associated to the item.
26529     *
26530     * @param it The diskselector item
26531     * @return The icon associated to @p it
26532     *
26533     * The return value is a pointer to the icon associated to @p item when it was
26534     * created, with function elm_diskselector_item_append(), or later
26535     * with function elm_diskselector_item_icon_set. If no icon
26536     * was passed as argument, it will return @c NULL.
26537     *
26538     * @see elm_diskselector_item_append()
26539     * @see elm_diskselector_item_icon_set()
26540     *
26541     * @ingroup Diskselector
26542     */
26543    EAPI Evas_Object           *elm_diskselector_item_icon_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26544
26545    /**
26546     * Set the label of item.
26547     *
26548     * @param it The item of diskselector.
26549     * @param label The label of item.
26550     *
26551     * The label to be displayed by the item.
26552     *
26553     * If no icon is set, label will be centered on item position, otherwise
26554     * the icon will be placed at left of the label, that will be shifted
26555     * to the right.
26556     *
26557     * An item with label "January" would be displayed on side position as
26558     * "Jan" if max length is set to 3 with function
26559     * elm_diskselector_side_label_lenght_set(), or "Janu", if this property
26560     * is set to 4.
26561     *
26562     * When this @p item is selected, the entire label will be displayed,
26563     * except for width restrictions.
26564     * In this case label will be cropped and "..." will be concatenated,
26565     * but only for display purposes. It will keep the entire string, so
26566     * if diskselector is resized the remaining characters will be displayed.
26567     *
26568     * If a label was passed as argument on item creation, with function
26569     * elm_diskselector_item_append(), it will be already
26570     * displayed by the item.
26571     *
26572     * @see elm_diskselector_side_label_lenght_set()
26573     * @see elm_diskselector_item_label_get()
26574     * @see elm_diskselector_item_append()
26575     *
26576     * @ingroup Diskselector
26577     */
26578    EAPI void                   elm_diskselector_item_label_set(Elm_Diskselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
26579
26580    /**
26581     * Get the label of item.
26582     *
26583     * @param it The item of diskselector.
26584     * @return The label of item.
26585     *
26586     * The return value is a pointer to the label associated to @p item when it was
26587     * created, with function elm_diskselector_item_append(), or later
26588     * with function elm_diskselector_item_label_set. If no label
26589     * was passed as argument, it will return @c NULL.
26590     *
26591     * @see elm_diskselector_item_label_set() for more details.
26592     * @see elm_diskselector_item_append()
26593     *
26594     * @ingroup Diskselector
26595     */
26596    EAPI const char            *elm_diskselector_item_label_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26597
26598    /**
26599     * Get the selected item.
26600     *
26601     * @param obj The diskselector object.
26602     * @return The selected diskselector item.
26603     *
26604     * The selected item can be unselected with function
26605     * elm_diskselector_item_selected_set(), and the first item of
26606     * diskselector will be selected.
26607     *
26608     * The selected item always will be centered on diskselector, with
26609     * full label displayed, i.e., max lenght set to side labels won't
26610     * apply on the selected item. More details on
26611     * elm_diskselector_side_label_length_set().
26612     *
26613     * @ingroup Diskselector
26614     */
26615    EAPI Elm_Diskselector_Item *elm_diskselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26616
26617    /**
26618     * Set the selected state of an item.
26619     *
26620     * @param it The diskselector item
26621     * @param selected The selected state
26622     *
26623     * This sets the selected state of the given item @p it.
26624     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
26625     *
26626     * If a new item is selected the previosly selected will be unselected.
26627     * Previoulsy selected item can be get with function
26628     * elm_diskselector_selected_item_get().
26629     *
26630     * If the item @p it is unselected, the first item of diskselector will
26631     * be selected.
26632     *
26633     * Selected items will be visible on center position of diskselector.
26634     * So if it was on another position before selected, or was invisible,
26635     * diskselector will animate items until the selected item reaches center
26636     * position.
26637     *
26638     * @see elm_diskselector_item_selected_get()
26639     * @see elm_diskselector_selected_item_get()
26640     *
26641     * @ingroup Diskselector
26642     */
26643    EAPI void                   elm_diskselector_item_selected_set(Elm_Diskselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
26644
26645    /*
26646     * Get whether the @p item is selected or not.
26647     *
26648     * @param it The diskselector item.
26649     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
26650     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
26651     *
26652     * @see elm_diskselector_selected_item_set() for details.
26653     * @see elm_diskselector_item_selected_get()
26654     *
26655     * @ingroup Diskselector
26656     */
26657    EAPI Eina_Bool              elm_diskselector_item_selected_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26658
26659    /**
26660     * Get the first item of the diskselector.
26661     *
26662     * @param obj The diskselector object.
26663     * @return The first item, or @c NULL if none.
26664     *
26665     * The list of items follows append order. So it will return the first
26666     * item appended to the widget that wasn't deleted.
26667     *
26668     * @see elm_diskselector_item_append()
26669     * @see elm_diskselector_items_get()
26670     *
26671     * @ingroup Diskselector
26672     */
26673    EAPI Elm_Diskselector_Item *elm_diskselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26674
26675    /**
26676     * Get the last item of the diskselector.
26677     *
26678     * @param obj The diskselector object.
26679     * @return The last item, or @c NULL if none.
26680     *
26681     * The list of items follows append order. So it will return last first
26682     * item appended to the widget that wasn't deleted.
26683     *
26684     * @see elm_diskselector_item_append()
26685     * @see elm_diskselector_items_get()
26686     *
26687     * @ingroup Diskselector
26688     */
26689    EAPI Elm_Diskselector_Item *elm_diskselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26690
26691    /**
26692     * Get the item before @p item in diskselector.
26693     *
26694     * @param it The diskselector item.
26695     * @return The item before @p item, or @c NULL if none or on failure.
26696     *
26697     * The list of items follows append order. So it will return item appended
26698     * just before @p item and that wasn't deleted.
26699     *
26700     * If it is the first item, @c NULL will be returned.
26701     * First item can be get by elm_diskselector_first_item_get().
26702     *
26703     * @see elm_diskselector_item_append()
26704     * @see elm_diskselector_items_get()
26705     *
26706     * @ingroup Diskselector
26707     */
26708    EAPI Elm_Diskselector_Item *elm_diskselector_item_prev_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26709
26710    /**
26711     * Get the item after @p item in diskselector.
26712     *
26713     * @param it The diskselector item.
26714     * @return The item after @p item, or @c NULL if none or on failure.
26715     *
26716     * The list of items follows append order. So it will return item appended
26717     * just after @p item and that wasn't deleted.
26718     *
26719     * If it is the last item, @c NULL will be returned.
26720     * Last item can be get by elm_diskselector_last_item_get().
26721     *
26722     * @see elm_diskselector_item_append()
26723     * @see elm_diskselector_items_get()
26724     *
26725     * @ingroup Diskselector
26726     */
26727    EAPI Elm_Diskselector_Item *elm_diskselector_item_next_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26728
26729    /**
26730     * Set the text to be shown in the diskselector item.
26731     *
26732     * @param item Target item
26733     * @param text The text to set in the content
26734     *
26735     * Setup the text as tooltip to object. The item can have only one tooltip,
26736     * so any previous tooltip data is removed.
26737     *
26738     * @see elm_object_tooltip_text_set() for more details.
26739     *
26740     * @ingroup Diskselector
26741     */
26742    EAPI void                   elm_diskselector_item_tooltip_text_set(Elm_Diskselector_Item *item, const char *text) EINA_ARG_NONNULL(1);
26743
26744    /**
26745     * Set the content to be shown in the tooltip item.
26746     *
26747     * Setup the tooltip to item. The item can have only one tooltip,
26748     * so any previous tooltip data is removed. @p func(with @p data) will
26749     * be called every time that need show the tooltip and it should
26750     * return a valid Evas_Object. This object is then managed fully by
26751     * tooltip system and is deleted when the tooltip is gone.
26752     *
26753     * @param item the diskselector item being attached a tooltip.
26754     * @param func the function used to create the tooltip contents.
26755     * @param data what to provide to @a func as callback data/context.
26756     * @param del_cb called when data is not needed anymore, either when
26757     *        another callback replaces @p func, the tooltip is unset with
26758     *        elm_diskselector_item_tooltip_unset() or the owner @a item
26759     *        dies. This callback receives as the first parameter the
26760     *        given @a data, and @c event_info is the item.
26761     *
26762     * @see elm_object_tooltip_content_cb_set() for more details.
26763     *
26764     * @ingroup Diskselector
26765     */
26766    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);
26767
26768    /**
26769     * Unset tooltip from item.
26770     *
26771     * @param item diskselector item to remove previously set tooltip.
26772     *
26773     * Remove tooltip from item. The callback provided as del_cb to
26774     * elm_diskselector_item_tooltip_content_cb_set() will be called to notify
26775     * it is not used anymore.
26776     *
26777     * @see elm_object_tooltip_unset() for more details.
26778     * @see elm_diskselector_item_tooltip_content_cb_set()
26779     *
26780     * @ingroup Diskselector
26781     */
26782    EAPI void                   elm_diskselector_item_tooltip_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26783
26784
26785    /**
26786     * Sets a different style for this item tooltip.
26787     *
26788     * @note before you set a style you should define a tooltip with
26789     *       elm_diskselector_item_tooltip_content_cb_set() or
26790     *       elm_diskselector_item_tooltip_text_set()
26791     *
26792     * @param item diskselector item with tooltip already set.
26793     * @param style the theme style to use (default, transparent, ...)
26794     *
26795     * @see elm_object_tooltip_style_set() for more details.
26796     *
26797     * @ingroup Diskselector
26798     */
26799    EAPI void                   elm_diskselector_item_tooltip_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
26800
26801    /**
26802     * Get the style for this item tooltip.
26803     *
26804     * @param item diskselector item with tooltip already set.
26805     * @return style the theme style in use, defaults to "default". If the
26806     *         object does not have a tooltip set, then NULL is returned.
26807     *
26808     * @see elm_object_tooltip_style_get() for more details.
26809     * @see elm_diskselector_item_tooltip_style_set()
26810     *
26811     * @ingroup Diskselector
26812     */
26813    EAPI const char            *elm_diskselector_item_tooltip_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26814
26815    /**
26816     * Set the cursor to be shown when mouse is over the diskselector item
26817     *
26818     * @param item Target item
26819     * @param cursor the cursor name to be used.
26820     *
26821     * @see elm_object_cursor_set() for more details.
26822     *
26823     * @ingroup Diskselector
26824     */
26825    EAPI void                   elm_diskselector_item_cursor_set(Elm_Diskselector_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
26826
26827    /**
26828     * Get the cursor to be shown when mouse is over the diskselector item
26829     *
26830     * @param item diskselector item with cursor already set.
26831     * @return the cursor name.
26832     *
26833     * @see elm_object_cursor_get() for more details.
26834     * @see elm_diskselector_cursor_set()
26835     *
26836     * @ingroup Diskselector
26837     */
26838    EAPI const char            *elm_diskselector_item_cursor_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26839
26840
26841    /**
26842     * Unset the cursor to be shown when mouse is over the diskselector item
26843     *
26844     * @param item Target item
26845     *
26846     * @see elm_object_cursor_unset() for more details.
26847     * @see elm_diskselector_cursor_set()
26848     *
26849     * @ingroup Diskselector
26850     */
26851    EAPI void                   elm_diskselector_item_cursor_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26852
26853    /**
26854     * Sets a different style for this item cursor.
26855     *
26856     * @note before you set a style you should define a cursor with
26857     *       elm_diskselector_item_cursor_set()
26858     *
26859     * @param item diskselector item with cursor already set.
26860     * @param style the theme style to use (default, transparent, ...)
26861     *
26862     * @see elm_object_cursor_style_set() for more details.
26863     *
26864     * @ingroup Diskselector
26865     */
26866    EAPI void                   elm_diskselector_item_cursor_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
26867
26868
26869    /**
26870     * Get the style for this item cursor.
26871     *
26872     * @param item diskselector item with cursor already set.
26873     * @return style the theme style in use, defaults to "default". If the
26874     *         object does not have a cursor set, then @c NULL is returned.
26875     *
26876     * @see elm_object_cursor_style_get() for more details.
26877     * @see elm_diskselector_item_cursor_style_set()
26878     *
26879     * @ingroup Diskselector
26880     */
26881    EAPI const char            *elm_diskselector_item_cursor_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26882
26883
26884    /**
26885     * Set if the cursor set should be searched on the theme or should use
26886     * the provided by the engine, only.
26887     *
26888     * @note before you set if should look on theme you should define a cursor
26889     * with elm_diskselector_item_cursor_set().
26890     * By default it will only look for cursors provided by the engine.
26891     *
26892     * @param item widget item with cursor already set.
26893     * @param engine_only boolean to define if cursors set with
26894     * elm_diskselector_item_cursor_set() should be searched only
26895     * between cursors provided by the engine or searched on widget's
26896     * theme as well.
26897     *
26898     * @see elm_object_cursor_engine_only_set() for more details.
26899     *
26900     * @ingroup Diskselector
26901     */
26902    EAPI void                   elm_diskselector_item_cursor_engine_only_set(Elm_Diskselector_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
26903
26904    /**
26905     * Get the cursor engine only usage for this item cursor.
26906     *
26907     * @param item widget item with cursor already set.
26908     * @return engine_only boolean to define it cursors should be looked only
26909     * between the provided by the engine or searched on widget's theme as well.
26910     * If the item does not have a cursor set, then @c EINA_FALSE is returned.
26911     *
26912     * @see elm_object_cursor_engine_only_get() for more details.
26913     * @see elm_diskselector_item_cursor_engine_only_set()
26914     *
26915     * @ingroup Diskselector
26916     */
26917    EAPI Eina_Bool              elm_diskselector_item_cursor_engine_only_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26918
26919    /**
26920     * @}
26921     */
26922
26923    /**
26924     * @defgroup Colorselector Colorselector
26925     *
26926     * @{
26927     *
26928     * @image html img/widget/colorselector/preview-00.png
26929     * @image latex img/widget/colorselector/preview-00.eps
26930     *
26931     * @brief Widget for user to select a color.
26932     *
26933     * Signals that you can add callbacks for are:
26934     * "changed" - When the color value changes(event_info is NULL).
26935     *
26936     * See @ref tutorial_colorselector.
26937     */
26938    /**
26939     * @brief Add a new colorselector to the parent
26940     *
26941     * @param parent The parent object
26942     * @return The new object or NULL if it cannot be created
26943     *
26944     * @ingroup Colorselector
26945     */
26946    EAPI Evas_Object *elm_colorselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26947    /**
26948     * Set a color for the colorselector
26949     *
26950     * @param obj   Colorselector object
26951     * @param r     r-value of color
26952     * @param g     g-value of color
26953     * @param b     b-value of color
26954     * @param a     a-value of color
26955     *
26956     * @ingroup Colorselector
26957     */
26958    EAPI void         elm_colorselector_color_set(Evas_Object *obj, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
26959    /**
26960     * Get a color from the colorselector
26961     *
26962     * @param obj   Colorselector object
26963     * @param r     integer pointer for r-value of color
26964     * @param g     integer pointer for g-value of color
26965     * @param b     integer pointer for b-value of color
26966     * @param a     integer pointer for a-value of color
26967     *
26968     * @ingroup Colorselector
26969     */
26970    EAPI void         elm_colorselector_color_get(const Evas_Object *obj, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
26971    /**
26972     * @}
26973     */
26974
26975    /**
26976     * @defgroup Ctxpopup Ctxpopup
26977     *
26978     * @image html img/widget/ctxpopup/preview-00.png
26979     * @image latex img/widget/ctxpopup/preview-00.eps
26980     *
26981     * @brief Context popup widet.
26982     *
26983     * A ctxpopup is a widget that, when shown, pops up a list of items.
26984     * It automatically chooses an area inside its parent object's view
26985     * (set via elm_ctxpopup_add() and elm_ctxpopup_hover_parent_set()) to
26986     * optimally fit into it. In the default theme, it will also point an
26987     * arrow to it's top left position at the time one shows it. Ctxpopup
26988     * items have a label and/or an icon. It is intended for a small
26989     * number of items (hence the use of list, not genlist).
26990     *
26991     * @note Ctxpopup is a especialization of @ref Hover.
26992     *
26993     * Signals that you can add callbacks for are:
26994     * "dismissed" - the ctxpopup was dismissed
26995     *
26996     * Default contents parts of the ctxpopup widget that you can use for are:
26997     * @li "default" - A content of the ctxpopup
26998     *
26999     * Default contents parts of the naviframe items that you can use for are:
27000     * @li "icon" - An icon in the title area
27001     *
27002     * Default text parts of the naviframe items that you can use for are:
27003     * @li "default" - Title label in the title area
27004     *
27005     * @ref tutorial_ctxpopup shows the usage of a good deal of the API.
27006     * @{
27007     */
27008
27009    /**
27010     * @addtogroup Ctxpopup
27011     * @{
27012     */
27013
27014    typedef enum _Elm_Ctxpopup_Direction
27015      {
27016         ELM_CTXPOPUP_DIRECTION_DOWN, /**< ctxpopup show appear below clicked
27017                                           area */
27018         ELM_CTXPOPUP_DIRECTION_RIGHT, /**< ctxpopup show appear to the right of
27019                                            the clicked area */
27020         ELM_CTXPOPUP_DIRECTION_LEFT, /**< ctxpopup show appear to the left of
27021                                           the clicked area */
27022         ELM_CTXPOPUP_DIRECTION_UP, /**< ctxpopup show appear above the clicked
27023                                         area */
27024         ELM_CTXPOPUP_DIRECTION_UNKNOWN, /**< ctxpopup does not determine it's direction yet*/
27025      } Elm_Ctxpopup_Direction;
27026
27027    /**
27028     * @brief Add a new Ctxpopup object to the parent.
27029     *
27030     * @param parent Parent object
27031     * @return New object or @c NULL, if it cannot be created
27032     *
27033     * @ingroup Ctxpopup
27034     */
27035    EAPI Evas_Object  *elm_ctxpopup_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
27036    /**
27037     * @brief Set the Ctxpopup's parent
27038     *
27039     * @param obj The ctxpopup object
27040     * @param area The parent to use
27041     *
27042     * Set the parent object.
27043     *
27044     * @note elm_ctxpopup_add() will automatically call this function
27045     * with its @c parent argument.
27046     *
27047     * @see elm_ctxpopup_add()
27048     * @see elm_hover_parent_set()
27049     *
27050     * @ingroup Ctxpopup
27051     */
27052    EAPI void          elm_ctxpopup_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1, 2);
27053    /**
27054     * @brief Get the Ctxpopup's parent
27055     *
27056     * @param obj The ctxpopup object
27057     *
27058     * @see elm_ctxpopup_hover_parent_set() for more information
27059     *
27060     * @ingroup Ctxpopup
27061     */
27062    EAPI Evas_Object  *elm_ctxpopup_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27063    /**
27064     * @brief Clear all items in the given ctxpopup object.
27065     *
27066     * @param obj Ctxpopup object
27067     *
27068     * @ingroup Ctxpopup
27069     */
27070    EAPI void          elm_ctxpopup_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
27071    /**
27072     * @brief Change the ctxpopup's orientation to horizontal or vertical.
27073     *
27074     * @param obj Ctxpopup object
27075     * @param horizontal @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical
27076     *
27077     * @ingroup Ctxpopup
27078     */
27079    EAPI void          elm_ctxpopup_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
27080    /**
27081     * @brief Get the value of current ctxpopup object's orientation.
27082     *
27083     * @param obj Ctxpopup object
27084     * @return @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical mode (or errors)
27085     *
27086     * @see elm_ctxpopup_horizontal_set()
27087     *
27088     * @ingroup Ctxpopup
27089     */
27090    EAPI Eina_Bool     elm_ctxpopup_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27091    /**
27092     * @brief Add a new item to a ctxpopup object.
27093     *
27094     * @param obj Ctxpopup object
27095     * @param icon Icon to be set on new item
27096     * @param label The Label of the new item
27097     * @param func Convenience function called when item selected
27098     * @param data Data passed to @p func
27099     * @return A handle to the item added or @c NULL, on errors
27100     *
27101     * @warning Ctxpopup can't hold both an item list and a content at the same
27102     * time. When an item is added, any previous content will be removed.
27103     *
27104     * @see elm_ctxpopup_content_set()
27105     *
27106     * @ingroup Ctxpopup
27107     */
27108    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);
27109    /**
27110     * @brief Delete the given item in a ctxpopup object.
27111     *
27112     * @param it Ctxpopup item to be deleted
27113     *
27114     * @see elm_ctxpopup_item_append()
27115     *
27116     * @ingroup Ctxpopup
27117     */
27118    EAPI void          elm_ctxpopup_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
27119    /**
27120     * @brief Set the ctxpopup item's state as disabled or enabled.
27121     *
27122     * @param it Ctxpopup item to be enabled/disabled
27123     * @param disabled @c EINA_TRUE to disable it, @c EINA_FALSE to enable it
27124     *
27125     * When disabled the item is greyed out to indicate it's state.
27126     * @deprecated use elm_object_item_disabled_set() instead
27127     *
27128     * @ingroup Ctxpopup
27129     */
27130    EINA_DEPRECATED EAPI void          elm_ctxpopup_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
27131    /**
27132     * @brief Get the ctxpopup item's disabled/enabled state.
27133     *
27134     * @param it Ctxpopup item to be enabled/disabled
27135     * @return disabled @c EINA_TRUE, if disabled, @c EINA_FALSE otherwise
27136     *
27137     * @see elm_ctxpopup_item_disabled_set()
27138     * @deprecated use elm_object_item_disabled_get() instead
27139     *
27140     * @ingroup Ctxpopup
27141     */
27142    EAPI Eina_Bool     elm_ctxpopup_item_disabled_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
27143    /**
27144     * @brief Get the icon object for the given ctxpopup item.
27145     *
27146     * @param it Ctxpopup item
27147     * @return icon object or @c NULL, if the item does not have icon or an error
27148     * occurred
27149     *
27150     * @see elm_ctxpopup_item_append()
27151     * @see elm_ctxpopup_item_icon_set()
27152     *
27153     * @deprecated use elm_object_item_part_content_get() instead
27154     *
27155     * @ingroup Ctxpopup
27156     */
27157    EINA_DEPRECATED EAPI Evas_Object  *elm_ctxpopup_item_icon_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
27158    /**
27159     * @brief Sets the side icon associated with the ctxpopup item
27160     *
27161     * @param it Ctxpopup item
27162     * @param icon Icon object to be set
27163     *
27164     * Once the icon object is set, a previously set one will be deleted.
27165     * @warning Setting the same icon for two items will cause the icon to
27166     * dissapear from the first item.
27167     *
27168     * @see elm_ctxpopup_item_append()
27169     *
27170     * @deprecated use elm_object_item_part_content_set() instead
27171     *
27172     * @ingroup Ctxpopup
27173     */
27174    EINA_DEPRECATED EAPI void          elm_ctxpopup_item_icon_set(Elm_Object_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
27175    /**
27176     * @brief Get the label for the given ctxpopup item.
27177     *
27178     * @param it Ctxpopup item
27179     * @return label string or @c NULL, if the item does not have label or an
27180     * error occured
27181     *
27182     * @see elm_ctxpopup_item_append()
27183     * @see elm_ctxpopup_item_label_set()
27184     *
27185     * @deprecated use elm_object_item_text_get() instead
27186     *
27187     * @ingroup Ctxpopup
27188     */
27189    EINA_DEPRECATED EAPI const char   *elm_ctxpopup_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
27190    /**
27191     * @brief (Re)set the label on the given ctxpopup item.
27192     *
27193     * @param it Ctxpopup item
27194     * @param label String to set as label
27195     *
27196     * @deprecated use elm_object_item_text_set() instead
27197     *
27198     * @ingroup Ctxpopup
27199     */
27200    EINA_DEPRECATED EAPI void          elm_ctxpopup_item_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
27201    /**
27202     * @brief Set an elm widget as the content of the ctxpopup.
27203     *
27204     * @param obj Ctxpopup object
27205     * @param content Content to be swallowed
27206     *
27207     * If the content object is already set, a previous one will bedeleted. If
27208     * you want to keep that old content object, use the
27209     * elm_ctxpopup_content_unset() function.
27210     *
27211     * @warning Ctxpopup can't hold both a item list and a content at the same
27212     * time. When a content is set, any previous items will be removed.
27213     *
27214     * @deprecated use elm_object_content_set() instead
27215     *
27216     * @ingroup Ctxpopup
27217     */
27218    EINA_DEPRECATED EAPI void          elm_ctxpopup_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1, 2);
27219    /**
27220     * @brief Unset the ctxpopup content
27221     *
27222     * @param obj Ctxpopup object
27223     * @return The content that was being used
27224     *
27225     * Unparent and return the content object which was set for this widget.
27226     *
27227     * @deprecated use elm_object_content_unset()
27228     *
27229     * @see elm_ctxpopup_content_set()
27230     *
27231     * @deprecated use elm_object_content_unset() instead
27232     *
27233     * @ingroup Ctxpopup
27234     */
27235    EINA_DEPRECATED EAPI Evas_Object  *elm_ctxpopup_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
27236    /**
27237     * @brief Set the direction priority of a ctxpopup.
27238     *
27239     * @param obj Ctxpopup object
27240     * @param first 1st priority of direction
27241     * @param second 2nd priority of direction
27242     * @param third 3th priority of direction
27243     * @param fourth 4th priority of direction
27244     *
27245     * This functions gives a chance to user to set the priority of ctxpopup
27246     * showing direction. This doesn't guarantee the ctxpopup will appear in the
27247     * requested direction.
27248     *
27249     * @see Elm_Ctxpopup_Direction
27250     *
27251     * @ingroup Ctxpopup
27252     */
27253    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);
27254    /**
27255     * @brief Get the direction priority of a ctxpopup.
27256     *
27257     * @param obj Ctxpopup object
27258     * @param first 1st priority of direction to be returned
27259     * @param second 2nd priority of direction to be returned
27260     * @param third 3th priority of direction to be returned
27261     * @param fourth 4th priority of direction to be returned
27262     *
27263     * @see elm_ctxpopup_direction_priority_set() for more information.
27264     *
27265     * @ingroup Ctxpopup
27266     */
27267    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);
27268
27269    /**
27270     * @brief Get the current direction of a ctxpopup.
27271     *
27272     * @param obj Ctxpopup object
27273     * @return current direction of a ctxpopup
27274     *
27275     * @warning Once the ctxpopup showed up, the direction would be determined
27276     *
27277     * @ingroup Ctxpopup
27278     */
27279    EAPI Elm_Ctxpopup_Direction elm_ctxpopup_direction_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27280
27281    /**
27282     * @}
27283     */
27284
27285    /* transit */
27286    /**
27287     *
27288     * @defgroup Transit Transit
27289     * @ingroup Elementary
27290     *
27291     * Transit is designed to apply various animated transition effects to @c
27292     * Evas_Object, such like translation, rotation, etc. For using these
27293     * effects, create an @ref Elm_Transit and add the desired transition effects.
27294     *
27295     * Once the effects are added into transit, they will be automatically
27296     * managed (their callback will be called until the duration is ended, and
27297     * they will be deleted on completion).
27298     *
27299     * Example:
27300     * @code
27301     * Elm_Transit *trans = elm_transit_add();
27302     * elm_transit_object_add(trans, obj);
27303     * elm_transit_effect_translation_add(trans, 0, 0, 280, 280
27304     * elm_transit_duration_set(transit, 1);
27305     * elm_transit_auto_reverse_set(transit, EINA_TRUE);
27306     * elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
27307     * elm_transit_repeat_times_set(transit, 3);
27308     * @endcode
27309     *
27310     * Some transition effects are used to change the properties of objects. They
27311     * are:
27312     * @li @ref elm_transit_effect_translation_add
27313     * @li @ref elm_transit_effect_color_add
27314     * @li @ref elm_transit_effect_rotation_add
27315     * @li @ref elm_transit_effect_wipe_add
27316     * @li @ref elm_transit_effect_zoom_add
27317     * @li @ref elm_transit_effect_resizing_add
27318     *
27319     * Other transition effects are used to make one object disappear and another
27320     * object appear on its old place. These effects are:
27321     *
27322     * @li @ref elm_transit_effect_flip_add
27323     * @li @ref elm_transit_effect_resizable_flip_add
27324     * @li @ref elm_transit_effect_fade_add
27325     * @li @ref elm_transit_effect_blend_add
27326     *
27327     * It's also possible to make a transition chain with @ref
27328     * elm_transit_chain_transit_add.
27329     *
27330     * @warning We strongly recommend to use elm_transit just when edje can not do
27331     * the trick. Edje has more advantage than Elm_Transit, it has more flexibility and
27332     * animations can be manipulated inside the theme.
27333     *
27334     * List of examples:
27335     * @li @ref transit_example_01_explained
27336     * @li @ref transit_example_02_explained
27337     * @li @ref transit_example_03_c
27338     * @li @ref transit_example_04_c
27339     *
27340     * @{
27341     */
27342
27343    /**
27344     * @enum Elm_Transit_Tween_Mode
27345     *
27346     * The type of acceleration used in the transition.
27347     */
27348    typedef enum
27349      {
27350         ELM_TRANSIT_TWEEN_MODE_LINEAR, /**< Constant speed */
27351         ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL, /**< Starts slow, increase speed
27352                                              over time, then decrease again
27353                                              and stop slowly */
27354         ELM_TRANSIT_TWEEN_MODE_DECELERATE, /**< Starts fast and decrease
27355                                              speed over time */
27356         ELM_TRANSIT_TWEEN_MODE_ACCELERATE /**< Starts slow and increase speed
27357                                             over time */
27358      } Elm_Transit_Tween_Mode;
27359
27360    /**
27361     * @enum Elm_Transit_Effect_Flip_Axis
27362     *
27363     * The axis where flip effect should be applied.
27364     */
27365    typedef enum
27366      {
27367         ELM_TRANSIT_EFFECT_FLIP_AXIS_X, /**< Flip on X axis */
27368         ELM_TRANSIT_EFFECT_FLIP_AXIS_Y /**< Flip on Y axis */
27369      } Elm_Transit_Effect_Flip_Axis;
27370    /**
27371     * @enum Elm_Transit_Effect_Wipe_Dir
27372     *
27373     * The direction where the wipe effect should occur.
27374     */
27375    typedef enum
27376      {
27377         ELM_TRANSIT_EFFECT_WIPE_DIR_LEFT, /**< Wipe to the left */
27378         ELM_TRANSIT_EFFECT_WIPE_DIR_RIGHT, /**< Wipe to the right */
27379         ELM_TRANSIT_EFFECT_WIPE_DIR_UP, /**< Wipe up */
27380         ELM_TRANSIT_EFFECT_WIPE_DIR_DOWN /**< Wipe down */
27381      } Elm_Transit_Effect_Wipe_Dir;
27382    /** @enum Elm_Transit_Effect_Wipe_Type
27383     *
27384     * Whether the wipe effect should show or hide the object.
27385     */
27386    typedef enum
27387      {
27388         ELM_TRANSIT_EFFECT_WIPE_TYPE_HIDE, /**< Hide the object during the
27389                                              animation */
27390         ELM_TRANSIT_EFFECT_WIPE_TYPE_SHOW /**< Show the object during the
27391                                             animation */
27392      } Elm_Transit_Effect_Wipe_Type;
27393
27394    /**
27395     * @typedef Elm_Transit
27396     *
27397     * The Transit created with elm_transit_add(). This type has the information
27398     * about the objects which the transition will be applied, and the
27399     * transition effects that will be used. It also contains info about
27400     * duration, number of repetitions, auto-reverse, etc.
27401     */
27402    typedef struct _Elm_Transit Elm_Transit;
27403    typedef void Elm_Transit_Effect;
27404    /**
27405     * @typedef Elm_Transit_Effect_Transition_Cb
27406     *
27407     * Transition callback called for this effect on each transition iteration.
27408     */
27409    typedef void (*Elm_Transit_Effect_Transition_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit, double progress);
27410    /**
27411     * Elm_Transit_Effect_End_Cb
27412     *
27413     * Transition callback called for this effect when the transition is over.
27414     */
27415    typedef void (*Elm_Transit_Effect_End_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit);
27416
27417    /**
27418     * Elm_Transit_Del_Cb
27419     *
27420     * A callback called when the transit is deleted.
27421     */
27422    typedef void (*Elm_Transit_Del_Cb) (void *data, Elm_Transit *transit);
27423
27424    /**
27425     * Add new transit.
27426     *
27427     * @note Is not necessary to delete the transit object, it will be deleted at
27428     * the end of its operation.
27429     * @note The transit will start playing when the program enter in the main loop, is not
27430     * necessary to give a start to the transit.
27431     *
27432     * @return The transit object.
27433     *
27434     * @ingroup Transit
27435     */
27436    EAPI Elm_Transit                *elm_transit_add(void);
27437
27438    /**
27439     * Stops the animation and delete the @p transit object.
27440     *
27441     * Call this function if you wants to stop the animation before the duration
27442     * time. Make sure the @p transit object is still alive with
27443     * elm_transit_del_cb_set() function.
27444     * All added effects will be deleted, calling its repective data_free_cb
27445     * functions. The function setted by elm_transit_del_cb_set() will be called.
27446     *
27447     * @see elm_transit_del_cb_set()
27448     *
27449     * @param transit The transit object to be deleted.
27450     *
27451     * @ingroup Transit
27452     * @warning Just call this function if you are sure the transit is alive.
27453     */
27454    EAPI void                        elm_transit_del(Elm_Transit *transit) EINA_ARG_NONNULL(1);
27455
27456    /**
27457     * Add a new effect to the transit.
27458     *
27459     * @note The cb function and the data are the key to the effect. If you try to
27460     * add an already added effect, nothing is done.
27461     * @note After the first addition of an effect in @p transit, if its
27462     * effect list become empty again, the @p transit will be killed by
27463     * elm_transit_del(transit) function.
27464     *
27465     * Exemple:
27466     * @code
27467     * Elm_Transit *transit = elm_transit_add();
27468     * elm_transit_effect_add(transit,
27469     *                        elm_transit_effect_blend_op,
27470     *                        elm_transit_effect_blend_context_new(),
27471     *                        elm_transit_effect_blend_context_free);
27472     * @endcode
27473     *
27474     * @param transit The transit object.
27475     * @param transition_cb The operation function. It is called when the
27476     * animation begins, it is the function that actually performs the animation.
27477     * It is called with the @p data, @p transit and the time progression of the
27478     * animation (a double value between 0.0 and 1.0).
27479     * @param effect The context data of the effect.
27480     * @param end_cb The function to free the context data, it will be called
27481     * at the end of the effect, it must finalize the animation and free the
27482     * @p data.
27483     *
27484     * @ingroup Transit
27485     * @warning The transit free the context data at the and of the transition with
27486     * the data_free_cb function, do not use the context data in another transit.
27487     */
27488    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);
27489
27490    /**
27491     * Delete an added effect.
27492     *
27493     * This function will remove the effect from the @p transit, calling the
27494     * data_free_cb to free the @p data.
27495     *
27496     * @see elm_transit_effect_add()
27497     *
27498     * @note If the effect is not found, nothing is done.
27499     * @note If the effect list become empty, this function will call
27500     * elm_transit_del(transit), that is, it will kill the @p transit.
27501     *
27502     * @param transit The transit object.
27503     * @param transition_cb The operation function.
27504     * @param effect The context data of the effect.
27505     *
27506     * @ingroup Transit
27507     */
27508    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);
27509
27510    /**
27511     * Add new object to apply the effects.
27512     *
27513     * @note After the first addition of an object in @p transit, if its
27514     * object list become empty again, the @p transit will be killed by
27515     * elm_transit_del(transit) function.
27516     * @note If the @p obj belongs to another transit, the @p obj will be
27517     * removed from it and it will only belong to the @p transit. If the old
27518     * transit stays without objects, it will die.
27519     * @note When you add an object into the @p transit, its state from
27520     * evas_object_pass_events_get(obj) is saved, and it is applied when the
27521     * transit ends, if you change this state whith evas_object_pass_events_set()
27522     * after add the object, this state will change again when @p transit stops to
27523     * run.
27524     *
27525     * @param transit The transit object.
27526     * @param obj Object to be animated.
27527     *
27528     * @ingroup Transit
27529     * @warning It is not allowed to add a new object after transit begins to go.
27530     */
27531    EAPI void                        elm_transit_object_add(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
27532
27533    /**
27534     * Removes an added object from the transit.
27535     *
27536     * @note If the @p obj is not in the @p transit, nothing is done.
27537     * @note If the list become empty, this function will call
27538     * elm_transit_del(transit), that is, it will kill the @p transit.
27539     *
27540     * @param transit The transit object.
27541     * @param obj Object to be removed from @p transit.
27542     *
27543     * @ingroup Transit
27544     * @warning It is not allowed to remove objects after transit begins to go.
27545     */
27546    EAPI void                        elm_transit_object_remove(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
27547
27548    /**
27549     * Get the objects of the transit.
27550     *
27551     * @param transit The transit object.
27552     * @return a Eina_List with the objects from the transit.
27553     *
27554     * @ingroup Transit
27555     */
27556    EAPI const Eina_List            *elm_transit_objects_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27557
27558    /**
27559     * Enable/disable keeping up the objects states.
27560     * If it is not kept, the objects states will be reset when transition ends.
27561     *
27562     * @note @p transit can not be NULL.
27563     * @note One state includes geometry, color, map data.
27564     *
27565     * @param transit The transit object.
27566     * @param state_keep Keeping or Non Keeping.
27567     *
27568     * @ingroup Transit
27569     */
27570    EAPI void                        elm_transit_objects_final_state_keep_set(Elm_Transit *transit, Eina_Bool state_keep) EINA_ARG_NONNULL(1);
27571
27572    /**
27573     * Get a value whether the objects states will be reset or not.
27574     *
27575     * @note @p transit can not be NULL
27576     *
27577     * @see elm_transit_objects_final_state_keep_set()
27578     *
27579     * @param transit The transit object.
27580     * @return EINA_TRUE means the states of the objects will be reset.
27581     * If @p transit is NULL, EINA_FALSE is returned
27582     *
27583     * @ingroup Transit
27584     */
27585    EAPI Eina_Bool                   elm_transit_objects_final_state_keep_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27586
27587    /**
27588     * Set the event enabled when transit is operating.
27589     *
27590     * If @p enabled is EINA_TRUE, the objects of the transit will receives
27591     * events from mouse and keyboard during the animation.
27592     * @note When you add an object with elm_transit_object_add(), its state from
27593     * evas_object_pass_events_get(obj) is saved, and it is applied when the
27594     * transit ends, if you change this state with evas_object_pass_events_set()
27595     * after adding the object, this state will change again when @p transit stops
27596     * to run.
27597     *
27598     * @param transit The transit object.
27599     * @param enabled Events are received when enabled is @c EINA_TRUE, and
27600     * ignored otherwise.
27601     *
27602     * @ingroup Transit
27603     */
27604    EAPI void                        elm_transit_event_enabled_set(Elm_Transit *transit, Eina_Bool enabled) EINA_ARG_NONNULL(1);
27605
27606    /**
27607     * Get the value of event enabled status.
27608     *
27609     * @see elm_transit_event_enabled_set()
27610     *
27611     * @param transit The Transit object
27612     * @return EINA_TRUE, when event is enabled. If @p transit is NULL
27613     * EINA_FALSE is returned
27614     *
27615     * @ingroup Transit
27616     */
27617    EAPI Eina_Bool                   elm_transit_event_enabled_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27618
27619    /**
27620     * Set the user-callback function when the transit is deleted.
27621     *
27622     * @note Using this function twice will overwrite the first function setted.
27623     * @note the @p transit object will be deleted after call @p cb function.
27624     *
27625     * @param transit The transit object.
27626     * @param cb Callback function pointer. This function will be called before
27627     * the deletion of the transit.
27628     * @param data Callback funtion user data. It is the @p op parameter.
27629     *
27630     * @ingroup Transit
27631     */
27632    EAPI void                        elm_transit_del_cb_set(Elm_Transit *transit, Elm_Transit_Del_Cb cb, void *data) EINA_ARG_NONNULL(1);
27633
27634    /**
27635     * Set reverse effect automatically.
27636     *
27637     * If auto reverse is setted, after running the effects with the progress
27638     * parameter from 0 to 1, it will call the effecs again with the progress
27639     * from 1 to 0. The transit will last for a time iqual to (2 * duration * repeat),
27640     * where the duration was setted with the function elm_transit_add and
27641     * the repeat with the function elm_transit_repeat_times_set().
27642     *
27643     * @param transit The transit object.
27644     * @param reverse EINA_TRUE means the auto_reverse is on.
27645     *
27646     * @ingroup Transit
27647     */
27648    EAPI void                        elm_transit_auto_reverse_set(Elm_Transit *transit, Eina_Bool reverse) EINA_ARG_NONNULL(1);
27649
27650    /**
27651     * Get if the auto reverse is on.
27652     *
27653     * @see elm_transit_auto_reverse_set()
27654     *
27655     * @param transit The transit object.
27656     * @return EINA_TRUE means auto reverse is on. If @p transit is NULL
27657     * EINA_FALSE is returned
27658     *
27659     * @ingroup Transit
27660     */
27661    EAPI Eina_Bool                   elm_transit_auto_reverse_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27662
27663    /**
27664     * Set the transit repeat count. Effect will be repeated by repeat count.
27665     *
27666     * This function sets the number of repetition the transit will run after
27667     * the first one, that is, if @p repeat is 1, the transit will run 2 times.
27668     * If the @p repeat is a negative number, it will repeat infinite times.
27669     *
27670     * @note If this function is called during the transit execution, the transit
27671     * will run @p repeat times, ignoring the times it already performed.
27672     *
27673     * @param transit The transit object
27674     * @param repeat Repeat count
27675     *
27676     * @ingroup Transit
27677     */
27678    EAPI void                        elm_transit_repeat_times_set(Elm_Transit *transit, int repeat) EINA_ARG_NONNULL(1);
27679
27680    /**
27681     * Get the transit repeat count.
27682     *
27683     * @see elm_transit_repeat_times_set()
27684     *
27685     * @param transit The Transit object.
27686     * @return The repeat count. If @p transit is NULL
27687     * 0 is returned
27688     *
27689     * @ingroup Transit
27690     */
27691    EAPI int                         elm_transit_repeat_times_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27692
27693    /**
27694     * Set the transit animation acceleration type.
27695     *
27696     * This function sets the tween mode of the transit that can be:
27697     * ELM_TRANSIT_TWEEN_MODE_LINEAR - The default mode.
27698     * ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL - Starts in accelerate mode and ends decelerating.
27699     * ELM_TRANSIT_TWEEN_MODE_DECELERATE - The animation will be slowed over time.
27700     * ELM_TRANSIT_TWEEN_MODE_ACCELERATE - The animation will accelerate over time.
27701     *
27702     * @param transit The transit object.
27703     * @param tween_mode The tween type.
27704     *
27705     * @ingroup Transit
27706     */
27707    EAPI void                        elm_transit_tween_mode_set(Elm_Transit *transit, Elm_Transit_Tween_Mode tween_mode) EINA_ARG_NONNULL(1);
27708
27709    /**
27710     * Get the transit animation acceleration type.
27711     *
27712     * @note @p transit can not be NULL
27713     *
27714     * @param transit The transit object.
27715     * @return The tween type. If @p transit is NULL
27716     * ELM_TRANSIT_TWEEN_MODE_LINEAR is returned.
27717     *
27718     * @ingroup Transit
27719     */
27720    EAPI Elm_Transit_Tween_Mode      elm_transit_tween_mode_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27721
27722    /**
27723     * Set the transit animation time
27724     *
27725     * @note @p transit can not be NULL
27726     *
27727     * @param transit The transit object.
27728     * @param duration The animation time.
27729     *
27730     * @ingroup Transit
27731     */
27732    EAPI void                        elm_transit_duration_set(Elm_Transit *transit, double duration) EINA_ARG_NONNULL(1);
27733
27734    /**
27735     * Get the transit animation time
27736     *
27737     * @note @p transit can not be NULL
27738     *
27739     * @param transit The transit object.
27740     *
27741     * @return The transit animation time.
27742     *
27743     * @ingroup Transit
27744     */
27745    EAPI double                      elm_transit_duration_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27746
27747    /**
27748     * Starts the transition.
27749     * Once this API is called, the transit begins to measure the time.
27750     *
27751     * @note @p transit can not be NULL
27752     *
27753     * @param transit The transit object.
27754     *
27755     * @ingroup Transit
27756     */
27757    EAPI void                        elm_transit_go(Elm_Transit *transit) EINA_ARG_NONNULL(1);
27758
27759    /**
27760     * Pause/Resume the transition.
27761     *
27762     * If you call elm_transit_go again, the transit will be started from the
27763     * beginning, and will be unpaused.
27764     *
27765     * @note @p transit can not be NULL
27766     *
27767     * @param transit The transit object.
27768     * @param paused Whether the transition should be paused or not.
27769     *
27770     * @ingroup Transit
27771     */
27772    EAPI void                        elm_transit_paused_set(Elm_Transit *transit, Eina_Bool paused) EINA_ARG_NONNULL(1);
27773
27774    /**
27775     * Get the value of paused status.
27776     *
27777     * @see elm_transit_paused_set()
27778     *
27779     * @note @p transit can not be NULL
27780     *
27781     * @param transit The transit object.
27782     * @return EINA_TRUE means transition is paused. If @p transit is NULL
27783     * EINA_FALSE is returned
27784     *
27785     * @ingroup Transit
27786     */
27787    EAPI Eina_Bool                   elm_transit_paused_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27788
27789    /**
27790     * Get the time progression of the animation (a double value between 0.0 and 1.0).
27791     *
27792     * The value returned is a fraction (current time / total time). It
27793     * represents the progression position relative to the total.
27794     *
27795     * @note @p transit can not be NULL
27796     *
27797     * @param transit The transit object.
27798     *
27799     * @return The time progression value. If @p transit is NULL
27800     * 0 is returned
27801     *
27802     * @ingroup Transit
27803     */
27804    EAPI double                      elm_transit_progress_value_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27805
27806    /**
27807     * Makes the chain relationship between two transits.
27808     *
27809     * @note @p transit can not be NULL. Transit would have multiple chain transits.
27810     * @note @p chain_transit can not be NULL. Chain transits could be chained to the only one transit.
27811     *
27812     * @param transit The transit object.
27813     * @param chain_transit The chain transit object. This transit will be operated
27814     *        after transit is done.
27815     *
27816     * This function adds @p chain_transit transition to a chain after the @p
27817     * transit, and will be started as soon as @p transit ends. See @ref
27818     * transit_example_02_explained for a full example.
27819     *
27820     * @ingroup Transit
27821     */
27822    EAPI void                        elm_transit_chain_transit_add(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1, 2);
27823
27824    /**
27825     * Cut off the chain relationship between two transits.
27826     *
27827     * @note @p transit can not be NULL. Transit would have the chain relationship with @p chain transit.
27828     * @note @p chain_transit can not be NULL. Chain transits should be chained to the @p transit.
27829     *
27830     * @param transit The transit object.
27831     * @param chain_transit The chain transit object.
27832     *
27833     * This function remove the @p chain_transit transition from the @p transit.
27834     *
27835     * @ingroup Transit
27836     */
27837    EAPI void                        elm_transit_chain_transit_del(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1,2);
27838
27839    /**
27840     * Get the current chain transit list.
27841     *
27842     * @note @p transit can not be NULL.
27843     *
27844     * @param transit The transit object.
27845     * @return chain transit list.
27846     *
27847     * @ingroup Transit
27848     */
27849    EAPI Eina_List                  *elm_transit_chain_transits_get(const Elm_Transit *transit);
27850
27851    /**
27852     * Add the Resizing Effect to Elm_Transit.
27853     *
27854     * @note This API is one of the facades. It creates resizing effect context
27855     * and add it's required APIs to elm_transit_effect_add.
27856     *
27857     * @see elm_transit_effect_add()
27858     *
27859     * @param transit Transit object.
27860     * @param from_w Object width size when effect begins.
27861     * @param from_h Object height size when effect begins.
27862     * @param to_w Object width size when effect ends.
27863     * @param to_h Object height size when effect ends.
27864     * @return Resizing effect context data.
27865     *
27866     * @ingroup Transit
27867     */
27868    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);
27869
27870    /**
27871     * Add the Translation Effect to Elm_Transit.
27872     *
27873     * @note This API is one of the facades. It creates translation effect context
27874     * and add it's required APIs to elm_transit_effect_add.
27875     *
27876     * @see elm_transit_effect_add()
27877     *
27878     * @param transit Transit object.
27879     * @param from_dx X Position variation when effect begins.
27880     * @param from_dy Y Position variation when effect begins.
27881     * @param to_dx X Position variation when effect ends.
27882     * @param to_dy Y Position variation when effect ends.
27883     * @return Translation effect context data.
27884     *
27885     * @ingroup Transit
27886     * @warning It is highly recommended just create a transit with this effect when
27887     * the window that the objects of the transit belongs has already been created.
27888     * This is because this effect needs the geometry information about the objects,
27889     * and if the window was not created yet, it can get a wrong information.
27890     */
27891    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);
27892
27893    /**
27894     * Add the Zoom Effect to Elm_Transit.
27895     *
27896     * @note This API is one of the facades. It creates zoom effect context
27897     * and add it's required APIs to elm_transit_effect_add.
27898     *
27899     * @see elm_transit_effect_add()
27900     *
27901     * @param transit Transit object.
27902     * @param from_rate Scale rate when effect begins (1 is current rate).
27903     * @param to_rate Scale rate when effect ends.
27904     * @return Zoom effect context data.
27905     *
27906     * @ingroup Transit
27907     * @warning It is highly recommended just create a transit with this effect when
27908     * the window that the objects of the transit belongs has already been created.
27909     * This is because this effect needs the geometry information about the objects,
27910     * and if the window was not created yet, it can get a wrong information.
27911     */
27912    EAPI Elm_Transit_Effect *elm_transit_effect_zoom_add(Elm_Transit *transit, float from_rate, float to_rate);
27913
27914    /**
27915     * Add the Flip Effect to Elm_Transit.
27916     *
27917     * @note This API is one of the facades. It creates flip effect context
27918     * and add it's required APIs to elm_transit_effect_add.
27919     * @note This effect is applied to each pair of objects in the order they are listed
27920     * in the transit list of objects. The first object in the pair will be the
27921     * "front" object and the second will be the "back" object.
27922     *
27923     * @see elm_transit_effect_add()
27924     *
27925     * @param transit Transit object.
27926     * @param axis Flipping Axis(X or Y).
27927     * @param cw Flipping Direction. EINA_TRUE is clock-wise.
27928     * @return Flip effect context data.
27929     *
27930     * @ingroup Transit
27931     * @warning It is highly recommended just create a transit with this effect when
27932     * the window that the objects of the transit belongs has already been created.
27933     * This is because this effect needs the geometry information about the objects,
27934     * and if the window was not created yet, it can get a wrong information.
27935     */
27936    EAPI Elm_Transit_Effect *elm_transit_effect_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
27937
27938    /**
27939     * Add the Resizable Flip Effect to Elm_Transit.
27940     *
27941     * @note This API is one of the facades. It creates resizable flip effect context
27942     * and add it's required APIs to elm_transit_effect_add.
27943     * @note This effect is applied to each pair of objects in the order they are listed
27944     * in the transit list of objects. The first object in the pair will be the
27945     * "front" object and the second will be the "back" object.
27946     *
27947     * @see elm_transit_effect_add()
27948     *
27949     * @param transit Transit object.
27950     * @param axis Flipping Axis(X or Y).
27951     * @param cw Flipping Direction. EINA_TRUE is clock-wise.
27952     * @return Resizable flip effect context data.
27953     *
27954     * @ingroup Transit
27955     * @warning It is highly recommended just create a transit with this effect when
27956     * the window that the objects of the transit belongs has already been created.
27957     * This is because this effect needs the geometry information about the objects,
27958     * and if the window was not created yet, it can get a wrong information.
27959     */
27960    EAPI Elm_Transit_Effect *elm_transit_effect_resizable_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
27961
27962    /**
27963     * Add the Wipe Effect to Elm_Transit.
27964     *
27965     * @note This API is one of the facades. It creates wipe effect context
27966     * and add it's required APIs to elm_transit_effect_add.
27967     *
27968     * @see elm_transit_effect_add()
27969     *
27970     * @param transit Transit object.
27971     * @param type Wipe type. Hide or show.
27972     * @param dir Wipe Direction.
27973     * @return Wipe effect context data.
27974     *
27975     * @ingroup Transit
27976     * @warning It is highly recommended just create a transit with this effect when
27977     * the window that the objects of the transit belongs has already been created.
27978     * This is because this effect needs the geometry information about the objects,
27979     * and if the window was not created yet, it can get a wrong information.
27980     */
27981    EAPI Elm_Transit_Effect *elm_transit_effect_wipe_add(Elm_Transit *transit, Elm_Transit_Effect_Wipe_Type type, Elm_Transit_Effect_Wipe_Dir dir);
27982
27983    /**
27984     * Add the Color Effect to Elm_Transit.
27985     *
27986     * @note This API is one of the facades. It creates color effect context
27987     * and add it's required APIs to elm_transit_effect_add.
27988     *
27989     * @see elm_transit_effect_add()
27990     *
27991     * @param transit        Transit object.
27992     * @param  from_r        RGB R when effect begins.
27993     * @param  from_g        RGB G when effect begins.
27994     * @param  from_b        RGB B when effect begins.
27995     * @param  from_a        RGB A when effect begins.
27996     * @param  to_r          RGB R when effect ends.
27997     * @param  to_g          RGB G when effect ends.
27998     * @param  to_b          RGB B when effect ends.
27999     * @param  to_a          RGB A when effect ends.
28000     * @return               Color effect context data.
28001     *
28002     * @ingroup Transit
28003     */
28004    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);
28005
28006    /**
28007     * Add the Fade Effect to Elm_Transit.
28008     *
28009     * @note This API is one of the facades. It creates fade effect context
28010     * and add it's required APIs to elm_transit_effect_add.
28011     * @note This effect is applied to each pair of objects in the order they are listed
28012     * in the transit list of objects. The first object in the pair will be the
28013     * "before" object and the second will be the "after" object.
28014     *
28015     * @see elm_transit_effect_add()
28016     *
28017     * @param transit Transit object.
28018     * @return Fade effect context data.
28019     *
28020     * @ingroup Transit
28021     * @warning It is highly recommended just create a transit with this effect when
28022     * the window that the objects of the transit belongs has already been created.
28023     * This is because this effect needs the color information about the objects,
28024     * and if the window was not created yet, it can get a wrong information.
28025     */
28026    EAPI Elm_Transit_Effect *elm_transit_effect_fade_add(Elm_Transit *transit);
28027
28028    /**
28029     * Add the Blend Effect to Elm_Transit.
28030     *
28031     * @note This API is one of the facades. It creates blend effect context
28032     * and add it's required APIs to elm_transit_effect_add.
28033     * @note This effect is applied to each pair of objects in the order they are listed
28034     * in the transit list of objects. The first object in the pair will be the
28035     * "before" object and the second will be the "after" object.
28036     *
28037     * @see elm_transit_effect_add()
28038     *
28039     * @param transit Transit object.
28040     * @return Blend effect context data.
28041     *
28042     * @ingroup Transit
28043     * @warning It is highly recommended just create a transit with this effect when
28044     * the window that the objects of the transit belongs has already been created.
28045     * This is because this effect needs the color information about the objects,
28046     * and if the window was not created yet, it can get a wrong information.
28047     */
28048    EAPI Elm_Transit_Effect *elm_transit_effect_blend_add(Elm_Transit *transit);
28049
28050    /**
28051     * Add the Rotation Effect to Elm_Transit.
28052     *
28053     * @note This API is one of the facades. It creates rotation effect context
28054     * and add it's required APIs to elm_transit_effect_add.
28055     *
28056     * @see elm_transit_effect_add()
28057     *
28058     * @param transit Transit object.
28059     * @param from_degree Degree when effect begins.
28060     * @param to_degree Degree when effect is ends.
28061     * @return Rotation effect context data.
28062     *
28063     * @ingroup Transit
28064     * @warning It is highly recommended just create a transit with this effect when
28065     * the window that the objects of the transit belongs has already been created.
28066     * This is because this effect needs the geometry information about the objects,
28067     * and if the window was not created yet, it can get a wrong information.
28068     */
28069    EAPI Elm_Transit_Effect *elm_transit_effect_rotation_add(Elm_Transit *transit, float from_degree, float to_degree);
28070
28071    /**
28072     * Add the ImageAnimation Effect to Elm_Transit.
28073     *
28074     * @note This API is one of the facades. It creates image animation effect context
28075     * and add it's required APIs to elm_transit_effect_add.
28076     * The @p images parameter is a list images paths. This list and
28077     * its contents will be deleted at the end of the effect by
28078     * elm_transit_effect_image_animation_context_free() function.
28079     *
28080     * Example:
28081     * @code
28082     * char buf[PATH_MAX];
28083     * Eina_List *images = NULL;
28084     * Elm_Transit *transi = elm_transit_add();
28085     *
28086     * snprintf(buf, sizeof(buf), "%s/images/icon_11.png", PACKAGE_DATA_DIR);
28087     * images = eina_list_append(images, eina_stringshare_add(buf));
28088     *
28089     * snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
28090     * images = eina_list_append(images, eina_stringshare_add(buf));
28091     * elm_transit_effect_image_animation_add(transi, images);
28092     *
28093     * @endcode
28094     *
28095     * @see elm_transit_effect_add()
28096     *
28097     * @param transit Transit object.
28098     * @param images Eina_List of images file paths. This list and
28099     * its contents will be deleted at the end of the effect by
28100     * elm_transit_effect_image_animation_context_free() function.
28101     * @return Image Animation effect context data.
28102     *
28103     * @ingroup Transit
28104     */
28105    EAPI Elm_Transit_Effect *elm_transit_effect_image_animation_add(Elm_Transit *transit, Eina_List *images);
28106    /**
28107     * @}
28108     */
28109
28110    typedef struct _Elm_Store                      Elm_Store;
28111    typedef struct _Elm_Store_Filesystem           Elm_Store_Filesystem;
28112    typedef struct _Elm_Store_Item                 Elm_Store_Item;
28113    typedef struct _Elm_Store_Item_Filesystem      Elm_Store_Item_Filesystem;
28114    typedef struct _Elm_Store_Item_Info            Elm_Store_Item_Info;
28115    typedef struct _Elm_Store_Item_Info_Filesystem Elm_Store_Item_Info_Filesystem;
28116    typedef struct _Elm_Store_Item_Mapping         Elm_Store_Item_Mapping;
28117    typedef struct _Elm_Store_Item_Mapping_Empty   Elm_Store_Item_Mapping_Empty;
28118    typedef struct _Elm_Store_Item_Mapping_Icon    Elm_Store_Item_Mapping_Icon;
28119    typedef struct _Elm_Store_Item_Mapping_Photo   Elm_Store_Item_Mapping_Photo;
28120    typedef struct _Elm_Store_Item_Mapping_Custom  Elm_Store_Item_Mapping_Custom;
28121
28122    typedef Eina_Bool (*Elm_Store_Item_List_Cb) (void *data, Elm_Store_Item_Info *info);
28123    typedef void      (*Elm_Store_Item_Fetch_Cb) (void *data, Elm_Store_Item *sti);
28124    typedef void      (*Elm_Store_Item_Unfetch_Cb) (void *data, Elm_Store_Item *sti);
28125    typedef void     *(*Elm_Store_Item_Mapping_Cb) (void *data, Elm_Store_Item *sti, const char *part);
28126
28127    typedef enum
28128      {
28129         ELM_STORE_ITEM_MAPPING_NONE = 0,
28130         ELM_STORE_ITEM_MAPPING_LABEL, // const char * -> label
28131         ELM_STORE_ITEM_MAPPING_STATE, // Eina_Bool -> state
28132         ELM_STORE_ITEM_MAPPING_ICON, // char * -> icon path
28133         ELM_STORE_ITEM_MAPPING_PHOTO, // char * -> photo path
28134         ELM_STORE_ITEM_MAPPING_CUSTOM, // item->custom(it->data, it, part) -> void * (-> any)
28135         // can add more here as needed by common apps
28136         ELM_STORE_ITEM_MAPPING_LAST
28137      } Elm_Store_Item_Mapping_Type;
28138
28139    struct _Elm_Store_Item_Mapping_Icon
28140      {
28141         // FIXME: allow edje file icons
28142         int                   w, h;
28143         Elm_Icon_Lookup_Order lookup_order;
28144         Eina_Bool             standard_name : 1;
28145         Eina_Bool             no_scale : 1;
28146         Eina_Bool             smooth : 1;
28147         Eina_Bool             scale_up : 1;
28148         Eina_Bool             scale_down : 1;
28149      };
28150
28151    struct _Elm_Store_Item_Mapping_Empty
28152      {
28153         Eina_Bool             dummy;
28154      };
28155
28156    struct _Elm_Store_Item_Mapping_Photo
28157      {
28158         int                   size;
28159      };
28160
28161    struct _Elm_Store_Item_Mapping_Custom
28162      {
28163         Elm_Store_Item_Mapping_Cb func;
28164      };
28165
28166    struct _Elm_Store_Item_Mapping
28167      {
28168         Elm_Store_Item_Mapping_Type     type;
28169         const char                     *part;
28170         int                             offset;
28171         union
28172           {
28173              Elm_Store_Item_Mapping_Empty  empty;
28174              Elm_Store_Item_Mapping_Icon   icon;
28175              Elm_Store_Item_Mapping_Photo  photo;
28176              Elm_Store_Item_Mapping_Custom custom;
28177              // add more types here
28178           } details;
28179      };
28180
28181    struct _Elm_Store_Item_Info
28182      {
28183         Elm_Genlist_Item_Class       *item_class;
28184         const Elm_Store_Item_Mapping *mapping;
28185         void                         *data;
28186         char                         *sort_id;
28187      };
28188
28189    struct _Elm_Store_Item_Info_Filesystem
28190      {
28191         Elm_Store_Item_Info  base;
28192         char                *path;
28193      };
28194
28195 #define ELM_STORE_ITEM_MAPPING_END { ELM_STORE_ITEM_MAPPING_NONE, NULL, 0, { .empty = { EINA_TRUE } } }
28196 #define ELM_STORE_ITEM_MAPPING_OFFSET(st, it) offsetof(st, it)
28197
28198    EAPI void                    elm_store_free(Elm_Store *st);
28199
28200    EAPI Elm_Store              *elm_store_filesystem_new(void);
28201    EAPI void                    elm_store_filesystem_directory_set(Elm_Store *st, const char *dir) EINA_ARG_NONNULL(1);
28202    EAPI const char             *elm_store_filesystem_directory_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
28203    EAPI const char             *elm_store_item_filesystem_path_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
28204
28205    EAPI void                    elm_store_target_genlist_set(Elm_Store *st, Evas_Object *obj) EINA_ARG_NONNULL(1);
28206
28207    EAPI void                    elm_store_cache_set(Elm_Store *st, int max) EINA_ARG_NONNULL(1);
28208    EAPI int                     elm_store_cache_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
28209    EAPI void                    elm_store_list_func_set(Elm_Store *st, Elm_Store_Item_List_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
28210    EAPI void                    elm_store_fetch_func_set(Elm_Store *st, Elm_Store_Item_Fetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
28211    EAPI void                    elm_store_fetch_thread_set(Elm_Store *st, Eina_Bool use_thread) EINA_ARG_NONNULL(1);
28212    EAPI Eina_Bool               elm_store_fetch_thread_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
28213
28214    EAPI void                    elm_store_unfetch_func_set(Elm_Store *st, Elm_Store_Item_Unfetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
28215    EAPI void                    elm_store_sorted_set(Elm_Store *st, Eina_Bool sorted) EINA_ARG_NONNULL(1);
28216    EAPI Eina_Bool               elm_store_sorted_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
28217    EAPI void                    elm_store_item_data_set(Elm_Store_Item *sti, void *data) EINA_ARG_NONNULL(1);
28218    EAPI void                   *elm_store_item_data_get(Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
28219    EAPI const Elm_Store        *elm_store_item_store_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
28220    EAPI const Elm_Genlist_Item *elm_store_item_genlist_item_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
28221
28222    /**
28223     * @defgroup SegmentControl SegmentControl
28224     * @ingroup Elementary
28225     *
28226     * @image html img/widget/segment_control/preview-00.png
28227     * @image latex img/widget/segment_control/preview-00.eps width=\textwidth
28228     *
28229     * @image html img/segment_control.png
28230     * @image latex img/segment_control.eps width=\textwidth
28231     *
28232     * Segment control widget is a horizontal control made of multiple segment
28233     * items, each segment item functioning similar to discrete two state button.
28234     * A segment control groups the items together and provides compact
28235     * single button with multiple equal size segments.
28236     *
28237     * Segment item size is determined by base widget
28238     * size and the number of items added.
28239     * Only one segment item can be at selected state. A segment item can display
28240     * combination of Text and any Evas_Object like Images or other widget.
28241     *
28242     * Smart callbacks one can listen to:
28243     * - "changed" - When the user clicks on a segment item which is not
28244     *   previously selected and get selected. The event_info parameter is the
28245     *   segment item pointer.
28246     *
28247     * Available styles for it:
28248     * - @c "default"
28249     *
28250     * Here is an example on its usage:
28251     * @li @ref segment_control_example
28252     */
28253
28254    /**
28255     * @addtogroup SegmentControl
28256     * @{
28257     */
28258
28259    typedef struct _Elm_Segment_Item Elm_Segment_Item; /**< Item handle for a segment control widget. */
28260
28261    /**
28262     * Add a new segment control widget to the given parent Elementary
28263     * (container) object.
28264     *
28265     * @param parent The parent object.
28266     * @return a new segment control widget handle or @c NULL, on errors.
28267     *
28268     * This function inserts a new segment control widget on the canvas.
28269     *
28270     * @ingroup SegmentControl
28271     */
28272    EAPI Evas_Object      *elm_segment_control_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
28273
28274    /**
28275     * Append a new item to the segment control object.
28276     *
28277     * @param obj The segment control object.
28278     * @param icon The icon object to use for the left side of the item. An
28279     * icon can be any Evas object, but usually it is an icon created
28280     * with elm_icon_add().
28281     * @param label The label of the item.
28282     *        Note that, NULL is different from empty string "".
28283     * @return The created item or @c NULL upon failure.
28284     *
28285     * A new item will be created and appended to the segment control, i.e., will
28286     * be set as @b last item.
28287     *
28288     * If it should be inserted at another position,
28289     * elm_segment_control_item_insert_at() should be used instead.
28290     *
28291     * Items created with this function can be deleted with function
28292     * elm_segment_control_item_del() or elm_segment_control_item_del_at().
28293     *
28294     * @note @p label set to @c NULL is different from empty string "".
28295     * If an item
28296     * only has icon, it will be displayed bigger and centered. If it has
28297     * icon and label, even that an empty string, icon will be smaller and
28298     * positioned at left.
28299     *
28300     * Simple example:
28301     * @code
28302     * sc = elm_segment_control_add(win);
28303     * ic = elm_icon_add(win);
28304     * elm_icon_file_set(ic, "path/to/image", NULL);
28305     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
28306     * elm_segment_control_item_add(sc, ic, "label");
28307     * evas_object_show(sc);
28308     * @endcode
28309     *
28310     * @see elm_segment_control_item_insert_at()
28311     * @see elm_segment_control_item_del()
28312     *
28313     * @ingroup SegmentControl
28314     */
28315    EAPI Elm_Segment_Item *elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon, const char *label) EINA_ARG_NONNULL(1);
28316
28317    /**
28318     * Insert a new item to the segment control object at specified position.
28319     *
28320     * @param obj The segment control object.
28321     * @param icon The icon object to use for the left side of the item. An
28322     * icon can be any Evas object, but usually it is an icon created
28323     * with elm_icon_add().
28324     * @param label The label of the item.
28325     * @param index Item position. Value should be between 0 and items count.
28326     * @return The created item or @c NULL upon failure.
28327
28328     * Index values must be between @c 0, when item will be prepended to
28329     * segment control, and items count, that can be get with
28330     * elm_segment_control_item_count_get(), case when item will be appended
28331     * to segment control, just like elm_segment_control_item_add().
28332     *
28333     * Items created with this function can be deleted with function
28334     * elm_segment_control_item_del() or elm_segment_control_item_del_at().
28335     *
28336     * @note @p label set to @c NULL is different from empty string "".
28337     * If an item
28338     * only has icon, it will be displayed bigger and centered. If it has
28339     * icon and label, even that an empty string, icon will be smaller and
28340     * positioned at left.
28341     *
28342     * @see elm_segment_control_item_add()
28343     * @see elm_segment_control_item_count_get()
28344     * @see elm_segment_control_item_del()
28345     *
28346     * @ingroup SegmentControl
28347     */
28348    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);
28349
28350    /**
28351     * Remove a segment control item from its parent, deleting it.
28352     *
28353     * @param it The item to be removed.
28354     *
28355     * Items can be added with elm_segment_control_item_add() or
28356     * elm_segment_control_item_insert_at().
28357     *
28358     * @ingroup SegmentControl
28359     */
28360    EAPI void              elm_segment_control_item_del(Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
28361
28362    /**
28363     * Remove a segment control item at given index from its parent,
28364     * deleting it.
28365     *
28366     * @param obj The segment control object.
28367     * @param index The position of the segment control item to be deleted.
28368     *
28369     * Items can be added with elm_segment_control_item_add() or
28370     * elm_segment_control_item_insert_at().
28371     *
28372     * @ingroup SegmentControl
28373     */
28374    EAPI void              elm_segment_control_item_del_at(Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
28375
28376    /**
28377     * Get the Segment items count from segment control.
28378     *
28379     * @param obj The segment control object.
28380     * @return Segment items count.
28381     *
28382     * It will just return the number of items added to segment control @p obj.
28383     *
28384     * @ingroup SegmentControl
28385     */
28386    EAPI int               elm_segment_control_item_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28387
28388    /**
28389     * Get the item placed at specified index.
28390     *
28391     * @param obj The segment control object.
28392     * @param index The index of the segment item.
28393     * @return The segment control item or @c NULL on failure.
28394     *
28395     * Index is the position of an item in segment control widget. Its
28396     * range is from @c 0 to <tt> count - 1 </tt>.
28397     * Count is the number of items, that can be get with
28398     * elm_segment_control_item_count_get().
28399     *
28400     * @ingroup SegmentControl
28401     */
28402    EAPI Elm_Segment_Item *elm_segment_control_item_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
28403
28404    /**
28405     * Get the label of item.
28406     *
28407     * @param obj The segment control object.
28408     * @param index The index of the segment item.
28409     * @return The label of the item at @p index.
28410     *
28411     * The return value is a pointer to the label associated to the item when
28412     * it was created, with function elm_segment_control_item_add(), or later
28413     * with function elm_segment_control_item_label_set. If no label
28414     * was passed as argument, it will return @c NULL.
28415     *
28416     * @see elm_segment_control_item_label_set() for more details.
28417     * @see elm_segment_control_item_add()
28418     *
28419     * @ingroup SegmentControl
28420     */
28421    EAPI const char       *elm_segment_control_item_label_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
28422
28423    /**
28424     * Set the label of item.
28425     *
28426     * @param it The item of segment control.
28427     * @param text The label of item.
28428     *
28429     * The label to be displayed by the item.
28430     * Label will be at right of the icon (if set).
28431     *
28432     * If a label was passed as argument on item creation, with function
28433     * elm_control_segment_item_add(), it will be already
28434     * displayed by the item.
28435     *
28436     * @see elm_segment_control_item_label_get()
28437     * @see elm_segment_control_item_add()
28438     *
28439     * @ingroup SegmentControl
28440     */
28441    EAPI void              elm_segment_control_item_label_set(Elm_Segment_Item* it, const char* label) EINA_ARG_NONNULL(1);
28442
28443    /**
28444     * Get the icon associated to the item.
28445     *
28446     * @param obj The segment control object.
28447     * @param index The index of the segment item.
28448     * @return The left side icon associated to the item at @p index.
28449     *
28450     * The return value is a pointer to the icon associated to the item when
28451     * it was created, with function elm_segment_control_item_add(), or later
28452     * with function elm_segment_control_item_icon_set(). If no icon
28453     * was passed as argument, it will return @c NULL.
28454     *
28455     * @see elm_segment_control_item_add()
28456     * @see elm_segment_control_item_icon_set()
28457     *
28458     * @ingroup SegmentControl
28459     */
28460    EAPI Evas_Object      *elm_segment_control_item_icon_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
28461
28462    /**
28463     * Set the icon associated to the item.
28464     *
28465     * @param it The segment control item.
28466     * @param icon The icon object to associate with @p it.
28467     *
28468     * The icon object to use at left side of the item. An
28469     * icon can be any Evas object, but usually it is an icon created
28470     * with elm_icon_add().
28471     *
28472     * Once the icon object is set, a previously set one will be deleted.
28473     * @warning Setting the same icon for two items will cause the icon to
28474     * dissapear from the first item.
28475     *
28476     * If an icon was passed as argument on item creation, with function
28477     * elm_segment_control_item_add(), it will be already
28478     * associated to the item.
28479     *
28480     * @see elm_segment_control_item_add()
28481     * @see elm_segment_control_item_icon_get()
28482     *
28483     * @ingroup SegmentControl
28484     */
28485    EAPI void              elm_segment_control_item_icon_set(Elm_Segment_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
28486
28487    /**
28488     * Get the index of an item.
28489     *
28490     * @param it The segment control item.
28491     * @return The position of item in segment control widget.
28492     *
28493     * Index is the position of an item in segment control widget. Its
28494     * range is from @c 0 to <tt> count - 1 </tt>.
28495     * Count is the number of items, that can be get with
28496     * elm_segment_control_item_count_get().
28497     *
28498     * @ingroup SegmentControl
28499     */
28500    EAPI int               elm_segment_control_item_index_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
28501
28502    /**
28503     * Get the base object of the item.
28504     *
28505     * @param it The segment control item.
28506     * @return The base object associated with @p it.
28507     *
28508     * Base object is the @c Evas_Object that represents that item.
28509     *
28510     * @ingroup SegmentControl
28511     */
28512    EAPI Evas_Object      *elm_segment_control_item_object_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
28513
28514    /**
28515     * Get the selected item.
28516     *
28517     * @param obj The segment control object.
28518     * @return The selected item or @c NULL if none of segment items is
28519     * selected.
28520     *
28521     * The selected item can be unselected with function
28522     * elm_segment_control_item_selected_set().
28523     *
28524     * The selected item always will be highlighted on segment control.
28525     *
28526     * @ingroup SegmentControl
28527     */
28528    EAPI Elm_Segment_Item *elm_segment_control_item_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28529
28530    /**
28531     * Set the selected state of an item.
28532     *
28533     * @param it The segment control item
28534     * @param select The selected state
28535     *
28536     * This sets the selected state of the given item @p it.
28537     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
28538     *
28539     * If a new item is selected the previosly selected will be unselected.
28540     * Previoulsy selected item can be get with function
28541     * elm_segment_control_item_selected_get().
28542     *
28543     * The selected item always will be highlighted on segment control.
28544     *
28545     * @see elm_segment_control_item_selected_get()
28546     *
28547     * @ingroup SegmentControl
28548     */
28549    EAPI void              elm_segment_control_item_selected_set(Elm_Segment_Item *it, Eina_Bool select) EINA_ARG_NONNULL(1);
28550
28551    /**
28552     * @}
28553     */
28554
28555    /**
28556     * @defgroup Grid Grid
28557     *
28558     * The grid is a grid layout widget that lays out a series of children as a
28559     * fixed "grid" of widgets using a given percentage of the grid width and
28560     * height each using the child object.
28561     *
28562     * The Grid uses a "Virtual resolution" that is stretched to fill the grid
28563     * widgets size itself. The default is 100 x 100, so that means the
28564     * position and sizes of children will effectively be percentages (0 to 100)
28565     * of the width or height of the grid widget
28566     *
28567     * @{
28568     */
28569
28570    /**
28571     * Add a new grid to the parent
28572     *
28573     * @param parent The parent object
28574     * @return The new object or NULL if it cannot be created
28575     *
28576     * @ingroup Grid
28577     */
28578    EAPI Evas_Object *elm_grid_add(Evas_Object *parent);
28579
28580    /**
28581     * Set the virtual size of the grid
28582     *
28583     * @param obj The grid object
28584     * @param w The virtual width of the grid
28585     * @param h The virtual height of the grid
28586     *
28587     * @ingroup Grid
28588     */
28589    EAPI void         elm_grid_size_set(Evas_Object *obj, int w, int h);
28590
28591    /**
28592     * Get the virtual size of the grid
28593     *
28594     * @param obj The grid object
28595     * @param w Pointer to integer to store the virtual width of the grid
28596     * @param h Pointer to integer to store the virtual height of the grid
28597     *
28598     * @ingroup Grid
28599     */
28600    EAPI void         elm_grid_size_get(Evas_Object *obj, int *w, int *h);
28601
28602    /**
28603     * Pack child at given position and size
28604     *
28605     * @param obj The grid object
28606     * @param subobj The child to pack
28607     * @param x The virtual x coord at which to pack it
28608     * @param y The virtual y coord at which to pack it
28609     * @param w The virtual width at which to pack it
28610     * @param h The virtual height at which to pack it
28611     *
28612     * @ingroup Grid
28613     */
28614    EAPI void         elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h);
28615
28616    /**
28617     * Unpack a child from a grid object
28618     *
28619     * @param obj The grid object
28620     * @param subobj The child to unpack
28621     *
28622     * @ingroup Grid
28623     */
28624    EAPI void         elm_grid_unpack(Evas_Object *obj, Evas_Object *subobj);
28625
28626    /**
28627     * Faster way to remove all child objects from a grid object.
28628     *
28629     * @param obj The grid object
28630     * @param clear If true, it will delete just removed children
28631     *
28632     * @ingroup Grid
28633     */
28634    EAPI void         elm_grid_clear(Evas_Object *obj, Eina_Bool clear);
28635
28636    /**
28637     * Set packing of an existing child at to position and size
28638     *
28639     * @param subobj The child to set packing of
28640     * @param x The virtual x coord at which to pack it
28641     * @param y The virtual y coord at which to pack it
28642     * @param w The virtual width at which to pack it
28643     * @param h The virtual height at which to pack it
28644     *
28645     * @ingroup Grid
28646     */
28647    EAPI void         elm_grid_pack_set(Evas_Object *subobj, int x, int y, int w, int h);
28648
28649    /**
28650     * get packing of a child
28651     *
28652     * @param subobj The child to query
28653     * @param x Pointer to integer to store the virtual x coord
28654     * @param y Pointer to integer to store the virtual y coord
28655     * @param w Pointer to integer to store the virtual width
28656     * @param h Pointer to integer to store the virtual height
28657     *
28658     * @ingroup Grid
28659     */
28660    EAPI void         elm_grid_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h);
28661
28662    /**
28663     * @}
28664     */
28665
28666    EAPI Evas_Object *elm_factory_add(Evas_Object *parent);
28667    EINA_DEPRECATED EAPI void         elm_factory_content_set(Evas_Object *obj, Evas_Object *content);
28668    EINA_DEPRECATED EAPI Evas_Object *elm_factory_content_get(const Evas_Object *obj);
28669    EAPI void         elm_factory_maxmin_mode_set(Evas_Object *obj, Eina_Bool enabled);
28670    EAPI Eina_Bool    elm_factory_maxmin_mode_get(const Evas_Object *obj);
28671    EAPI void         elm_factory_maxmin_reset_set(Evas_Object *obj);
28672
28673    /**
28674     * @defgroup Video Video
28675     *
28676     * @addtogroup Video
28677     * @{
28678     *
28679     * Elementary comes with two object that help design application that need
28680     * to display video. The main one, Elm_Video, display a video by using Emotion.
28681     * It does embedded the video inside an Edje object, so you can do some
28682     * animation depending on the video state change. It does also implement a
28683     * ressource management policy to remove this burden from the application writer.
28684     *
28685     * The second one, Elm_Player is a video player that need to be linked with and Elm_Video.
28686     * It take care of updating its content according to Emotion event and provide a
28687     * way to theme itself. It also does automatically raise the priority of the
28688     * linked Elm_Video so it will use the video decoder if available. It also does
28689     * activate the remember function on the linked Elm_Video object.
28690     *
28691     * Signals that you can add callback for are :
28692     *
28693     * "forward,clicked" - the user clicked the forward button.
28694     * "info,clicked" - the user clicked the info button.
28695     * "next,clicked" - the user clicked the next button.
28696     * "pause,clicked" - the user clicked the pause button.
28697     * "play,clicked" - the user clicked the play button.
28698     * "prev,clicked" - the user clicked the prev button.
28699     * "rewind,clicked" - the user clicked the rewind button.
28700     * "stop,clicked" - the user clicked the stop button.
28701     *
28702     * Default contents parts of the player widget that you can use for are:
28703     * @li "video" - A video of the player
28704     *
28705     */
28706
28707    /**
28708     * @brief Add a new Elm_Player object to the given parent Elementary (container) object.
28709     *
28710     * @param parent The parent object
28711     * @return a new player widget handle or @c NULL, on errors.
28712     *
28713     * This function inserts a new player widget on the canvas.
28714     *
28715     * @see elm_object_part_content_set()
28716     *
28717     * @ingroup Video
28718     */
28719    EAPI Evas_Object *elm_player_add(Evas_Object *parent);
28720
28721    /**
28722     * @brief Link a Elm_Payer with an Elm_Video object.
28723     *
28724     * @param player the Elm_Player object.
28725     * @param video The Elm_Video object.
28726     *
28727     * This mean that action on the player widget will affect the
28728     * video object and the state of the video will be reflected in
28729     * the player itself.
28730     *
28731     * @see elm_player_add()
28732     * @see elm_video_add()
28733     * @deprecated use elm_object_part_content_set() instead
28734     *
28735     * @ingroup Video
28736     */
28737    EINA_DEPRECATED EAPI void elm_player_video_set(Evas_Object *player, Evas_Object *video);
28738
28739    /**
28740     * @brief Add a new Elm_Video object to the given parent Elementary (container) object.
28741     *
28742     * @param parent The parent object
28743     * @return a new video widget handle or @c NULL, on errors.
28744     *
28745     * This function inserts a new video widget on the canvas.
28746     *
28747     * @seeelm_video_file_set()
28748     * @see elm_video_uri_set()
28749     *
28750     * @ingroup Video
28751     */
28752    EAPI Evas_Object *elm_video_add(Evas_Object *parent);
28753
28754    /**
28755     * @brief Define the file that will be the video source.
28756     *
28757     * @param video The video object to define the file for.
28758     * @param filename The file to target.
28759     *
28760     * This function will explicitly define a filename as a source
28761     * for the video of the Elm_Video object.
28762     *
28763     * @see elm_video_uri_set()
28764     * @see elm_video_add()
28765     * @see elm_player_add()
28766     *
28767     * @ingroup Video
28768     */
28769    EAPI void elm_video_file_set(Evas_Object *video, const char *filename);
28770
28771    /**
28772     * @brief Define the uri that will be the video source.
28773     *
28774     * @param video The video object to define the file for.
28775     * @param uri The uri to target.
28776     *
28777     * This function will define an uri as a source for the video of the
28778     * Elm_Video object. URI could be remote source of video, like http:// or local source
28779     * like for example WebCam who are most of the time v4l2:// (but that depend and
28780     * you should use Emotion API to request and list the available Webcam on your system).
28781     *
28782     * @see elm_video_file_set()
28783     * @see elm_video_add()
28784     * @see elm_player_add()
28785     *
28786     * @ingroup Video
28787     */
28788    EAPI void elm_video_uri_set(Evas_Object *video, const char *uri);
28789
28790    /**
28791     * @brief Get the underlying Emotion object.
28792     *
28793     * @param video The video object to proceed the request on.
28794     * @return the underlying Emotion object.
28795     *
28796     * @ingroup Video
28797     */
28798    EAPI Evas_Object *elm_video_emotion_get(const Evas_Object *video);
28799
28800    /**
28801     * @brief Start to play the video
28802     *
28803     * @param video The video object to proceed the request on.
28804     *
28805     * Start to play the video and cancel all suspend state.
28806     *
28807     * @ingroup Video
28808     */
28809    EAPI void elm_video_play(Evas_Object *video);
28810
28811    /**
28812     * @brief Pause the video
28813     *
28814     * @param video The video object to proceed the request on.
28815     *
28816     * Pause the video and start a timer to trigger suspend mode.
28817     *
28818     * @ingroup Video
28819     */
28820    EAPI void elm_video_pause(Evas_Object *video);
28821
28822    /**
28823     * @brief Stop the video
28824     *
28825     * @param video The video object to proceed the request on.
28826     *
28827     * Stop the video and put the emotion in deep sleep mode.
28828     *
28829     * @ingroup Video
28830     */
28831    EAPI void elm_video_stop(Evas_Object *video);
28832
28833    /**
28834     * @brief Is the video actually playing.
28835     *
28836     * @param video The video object to proceed the request on.
28837     * @return EINA_TRUE if the video is actually playing.
28838     *
28839     * You should consider watching event on the object instead of polling
28840     * the object state.
28841     *
28842     * @ingroup Video
28843     */
28844    EAPI Eina_Bool elm_video_is_playing(const Evas_Object *video);
28845
28846    /**
28847     * @brief Is it possible to seek inside the video.
28848     *
28849     * @param video The video object to proceed the request on.
28850     * @return EINA_TRUE if is possible to seek inside the video.
28851     *
28852     * @ingroup Video
28853     */
28854    EAPI Eina_Bool elm_video_is_seekable(const Evas_Object *video);
28855
28856    /**
28857     * @brief Is the audio muted.
28858     *
28859     * @param video The video object to proceed the request on.
28860     * @return EINA_TRUE if the audio is muted.
28861     *
28862     * @ingroup Video
28863     */
28864    EAPI Eina_Bool elm_video_audio_mute_get(const Evas_Object *video);
28865
28866    /**
28867     * @brief Change the mute state of the Elm_Video object.
28868     *
28869     * @param video The video object to proceed the request on.
28870     * @param mute The new mute state.
28871     *
28872     * @ingroup Video
28873     */
28874    EAPI void elm_video_audio_mute_set(Evas_Object *video, Eina_Bool mute);
28875
28876    /**
28877     * @brief Get the audio level of the current video.
28878     *
28879     * @param video The video object to proceed the request on.
28880     * @return the current audio level.
28881     *
28882     * @ingroup Video
28883     */
28884    EAPI double elm_video_audio_level_get(const Evas_Object *video);
28885
28886    /**
28887     * @brief Set the audio level of anElm_Video object.
28888     *
28889     * @param video The video object to proceed the request on.
28890     * @param volume The new audio volume.
28891     *
28892     * @ingroup Video
28893     */
28894    EAPI void elm_video_audio_level_set(Evas_Object *video, double volume);
28895
28896    EAPI double elm_video_play_position_get(const Evas_Object *video);
28897    EAPI void elm_video_play_position_set(Evas_Object *video, double position);
28898    EAPI double elm_video_play_length_get(const Evas_Object *video);
28899    EAPI void elm_video_remember_position_set(Evas_Object *video, Eina_Bool remember);
28900    EAPI Eina_Bool elm_video_remember_position_get(const Evas_Object *video);
28901    EAPI const char *elm_video_title_get(const Evas_Object *video);
28902    /**
28903     * @}
28904     */
28905
28906    /**
28907     * @defgroup Naviframe Naviframe
28908     * @ingroup Elementary
28909     *
28910     * @brief Naviframe is a kind of view manager for the applications.
28911     *
28912     * Naviframe provides functions to switch different pages with stack
28913     * mechanism. It means if one page(item) needs to be changed to the new one,
28914     * then naviframe would push the new page to it's internal stack. Of course,
28915     * it can be back to the previous page by popping the top page. Naviframe
28916     * provides some transition effect while the pages are switching (same as
28917     * pager).
28918     *
28919     * Since each item could keep the different styles, users could keep the
28920     * same look & feel for the pages or different styles for the items in it's
28921     * application.
28922     *
28923     * Signals that you can add callback for are:
28924     * @li "transition,finished" - When the transition is finished in changing
28925     *     the item
28926     * @li "title,clicked" - User clicked title area
28927     *
28928     * Default contents parts of the naviframe items that you can use for are:
28929     * @li "default" - A main content of the page
28930     * @li "icon" - An icon in the title area
28931     * @li "prev_btn" - A button to go to the previous page
28932     * @li "next_btn" - A button to go to the next page
28933     *
28934     * Default text parts of the naviframe items that you can use for are:
28935     * @li "default" - Title label in the title area
28936     * @li "subtitle" - Sub-title label in the title area
28937     *
28938     * @ref tutorial_naviframe gives a good overview of the usage of the API.
28939     */
28940
28941    /**
28942     * @addtogroup Naviframe
28943     * @{
28944     */
28945
28946    /**
28947     * @brief Add a new Naviframe object to the parent.
28948     *
28949     * @param parent Parent object
28950     * @return New object or @c NULL, if it cannot be created
28951     *
28952     * @ingroup Naviframe
28953     */
28954    EAPI Evas_Object        *elm_naviframe_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
28955    /**
28956     * @brief Push a new item to the top of the naviframe stack (and show it).
28957     *
28958     * @param obj The naviframe object
28959     * @param title_label The label in the title area. The name of the title
28960     *        label part is "elm.text.title"
28961     * @param prev_btn The button to go to the previous item. If it is NULL,
28962     *        then naviframe will create a back button automatically. The name of
28963     *        the prev_btn part is "elm.swallow.prev_btn"
28964     * @param next_btn The button to go to the next item. Or It could be just an
28965     *        extra function button. The name of the next_btn part is
28966     *        "elm.swallow.next_btn"
28967     * @param content The main content object. The name of content part is
28968     *        "elm.swallow.content"
28969     * @param item_style The current item style name. @c NULL would be default.
28970     * @return The created item or @c NULL upon failure.
28971     *
28972     * The item pushed becomes one page of the naviframe, this item will be
28973     * deleted when it is popped.
28974     *
28975     * @see also elm_naviframe_item_style_set()
28976     * @see also elm_naviframe_item_insert_before()
28977     * @see also elm_naviframe_item_insert_after()
28978     *
28979     * The following styles are available for this item:
28980     * @li @c "default"
28981     *
28982     * @ingroup Naviframe
28983     */
28984    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);
28985     /**
28986     * @brief Insert a new item into the naviframe before item @p before.
28987     *
28988     * @param before The naviframe item to insert before.
28989     * @param title_label The label in the title area. The name of the title
28990     *        label part is "elm.text.title"
28991     * @param prev_btn The button to go to the previous item. If it is NULL,
28992     *        then naviframe will create a back button automatically. The name of
28993     *        the prev_btn part is "elm.swallow.prev_btn"
28994     * @param next_btn The button to go to the next item. Or It could be just an
28995     *        extra function button. The name of the next_btn part is
28996     *        "elm.swallow.next_btn"
28997     * @param content The main content object. The name of content part is
28998     *        "elm.swallow.content"
28999     * @param item_style The current item style name. @c NULL would be default.
29000     * @return The created item or @c NULL upon failure.
29001     *
29002     * The item is inserted into the naviframe straight away without any
29003     * transition operations. This item will be deleted when it is popped.
29004     *
29005     * @see also elm_naviframe_item_style_set()
29006     * @see also elm_naviframe_item_push()
29007     * @see also elm_naviframe_item_insert_after()
29008     *
29009     * The following styles are available for this item:
29010     * @li @c "default"
29011     *
29012     * @ingroup Naviframe
29013     */
29014    EAPI Elm_Object_Item    *elm_naviframe_item_insert_before(Elm_Object_Item *before, const char *title_label, Evas_Object *prev_btn, Evas_Object *next_btn, Evas_Object *content, const char *item_style) EINA_ARG_NONNULL(1, 5);
29015    /**
29016     * @brief Insert a new item into the naviframe after item @p after.
29017     *
29018     * @param after The naviframe item to insert after.
29019     * @param title_label The label in the title area. The name of the title
29020     *        label part is "elm.text.title"
29021     * @param prev_btn The button to go to the previous item. If it is NULL,
29022     *        then naviframe will create a back button automatically. The name of
29023     *        the prev_btn part is "elm.swallow.prev_btn"
29024     * @param next_btn The button to go to the next item. Or It could be just an
29025     *        extra function button. The name of the next_btn part is
29026     *        "elm.swallow.next_btn"
29027     * @param content The main content object. The name of content part is
29028     *        "elm.swallow.content"
29029     * @param item_style The current item style name. @c NULL would be default.
29030     * @return The created item or @c NULL upon failure.
29031     *
29032     * The item is inserted into the naviframe straight away without any
29033     * transition operations. This item will be deleted when it is popped.
29034     *
29035     * @see also elm_naviframe_item_style_set()
29036     * @see also elm_naviframe_item_push()
29037     * @see also elm_naviframe_item_insert_before()
29038     *
29039     * The following styles are available for this item:
29040     * @li @c "default"
29041     *
29042     * @ingroup Naviframe
29043     */
29044    EAPI Elm_Object_Item    *elm_naviframe_item_insert_after(Elm_Object_Item *after, const char *title_label, Evas_Object *prev_btn, Evas_Object *next_btn, Evas_Object *content, const char *item_style) EINA_ARG_NONNULL(1, 5);
29045    /**
29046     * @brief Pop an item that is on top of the stack
29047     *
29048     * @param obj The naviframe object
29049     * @return @c NULL or the content object(if the
29050     *         elm_naviframe_content_preserve_on_pop_get is true).
29051     *
29052     * This pops an item that is on the top(visible) of the naviframe, makes it
29053     * disappear, then deletes the item. The item that was underneath it on the
29054     * stack will become visible.
29055     *
29056     * @see also elm_naviframe_content_preserve_on_pop_get()
29057     *
29058     * @ingroup Naviframe
29059     */
29060    EAPI Evas_Object        *elm_naviframe_item_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
29061    /**
29062     * @brief Pop the items between the top and the above one on the given item.
29063     *
29064     * @param it The naviframe item
29065     *
29066     * @ingroup Naviframe
29067     */
29068    EAPI void                elm_naviframe_item_pop_to(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
29069    /**
29070    * Promote an item already in the naviframe stack to the top of the stack
29071    *
29072    * @param it The naviframe item
29073    *
29074    * This will take the indicated item and promote it to the top of the stack
29075    * as if it had been pushed there. The item must already be inside the
29076    * naviframe stack to work.
29077    *
29078    */
29079    EAPI void                elm_naviframe_item_promote(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
29080    /**
29081     * @brief Delete the given item instantly.
29082     *
29083     * @param it The naviframe item
29084     *
29085     * This just deletes the given item from the naviframe item list instantly.
29086     * So this would not emit any signals for view transitions but just change
29087     * the current view if the given item is a top one.
29088     *
29089     * @ingroup Naviframe
29090     */
29091    EAPI void                elm_naviframe_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
29092    /**
29093     * @brief preserve the content objects when items are popped.
29094     *
29095     * @param obj The naviframe object
29096     * @param preserve Enable the preserve mode if EINA_TRUE, disable otherwise
29097     *
29098     * @see also elm_naviframe_content_preserve_on_pop_get()
29099     *
29100     * @ingroup Naviframe
29101     */
29102    EAPI void                elm_naviframe_content_preserve_on_pop_set(Evas_Object *obj, Eina_Bool preserve) EINA_ARG_NONNULL(1);
29103    /**
29104     * @brief Get a value whether preserve mode is enabled or not.
29105     *
29106     * @param obj The naviframe object
29107     * @return If @c EINA_TRUE, preserve mode is enabled
29108     *
29109     * @see also elm_naviframe_content_preserve_on_pop_set()
29110     *
29111     * @ingroup Naviframe
29112     */
29113    EAPI Eina_Bool           elm_naviframe_content_preserve_on_pop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
29114    /**
29115     * @brief Get a top item on the naviframe stack
29116     *
29117     * @param obj The naviframe object
29118     * @return The top item on the naviframe stack or @c NULL, if the stack is
29119     *         empty
29120     *
29121     * @ingroup Naviframe
29122     */
29123    EAPI Elm_Object_Item    *elm_naviframe_top_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
29124    /**
29125     * @brief Get a bottom item on the naviframe stack
29126     *
29127     * @param obj The naviframe object
29128     * @return The bottom item on the naviframe stack or @c NULL, if the stack is
29129     *         empty
29130     *
29131     * @ingroup Naviframe
29132     */
29133    EAPI Elm_Object_Item    *elm_naviframe_bottom_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
29134    /**
29135     * @brief Set an item style
29136     *
29137     * @param obj The naviframe item
29138     * @param item_style The current item style name. @c NULL would be default
29139     *
29140     * The following styles are available for this item:
29141     * @li @c "default"
29142     *
29143     * @see also elm_naviframe_item_style_get()
29144     *
29145     * @ingroup Naviframe
29146     */
29147    EAPI void                elm_naviframe_item_style_set(Elm_Object_Item *it, const char *item_style) EINA_ARG_NONNULL(1);
29148    /**
29149     * @brief Get an item style
29150     *
29151     * @param obj The naviframe item
29152     * @return The current item style name
29153     *
29154     * @see also elm_naviframe_item_style_set()
29155     *
29156     * @ingroup Naviframe
29157     */
29158    EAPI const char         *elm_naviframe_item_style_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
29159    /**
29160     * @brief Show/Hide the title area
29161     *
29162     * @param it The naviframe item
29163     * @param visible If @c EINA_TRUE, title area will be visible, hidden
29164     *        otherwise
29165     *
29166     * When the title area is invisible, then the controls would be hidden so as     * to expand the content area to full-size.
29167     *
29168     * @see also elm_naviframe_item_title_visible_get()
29169     *
29170     * @ingroup Naviframe
29171     */
29172    EAPI void                elm_naviframe_item_title_visible_set(Elm_Object_Item *it, Eina_Bool visible) EINA_ARG_NONNULL(1);
29173    /**
29174     * @brief Get a value whether title area is visible or not.
29175     *
29176     * @param it The naviframe item
29177     * @return If @c EINA_TRUE, title area is visible
29178     *
29179     * @see also elm_naviframe_item_title_visible_set()
29180     *
29181     * @ingroup Naviframe
29182     */
29183    EAPI Eina_Bool           elm_naviframe_item_title_visible_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
29184
29185    /**
29186     * @brief Set creating prev button automatically or not
29187     *
29188     * @param obj The naviframe object
29189     * @param auto_pushed If @c EINA_TRUE, the previous button(back button) will
29190     *        be created internally when you pass the @c NULL to the prev_btn
29191     *        parameter in elm_naviframe_item_push
29192     *
29193     * @see also elm_naviframe_item_push()
29194     */
29195    EAPI void                elm_naviframe_prev_btn_auto_pushed_set(Evas_Object *obj, Eina_Bool auto_pushed) EINA_ARG_NONNULL(1);
29196    /**
29197     * @brief Get a value whether prev button(back button) will be auto pushed or
29198     *        not.
29199     *
29200     * @param obj The naviframe object
29201     * @return If @c EINA_TRUE, prev button will be auto pushed.
29202     *
29203     * @see also elm_naviframe_item_push()
29204     *           elm_naviframe_prev_btn_auto_pushed_set()
29205     */
29206    EAPI Eina_Bool           elm_naviframe_prev_btn_auto_pushed_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
29207    /**
29208     * @brief Get a list of all the naviframe items.
29209     *
29210     * @param obj The naviframe object
29211     * @return An Eina_Inlist* of naviframe items, #Elm_Object_Item,
29212     * or @c NULL on failure.
29213     */
29214    EAPI Eina_Inlist        *elm_naviframe_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
29215
29216     /**
29217     * @}
29218     */
29219
29220    /**
29221     * @defgroup Multibuttonentry Multibuttonentry
29222     *
29223     * A Multibuttonentry is a widget to allow a user enter text and manage it as a number of buttons
29224     * Each text button is inserted by pressing the "return" key. If there is no space in the current row,
29225     * a new button is added to the next row. When a text button is pressed, it will become focused.
29226     * Backspace removes the focus.
29227     * When the Multibuttonentry loses focus items longer than 1 lines are shrunk to one line.
29228     *
29229     * Smart callbacks one can register:
29230     * - @c "item,selected" - when item is selected. May be called on backspace key.
29231     * - @c "item,added" - when a new multibuttonentry item is added.
29232     * - @c "item,deleted" - when a multibuttonentry item is deleted.
29233     * - @c "item,clicked" - selected item of multibuttonentry is clicked.
29234     * - @c "clicked" - when multibuttonentry is clicked.
29235     * - @c "focused" - when multibuttonentry is focused.
29236     * - @c "unfocused" - when multibuttonentry is unfocused.
29237     * - @c "expanded" - when multibuttonentry is expanded.
29238     * - @c "shrank" - when multibuttonentry is shrank.
29239     * - @c "shrank,state,changed" - when shrink mode state of multibuttonentry is changed.
29240     *
29241     * Here is an example on its usage:
29242     * @li @ref multibuttonentry_example
29243     */
29244     /**
29245     * @addtogroup Multibuttonentry
29246     * @{
29247     */
29248
29249    typedef struct _Multibuttonentry_Item Elm_Multibuttonentry_Item;
29250    typedef Eina_Bool (*Elm_Multibuttonentry_Item_Filter_callback) (Evas_Object *obj, const char *item_label, void *item_data, void *data);
29251
29252    /**
29253     * @brief Add a new multibuttonentry to the parent
29254     *
29255     * @param parent The parent object
29256     * @return The new object or NULL if it cannot be created
29257     *
29258     */
29259    EAPI Evas_Object               *elm_multibuttonentry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
29260    /**
29261     * Get the label
29262     *
29263     * @param obj The multibuttonentry object
29264     * @return The label, or NULL if none
29265     *
29266     */
29267    EAPI const char                *elm_multibuttonentry_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
29268    /**
29269     * Set the label
29270     *
29271     * @param obj The multibuttonentry object
29272     * @param label The text label string
29273     *
29274     */
29275    EAPI void                       elm_multibuttonentry_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
29276    /**
29277     * Get the entry of the multibuttonentry object
29278     *
29279     * @param obj The multibuttonentry object
29280     * @return The entry object, or NULL if none
29281     *
29282     */
29283    EAPI Evas_Object               *elm_multibuttonentry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
29284    /**
29285     * Get the guide text
29286     *
29287     * @param obj The multibuttonentry object
29288     * @return The guide text, or NULL if none
29289     *
29290     */
29291    EAPI const char *               elm_multibuttonentry_guide_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
29292    /**
29293     * Set the guide text
29294     *
29295     * @param obj The multibuttonentry object
29296     * @param label The guide text string
29297     *
29298     */
29299    EAPI void                       elm_multibuttonentry_guide_text_set(Evas_Object *obj, const char *guidetext) EINA_ARG_NONNULL(1);
29300    /**
29301     * Get the value of shrink_mode state.
29302     *
29303     * @param obj The multibuttonentry object
29304     * @param the value of shrink mode state.
29305     *
29306     */
29307    EAPI int                        elm_multibuttonentry_shrink_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
29308    /**
29309     * Set/Unset the multibuttonentry to shrink mode state of single line
29310     *
29311     * @param obj The multibuttonentry object
29312     * @param the value of shrink_mode state. set this to 1 to set the multibuttonentry to shrink state of single line. set this to 0 to unset the contracted state.
29313     *
29314     */
29315    EAPI void                       elm_multibuttonentry_shrink_mode_set(Evas_Object *obj, int shrink) EINA_ARG_NONNULL(1);
29316    /**
29317     * Prepend a new item to the multibuttonentry
29318     *
29319     * @param obj The multibuttonentry object
29320     * @param label The label of new item
29321     * @param data The ponter to the data to be attached
29322     * @return A handle to the item added or NULL if not possible
29323     *
29324     */
29325    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_prepend(Evas_Object *obj, const char *label, void *data) EINA_ARG_NONNULL(1);
29326    /**
29327     * Append a new item to the multibuttonentry
29328     *
29329     * @param obj The multibuttonentry object
29330     * @param label The label of new item
29331     * @param data The ponter to the data to be attached
29332     * @return A handle to the item added or NULL if not possible
29333     *
29334     */
29335    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_append(Evas_Object *obj, const char *label, void *data) EINA_ARG_NONNULL(1);
29336    /**
29337     * Add a new item to the multibuttonentry before the indicated object
29338     *
29339     * reference.
29340     * @param obj The multibuttonentry object
29341     * @param before The item before which to add it
29342     * @param label The label of new item
29343     * @param data The ponter to the data to be attached
29344     * @return A handle to the item added or NULL if not possible
29345     *
29346     */
29347    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_insert_before(Evas_Object *obj, Elm_Multibuttonentry_Item *before, const char *label, void *data) EINA_ARG_NONNULL(1);
29348    /**
29349     * Add a new item to the multibuttonentry after the indicated object
29350     *
29351     * @param obj The multibuttonentry object
29352     * @param after The item after which to add it
29353     * @param label The label of new item
29354     * @param data The ponter to the data to be attached
29355     * @return A handle to the item added or NULL if not possible
29356     *
29357     */
29358    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_insert_after(Evas_Object *obj, Elm_Multibuttonentry_Item *after, const char *label, void *data) EINA_ARG_NONNULL(1);
29359    /**
29360     * Get a list of items in the multibuttonentry
29361     *
29362     * @param obj The multibuttonentry object
29363     * @return The list of items, or NULL if none
29364     *
29365     */
29366    EAPI const Eina_List           *elm_multibuttonentry_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
29367    /**
29368     * Get the first item in the multibuttonentry
29369     *
29370     * @param obj The multibuttonentry object
29371     * @return The first item, or NULL if none
29372     *
29373     */
29374    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
29375    /**
29376     * Get the last item in the multibuttonentry
29377     *
29378     * @param obj The multibuttonentry object
29379     * @return The last item, or NULL if none
29380     *
29381     */
29382    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
29383    /**
29384     * Get the selected item in the multibuttonentry
29385     *
29386     * @param obj The multibuttonentry object
29387     * @return The selected item, or NULL if none
29388     *
29389     */
29390    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
29391    /**
29392     * Set the selected state of an item
29393     *
29394     * @param item The item
29395     * @param selected if it's EINA_TRUE, select the item otherwise, unselect the item
29396     *
29397     */
29398    EAPI void                       elm_multibuttonentry_item_select(Elm_Multibuttonentry_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
29399    /**
29400    * unselect all items.
29401    *
29402    * @param obj The multibuttonentry object
29403    *
29404    */
29405    EAPI void                       elm_multibuttonentry_item_unselect_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
29406   /**
29407    * Delete a given item
29408    *
29409    * @param item The item
29410    *
29411    */
29412    EAPI void                       elm_multibuttonentry_item_del(Elm_Multibuttonentry_Item *item) EINA_ARG_NONNULL(1);
29413   /**
29414    * Remove all items in the multibuttonentry.
29415    *
29416    * @param obj The multibuttonentry object
29417    *
29418    */
29419    EAPI void                       elm_multibuttonentry_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
29420   /**
29421    * Get the label of a given item
29422    *
29423    * @param item The item
29424    * @return The label of a given item, or NULL if none
29425    *
29426    */
29427    EAPI const char                *elm_multibuttonentry_item_label_get(const Elm_Multibuttonentry_Item *item) EINA_ARG_NONNULL(1);
29428   /**
29429    * Set the label of a given item
29430    *
29431    * @param item The item
29432    * @param label The text label string
29433    *
29434    */
29435    EAPI void                       elm_multibuttonentry_item_label_set(Elm_Multibuttonentry_Item *item, const char *str) EINA_ARG_NONNULL(1);
29436   /**
29437    * Get the previous item in the multibuttonentry
29438    *
29439    * @param item The item
29440    * @return The item before the item @p item
29441    *
29442    */
29443    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_prev_get(const Elm_Multibuttonentry_Item *item) EINA_ARG_NONNULL(1);
29444   /**
29445    * Get the next item in the multibuttonentry
29446    *
29447    * @param item The item
29448    * @return The item after the item @p item
29449    *
29450    */
29451    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_next_get(const Elm_Multibuttonentry_Item *item) EINA_ARG_NONNULL(1);
29452   /**
29453    * Append a item filter function for text inserted in the Multibuttonentry
29454    *
29455    * Append the given callback to the list. This functions will be called
29456    * whenever any text is inserted into the Multibuttonentry, with the text to be inserted
29457    * as a parameter. The callback function is free to alter the text in any way
29458    * it wants, but it must remember to free the given pointer and update it.
29459    * If the new text is to be discarded, the function can free it and set it text
29460    * parameter to NULL. This will also prevent any following filters from being
29461    * called.
29462    *
29463    * @param obj The multibuttonentryentry object
29464    * @param func The function to use as item filter
29465    * @param data User data to pass to @p func
29466    *
29467    */
29468    EAPI void elm_multibuttonentry_item_filter_append(Evas_Object *obj, Elm_Multibuttonentry_Item_Filter_callback func, void *data) EINA_ARG_NONNULL(1);
29469   /**
29470    * Prepend a filter function for text inserted in the Multibuttentry
29471    *
29472    * Prepend the given callback to the list. See elm_multibuttonentry_item_filter_append()
29473    * for more information
29474    *
29475    * @param obj The multibuttonentry object
29476    * @param func The function to use as text filter
29477    * @param data User data to pass to @p func
29478    *
29479    */
29480    EAPI void elm_multibuttonentry_item_filter_prepend(Evas_Object *obj, Elm_Multibuttonentry_Item_Filter_callback func, void *data) EINA_ARG_NONNULL(1);
29481   /**
29482    * Remove a filter from the list
29483    *
29484    * Removes the given callback from the filter list. See elm_multibuttonentry_item_filter_append()
29485    * for more information.
29486    *
29487    * @param obj The multibuttonentry object
29488    * @param func The filter function to remove
29489    * @param data The user data passed when adding the function
29490    *
29491    */
29492    EAPI void elm_multibuttonentry_item_filter_remove(Evas_Object *obj, Elm_Multibuttonentry_Item_Filter_callback func, void *data) EINA_ARG_NONNULL(1);
29493
29494    /**
29495     * @}
29496     */
29497
29498 #ifdef __cplusplus
29499 }
29500 #endif
29501
29502 #endif