add elm_win_focus_get
[framework/uifw/elementary.git] / src / lib / Elementary.h.in
1 /*
2  *
3  * vim:ts=8:sw=3:sts=3:expandtab:cino=>5n-3f0^-2{2(0W1st0
4  */
5
6 /**
7 @file Elementary.h.in
8 @brief Elementary Widget Library
9 */
10
11 /**
12 @mainpage Elementary
13 @image html  elementary.png
14 @version 0.8.0
15 @date 2008-2011
16
17 @section intro What is Elementary?
18
19 This is a VERY SIMPLE toolkit. It is not meant for writing extensive desktop
20 applications (yet). Small simple ones with simple needs.
21
22 It is meant to make the programmers work almost brainless but give them lots
23 of flexibility.
24
25 @li @ref Start - Go here to quickly get started with writing Apps
26
27 @section organization Organization
28
29 One can divide Elemementary into three main groups:
30 @li @ref infralist - These are modules that deal with Elementary as a whole.
31 @li @ref widgetslist - These are the widgets you'll compose your UI out of.
32 @li @ref containerslist - These are the containers which hold the widgets.
33
34 @section license License
35
36 LGPL v2 (see COPYING in the base of Elementary's source). This applies to
37 all files in the source tree.
38
39 @section ack Acknowledgements
40 There is a lot that goes into making a widget set, and they don't happen out of
41 nothing. It's like trying to make everyone everywhere happy, regardless of age,
42 gender, race or nationality - and that is really tough. So thanks to people and
43 organisations behind this, as listed in the @ref authors page.
44 */
45
46
47 /**
48  * @defgroup Start Getting Started
49  *
50  * To write an Elementary app, you can get started with the following:
51  *
52 @code
53 #include <Elementary.h>
54 EAPI_MAIN int
55 elm_main(int argc, char **argv)
56 {
57    // create window(s) here and do any application init
58    elm_run(); // run main loop
59    elm_shutdown(); // after mainloop finishes running, shutdown
60    return 0; // exit 0 for exit code
61 }
62 ELM_MAIN()
63 @endcode
64  *
65  * To use autotools (which helps in many ways in the long run, like being able
66  * to immediately create releases of your software directly from your tree
67  * and ensure everything needed to build it is there) you will need a
68  * configure.ac, Makefile.am and autogen.sh file.
69  *
70  * configure.ac:
71  *
72 @verbatim
73 AC_INIT(myapp, 0.0.0, myname@mydomain.com)
74 AC_PREREQ(2.52)
75 AC_CONFIG_SRCDIR(configure.ac)
76 AM_CONFIG_HEADER(config.h)
77 AC_PROG_CC
78 AM_INIT_AUTOMAKE(1.6 dist-bzip2)
79 PKG_CHECK_MODULES([ELEMENTARY], elementary)
80 AC_OUTPUT(Makefile)
81 @endverbatim
82  *
83  * Makefile.am:
84  *
85 @verbatim
86 AUTOMAKE_OPTIONS = 1.4 foreign
87 MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.h.in configure depcomp install-sh missing
88
89 INCLUDES = -I$(top_srcdir)
90
91 bin_PROGRAMS = myapp
92
93 myapp_SOURCES = main.c
94 myapp_LDADD = @ELEMENTARY_LIBS@
95 myapp_CFLAGS = @ELEMENTARY_CFLAGS@
96 @endverbatim
97  *
98  * autogen.sh:
99  *
100 @verbatim
101 #!/bin/sh
102 echo "Running aclocal..." ; aclocal $ACLOCAL_FLAGS || exit 1
103 echo "Running autoheader..." ; autoheader || exit 1
104 echo "Running autoconf..." ; autoconf || exit 1
105 echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
106 ./configure "$@"
107 @endverbatim
108  *
109  * To generate all the things needed to bootstrap just run:
110  *
111 @verbatim
112 ./autogen.sh
113 @endverbatim
114  *
115  * This will generate Makefile.in's, the confgure script and everything else.
116  * After this it works like all normal autotools projects:
117 @verbatim
118 ./configure
119 make
120 sudo make install
121 @endverbatim
122  *
123  * Note sudo was assumed to get root permissions, as this would install in
124  * /usr/local which is system-owned. Use any way you like to gain root, or
125  * specify a different prefix with configure:
126  *
127 @verbatim
128 ./confiugre --prefix=$HOME/mysoftware
129 @endverbatim
130  *
131  * Also remember that autotools buys you some useful commands like:
132 @verbatim
133 make uninstall
134 @endverbatim
135  *
136  * This uninstalls the software after it was installed with "make install".
137  * It is very useful to clear up what you built if you wish to clean the
138  * system.
139  *
140 @verbatim
141 make distcheck
142 @endverbatim
143  *
144  * This firstly checks if your build tree is "clean" and ready for
145  * distribution. It also builds a tarball (myapp-0.0.0.tar.gz) that is
146  * ready to upload and distribute to the world, that contains the generated
147  * Makefile.in's and configure script. The users do not need to run
148  * autogen.sh - just configure and on. They don't need autotools installed.
149  * This tarball also builds cleanly, has all the sources it needs to build
150  * included (that is sources for your application, not libraries it depends
151  * on like Elementary). It builds cleanly in a buildroot and does not
152  * contain any files that are temporarily generated like binaries and other
153  * build-generated files, so the tarball is clean, and no need to worry
154  * about cleaning up your tree before packaging.
155  *
156 @verbatim
157 make clean
158 @endverbatim
159  *
160  * This cleans up all build files (binaries, objects etc.) from the tree.
161  *
162 @verbatim
163 make distclean
164 @endverbatim
165  *
166  * This cleans out all files from the build and from configure's output too.
167  *
168 @verbatim
169 make maintainer-clean
170 @endverbatim
171  *
172  * This deletes all the files autogen.sh will produce so the tree is clean
173  * to be put into a revision-control system (like CVS, SVN or GIT for example).
174  *
175  * There is a more advanced way of making use of the quicklaunch infrastructure
176  * in Elementary (which will not be covered here due to its more advanced
177  * nature).
178  *
179  * Now let's actually create an interactive "Hello World" gui that you can
180  * click the ok button to exit. It's more code because this now does something
181  * much more significant, but it's still very simple:
182  *
183 @code
184 #include <Elementary.h>
185
186 static void
187 on_done(void *data, Evas_Object *obj, void *event_info)
188 {
189    // quit the mainloop (elm_run function will return)
190    elm_exit();
191 }
192
193 EAPI_MAIN int
194 elm_main(int argc, char **argv)
195 {
196    Evas_Object *win, *bg, *box, *lab, *btn;
197
198    // new window - do the usual and give it a name (hello) and title (Hello)
199    win = elm_win_util_standard_add("hello", "Hello");
200    // when the user clicks "close" on a window there is a request to delete
201    evas_object_smart_callback_add(win, "delete,request", on_done, NULL);
202
203    // add a box object - default is vertical. a box holds children in a row,
204    // either horizontally or vertically. nothing more.
205    box = elm_box_add(win);
206    // make the box hotizontal
207    elm_box_horizontal_set(box, EINA_TRUE);
208    // add object as a resize object for the window (controls window minimum
209    // size as well as gets resized if window is resized)
210    elm_win_resize_object_add(win, box);
211    evas_object_show(box);
212
213    // add a label widget, set the text and put it in the pad frame
214    lab = elm_label_add(win);
215    // set default text of the label
216    elm_object_text_set(lab, "Hello out there world!");
217    // pack the label at the end of the box
218    elm_box_pack_end(box, lab);
219    evas_object_show(lab);
220
221    // add an ok button
222    btn = elm_button_add(win);
223    // set default text of button to "OK"
224    elm_object_text_set(btn, "OK");
225    // pack the button at the end of the box
226    elm_box_pack_end(box, btn);
227    evas_object_show(btn);
228    // call on_done when button is clicked
229    evas_object_smart_callback_add(btn, "clicked", on_done, NULL);
230
231    // now we are done, show the window
232    evas_object_show(win);
233
234    // run the mainloop and process events and callbacks
235    elm_run();
236    return 0;
237 }
238 ELM_MAIN()
239 @endcode
240    *
241    */
242
243 /**
244 @page authors Authors
245 @author Carsten Haitzler <raster@@rasterman.com>
246 @author Gustavo Sverzut Barbieri <barbieri@@profusion.mobi>
247 @author Cedric Bail <cedric.bail@@free.fr>
248 @author Vincent Torri <vtorri@@univ-evry.fr>
249 @author Daniel Kolesa <quaker66@@gmail.com>
250 @author Jaime Thomas <avi.thomas@@gmail.com>
251 @author Swisscom - http://www.swisscom.ch/
252 @author Christopher Michael <devilhorns@@comcast.net>
253 @author Marco Trevisan (TreviƱo) <mail@@3v1n0.net>
254 @author Michael Bouchaud <michael.bouchaud@@gmail.com>
255 @author Jonathan Atton (Watchwolf) <jonathan.atton@@gmail.com>
256 @author Brian Wang <brian.wang.0721@@gmail.com>
257 @author Mike Blumenkrantz (zmike) <mike@@zentific.com>
258 @author Samsung Electronics <tbd>
259 @author Samsung SAIT <tbd>
260 @author Brett Nash <nash@@nash.id.au>
261 @author Bruno Dilly <bdilly@@profusion.mobi>
262 @author Rafael Fonseca <rfonseca@@profusion.mobi>
263 @author Chuneon Park <hermet@@hermet.pe.kr>
264 @author Woohyun Jung <wh0705.jung@@samsung.com>
265 @author Jaehwan Kim <jae.hwan.kim@@samsung.com>
266 @author Wonguk Jeong <wonguk.jeong@@samsung.com>
267 @author Leandro A. F. Pereira <leandro@@profusion.mobi>
268 @author Helen Fornazier <helen.fornazier@@profusion.mobi>
269 @author Gustavo Lima Chaves <glima@@profusion.mobi>
270 @author Fabiano FidĆŖncio <fidencio@@profusion.mobi>
271 @author Tiago FalcĆ£o <tiago@@profusion.mobi>
272 @author Otavio Pontes <otavio@@profusion.mobi>
273 @author Viktor Kojouharov <vkojouharov@@gmail.com>
274 @author Daniel Juyung Seo (SeoZ) <juyung.seo@@samsung.com> <seojuyung2@@gmail.com>
275 @author Sangho Park <sangho.g.park@@samsung.com> <gouache95@@gmail.com>
276 @author Rajeev Ranjan (Rajeev) <rajeev.r@@samsung.com> <rajeev.jnnce@@gmail.com>
277 @author Seunggyun Kim <sgyun.kim@@samsung.com> <tmdrbs@@gmail.com>
278 @author Sohyun Kim <anna1014.kim@@samsung.com> <sohyun.anna@@gmail.com>
279 @author Jihoon Kim <jihoon48.kim@@samsung.com>
280 @author Jeonghyun Yun (arosis) <jh0506.yun@@samsung.com>
281 @author Tom Hacohen <tom@@stosb.com>
282 @author Aharon Hillel <a.hillel@@partner.samsung.com>
283 @author Jonathan Atton (Watchwolf) <jonathan.atton@@gmail.com>
284 @author Shinwoo Kim <kimcinoo@@gmail.com>
285 @author Govindaraju SM <govi.sm@@samsung.com> <govism@@gmail.com>
286 @author Prince Kumar Dubey <prince.dubey@@samsung.com> <prince.dubey@@gmail.com>
287 @author Sung W. Park <sungwoo@gmail.com>
288 @author Thierry el Borgi <thierry@substantiel.fr>
289 @author Shilpa Singh <shilpa.singh@samsung.com> <shilpasingh.o@gmail.com>
290 @author Chanwook Jung <joey.jung@samsung.com>
291 @author Hyoyoung Chang <hyoyoung.chang@samsung.com>
292 @author Guillaume "Kuri" Friloux <guillaume.friloux@asp64.com>
293 @author Kim Yunhan <spbear@gmail.com>
294
295 Please contact <enlightenment-devel@lists.sourceforge.net> to get in
296 contact with the developers and maintainers.
297  */
298
299 #ifndef ELEMENTARY_H
300 #define ELEMENTARY_H
301
302 /**
303  * @file Elementary.h
304  * @brief Elementary's API
305  *
306  * Elementary API.
307  */
308
309 @ELM_UNIX_DEF@ ELM_UNIX
310 @ELM_WIN32_DEF@ ELM_WIN32
311 @ELM_WINCE_DEF@ ELM_WINCE
312 @ELM_EDBUS_DEF@ ELM_EDBUS
313 @ELM_EFREET_DEF@ ELM_EFREET
314 @ELM_ETHUMB_DEF@ ELM_ETHUMB
315 @ELM_WEB_DEF@ ELM_WEB
316 @ELM_EMAP_DEF@ ELM_EMAP
317 @ELM_DEBUG_DEF@ ELM_DEBUG
318 @ELM_ALLOCA_H_DEF@ ELM_ALLOCA_H
319 @ELM_LIBINTL_H_DEF@ ELM_LIBINTL_H
320 @ELM_DIRENT_H_DEF@ ELM_DIRENT_H
321
322 /* Standard headers for standard system calls etc. */
323 #include <stdio.h>
324 #include <stdlib.h>
325 #include <unistd.h>
326 #include <string.h>
327 #include <sys/types.h>
328 #include <sys/stat.h>
329 #include <sys/time.h>
330 #include <sys/param.h>
331 #include <math.h>
332 #include <fnmatch.h>
333 #include <limits.h>
334 #include <ctype.h>
335 #include <time.h>
336 #ifdef ELM_DIRENT_H
337 # include <dirent.h>
338 #endif
339 #include <pwd.h>
340 #include <errno.h>
341
342 #ifdef ELM_UNIX
343 # include <locale.h>
344 # ifdef ELM_LIBINTL_H
345 #  include <libintl.h>
346 # endif
347 # include <signal.h>
348 # include <grp.h>
349 # include <glob.h>
350 #endif
351
352 #ifdef ELM_ALLOCA_H
353 # include <alloca.h>
354 #endif
355
356 #if defined (ELM_WIN32) || defined (ELM_WINCE)
357 # include <malloc.h>
358 # ifndef alloca
359 #  define alloca _alloca
360 # endif
361 #endif
362
363
364 /* EFL headers */
365 #include <Eina.h>
366 #include <Eet.h>
367 #include <Evas.h>
368 // disabled - evas 1.1 won't have this.
369 //#include <Evas_GL.h>
370 #include <Ecore.h>
371 #include <Ecore_Evas.h>
372 #include <Ecore_File.h>
373 @ELEMENTARY_ECORE_IMF_INC@
374 @ELEMENTARY_ECORE_CON_INC@
375 #include <Edje.h>
376
377 #ifdef ELM_EDBUS
378 # include <E_DBus.h>
379 #endif
380
381 #ifdef ELM_EFREET
382 # include <Efreet.h>
383 # include <Efreet_Mime.h>
384 # include <Efreet_Trash.h>
385 #endif
386
387 #ifdef ELM_ETHUMB
388 # include <Ethumb_Client.h>
389 #endif
390
391 #ifdef ELM_EMAP
392 # include <EMap.h>
393 #endif
394
395 #ifdef EAPI
396 # undef EAPI
397 #endif
398
399 #ifdef _WIN32
400 # ifdef ELEMENTARY_BUILD
401 #  ifdef DLL_EXPORT
402 #   define EAPI __declspec(dllexport)
403 #  else
404 #   define EAPI
405 #  endif /* ! DLL_EXPORT */
406 # else
407 #  define EAPI __declspec(dllimport)
408 # endif /* ! EFL_EVAS_BUILD */
409 #else
410 # ifdef __GNUC__
411 #  if __GNUC__ >= 4
412 #   define EAPI __attribute__ ((visibility("default")))
413 #  else
414 #   define EAPI
415 #  endif
416 # else
417 #  define EAPI
418 # endif
419 #endif /* ! _WIN32 */
420
421 #ifdef _WIN32
422 # define EAPI_MAIN
423 #else
424 # define EAPI_MAIN EAPI
425 #endif
426
427 /* allow usage from c++ */
428 #ifdef __cplusplus
429 extern "C" {
430 #endif
431
432 #define ELM_VERSION_MAJOR @VMAJ@
433 #define ELM_VERSION_MINOR @VMIN@
434
435    typedef struct _Elm_Version
436      {
437         int major;
438         int minor;
439         int micro;
440         int revision;
441      } Elm_Version;
442
443    EAPI extern Elm_Version *elm_version;
444
445 /* handy macros */
446 #define ELM_RECTS_INTERSECT(x, y, w, h, xx, yy, ww, hh) (((x) < ((xx) + (ww))) && ((y) < ((yy) + (hh))) && (((x) + (w)) > (xx)) && (((y) + (h)) > (yy)))
447 #define ELM_PI 3.14159265358979323846
448
449    /**
450     * @defgroup General General
451     *
452     * @brief General Elementary API. Functions that don't relate to
453     * Elementary objects specifically.
454     *
455     * Here are documented functions which init/shutdown the library,
456     * that apply to generic Elementary objects, that deal with
457     * configuration, et cetera.
458     *
459     * @ref general_functions_example_page "This" example contemplates
460     * some of these functions.
461     */
462
463    /**
464     * @addtogroup General
465     * @{
466     */
467
468   /**
469    * Defines couple of standard Evas_Object layers to be used
470    * with evas_object_layer_set().
471    *
472    * @note whenever extending with new values, try to keep some padding
473    *       to siblings so there is room for further extensions.
474    */
475   typedef enum _Elm_Object_Layer
476     {
477        ELM_OBJECT_LAYER_BACKGROUND = EVAS_LAYER_MIN + 64, /**< where to place backgrounds */
478        ELM_OBJECT_LAYER_DEFAULT = 0, /**< Evas_Object default layer (and thus for Elementary) */
479        ELM_OBJECT_LAYER_FOCUS = EVAS_LAYER_MAX - 128, /**< where focus object visualization is */
480        ELM_OBJECT_LAYER_TOOLTIP = EVAS_LAYER_MAX - 64, /**< where to show tooltips */
481        ELM_OBJECT_LAYER_CURSOR = EVAS_LAYER_MAX - 32, /**< where to show cursors */
482        ELM_OBJECT_LAYER_LAST /**< last layer known by Elementary */
483     } Elm_Object_Layer;
484
485 /**************************************************************************/
486    EAPI extern int ELM_ECORE_EVENT_ETHUMB_CONNECT;
487
488    /**
489     * Emitted when the application has reconfigured elementary settings due
490     * to an external configuration tool asking it to.
491     */
492    EAPI extern int ELM_EVENT_CONFIG_ALL_CHANGED;
493
494    /**
495     * Emitted when any Elementary's policy value is changed.
496     */
497    EAPI extern int ELM_EVENT_POLICY_CHANGED;
498
499    /**
500     * @typedef Elm_Event_Policy_Changed
501     *
502     * Data on the event when an Elementary policy has changed
503     */
504     typedef struct _Elm_Event_Policy_Changed Elm_Event_Policy_Changed;
505
506    /**
507     * @struct _Elm_Event_Policy_Changed
508     *
509     * Data on the event when an Elementary policy has changed
510     */
511     struct _Elm_Event_Policy_Changed
512      {
513         unsigned int policy; /**< the policy identifier */
514         int          new_value; /**< value the policy had before the change */
515         int          old_value; /**< new value the policy got */
516     };
517
518    /**
519     * Policy identifiers.
520     */
521     typedef enum _Elm_Policy
522     {
523         ELM_POLICY_QUIT, /**< under which circumstances the application
524                           * should quit automatically. @see
525                           * Elm_Policy_Quit.
526                           */
527         ELM_POLICY_LAST
528     } Elm_Policy; /**< Elementary policy identifiers/groups enumeration.  @see elm_policy_set()
529  */
530
531    typedef enum _Elm_Policy_Quit
532      {
533         ELM_POLICY_QUIT_NONE = 0, /**< never quit the application
534                                    * automatically */
535         ELM_POLICY_QUIT_LAST_WINDOW_CLOSED /**< quit when the
536                                             * application's last
537                                             * window is closed */
538      } Elm_Policy_Quit; /**< Possible values for the #ELM_POLICY_QUIT policy */
539
540    typedef enum _Elm_Focus_Direction
541      {
542         ELM_FOCUS_PREVIOUS,
543         ELM_FOCUS_NEXT
544      } Elm_Focus_Direction;
545
546    typedef enum _Elm_Text_Format
547      {
548         ELM_TEXT_FORMAT_PLAIN_UTF8,
549         ELM_TEXT_FORMAT_MARKUP_UTF8
550      } Elm_Text_Format;
551
552    /**
553     * Line wrapping types.
554     */
555    typedef enum _Elm_Wrap_Type
556      {
557         ELM_WRAP_NONE = 0, /**< No wrap - value is zero */
558         ELM_WRAP_CHAR, /**< Char wrap - wrap between characters */
559         ELM_WRAP_WORD, /**< Word wrap - wrap in allowed wrapping points (as defined in the unicode standard) */
560         ELM_WRAP_MIXED, /**< Mixed wrap - Word wrap, and if that fails, char wrap. */
561         ELM_WRAP_LAST
562      } Elm_Wrap_Type;
563
564    typedef enum
565      {
566         ELM_INPUT_PANEL_LAYOUT_NORMAL,          /**< Default layout */
567         ELM_INPUT_PANEL_LAYOUT_NUMBER,          /**< Number layout */
568         ELM_INPUT_PANEL_LAYOUT_EMAIL,           /**< Email layout */
569         ELM_INPUT_PANEL_LAYOUT_URL,             /**< URL layout */
570         ELM_INPUT_PANEL_LAYOUT_PHONENUMBER,     /**< Phone Number layout */
571         ELM_INPUT_PANEL_LAYOUT_IP,              /**< IP layout */
572         ELM_INPUT_PANEL_LAYOUT_MONTH,           /**< Month layout */
573         ELM_INPUT_PANEL_LAYOUT_NUMBERONLY,      /**< Number Only layout */
574         ELM_INPUT_PANEL_LAYOUT_INVALID
575      } Elm_Input_Panel_Layout;
576
577    typedef enum
578      {
579         ELM_AUTOCAPITAL_TYPE_NONE,
580         ELM_AUTOCAPITAL_TYPE_WORD,
581         ELM_AUTOCAPITAL_TYPE_SENTENCE,
582         ELM_AUTOCAPITAL_TYPE_ALLCHARACTER,
583      } Elm_Autocapital_Type;
584
585    /**
586     * @typedef Elm_Object_Item
587     * An Elementary Object item handle.
588     * @ingroup General
589     */
590    typedef struct _Elm_Object_Item Elm_Object_Item;
591
592
593    /**
594     * Called back when a widget's tooltip is activated and needs content.
595     * @param data user-data given to elm_object_tooltip_content_cb_set()
596     * @param obj owner widget.
597     * @param tooltip The tooltip object (affix content to this!)
598     */
599    typedef Evas_Object *(*Elm_Tooltip_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip);
600
601    /**
602     * Called back when a widget's item tooltip is activated and needs content.
603     * @param data user-data given to elm_object_tooltip_content_cb_set()
604     * @param obj owner widget.
605     * @param tooltip The tooltip object (affix content to this!)
606     * @param item context dependent item. As an example, if tooltip was
607     *        set on Elm_List_Item, then it is of this type.
608     */
609    typedef Evas_Object *(*Elm_Tooltip_Item_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip, void *item);
610
611    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. */
612
613 #ifndef ELM_LIB_QUICKLAUNCH
614 #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 */
615 #else
616 #define ELM_MAIN() int main(int argc, char **argv) {return elm_quicklaunch_fallback(argc, argv);} /**< macro to be used after the elm_main() function */
617 #endif
618
619 /**************************************************************************/
620    /* General calls */
621
622    /**
623     * Initialize Elementary
624     *
625     * @param[in] argc System's argument count value
626     * @param[in] argv System's pointer to array of argument strings
627     * @return The init counter value.
628     *
629     * This function initializes Elementary and increments a counter of
630     * the number of calls to it. It returns the new counter's value.
631     *
632     * @warning This call is exported only for use by the @c ELM_MAIN()
633     * macro. There is no need to use this if you use this macro (which
634     * is highly advisable). An elm_main() should contain the entry
635     * point code for your application, having the same prototype as
636     * elm_init(), and @b not being static (putting the @c EAPI symbol
637     * in front of its type declaration is advisable). The @c
638     * ELM_MAIN() call should be placed just after it.
639     *
640     * Example:
641     * @dontinclude bg_example_01.c
642     * @skip static void
643     * @until ELM_MAIN
644     *
645     * See the full @ref bg_example_01_c "example".
646     *
647     * @see elm_shutdown().
648     * @ingroup General
649     */
650    EAPI int          elm_init(int argc, char **argv);
651
652    /**
653     * Shut down Elementary
654     *
655     * @return The init counter value.
656     *
657     * This should be called at the end of your application, just
658     * before it ceases to do any more processing. This will clean up
659     * any permanent resources your application may have allocated via
660     * Elementary that would otherwise persist.
661     *
662     * @see elm_init() for an example
663     *
664     * @ingroup General
665     */
666    EAPI int          elm_shutdown(void);
667
668    /**
669     * Run Elementary's main loop
670     *
671     * This call should be issued just after all initialization is
672     * completed. This function will not return until elm_exit() is
673     * called. It will keep looping, running the main
674     * (event/processing) loop for Elementary.
675     *
676     * @see elm_init() for an example
677     *
678     * @ingroup General
679     */
680    EAPI void         elm_run(void);
681
682    /**
683     * Exit Elementary's main loop
684     *
685     * If this call is issued, it will flag the main loop to cease
686     * processing and return back to its parent function (usually your
687     * elm_main() function).
688     *
689     * @see elm_init() for an example. There, just after a request to
690     * close the window comes, the main loop will be left.
691     *
692     * @note By using the appropriate #ELM_POLICY_QUIT on your Elementary
693     * applications, you'll be able to get this function called automatically for you.
694     *
695     * @ingroup General
696     */
697    EAPI void         elm_exit(void);
698
699    /**
700     * Provide information in order to make Elementary determine the @b
701     * run time location of the software in question, so other data files
702     * such as images, sound files, executable utilities, libraries,
703     * modules and locale files can be found.
704     *
705     * @param mainfunc This is your application's main function name,
706     *        whose binary's location is to be found. Providing @c NULL
707     *        will make Elementary not to use it
708     * @param dom This will be used as the application's "domain", in the
709     *        form of a prefix to any environment variables that may
710     *        override prefix detection and the directory name, inside the
711     *        standard share or data directories, where the software's
712     *        data files will be looked for.
713     * @param checkfile This is an (optional) magic file's path to check
714     *        for existence (and it must be located in the data directory,
715     *        under the share directory provided above). Its presence will
716     *        help determine the prefix found was correct. Pass @c NULL if
717     *        the check is not to be done.
718     *
719     * This function allows one to re-locate the application somewhere
720     * else after compilation, if the developer wishes for easier
721     * distribution of pre-compiled binaries.
722     *
723     * The prefix system is designed to locate where the given software is
724     * installed (under a common path prefix) at run time and then report
725     * specific locations of this prefix and common directories inside
726     * this prefix like the binary, library, data and locale directories,
727     * through the @c elm_app_*_get() family of functions.
728     *
729     * Call elm_app_info_set() early on before you change working
730     * directory or anything about @c argv[0], so it gets accurate
731     * information.
732     *
733     * It will then try and trace back which file @p mainfunc comes from,
734     * if provided, to determine the application's prefix directory.
735     *
736     * The @p dom parameter provides a string prefix to prepend before
737     * environment variables, allowing a fallback to @b specific
738     * environment variables to locate the software. You would most
739     * probably provide a lowercase string there, because it will also
740     * serve as directory domain, explained next. For environment
741     * variables purposes, this string is made uppercase. For example if
742     * @c "myapp" is provided as the prefix, then the program would expect
743     * @c "MYAPP_PREFIX" as a master environment variable to specify the
744     * exact install prefix for the software, or more specific environment
745     * variables like @c "MYAPP_BIN_DIR", @c "MYAPP_LIB_DIR", @c
746     * "MYAPP_DATA_DIR" and @c "MYAPP_LOCALE_DIR", which could be set by
747     * the user or scripts before launching. If not provided (@c NULL),
748     * environment variables will not be used to override compiled-in
749     * defaults or auto detections.
750     *
751     * The @p dom string also provides a subdirectory inside the system
752     * shared data directory for data files. For example, if the system
753     * directory is @c /usr/local/share, then this directory name is
754     * appended, creating @c /usr/local/share/myapp, if it @p was @c
755     * "myapp". It is expected that the application installs data files in
756     * this directory.
757     *
758     * The @p checkfile is a file name or path of something inside the
759     * share or data directory to be used to test that the prefix
760     * detection worked. For example, your app will install a wallpaper
761     * image as @c /usr/local/share/myapp/images/wallpaper.jpg and so to
762     * check that this worked, provide @c "images/wallpaper.jpg" as the @p
763     * checkfile string.
764     *
765     * @see elm_app_compile_bin_dir_set()
766     * @see elm_app_compile_lib_dir_set()
767     * @see elm_app_compile_data_dir_set()
768     * @see elm_app_compile_locale_set()
769     * @see elm_app_prefix_dir_get()
770     * @see elm_app_bin_dir_get()
771     * @see elm_app_lib_dir_get()
772     * @see elm_app_data_dir_get()
773     * @see elm_app_locale_dir_get()
774     */
775    EAPI void         elm_app_info_set(void *mainfunc, const char *dom, const char *checkfile);
776
777    /**
778     * Provide information on the @b fallback application's binaries
779     * directory, in scenarios where they get overriden by
780     * elm_app_info_set().
781     *
782     * @param dir The path to the default binaries directory (compile time
783     * one)
784     *
785     * @note Elementary will as well use this path to determine actual
786     * names of binaries' directory paths, maybe changing it to be @c
787     * something/local/bin instead of @c something/bin, only, for
788     * example.
789     *
790     * @warning You should call this function @b before
791     * elm_app_info_set().
792     */
793    EAPI void         elm_app_compile_bin_dir_set(const char *dir);
794
795    /**
796     * Provide information on the @b fallback application's libraries
797     * directory, on scenarios where they get overriden by
798     * elm_app_info_set().
799     *
800     * @param dir The path to the default libraries directory (compile
801     * time one)
802     *
803     * @note Elementary will as well use this path to determine actual
804     * names of libraries' directory paths, maybe changing it to be @c
805     * something/lib32 or @c something/lib64 instead of @c something/lib,
806     * only, for example.
807     *
808     * @warning You should call this function @b before
809     * elm_app_info_set().
810     */
811    EAPI void         elm_app_compile_lib_dir_set(const char *dir);
812
813    /**
814     * Provide information on the @b fallback application's data
815     * directory, on scenarios where they get overriden by
816     * elm_app_info_set().
817     *
818     * @param dir The path to the default data directory (compile time
819     * one)
820     *
821     * @note Elementary will as well use this path to determine actual
822     * names of data directory paths, maybe changing it to be @c
823     * something/local/share instead of @c something/share, only, for
824     * example.
825     *
826     * @warning You should call this function @b before
827     * elm_app_info_set().
828     */
829    EAPI void         elm_app_compile_data_dir_set(const char *dir);
830
831    /**
832     * Provide information on the @b fallback application's locale
833     * directory, on scenarios where they get overriden by
834     * elm_app_info_set().
835     *
836     * @param dir The path to the default locale directory (compile time
837     * one)
838     *
839     * @warning You should call this function @b before
840     * elm_app_info_set().
841     */
842    EAPI void         elm_app_compile_locale_set(const char *dir);
843
844    /**
845     * Retrieve the application's run time prefix directory, as set by
846     * elm_app_info_set() and the way (environment) the application was
847     * run from.
848     *
849     * @return The directory prefix the application is actually using.
850     */
851    EAPI const char  *elm_app_prefix_dir_get(void);
852
853    /**
854     * Retrieve the application's run time binaries prefix directory, as
855     * set by elm_app_info_set() and the way (environment) the application
856     * was run from.
857     *
858     * @return The binaries directory prefix the application is actually
859     * using.
860     */
861    EAPI const char  *elm_app_bin_dir_get(void);
862
863    /**
864     * Retrieve the application's run time libraries prefix directory, as
865     * set by elm_app_info_set() and the way (environment) the application
866     * was run from.
867     *
868     * @return The libraries directory prefix the application is actually
869     * using.
870     */
871    EAPI const char  *elm_app_lib_dir_get(void);
872
873    /**
874     * Retrieve the application's run time data prefix directory, as
875     * set by elm_app_info_set() and the way (environment) the application
876     * was run from.
877     *
878     * @return The data directory prefix the application is actually
879     * using.
880     */
881    EAPI const char  *elm_app_data_dir_get(void);
882
883    /**
884     * Retrieve the application's run time locale prefix directory, as
885     * set by elm_app_info_set() and the way (environment) the application
886     * was run from.
887     *
888     * @return The locale directory prefix the application is actually
889     * using.
890     */
891    EAPI const char  *elm_app_locale_dir_get(void);
892
893    EAPI void         elm_quicklaunch_mode_set(Eina_Bool ql_on);
894    EAPI Eina_Bool    elm_quicklaunch_mode_get(void);
895    EAPI int          elm_quicklaunch_init(int argc, char **argv);
896    EAPI int          elm_quicklaunch_sub_init(int argc, char **argv);
897    EAPI int          elm_quicklaunch_sub_shutdown(void);
898    EAPI int          elm_quicklaunch_shutdown(void);
899    EAPI void         elm_quicklaunch_seed(void);
900    EAPI Eina_Bool    elm_quicklaunch_prepare(int argc, char **argv);
901    EAPI Eina_Bool    elm_quicklaunch_fork(int argc, char **argv, char *cwd, void (postfork_func) (void *data), void *postfork_data);
902    EAPI void         elm_quicklaunch_cleanup(void);
903    EAPI int          elm_quicklaunch_fallback(int argc, char **argv);
904    EAPI char        *elm_quicklaunch_exe_path_get(const char *exe);
905
906    EAPI Eina_Bool    elm_need_efreet(void);
907    EAPI Eina_Bool    elm_need_e_dbus(void);
908
909    /**
910     * This must be called before any other function that deals with
911     * elm_thumb objects or ethumb_client instances.
912     *
913     * @ingroup Thumb
914     */
915    EAPI Eina_Bool    elm_need_ethumb(void);
916
917    /**
918     * This must be called before any other function that deals with
919     * elm_web objects or ewk_view instances.
920     *
921     * @ingroup Web
922     */
923    EAPI Eina_Bool    elm_need_web(void);
924
925    /**
926     * Set a new policy's value (for a given policy group/identifier).
927     *
928     * @param policy policy identifier, as in @ref Elm_Policy.
929     * @param value policy value, which depends on the identifier
930     *
931     * @return @c EINA_TRUE on success or @c EINA_FALSE, on error.
932     *
933     * Elementary policies define applications' behavior,
934     * somehow. These behaviors are divided in policy groups (see
935     * #Elm_Policy enumeration). This call will emit the Ecore event
936     * #ELM_EVENT_POLICY_CHANGED, which can be hooked at with
937     * handlers. An #Elm_Event_Policy_Changed struct will be passed,
938     * then.
939     *
940     * @note Currently, we have only one policy identifier/group
941     * (#ELM_POLICY_QUIT), which has two possible values.
942     *
943     * @ingroup General
944     */
945    EAPI Eina_Bool    elm_policy_set(unsigned int policy, int value);
946
947    /**
948     * Gets the policy value for given policy identifier.
949     *
950     * @param policy policy identifier, as in #Elm_Policy.
951     * @return The currently set policy value, for that
952     * identifier. Will be @c 0 if @p policy passed is invalid.
953     *
954     * @ingroup General
955     */
956    EAPI int          elm_policy_get(unsigned int policy);
957
958    /**
959     * Change the language of the current application
960     *
961     * The @p lang passed must be the full name of the locale to use, for
962     * example "en_US.utf8" or "es_ES@euro".
963     *
964     * Changing language with this function will make Elementary run through
965     * all its widgets, translating strings set with
966     * elm_object_domain_translatable_text_part_set(). This way, an entire
967     * UI can have its language changed without having to restart the program.
968     *
969     * For more complex cases, like having formatted strings that need
970     * translation, widgets will also emit a "language,changed" signal that
971     * the user can listen to to manually translate the text.
972     *
973     * @param lang Language to set, must be the full name of the locale
974     *
975     * @ingroup General
976     */
977    EAPI void         elm_language_set(const char *lang);
978
979    /**
980     * Set a label of an object
981     *
982     * @param obj The Elementary object
983     * @param part The text part name to set (NULL for the default label)
984     * @param label The new text of the label
985     *
986     * @note Elementary objects may have many labels (e.g. Action Slider)
987     * @deprecated Use elm_object_part_text_set() instead.
988     * @ingroup General
989     */
990    EINA_DEPRECATED EAPI void elm_object_text_part_set(Evas_Object *obj, const char *part, const char *label);
991
992    /**
993     * Set a label of an object
994     *
995     * @param obj The Elementary object
996     * @param part The text part name to set (NULL for the default label)
997     * @param label The new text of the label
998     *
999     * @note Elementary objects may have many labels (e.g. Action Slider)
1000     *
1001     * @ingroup General
1002     */
1003    EAPI void elm_object_part_text_set(Evas_Object *obj, const char *part, const char *label);
1004
1005 #define elm_object_text_set(obj, label) elm_object_part_text_set((obj), NULL, (label))
1006
1007    /**
1008     * Get a label of an object
1009     *
1010     * @param obj The Elementary object
1011     * @param part The text part name to get (NULL for the default label)
1012     * @return text of the label or NULL for any error
1013     *
1014     * @note Elementary objects may have many labels (e.g. Action Slider)
1015     * @deprecated Use elm_object_part_text_get() instead.
1016     * @ingroup General
1017     */
1018    EINA_DEPRECATED EAPI const char  *elm_object_text_part_get(const Evas_Object *obj, const char *part);
1019
1020    /**
1021     * Get a label of an object
1022     *
1023     * @param obj The Elementary object
1024     * @param part The text part name to get (NULL for the default label)
1025     * @return text of the label or NULL for any error
1026     *
1027     * @note Elementary objects may have many labels (e.g. Action Slider)
1028     *
1029     * @ingroup General
1030     */
1031    EAPI const char  *elm_object_part_text_get(const Evas_Object *obj, const char *part);
1032
1033 #define elm_object_text_get(obj) elm_object_part_text_get((obj), NULL)
1034
1035    /**
1036     * Set the text for an objects' part, marking it as translatable.
1037     *
1038     * The string to set as @p text must be the original one. Do not pass the
1039     * return of @c gettext() here. Elementary will translate the string
1040     * internally and set it on the object using elm_object_part_text_set(),
1041     * also storing the original string so that it can be automatically
1042     * translated when the language is changed with elm_language_set().
1043     *
1044     * The @p domain will be stored along to find the translation in the
1045     * correct catalog. It can be NULL, in which case it will use whatever
1046     * domain was set by the application with @c textdomain(). This is useful
1047     * in case you are building a library on top of Elementary that will have
1048     * its own translatable strings, that should not be mixed with those of
1049     * programs using the library.
1050     *
1051     * @param obj The object containing the text part
1052     * @param part The name of the part to set
1053     * @param domain The translation domain to use
1054     * @param text The original, non-translated text to set
1055     *
1056     * @ingroup General
1057     */
1058    EAPI void         elm_object_domain_translatable_text_part_set(Evas_Object *obj, const char *part, const char *domain, const char *text);
1059
1060 #define elm_object_domain_translatable_text_set(obj, domain, text) elm_object_domain_translatable_text_part_set((obj), NULL, (domain), (text))
1061
1062 #define elm_object_translatable_text_set(obj, text) elm_object_domain_translatable_text_part_set((obj), NULL, NULL, (text))
1063
1064    /**
1065     * Gets the original string set as translatable for an object
1066     *
1067     * When setting translated strings, the function elm_object_part_text_get()
1068     * will return the translation returned by @c gettext(). To get the
1069     * original string use this function.
1070     *
1071     * @param obj The object
1072     * @param part The name of the part that was set
1073     *
1074     * @return The original, untranslated string
1075     *
1076     * @ingroup General
1077     */
1078    EAPI const char  *elm_object_translatable_text_part_get(const Evas_Object *obj, const char *part);
1079
1080 #define elm_object_translatable_text_get(obj) elm_object_translatable_text_part_get((obj), NULL)
1081
1082    /**
1083     * Set a content of an object
1084     *
1085     * @param obj The Elementary object
1086     * @param part The content part name to set (NULL for the default content)
1087     * @param content The new content of the object
1088     *
1089     * @note Elementary objects may have many contents
1090     * @deprecated Use elm_object_part_content_set instead.
1091     * @ingroup General
1092     */
1093    EINA_DEPRECATED EAPI void elm_object_content_part_set(Evas_Object *obj, const char *part, Evas_Object *content);
1094
1095    /**
1096     * Set a content of an object
1097     *
1098     * @param obj The Elementary object
1099     * @param part The content part name to set (NULL for the default content)
1100     * @param content The new content of the object
1101     *
1102     * @note Elementary objects may have many contents
1103     *
1104     * @ingroup General
1105     */
1106    EAPI void elm_object_part_content_set(Evas_Object *obj, const char *part, Evas_Object *content);
1107
1108 #define elm_object_content_set(obj, content) elm_object_part_content_set((obj), NULL, (content))
1109
1110    /**
1111     * Get a content of an object
1112     *
1113     * @param obj The Elementary object
1114     * @param item The content part name to get (NULL for the default content)
1115     * @return content of the object or NULL for any error
1116     *
1117     * @note Elementary objects may have many contents
1118     * @deprecated Use elm_object_part_content_get instead.
1119     * @ingroup General
1120     */
1121    EINA_DEPRECATED EAPI Evas_Object *elm_object_content_part_get(const Evas_Object *obj, const char *part);
1122
1123    /**
1124     * Get a content of an object
1125     *
1126     * @param obj The Elementary object
1127     * @param item The content part name to get (NULL for the default content)
1128     * @return content of the object or NULL for any error
1129     *
1130     * @note Elementary objects may have many contents
1131     *
1132     * @ingroup General
1133     */
1134    EAPI Evas_Object *elm_object_part_content_get(const Evas_Object *obj, const char *part);
1135
1136 #define elm_object_content_get(obj) elm_object_part_content_get((obj), NULL)
1137
1138    /**
1139     * Unset a content of an object
1140     *
1141     * @param obj The Elementary object
1142     * @param item The content part name to unset (NULL for the default content)
1143     *
1144     * @note Elementary objects may have many contents
1145     * @deprecated Use elm_object_part_content_unset instead.
1146     * @ingroup General
1147     */
1148    EINA_DEPRECATED EAPI Evas_Object *elm_object_content_part_unset(Evas_Object *obj, const char *part);
1149
1150    /**
1151     * Unset a content of an object
1152     *
1153     * @param obj The Elementary object
1154     * @param item The content part name to unset (NULL for the default content)
1155     *
1156     * @note Elementary objects may have many contents
1157     *
1158     * @ingroup General
1159     */
1160    EAPI Evas_Object *elm_object_part_content_unset(Evas_Object *obj, const char *part);
1161
1162 #define elm_object_content_unset(obj) elm_object_part_content_unset((obj), NULL)
1163
1164    /**
1165     * Set the text to read out when in accessibility mode
1166     *
1167     * @param obj The object which is to be described
1168     * @param txt The text that describes the widget to people with poor or no vision
1169     *
1170     * @ingroup General
1171     */
1172    EAPI void elm_object_access_info_set(Evas_Object *obj, const char *txt);
1173
1174    /**
1175     * Get the widget object's handle which contains a given item
1176     *
1177     * @param item The Elementary object item
1178     * @return The widget object
1179     *
1180     * @note This returns the widget object itself that an item belongs to.
1181     *
1182     * @ingroup General
1183     */
1184    EAPI Evas_Object *elm_object_item_object_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
1185
1186    /**
1187     * Set a content of an object item
1188     *
1189     * @param it The Elementary object item
1190     * @param part The content part name to set (NULL for the default content)
1191     * @param content The new content of the object item
1192     *
1193     * @note Elementary object items may have many contents
1194     * @deprecated Use elm_object_item_part_content_set instead.
1195     * @ingroup General
1196     */
1197    EINA_DEPRECATED EAPI void elm_object_item_content_part_set(Elm_Object_Item *it, const char *part, Evas_Object *content);
1198
1199    /**
1200     * Set a content of an object item
1201     *
1202     * @param it The Elementary object item
1203     * @param part The content part name to set (NULL for the default content)
1204     * @param content The new content of the object item
1205     *
1206     * @note Elementary object items may have many contents
1207     *
1208     * @ingroup General
1209     */
1210    EAPI void elm_object_item_part_content_set(Elm_Object_Item *it, const char *part, Evas_Object *content);
1211
1212 #define elm_object_item_content_set(it, content) elm_object_item_part_content_set((it), NULL, (content))
1213
1214    /**
1215     * Get a content of an object item
1216     *
1217     * @param it The Elementary object item
1218     * @param part The content part name to unset (NULL for the default content)
1219     * @return content of the object item or NULL for any error
1220     *
1221     * @note Elementary object items may have many contents
1222     * @deprecated Use elm_object_item_part_content_get instead.
1223     * @ingroup General
1224     */
1225    EAPI Evas_Object *elm_object_item_content_part_get(const Elm_Object_Item *it, const char *part);
1226
1227    /**
1228     * Get a content of an object item
1229     *
1230     * @param it The Elementary object item
1231     * @param part The content part name to unset (NULL for the default content)
1232     * @return content of the object item or NULL for any error
1233     *
1234     * @note Elementary object items may have many contents
1235     *
1236     * @ingroup General
1237     */
1238    EAPI Evas_Object *elm_object_item_part_content_get(const Elm_Object_Item *it, const char *part);
1239
1240 #define elm_object_item_content_get(it) elm_object_item_part_content_get((it), NULL)
1241
1242    /**
1243     * Unset a content of an object item
1244     *
1245     * @param it The Elementary object item
1246     * @param part The content part name to unset (NULL for the default content)
1247     *
1248     * @note Elementary object items may have many contents
1249     * @deprecated Use elm_object_item_part_content_unset instead.
1250     * @ingroup General
1251     */
1252    EINA_DEPRECATED EAPI Evas_Object *elm_object_item_content_part_unset(Elm_Object_Item *it, const char *part);
1253
1254    /**
1255     * Unset a content of an object item
1256     *
1257     * @param it The Elementary object item
1258     * @param part The content part name to unset (NULL for the default content)
1259     *
1260     * @note Elementary object items may have many contents
1261     *
1262     * @ingroup General
1263     */
1264    EAPI Evas_Object *elm_object_item_part_content_unset(Elm_Object_Item *it, const char *part);
1265
1266 #define elm_object_item_content_unset(it) elm_object_item_part_content_unset((it), NULL)
1267
1268    /**
1269     * Set a label of an object item
1270     *
1271     * @param it The Elementary object item
1272     * @param part The text part name to set (NULL for the default label)
1273     * @param label The new text of the label
1274     *
1275     * @note Elementary object items may have many labels
1276     * @deprecated Use elm_object_item_part_text_set instead.
1277     * @ingroup General
1278     */
1279    EINA_DEPRECATED EAPI void elm_object_item_text_part_set(Elm_Object_Item *it, const char *part, const char *label);
1280
1281    /**
1282     * Set a label of an object item
1283     *
1284     * @param it The Elementary object item
1285     * @param part The text part name to set (NULL for the default label)
1286     * @param label The new text of the label
1287     *
1288     * @note Elementary object items may have many labels
1289     *
1290     * @ingroup General
1291     */
1292    EAPI void elm_object_item_part_text_set(Elm_Object_Item *it, const char *part, const char *label);
1293
1294 #define elm_object_item_text_set(it, label) elm_object_item_part_text_set((it), NULL, (label))
1295
1296    /**
1297     * Get a label of an object item
1298     *
1299     * @param it The Elementary object item
1300     * @param part The text part name to get (NULL for the default label)
1301     * @return text of the label or NULL for any error
1302     *
1303     * @note Elementary object items may have many labels
1304     * @deprecated Use elm_object_item_part_text_get instead.
1305     * @ingroup General
1306     */
1307    EINA_DEPRECATED EAPI const char *elm_object_item_text_part_get(const Elm_Object_Item *it, const char *part);
1308    /**
1309     * Get a label of an object item
1310     *
1311     * @param it The Elementary object item
1312     * @param part The text part name to get (NULL for the default label)
1313     * @return text of the label or NULL for any error
1314     *
1315     * @note Elementary object items may have many labels
1316     *
1317     * @ingroup General
1318     */
1319    EAPI const char *elm_object_item_part_text_get(const Elm_Object_Item *it, const char *part);
1320
1321 #define elm_object_item_text_get(it) elm_object_item_part_text_get((it), NULL)
1322
1323    /**
1324     * Set the text to read out when in accessibility mode
1325     *
1326     * @param it The object item which is to be described
1327     * @param txt The text that describes the widget to people with poor or no vision
1328     *
1329     * @ingroup General
1330     */
1331    EAPI void elm_object_item_access_info_set(Elm_Object_Item *it, const char *txt);
1332
1333    /**
1334     * Get the data associated with an object item
1335     * @param it The Elementary object item
1336     * @return The data associated with @p it
1337     *
1338     * @ingroup General
1339     */
1340    EAPI void *elm_object_item_data_get(const Elm_Object_Item *it);
1341
1342    /**
1343     * Set the data associated with an object item
1344     * @param it The Elementary object item
1345     * @param data The data to be associated with @p it
1346     *
1347     * @ingroup General
1348     */
1349    EAPI void elm_object_item_data_set(Elm_Object_Item *it, void *data);
1350
1351    /**
1352     * Send a signal to the edje object of the widget item.
1353     *
1354     * This function sends a signal to the edje object of the obj item. An
1355     * edje program can respond to a signal by specifying matching
1356     * 'signal' and 'source' fields.
1357     *
1358     * @param it The Elementary object item
1359     * @param emission The signal's name.
1360     * @param source The signal's source.
1361     * @ingroup General
1362     */
1363    EAPI void elm_object_item_signal_emit(Elm_Object_Item *it, const char *emission, const char *source) EINA_ARG_NONNULL(1);
1364
1365    /**
1366     * Set the disabled state of an widget item.
1367     *
1368     * @param obj The Elementary object item
1369     * @param disabled The state to put in in: @c EINA_TRUE for
1370     *        disabled, @c EINA_FALSE for enabled
1371     *
1372     * Elementary object item can be @b disabled, in which state they won't
1373     * receive input and, in general, will be themed differently from
1374     * their normal state, usually greyed out. Useful for contexts
1375     * where you don't want your users to interact with some of the
1376     * parts of you interface.
1377     *
1378     * This sets the state for the widget item, either disabling it or
1379     * enabling it back.
1380     *
1381     * @ingroup Styles
1382     */
1383    EAPI void elm_object_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
1384
1385    /**
1386     * Get the disabled state of an widget item.
1387     *
1388     * @param obj The Elementary object
1389     * @return @c EINA_TRUE, if the widget item is disabled, @c EINA_FALSE
1390     *            if it's enabled (or on errors)
1391     *
1392     * This gets the state of the widget, which might be enabled or disabled.
1393     *
1394     * @ingroup Styles
1395     */
1396    EAPI Eina_Bool    elm_object_item_disabled_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
1397
1398    /**
1399     * @}
1400     */
1401
1402    /**
1403     * @defgroup Caches Caches
1404     *
1405     * These are functions which let one fine-tune some cache values for
1406     * Elementary applications, thus allowing for performance adjustments.
1407     *
1408     * @{
1409     */
1410
1411    /**
1412     * @brief Flush all caches.
1413     *
1414     * Frees all data that was in cache and is not currently being used to reduce
1415     * memory usage. This frees Edje's, Evas' and Eet's cache. This is equivalent
1416     * to calling all of the following functions:
1417     * @li edje_file_cache_flush()
1418     * @li edje_collection_cache_flush()
1419     * @li eet_clearcache()
1420     * @li evas_image_cache_flush()
1421     * @li evas_font_cache_flush()
1422     * @li evas_render_dump()
1423     * @note Evas caches are flushed for every canvas associated with a window.
1424     *
1425     * @ingroup Caches
1426     */
1427    EAPI void         elm_all_flush(void);
1428
1429    /**
1430     * Get the configured cache flush interval time
1431     *
1432     * This gets the globally configured cache flush interval time, in
1433     * ticks
1434     *
1435     * @return The cache flush interval time
1436     * @ingroup Caches
1437     *
1438     * @see elm_all_flush()
1439     */
1440    EAPI int          elm_cache_flush_interval_get(void);
1441
1442    /**
1443     * Set the configured cache flush interval time
1444     *
1445     * This sets the globally configured cache flush interval time, in ticks
1446     *
1447     * @param size The cache flush interval time
1448     * @ingroup Caches
1449     *
1450     * @see elm_all_flush()
1451     */
1452    EAPI void         elm_cache_flush_interval_set(int size);
1453
1454    /**
1455     * Set the configured cache flush interval time for all applications on the
1456     * display
1457     *
1458     * This sets the globally configured cache flush interval time -- in ticks
1459     * -- for all applications on the display.
1460     *
1461     * @param size The cache flush interval time
1462     * @ingroup Caches
1463     */
1464    EAPI void         elm_cache_flush_interval_all_set(int size);
1465
1466    /**
1467     * Get the configured cache flush enabled state
1468     *
1469     * This gets the globally configured cache flush state - if it is enabled
1470     * or not. When cache flushing is enabled, elementary will regularly
1471     * (see elm_cache_flush_interval_get() ) flush caches and dump data out of
1472     * memory and allow usage to re-seed caches and data in memory where it
1473     * can do so. An idle application will thus minimise its memory usage as
1474     * data will be freed from memory and not be re-loaded as it is idle and
1475     * not rendering or doing anything graphically right now.
1476     *
1477     * @return The cache flush state
1478     * @ingroup Caches
1479     *
1480     * @see elm_all_flush()
1481     */
1482    EAPI Eina_Bool    elm_cache_flush_enabled_get(void);
1483
1484    /**
1485     * Set the configured cache flush enabled state
1486     *
1487     * This sets the globally configured cache flush enabled state.
1488     *
1489     * @param size The cache flush enabled state
1490     * @ingroup Caches
1491     *
1492     * @see elm_all_flush()
1493     */
1494    EAPI void         elm_cache_flush_enabled_set(Eina_Bool enabled);
1495
1496    /**
1497     * Set the configured cache flush enabled state for all applications on the
1498     * display
1499     *
1500     * This sets the globally configured cache flush enabled state for all
1501     * applications on the display.
1502     *
1503     * @param size The cache flush enabled state
1504     * @ingroup Caches
1505     */
1506    EAPI void         elm_cache_flush_enabled_all_set(Eina_Bool enabled);
1507
1508    /**
1509     * Get the configured font cache size
1510     *
1511     * This gets the globally configured font cache size, in bytes.
1512     *
1513     * @return The font cache size
1514     * @ingroup Caches
1515     */
1516    EAPI int          elm_font_cache_get(void);
1517
1518    /**
1519     * Set the configured font cache size
1520     *
1521     * This sets the globally configured font cache size, in bytes
1522     *
1523     * @param size The font cache size
1524     * @ingroup Caches
1525     */
1526    EAPI void         elm_font_cache_set(int size);
1527
1528    /**
1529     * Set the configured font cache size for all applications on the
1530     * display
1531     *
1532     * This sets the globally configured font cache size -- in bytes
1533     * -- for all applications on the display.
1534     *
1535     * @param size The font cache size
1536     * @ingroup Caches
1537     */
1538    EAPI void         elm_font_cache_all_set(int size);
1539
1540    /**
1541     * Get the configured image cache size
1542     *
1543     * This gets the globally configured image cache size, in bytes
1544     *
1545     * @return The image cache size
1546     * @ingroup Caches
1547     */
1548    EAPI int          elm_image_cache_get(void);
1549
1550    /**
1551     * Set the configured image cache size
1552     *
1553     * This sets the globally configured image cache size, in bytes
1554     *
1555     * @param size The image cache size
1556     * @ingroup Caches
1557     */
1558    EAPI void         elm_image_cache_set(int size);
1559
1560    /**
1561     * Set the configured image cache size for all applications on the
1562     * display
1563     *
1564     * This sets the globally configured image cache size -- in bytes
1565     * -- for all applications on the display.
1566     *
1567     * @param size The image cache size
1568     * @ingroup Caches
1569     */
1570    EAPI void         elm_image_cache_all_set(int size);
1571
1572    /**
1573     * Get the configured edje file cache size.
1574     *
1575     * This gets the globally configured edje file cache size, in number
1576     * of files.
1577     *
1578     * @return The edje file cache size
1579     * @ingroup Caches
1580     */
1581    EAPI int          elm_edje_file_cache_get(void);
1582
1583    /**
1584     * Set the configured edje file cache size
1585     *
1586     * This sets the globally configured edje file cache size, in number
1587     * of files.
1588     *
1589     * @param size The edje file cache size
1590     * @ingroup Caches
1591     */
1592    EAPI void         elm_edje_file_cache_set(int size);
1593
1594    /**
1595     * Set the configured edje file cache size for all applications on the
1596     * display
1597     *
1598     * This sets the globally configured edje file cache size -- in number
1599     * of files -- for all applications on the display.
1600     *
1601     * @param size The edje file cache size
1602     * @ingroup Caches
1603     */
1604    EAPI void         elm_edje_file_cache_all_set(int size);
1605
1606    /**
1607     * Get the configured edje collections (groups) cache size.
1608     *
1609     * This gets the globally configured edje collections cache size, in
1610     * number of collections.
1611     *
1612     * @return The edje collections cache size
1613     * @ingroup Caches
1614     */
1615    EAPI int          elm_edje_collection_cache_get(void);
1616
1617    /**
1618     * Set the configured edje collections (groups) cache size
1619     *
1620     * This sets the globally configured edje collections cache size, in
1621     * number of collections.
1622     *
1623     * @param size The edje collections cache size
1624     * @ingroup Caches
1625     */
1626    EAPI void         elm_edje_collection_cache_set(int size);
1627
1628    /**
1629     * Set the configured edje collections (groups) cache size for all
1630     * applications on the display
1631     *
1632     * This sets the globally configured edje collections cache size -- in
1633     * number of collections -- for all applications on the display.
1634     *
1635     * @param size The edje collections cache size
1636     * @ingroup Caches
1637     */
1638    EAPI void         elm_edje_collection_cache_all_set(int size);
1639
1640    /**
1641     * @}
1642     */
1643
1644    /**
1645     * @defgroup Scaling Widget Scaling
1646     *
1647     * Different widgets can be scaled independently. These functions
1648     * allow you to manipulate this scaling on a per-widget basis. The
1649     * object and all its children get their scaling factors multiplied
1650     * by the scale factor set. This is multiplicative, in that if a
1651     * child also has a scale size set it is in turn multiplied by its
1652     * parent's scale size. @c 1.0 means ā€œdon't scaleā€, @c 2.0 is
1653     * double size, @c 0.5 is half, etc.
1654     *
1655     * @ref general_functions_example_page "This" example contemplates
1656     * some of these functions.
1657     */
1658
1659    /**
1660     * Get the global scaling factor
1661     *
1662     * This gets the globally configured scaling factor that is applied to all
1663     * objects.
1664     *
1665     * @return The scaling factor
1666     * @ingroup Scaling
1667     */
1668    EAPI double       elm_scale_get(void);
1669
1670    /**
1671     * Set the global scaling factor
1672     *
1673     * This sets the globally configured scaling factor that is applied to all
1674     * objects.
1675     *
1676     * @param scale The scaling factor to set
1677     * @ingroup Scaling
1678     */
1679    EAPI void         elm_scale_set(double scale);
1680
1681    /**
1682     * Set the global scaling factor for all applications on the display
1683     *
1684     * This sets the globally configured scaling factor that is applied to all
1685     * objects for all applications.
1686     * @param scale The scaling factor to set
1687     * @ingroup Scaling
1688     */
1689    EAPI void         elm_scale_all_set(double scale);
1690
1691    /**
1692     * Set the scaling factor for a given Elementary object
1693     *
1694     * @param obj The Elementary to operate on
1695     * @param scale Scale factor (from @c 0.0 up, with @c 1.0 meaning
1696     * no scaling)
1697     *
1698     * @ingroup Scaling
1699     */
1700    EAPI void         elm_object_scale_set(Evas_Object *obj, double scale) EINA_ARG_NONNULL(1);
1701
1702    /**
1703     * Get the scaling factor for a given Elementary object
1704     *
1705     * @param obj The object
1706     * @return The scaling factor set by elm_object_scale_set()
1707     *
1708     * @ingroup Scaling
1709     */
1710    EAPI double       elm_object_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1711
1712    /**
1713     * @defgroup Password_last_show Password last input show
1714     *
1715     * Last show feature of password mode enables user to view
1716     * the last input entered for few seconds before masking it.
1717     * These functions allow to set this feature in password mode
1718     * of entry widget and also allow to manipulate the duration
1719     * for which the input has to be visible.
1720     *
1721     * @{
1722     */
1723
1724    /**
1725     * Get show last setting of password mode.
1726     *
1727     * This gets the show last input setting of password mode which might be
1728     * enabled or disabled.
1729     *
1730     * @return @c EINA_TRUE, if the last input show setting is enabled, @c EINA_FALSE
1731     *            if it's disabled.
1732     * @ingroup Password_last_show
1733     */
1734    EAPI Eina_Bool elm_password_show_last_get(void);
1735
1736    /**
1737     * Set show last setting in password mode.
1738     *
1739     * This enables or disables show last setting of password mode.
1740     *
1741     * @param password_show_last If EINA_TRUE enable's last input show in password mode.
1742     * @see elm_password_show_last_timeout_set()
1743     * @ingroup Password_last_show
1744     */
1745    EAPI void elm_password_show_last_set(Eina_Bool password_show_last);
1746
1747    /**
1748     * Get's the timeout value in last show password mode.
1749     *
1750     * This gets the time out value for which the last input entered in password
1751     * mode will be visible.
1752     *
1753     * @return The timeout value of last show password mode.
1754     * @ingroup Password_last_show
1755     */
1756    EAPI double elm_password_show_last_timeout_get(void);
1757
1758    /**
1759     * Set's the timeout value in last show password mode.
1760     *
1761     * This sets the time out value for which the last input entered in password
1762     * mode will be visible.
1763     *
1764     * @param password_show_last_timeout The timeout value.
1765     * @see elm_password_show_last_set()
1766     * @ingroup Password_last_show
1767     */
1768    EAPI void elm_password_show_last_timeout_set(double password_show_last_timeout);
1769
1770    /**
1771     * @}
1772     */
1773
1774    /**
1775     * @defgroup UI-Mirroring Selective Widget mirroring
1776     *
1777     * These functions allow you to set ui-mirroring on specific
1778     * widgets or the whole interface. Widgets can be in one of two
1779     * modes, automatic and manual.  Automatic means they'll be changed
1780     * according to the system mirroring mode and manual means only
1781     * explicit changes will matter. You are not supposed to change
1782     * mirroring state of a widget set to automatic, will mostly work,
1783     * but the behavior is not really defined.
1784     *
1785     * @{
1786     */
1787
1788    EAPI Eina_Bool    elm_mirrored_get(void);
1789    EAPI void         elm_mirrored_set(Eina_Bool mirrored);
1790
1791    /**
1792     * Get the system mirrored mode. This determines the default mirrored mode
1793     * of widgets.
1794     *
1795     * @return EINA_TRUE if mirrored is set, EINA_FALSE otherwise
1796     */
1797    EAPI Eina_Bool    elm_object_mirrored_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1798
1799    /**
1800     * Set the system mirrored mode. This determines the default mirrored mode
1801     * of widgets.
1802     *
1803     * @param mirrored EINA_TRUE to set mirrored mode, EINA_FALSE to unset it.
1804     */
1805    EAPI void         elm_object_mirrored_set(Evas_Object *obj, Eina_Bool mirrored) EINA_ARG_NONNULL(1);
1806
1807    /**
1808     * Returns the widget's mirrored mode setting.
1809     *
1810     * @param obj The widget.
1811     * @return mirrored mode setting of the object.
1812     *
1813     **/
1814    EAPI Eina_Bool    elm_object_mirrored_automatic_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1815
1816    /**
1817     * Sets the widget's mirrored mode setting.
1818     * When widget in automatic mode, it follows the system mirrored mode set by
1819     * elm_mirrored_set().
1820     * @param obj The widget.
1821     * @param automatic EINA_TRUE for auto mirrored mode. EINA_FALSE for manual.
1822     */
1823    EAPI void         elm_object_mirrored_automatic_set(Evas_Object *obj, Eina_Bool automatic) EINA_ARG_NONNULL(1);
1824
1825    /**
1826     * @}
1827     */
1828
1829    /**
1830     * Set the style to use by a widget
1831     *
1832     * Sets the style name that will define the appearance of a widget. Styles
1833     * vary from widget to widget and may also be defined by other themes
1834     * by means of extensions and overlays.
1835     *
1836     * @param obj The Elementary widget to style
1837     * @param style The style name to use
1838     *
1839     * @see elm_theme_extension_add()
1840     * @see elm_theme_extension_del()
1841     * @see elm_theme_overlay_add()
1842     * @see elm_theme_overlay_del()
1843     *
1844     * @ingroup Styles
1845     */
1846    EAPI void         elm_object_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
1847    /**
1848     * Get the style used by the widget
1849     *
1850     * This gets the style being used for that widget. Note that the string
1851     * pointer is only valid as longas the object is valid and the style doesn't
1852     * change.
1853     *
1854     * @param obj The Elementary widget to query for its style
1855     * @return The style name used
1856     *
1857     * @see elm_object_style_set()
1858     *
1859     * @ingroup Styles
1860     */
1861    EAPI const char  *elm_object_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1862
1863    /**
1864     * @defgroup Styles Styles
1865     *
1866     * Widgets can have different styles of look. These generic API's
1867     * set styles of widgets, if they support them (and if the theme(s)
1868     * do).
1869     *
1870     * @ref general_functions_example_page "This" example contemplates
1871     * some of these functions.
1872     */
1873
1874    /**
1875     * Set the disabled state of an Elementary object.
1876     *
1877     * @param obj The Elementary object to operate on
1878     * @param disabled The state to put in in: @c EINA_TRUE for
1879     *        disabled, @c EINA_FALSE for enabled
1880     *
1881     * Elementary objects can be @b disabled, in which state they won't
1882     * receive input and, in general, will be themed differently from
1883     * their normal state, usually greyed out. Useful for contexts
1884     * where you don't want your users to interact with some of the
1885     * parts of you interface.
1886     *
1887     * This sets the state for the widget, either disabling it or
1888     * enabling it back.
1889     *
1890     * @ingroup Styles
1891     */
1892    EAPI void         elm_object_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
1893
1894    /**
1895     * Get the disabled state of an Elementary object.
1896     *
1897     * @param obj The Elementary object to operate on
1898     * @return @c EINA_TRUE, if the widget is disabled, @c EINA_FALSE
1899     *            if it's enabled (or on errors)
1900     *
1901     * This gets the state of the widget, which might be enabled or disabled.
1902     *
1903     * @ingroup Styles
1904     */
1905    EAPI Eina_Bool    elm_object_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1906
1907    /**
1908     * @defgroup WidgetNavigation Widget Tree Navigation.
1909     *
1910     * How to check if an Evas Object is an Elementary widget? How to
1911     * get the first elementary widget that is parent of the given
1912     * object?  These are all covered in widget tree navigation.
1913     *
1914     * @ref general_functions_example_page "This" example contemplates
1915     * some of these functions.
1916     */
1917
1918    /**
1919     * Check if the given Evas Object is an Elementary widget.
1920     *
1921     * @param obj the object to query.
1922     * @return @c EINA_TRUE if it is an elementary widget variant,
1923     *         @c EINA_FALSE otherwise
1924     * @ingroup WidgetNavigation
1925     */
1926    EAPI Eina_Bool    elm_object_widget_check(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1927
1928    /**
1929     * Get the first parent of the given object that is an Elementary
1930     * widget.
1931     *
1932     * @param obj the Elementary object to query parent from.
1933     * @return the parent object that is an Elementary widget, or @c
1934     *         NULL, if it was not found.
1935     *
1936     * Use this to query for an object's parent widget.
1937     *
1938     * @note Most of Elementary users wouldn't be mixing non-Elementary
1939     * smart objects in the objects tree of an application, as this is
1940     * an advanced usage of Elementary with Evas. So, except for the
1941     * application's window, which is the root of that tree, all other
1942     * objects would have valid Elementary widget parents.
1943     *
1944     * @ingroup WidgetNavigation
1945     */
1946    EAPI Evas_Object *elm_object_parent_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1947
1948    /**
1949     * Get the top level parent of an Elementary widget.
1950     *
1951     * @param obj The object to query.
1952     * @return The top level Elementary widget, or @c NULL if parent cannot be
1953     * found.
1954     * @ingroup WidgetNavigation
1955     */
1956    EAPI Evas_Object *elm_object_top_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1957
1958    /**
1959     * Get the string that represents this Elementary widget.
1960     *
1961     * @note Elementary is weird and exposes itself as a single
1962     *       Evas_Object_Smart_Class of type "elm_widget", so
1963     *       evas_object_type_get() always return that, making debug and
1964     *       language bindings hard. This function tries to mitigate this
1965     *       problem, but the solution is to change Elementary to use
1966     *       proper inheritance.
1967     *
1968     * @param obj the object to query.
1969     * @return Elementary widget name, or @c NULL if not a valid widget.
1970     * @ingroup WidgetNavigation
1971     */
1972    EAPI const char  *elm_object_widget_type_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1973
1974    /**
1975     * @defgroup Config Elementary Config
1976     *
1977     * Elementary configuration is formed by a set options bounded to a
1978     * given @ref Profile profile, like @ref Theme theme, @ref Fingers
1979     * "finger size", etc. These are functions with which one syncronizes
1980     * changes made to those values to the configuration storing files, de
1981     * facto. You most probably don't want to use the functions in this
1982     * group unlees you're writing an elementary configuration manager.
1983     *
1984     * @{
1985     */
1986
1987    /**
1988     * Save back Elementary's configuration, so that it will persist on
1989     * future sessions.
1990     *
1991     * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
1992     * @ingroup Config
1993     *
1994     * This function will take effect -- thus, do I/O -- immediately. Use
1995     * it when you want to apply all configuration changes at once. The
1996     * current configuration set will get saved onto the current profile
1997     * configuration file.
1998     *
1999     */
2000    EAPI Eina_Bool    elm_config_save(void);
2001
2002    /**
2003     * Reload Elementary's configuration, bounded to current selected
2004     * profile.
2005     *
2006     * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
2007     * @ingroup Config
2008     *
2009     * Useful when you want to force reloading of configuration values for
2010     * a profile. If one removes user custom configuration directories,
2011     * for example, it will force a reload with system values instead.
2012     *
2013     */
2014    EAPI void         elm_config_reload(void);
2015
2016    /**
2017     * @}
2018     */
2019
2020    /**
2021     * @defgroup Profile Elementary Profile
2022     *
2023     * Profiles are pre-set options that affect the whole look-and-feel of
2024     * Elementary-based applications. There are, for example, profiles
2025     * aimed at desktop computer applications and others aimed at mobile,
2026     * touchscreen-based ones. You most probably don't want to use the
2027     * functions in this group unlees you're writing an elementary
2028     * configuration manager.
2029     *
2030     * @{
2031     */
2032
2033    /**
2034     * Get Elementary's profile in use.
2035     *
2036     * This gets the global profile that is applied to all Elementary
2037     * applications.
2038     *
2039     * @return The profile's name
2040     * @ingroup Profile
2041     */
2042    EAPI const char  *elm_profile_current_get(void);
2043
2044    /**
2045     * Get an Elementary's profile directory path in the filesystem. One
2046     * may want to fetch a system profile's dir or an user one (fetched
2047     * inside $HOME).
2048     *
2049     * @param profile The profile's name
2050     * @param is_user Whether to lookup for an user profile (@c EINA_TRUE)
2051     *                or a system one (@c EINA_FALSE)
2052     * @return The profile's directory path.
2053     * @ingroup Profile
2054     *
2055     * @note You must free it with elm_profile_dir_free().
2056     */
2057    EAPI const char  *elm_profile_dir_get(const char *profile, Eina_Bool is_user);
2058
2059    /**
2060     * Free an Elementary's profile directory path, as returned by
2061     * elm_profile_dir_get().
2062     *
2063     * @param p_dir The profile's path
2064     * @ingroup Profile
2065     *
2066     */
2067    EAPI void         elm_profile_dir_free(const char *p_dir);
2068
2069    /**
2070     * Get Elementary's list of available profiles.
2071     *
2072     * @return The profiles list. List node data are the profile name
2073     *         strings.
2074     * @ingroup Profile
2075     *
2076     * @note One must free this list, after usage, with the function
2077     *       elm_profile_list_free().
2078     */
2079    EAPI Eina_List   *elm_profile_list_get(void);
2080
2081    /**
2082     * Free Elementary's list of available profiles.
2083     *
2084     * @param l The profiles list, as returned by elm_profile_list_get().
2085     * @ingroup Profile
2086     *
2087     */
2088    EAPI void         elm_profile_list_free(Eina_List *l);
2089
2090    /**
2091     * Set Elementary's profile.
2092     *
2093     * This sets the global profile that is applied to Elementary
2094     * applications. Just the process the call comes from will be
2095     * affected.
2096     *
2097     * @param profile The profile's name
2098     * @ingroup Profile
2099     *
2100     */
2101    EAPI void         elm_profile_set(const char *profile);
2102
2103    /**
2104     * Set Elementary's profile.
2105     *
2106     * This sets the global profile that is applied to all Elementary
2107     * applications. All running Elementary windows will be affected.
2108     *
2109     * @param profile The profile's name
2110     * @ingroup Profile
2111     *
2112     */
2113    EAPI void         elm_profile_all_set(const char *profile);
2114
2115    /**
2116     * @}
2117     */
2118
2119    /**
2120     * @defgroup Engine Elementary Engine
2121     *
2122     * These are functions setting and querying which rendering engine
2123     * Elementary will use for drawing its windows' pixels.
2124     *
2125     * The following are the available engines:
2126     * @li "software_x11"
2127     * @li "fb"
2128     * @li "directfb"
2129     * @li "software_16_x11"
2130     * @li "software_8_x11"
2131     * @li "xrender_x11"
2132     * @li "opengl_x11"
2133     * @li "software_gdi"
2134     * @li "software_16_wince_gdi"
2135     * @li "sdl"
2136     * @li "software_16_sdl"
2137     * @li "opengl_sdl"
2138     * @li "buffer"
2139     * @li "ews"
2140     * @li "opengl_cocoa"
2141     * @li "psl1ght"
2142     *
2143     * @{
2144     */
2145
2146    /**
2147     * @brief Get Elementary's rendering engine in use.
2148     *
2149     * @return The rendering engine's name
2150     * @note there's no need to free the returned string, here.
2151     *
2152     * This gets the global rendering engine that is applied to all Elementary
2153     * applications.
2154     *
2155     * @see elm_engine_set()
2156     */
2157    EAPI const char  *elm_engine_current_get(void);
2158
2159    /**
2160     * @brief Set Elementary's rendering engine for use.
2161     *
2162     * @param engine The rendering engine's name
2163     *
2164     * This sets global rendering engine that is applied to all Elementary
2165     * applications. Note that it will take effect only to Elementary windows
2166     * created after this is called.
2167     *
2168     * @see elm_win_add()
2169     */
2170    EAPI void         elm_engine_set(const char *engine);
2171
2172    /**
2173     * @}
2174     */
2175
2176    /**
2177     * @defgroup Fonts Elementary Fonts
2178     *
2179     * These are functions dealing with font rendering, selection and the
2180     * like for Elementary applications. One might fetch which system
2181     * fonts are there to use and set custom fonts for individual classes
2182     * of UI items containing text (text classes).
2183     *
2184     * @{
2185     */
2186
2187   typedef struct _Elm_Text_Class
2188     {
2189        const char *name;
2190        const char *desc;
2191     } Elm_Text_Class;
2192
2193   typedef struct _Elm_Font_Overlay
2194     {
2195        const char     *text_class;
2196        const char     *font;
2197        Evas_Font_Size  size;
2198     } Elm_Font_Overlay;
2199
2200   typedef struct _Elm_Font_Properties
2201     {
2202        const char *name;
2203        Eina_List  *styles;
2204     } Elm_Font_Properties;
2205
2206    /**
2207     * Get Elementary's list of supported text classes.
2208     *
2209     * @return The text classes list, with @c Elm_Text_Class blobs as data.
2210     * @ingroup Fonts
2211     *
2212     * Release the list with elm_text_classes_list_free().
2213     */
2214    EAPI const Eina_List     *elm_text_classes_list_get(void);
2215
2216    /**
2217     * Free Elementary's list of supported text classes.
2218     *
2219     * @ingroup Fonts
2220     *
2221     * @see elm_text_classes_list_get().
2222     */
2223    EAPI void                 elm_text_classes_list_free(const Eina_List *list);
2224
2225    /**
2226     * Get Elementary's list of font overlays, set with
2227     * elm_font_overlay_set().
2228     *
2229     * @return The font overlays list, with @c Elm_Font_Overlay blobs as
2230     * data.
2231     *
2232     * @ingroup Fonts
2233     *
2234     * For each text class, one can set a <b>font overlay</b> for it,
2235     * overriding the default font properties for that class coming from
2236     * the theme in use. There is no need to free this list.
2237     *
2238     * @see elm_font_overlay_set() and elm_font_overlay_unset().
2239     */
2240    EAPI const Eina_List     *elm_font_overlay_list_get(void);
2241
2242    /**
2243     * Set a font overlay for a given Elementary text class.
2244     *
2245     * @param text_class Text class name
2246     * @param font Font name and style string
2247     * @param size Font size
2248     *
2249     * @ingroup Fonts
2250     *
2251     * @p font has to be in the format returned by
2252     * elm_font_fontconfig_name_get(). @see elm_font_overlay_list_get()
2253     * and elm_font_overlay_unset().
2254     */
2255    EAPI void                 elm_font_overlay_set(const char *text_class, const char *font, Evas_Font_Size size);
2256
2257    /**
2258     * Unset a font overlay for a given Elementary text class.
2259     *
2260     * @param text_class Text class name
2261     *
2262     * @ingroup Fonts
2263     *
2264     * This will bring back text elements belonging to text class
2265     * @p text_class back to their default font settings.
2266     */
2267    EAPI void                 elm_font_overlay_unset(const char *text_class);
2268
2269    /**
2270     * Apply the changes made with elm_font_overlay_set() and
2271     * elm_font_overlay_unset() on the current Elementary window.
2272     *
2273     * @ingroup Fonts
2274     *
2275     * This applies all font overlays set to all objects in the UI.
2276     */
2277    EAPI void                 elm_font_overlay_apply(void);
2278
2279    /**
2280     * Apply the changes made with elm_font_overlay_set() and
2281     * elm_font_overlay_unset() on all Elementary application windows.
2282     *
2283     * @ingroup Fonts
2284     *
2285     * This applies all font overlays set to all objects in the UI.
2286     */
2287    EAPI void                 elm_font_overlay_all_apply(void);
2288
2289    /**
2290     * Translate a font (family) name string in fontconfig's font names
2291     * syntax into an @c Elm_Font_Properties struct.
2292     *
2293     * @param font The font name and styles string
2294     * @return the font properties struct
2295     *
2296     * @ingroup Fonts
2297     *
2298     * @note The reverse translation can be achived with
2299     * elm_font_fontconfig_name_get(), for one style only (single font
2300     * instance, not family).
2301     */
2302    EAPI Elm_Font_Properties *elm_font_properties_get(const char *font) EINA_ARG_NONNULL(1);
2303
2304    /**
2305     * Free font properties return by elm_font_properties_get().
2306     *
2307     * @param efp the font properties struct
2308     *
2309     * @ingroup Fonts
2310     */
2311    EAPI void                 elm_font_properties_free(Elm_Font_Properties *efp) EINA_ARG_NONNULL(1);
2312
2313    /**
2314     * Translate a font name, bound to a style, into fontconfig's font names
2315     * syntax.
2316     *
2317     * @param name The font (family) name
2318     * @param style The given style (may be @c NULL)
2319     *
2320     * @return the font name and style string
2321     *
2322     * @ingroup Fonts
2323     *
2324     * @note The reverse translation can be achived with
2325     * elm_font_properties_get(), for one style only (single font
2326     * instance, not family).
2327     */
2328    EAPI const char          *elm_font_fontconfig_name_get(const char *name, const char *style) EINA_ARG_NONNULL(1);
2329
2330    /**
2331     * Free the font string return by elm_font_fontconfig_name_get().
2332     *
2333     * @param efp the font properties struct
2334     *
2335     * @ingroup Fonts
2336     */
2337    EAPI void                 elm_font_fontconfig_name_free(const char *name) EINA_ARG_NONNULL(1);
2338
2339    /**
2340     * Create a font hash table of available system fonts.
2341     *
2342     * One must call it with @p list being the return value of
2343     * evas_font_available_list(). The hash will be indexed by font
2344     * (family) names, being its values @c Elm_Font_Properties blobs.
2345     *
2346     * @param list The list of available system fonts, as returned by
2347     * evas_font_available_list().
2348     * @return the font hash.
2349     *
2350     * @ingroup Fonts
2351     *
2352     * @note The user is supposed to get it populated at least with 3
2353     * default font families (Sans, Serif, Monospace), which should be
2354     * present on most systems.
2355     */
2356    EAPI Eina_Hash           *elm_font_available_hash_add(Eina_List *list);
2357
2358    /**
2359     * Free the hash return by elm_font_available_hash_add().
2360     *
2361     * @param hash the hash to be freed.
2362     *
2363     * @ingroup Fonts
2364     */
2365    EAPI void                 elm_font_available_hash_del(Eina_Hash *hash);
2366
2367    /**
2368     * @}
2369     */
2370
2371    /**
2372     * @defgroup Fingers Fingers
2373     *
2374     * Elementary is designed to be finger-friendly for touchscreens,
2375     * and so in addition to scaling for display resolution, it can
2376     * also scale based on finger "resolution" (or size). You can then
2377     * customize the granularity of the areas meant to receive clicks
2378     * on touchscreens.
2379     *
2380     * Different profiles may have pre-set values for finger sizes.
2381     *
2382     * @ref general_functions_example_page "This" example contemplates
2383     * some of these functions.
2384     *
2385     * @{
2386     */
2387
2388    /**
2389     * Get the configured "finger size"
2390     *
2391     * @return The finger size
2392     *
2393     * This gets the globally configured finger size, <b>in pixels</b>
2394     *
2395     * @ingroup Fingers
2396     */
2397    EAPI Evas_Coord       elm_finger_size_get(void);
2398
2399    /**
2400     * Set the configured finger size
2401     *
2402     * This sets the globally configured finger size in pixels
2403     *
2404     * @param size The finger size
2405     * @ingroup Fingers
2406     */
2407    EAPI void             elm_finger_size_set(Evas_Coord size);
2408
2409    /**
2410     * Set the configured finger size for all applications on the display
2411     *
2412     * This sets the globally configured finger size in pixels for all
2413     * applications on the display
2414     *
2415     * @param size The finger size
2416     * @ingroup Fingers
2417     */
2418    EAPI void             elm_finger_size_all_set(Evas_Coord size);
2419
2420    /**
2421     * @}
2422     */
2423
2424    /**
2425     * @defgroup Focus Focus
2426     *
2427     * An Elementary application has, at all times, one (and only one)
2428     * @b focused object. This is what determines where the input
2429     * events go to within the application's window. Also, focused
2430     * objects can be decorated differently, in order to signal to the
2431     * user where the input is, at a given moment.
2432     *
2433     * Elementary applications also have the concept of <b>focus
2434     * chain</b>: one can cycle through all the windows' focusable
2435     * objects by input (tab key) or programmatically. The default
2436     * focus chain for an application is the one define by the order in
2437     * which the widgets where added in code. One will cycle through
2438     * top level widgets, and, for each one containg sub-objects, cycle
2439     * through them all, before returning to the level
2440     * above. Elementary also allows one to set @b custom focus chains
2441     * for their applications.
2442     *
2443     * Besides the focused decoration a widget may exhibit, when it
2444     * gets focus, Elementary has a @b global focus highlight object
2445     * that can be enabled for a window. If one chooses to do so, this
2446     * extra highlight effect will surround the current focused object,
2447     * too.
2448     *
2449     * @note Some Elementary widgets are @b unfocusable, after
2450     * creation, by their very nature: they are not meant to be
2451     * interacted with input events, but are there just for visual
2452     * purposes.
2453     *
2454     * @ref general_functions_example_page "This" example contemplates
2455     * some of these functions.
2456     */
2457
2458    /**
2459     * Get the enable status of the focus highlight
2460     *
2461     * This gets whether the highlight on focused objects is enabled or not
2462     * @ingroup Focus
2463     */
2464    EAPI Eina_Bool        elm_focus_highlight_enabled_get(void);
2465
2466    /**
2467     * Set the enable status of the focus highlight
2468     *
2469     * Set whether to show or not the highlight on focused objects
2470     * @param enable Enable highlight if EINA_TRUE, disable otherwise
2471     * @ingroup Focus
2472     */
2473    EAPI void             elm_focus_highlight_enabled_set(Eina_Bool enable);
2474
2475    /**
2476     * Get the enable status of the highlight animation
2477     *
2478     * Get whether the focus highlight, if enabled, will animate its switch from
2479     * one object to the next
2480     * @ingroup Focus
2481     */
2482    EAPI Eina_Bool        elm_focus_highlight_animate_get(void);
2483
2484    /**
2485     * Set the enable status of the highlight animation
2486     *
2487     * Set whether the focus highlight, if enabled, will animate its switch from
2488     * one object to the next
2489     * @param animate Enable animation if EINA_TRUE, disable otherwise
2490     * @ingroup Focus
2491     */
2492    EAPI void             elm_focus_highlight_animate_set(Eina_Bool animate);
2493
2494    /**
2495     * Get the whether an Elementary object has the focus or not.
2496     *
2497     * @param obj The Elementary object to get the information from
2498     * @return @c EINA_TRUE, if the object is focused, @c EINA_FALSE if
2499     *            not (and on errors).
2500     *
2501     * @see elm_object_focus_set()
2502     *
2503     * @ingroup Focus
2504     */
2505    EAPI Eina_Bool        elm_object_focus_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2506
2507    /**
2508     * Set/unset focus to a given Elementary object.
2509     *
2510     * @param obj The Elementary object to operate on.
2511     * @param enable @c EINA_TRUE Set focus to a given object,
2512     *               @c EINA_FALSE Unset focus to a given object.
2513     *
2514     * @note When you set focus to this object, if it can handle focus, will
2515     * take the focus away from the one who had it previously and will, for
2516     * now on, be the one receiving input events. Unsetting focus will remove
2517     * the focus from @p obj, passing it back to the previous element in the
2518     * focus chain list.
2519     *
2520     * @see elm_object_focus_get(), elm_object_focus_custom_chain_get()
2521     *
2522     * @ingroup Focus
2523     */
2524    EAPI void             elm_object_focus_set(Evas_Object *obj, Eina_Bool focus) EINA_ARG_NONNULL(1);
2525
2526    /**
2527     * Make a given Elementary object the focused one.
2528     *
2529     * @param obj The Elementary object to make focused.
2530     *
2531     * @note This object, if it can handle focus, will take the focus
2532     * away from the one who had it previously and will, for now on, be
2533     * the one receiving input events.
2534     *
2535     * @see elm_object_focus_get()
2536     * @deprecated use elm_object_focus_set() instead.
2537     *
2538     * @ingroup Focus
2539     */
2540    EINA_DEPRECATED EAPI void             elm_object_focus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2541
2542    /**
2543     * Remove the focus from an Elementary object
2544     *
2545     * @param obj The Elementary to take focus from
2546     *
2547     * This removes the focus from @p obj, passing it back to the
2548     * previous element in the focus chain list.
2549     *
2550     * @see elm_object_focus() and elm_object_focus_custom_chain_get()
2551     * @deprecated use elm_object_focus_set() instead.
2552     *
2553     * @ingroup Focus
2554     */
2555    EINA_DEPRECATED EAPI void             elm_object_unfocus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2556
2557    /**
2558     * Set the ability for an Element object to be focused
2559     *
2560     * @param obj The Elementary object to operate on
2561     * @param enable @c EINA_TRUE if the object can be focused, @c
2562     *        EINA_FALSE if not (and on errors)
2563     *
2564     * This sets whether the object @p obj is able to take focus or
2565     * not. Unfocusable objects do nothing when programmatically
2566     * focused, being the nearest focusable parent object the one
2567     * really getting focus. Also, when they receive mouse input, they
2568     * will get the event, but not take away the focus from where it
2569     * was previously.
2570     *
2571     * @ingroup Focus
2572     */
2573    EAPI void             elm_object_focus_allow_set(Evas_Object *obj, Eina_Bool enable) EINA_ARG_NONNULL(1);
2574
2575    /**
2576     * Get whether an Elementary object is focusable or not
2577     *
2578     * @param obj The Elementary object to operate on
2579     * @return @c EINA_TRUE if the object is allowed to be focused, @c
2580     *             EINA_FALSE if not (and on errors)
2581     *
2582     * @note Objects which are meant to be interacted with by input
2583     * events are created able to be focused, by default. All the
2584     * others are not.
2585     *
2586     * @ingroup Focus
2587     */
2588    EAPI Eina_Bool        elm_object_focus_allow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2589
2590    /**
2591     * Set custom focus chain.
2592     *
2593     * This function overwrites any previous custom focus chain within
2594     * the list of objects. The previous list will be deleted and this list
2595     * will be managed by elementary. After it is set, don't modify it.
2596     *
2597     * @note On focus cycle, only will be evaluated children of this container.
2598     *
2599     * @param obj The container object
2600     * @param objs Chain of objects to pass focus
2601     * @ingroup Focus
2602     */
2603    EAPI void             elm_object_focus_custom_chain_set(Evas_Object *obj, Eina_List *objs) EINA_ARG_NONNULL(1);
2604
2605    /**
2606     * Unset a custom focus chain on a given Elementary widget
2607     *
2608     * @param obj The container object to remove focus chain from
2609     *
2610     * Any focus chain previously set on @p obj (for its child objects)
2611     * is removed entirely after this call.
2612     *
2613     * @ingroup Focus
2614     */
2615    EAPI void             elm_object_focus_custom_chain_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
2616
2617    /**
2618     * Get custom focus chain
2619     *
2620     * @param obj The container object
2621     * @ingroup Focus
2622     */
2623    EAPI const Eina_List *elm_object_focus_custom_chain_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2624
2625    /**
2626     * Append object to custom focus chain.
2627     *
2628     * @note If relative_child equal to NULL or not in custom chain, the object
2629     * will be added in end.
2630     *
2631     * @note On focus cycle, only will be evaluated children of this container.
2632     *
2633     * @param obj The container object
2634     * @param child The child to be added in custom chain
2635     * @param relative_child The relative object to position the child
2636     * @ingroup Focus
2637     */
2638    EAPI void             elm_object_focus_custom_chain_append(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2639
2640    /**
2641     * Prepend object to custom focus chain.
2642     *
2643     * @note If relative_child equal to NULL or not in custom chain, the object
2644     * will be added in begin.
2645     *
2646     * @note On focus cycle, only will be evaluated children of this container.
2647     *
2648     * @param obj The container object
2649     * @param child The child to be added in custom chain
2650     * @param relative_child The relative object to position the child
2651     * @ingroup Focus
2652     */
2653    EAPI void             elm_object_focus_custom_chain_prepend(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2654
2655    /**
2656     * Give focus to next object in object tree.
2657     *
2658     * Give focus to next object in focus chain of one object sub-tree.
2659     * If the last object of chain already have focus, the focus will go to the
2660     * first object of chain.
2661     *
2662     * @param obj The object root of sub-tree
2663     * @param dir Direction to cycle the focus
2664     *
2665     * @ingroup Focus
2666     */
2667    EAPI void             elm_object_focus_cycle(Evas_Object *obj, Elm_Focus_Direction dir) EINA_ARG_NONNULL(1);
2668
2669    /**
2670     * Give focus to near object in one direction.
2671     *
2672     * Give focus to near object in direction of one object.
2673     * If none focusable object in given direction, the focus will not change.
2674     *
2675     * @param obj The reference object
2676     * @param x Horizontal component of direction to focus
2677     * @param y Vertical component of direction to focus
2678     *
2679     * @ingroup Focus
2680     */
2681    EAPI void             elm_object_focus_direction_go(Evas_Object *obj, int x, int y) EINA_ARG_NONNULL(1);
2682
2683    /**
2684     * Make the elementary object and its children to be unfocusable
2685     * (or focusable).
2686     *
2687     * @param obj The Elementary object to operate on
2688     * @param tree_unfocusable @c EINA_TRUE for unfocusable,
2689     *        @c EINA_FALSE for focusable.
2690     *
2691     * This sets whether the object @p obj and its children objects
2692     * are able to take focus or not. If the tree is set as unfocusable,
2693     * newest focused object which is not in this tree will get focus.
2694     * This API can be helpful for an object to be deleted.
2695     * When an object will be deleted soon, it and its children may not
2696     * want to get focus (by focus reverting or by other focus controls).
2697     * Then, just use this API before deleting.
2698     *
2699     * @see elm_object_tree_unfocusable_get()
2700     *
2701     * @ingroup Focus
2702     */
2703    EAPI void             elm_object_tree_unfocusable_set(Evas_Object *obj, Eina_Bool tree_unfocusable) EINA_ARG_NONNULL(1);
2704
2705    /**
2706     * Get whether an Elementary object and its children are unfocusable or not.
2707     *
2708     * @param obj The Elementary object to get the information from
2709     * @return @c EINA_TRUE, if the tree is unfocussable,
2710     *         @c EINA_FALSE if not (and on errors).
2711     *
2712     * @see elm_object_tree_unfocusable_set()
2713     *
2714     * @ingroup Focus
2715     */
2716    EAPI Eina_Bool        elm_object_tree_unfocusable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2717
2718    /**
2719     * @defgroup Scrolling Scrolling
2720     *
2721     * These are functions setting how scrollable views in Elementary
2722     * widgets should behave on user interaction.
2723     *
2724     * @{
2725     */
2726
2727    /**
2728     * Get whether scrollers should bounce when they reach their
2729     * viewport's edge during a scroll.
2730     *
2731     * @return the thumb scroll bouncing state
2732     *
2733     * This is the default behavior for touch screens, in general.
2734     * @ingroup Scrolling
2735     */
2736    EAPI Eina_Bool        elm_scroll_bounce_enabled_get(void);
2737
2738    /**
2739     * Set whether scrollers should bounce when they reach their
2740     * viewport's edge during a scroll.
2741     *
2742     * @param enabled the thumb scroll bouncing state
2743     *
2744     * @see elm_thumbscroll_bounce_enabled_get()
2745     * @ingroup Scrolling
2746     */
2747    EAPI void             elm_scroll_bounce_enabled_set(Eina_Bool enabled);
2748
2749    /**
2750     * Set whether scrollers should bounce when they reach their
2751     * viewport's edge during a scroll, for all Elementary application
2752     * windows.
2753     *
2754     * @param enabled the thumb scroll bouncing state
2755     *
2756     * @see elm_thumbscroll_bounce_enabled_get()
2757     * @ingroup Scrolling
2758     */
2759    EAPI void             elm_scroll_bounce_enabled_all_set(Eina_Bool enabled);
2760
2761    /**
2762     * Get the amount of inertia a scroller will impose at bounce
2763     * animations.
2764     *
2765     * @return the thumb scroll bounce friction
2766     *
2767     * @ingroup Scrolling
2768     */
2769    EAPI double           elm_scroll_bounce_friction_get(void);
2770
2771    /**
2772     * Set the amount of inertia a scroller will impose at bounce
2773     * animations.
2774     *
2775     * @param friction the thumb scroll bounce friction
2776     *
2777     * @see elm_thumbscroll_bounce_friction_get()
2778     * @ingroup Scrolling
2779     */
2780    EAPI void             elm_scroll_bounce_friction_set(double friction);
2781
2782    /**
2783     * Set the amount of inertia a scroller will impose at bounce
2784     * animations, for all Elementary application windows.
2785     *
2786     * @param friction the thumb scroll bounce friction
2787     *
2788     * @see elm_thumbscroll_bounce_friction_get()
2789     * @ingroup Scrolling
2790     */
2791    EAPI void             elm_scroll_bounce_friction_all_set(double friction);
2792
2793    /**
2794     * Get the amount of inertia a <b>paged</b> scroller will impose at
2795     * page fitting animations.
2796     *
2797     * @return the page scroll friction
2798     *
2799     * @ingroup Scrolling
2800     */
2801    EAPI double           elm_scroll_page_scroll_friction_get(void);
2802
2803    /**
2804     * Set the amount of inertia a <b>paged</b> scroller will impose at
2805     * page fitting animations.
2806     *
2807     * @param friction the page scroll friction
2808     *
2809     * @see elm_thumbscroll_page_scroll_friction_get()
2810     * @ingroup Scrolling
2811     */
2812    EAPI void             elm_scroll_page_scroll_friction_set(double friction);
2813
2814    /**
2815     * Set the amount of inertia a <b>paged</b> scroller will impose at
2816     * page fitting animations, for all Elementary application windows.
2817     *
2818     * @param friction the page scroll friction
2819     *
2820     * @see elm_thumbscroll_page_scroll_friction_get()
2821     * @ingroup Scrolling
2822     */
2823    EAPI void             elm_scroll_page_scroll_friction_all_set(double friction);
2824
2825    /**
2826     * Get the amount of inertia a scroller will impose at region bring
2827     * animations.
2828     *
2829     * @return the bring in scroll friction
2830     *
2831     * @ingroup Scrolling
2832     */
2833    EAPI double           elm_scroll_bring_in_scroll_friction_get(void);
2834
2835    /**
2836     * Set the amount of inertia a scroller will impose at region bring
2837     * animations.
2838     *
2839     * @param friction the bring in scroll friction
2840     *
2841     * @see elm_thumbscroll_bring_in_scroll_friction_get()
2842     * @ingroup Scrolling
2843     */
2844    EAPI void             elm_scroll_bring_in_scroll_friction_set(double friction);
2845
2846    /**
2847     * Set the amount of inertia a scroller will impose at region bring
2848     * animations, for all Elementary application windows.
2849     *
2850     * @param friction the bring in scroll friction
2851     *
2852     * @see elm_thumbscroll_bring_in_scroll_friction_get()
2853     * @ingroup Scrolling
2854     */
2855    EAPI void             elm_scroll_bring_in_scroll_friction_all_set(double friction);
2856
2857    /**
2858     * Get the amount of inertia scrollers will impose at animations
2859     * triggered by Elementary widgets' zooming API.
2860     *
2861     * @return the zoom friction
2862     *
2863     * @ingroup Scrolling
2864     */
2865    EAPI double           elm_scroll_zoom_friction_get(void);
2866
2867    /**
2868     * Set the amount of inertia scrollers will impose at animations
2869     * triggered by Elementary widgets' zooming API.
2870     *
2871     * @param friction the zoom friction
2872     *
2873     * @see elm_thumbscroll_zoom_friction_get()
2874     * @ingroup Scrolling
2875     */
2876    EAPI void             elm_scroll_zoom_friction_set(double friction);
2877
2878    /**
2879     * Set the amount of inertia scrollers will impose at animations
2880     * triggered by Elementary widgets' zooming API, for all Elementary
2881     * application windows.
2882     *
2883     * @param friction the zoom friction
2884     *
2885     * @see elm_thumbscroll_zoom_friction_get()
2886     * @ingroup Scrolling
2887     */
2888    EAPI void             elm_scroll_zoom_friction_all_set(double friction);
2889
2890    /**
2891     * Get whether scrollers should be draggable from any point in their
2892     * views.
2893     *
2894     * @return the thumb scroll state
2895     *
2896     * @note This is the default behavior for touch screens, in general.
2897     * @note All other functions namespaced with "thumbscroll" will only
2898     *       have effect if this mode is enabled.
2899     *
2900     * @ingroup Scrolling
2901     */
2902    EAPI Eina_Bool        elm_scroll_thumbscroll_enabled_get(void);
2903
2904    /**
2905     * Set whether scrollers should be draggable from any point in their
2906     * views.
2907     *
2908     * @param enabled the thumb scroll state
2909     *
2910     * @see elm_thumbscroll_enabled_get()
2911     * @ingroup Scrolling
2912     */
2913    EAPI void             elm_scroll_thumbscroll_enabled_set(Eina_Bool enabled);
2914
2915    /**
2916     * Set whether scrollers should be draggable from any point in their
2917     * views, for all Elementary application windows.
2918     *
2919     * @param enabled the thumb scroll state
2920     *
2921     * @see elm_thumbscroll_enabled_get()
2922     * @ingroup Scrolling
2923     */
2924    EAPI void             elm_scroll_thumbscroll_enabled_all_set(Eina_Bool enabled);
2925
2926    /**
2927     * Get the number of pixels one should travel while dragging a
2928     * scroller's view to actually trigger scrolling.
2929     *
2930     * @return the thumb scroll threshould
2931     *
2932     * One would use higher values for touch screens, in general, because
2933     * of their inherent imprecision.
2934     * @ingroup Scrolling
2935     */
2936    EAPI unsigned int     elm_scroll_thumbscroll_threshold_get(void);
2937
2938    /**
2939     * Set the number of pixels one should travel while dragging a
2940     * scroller's view to actually trigger scrolling.
2941     *
2942     * @param threshold the thumb scroll threshould
2943     *
2944     * @see elm_thumbscroll_threshould_get()
2945     * @ingroup Scrolling
2946     */
2947    EAPI void             elm_scroll_thumbscroll_threshold_set(unsigned int threshold);
2948
2949    /**
2950     * Set the number of pixels one should travel while dragging a
2951     * scroller's view to actually trigger scrolling, for all Elementary
2952     * application windows.
2953     *
2954     * @param threshold the thumb scroll threshould
2955     *
2956     * @see elm_thumbscroll_threshould_get()
2957     * @ingroup Scrolling
2958     */
2959    EAPI void             elm_scroll_thumbscroll_threshold_all_set(unsigned int threshold);
2960
2961    /**
2962     * Get the minimum speed of mouse cursor movement which will trigger
2963     * list self scrolling animation after a mouse up event
2964     * (pixels/second).
2965     *
2966     * @return the thumb scroll momentum threshould
2967     *
2968     * @ingroup Scrolling
2969     */
2970    EAPI double           elm_scroll_thumbscroll_momentum_threshold_get(void);
2971
2972    /**
2973     * Set the minimum speed of mouse cursor movement which will trigger
2974     * list self scrolling animation after a mouse up event
2975     * (pixels/second).
2976     *
2977     * @param threshold the thumb scroll momentum threshould
2978     *
2979     * @see elm_thumbscroll_momentum_threshould_get()
2980     * @ingroup Scrolling
2981     */
2982    EAPI void             elm_scroll_thumbscroll_momentum_threshold_set(double threshold);
2983
2984    /**
2985     * Set the minimum speed of mouse cursor movement which will trigger
2986     * list self scrolling animation after a mouse up event
2987     * (pixels/second), for all Elementary application windows.
2988     *
2989     * @param threshold the thumb scroll momentum threshould
2990     *
2991     * @see elm_thumbscroll_momentum_threshould_get()
2992     * @ingroup Scrolling
2993     */
2994    EAPI void             elm_scroll_thumbscroll_momentum_threshold_all_set(double threshold);
2995
2996    /**
2997     * Get the amount of inertia a scroller will impose at self scrolling
2998     * animations.
2999     *
3000     * @return the thumb scroll friction
3001     *
3002     * @ingroup Scrolling
3003     */
3004    EAPI double           elm_scroll_thumbscroll_friction_get(void);
3005
3006    /**
3007     * Set the amount of inertia a scroller will impose at self scrolling
3008     * animations.
3009     *
3010     * @param friction the thumb scroll friction
3011     *
3012     * @see elm_thumbscroll_friction_get()
3013     * @ingroup Scrolling
3014     */
3015    EAPI void             elm_scroll_thumbscroll_friction_set(double friction);
3016
3017    /**
3018     * Set the amount of inertia a scroller will impose at self scrolling
3019     * animations, for all Elementary application windows.
3020     *
3021     * @param friction the thumb scroll friction
3022     *
3023     * @see elm_thumbscroll_friction_get()
3024     * @ingroup Scrolling
3025     */
3026    EAPI void             elm_scroll_thumbscroll_friction_all_set(double friction);
3027
3028    /**
3029     * Get the amount of lag between your actual mouse cursor dragging
3030     * movement and a scroller's view movement itself, while pushing it
3031     * into bounce state manually.
3032     *
3033     * @return the thumb scroll border friction
3034     *
3035     * @ingroup Scrolling
3036     */
3037    EAPI double           elm_scroll_thumbscroll_border_friction_get(void);
3038
3039    /**
3040     * Set the amount of lag between your actual mouse cursor dragging
3041     * movement and a scroller's view movement itself, while pushing it
3042     * into bounce state manually.
3043     *
3044     * @param friction the thumb scroll border friction. @c 0.0 for
3045     *        perfect synchrony between two movements, @c 1.0 for maximum
3046     *        lag.
3047     *
3048     * @see elm_thumbscroll_border_friction_get()
3049     * @note parameter value will get bound to 0.0 - 1.0 interval, always
3050     *
3051     * @ingroup Scrolling
3052     */
3053    EAPI void             elm_scroll_thumbscroll_border_friction_set(double friction);
3054
3055    /**
3056     * Set the amount of lag between your actual mouse cursor dragging
3057     * movement and a scroller's view movement itself, while pushing it
3058     * into bounce state manually, for all Elementary application windows.
3059     *
3060     * @param friction the thumb scroll border friction. @c 0.0 for
3061     *        perfect synchrony between two movements, @c 1.0 for maximum
3062     *        lag.
3063     *
3064     * @see elm_thumbscroll_border_friction_get()
3065     * @note parameter value will get bound to 0.0 - 1.0 interval, always
3066     *
3067     * @ingroup Scrolling
3068     */
3069    EAPI void             elm_scroll_thumbscroll_border_friction_all_set(double friction);
3070
3071    /**
3072     * Get the sensitivity amount which is be multiplied by the length of
3073     * mouse dragging.
3074     *
3075     * @return the thumb scroll sensitivity friction
3076     *
3077     * @ingroup Scrolling
3078     */
3079    EAPI double           elm_scroll_thumbscroll_sensitivity_friction_get(void);
3080
3081    /**
3082     * Set the sensitivity amount which is be multiplied by the length of
3083     * mouse dragging.
3084     *
3085     * @param friction the thumb scroll sensitivity friction. @c 0.1 for
3086     *        minimun sensitivity, @c 1.0 for maximum sensitivity. 0.25
3087     *        is proper.
3088     *
3089     * @see elm_thumbscroll_sensitivity_friction_get()
3090     * @note parameter value will get bound to 0.1 - 1.0 interval, always
3091     *
3092     * @ingroup Scrolling
3093     */
3094    EAPI void             elm_scroll_thumbscroll_sensitivity_friction_set(double friction);
3095
3096    /**
3097     * Set the sensitivity amount which is be multiplied by the length of
3098     * mouse dragging, for all Elementary application windows.
3099     *
3100     * @param friction the thumb scroll sensitivity friction. @c 0.1 for
3101     *        minimun sensitivity, @c 1.0 for maximum sensitivity. 0.25
3102     *        is proper.
3103     *
3104     * @see elm_thumbscroll_sensitivity_friction_get()
3105     * @note parameter value will get bound to 0.1 - 1.0 interval, always
3106     *
3107     * @ingroup Scrolling
3108     */
3109    EAPI void             elm_scroll_thumbscroll_sensitivity_friction_all_set(double friction);
3110
3111    /**
3112     * @}
3113     */
3114
3115    /**
3116     * @defgroup Scrollhints Scrollhints
3117     *
3118     * Objects when inside a scroller can scroll, but this may not always be
3119     * desirable in certain situations. This allows an object to hint to itself
3120     * and parents to "not scroll" in one of 2 ways. If any child object of a
3121     * scroller has pushed a scroll freeze or hold then it affects all parent
3122     * scrollers until all children have released them.
3123     *
3124     * 1. To hold on scrolling. This means just flicking and dragging may no
3125     * longer scroll, but pressing/dragging near an edge of the scroller will
3126     * still scroll. This is automatically used by the entry object when
3127     * selecting text.
3128     *
3129     * 2. To totally freeze scrolling. This means it stops. until
3130     * popped/released.
3131     *
3132     * @{
3133     */
3134
3135    /**
3136     * Push the scroll hold by 1
3137     *
3138     * This increments the scroll hold count by one. If it is more than 0 it will
3139     * take effect on the parents of the indicated object.
3140     *
3141     * @param obj The object
3142     * @ingroup Scrollhints
3143     */
3144    EAPI void             elm_object_scroll_hold_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
3145
3146    /**
3147     * Pop the scroll hold by 1
3148     *
3149     * This decrements the scroll hold count by one. If it is more than 0 it will
3150     * take effect on the parents of the indicated object.
3151     *
3152     * @param obj The object
3153     * @ingroup Scrollhints
3154     */
3155    EAPI void             elm_object_scroll_hold_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
3156
3157    /**
3158     * Push the scroll freeze by 1
3159     *
3160     * This increments the scroll freeze count by one. If it is more
3161     * than 0 it will take effect on the parents of the indicated
3162     * object.
3163     *
3164     * @param obj The object
3165     * @ingroup Scrollhints
3166     */
3167    EAPI void             elm_object_scroll_freeze_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
3168
3169    /**
3170     * Pop the scroll freeze by 1
3171     *
3172     * This decrements the scroll freeze count by one. If it is more
3173     * than 0 it will take effect on the parents of the indicated
3174     * object.
3175     *
3176     * @param obj The object
3177     * @ingroup Scrollhints
3178     */
3179    EAPI void             elm_object_scroll_freeze_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
3180
3181    /**
3182     * Lock the scrolling of the given widget (and thus all parents)
3183     *
3184     * This locks the given object from scrolling in the X axis (and implicitly
3185     * also locks all parent scrollers too from doing the same).
3186     *
3187     * @param obj The object
3188     * @param lock The lock state (1 == locked, 0 == unlocked)
3189     * @ingroup Scrollhints
3190     */
3191    EAPI void             elm_object_scroll_lock_x_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
3192
3193    /**
3194     * Lock the scrolling of the given widget (and thus all parents)
3195     *
3196     * This locks the given object from scrolling in the Y axis (and implicitly
3197     * also locks all parent scrollers too from doing the same).
3198     *
3199     * @param obj The object
3200     * @param lock The lock state (1 == locked, 0 == unlocked)
3201     * @ingroup Scrollhints
3202     */
3203    EAPI void             elm_object_scroll_lock_y_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
3204
3205    /**
3206     * Get the scrolling lock of the given widget
3207     *
3208     * This gets the lock for X axis scrolling.
3209     *
3210     * @param obj The object
3211     * @ingroup Scrollhints
3212     */
3213    EAPI Eina_Bool        elm_object_scroll_lock_x_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3214
3215    /**
3216     * Get the scrolling lock of the given widget
3217     *
3218     * This gets the lock for X axis scrolling.
3219     *
3220     * @param obj The object
3221     * @ingroup Scrollhints
3222     */
3223    EAPI Eina_Bool        elm_object_scroll_lock_y_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3224
3225    /**
3226     * @}
3227     */
3228
3229    /**
3230     * Send a signal to the widget edje object.
3231     *
3232     * This function sends a signal to the edje object of the obj. An
3233     * edje program can respond to a signal by specifying matching
3234     * 'signal' and 'source' fields.
3235     *
3236     * @param obj The object
3237     * @param emission The signal's name.
3238     * @param source The signal's source.
3239     * @ingroup General
3240     */
3241    EAPI void             elm_object_signal_emit(Evas_Object *obj, const char *emission, const char *source) EINA_ARG_NONNULL(1);
3242
3243    /**
3244     * Add a callback for a signal emitted by widget edje object.
3245     *
3246     * This function connects a callback function to a signal emitted by the
3247     * edje object of the obj.
3248     * Globs can occur in either the emission or source name.
3249     *
3250     * @param obj The object
3251     * @param emission The signal's name.
3252     * @param source The signal's source.
3253     * @param func The callback function to be executed when the signal is
3254     * emitted.
3255     * @param data A pointer to data to pass in to the callback function.
3256     * @ingroup General
3257     */
3258    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);
3259
3260    /**
3261     * Remove a signal-triggered callback from a widget edje object.
3262     *
3263     * This function removes a callback, previoulsy attached to a
3264     * signal emitted by the edje object of the obj.  The parameters
3265     * emission, source and func must match exactly those passed to a
3266     * previous call to elm_object_signal_callback_add(). The data
3267     * pointer that was passed to this call will be returned.
3268     *
3269     * @param obj The object
3270     * @param emission The signal's name.
3271     * @param source The signal's source.
3272     * @param func The callback function to be executed when the signal is
3273     * emitted.
3274     * @return The data pointer
3275     * @ingroup General
3276     */
3277    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);
3278
3279    /**
3280     * Add a callback for input events (key up, key down, mouse wheel)
3281     * on a given Elementary widget
3282     *
3283     * @param obj The widget to add an event callback on
3284     * @param func The callback function to be executed when the event
3285     * happens
3286     * @param data Data to pass in to @p func
3287     *
3288     * Every widget in an Elementary interface set to receive focus,
3289     * with elm_object_focus_allow_set(), will propagate @b all of its
3290     * key up, key down and mouse wheel input events up to its parent
3291     * object, and so on. All of the focusable ones in this chain which
3292     * had an event callback set, with this call, will be able to treat
3293     * those events. There are two ways of making the propagation of
3294     * these event upwards in the tree of widgets to @b cease:
3295     * - Just return @c EINA_TRUE on @p func. @c EINA_FALSE will mean
3296     *   the event was @b not processed, so the propagation will go on.
3297     * - The @c event_info pointer passed to @p func will contain the
3298     *   event's structure and, if you OR its @c event_flags inner
3299     *   value to @c EVAS_EVENT_FLAG_ON_HOLD, you're telling Elementary
3300     *   one has already handled it, thus killing the event's
3301     *   propagation, too.
3302     *
3303     * @note Your event callback will be issued on those events taking
3304     * place only if no other child widget of @obj has consumed the
3305     * event already.
3306     *
3307     * @note Not to be confused with @c
3308     * evas_object_event_callback_add(), which will add event callbacks
3309     * per type on general Evas objects (no event propagation
3310     * infrastructure taken in account).
3311     *
3312     * @note Not to be confused with @c
3313     * elm_object_signal_callback_add(), which will add callbacks to @b
3314     * signals coming from a widget's theme, not input events.
3315     *
3316     * @note Not to be confused with @c
3317     * edje_object_signal_callback_add(), which does the same as
3318     * elm_object_signal_callback_add(), but directly on an Edje
3319     * object.
3320     *
3321     * @note Not to be confused with @c
3322     * evas_object_smart_callback_add(), which adds callbacks to smart
3323     * objects' <b>smart events</b>, and not input events.
3324     *
3325     * @see elm_object_event_callback_del()
3326     *
3327     * @ingroup General
3328     */
3329    EAPI void             elm_object_event_callback_add(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
3330
3331    /**
3332     * Remove an event callback from a widget.
3333     *
3334     * This function removes a callback, previoulsy attached to event emission
3335     * by the @p obj.
3336     * The parameters func and data must match exactly those passed to
3337     * a previous call to elm_object_event_callback_add(). The data pointer that
3338     * was passed to this call will be returned.
3339     *
3340     * @param obj The object
3341     * @param func The callback function to be executed when the event is
3342     * emitted.
3343     * @param data Data to pass in to the callback function.
3344     * @return The data pointer
3345     * @ingroup General
3346     */
3347    EAPI void            *elm_object_event_callback_del(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
3348
3349    /**
3350     * Adjust size of an element for finger usage.
3351     *
3352     * @param times_w How many fingers should fit horizontally
3353     * @param w Pointer to the width size to adjust
3354     * @param times_h How many fingers should fit vertically
3355     * @param h Pointer to the height size to adjust
3356     *
3357     * This takes width and height sizes (in pixels) as input and a
3358     * size multiple (which is how many fingers you want to place
3359     * within the area, being "finger" the size set by
3360     * elm_finger_size_set()), and adjusts the size to be large enough
3361     * to accommodate the resulting size -- if it doesn't already
3362     * accommodate it. On return the @p w and @p h sizes pointed to by
3363     * these parameters will be modified, on those conditions.
3364     *
3365     * @note This is kind of a low level Elementary call, most useful
3366     * on size evaluation times for widgets. An external user wouldn't
3367     * be calling, most of the time.
3368     *
3369     * @ingroup Fingers
3370     */
3371    EAPI void             elm_coords_finger_size_adjust(int times_w, Evas_Coord *w, int times_h, Evas_Coord *h);
3372
3373    /**
3374     * Get the duration for occuring long press event.
3375     *
3376     * @return Timeout for long press event
3377     * @ingroup Longpress
3378     */
3379    EAPI double           elm_longpress_timeout_get(void);
3380
3381    /**
3382     * Set the duration for occuring long press event.
3383     *
3384     * @param lonpress_timeout Timeout for long press event
3385     * @ingroup Longpress
3386     */
3387    EAPI void             elm_longpress_timeout_set(double longpress_timeout);
3388
3389    /**
3390     * @defgroup Debug Debug
3391     * don't use it unless you are sure
3392     *
3393     * @{
3394     */
3395
3396    /**
3397     * Print Tree object hierarchy in stdout
3398     *
3399     * @param obj The root object
3400     * @ingroup Debug
3401     */
3402    EAPI void             elm_object_tree_dump(const Evas_Object *top);
3403
3404    /**
3405     * Print Elm Objects tree hierarchy in file as dot(graphviz) syntax.
3406     *
3407     * @param obj The root object
3408     * @param file The path of output file
3409     * @ingroup Debug
3410     */
3411    EAPI void             elm_object_tree_dot_dump(const Evas_Object *top, const char *file);
3412
3413    /**
3414     * @}
3415     */
3416
3417    /**
3418     * @defgroup Theme Theme
3419     *
3420     * Elementary uses Edje to theme its widgets, naturally. But for the most
3421     * part this is hidden behind a simpler interface that lets the user set
3422     * extensions and choose the style of widgets in a much easier way.
3423     *
3424     * Instead of thinking in terms of paths to Edje files and their groups
3425     * each time you want to change the appearance of a widget, Elementary
3426     * works so you can add any theme file with extensions or replace the
3427     * main theme at one point in the application, and then just set the style
3428     * of widgets with elm_object_style_set() and related functions. Elementary
3429     * will then look in its list of themes for a matching group and apply it,
3430     * and when the theme changes midway through the application, all widgets
3431     * will be updated accordingly.
3432     *
3433     * There are three concepts you need to know to understand how Elementary
3434     * theming works: default theme, extensions and overlays.
3435     *
3436     * Default theme, obviously enough, is the one that provides the default
3437     * look of all widgets. End users can change the theme used by Elementary
3438     * by setting the @c ELM_THEME environment variable before running an
3439     * application, or globally for all programs using the @c elementary_config
3440     * utility. Applications can change the default theme using elm_theme_set(),
3441     * but this can go against the user wishes, so it's not an adviced practice.
3442     *
3443     * Ideally, applications should find everything they need in the already
3444     * provided theme, but there may be occasions when that's not enough and
3445     * custom styles are required to correctly express the idea. For this
3446     * cases, Elementary has extensions.
3447     *
3448     * Extensions allow the application developer to write styles of its own
3449     * to apply to some widgets. This requires knowledge of how each widget
3450     * is themed, as extensions will always replace the entire group used by
3451     * the widget, so important signals and parts need to be there for the
3452     * object to behave properly (see documentation of Edje for details).
3453     * Once the theme for the extension is done, the application needs to add
3454     * it to the list of themes Elementary will look into, using
3455     * elm_theme_extension_add(), and set the style of the desired widgets as
3456     * he would normally with elm_object_style_set().
3457     *
3458     * Overlays, on the other hand, can replace the look of all widgets by
3459     * overriding the default style. Like extensions, it's up to the application
3460     * developer to write the theme for the widgets it wants, the difference
3461     * being that when looking for the theme, Elementary will check first the
3462     * list of overlays, then the set theme and lastly the list of extensions,
3463     * so with overlays it's possible to replace the default view and every
3464     * widget will be affected. This is very much alike to setting the whole
3465     * theme for the application and will probably clash with the end user
3466     * options, not to mention the risk of ending up with not matching styles
3467     * across the program. Unless there's a very special reason to use them,
3468     * overlays should be avoided for the resons exposed before.
3469     *
3470     * All these theme lists are handled by ::Elm_Theme instances. Elementary
3471     * keeps one default internally and every function that receives one of
3472     * these can be called with NULL to refer to this default (except for
3473     * elm_theme_free()). It's possible to create a new instance of a
3474     * ::Elm_Theme to set other theme for a specific widget (and all of its
3475     * children), but this is as discouraged, if not even more so, than using
3476     * overlays. Don't use this unless you really know what you are doing.
3477     *
3478     * But to be less negative about things, you can look at the following
3479     * examples:
3480     * @li @ref theme_example_01 "Using extensions"
3481     * @li @ref theme_example_02 "Using overlays"
3482     *
3483     * @{
3484     */
3485    /**
3486     * @typedef Elm_Theme
3487     *
3488     * Opaque handler for the list of themes Elementary looks for when
3489     * rendering widgets.
3490     *
3491     * Stay out of this unless you really know what you are doing. For most
3492     * cases, sticking to the default is all a developer needs.
3493     */
3494    typedef struct _Elm_Theme Elm_Theme;
3495
3496    /**
3497     * Create a new specific theme
3498     *
3499     * This creates an empty specific theme that only uses the default theme. A
3500     * specific theme has its own private set of extensions and overlays too
3501     * (which are empty by default). Specific themes do not fall back to themes
3502     * of parent objects. They are not intended for this use. Use styles, overlays
3503     * and extensions when needed, but avoid specific themes unless there is no
3504     * other way (example: you want to have a preview of a new theme you are
3505     * selecting in a "theme selector" window. The preview is inside a scroller
3506     * and should display what the theme you selected will look like, but not
3507     * actually apply it yet. The child of the scroller will have a specific
3508     * theme set to show this preview before the user decides to apply it to all
3509     * applications).
3510     */
3511    EAPI Elm_Theme       *elm_theme_new(void);
3512    /**
3513     * Free a specific theme
3514     *
3515     * @param th The theme to free
3516     *
3517     * This frees a theme created with elm_theme_new().
3518     */
3519    EAPI void             elm_theme_free(Elm_Theme *th);
3520    /**
3521     * Copy the theme fom the source to the destination theme
3522     *
3523     * @param th The source theme to copy from
3524     * @param thdst The destination theme to copy data to
3525     *
3526     * This makes a one-time static copy of all the theme config, extensions
3527     * and overlays from @p th to @p thdst. If @p th references a theme, then
3528     * @p thdst is also set to reference it, with all the theme settings,
3529     * overlays and extensions that @p th had.
3530     */
3531    EAPI void             elm_theme_copy(Elm_Theme *th, Elm_Theme *thdst);
3532    /**
3533     * Tell the source theme to reference the ref theme
3534     *
3535     * @param th The theme that will do the referencing
3536     * @param thref The theme that is the reference source
3537     *
3538     * This clears @p th to be empty and then sets it to refer to @p thref
3539     * so @p th acts as an override to @p thref, but where its overrides
3540     * don't apply, it will fall through to @p thref for configuration.
3541     */
3542    EAPI void             elm_theme_ref_set(Elm_Theme *th, Elm_Theme *thref);
3543    /**
3544     * Return the theme referred to
3545     *
3546     * @param th The theme to get the reference from
3547     * @return The referenced theme handle
3548     *
3549     * This gets the theme set as the reference theme by elm_theme_ref_set().
3550     * If no theme is set as a reference, NULL is returned.
3551     */
3552    EAPI Elm_Theme       *elm_theme_ref_get(Elm_Theme *th);
3553    /**
3554     * Return the default theme
3555     *
3556     * @return The default theme handle
3557     *
3558     * This returns the internal default theme setup handle that all widgets
3559     * use implicitly unless a specific theme is set. This is also often use
3560     * as a shorthand of NULL.
3561     */
3562    EAPI Elm_Theme       *elm_theme_default_get(void);
3563    /**
3564     * Prepends a theme overlay to the list of overlays
3565     *
3566     * @param th The theme to add to, or if NULL, the default theme
3567     * @param item The Edje file path to be used
3568     *
3569     * Use this if your application needs to provide some custom overlay theme
3570     * (An Edje file that replaces some default styles of widgets) where adding
3571     * new styles, or changing system theme configuration is not possible. Do
3572     * NOT use this instead of a proper system theme configuration. Use proper
3573     * configuration files, profiles, environment variables etc. to set a theme
3574     * so that the theme can be altered by simple confiugration by a user. Using
3575     * this call to achieve that effect is abusing the API and will create lots
3576     * of trouble.
3577     *
3578     * @see elm_theme_extension_add()
3579     */
3580    EAPI void             elm_theme_overlay_add(Elm_Theme *th, const char *item);
3581    /**
3582     * Delete a theme overlay from the list of overlays
3583     *
3584     * @param th The theme to delete from, or if NULL, the default theme
3585     * @param item The name of the theme overlay
3586     *
3587     * @see elm_theme_overlay_add()
3588     */
3589    EAPI void             elm_theme_overlay_del(Elm_Theme *th, const char *item);
3590    /**
3591     * Appends a theme extension to the list of extensions.
3592     *
3593     * @param th The theme to add to, or if NULL, the default theme
3594     * @param item The Edje file path to be used
3595     *
3596     * This is intended when an application needs more styles of widgets or new
3597     * widget themes that the default does not provide (or may not provide). The
3598     * application has "extended" usage by coming up with new custom style names
3599     * for widgets for specific uses, but as these are not "standard", they are
3600     * not guaranteed to be provided by a default theme. This means the
3601     * application is required to provide these extra elements itself in specific
3602     * Edje files. This call adds one of those Edje files to the theme search
3603     * path to be search after the default theme. The use of this call is
3604     * encouraged when default styles do not meet the needs of the application.
3605     * Use this call instead of elm_theme_overlay_add() for almost all cases.
3606     *
3607     * @see elm_object_style_set()
3608     */
3609    EAPI void             elm_theme_extension_add(Elm_Theme *th, const char *item);
3610    /**
3611     * Deletes a theme extension from the list of extensions.
3612     *
3613     * @param th The theme to delete from, or if NULL, the default theme
3614     * @param item The name of the theme extension
3615     *
3616     * @see elm_theme_extension_add()
3617     */
3618    EAPI void             elm_theme_extension_del(Elm_Theme *th, const char *item);
3619    /**
3620     * Set the theme search order for the given theme
3621     *
3622     * @param th The theme to set the search order, or if NULL, the default theme
3623     * @param theme Theme search string
3624     *
3625     * This sets the search string for the theme in path-notation from first
3626     * theme to search, to last, delimited by the : character. Example:
3627     *
3628     * "shiny:/path/to/file.edj:default"
3629     *
3630     * See the ELM_THEME environment variable for more information.
3631     *
3632     * @see elm_theme_get()
3633     * @see elm_theme_list_get()
3634     */
3635    EAPI void             elm_theme_set(Elm_Theme *th, const char *theme);
3636    /**
3637     * Return the theme search order
3638     *
3639     * @param th The theme to get the search order, or if NULL, the default theme
3640     * @return The internal search order path
3641     *
3642     * This function returns a colon separated string of theme elements as
3643     * returned by elm_theme_list_get().
3644     *
3645     * @see elm_theme_set()
3646     * @see elm_theme_list_get()
3647     */
3648    EAPI const char      *elm_theme_get(Elm_Theme *th);
3649    /**
3650     * Return a list of theme elements to be used in a theme.
3651     *
3652     * @param th Theme to get the list of theme elements from.
3653     * @return The internal list of theme elements
3654     *
3655     * This returns the internal list of theme elements (will only be valid as
3656     * long as the theme is not modified by elm_theme_set() or theme is not
3657     * freed by elm_theme_free(). This is a list of strings which must not be
3658     * altered as they are also internal. If @p th is NULL, then the default
3659     * theme element list is returned.
3660     *
3661     * A theme element can consist of a full or relative path to a .edj file,
3662     * or a name, without extension, for a theme to be searched in the known
3663     * theme paths for Elemementary.
3664     *
3665     * @see elm_theme_set()
3666     * @see elm_theme_get()
3667     */
3668    EAPI const Eina_List *elm_theme_list_get(const Elm_Theme *th);
3669    /**
3670     * Return the full patrh for a theme element
3671     *
3672     * @param f The theme element name
3673     * @param in_search_path Pointer to a boolean to indicate if item is in the search path or not
3674     * @return The full path to the file found.
3675     *
3676     * This returns a string you should free with free() on success, NULL on
3677     * failure. This will search for the given theme element, and if it is a
3678     * full or relative path element or a simple searchable name. The returned
3679     * path is the full path to the file, if searched, and the file exists, or it
3680     * is simply the full path given in the element or a resolved path if
3681     * relative to home. The @p in_search_path boolean pointed to is set to
3682     * EINA_TRUE if the file was a searchable file andis in the search path,
3683     * and EINA_FALSE otherwise.
3684     */
3685    EAPI char            *elm_theme_list_item_path_get(const char *f, Eina_Bool *in_search_path);
3686    /**
3687     * Flush the current theme.
3688     *
3689     * @param th Theme to flush
3690     *
3691     * This flushes caches that let elementary know where to find theme elements
3692     * in the given theme. If @p th is NULL, then the default theme is flushed.
3693     * Call this function if source theme data has changed in such a way as to
3694     * make any caches Elementary kept invalid.
3695     */
3696    EAPI void             elm_theme_flush(Elm_Theme *th);
3697    /**
3698     * This flushes all themes (default and specific ones).
3699     *
3700     * This will flush all themes in the current application context, by calling
3701     * elm_theme_flush() on each of them.
3702     */
3703    EAPI void             elm_theme_full_flush(void);
3704    /**
3705     * Set the theme for all elementary using applications on the current display
3706     *
3707     * @param theme The name of the theme to use. Format same as the ELM_THEME
3708     * environment variable.
3709     */
3710    EAPI void             elm_theme_all_set(const char *theme);
3711    /**
3712     * Return a list of theme elements in the theme search path
3713     *
3714     * @return A list of strings that are the theme element names.
3715     *
3716     * This lists all available theme files in the standard Elementary search path
3717     * for theme elements, and returns them in alphabetical order as theme
3718     * element names in a list of strings. Free this with
3719     * elm_theme_name_available_list_free() when you are done with the list.
3720     */
3721    EAPI Eina_List       *elm_theme_name_available_list_new(void);
3722    /**
3723     * Free the list returned by elm_theme_name_available_list_new()
3724     *
3725     * This frees the list of themes returned by
3726     * elm_theme_name_available_list_new(). Once freed the list should no longer
3727     * be used. a new list mys be created.
3728     */
3729    EAPI void             elm_theme_name_available_list_free(Eina_List *list);
3730    /**
3731     * Set a specific theme to be used for this object and its children
3732     *
3733     * @param obj The object to set the theme on
3734     * @param th The theme to set
3735     *
3736     * This sets a specific theme that will be used for the given object and any
3737     * child objects it has. If @p th is NULL then the theme to be used is
3738     * cleared and the object will inherit its theme from its parent (which
3739     * ultimately will use the default theme if no specific themes are set).
3740     *
3741     * Use special themes with great care as this will annoy users and make
3742     * configuration difficult. Avoid any custom themes at all if it can be
3743     * helped.
3744     */
3745    EAPI void             elm_object_theme_set(Evas_Object *obj, Elm_Theme *th) EINA_ARG_NONNULL(1);
3746    /**
3747     * Get the specific theme to be used
3748     *
3749     * @param obj The object to get the specific theme from
3750     * @return The specifc theme set.
3751     *
3752     * This will return a specific theme set, or NULL if no specific theme is
3753     * set on that object. It will not return inherited themes from parents, only
3754     * the specific theme set for that specific object. See elm_object_theme_set()
3755     * for more information.
3756     */
3757    EAPI Elm_Theme       *elm_object_theme_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3758
3759    /**
3760     * Get a data item from a theme
3761     *
3762     * @param th The theme, or NULL for default theme
3763     * @param key The data key to search with
3764     * @return The data value, or NULL on failure
3765     *
3766     * This function is used to return data items from edc in @p th, an overlay, or an extension.
3767     * It works the same way as edje_file_data_get() except that the return is stringshared.
3768     */
3769    EAPI const char      *elm_theme_data_get(Elm_Theme *th, const char *key) EINA_ARG_NONNULL(2);
3770    /**
3771     * @}
3772     */
3773
3774    /* win */
3775    /** @defgroup Win Win
3776     *
3777     * @image html img/widget/win/preview-00.png
3778     * @image latex img/widget/win/preview-00.eps
3779     *
3780     * The window class of Elementary.  Contains functions to manipulate
3781     * windows. The Evas engine used to render the window contents is specified
3782     * in the system or user elementary config files (whichever is found last),
3783     * and can be overridden with the ELM_ENGINE environment variable for
3784     * testing.  Engines that may be supported (depending on Evas and Ecore-Evas
3785     * compilation setup and modules actually installed at runtime) are (listed
3786     * in order of best supported and most likely to be complete and work to
3787     * lowest quality).
3788     *
3789     * @li "x11", "x", "software-x11", "software_x11" (Software rendering in X11)
3790     * @li "gl", "opengl", "opengl-x11", "opengl_x11" (OpenGL or OpenGL-ES2
3791     * rendering in X11)
3792     * @li "shot:..." (Virtual screenshot renderer - renders to output file and
3793     * exits)
3794     * @li "fb", "software-fb", "software_fb" (Linux framebuffer direct software
3795     * rendering)
3796     * @li "sdl", "software-sdl", "software_sdl" (SDL software rendering to SDL
3797     * buffer)
3798     * @li "gl-sdl", "gl_sdl", "opengl-sdl", "opengl_sdl" (OpenGL or OpenGL-ES2
3799     * rendering using SDL as the buffer)
3800     * @li "gdi", "software-gdi", "software_gdi" (Windows WIN32 rendering via
3801     * GDI with software)
3802     * @li "dfb", "directfb" (Rendering to a DirectFB window)
3803     * @li "x11-8", "x8", "software-8-x11", "software_8_x11" (Rendering in
3804     * grayscale using dedicated 8bit software engine in X11)
3805     * @li "x11-16", "x16", "software-16-x11", "software_16_x11" (Rendering in
3806     * X11 using 16bit software engine)
3807     * @li "wince-gdi", "software-16-wince-gdi", "software_16_wince_gdi"
3808     * (Windows CE rendering via GDI with 16bit software renderer)
3809     * @li "sdl-16", "software-16-sdl", "software_16_sdl" (Rendering to SDL
3810     * buffer with 16bit software renderer)
3811     * @li "ews" (rendering to EWS - Ecore + Evas Single Process Windowing System)
3812     * @li "gl-cocoa", "gl_cocoa", "opengl-cocoa", "opengl_cocoa" (OpenGL rendering in Cocoa)
3813     * @li "psl1ght" (PS3 rendering using PSL1GHT)
3814     *
3815     * All engines use a simple string to select the engine to render, EXCEPT
3816     * the "shot" engine. This actually encodes the output of the virtual
3817     * screenshot and how long to delay in the engine string. The engine string
3818     * is encoded in the following way:
3819     *
3820     *   "shot:[delay=XX][:][repeat=DDD][:][file=XX]"
3821     *
3822     * Where options are separated by a ":" char if more than one option is
3823     * given, with delay, if provided being the first option and file the last
3824     * (order is important). The delay specifies how long to wait after the
3825     * window is shown before doing the virtual "in memory" rendering and then
3826     * save the output to the file specified by the file option (and then exit).
3827     * If no delay is given, the default is 0.5 seconds. If no file is given the
3828     * default output file is "out.png". Repeat option is for continous
3829     * capturing screenshots. Repeat range is from 1 to 999 and filename is
3830     * fixed to "out001.png" Some examples of using the shot engine:
3831     *
3832     *   ELM_ENGINE="shot:delay=1.0:repeat=5:file=elm_test.png" elementary_test
3833     *   ELM_ENGINE="shot:delay=1.0:file=elm_test.png" elementary_test
3834     *   ELM_ENGINE="shot:file=elm_test2.png" elementary_test
3835     *   ELM_ENGINE="shot:delay=2.0" elementary_test
3836     *   ELM_ENGINE="shot:" elementary_test
3837     *
3838     * Signals that you can add callbacks for are:
3839     *
3840     * @li "delete,request": the user requested to close the window. See
3841     * elm_win_autodel_set().
3842     * @li "focus,in": window got focus
3843     * @li "focus,out": window lost focus
3844     * @li "moved": window that holds the canvas was moved
3845     *
3846     * Examples:
3847     * @li @ref win_example_01
3848     *
3849     * @{
3850     */
3851    /**
3852     * Defines the types of window that can be created
3853     *
3854     * These are hints set on the window so that a running Window Manager knows
3855     * how the window should be handled and/or what kind of decorations it
3856     * should have.
3857     *
3858     * Currently, only the X11 backed engines use them.
3859     */
3860    typedef enum _Elm_Win_Type
3861      {
3862         ELM_WIN_BASIC, /**< A normal window. Indicates a normal, top-level
3863                          window. Almost every window will be created with this
3864                          type. */
3865         ELM_WIN_DIALOG_BASIC, /**< Used for simple dialog windows/ */
3866         ELM_WIN_DESKTOP, /**< For special desktop windows, like a background
3867                            window holding desktop icons. */
3868         ELM_WIN_DOCK, /**< The window is used as a dock or panel. Usually would
3869                         be kept on top of any other window by the Window
3870                         Manager. */
3871         ELM_WIN_TOOLBAR, /**< The window is used to hold a floating toolbar, or
3872                            similar. */
3873         ELM_WIN_MENU, /**< Similar to #ELM_WIN_TOOLBAR. */
3874         ELM_WIN_UTILITY, /**< A persistent utility window, like a toolbox or
3875                            pallete. */
3876         ELM_WIN_SPLASH, /**< Splash window for a starting up application. */
3877         ELM_WIN_DROPDOWN_MENU, /**< The window is a dropdown menu, as when an
3878                                  entry in a menubar is clicked. Typically used
3879                                  with elm_win_override_set(). This hint exists
3880                                  for completion only, as the EFL way of
3881                                  implementing a menu would not normally use a
3882                                  separate window for its contents. */
3883         ELM_WIN_POPUP_MENU, /**< Like #ELM_WIN_DROPDOWN_MENU, but for the menu
3884                               triggered by right-clicking an object. */
3885         ELM_WIN_TOOLTIP, /**< The window is a tooltip. A short piece of
3886                            explanatory text that typically appear after the
3887                            mouse cursor hovers over an object for a while.
3888                            Typically used with elm_win_override_set() and also
3889                            not very commonly used in the EFL. */
3890         ELM_WIN_NOTIFICATION, /**< A notification window, like a warning about
3891                                 battery life or a new E-Mail received. */
3892         ELM_WIN_COMBO, /**< A window holding the contents of a combo box. Not
3893                          usually used in the EFL. */
3894         ELM_WIN_DND, /**< Used to indicate the window is a representation of an
3895                        object being dragged across different windows, or even
3896                        applications. Typically used with
3897                        elm_win_override_set(). */
3898         ELM_WIN_INLINED_IMAGE, /**< The window is rendered onto an image
3899                                  buffer. No actual window is created for this
3900                                  type, instead the window and all of its
3901                                  contents will be rendered to an image buffer.
3902                                  This allows to have children window inside a
3903                                  parent one just like any other object would
3904                                  be, and do other things like applying @c
3905                                  Evas_Map effects to it. This is the only type
3906                                  of window that requires the @c parent
3907                                  parameter of elm_win_add() to be a valid @c
3908                                  Evas_Object. */
3909      } Elm_Win_Type;
3910
3911    /**
3912     * The differents layouts that can be requested for the virtual keyboard.
3913     *
3914     * When the application window is being managed by Illume, it may request
3915     * any of the following layouts for the virtual keyboard.
3916     */
3917    typedef enum _Elm_Win_Keyboard_Mode
3918      {
3919         ELM_WIN_KEYBOARD_UNKNOWN, /**< Unknown keyboard state */
3920         ELM_WIN_KEYBOARD_OFF, /**< Request to deactivate the keyboard */
3921         ELM_WIN_KEYBOARD_ON, /**< Enable keyboard with default layout */
3922         ELM_WIN_KEYBOARD_ALPHA, /**< Alpha (a-z) keyboard layout */
3923         ELM_WIN_KEYBOARD_NUMERIC, /**< Numeric keyboard layout */
3924         ELM_WIN_KEYBOARD_PIN, /**< PIN keyboard layout */
3925         ELM_WIN_KEYBOARD_PHONE_NUMBER, /**< Phone keyboard layout */
3926         ELM_WIN_KEYBOARD_HEX, /**< Hexadecimal numeric keyboard layout */
3927         ELM_WIN_KEYBOARD_TERMINAL, /**< Full (QUERTY) keyboard layout */
3928         ELM_WIN_KEYBOARD_PASSWORD, /**< Password keyboard layout */
3929         ELM_WIN_KEYBOARD_IP, /**< IP keyboard layout */
3930         ELM_WIN_KEYBOARD_HOST, /**< Host keyboard layout */
3931         ELM_WIN_KEYBOARD_FILE, /**< File keyboard layout */
3932         ELM_WIN_KEYBOARD_URL, /**< URL keyboard layout */
3933         ELM_WIN_KEYBOARD_KEYPAD, /**< Keypad layout */
3934         ELM_WIN_KEYBOARD_J2ME /**< J2ME keyboard layout */
3935      } Elm_Win_Keyboard_Mode;
3936
3937    /**
3938     * Available commands that can be sent to the Illume manager.
3939     *
3940     * When running under an Illume session, a window may send commands to the
3941     * Illume manager to perform different actions.
3942     */
3943    typedef enum _Elm_Illume_Command
3944      {
3945         ELM_ILLUME_COMMAND_FOCUS_BACK, /**< Reverts focus to the previous
3946                                          window */
3947         ELM_ILLUME_COMMAND_FOCUS_FORWARD, /**< Sends focus to the next window\
3948                                             in the list */
3949         ELM_ILLUME_COMMAND_FOCUS_HOME, /**< Hides all windows to show the Home
3950                                          screen */
3951         ELM_ILLUME_COMMAND_CLOSE /**< Closes the currently active window */
3952      } Elm_Illume_Command;
3953
3954    /**
3955     * Adds a window object. If this is the first window created, pass NULL as
3956     * @p parent.
3957     *
3958     * @param parent Parent object to add the window to, or NULL
3959     * @param name The name of the window
3960     * @param type The window type, one of #Elm_Win_Type.
3961     *
3962     * The @p parent paramter can be @c NULL for every window @p type except
3963     * #ELM_WIN_INLINED_IMAGE, which needs a parent to retrieve the canvas on
3964     * which the image object will be created.
3965     *
3966     * @return The created object, or NULL on failure
3967     */
3968    EAPI Evas_Object *elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type);
3969    /**
3970     * Adds a window object with standard setup
3971     *
3972     * @param name The name of the window
3973     * @param title The title for the window
3974     *
3975     * This creates a window like elm_win_add() but also puts in a standard
3976     * background with elm_bg_add(), as well as setting the window title to
3977     * @p title. The window type created is of type ELM_WIN_BASIC, with NULL
3978     * as the parent widget.
3979     * 
3980     * @return The created object, or NULL on failure
3981     *
3982     * @see elm_win_add()
3983     */
3984    EAPI Evas_Object *elm_win_util_standard_add(const char *name, const char *title);
3985    /**
3986     * Add @p subobj as a resize object of window @p obj.
3987     *
3988     *
3989     * Setting an object as a resize object of the window means that the
3990     * @p subobj child's size and position will be controlled by the window
3991     * directly. That is, the object will be resized to match the window size
3992     * and should never be moved or resized manually by the developer.
3993     *
3994     * In addition, resize objects of the window control what the minimum size
3995     * of it will be, as well as whether it can or not be resized by the user.
3996     *
3997     * For the end user to be able to resize a window by dragging the handles
3998     * or borders provided by the Window Manager, or using any other similar
3999     * mechanism, all of the resize objects in the window should have their
4000     * evas_object_size_hint_weight_set() set to EVAS_HINT_EXPAND.
4001     *
4002     * @param obj The window object
4003     * @param subobj The resize object to add
4004     */
4005    EAPI void         elm_win_resize_object_add(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
4006    /**
4007     * Delete @p subobj as a resize object of window @p obj.
4008     *
4009     * This function removes the object @p subobj from the resize objects of
4010     * the window @p obj. It will not delete the object itself, which will be
4011     * left unmanaged and should be deleted by the developer, manually handled
4012     * or set as child of some other container.
4013     *
4014     * @param obj The window object
4015     * @param subobj The resize object to add
4016     */
4017    EAPI void         elm_win_resize_object_del(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
4018    /**
4019     * Set the title of the window
4020     *
4021     * @param obj The window object
4022     * @param title The title to set
4023     */
4024    EAPI void         elm_win_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
4025    /**
4026     * Get the title of the window
4027     *
4028     * The returned string is an internal one and should not be freed or
4029     * modified. It will also be rendered invalid if a new title is set or if
4030     * the window is destroyed.
4031     *
4032     * @param obj The window object
4033     * @return The title
4034     */
4035    EAPI const char  *elm_win_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4036    /**
4037     * Set the window's autodel state.
4038     *
4039     * When closing the window in any way outside of the program control, like
4040     * pressing the X button in the titlebar or using a command from the
4041     * Window Manager, a "delete,request" signal is emitted to indicate that
4042     * this event occurred and the developer can take any action, which may
4043     * include, or not, destroying the window object.
4044     *
4045     * When the @p autodel parameter is set, the window will be automatically
4046     * destroyed when this event occurs, after the signal is emitted.
4047     * If @p autodel is @c EINA_FALSE, then the window will not be destroyed
4048     * and is up to the program to do so when it's required.
4049     *
4050     * @param obj The window object
4051     * @param autodel If true, the window will automatically delete itself when
4052     * closed
4053     */
4054    EAPI void         elm_win_autodel_set(Evas_Object *obj, Eina_Bool autodel) EINA_ARG_NONNULL(1);
4055    /**
4056     * Get the window's autodel state.
4057     *
4058     * @param obj The window object
4059     * @return If the window will automatically delete itself when closed
4060     *
4061     * @see elm_win_autodel_set()
4062     */
4063    EAPI Eina_Bool    elm_win_autodel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4064    /**
4065     * Activate a window object.
4066     *
4067     * This function sends a request to the Window Manager to activate the
4068     * window pointed by @p obj. If honored by the WM, the window will receive
4069     * the keyboard focus.
4070     *
4071     * @note This is just a request that a Window Manager may ignore, so calling
4072     * this function does not ensure in any way that the window will be the
4073     * active one after it.
4074     *
4075     * @param obj The window object
4076     */
4077    EAPI void         elm_win_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
4078    /**
4079     * Lower a window object.
4080     *
4081     * Places the window pointed by @p obj at the bottom of the stack, so that
4082     * no other window is covered by it.
4083     *
4084     * If elm_win_override_set() is not set, the Window Manager may ignore this
4085     * request.
4086     *
4087     * @param obj The window object
4088     */
4089    EAPI void         elm_win_lower(Evas_Object *obj) EINA_ARG_NONNULL(1);
4090    /**
4091     * Raise a window object.
4092     *
4093     * Places the window pointed by @p obj at the top of the stack, so that it's
4094     * not covered by any other window.
4095     *
4096     * If elm_win_override_set() is not set, the Window Manager may ignore this
4097     * request.
4098     *
4099     * @param obj The window object
4100     */
4101    EAPI void         elm_win_raise(Evas_Object *obj) EINA_ARG_NONNULL(1);
4102    /**
4103     * Set the borderless state of a window.
4104     *
4105     * This function requests the Window Manager to not draw any decoration
4106     * around the window.
4107     *
4108     * @param obj The window object
4109     * @param borderless If true, the window is borderless
4110     */
4111    EAPI void         elm_win_borderless_set(Evas_Object *obj, Eina_Bool borderless) EINA_ARG_NONNULL(1);
4112    /**
4113     * Get the borderless state of a window.
4114     *
4115     * @param obj The window object
4116     * @return If true, the window is borderless
4117     */
4118    EAPI Eina_Bool    elm_win_borderless_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4119    /**
4120     * Set the shaped state of a window.
4121     *
4122     * Shaped windows, when supported, will render the parts of the window that
4123     * has no content, transparent.
4124     *
4125     * If @p shaped is EINA_FALSE, then it is strongly adviced to have some
4126     * background object or cover the entire window in any other way, or the
4127     * parts of the canvas that have no data will show framebuffer artifacts.
4128     *
4129     * @param obj The window object
4130     * @param shaped If true, the window is shaped
4131     *
4132     * @see elm_win_alpha_set()
4133     */
4134    EAPI void         elm_win_shaped_set(Evas_Object *obj, Eina_Bool shaped) EINA_ARG_NONNULL(1);
4135    /**
4136     * Get the shaped state of a window.
4137     *
4138     * @param obj The window object
4139     * @return If true, the window is shaped
4140     *
4141     * @see elm_win_shaped_set()
4142     */
4143    EAPI Eina_Bool    elm_win_shaped_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4144    /**
4145     * Set the alpha channel state of a window.
4146     *
4147     * If @p alpha is EINA_TRUE, the alpha channel of the canvas will be enabled
4148     * possibly making parts of the window completely or partially transparent.
4149     * This is also subject to the underlying system supporting it, like for
4150     * example, running under a compositing manager. If no compositing is
4151     * available, enabling this option will instead fallback to using shaped
4152     * windows, with elm_win_shaped_set().
4153     *
4154     * @param obj The window object
4155     * @param alpha If true, the window has an alpha channel
4156     *
4157     * @see elm_win_alpha_set()
4158     */
4159    EAPI void         elm_win_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
4160    /**
4161     * Get the transparency state of a window.
4162     *
4163     * @param obj The window object
4164     * @return If true, the window is transparent
4165     *
4166     * @see elm_win_transparent_set()
4167     */
4168    EAPI Eina_Bool    elm_win_transparent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4169    /**
4170     * Set the transparency state of a window.
4171     *
4172     * Use elm_win_alpha_set() instead.
4173     *
4174     * @param obj The window object
4175     * @param transparent If true, the window is transparent
4176     *
4177     * @see elm_win_alpha_set()
4178     */
4179    EAPI void         elm_win_transparent_set(Evas_Object *obj, Eina_Bool transparent) EINA_ARG_NONNULL(1);
4180    /**
4181     * Get the alpha channel state of a window.
4182     *
4183     * @param obj The window object
4184     * @return If true, the window has an alpha channel
4185     */
4186    EAPI Eina_Bool    elm_win_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4187    /**
4188     * Set the override state of a window.
4189     *
4190     * A window with @p override set to EINA_TRUE will not be managed by the
4191     * Window Manager. This means that no decorations of any kind will be shown
4192     * for it, moving and resizing must be handled by the application, as well
4193     * as the window visibility.
4194     *
4195     * This should not be used for normal windows, and even for not so normal
4196     * ones, it should only be used when there's a good reason and with a lot
4197     * of care. Mishandling override windows may result situations that
4198     * disrupt the normal workflow of the end user.
4199     *
4200     * @param obj The window object
4201     * @param override If true, the window is overridden
4202     */
4203    EAPI void         elm_win_override_set(Evas_Object *obj, Eina_Bool override) EINA_ARG_NONNULL(1);
4204    /**
4205     * Get the override state of a window.
4206     *
4207     * @param obj The window object
4208     * @return If true, the window is overridden
4209     *
4210     * @see elm_win_override_set()
4211     */
4212    EAPI Eina_Bool    elm_win_override_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4213    /**
4214     * Set the fullscreen state of a window.
4215     *
4216     * @param obj The window object
4217     * @param fullscreen If true, the window is fullscreen
4218     */
4219    EAPI void         elm_win_fullscreen_set(Evas_Object *obj, Eina_Bool fullscreen) EINA_ARG_NONNULL(1);
4220    /**
4221     * Get the fullscreen state of a window.
4222     *
4223     * @param obj The window object
4224     * @return If true, the window is fullscreen
4225     */
4226    EAPI Eina_Bool    elm_win_fullscreen_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4227    /**
4228     * Set the maximized state of a window.
4229     *
4230     * @param obj The window object
4231     * @param maximized If true, the window is maximized
4232     */
4233    EAPI void         elm_win_maximized_set(Evas_Object *obj, Eina_Bool maximized) EINA_ARG_NONNULL(1);
4234    /**
4235     * Get the maximized state of a window.
4236     *
4237     * @param obj The window object
4238     * @return If true, the window is maximized
4239     */
4240    EAPI Eina_Bool    elm_win_maximized_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4241    /**
4242     * Set the iconified state of a window.
4243     *
4244     * @param obj The window object
4245     * @param iconified If true, the window is iconified
4246     */
4247    EAPI void         elm_win_iconified_set(Evas_Object *obj, Eina_Bool iconified) EINA_ARG_NONNULL(1);
4248    /**
4249     * Get the iconified state of a window.
4250     *
4251     * @param obj The window object
4252     * @return If true, the window is iconified
4253     */
4254    EAPI Eina_Bool    elm_win_iconified_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4255    /**
4256     * Set the layer of the window.
4257     *
4258     * What this means exactly will depend on the underlying engine used.
4259     *
4260     * In the case of X11 backed engines, the value in @p layer has the
4261     * following meanings:
4262     * @li < 3: The window will be placed below all others.
4263     * @li > 5: The window will be placed above all others.
4264     * @li other: The window will be placed in the default layer.
4265     *
4266     * @param obj The window object
4267     * @param layer The layer of the window
4268     */
4269    EAPI void         elm_win_layer_set(Evas_Object *obj, int layer) EINA_ARG_NONNULL(1);
4270    /**
4271     * Get the layer of the window.
4272     *
4273     * @param obj The window object
4274     * @return The layer of the window
4275     *
4276     * @see elm_win_layer_set()
4277     */
4278    EAPI int          elm_win_layer_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4279    /**
4280     * Set the rotation of the window.
4281     *
4282     * Most engines only work with multiples of 90.
4283     *
4284     * This function is used to set the orientation of the window @p obj to
4285     * match that of the screen. The window itself will be resized to adjust
4286     * to the new geometry of its contents. If you want to keep the window size,
4287     * see elm_win_rotation_with_resize_set().
4288     *
4289     * @param obj The window object
4290     * @param rotation The rotation of the window, in degrees (0-360),
4291     * counter-clockwise.
4292     */
4293    EAPI void         elm_win_rotation_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
4294    /**
4295     * Rotates the window and resizes it.
4296     *
4297     * Like elm_win_rotation_set(), but it also resizes the window's contents so
4298     * that they fit inside the current window geometry.
4299     *
4300     * @param obj The window object
4301     * @param layer The rotation of the window in degrees (0-360),
4302     * counter-clockwise.
4303     */
4304    EAPI void         elm_win_rotation_with_resize_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
4305    /**
4306     * Get the rotation of the window.
4307     *
4308     * @param obj The window object
4309     * @return The rotation of the window in degrees (0-360)
4310     *
4311     * @see elm_win_rotation_set()
4312     * @see elm_win_rotation_with_resize_set()
4313     */
4314    EAPI int          elm_win_rotation_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4315    /**
4316     * Set the sticky state of the window.
4317     *
4318     * Hints the Window Manager that the window in @p obj should be left fixed
4319     * at its position even when the virtual desktop it's on moves or changes.
4320     *
4321     * @param obj The window object
4322     * @param sticky If true, the window's sticky state is enabled
4323     */
4324    EAPI void         elm_win_sticky_set(Evas_Object *obj, Eina_Bool sticky) EINA_ARG_NONNULL(1);
4325    /**
4326     * Get the sticky state of the window.
4327     *
4328     * @param obj The window object
4329     * @return If true, the window's sticky state is enabled
4330     *
4331     * @see elm_win_sticky_set()
4332     */
4333    EAPI Eina_Bool    elm_win_sticky_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4334    /**
4335     * Set if this window is an illume conformant window
4336     *
4337     * @param obj The window object
4338     * @param conformant The conformant flag (1 = conformant, 0 = non-conformant)
4339     */
4340    EAPI void         elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant) EINA_ARG_NONNULL(1);
4341    /**
4342     * Get if this window is an illume conformant window
4343     *
4344     * @param obj The window object
4345     * @return A boolean if this window is illume conformant or not
4346     */
4347    EAPI Eina_Bool    elm_win_conformant_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4348    /**
4349     * Set a window to be an illume quickpanel window
4350     *
4351     * By default window objects are not quickpanel windows.
4352     *
4353     * @param obj The window object
4354     * @param quickpanel The quickpanel flag (1 = quickpanel, 0 = normal window)
4355     */
4356    EAPI void         elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel) EINA_ARG_NONNULL(1);
4357    /**
4358     * Get if this window is a quickpanel or not
4359     *
4360     * @param obj The window object
4361     * @return A boolean if this window is a quickpanel or not
4362     */
4363    EAPI Eina_Bool    elm_win_quickpanel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4364    /**
4365     * Set the major priority of a quickpanel window
4366     *
4367     * @param obj The window object
4368     * @param priority The major priority for this quickpanel
4369     */
4370    EAPI void         elm_win_quickpanel_priority_major_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
4371    /**
4372     * Get the major priority of a quickpanel window
4373     *
4374     * @param obj The window object
4375     * @return The major priority of this quickpanel
4376     */
4377    EAPI int          elm_win_quickpanel_priority_major_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4378    /**
4379     * Set the minor priority of a quickpanel window
4380     *
4381     * @param obj The window object
4382     * @param priority The minor priority for this quickpanel
4383     */
4384    EAPI void         elm_win_quickpanel_priority_minor_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
4385    /**
4386     * Get the minor priority of a quickpanel window
4387     *
4388     * @param obj The window object
4389     * @return The minor priority of this quickpanel
4390     */
4391    EAPI int          elm_win_quickpanel_priority_minor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4392    /**
4393     * Set which zone this quickpanel should appear in
4394     *
4395     * @param obj The window object
4396     * @param zone The requested zone for this quickpanel
4397     */
4398    EAPI void         elm_win_quickpanel_zone_set(Evas_Object *obj, int zone) EINA_ARG_NONNULL(1);
4399    /**
4400     * Get which zone this quickpanel should appear in
4401     *
4402     * @param obj The window object
4403     * @return The requested zone for this quickpanel
4404     */
4405    EAPI int          elm_win_quickpanel_zone_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4406    /**
4407     * Set the window to be skipped by keyboard focus
4408     *
4409     * This sets the window to be skipped by normal keyboard input. This means
4410     * a window manager will be asked to not focus this window as well as omit
4411     * it from things like the taskbar, pager, "alt-tab" list etc. etc.
4412     *
4413     * Call this and enable it on a window BEFORE you show it for the first time,
4414     * otherwise it may have no effect.
4415     *
4416     * Use this for windows that have only output information or might only be
4417     * interacted with by the mouse or fingers, and never for typing input.
4418     * Be careful that this may have side-effects like making the window
4419     * non-accessible in some cases unless the window is specially handled. Use
4420     * this with care.
4421     *
4422     * @param obj The window object
4423     * @param skip The skip flag state (EINA_TRUE if it is to be skipped)
4424     */
4425    EAPI void         elm_win_prop_focus_skip_set(Evas_Object *obj, Eina_Bool skip) EINA_ARG_NONNULL(1);
4426    /**
4427     * Send a command to the windowing environment
4428     *
4429     * This is intended to work in touchscreen or small screen device
4430     * environments where there is a more simplistic window management policy in
4431     * place. This uses the window object indicated to select which part of the
4432     * environment to control (the part that this window lives in), and provides
4433     * a command and an optional parameter structure (use NULL for this if not
4434     * needed).
4435     *
4436     * @param obj The window object that lives in the environment to control
4437     * @param command The command to send
4438     * @param params Optional parameters for the command
4439     */
4440    EAPI void         elm_win_illume_command_send(Evas_Object *obj, Elm_Illume_Command command, void *params) EINA_ARG_NONNULL(1);
4441    /**
4442     * Get the inlined image object handle
4443     *
4444     * When you create a window with elm_win_add() of type ELM_WIN_INLINED_IMAGE,
4445     * then the window is in fact an evas image object inlined in the parent
4446     * canvas. You can get this object (be careful to not manipulate it as it
4447     * is under control of elementary), and use it to do things like get pixel
4448     * data, save the image to a file, etc.
4449     *
4450     * @param obj The window object to get the inlined image from
4451     * @return The inlined image object, or NULL if none exists
4452     */
4453    EAPI Evas_Object *elm_win_inlined_image_object_get(Evas_Object *obj);
4454    /**
4455     * Determine whether a window has focus
4456     * @param obj The window to query
4457     * @return EINA_TRUE if the window exists and has focus, else EINA_FALSE
4458     */
4459    EAPI Eina_Bool    elm_win_focus_get(const Evas_Object *obj);
4460    /**
4461     * Set the enabled status for the focus highlight in a window
4462     *
4463     * This function will enable or disable the focus highlight only for the
4464     * given window, regardless of the global setting for it
4465     *
4466     * @param obj The window where to enable the highlight
4467     * @param enabled The enabled value for the highlight
4468     */
4469    EAPI void         elm_win_focus_highlight_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
4470    /**
4471     * Get the enabled value of the focus highlight for this window
4472     *
4473     * @param obj The window in which to check if the focus highlight is enabled
4474     *
4475     * @return EINA_TRUE if enabled, EINA_FALSE otherwise
4476     */
4477    EAPI Eina_Bool    elm_win_focus_highlight_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4478    /**
4479     * Set the style for the focus highlight on this window
4480     *
4481     * Sets the style to use for theming the highlight of focused objects on
4482     * the given window. If @p style is NULL, the default will be used.
4483     *
4484     * @param obj The window where to set the style
4485     * @param style The style to set
4486     */
4487    EAPI void         elm_win_focus_highlight_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
4488    /**
4489     * Get the style set for the focus highlight object
4490     *
4491     * Gets the style set for this windows highilght object, or NULL if none
4492     * is set.
4493     *
4494     * @param obj The window to retrieve the highlights style from
4495     *
4496     * @return The style set or NULL if none was. Default is used in that case.
4497     */
4498    EAPI const char  *elm_win_focus_highlight_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4499    /*...
4500     * ecore_x_icccm_hints_set -> accepts_focus (add to ecore_evas)
4501     * ecore_x_icccm_hints_set -> window_group (add to ecore_evas)
4502     * ecore_x_icccm_size_pos_hints_set -> request_pos (add to ecore_evas)
4503     * ecore_x_icccm_client_leader_set -> l (add to ecore_evas)
4504     * ecore_x_icccm_window_role_set -> role (add to ecore_evas)
4505     * ecore_x_icccm_transient_for_set -> forwin (add to ecore_evas)
4506     * ecore_x_netwm_window_type_set -> type (add to ecore_evas)
4507     *
4508     * (add to ecore_x) set netwm argb icon! (add to ecore_evas)
4509     * (blank mouse, private mouse obj, defaultmouse)
4510     *
4511     */
4512    /**
4513     * Sets the keyboard mode of the window.
4514     *
4515     * @param obj The window object
4516     * @param mode The mode to set, one of #Elm_Win_Keyboard_Mode
4517     */
4518    EAPI void                  elm_win_keyboard_mode_set(Evas_Object *obj, Elm_Win_Keyboard_Mode mode) EINA_ARG_NONNULL(1);
4519    /**
4520     * Gets the keyboard mode of the window.
4521     *
4522     * @param obj The window object
4523     * @return The mode, one of #Elm_Win_Keyboard_Mode
4524     */
4525    EAPI Elm_Win_Keyboard_Mode elm_win_keyboard_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4526    /**
4527     * Sets whether the window is a keyboard.
4528     *
4529     * @param obj The window object
4530     * @param is_keyboard If true, the window is a virtual keyboard
4531     */
4532    EAPI void                  elm_win_keyboard_win_set(Evas_Object *obj, Eina_Bool is_keyboard) EINA_ARG_NONNULL(1);
4533    /**
4534     * Gets whether the window is a keyboard.
4535     *
4536     * @param obj The window object
4537     * @return If the window is a virtual keyboard
4538     */
4539    EAPI Eina_Bool             elm_win_keyboard_win_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4540
4541    /**
4542     * Get the screen position of a window.
4543     *
4544     * @param obj The window object
4545     * @param x The int to store the x coordinate to
4546     * @param y The int to store the y coordinate to
4547     */
4548    EAPI void                  elm_win_screen_position_get(const Evas_Object *obj, int *x, int *y) EINA_ARG_NONNULL(1);
4549    /**
4550     * @}
4551     */
4552
4553    /**
4554     * @defgroup Inwin Inwin
4555     *
4556     * @image html img/widget/inwin/preview-00.png
4557     * @image latex img/widget/inwin/preview-00.eps
4558     * @image html img/widget/inwin/preview-01.png
4559     * @image latex img/widget/inwin/preview-01.eps
4560     * @image html img/widget/inwin/preview-02.png
4561     * @image latex img/widget/inwin/preview-02.eps
4562     *
4563     * An inwin is a window inside a window that is useful for a quick popup.
4564     * It does not hover.
4565     *
4566     * It works by creating an object that will occupy the entire window, so it
4567     * must be created using an @ref Win "elm_win" as parent only. The inwin
4568     * object can be hidden or restacked below every other object if it's
4569     * needed to show what's behind it without destroying it. If this is done,
4570     * the elm_win_inwin_activate() function can be used to bring it back to
4571     * full visibility again.
4572     *
4573     * There are three styles available in the default theme. These are:
4574     * @li default: The inwin is sized to take over most of the window it's
4575     * placed in.
4576     * @li minimal: The size of the inwin will be the minimum necessary to show
4577     * its contents.
4578     * @li minimal_vertical: Horizontally, the inwin takes as much space as
4579     * possible, but it's sized vertically the most it needs to fit its\
4580     * contents.
4581     *
4582     * Some examples of Inwin can be found in the following:
4583     * @li @ref inwin_example_01
4584     *
4585     * @{
4586     */
4587    /**
4588     * Adds an inwin to the current window
4589     *
4590     * The @p obj used as parent @b MUST be an @ref Win "Elementary Window".
4591     * Never call this function with anything other than the top-most window
4592     * as its parameter, unless you are fond of undefined behavior.
4593     *
4594     * After creating the object, the widget will set itself as resize object
4595     * for the window with elm_win_resize_object_add(), so when shown it will
4596     * appear to cover almost the entire window (how much of it depends on its
4597     * content and the style used). It must not be added into other container
4598     * objects and it needs not be moved or resized manually.
4599     *
4600     * @param parent The parent object
4601     * @return The new object or NULL if it cannot be created
4602     */
4603    EAPI Evas_Object          *elm_win_inwin_add(Evas_Object *obj) EINA_ARG_NONNULL(1);
4604    /**
4605     * Activates an inwin object, ensuring its visibility
4606     *
4607     * This function will make sure that the inwin @p obj is completely visible
4608     * by calling evas_object_show() and evas_object_raise() on it, to bring it
4609     * to the front. It also sets the keyboard focus to it, which will be passed
4610     * onto its content.
4611     *
4612     * The object's theme will also receive the signal "elm,action,show" with
4613     * source "elm".
4614     *
4615     * @param obj The inwin to activate
4616     */
4617    EAPI void                  elm_win_inwin_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
4618    /**
4619     * Set the content of an inwin object.
4620     *
4621     * Once the content object is set, a previously set one will be deleted.
4622     * If you want to keep that old content object, use the
4623     * elm_win_inwin_content_unset() function.
4624     *
4625     * @param obj The inwin object
4626     * @param content The object to set as content
4627     */
4628    EAPI void                  elm_win_inwin_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
4629    /**
4630     * Get the content of an inwin object.
4631     *
4632     * Return the content object which is set for this widget.
4633     *
4634     * The returned object is valid as long as the inwin is still alive and no
4635     * other content is set on it. Deleting the object will notify the inwin
4636     * about it and this one will be left empty.
4637     *
4638     * If you need to remove an inwin's content to be reused somewhere else,
4639     * see elm_win_inwin_content_unset().
4640     *
4641     * @param obj The inwin object
4642     * @return The content that is being used
4643     */
4644    EAPI Evas_Object          *elm_win_inwin_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4645    /**
4646     * Unset the content of an inwin object.
4647     *
4648     * Unparent and return the content object which was set for this widget.
4649     *
4650     * @param obj The inwin object
4651     * @return The content that was being used
4652     */
4653    EAPI Evas_Object          *elm_win_inwin_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4654    /**
4655     * @}
4656     */
4657    /* X specific calls - won't work on non-x engines (return 0) */
4658
4659    /**
4660     * Get the Ecore_X_Window of an Evas_Object
4661     *
4662     * @param obj The object
4663     *
4664     * @return The Ecore_X_Window of @p obj
4665     *
4666     * @ingroup Win
4667     */
4668    EAPI Ecore_X_Window elm_win_xwindow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4669
4670    /* smart callbacks called:
4671     * "delete,request" - the user requested to delete the window
4672     * "focus,in" - window got focus
4673     * "focus,out" - window lost focus
4674     * "moved" - window that holds the canvas was moved
4675     */
4676
4677    /**
4678     * @defgroup Bg Bg
4679     *
4680     * @image html img/widget/bg/preview-00.png
4681     * @image latex img/widget/bg/preview-00.eps
4682     *
4683     * @brief Background object, used for setting a solid color, image or Edje
4684     * group as background to a window or any container object.
4685     *
4686     * The bg object is used for setting a solid background to a window or
4687     * packing into any container object. It works just like an image, but has
4688     * some properties useful to a background, like setting it to tiled,
4689     * centered, scaled or stretched.
4690     * 
4691     * Default contents parts of the bg widget that you can use for are:
4692     * @li "overlay" - overlay of the bg
4693     *
4694     * Here is some sample code using it:
4695     * @li @ref bg_01_example_page
4696     * @li @ref bg_02_example_page
4697     * @li @ref bg_03_example_page
4698     */
4699
4700    /* bg */
4701    typedef enum _Elm_Bg_Option
4702      {
4703         ELM_BG_OPTION_CENTER,  /**< center the background */
4704         ELM_BG_OPTION_SCALE,   /**< scale the background retaining aspect ratio */
4705         ELM_BG_OPTION_STRETCH, /**< stretch the background to fill */
4706         ELM_BG_OPTION_TILE     /**< tile background at its original size */
4707      } Elm_Bg_Option;
4708
4709    /**
4710     * Add a new background to the parent
4711     *
4712     * @param parent The parent object
4713     * @return The new object or NULL if it cannot be created
4714     *
4715     * @ingroup Bg
4716     */
4717    EAPI Evas_Object  *elm_bg_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4718
4719    /**
4720     * Set the file (image or edje) used for the background
4721     *
4722     * @param obj The bg object
4723     * @param file The file path
4724     * @param group Optional key (group in Edje) within the file
4725     *
4726     * This sets the image file used in the background object. The image (or edje)
4727     * will be stretched (retaining aspect if its an image file) to completely fill
4728     * the bg object. This may mean some parts are not visible.
4729     *
4730     * @note  Once the image of @p obj is set, a previously set one will be deleted,
4731     * even if @p file is NULL.
4732     *
4733     * @ingroup Bg
4734     */
4735    EAPI void          elm_bg_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
4736
4737    /**
4738     * Get the file (image or edje) used for the background
4739     *
4740     * @param obj The bg object
4741     * @param file The file path
4742     * @param group Optional key (group in Edje) within the file
4743     *
4744     * @ingroup Bg
4745     */
4746    EAPI void          elm_bg_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
4747
4748    /**
4749     * Set the option used for the background image
4750     *
4751     * @param obj The bg object
4752     * @param option The desired background option (TILE, SCALE)
4753     *
4754     * This sets the option used for manipulating the display of the background
4755     * image. The image can be tiled or scaled.
4756     *
4757     * @ingroup Bg
4758     */
4759    EAPI void          elm_bg_option_set(Evas_Object *obj, Elm_Bg_Option option) EINA_ARG_NONNULL(1);
4760
4761    /**
4762     * Get the option used for the background image
4763     *
4764     * @param obj The bg object
4765     * @return The desired background option (CENTER, SCALE, STRETCH or TILE)
4766     *
4767     * @ingroup Bg
4768     */
4769    EAPI Elm_Bg_Option elm_bg_option_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4770    /**
4771     * Set the option used for the background color
4772     *
4773     * @param obj The bg object
4774     * @param r
4775     * @param g
4776     * @param b
4777     *
4778     * This sets the color used for the background rectangle. Its range goes
4779     * from 0 to 255.
4780     *
4781     * @ingroup Bg
4782     */
4783    EAPI void          elm_bg_color_set(Evas_Object *obj, int r, int g, int b) EINA_ARG_NONNULL(1);
4784    /**
4785     * Get the option used for the background color
4786     *
4787     * @param obj The bg object
4788     * @param r
4789     * @param g
4790     * @param b
4791     *
4792     * @ingroup Bg
4793     */
4794    EAPI void          elm_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b) EINA_ARG_NONNULL(1);
4795
4796    /**
4797     * Set the overlay object used for the background object.
4798     *
4799     * @param obj The bg object
4800     * @param overlay The overlay object
4801     *
4802     * This provides a way for elm_bg to have an 'overlay' that will be on top
4803     * of the bg. Once the over object is set, a previously set one will be
4804     * deleted, even if you set the new one to NULL. If you want to keep that
4805     * old content object, use the elm_bg_overlay_unset() function.
4806     *
4807     * @deprecated use elm_object_part_content_set() instead
4808     *
4809     * @ingroup Bg
4810     */
4811
4812    EINA_DEPRECATED EAPI void          elm_bg_overlay_set(Evas_Object *obj, Evas_Object *overlay) EINA_ARG_NONNULL(1);
4813
4814    /**
4815     * Get the overlay object used for the background object.
4816     *
4817     * @param obj The bg object
4818     * @return The content that is being used
4819     *
4820     * Return the content object which is set for this widget
4821     *
4822     * @deprecated use elm_object_part_content_get() instead
4823     *
4824     * @ingroup Bg
4825     */
4826    EINA_DEPRECATED EAPI Evas_Object  *elm_bg_overlay_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4827
4828    /**
4829     * Get the overlay object used for the background object.
4830     *
4831     * @param obj The bg object
4832     * @return The content that was being used
4833     *
4834     * Unparent and return the overlay object which was set for this widget
4835     *
4836     * @deprecated use elm_object_part_content_unset() instead
4837     *
4838     * @ingroup Bg
4839     */
4840    EINA_DEPRECATED EAPI Evas_Object  *elm_bg_overlay_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4841
4842    /**
4843     * Set the size of the pixmap representation of the image.
4844     *
4845     * This option just makes sense if an image is going to be set in the bg.
4846     *
4847     * @param obj The bg object
4848     * @param w The new width of the image pixmap representation.
4849     * @param h The new height of the image pixmap representation.
4850     *
4851     * This function sets a new size for pixmap representation of the given bg
4852     * image. It allows the image to be loaded already in the specified size,
4853     * reducing the memory usage and load time when loading a big image with load
4854     * size set to a smaller size.
4855     *
4856     * NOTE: this is just a hint, the real size of the pixmap may differ
4857     * depending on the type of image being loaded, being bigger than requested.
4858     *
4859     * @ingroup Bg
4860     */
4861    EAPI void          elm_bg_load_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
4862    /* smart callbacks called:
4863     */
4864
4865    /**
4866     * @defgroup Icon Icon
4867     *
4868     * @image html img/widget/icon/preview-00.png
4869     * @image latex img/widget/icon/preview-00.eps
4870     *
4871     * An object that provides standard icon images (delete, edit, arrows, etc.)
4872     * or a custom file (PNG, JPG, EDJE, etc.) used for an icon.
4873     *
4874     * The icon image requested can be in the elementary theme, or in the
4875     * freedesktop.org paths. It's possible to set the order of preference from
4876     * where the image will be used.
4877     *
4878     * This API is very similar to @ref Image, but with ready to use images.
4879     *
4880     * Default images provided by the theme are described below.
4881     *
4882     * The first list contains icons that were first intended to be used in
4883     * toolbars, but can be used in many other places too:
4884     * @li home
4885     * @li close
4886     * @li apps
4887     * @li arrow_up
4888     * @li arrow_down
4889     * @li arrow_left
4890     * @li arrow_right
4891     * @li chat
4892     * @li clock
4893     * @li delete
4894     * @li edit
4895     * @li refresh
4896     * @li folder
4897     * @li file
4898     *
4899     * Now some icons that were designed to be used in menus (but again, you can
4900     * use them anywhere else):
4901     * @li menu/home
4902     * @li menu/close
4903     * @li menu/apps
4904     * @li menu/arrow_up
4905     * @li menu/arrow_down
4906     * @li menu/arrow_left
4907     * @li menu/arrow_right
4908     * @li menu/chat
4909     * @li menu/clock
4910     * @li menu/delete
4911     * @li menu/edit
4912     * @li menu/refresh
4913     * @li menu/folder
4914     * @li menu/file
4915     *
4916     * And here we have some media player specific icons:
4917     * @li media_player/forward
4918     * @li media_player/info
4919     * @li media_player/next
4920     * @li media_player/pause
4921     * @li media_player/play
4922     * @li media_player/prev
4923     * @li media_player/rewind
4924     * @li media_player/stop
4925     *
4926     * Signals that you can add callbacks for are:
4927     *
4928     * "clicked" - This is called when a user has clicked the icon
4929     *
4930     * An example of usage for this API follows:
4931     * @li @ref tutorial_icon
4932     */
4933
4934    /**
4935     * @addtogroup Icon
4936     * @{
4937     */
4938
4939    typedef enum _Elm_Icon_Type
4940      {
4941         ELM_ICON_NONE,
4942         ELM_ICON_FILE,
4943         ELM_ICON_STANDARD
4944      } Elm_Icon_Type;
4945    /**
4946     * @enum _Elm_Icon_Lookup_Order
4947     * @typedef Elm_Icon_Lookup_Order
4948     *
4949     * Lookup order used by elm_icon_standard_set(). Should look for icons in the
4950     * theme, FDO paths, or both?
4951     *
4952     * @ingroup Icon
4953     */
4954    typedef enum _Elm_Icon_Lookup_Order
4955      {
4956         ELM_ICON_LOOKUP_FDO_THEME, /**< icon look up order: freedesktop, theme */
4957         ELM_ICON_LOOKUP_THEME_FDO, /**< icon look up order: theme, freedesktop */
4958         ELM_ICON_LOOKUP_FDO,       /**< icon look up order: freedesktop */
4959         ELM_ICON_LOOKUP_THEME      /**< icon look up order: theme */
4960      } Elm_Icon_Lookup_Order;
4961
4962    /**
4963     * Add a new icon object to the parent.
4964     *
4965     * @param parent The parent object
4966     * @return The new object or NULL if it cannot be created
4967     *
4968     * @see elm_icon_file_set()
4969     *
4970     * @ingroup Icon
4971     */
4972    EAPI Evas_Object          *elm_icon_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4973    /**
4974     * Set the file that will be used as icon.
4975     *
4976     * @param obj The icon object
4977     * @param file The path to file that will be used as icon image
4978     * @param group The group that the icon belongs to an edje file
4979     *
4980     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4981     *
4982     * @note The icon image set by this function can be changed by
4983     * elm_icon_standard_set().
4984     *
4985     * @see elm_icon_file_get()
4986     *
4987     * @ingroup Icon
4988     */
4989    EAPI Eina_Bool             elm_icon_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
4990    /**
4991     * Set a location in memory to be used as an icon
4992     *
4993     * @param obj The icon object
4994     * @param img The binary data that will be used as an image
4995     * @param size The size of binary data @p img
4996     * @param format Optional format of @p img to pass to the image loader
4997     * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
4998     *
4999     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5000     *
5001     * @note The icon image set by this function can be changed by
5002     * elm_icon_standard_set().
5003     *
5004     * @ingroup Icon
5005     */
5006    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);
5007    /**
5008     * Get the file that will be used as icon.
5009     *
5010     * @param obj The icon object
5011     * @param file The path to file that will be used as the icon image
5012     * @param group The group that the icon belongs to, in edje file
5013     *
5014     * @see elm_icon_file_set()
5015     *
5016     * @ingroup Icon
5017     */
5018    EAPI void                  elm_icon_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
5019    EAPI void                  elm_icon_thumb_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
5020    /**
5021     * Set the icon by icon standards names.
5022     *
5023     * @param obj The icon object
5024     * @param name The icon name
5025     *
5026     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5027     *
5028     * For example, freedesktop.org defines standard icon names such as "home",
5029     * "network", etc. There can be different icon sets to match those icon
5030     * keys. The @p name given as parameter is one of these "keys", and will be
5031     * used to look in the freedesktop.org paths and elementary theme. One can
5032     * change the lookup order with elm_icon_order_lookup_set().
5033     *
5034     * If name is not found in any of the expected locations and it is the
5035     * absolute path of an image file, this image will be used.
5036     *
5037     * @note The icon image set by this function can be changed by
5038     * elm_icon_file_set().
5039     *
5040     * @see elm_icon_standard_get()
5041     * @see elm_icon_file_set()
5042     *
5043     * @ingroup Icon
5044     */
5045    EAPI Eina_Bool             elm_icon_standard_set(Evas_Object *obj, const char *name) EINA_ARG_NONNULL(1);
5046    /**
5047     * Get the icon name set by icon standard names.
5048     *
5049     * @param obj The icon object
5050     * @return The icon name
5051     *
5052     * If the icon image was set using elm_icon_file_set() instead of
5053     * elm_icon_standard_set(), then this function will return @c NULL.
5054     *
5055     * @see elm_icon_standard_set()
5056     *
5057     * @ingroup Icon
5058     */
5059    EAPI const char           *elm_icon_standard_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5060    /**
5061     * Set the smooth scaling for an icon object.
5062     *
5063     * @param obj The icon object
5064     * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
5065     * otherwise. Default is @c EINA_TRUE.
5066     *
5067     * Set the scaling algorithm to be used when scaling the icon image. Smooth
5068     * scaling provides a better resulting image, but is slower.
5069     *
5070     * The smooth scaling should be disabled when making animations that change
5071     * the icon size, since they will be faster. Animations that don't require
5072     * resizing of the icon can keep the smooth scaling enabled (even if the icon
5073     * is already scaled, since the scaled icon image will be cached).
5074     *
5075     * @see elm_icon_smooth_get()
5076     *
5077     * @ingroup Icon
5078     */
5079    EAPI void                  elm_icon_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
5080    /**
5081     * Get whether smooth scaling is enabled for an icon object.
5082     *
5083     * @param obj The icon object
5084     * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
5085     *
5086     * @see elm_icon_smooth_set()
5087     *
5088     * @ingroup Icon
5089     */
5090    EAPI Eina_Bool             elm_icon_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5091    /**
5092     * Disable scaling of this object.
5093     *
5094     * @param obj The icon object.
5095     * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
5096     * otherwise. Default is @c EINA_FALSE.
5097     *
5098     * This function disables scaling of the icon object through the function
5099     * elm_object_scale_set(). However, this does not affect the object
5100     * size/resize in any way. For that effect, take a look at
5101     * elm_icon_scale_set().
5102     *
5103     * @see elm_icon_no_scale_get()
5104     * @see elm_icon_scale_set()
5105     * @see elm_object_scale_set()
5106     *
5107     * @ingroup Icon
5108     */
5109    EAPI void                  elm_icon_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
5110    /**
5111     * Get whether scaling is disabled on the object.
5112     *
5113     * @param obj The icon object
5114     * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
5115     *
5116     * @see elm_icon_no_scale_set()
5117     *
5118     * @ingroup Icon
5119     */
5120    EAPI Eina_Bool             elm_icon_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5121    /**
5122     * Set if the object is (up/down) resizable.
5123     *
5124     * @param obj The icon object
5125     * @param scale_up A bool to set if the object is resizable up. Default is
5126     * @c EINA_TRUE.
5127     * @param scale_down A bool to set if the object is resizable down. Default
5128     * is @c EINA_TRUE.
5129     *
5130     * This function limits the icon object resize ability. If @p scale_up is set to
5131     * @c EINA_FALSE, the object can't have its height or width resized to a value
5132     * higher than the original icon size. Same is valid for @p scale_down.
5133     *
5134     * @see elm_icon_scale_get()
5135     *
5136     * @ingroup Icon
5137     */
5138    EAPI void                  elm_icon_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
5139    /**
5140     * Get if the object is (up/down) resizable.
5141     *
5142     * @param obj The icon object
5143     * @param scale_up A bool to set if the object is resizable up
5144     * @param scale_down A bool to set if the object is resizable down
5145     *
5146     * @see elm_icon_scale_set()
5147     *
5148     * @ingroup Icon
5149     */
5150    EAPI void                  elm_icon_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
5151    /**
5152     * Get the object's image size
5153     *
5154     * @param obj The icon object
5155     * @param w A pointer to store the width in
5156     * @param h A pointer to store the height in
5157     *
5158     * @ingroup Icon
5159     */
5160    EAPI void                  elm_icon_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
5161    /**
5162     * Set if the icon fill the entire object area.
5163     *
5164     * @param obj The icon object
5165     * @param fill_outside @c EINA_TRUE if the object is filled outside,
5166     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5167     *
5168     * When the icon object is resized to a different aspect ratio from the
5169     * original icon image, the icon image will still keep its aspect. This flag
5170     * tells how the image should fill the object's area. They are: keep the
5171     * entire icon inside the limits of height and width of the object (@p
5172     * fill_outside is @c EINA_FALSE) or let the extra width or height go outside
5173     * of the object, and the icon will fill the entire object (@p fill_outside
5174     * is @c EINA_TRUE).
5175     *
5176     * @note Unlike @ref Image, there's no option in icon to set the aspect ratio
5177     * retain property to false. Thus, the icon image will always keep its
5178     * original aspect ratio.
5179     *
5180     * @see elm_icon_fill_outside_get()
5181     * @see elm_image_fill_outside_set()
5182     *
5183     * @ingroup Icon
5184     */
5185    EAPI void                  elm_icon_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
5186    /**
5187     * Get if the object is filled outside.
5188     *
5189     * @param obj The icon object
5190     * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
5191     *
5192     * @see elm_icon_fill_outside_set()
5193     *
5194     * @ingroup Icon
5195     */
5196    EAPI Eina_Bool             elm_icon_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5197    /**
5198     * Set the prescale size for the icon.
5199     *
5200     * @param obj The icon object
5201     * @param size The prescale size. This value is used for both width and
5202     * height.
5203     *
5204     * This function sets a new size for pixmap representation of the given
5205     * icon. It allows the icon to be loaded already in the specified size,
5206     * reducing the memory usage and load time when loading a big icon with load
5207     * size set to a smaller size.
5208     *
5209     * It's equivalent to the elm_bg_load_size_set() function for bg.
5210     *
5211     * @note this is just a hint, the real size of the pixmap may differ
5212     * depending on the type of icon being loaded, being bigger than requested.
5213     *
5214     * @see elm_icon_prescale_get()
5215     * @see elm_bg_load_size_set()
5216     *
5217     * @ingroup Icon
5218     */
5219    EAPI void                  elm_icon_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
5220    /**
5221     * Get the prescale size for the icon.
5222     *
5223     * @param obj The icon object
5224     * @return The prescale size
5225     *
5226     * @see elm_icon_prescale_set()
5227     *
5228     * @ingroup Icon
5229     */
5230    EAPI int                   elm_icon_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5231    /**
5232     * Gets the image object of the icon. DO NOT MODIFY THIS.
5233     *
5234     * @param obj The icon object
5235     * @return The internal icon object
5236     *
5237     * @ingroup Icon
5238     */
5239    EAPI Evas_Object          *elm_icon_object_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
5240    /**
5241     * Sets the icon lookup order used by elm_icon_standard_set().
5242     *
5243     * @param obj The icon object
5244     * @param order The icon lookup order (can be one of
5245     * ELM_ICON_LOOKUP_FDO_THEME, ELM_ICON_LOOKUP_THEME_FDO, ELM_ICON_LOOKUP_FDO
5246     * or ELM_ICON_LOOKUP_THEME)
5247     *
5248     * @see elm_icon_order_lookup_get()
5249     * @see Elm_Icon_Lookup_Order
5250     *
5251     * @ingroup Icon
5252     */
5253    EAPI void                  elm_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
5254    /**
5255     * Gets the icon lookup order.
5256     *
5257     * @param obj The icon object
5258     * @return The icon lookup order
5259     *
5260     * @see elm_icon_order_lookup_set()
5261     * @see Elm_Icon_Lookup_Order
5262     *
5263     * @ingroup Icon
5264     */
5265    EAPI Elm_Icon_Lookup_Order elm_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5266    /**
5267     * Enable or disable preloading of the icon
5268     *
5269     * @param obj The icon object
5270     * @param disable If EINA_TRUE, preloading will be disabled
5271     * @ingroup Icon
5272     */
5273    EAPI void                  elm_icon_preload_set(Evas_Object *obj, Eina_Bool disable) EINA_ARG_NONNULL(1);
5274    /**
5275     * Get if the icon supports animation or not.
5276     *
5277     * @param obj The icon object
5278     * @return @c EINA_TRUE if the icon supports animation,
5279     *         @c EINA_FALSE otherwise.
5280     *
5281     * Return if this elm icon's image can be animated. Currently Evas only
5282     * supports gif animation. If the return value is EINA_FALSE, other
5283     * elm_icon_animated_XXX APIs won't work.
5284     * @ingroup Icon
5285     */
5286    EAPI Eina_Bool           elm_icon_animated_available_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5287    /**
5288     * Set animation mode of the icon.
5289     *
5290     * @param obj The icon object
5291     * @param anim @c EINA_TRUE if the object do animation job,
5292     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5293     *
5294     * Since the default animation mode is set to EINA_FALSE, 
5295     * the icon is shown without animation.
5296     * This might be desirable when the application developer wants to show
5297     * a snapshot of the animated icon.
5298     * Set it to EINA_TRUE when the icon needs to be animated.
5299     * @ingroup Icon
5300     */
5301    EAPI void                elm_icon_animated_set(Evas_Object *obj, Eina_Bool animated) EINA_ARG_NONNULL(1);
5302    /**
5303     * Get animation mode of the icon.
5304     *
5305     * @param obj The icon object
5306     * @return The animation mode of the icon object
5307     * @see elm_icon_animated_set
5308     * @ingroup Icon
5309     */
5310    EAPI Eina_Bool           elm_icon_animated_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5311    /**
5312     * Set animation play mode of the icon.
5313     *
5314     * @param obj The icon object
5315     * @param play @c EINA_TRUE the object play animation images,
5316     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5317     *
5318     * To play elm icon's animation, set play to EINA_TURE.
5319     * For example, you make gif player using this set/get API and click event.
5320     *
5321     * 1. Click event occurs
5322     * 2. Check play flag using elm_icon_animaged_play_get
5323     * 3. If elm icon was playing, set play to EINA_FALSE.
5324     *    Then animation will be stopped and vice versa
5325     * @ingroup Icon
5326     */
5327    EAPI void                elm_icon_animated_play_set(Evas_Object *obj, Eina_Bool play) EINA_ARG_NONNULL(1);
5328    /**
5329     * Get animation play mode of the icon.
5330     *
5331     * @param obj The icon object
5332     * @return The play mode of the icon object
5333     *
5334     * @see elm_icon_animated_play_get
5335     * @ingroup Icon
5336     */
5337    EAPI Eina_Bool           elm_icon_animated_play_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5338
5339    /**
5340     * @}
5341     */
5342
5343    /**
5344     * @defgroup Image Image
5345     *
5346     * @image html img/widget/image/preview-00.png
5347     * @image latex img/widget/image/preview-00.eps
5348
5349     *
5350     * An object that allows one to load an image file to it. It can be used
5351     * anywhere like any other elementary widget.
5352     *
5353     * This widget provides most of the functionality provided from @ref Bg or @ref
5354     * Icon, but with a slightly different API (use the one that fits better your
5355     * needs).
5356     *
5357     * The features not provided by those two other image widgets are:
5358     * @li allowing to get the basic @c Evas_Object with elm_image_object_get();
5359     * @li change the object orientation with elm_image_orient_set();
5360     * @li and turning the image editable with elm_image_editable_set().
5361     *
5362     * Signals that you can add callbacks for are:
5363     *
5364     * @li @c "clicked" - This is called when a user has clicked the image
5365     *
5366     * An example of usage for this API follows:
5367     * @li @ref tutorial_image
5368     */
5369
5370    /**
5371     * @addtogroup Image
5372     * @{
5373     */
5374
5375    /**
5376     * @enum _Elm_Image_Orient
5377     * @typedef Elm_Image_Orient
5378     *
5379     * Possible orientation options for elm_image_orient_set().
5380     *
5381     * @image html elm_image_orient_set.png
5382     * @image latex elm_image_orient_set.eps width=\textwidth
5383     *
5384     * @ingroup Image
5385     */
5386    typedef enum _Elm_Image_Orient
5387      {
5388         ELM_IMAGE_ORIENT_NONE, /**< no orientation change */
5389         ELM_IMAGE_ROTATE_90_CW, /**< rotate 90 degrees clockwise */
5390         ELM_IMAGE_ROTATE_180_CW, /**< rotate 180 degrees clockwise */
5391         ELM_IMAGE_ROTATE_90_CCW, /**< rotate 90 degrees counter-clockwise (i.e. 270 degrees clockwise) */
5392         ELM_IMAGE_FLIP_HORIZONTAL, /**< flip image horizontally */
5393         ELM_IMAGE_FLIP_VERTICAL, /**< flip image vertically */
5394         ELM_IMAGE_FLIP_TRANSPOSE, /**< flip the image along the y = (side - x) line*/
5395         ELM_IMAGE_FLIP_TRANSVERSE /**< flip the image along the y = x line */
5396      } Elm_Image_Orient;
5397
5398    /**
5399     * Add a new image to the parent.
5400     *
5401     * @param parent The parent object
5402     * @return The new object or NULL if it cannot be created
5403     *
5404     * @see elm_image_file_set()
5405     *
5406     * @ingroup Image
5407     */
5408    EAPI Evas_Object     *elm_image_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5409    /**
5410     * Set the file that will be used as image.
5411     *
5412     * @param obj The image object
5413     * @param file The path to file that will be used as image
5414     * @param group The group that the image belongs in edje file (if it's an
5415     * edje image)
5416     *
5417     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5418     *
5419     * @see elm_image_file_get()
5420     *
5421     * @ingroup Image
5422     */
5423    EAPI Eina_Bool        elm_image_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
5424    /**
5425     * Get the file that will be used as image.
5426     *
5427     * @param obj The image object
5428     * @param file The path to file
5429     * @param group The group that the image belongs in edje file
5430     *
5431     * @see elm_image_file_set()
5432     *
5433     * @ingroup Image
5434     */
5435    EAPI void             elm_image_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
5436    /**
5437     * Set the smooth effect for an image.
5438     *
5439     * @param obj The image object
5440     * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
5441     * otherwise. Default is @c EINA_TRUE.
5442     *
5443     * Set the scaling algorithm to be used when scaling the image. Smooth
5444     * scaling provides a better resulting image, but is slower.
5445     *
5446     * The smooth scaling should be disabled when making animations that change
5447     * the image size, since it will be faster. Animations that don't require
5448     * resizing of the image can keep the smooth scaling enabled (even if the
5449     * image is already scaled, since the scaled image will be cached).
5450     *
5451     * @see elm_image_smooth_get()
5452     *
5453     * @ingroup Image
5454     */
5455    EAPI void             elm_image_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
5456    /**
5457     * Get the smooth effect for an image.
5458     *
5459     * @param obj The image object
5460     * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
5461     *
5462     * @see elm_image_smooth_get()
5463     *
5464     * @ingroup Image
5465     */
5466    EAPI Eina_Bool        elm_image_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5467
5468    /**
5469     * Gets the current size of the image.
5470     *
5471     * @param obj The image object.
5472     * @param w Pointer to store width, or NULL.
5473     * @param h Pointer to store height, or NULL.
5474     *
5475     * This is the real size of the image, not the size of the object.
5476     *
5477     * On error, neither w or h will be written.
5478     *
5479     * @ingroup Image
5480     */
5481    EAPI void             elm_image_object_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
5482    /**
5483     * Disable scaling of this object.
5484     *
5485     * @param obj The image object.
5486     * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
5487     * otherwise. Default is @c EINA_FALSE.
5488     *
5489     * This function disables scaling of the elm_image widget through the
5490     * function elm_object_scale_set(). However, this does not affect the widget
5491     * size/resize in any way. For that effect, take a look at
5492     * elm_image_scale_set().
5493     *
5494     * @see elm_image_no_scale_get()
5495     * @see elm_image_scale_set()
5496     * @see elm_object_scale_set()
5497     *
5498     * @ingroup Image
5499     */
5500    EAPI void             elm_image_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
5501    /**
5502     * Get whether scaling is disabled on the object.
5503     *
5504     * @param obj The image object
5505     * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
5506     *
5507     * @see elm_image_no_scale_set()
5508     *
5509     * @ingroup Image
5510     */
5511    EAPI Eina_Bool        elm_image_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5512    /**
5513     * Set if the object is (up/down) resizable.
5514     *
5515     * @param obj The image object
5516     * @param scale_up A bool to set if the object is resizable up. Default is
5517     * @c EINA_TRUE.
5518     * @param scale_down A bool to set if the object is resizable down. Default
5519     * is @c EINA_TRUE.
5520     *
5521     * This function limits the image resize ability. If @p scale_up is set to
5522     * @c EINA_FALSE, the object can't have its height or width resized to a value
5523     * higher than the original image size. Same is valid for @p scale_down.
5524     *
5525     * @see elm_image_scale_get()
5526     *
5527     * @ingroup Image
5528     */
5529    EAPI void             elm_image_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
5530    /**
5531     * Get if the object is (up/down) resizable.
5532     *
5533     * @param obj The image object
5534     * @param scale_up A bool to set if the object is resizable up
5535     * @param scale_down A bool to set if the object is resizable down
5536     *
5537     * @see elm_image_scale_set()
5538     *
5539     * @ingroup Image
5540     */
5541    EAPI void             elm_image_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
5542    /**
5543     * Set if the image fills the entire object area, when keeping the aspect ratio.
5544     *
5545     * @param obj The image object
5546     * @param fill_outside @c EINA_TRUE if the object is filled outside,
5547     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5548     *
5549     * When the image should keep its aspect ratio even if resized to another
5550     * aspect ratio, there are two possibilities to resize it: keep the entire
5551     * image inside the limits of height and width of the object (@p fill_outside
5552     * is @c EINA_FALSE) or let the extra width or height go outside of the object,
5553     * and the image will fill the entire object (@p fill_outside is @c EINA_TRUE).
5554     *
5555     * @note This option will have no effect if
5556     * elm_image_aspect_ratio_retained_set() is set to @c EINA_FALSE.
5557     *
5558     * @see elm_image_fill_outside_get()
5559     * @see elm_image_aspect_ratio_retained_set()
5560     *
5561     * @ingroup Image
5562     */
5563    EAPI void             elm_image_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
5564    /**
5565     * Get if the object is filled outside
5566     *
5567     * @param obj The image object
5568     * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
5569     *
5570     * @see elm_image_fill_outside_set()
5571     *
5572     * @ingroup Image
5573     */
5574    EAPI Eina_Bool        elm_image_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5575    /**
5576     * Set the prescale size for the image
5577     *
5578     * @param obj The image object
5579     * @param size The prescale size. This value is used for both width and
5580     * height.
5581     *
5582     * This function sets a new size for pixmap representation of the given
5583     * image. It allows the image to be loaded already in the specified size,
5584     * reducing the memory usage and load time when loading a big image with load
5585     * size set to a smaller size.
5586     *
5587     * It's equivalent to the elm_bg_load_size_set() function for bg.
5588     *
5589     * @note this is just a hint, the real size of the pixmap may differ
5590     * depending on the type of image being loaded, being bigger than requested.
5591     *
5592     * @see elm_image_prescale_get()
5593     * @see elm_bg_load_size_set()
5594     *
5595     * @ingroup Image
5596     */
5597    EAPI void             elm_image_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
5598    /**
5599     * Get the prescale size for the image
5600     *
5601     * @param obj The image object
5602     * @return The prescale size
5603     *
5604     * @see elm_image_prescale_set()
5605     *
5606     * @ingroup Image
5607     */
5608    EAPI int              elm_image_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5609    /**
5610     * Set the image orientation.
5611     *
5612     * @param obj The image object
5613     * @param orient The image orientation @ref Elm_Image_Orient
5614     *  Default is #ELM_IMAGE_ORIENT_NONE.
5615     *
5616     * This function allows to rotate or flip the given image.
5617     *
5618     * @see elm_image_orient_get()
5619     * @see @ref Elm_Image_Orient
5620     *
5621     * @ingroup Image
5622     */
5623    EAPI void             elm_image_orient_set(Evas_Object *obj, Elm_Image_Orient orient) EINA_ARG_NONNULL(1);
5624    /**
5625     * Get the image orientation.
5626     *
5627     * @param obj The image object
5628     * @return The image orientation @ref Elm_Image_Orient
5629     *
5630     * @see elm_image_orient_set()
5631     * @see @ref Elm_Image_Orient
5632     *
5633     * @ingroup Image
5634     */
5635    EAPI Elm_Image_Orient elm_image_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5636    /**
5637     * Make the image 'editable'.
5638     *
5639     * @param obj Image object.
5640     * @param set Turn on or off editability. Default is @c EINA_FALSE.
5641     *
5642     * This means the image is a valid drag target for drag and drop, and can be
5643     * cut or pasted too.
5644     *
5645     * @ingroup Image
5646     */
5647    EAPI void             elm_image_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
5648    /**
5649     * Check if the image 'editable'.
5650     *
5651     * @param obj Image object.
5652     * @return Editability.
5653     *
5654     * A return value of EINA_TRUE means the image is a valid drag target
5655     * for drag and drop, and can be cut or pasted too.
5656     *
5657     * @ingroup Image
5658     */
5659    EAPI Eina_Bool        elm_image_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5660    /**
5661     * Get the basic Evas_Image object from this object (widget).
5662     *
5663     * @param obj The image object to get the inlined image from
5664     * @return The inlined image object, or NULL if none exists
5665     *
5666     * This function allows one to get the underlying @c Evas_Object of type
5667     * Image from this elementary widget. It can be useful to do things like get
5668     * the pixel data, save the image to a file, etc.
5669     *
5670     * @note Be careful to not manipulate it, as it is under control of
5671     * elementary.
5672     *
5673     * @ingroup Image
5674     */
5675    EAPI Evas_Object     *elm_image_object_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5676    /**
5677     * Set whether the original aspect ratio of the image should be kept on resize.
5678     *
5679     * @param obj The image object.
5680     * @param retained @c EINA_TRUE if the image should retain the aspect,
5681     * @c EINA_FALSE otherwise.
5682     *
5683     * The original aspect ratio (width / height) of the image is usually
5684     * distorted to match the object's size. Enabling this option will retain
5685     * this original aspect, and the way that the image is fit into the object's
5686     * area depends on the option set by elm_image_fill_outside_set().
5687     *
5688     * @see elm_image_aspect_ratio_retained_get()
5689     * @see elm_image_fill_outside_set()
5690     *
5691     * @ingroup Image
5692     */
5693    EAPI void             elm_image_aspect_ratio_retained_set(Evas_Object *obj, Eina_Bool retained) EINA_ARG_NONNULL(1);
5694    /**
5695     * Get if the object retains the original aspect ratio.
5696     *
5697     * @param obj The image object.
5698     * @return @c EINA_TRUE if the object keeps the original aspect, @c EINA_FALSE
5699     * otherwise.
5700     *
5701     * @ingroup Image
5702     */
5703    EAPI Eina_Bool        elm_image_aspect_ratio_retained_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5704
5705    /**
5706     * @}
5707     */
5708
5709    /* box */
5710    /**
5711     * @defgroup Box Box
5712     *
5713     * @image html img/widget/box/preview-00.png
5714     * @image latex img/widget/box/preview-00.eps width=\textwidth
5715     *
5716     * @image html img/box.png
5717     * @image latex img/box.eps width=\textwidth
5718     *
5719     * A box arranges objects in a linear fashion, governed by a layout function
5720     * that defines the details of this arrangement.
5721     *
5722     * By default, the box will use an internal function to set the layout to
5723     * a single row, either vertical or horizontal. This layout is affected
5724     * by a number of parameters, such as the homogeneous flag set by
5725     * elm_box_homogeneous_set(), the values given by elm_box_padding_set() and
5726     * elm_box_align_set() and the hints set to each object in the box.
5727     *
5728     * For this default layout, it's possible to change the orientation with
5729     * elm_box_horizontal_set(). The box will start in the vertical orientation,
5730     * placing its elements ordered from top to bottom. When horizontal is set,
5731     * the order will go from left to right. If the box is set to be
5732     * homogeneous, every object in it will be assigned the same space, that
5733     * of the largest object. Padding can be used to set some spacing between
5734     * the cell given to each object. The alignment of the box, set with
5735     * elm_box_align_set(), determines how the bounding box of all the elements
5736     * will be placed within the space given to the box widget itself.
5737     *
5738     * The size hints of each object also affect how they are placed and sized
5739     * within the box. evas_object_size_hint_min_set() will give the minimum
5740     * size the object can have, and the box will use it as the basis for all
5741     * latter calculations. Elementary widgets set their own minimum size as
5742     * needed, so there's rarely any need to use it manually.
5743     *
5744     * evas_object_size_hint_weight_set(), when not in homogeneous mode, is
5745     * used to tell whether the object will be allocated the minimum size it
5746     * needs or if the space given to it should be expanded. It's important
5747     * to realize that expanding the size given to the object is not the same
5748     * thing as resizing the object. It could very well end being a small
5749     * widget floating in a much larger empty space. If not set, the weight
5750     * for objects will normally be 0.0 for both axis, meaning the widget will
5751     * not be expanded. To take as much space possible, set the weight to
5752     * EVAS_HINT_EXPAND (defined to 1.0) for the desired axis to expand.
5753     *
5754     * Besides how much space each object is allocated, it's possible to control
5755     * how the widget will be placed within that space using
5756     * evas_object_size_hint_align_set(). By default, this value will be 0.5
5757     * for both axis, meaning the object will be centered, but any value from
5758     * 0.0 (left or top, for the @c x and @c y axis, respectively) to 1.0
5759     * (right or bottom) can be used. The special value EVAS_HINT_FILL, which
5760     * is -1.0, means the object will be resized to fill the entire space it
5761     * was allocated.
5762     *
5763     * In addition, customized functions to define the layout can be set, which
5764     * allow the application developer to organize the objects within the box
5765     * in any number of ways.
5766     *
5767     * The special elm_box_layout_transition() function can be used
5768     * to switch from one layout to another, animating the motion of the
5769     * children of the box.
5770     *
5771     * @note Objects should not be added to box objects using _add() calls.
5772     *
5773     * Some examples on how to use boxes follow:
5774     * @li @ref box_example_01
5775     * @li @ref box_example_02
5776     *
5777     * @{
5778     */
5779    /**
5780     * @typedef Elm_Box_Transition
5781     *
5782     * Opaque handler containing the parameters to perform an animated
5783     * transition of the layout the box uses.
5784     *
5785     * @see elm_box_transition_new()
5786     * @see elm_box_layout_set()
5787     * @see elm_box_layout_transition()
5788     */
5789    typedef struct _Elm_Box_Transition Elm_Box_Transition;
5790
5791    /**
5792     * Add a new box to the parent
5793     *
5794     * By default, the box will be in vertical mode and non-homogeneous.
5795     *
5796     * @param parent The parent object
5797     * @return The new object or NULL if it cannot be created
5798     */
5799    EAPI Evas_Object        *elm_box_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5800    /**
5801     * Set the horizontal orientation
5802     *
5803     * By default, box object arranges their contents vertically from top to
5804     * bottom.
5805     * By calling this function with @p horizontal as EINA_TRUE, the box will
5806     * become horizontal, arranging contents from left to right.
5807     *
5808     * @note This flag is ignored if a custom layout function is set.
5809     *
5810     * @param obj The box object
5811     * @param horizontal The horizontal flag (EINA_TRUE = horizontal,
5812     * EINA_FALSE = vertical)
5813     */
5814    EAPI void                elm_box_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
5815    /**
5816     * Get the horizontal orientation
5817     *
5818     * @param obj The box object
5819     * @return EINA_TRUE if the box is set to horizontal mode, EINA_FALSE otherwise
5820     */
5821    EAPI Eina_Bool           elm_box_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5822    /**
5823     * Set the box to arrange its children homogeneously
5824     *
5825     * If enabled, homogeneous layout makes all items the same size, according
5826     * to the size of the largest of its children.
5827     *
5828     * @note This flag is ignored if a custom layout function is set.
5829     *
5830     * @param obj The box object
5831     * @param homogeneous The homogeneous flag
5832     */
5833    EAPI void                elm_box_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
5834    /**
5835     * Get whether the box is using homogeneous mode or not
5836     *
5837     * @param obj The box object
5838     * @return EINA_TRUE if it's homogeneous, EINA_FALSE otherwise
5839     */
5840    EAPI Eina_Bool           elm_box_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5841    EINA_DEPRECATED EAPI void elm_box_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
5842    EINA_DEPRECATED EAPI Eina_Bool elm_box_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5843    /**
5844     * Add an object to the beginning of the pack list
5845     *
5846     * Pack @p subobj into the box @p obj, placing it first in the list of
5847     * children objects. The actual position the object will get on screen
5848     * depends on the layout used. If no custom layout is set, it will be at
5849     * the top or left, depending if the box is vertical or horizontal,
5850     * respectively.
5851     *
5852     * @param obj The box object
5853     * @param subobj The object to add to the box
5854     *
5855     * @see elm_box_pack_end()
5856     * @see elm_box_pack_before()
5857     * @see elm_box_pack_after()
5858     * @see elm_box_unpack()
5859     * @see elm_box_unpack_all()
5860     * @see elm_box_clear()
5861     */
5862    EAPI void                elm_box_pack_start(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5863    /**
5864     * Add an object at the end of the pack list
5865     *
5866     * Pack @p subobj into the box @p obj, placing it last in the list of
5867     * children objects. The actual position the object will get on screen
5868     * depends on the layout used. If no custom layout is set, it will be at
5869     * the bottom or right, depending if the box is vertical or horizontal,
5870     * respectively.
5871     *
5872     * @param obj The box object
5873     * @param subobj The object to add to the box
5874     *
5875     * @see elm_box_pack_start()
5876     * @see elm_box_pack_before()
5877     * @see elm_box_pack_after()
5878     * @see elm_box_unpack()
5879     * @see elm_box_unpack_all()
5880     * @see elm_box_clear()
5881     */
5882    EAPI void                elm_box_pack_end(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5883    /**
5884     * Adds an object to the box before the indicated object
5885     *
5886     * This will add the @p subobj to the box indicated before the object
5887     * indicated with @p before. If @p before is not already in the box, results
5888     * are undefined. Before means either to the left of the indicated object or
5889     * above it depending on orientation.
5890     *
5891     * @param obj The box object
5892     * @param subobj The object to add to the box
5893     * @param before The object before which to add it
5894     *
5895     * @see elm_box_pack_start()
5896     * @see elm_box_pack_end()
5897     * @see elm_box_pack_after()
5898     * @see elm_box_unpack()
5899     * @see elm_box_unpack_all()
5900     * @see elm_box_clear()
5901     */
5902    EAPI void                elm_box_pack_before(Evas_Object *obj, Evas_Object *subobj, Evas_Object *before) EINA_ARG_NONNULL(1);
5903    /**
5904     * Adds an object to the box after the indicated object
5905     *
5906     * This will add the @p subobj to the box indicated after the object
5907     * indicated with @p after. If @p after is not already in the box, results
5908     * are undefined. After means either to the right of the indicated object or
5909     * below it depending on orientation.
5910     *
5911     * @param obj The box object
5912     * @param subobj The object to add to the box
5913     * @param after The object after which to add it
5914     *
5915     * @see elm_box_pack_start()
5916     * @see elm_box_pack_end()
5917     * @see elm_box_pack_before()
5918     * @see elm_box_unpack()
5919     * @see elm_box_unpack_all()
5920     * @see elm_box_clear()
5921     */
5922    EAPI void                elm_box_pack_after(Evas_Object *obj, Evas_Object *subobj, Evas_Object *after) EINA_ARG_NONNULL(1);
5923    /**
5924     * Clear the box of all children
5925     *
5926     * Remove all the elements contained by the box, deleting the respective
5927     * objects.
5928     *
5929     * @param obj The box object
5930     *
5931     * @see elm_box_unpack()
5932     * @see elm_box_unpack_all()
5933     */
5934    EAPI void                elm_box_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
5935    /**
5936     * Unpack a box item
5937     *
5938     * Remove the object given by @p subobj from the box @p obj without
5939     * deleting it.
5940     *
5941     * @param obj The box object
5942     *
5943     * @see elm_box_unpack_all()
5944     * @see elm_box_clear()
5945     */
5946    EAPI void                elm_box_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5947    /**
5948     * Remove all items from the box, without deleting them
5949     *
5950     * Clear the box from all children, but don't delete the respective objects.
5951     * If no other references of the box children exist, the objects will never
5952     * be deleted, and thus the application will leak the memory. Make sure
5953     * when using this function that you hold a reference to all the objects
5954     * in the box @p obj.
5955     *
5956     * @param obj The box object
5957     *
5958     * @see elm_box_clear()
5959     * @see elm_box_unpack()
5960     */
5961    EAPI void                elm_box_unpack_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
5962    /**
5963     * Retrieve a list of the objects packed into the box
5964     *
5965     * Returns a new @c Eina_List with a pointer to @c Evas_Object in its nodes.
5966     * The order of the list corresponds to the packing order the box uses.
5967     *
5968     * You must free this list with eina_list_free() once you are done with it.
5969     *
5970     * @param obj The box object
5971     */
5972    EAPI const Eina_List    *elm_box_children_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5973    /**
5974     * Set the space (padding) between the box's elements.
5975     *
5976     * Extra space in pixels that will be added between a box child and its
5977     * neighbors after its containing cell has been calculated. This padding
5978     * is set for all elements in the box, besides any possible padding that
5979     * individual elements may have through their size hints.
5980     *
5981     * @param obj The box object
5982     * @param horizontal The horizontal space between elements
5983     * @param vertical The vertical space between elements
5984     */
5985    EAPI void                elm_box_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
5986    /**
5987     * Get the space (padding) between the box's elements.
5988     *
5989     * @param obj The box object
5990     * @param horizontal The horizontal space between elements
5991     * @param vertical The vertical space between elements
5992     *
5993     * @see elm_box_padding_set()
5994     */
5995    EAPI void                elm_box_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
5996    /**
5997     * Set the alignment of the whole bouding box of contents.
5998     *
5999     * Sets how the bounding box containing all the elements of the box, after
6000     * their sizes and position has been calculated, will be aligned within
6001     * the space given for the whole box widget.
6002     *
6003     * @param obj The box object
6004     * @param horizontal The horizontal alignment of elements
6005     * @param vertical The vertical alignment of elements
6006     */
6007    EAPI void                elm_box_align_set(Evas_Object *obj, double horizontal, double vertical) EINA_ARG_NONNULL(1);
6008    /**
6009     * Get the alignment of the whole bouding box of contents.
6010     *
6011     * @param obj The box object
6012     * @param horizontal The horizontal alignment of elements
6013     * @param vertical The vertical alignment of elements
6014     *
6015     * @see elm_box_align_set()
6016     */
6017    EAPI void                elm_box_align_get(const Evas_Object *obj, double *horizontal, double *vertical) EINA_ARG_NONNULL(1);
6018
6019    /**
6020     * Force the box to recalculate its children packing.
6021     *
6022     * If any children was added or removed, box will not calculate the
6023     * values immediately rather leaving it to the next main loop
6024     * iteration. While this is great as it would save lots of
6025     * recalculation, whenever you need to get the position of a just
6026     * added item you must force recalculate before doing so.
6027     *
6028     * @param obj The box object.
6029     */
6030    EAPI void                 elm_box_recalculate(Evas_Object *obj);
6031
6032    /**
6033     * Set the layout defining function to be used by the box
6034     *
6035     * Whenever anything changes that requires the box in @p obj to recalculate
6036     * the size and position of its elements, the function @p cb will be called
6037     * to determine what the layout of the children will be.
6038     *
6039     * Once a custom function is set, everything about the children layout
6040     * is defined by it. The flags set by elm_box_horizontal_set() and
6041     * elm_box_homogeneous_set() no longer have any meaning, and the values
6042     * given by elm_box_padding_set() and elm_box_align_set() are up to this
6043     * layout function to decide if they are used and how. These last two
6044     * will be found in the @c priv parameter, of type @c Evas_Object_Box_Data,
6045     * passed to @p cb. The @c Evas_Object the function receives is not the
6046     * Elementary widget, but the internal Evas Box it uses, so none of the
6047     * functions described here can be used on it.
6048     *
6049     * Any of the layout functions in @c Evas can be used here, as well as the
6050     * special elm_box_layout_transition().
6051     *
6052     * The final @p data argument received by @p cb is the same @p data passed
6053     * here, and the @p free_data function will be called to free it
6054     * whenever the box is destroyed or another layout function is set.
6055     *
6056     * Setting @p cb to NULL will revert back to the default layout function.
6057     *
6058     * @param obj The box object
6059     * @param cb The callback function used for layout
6060     * @param data Data that will be passed to layout function
6061     * @param free_data Function called to free @p data
6062     *
6063     * @see elm_box_layout_transition()
6064     */
6065    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);
6066    /**
6067     * Special layout function that animates the transition from one layout to another
6068     *
6069     * Normally, when switching the layout function for a box, this will be
6070     * reflected immediately on screen on the next render, but it's also
6071     * possible to do this through an animated transition.
6072     *
6073     * This is done by creating an ::Elm_Box_Transition and setting the box
6074     * layout to this function.
6075     *
6076     * For example:
6077     * @code
6078     * Elm_Box_Transition *t = elm_box_transition_new(1.0,
6079     *                            evas_object_box_layout_vertical, // start
6080     *                            NULL, // data for initial layout
6081     *                            NULL, // free function for initial data
6082     *                            evas_object_box_layout_horizontal, // end
6083     *                            NULL, // data for final layout
6084     *                            NULL, // free function for final data
6085     *                            anim_end, // will be called when animation ends
6086     *                            NULL); // data for anim_end function\
6087     * elm_box_layout_set(box, elm_box_layout_transition, t,
6088     *                    elm_box_transition_free);
6089     * @endcode
6090     *
6091     * @note This function can only be used with elm_box_layout_set(). Calling
6092     * it directly will not have the expected results.
6093     *
6094     * @see elm_box_transition_new
6095     * @see elm_box_transition_free
6096     * @see elm_box_layout_set
6097     */
6098    EAPI void                elm_box_layout_transition(Evas_Object *obj, Evas_Object_Box_Data *priv, void *data);
6099    /**
6100     * Create a new ::Elm_Box_Transition to animate the switch of layouts
6101     *
6102     * If you want to animate the change from one layout to another, you need
6103     * to set the layout function of the box to elm_box_layout_transition(),
6104     * passing as user data to it an instance of ::Elm_Box_Transition with the
6105     * necessary information to perform this animation. The free function to
6106     * set for the layout is elm_box_transition_free().
6107     *
6108     * The parameters to create an ::Elm_Box_Transition sum up to how long
6109     * will it be, in seconds, a layout function to describe the initial point,
6110     * another for the final position of the children and one function to be
6111     * called when the whole animation ends. This last function is useful to
6112     * set the definitive layout for the box, usually the same as the end
6113     * layout for the animation, but could be used to start another transition.
6114     *
6115     * @param start_layout The layout function that will be used to start the animation
6116     * @param start_layout_data The data to be passed the @p start_layout function
6117     * @param start_layout_free_data Function to free @p start_layout_data
6118     * @param end_layout The layout function that will be used to end the animation
6119     * @param end_layout_free_data The data to be passed the @p end_layout function
6120     * @param end_layout_free_data Function to free @p end_layout_data
6121     * @param transition_end_cb Callback function called when animation ends
6122     * @param transition_end_data Data to be passed to @p transition_end_cb
6123     * @return An instance of ::Elm_Box_Transition
6124     *
6125     * @see elm_box_transition_new
6126     * @see elm_box_layout_transition
6127     */
6128    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);
6129    /**
6130     * Free a Elm_Box_Transition instance created with elm_box_transition_new().
6131     *
6132     * This function is mostly useful as the @c free_data parameter in
6133     * elm_box_layout_set() when elm_box_layout_transition().
6134     *
6135     * @param data The Elm_Box_Transition instance to be freed.
6136     *
6137     * @see elm_box_transition_new
6138     * @see elm_box_layout_transition
6139     */
6140    EAPI void                elm_box_transition_free(void *data);
6141    /**
6142     * @}
6143     */
6144
6145    /* button */
6146    /**
6147     * @defgroup Button Button
6148     *
6149     * @image html img/widget/button/preview-00.png
6150     * @image latex img/widget/button/preview-00.eps
6151     * @image html img/widget/button/preview-01.png
6152     * @image latex img/widget/button/preview-01.eps
6153     * @image html img/widget/button/preview-02.png
6154     * @image latex img/widget/button/preview-02.eps
6155     *
6156     * This is a push-button. Press it and run some function. It can contain
6157     * a simple label and icon object and it also has an autorepeat feature.
6158     *
6159     * This widgets emits the following signals:
6160     * @li "clicked": the user clicked the button (press/release).
6161     * @li "repeated": the user pressed the button without releasing it.
6162     * @li "pressed": button was pressed.
6163     * @li "unpressed": button was released after being pressed.
6164     * In all three cases, the @c event parameter of the callback will be
6165     * @c NULL.
6166     *
6167     * Also, defined in the default theme, the button has the following styles
6168     * available:
6169     * @li default: a normal button.
6170     * @li anchor: Like default, but the button fades away when the mouse is not
6171     * over it, leaving only the text or icon.
6172     * @li hoversel_vertical: Internally used by @ref Hoversel to give a
6173     * continuous look across its options.
6174     * @li hoversel_vertical_entry: Another internal for @ref Hoversel.
6175     *
6176     * Default contents parts of the button widget that you can use for are:
6177     * @li "icon" - A icon of the button
6178     *
6179     * Default text parts of the button widget that you can use for are:
6180     * @li "default" - Label of the button
6181     *
6182     * Follow through a complete example @ref button_example_01 "here".
6183     * @{
6184     */
6185    /**
6186     * Add a new button to the parent's canvas
6187     *
6188     * @param parent The parent object
6189     * @return The new object or NULL if it cannot be created
6190     */
6191    EAPI Evas_Object *elm_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6192    /**
6193     * Set the label used in the button
6194     *
6195     * The passed @p label can be NULL to clean any existing text in it and
6196     * leave the button as an icon only object.
6197     *
6198     * @param obj The button object
6199     * @param label The text will be written on the button
6200     * @deprecated use elm_object_text_set() instead.
6201     */
6202    EINA_DEPRECATED EAPI void         elm_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6203    /**
6204     * Get the label set for the button
6205     *
6206     * The string returned is an internal pointer and should not be freed or
6207     * altered. It will also become invalid when the button is destroyed.
6208     * The string returned, if not NULL, is a stringshare, so if you need to
6209     * keep it around even after the button is destroyed, you can use
6210     * eina_stringshare_ref().
6211     *
6212     * @param obj The button object
6213     * @return The text set to the label, or NULL if nothing is set
6214     * @deprecated use elm_object_text_set() instead.
6215     */
6216    EINA_DEPRECATED EAPI const char  *elm_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6217    /**
6218     * Set the icon used for the button
6219     *
6220     * Setting a new icon will delete any other that was previously set, making
6221     * any reference to them invalid. If you need to maintain the previous
6222     * object alive, unset it first with elm_button_icon_unset().
6223     *
6224     * @param obj The button object
6225     * @param icon The icon object for the button
6226     * @deprecated use elm_object_part_content_set() instead.
6227     */
6228    EINA_DEPRECATED EAPI void         elm_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6229    /**
6230     * Get the icon used for the button
6231     *
6232     * Return the icon object which is set for this widget. If the button is
6233     * destroyed or another icon is set, the returned object will be deleted
6234     * and any reference to it will be invalid.
6235     *
6236     * @param obj The button object
6237     * @return The icon object that is being used
6238     *
6239     * @deprecated use elm_object_part_content_get() instead
6240     */
6241    EINA_DEPRECATED EAPI Evas_Object *elm_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6242    /**
6243     * Remove the icon set without deleting it and return the object
6244     *
6245     * This function drops the reference the button holds of the icon object
6246     * and returns this last object. It is used in case you want to remove any
6247     * icon, or set another one, without deleting the actual object. The button
6248     * will be left without an icon set.
6249     *
6250     * @param obj The button object
6251     * @return The icon object that was being used
6252     * @deprecated use elm_object_part_content_unset() instead.
6253     */
6254    EINA_DEPRECATED EAPI Evas_Object *elm_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6255    /**
6256     * Turn on/off the autorepeat event generated when the button is kept pressed
6257     *
6258     * When off, no autorepeat is performed and buttons emit a normal @c clicked
6259     * signal when they are clicked.
6260     *
6261     * When on, keeping a button pressed will continuously emit a @c repeated
6262     * signal until the button is released. The time it takes until it starts
6263     * emitting the signal is given by
6264     * elm_button_autorepeat_initial_timeout_set(), and the time between each
6265     * new emission by elm_button_autorepeat_gap_timeout_set().
6266     *
6267     * @param obj The button object
6268     * @param on  A bool to turn on/off the event
6269     */
6270    EAPI void         elm_button_autorepeat_set(Evas_Object *obj, Eina_Bool on) EINA_ARG_NONNULL(1);
6271    /**
6272     * Get whether the autorepeat feature is enabled
6273     *
6274     * @param obj The button object
6275     * @return EINA_TRUE if autorepeat is on, EINA_FALSE otherwise
6276     *
6277     * @see elm_button_autorepeat_set()
6278     */
6279    EAPI Eina_Bool    elm_button_autorepeat_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6280    /**
6281     * Set the initial timeout before the autorepeat event is generated
6282     *
6283     * Sets the timeout, in seconds, since the button is pressed until the
6284     * first @c repeated signal is emitted. If @p t is 0.0 or less, there
6285     * won't be any delay and the even will be fired the moment the button is
6286     * pressed.
6287     *
6288     * @param obj The button object
6289     * @param t   Timeout in seconds
6290     *
6291     * @see elm_button_autorepeat_set()
6292     * @see elm_button_autorepeat_gap_timeout_set()
6293     */
6294    EAPI void         elm_button_autorepeat_initial_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
6295    /**
6296     * Get the initial timeout before the autorepeat event is generated
6297     *
6298     * @param obj The button object
6299     * @return Timeout in seconds
6300     *
6301     * @see elm_button_autorepeat_initial_timeout_set()
6302     */
6303    EAPI double       elm_button_autorepeat_initial_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6304    /**
6305     * Set the interval between each generated autorepeat event
6306     *
6307     * After the first @c repeated event is fired, all subsequent ones will
6308     * follow after a delay of @p t seconds for each.
6309     *
6310     * @param obj The button object
6311     * @param t   Interval in seconds
6312     *
6313     * @see elm_button_autorepeat_initial_timeout_set()
6314     */
6315    EAPI void         elm_button_autorepeat_gap_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
6316    /**
6317     * Get the interval between each generated autorepeat event
6318     *
6319     * @param obj The button object
6320     * @return Interval in seconds
6321     */
6322    EAPI double       elm_button_autorepeat_gap_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6323    /**
6324     * @}
6325     */
6326
6327    /**
6328     * @defgroup File_Selector_Button File Selector Button
6329     *
6330     * @image html img/widget/fileselector_button/preview-00.png
6331     * @image latex img/widget/fileselector_button/preview-00.eps
6332     * @image html img/widget/fileselector_button/preview-01.png
6333     * @image latex img/widget/fileselector_button/preview-01.eps
6334     * @image html img/widget/fileselector_button/preview-02.png
6335     * @image latex img/widget/fileselector_button/preview-02.eps
6336     *
6337     * This is a button that, when clicked, creates an Elementary
6338     * window (or inner window) <b> with a @ref Fileselector "file
6339     * selector widget" within</b>. When a file is chosen, the (inner)
6340     * window is closed and the button emits a signal having the
6341     * selected file as it's @c event_info.
6342     *
6343     * This widget encapsulates operations on its internal file
6344     * selector on its own API. There is less control over its file
6345     * selector than that one would have instatiating one directly.
6346     *
6347     * The following styles are available for this button:
6348     * @li @c "default"
6349     * @li @c "anchor"
6350     * @li @c "hoversel_vertical"
6351     * @li @c "hoversel_vertical_entry"
6352     *
6353     * Smart callbacks one can register to:
6354     * - @c "file,chosen" - the user has selected a path, whose string
6355     *   pointer comes as the @c event_info data (a stringshared
6356     *   string)
6357     *
6358     * Here is an example on its usage:
6359     * @li @ref fileselector_button_example
6360     *
6361     * @see @ref File_Selector_Entry for a similar widget.
6362     * @{
6363     */
6364
6365    /**
6366     * Add a new file selector button widget to the given parent
6367     * Elementary (container) object
6368     *
6369     * @param parent The parent object
6370     * @return a new file selector button widget handle or @c NULL, on
6371     * errors
6372     */
6373    EAPI Evas_Object *elm_fileselector_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6374
6375    /**
6376     * Set the label for a given file selector button widget
6377     *
6378     * @param obj The file selector button widget
6379     * @param label The text label to be displayed on @p obj
6380     *
6381     * @deprecated use elm_object_text_set() instead.
6382     */
6383    EINA_DEPRECATED EAPI void         elm_fileselector_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6384
6385    /**
6386     * Get the label set for a given file selector button widget
6387     *
6388     * @param obj The file selector button widget
6389     * @return The button label
6390     *
6391     * @deprecated use elm_object_text_set() instead.
6392     */
6393    EINA_DEPRECATED EAPI const char  *elm_fileselector_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6394
6395    /**
6396     * Set the icon on a given file selector button widget
6397     *
6398     * @param obj The file selector button widget
6399     * @param icon The icon object for the button
6400     *
6401     * Once the icon object is set, a previously set one will be
6402     * deleted. If you want to keep the latter, use the
6403     * elm_fileselector_button_icon_unset() function.
6404     *
6405     * @see elm_fileselector_button_icon_get()
6406     */
6407    EAPI void         elm_fileselector_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6408
6409    /**
6410     * Get the icon set for a given file selector button widget
6411     *
6412     * @param obj The file selector button widget
6413     * @return The icon object currently set on @p obj or @c NULL, if
6414     * none is
6415     *
6416     * @see elm_fileselector_button_icon_set()
6417     */
6418    EAPI Evas_Object *elm_fileselector_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6419
6420    /**
6421     * Unset the icon used in a given file selector button widget
6422     *
6423     * @param obj The file selector button widget
6424     * @return The icon object that was being used on @p obj or @c
6425     * NULL, on errors
6426     *
6427     * Unparent and return the icon object which was set for this
6428     * widget.
6429     *
6430     * @see elm_fileselector_button_icon_set()
6431     */
6432    EAPI Evas_Object *elm_fileselector_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6433
6434    /**
6435     * Set the title for a given file selector button widget's window
6436     *
6437     * @param obj The file selector button widget
6438     * @param title The title string
6439     *
6440     * This will change the window's title, when the file selector pops
6441     * out after a click on the button. Those windows have the default
6442     * (unlocalized) value of @c "Select a file" as titles.
6443     *
6444     * @note It will only take any effect if the file selector
6445     * button widget is @b not under "inwin mode".
6446     *
6447     * @see elm_fileselector_button_window_title_get()
6448     */
6449    EAPI void         elm_fileselector_button_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
6450
6451    /**
6452     * Get the title set for a given file selector button widget's
6453     * window
6454     *
6455     * @param obj The file selector button widget
6456     * @return Title of the file selector button's window
6457     *
6458     * @see elm_fileselector_button_window_title_get() for more details
6459     */
6460    EAPI const char  *elm_fileselector_button_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6461
6462    /**
6463     * Set the size of a given file selector button widget's window,
6464     * holding the file selector itself.
6465     *
6466     * @param obj The file selector button widget
6467     * @param width The window's width
6468     * @param height The window's height
6469     *
6470     * @note it will only take any effect if the file selector button
6471     * widget is @b not under "inwin mode". The default size for the
6472     * window (when applicable) is 400x400 pixels.
6473     *
6474     * @see elm_fileselector_button_window_size_get()
6475     */
6476    EAPI void         elm_fileselector_button_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6477
6478    /**
6479     * Get the size of a given file selector button widget's window,
6480     * holding the file selector itself.
6481     *
6482     * @param obj The file selector button widget
6483     * @param width Pointer into which to store the width value
6484     * @param height Pointer into which to store the height value
6485     *
6486     * @note Use @c NULL pointers on the size values you're not
6487     * interested in: they'll be ignored by the function.
6488     *
6489     * @see elm_fileselector_button_window_size_set(), for more details
6490     */
6491    EAPI void         elm_fileselector_button_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6492
6493    /**
6494     * Set the initial file system path for a given file selector
6495     * button widget
6496     *
6497     * @param obj The file selector button widget
6498     * @param path The path string
6499     *
6500     * It must be a <b>directory</b> path, which will have the contents
6501     * displayed initially in the file selector's view, when invoked
6502     * from @p obj. The default initial path is the @c "HOME"
6503     * environment variable's value.
6504     *
6505     * @see elm_fileselector_button_path_get()
6506     */
6507    EAPI void         elm_fileselector_button_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6508
6509    /**
6510     * Get the initial file system path set for a given file selector
6511     * button widget
6512     *
6513     * @param obj The file selector button widget
6514     * @return path The path string
6515     *
6516     * @see elm_fileselector_button_path_set() for more details
6517     */
6518    EAPI const char  *elm_fileselector_button_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6519
6520    /**
6521     * Enable/disable a tree view in the given file selector button
6522     * widget's internal file selector
6523     *
6524     * @param obj The file selector button widget
6525     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
6526     * disable
6527     *
6528     * This has the same effect as elm_fileselector_expandable_set(),
6529     * but now applied to a file selector button's internal file
6530     * selector.
6531     *
6532     * @note There's no way to put a file selector button's internal
6533     * file selector in "grid mode", as one may do with "pure" file
6534     * selectors.
6535     *
6536     * @see elm_fileselector_expandable_get()
6537     */
6538    EAPI void         elm_fileselector_button_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6539
6540    /**
6541     * Get whether tree view is enabled for the given file selector
6542     * button widget's internal file selector
6543     *
6544     * @param obj The file selector button widget
6545     * @return @c EINA_TRUE if @p obj widget's internal file selector
6546     * is in tree view, @c EINA_FALSE otherwise (and or errors)
6547     *
6548     * @see elm_fileselector_expandable_set() for more details
6549     */
6550    EAPI Eina_Bool    elm_fileselector_button_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6551
6552    /**
6553     * Set whether a given file selector button widget's internal file
6554     * selector is to display folders only or the directory contents,
6555     * as well.
6556     *
6557     * @param obj The file selector button widget
6558     * @param only @c EINA_TRUE to make @p obj widget's internal file
6559     * selector only display directories, @c EINA_FALSE to make files
6560     * to be displayed in it too
6561     *
6562     * This has the same effect as elm_fileselector_folder_only_set(),
6563     * but now applied to a file selector button's internal file
6564     * selector.
6565     *
6566     * @see elm_fileselector_folder_only_get()
6567     */
6568    EAPI void         elm_fileselector_button_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6569
6570    /**
6571     * Get whether a given file selector button widget's internal file
6572     * selector is displaying folders only or the directory contents,
6573     * as well.
6574     *
6575     * @param obj The file selector button widget
6576     * @return @c EINA_TRUE if @p obj widget's internal file
6577     * selector is only displaying directories, @c EINA_FALSE if files
6578     * are being displayed in it too (and on errors)
6579     *
6580     * @see elm_fileselector_button_folder_only_set() for more details
6581     */
6582    EAPI Eina_Bool    elm_fileselector_button_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6583
6584    /**
6585     * Enable/disable the file name entry box where the user can type
6586     * in a name for a file, in a given file selector button widget's
6587     * internal file selector.
6588     *
6589     * @param obj The file selector button widget
6590     * @param is_save @c EINA_TRUE to make @p obj widget's internal
6591     * file selector a "saving dialog", @c EINA_FALSE otherwise
6592     *
6593     * This has the same effect as elm_fileselector_is_save_set(),
6594     * but now applied to a file selector button's internal file
6595     * selector.
6596     *
6597     * @see elm_fileselector_is_save_get()
6598     */
6599    EAPI void         elm_fileselector_button_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6600
6601    /**
6602     * Get whether the given file selector button widget's internal
6603     * file selector is in "saving dialog" mode
6604     *
6605     * @param obj The file selector button widget
6606     * @return @c EINA_TRUE, if @p obj widget's internal file selector
6607     * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
6608     * errors)
6609     *
6610     * @see elm_fileselector_button_is_save_set() for more details
6611     */
6612    EAPI Eina_Bool    elm_fileselector_button_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6613
6614    /**
6615     * Set whether a given file selector button widget's internal file
6616     * selector will raise an Elementary "inner window", instead of a
6617     * dedicated Elementary window. By default, it won't.
6618     *
6619     * @param obj The file selector button widget
6620     * @param value @c EINA_TRUE to make it use an inner window, @c
6621     * EINA_TRUE to make it use a dedicated window
6622     *
6623     * @see elm_win_inwin_add() for more information on inner windows
6624     * @see elm_fileselector_button_inwin_mode_get()
6625     */
6626    EAPI void         elm_fileselector_button_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6627
6628    /**
6629     * Get whether a given file selector button widget's internal file
6630     * selector will raise an Elementary "inner window", instead of a
6631     * dedicated Elementary window.
6632     *
6633     * @param obj The file selector button widget
6634     * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
6635     * if it will use a dedicated window
6636     *
6637     * @see elm_fileselector_button_inwin_mode_set() for more details
6638     */
6639    EAPI Eina_Bool    elm_fileselector_button_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6640
6641    /**
6642     * @}
6643     */
6644
6645     /**
6646     * @defgroup File_Selector_Entry File Selector Entry
6647     *
6648     * @image html img/widget/fileselector_entry/preview-00.png
6649     * @image latex img/widget/fileselector_entry/preview-00.eps
6650     *
6651     * This is an entry made to be filled with or display a <b>file
6652     * system path string</b>. Besides the entry itself, the widget has
6653     * a @ref File_Selector_Button "file selector button" on its side,
6654     * which will raise an internal @ref Fileselector "file selector widget",
6655     * when clicked, for path selection aided by file system
6656     * navigation.
6657     *
6658     * This file selector may appear in an Elementary window or in an
6659     * inner window. When a file is chosen from it, the (inner) window
6660     * is closed and the selected file's path string is exposed both as
6661     * an smart event and as the new text on the entry.
6662     *
6663     * This widget encapsulates operations on its internal file
6664     * selector on its own API. There is less control over its file
6665     * selector than that one would have instatiating one directly.
6666     *
6667     * Smart callbacks one can register to:
6668     * - @c "changed" - The text within the entry was changed
6669     * - @c "activated" - The entry has had editing finished and
6670     *   changes are to be "committed"
6671     * - @c "press" - The entry has been clicked
6672     * - @c "longpressed" - The entry has been clicked (and held) for a
6673     *   couple seconds
6674     * - @c "clicked" - The entry has been clicked
6675     * - @c "clicked,double" - The entry has been double clicked
6676     * - @c "focused" - The entry has received focus
6677     * - @c "unfocused" - The entry has lost focus
6678     * - @c "selection,paste" - A paste action has occurred on the
6679     *   entry
6680     * - @c "selection,copy" - A copy action has occurred on the entry
6681     * - @c "selection,cut" - A cut action has occurred on the entry
6682     * - @c "unpressed" - The file selector entry's button was released
6683     *   after being pressed.
6684     * - @c "file,chosen" - The user has selected a path via the file
6685     *   selector entry's internal file selector, whose string pointer
6686     *   comes as the @c event_info data (a stringshared string)
6687     *
6688     * Here is an example on its usage:
6689     * @li @ref fileselector_entry_example
6690     *
6691     * @see @ref File_Selector_Button for a similar widget.
6692     * @{
6693     */
6694
6695    /**
6696     * Add a new file selector entry widget to the given parent
6697     * Elementary (container) object
6698     *
6699     * @param parent The parent object
6700     * @return a new file selector entry widget handle or @c NULL, on
6701     * errors
6702     */
6703    EAPI Evas_Object *elm_fileselector_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6704
6705    /**
6706     * Set the label for a given file selector entry widget's button
6707     *
6708     * @param obj The file selector entry widget
6709     * @param label The text label to be displayed on @p obj widget's
6710     * button
6711     *
6712     * @deprecated use elm_object_text_set() instead.
6713     */
6714    EINA_DEPRECATED EAPI void         elm_fileselector_entry_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6715
6716    /**
6717     * Get the label set for a given file selector entry widget's button
6718     *
6719     * @param obj The file selector entry widget
6720     * @return The widget button's label
6721     *
6722     * @deprecated use elm_object_text_set() instead.
6723     */
6724    EINA_DEPRECATED EAPI const char  *elm_fileselector_entry_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6725
6726    /**
6727     * Set the icon on a given file selector entry widget's button
6728     *
6729     * @param obj The file selector entry widget
6730     * @param icon The icon object for the entry's button
6731     *
6732     * Once the icon object is set, a previously set one will be
6733     * deleted. If you want to keep the latter, use the
6734     * elm_fileselector_entry_button_icon_unset() function.
6735     *
6736     * @see elm_fileselector_entry_button_icon_get()
6737     */
6738    EAPI void         elm_fileselector_entry_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6739
6740    /**
6741     * Get the icon set for a given file selector entry widget's button
6742     *
6743     * @param obj The file selector entry widget
6744     * @return The icon object currently set on @p obj widget's button
6745     * or @c NULL, if none is
6746     *
6747     * @see elm_fileselector_entry_button_icon_set()
6748     */
6749    EAPI Evas_Object *elm_fileselector_entry_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6750
6751    /**
6752     * Unset the icon used in a given file selector entry widget's
6753     * button
6754     *
6755     * @param obj The file selector entry widget
6756     * @return The icon object that was being used on @p obj widget's
6757     * button or @c NULL, on errors
6758     *
6759     * Unparent and return the icon object which was set for this
6760     * widget's button.
6761     *
6762     * @see elm_fileselector_entry_button_icon_set()
6763     */
6764    EAPI Evas_Object *elm_fileselector_entry_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6765
6766    /**
6767     * Set the title for a given file selector entry widget's window
6768     *
6769     * @param obj The file selector entry widget
6770     * @param title The title string
6771     *
6772     * This will change the window's title, when the file selector pops
6773     * out after a click on the entry's button. Those windows have the
6774     * default (unlocalized) value of @c "Select a file" as titles.
6775     *
6776     * @note It will only take any effect if the file selector
6777     * entry widget is @b not under "inwin mode".
6778     *
6779     * @see elm_fileselector_entry_window_title_get()
6780     */
6781    EAPI void         elm_fileselector_entry_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
6782
6783    /**
6784     * Get the title set for a given file selector entry widget's
6785     * window
6786     *
6787     * @param obj The file selector entry widget
6788     * @return Title of the file selector entry's window
6789     *
6790     * @see elm_fileselector_entry_window_title_get() for more details
6791     */
6792    EAPI const char  *elm_fileselector_entry_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6793
6794    /**
6795     * Set the size of a given file selector entry widget's window,
6796     * holding the file selector itself.
6797     *
6798     * @param obj The file selector entry widget
6799     * @param width The window's width
6800     * @param height The window's height
6801     *
6802     * @note it will only take any effect if the file selector entry
6803     * widget is @b not under "inwin mode". The default size for the
6804     * window (when applicable) is 400x400 pixels.
6805     *
6806     * @see elm_fileselector_entry_window_size_get()
6807     */
6808    EAPI void         elm_fileselector_entry_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6809
6810    /**
6811     * Get the size of a given file selector entry widget's window,
6812     * holding the file selector itself.
6813     *
6814     * @param obj The file selector entry widget
6815     * @param width Pointer into which to store the width value
6816     * @param height Pointer into which to store the height value
6817     *
6818     * @note Use @c NULL pointers on the size values you're not
6819     * interested in: they'll be ignored by the function.
6820     *
6821     * @see elm_fileselector_entry_window_size_set(), for more details
6822     */
6823    EAPI void         elm_fileselector_entry_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6824
6825    /**
6826     * Set the initial file system path and the entry's path string for
6827     * a given file selector entry widget
6828     *
6829     * @param obj The file selector entry widget
6830     * @param path The path string
6831     *
6832     * It must be a <b>directory</b> path, which will have the contents
6833     * displayed initially in the file selector's view, when invoked
6834     * from @p obj. The default initial path is the @c "HOME"
6835     * environment variable's value.
6836     *
6837     * @see elm_fileselector_entry_path_get()
6838     */
6839    EAPI void         elm_fileselector_entry_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6840
6841    /**
6842     * Get the entry's path string for a given file selector entry
6843     * widget
6844     *
6845     * @param obj The file selector entry widget
6846     * @return path The path string
6847     *
6848     * @see elm_fileselector_entry_path_set() for more details
6849     */
6850    EAPI const char  *elm_fileselector_entry_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6851
6852    /**
6853     * Enable/disable a tree view in the given file selector entry
6854     * widget's internal file selector
6855     *
6856     * @param obj The file selector entry widget
6857     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
6858     * disable
6859     *
6860     * This has the same effect as elm_fileselector_expandable_set(),
6861     * but now applied to a file selector entry's internal file
6862     * selector.
6863     *
6864     * @note There's no way to put a file selector entry's internal
6865     * file selector in "grid mode", as one may do with "pure" file
6866     * selectors.
6867     *
6868     * @see elm_fileselector_expandable_get()
6869     */
6870    EAPI void         elm_fileselector_entry_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6871
6872    /**
6873     * Get whether tree view is enabled for the given file selector
6874     * entry widget's internal file selector
6875     *
6876     * @param obj The file selector entry widget
6877     * @return @c EINA_TRUE if @p obj widget's internal file selector
6878     * is in tree view, @c EINA_FALSE otherwise (and or errors)
6879     *
6880     * @see elm_fileselector_expandable_set() for more details
6881     */
6882    EAPI Eina_Bool    elm_fileselector_entry_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6883
6884    /**
6885     * Set whether a given file selector entry widget's internal file
6886     * selector is to display folders only or the directory contents,
6887     * as well.
6888     *
6889     * @param obj The file selector entry widget
6890     * @param only @c EINA_TRUE to make @p obj widget's internal file
6891     * selector only display directories, @c EINA_FALSE to make files
6892     * to be displayed in it too
6893     *
6894     * This has the same effect as elm_fileselector_folder_only_set(),
6895     * but now applied to a file selector entry's internal file
6896     * selector.
6897     *
6898     * @see elm_fileselector_folder_only_get()
6899     */
6900    EAPI void         elm_fileselector_entry_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6901
6902    /**
6903     * Get whether a given file selector entry widget's internal file
6904     * selector is displaying folders only or the directory contents,
6905     * as well.
6906     *
6907     * @param obj The file selector entry widget
6908     * @return @c EINA_TRUE if @p obj widget's internal file
6909     * selector is only displaying directories, @c EINA_FALSE if files
6910     * are being displayed in it too (and on errors)
6911     *
6912     * @see elm_fileselector_entry_folder_only_set() for more details
6913     */
6914    EAPI Eina_Bool    elm_fileselector_entry_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6915
6916    /**
6917     * Enable/disable the file name entry box where the user can type
6918     * in a name for a file, in a given file selector entry widget's
6919     * internal file selector.
6920     *
6921     * @param obj The file selector entry widget
6922     * @param is_save @c EINA_TRUE to make @p obj widget's internal
6923     * file selector a "saving dialog", @c EINA_FALSE otherwise
6924     *
6925     * This has the same effect as elm_fileselector_is_save_set(),
6926     * but now applied to a file selector entry's internal file
6927     * selector.
6928     *
6929     * @see elm_fileselector_is_save_get()
6930     */
6931    EAPI void         elm_fileselector_entry_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6932
6933    /**
6934     * Get whether the given file selector entry widget's internal
6935     * file selector is in "saving dialog" mode
6936     *
6937     * @param obj The file selector entry widget
6938     * @return @c EINA_TRUE, if @p obj widget's internal file selector
6939     * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
6940     * errors)
6941     *
6942     * @see elm_fileselector_entry_is_save_set() for more details
6943     */
6944    EAPI Eina_Bool    elm_fileselector_entry_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6945
6946    /**
6947     * Set whether a given file selector entry widget's internal file
6948     * selector will raise an Elementary "inner window", instead of a
6949     * dedicated Elementary window. By default, it won't.
6950     *
6951     * @param obj The file selector entry widget
6952     * @param value @c EINA_TRUE to make it use an inner window, @c
6953     * EINA_TRUE to make it use a dedicated window
6954     *
6955     * @see elm_win_inwin_add() for more information on inner windows
6956     * @see elm_fileselector_entry_inwin_mode_get()
6957     */
6958    EAPI void         elm_fileselector_entry_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6959
6960    /**
6961     * Get whether a given file selector entry widget's internal file
6962     * selector will raise an Elementary "inner window", instead of a
6963     * dedicated Elementary window.
6964     *
6965     * @param obj The file selector entry widget
6966     * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
6967     * if it will use a dedicated window
6968     *
6969     * @see elm_fileselector_entry_inwin_mode_set() for more details
6970     */
6971    EAPI Eina_Bool    elm_fileselector_entry_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6972
6973    /**
6974     * Set the initial file system path for a given file selector entry
6975     * widget
6976     *
6977     * @param obj The file selector entry widget
6978     * @param path The path string
6979     *
6980     * It must be a <b>directory</b> path, which will have the contents
6981     * displayed initially in the file selector's view, when invoked
6982     * from @p obj. The default initial path is the @c "HOME"
6983     * environment variable's value.
6984     *
6985     * @see elm_fileselector_entry_path_get()
6986     */
6987    EAPI void         elm_fileselector_entry_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6988
6989    /**
6990     * Get the parent directory's path to the latest file selection on
6991     * a given filer selector entry widget
6992     *
6993     * @param obj The file selector object
6994     * @return The (full) path of the directory of the last selection
6995     * on @p obj widget, a @b stringshared string
6996     *
6997     * @see elm_fileselector_entry_path_set()
6998     */
6999    EAPI const char  *elm_fileselector_entry_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7000
7001    /**
7002     * @}
7003     */
7004
7005    /**
7006     * @defgroup Scroller Scroller
7007     *
7008     * A scroller holds a single object and "scrolls it around". This means that
7009     * it allows the user to use a scrollbar (or a finger) to drag the viewable
7010     * region around, allowing to move through a much larger object that is
7011     * contained in the scroller. The scroller will always have a small minimum
7012     * size by default as it won't be limited by the contents of the scroller.
7013     *
7014     * Signals that you can add callbacks for are:
7015     * @li "edge,left" - the left edge of the content has been reached
7016     * @li "edge,right" - the right edge of the content has been reached
7017     * @li "edge,top" - the top edge of the content has been reached
7018     * @li "edge,bottom" - the bottom edge of the content has been reached
7019     * @li "scroll" - the content has been scrolled (moved)
7020     * @li "scroll,anim,start" - scrolling animation has started
7021     * @li "scroll,anim,stop" - scrolling animation has stopped
7022     * @li "scroll,drag,start" - dragging the contents around has started
7023     * @li "scroll,drag,stop" - dragging the contents around has stopped
7024     * @note The "scroll,anim,*" and "scroll,drag,*" signals are only emitted by
7025     * user intervetion.
7026     *
7027     * @note When Elemementary is in embedded mode the scrollbars will not be
7028     * dragable, they appear merely as indicators of how much has been scrolled.
7029     * @note When Elementary is in desktop mode the thumbscroll(a.k.a.
7030     * fingerscroll) won't work.
7031     *
7032     * Default contents parts of the scroller widget that you can use for are:
7033     * @li "default" - A content of the scroller
7034     *
7035     * In @ref tutorial_scroller you'll find an example of how to use most of
7036     * this API.
7037     * @{
7038     */
7039    /**
7040     * @brief Type that controls when scrollbars should appear.
7041     *
7042     * @see elm_scroller_policy_set()
7043     */
7044    typedef enum _Elm_Scroller_Policy
7045      {
7046         ELM_SCROLLER_POLICY_AUTO = 0, /**< Show scrollbars as needed */
7047         ELM_SCROLLER_POLICY_ON, /**< Always show scrollbars */
7048         ELM_SCROLLER_POLICY_OFF, /**< Never show scrollbars */
7049         ELM_SCROLLER_POLICY_LAST
7050      } Elm_Scroller_Policy;
7051    /**
7052     * @brief Add a new scroller to the parent
7053     *
7054     * @param parent The parent object
7055     * @return The new object or NULL if it cannot be created
7056     */
7057    EAPI Evas_Object *elm_scroller_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7058    /**
7059     * @brief Set the content of the scroller widget (the object to be scrolled around).
7060     *
7061     * @param obj The scroller object
7062     * @param content The new content object
7063     *
7064     * Once the content object is set, a previously set one will be deleted.
7065     * If you want to keep that old content object, use the
7066     * elm_scroller_content_unset() function.
7067     * @deprecated use elm_object_content_set() instead
7068     */
7069    EINA_DEPRECATED EAPI void elm_scroller_content_set(Evas_Object *obj, Evas_Object *child) EINA_ARG_NONNULL(1);
7070    /**
7071     * @brief Get the content of the scroller widget
7072     *
7073     * @param obj The slider object
7074     * @return The content that is being used
7075     *
7076     * Return the content object which is set for this widget
7077     *
7078     * @see elm_scroller_content_set()
7079     * @deprecated use elm_object_content_get() instead.
7080     */
7081    EINA_DEPRECATED EAPI Evas_Object *elm_scroller_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7082    /**
7083     * @brief Unset the content of the scroller widget
7084     *
7085     * @param obj The slider object
7086     * @return The content that was being used
7087     *
7088     * Unparent and return the content object which was set for this widget
7089     *
7090     * @see elm_scroller_content_set()
7091     * @deprecated use elm_object_content_unset() instead.
7092     */
7093    EINA_DEPRECATED EAPI Evas_Object *elm_scroller_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7094    /**
7095     * @brief Set custom theme elements for the scroller
7096     *
7097     * @param obj The scroller object
7098     * @param widget The widget name to use (default is "scroller")
7099     * @param base The base name to use (default is "base")
7100     */
7101    EAPI void         elm_scroller_custom_widget_base_theme_set(Evas_Object *obj, const char *widget, const char *base) EINA_ARG_NONNULL(1, 2, 3);
7102    /**
7103     * @brief Make the scroller minimum size limited to the minimum size of the content
7104     *
7105     * @param obj The scroller object
7106     * @param w Enable limiting minimum size horizontally
7107     * @param h Enable limiting minimum size vertically
7108     *
7109     * By default the scroller will be as small as its design allows,
7110     * irrespective of its content. This will make the scroller minimum size the
7111     * right size horizontally and/or vertically to perfectly fit its content in
7112     * that direction.
7113     */
7114    EAPI void         elm_scroller_content_min_limit(Evas_Object *obj, Eina_Bool w, Eina_Bool h) EINA_ARG_NONNULL(1);
7115    /**
7116     * @brief Show a specific virtual region within the scroller content object
7117     *
7118     * @param obj The scroller object
7119     * @param x X coordinate of the region
7120     * @param y Y coordinate of the region
7121     * @param w Width of the region
7122     * @param h Height of the region
7123     *
7124     * This will ensure all (or part if it does not fit) of the designated
7125     * region in the virtual content object (0, 0 starting at the top-left of the
7126     * virtual content object) is shown within the scroller.
7127     */
7128    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);
7129    /**
7130     * @brief Set the scrollbar visibility policy
7131     *
7132     * @param obj The scroller object
7133     * @param policy_h Horizontal scrollbar policy
7134     * @param policy_v Vertical scrollbar policy
7135     *
7136     * This sets the scrollbar visibility policy for the given scroller.
7137     * ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is
7138     * needed, and otherwise kept hidden. ELM_SCROLLER_POLICY_ON turns it on all
7139     * the time, and ELM_SCROLLER_POLICY_OFF always keeps it off. This applies
7140     * respectively for the horizontal and vertical scrollbars.
7141     */
7142    EAPI void         elm_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
7143    /**
7144     * @brief Gets scrollbar visibility policy
7145     *
7146     * @param obj The scroller object
7147     * @param policy_h Horizontal scrollbar policy
7148     * @param policy_v Vertical scrollbar policy
7149     *
7150     * @see elm_scroller_policy_set()
7151     */
7152    EAPI void         elm_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v) EINA_ARG_NONNULL(1);
7153    /**
7154     * @brief Get the currently visible content region
7155     *
7156     * @param obj The scroller object
7157     * @param x X coordinate of the region
7158     * @param y Y coordinate of the region
7159     * @param w Width of the region
7160     * @param h Height of the region
7161     *
7162     * This gets the current region in the content object that is visible through
7163     * the scroller. The region co-ordinates are returned in the @p x, @p y, @p
7164     * w, @p h values pointed to.
7165     *
7166     * @note All coordinates are relative to the content.
7167     *
7168     * @see elm_scroller_region_show()
7169     */
7170    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);
7171    /**
7172     * @brief Get the size of the content object
7173     *
7174     * @param obj The scroller object
7175     * @param w Width of the content object.
7176     * @param h Height of the content object.
7177     *
7178     * This gets the size of the content object of the scroller.
7179     */
7180    EAPI void         elm_scroller_child_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
7181    /**
7182     * @brief Set bouncing behavior
7183     *
7184     * @param obj The scroller object
7185     * @param h_bounce Allow bounce horizontally
7186     * @param v_bounce Allow bounce vertically
7187     *
7188     * When scrolling, the scroller may "bounce" when reaching an edge of the
7189     * content object. This is a visual way to indicate the end has been reached.
7190     * This is enabled by default for both axis. This API will set if it is enabled
7191     * for the given axis with the boolean parameters for each axis.
7192     */
7193    EAPI void         elm_scroller_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
7194    /**
7195     * @brief Get the bounce behaviour
7196     *
7197     * @param obj The Scroller object
7198     * @param h_bounce Will the scroller bounce horizontally or not
7199     * @param v_bounce Will the scroller bounce vertically or not
7200     *
7201     * @see elm_scroller_bounce_set()
7202     */
7203    EAPI void         elm_scroller_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
7204    /**
7205     * @brief Set scroll page size relative to viewport size.
7206     *
7207     * @param obj The scroller object
7208     * @param h_pagerel The horizontal page relative size
7209     * @param v_pagerel The vertical page relative size
7210     *
7211     * The scroller is capable of limiting scrolling by the user to "pages". That
7212     * is to jump by and only show a "whole page" at a time as if the continuous
7213     * area of the scroller content is split into page sized pieces. This sets
7214     * the size of a page relative to the viewport of the scroller. 1.0 is "1
7215     * viewport" is size (horizontally or vertically). 0.0 turns it off in that
7216     * axis. This is mutually exclusive with page size
7217     * (see elm_scroller_page_size_set()  for more information). Likewise 0.5
7218     * is "half a viewport". Sane usable values are normally between 0.0 and 1.0
7219     * including 1.0. If you only want 1 axis to be page "limited", use 0.0 for
7220     * the other axis.
7221     */
7222    EAPI void         elm_scroller_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
7223    /**
7224     * @brief Set scroll page size.
7225     *
7226     * @param obj The scroller object
7227     * @param h_pagesize The horizontal page size
7228     * @param v_pagesize The vertical page size
7229     *
7230     * This sets the page size to an absolute fixed value, with 0 turning it off
7231     * for that axis.
7232     *
7233     * @see elm_scroller_page_relative_set()
7234     */
7235    EAPI void         elm_scroller_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
7236    /**
7237     * @brief Get scroll current page number.
7238     *
7239     * @param obj The scroller object
7240     * @param h_pagenumber The horizontal page number
7241     * @param v_pagenumber The vertical page number
7242     *
7243     * The page number starts from 0. 0 is the first page.
7244     * Current page means the page which meets the top-left of the viewport.
7245     * If there are two or more pages in the viewport, it returns the number of the page
7246     * which meets the top-left of the viewport.
7247     *
7248     * @see elm_scroller_last_page_get()
7249     * @see elm_scroller_page_show()
7250     * @see elm_scroller_page_brint_in()
7251     */
7252    EAPI void         elm_scroller_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
7253    /**
7254     * @brief Get scroll last page number.
7255     *
7256     * @param obj The scroller object
7257     * @param h_pagenumber The horizontal page number
7258     * @param v_pagenumber The vertical page number
7259     *
7260     * The page number starts from 0. 0 is the first page.
7261     * This returns the last page number among the pages.
7262     *
7263     * @see elm_scroller_current_page_get()
7264     * @see elm_scroller_page_show()
7265     * @see elm_scroller_page_brint_in()
7266     */
7267    EAPI void         elm_scroller_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
7268    /**
7269     * Show a specific virtual region within the scroller content object by page number.
7270     *
7271     * @param obj The scroller object
7272     * @param h_pagenumber The horizontal page number
7273     * @param v_pagenumber The vertical page number
7274     *
7275     * 0, 0 of the indicated page is located at the top-left of the viewport.
7276     * This will jump to the page directly without animation.
7277     *
7278     * Example of usage:
7279     *
7280     * @code
7281     * sc = elm_scroller_add(win);
7282     * elm_scroller_content_set(sc, content);
7283     * elm_scroller_page_relative_set(sc, 1, 0);
7284     * elm_scroller_current_page_get(sc, &h_page, &v_page);
7285     * elm_scroller_page_show(sc, h_page + 1, v_page);
7286     * @endcode
7287     *
7288     * @see elm_scroller_page_bring_in()
7289     */
7290    EAPI void         elm_scroller_page_show(Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
7291    /**
7292     * Show a specific virtual region within the scroller content object by page number.
7293     *
7294     * @param obj The scroller object
7295     * @param h_pagenumber The horizontal page number
7296     * @param v_pagenumber The vertical page number
7297     *
7298     * 0, 0 of the indicated page is located at the top-left of the viewport.
7299     * This will slide to the page with animation.
7300     *
7301     * Example of usage:
7302     *
7303     * @code
7304     * sc = elm_scroller_add(win);
7305     * elm_scroller_content_set(sc, content);
7306     * elm_scroller_page_relative_set(sc, 1, 0);
7307     * elm_scroller_last_page_get(sc, &h_page, &v_page);
7308     * elm_scroller_page_bring_in(sc, h_page, v_page);
7309     * @endcode
7310     *
7311     * @see elm_scroller_page_show()
7312     */
7313    EAPI void         elm_scroller_page_bring_in(Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
7314    /**
7315     * @brief Show a specific virtual region within the scroller content object.
7316     *
7317     * @param obj The scroller object
7318     * @param x X coordinate of the region
7319     * @param y Y coordinate of the region
7320     * @param w Width of the region
7321     * @param h Height of the region
7322     *
7323     * This will ensure all (or part if it does not fit) of the designated
7324     * region in the virtual content object (0, 0 starting at the top-left of the
7325     * virtual content object) is shown within the scroller. Unlike
7326     * elm_scroller_region_show(), this allow the scroller to "smoothly slide"
7327     * to this location (if configuration in general calls for transitions). It
7328     * may not jump immediately to the new location and make take a while and
7329     * show other content along the way.
7330     *
7331     * @see elm_scroller_region_show()
7332     */
7333    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);
7334    /**
7335     * @brief Set event propagation on a scroller
7336     *
7337     * @param obj The scroller object
7338     * @param propagation If propagation is enabled or not
7339     *
7340     * This enables or disabled event propagation from the scroller content to
7341     * the scroller and its parent. By default event propagation is disabled.
7342     */
7343    EAPI void         elm_scroller_propagate_events_set(Evas_Object *obj, Eina_Bool propagation) EINA_ARG_NONNULL(1);
7344    /**
7345     * @brief Get event propagation for a scroller
7346     *
7347     * @param obj The scroller object
7348     * @return The propagation state
7349     *
7350     * This gets the event propagation for a scroller.
7351     *
7352     * @see elm_scroller_propagate_events_set()
7353     */
7354    EAPI Eina_Bool    elm_scroller_propagate_events_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7355    /**
7356     * @brief Set scrolling gravity on a scroller
7357     *
7358     * @param obj The scroller object
7359     * @param x The scrolling horizontal gravity
7360     * @param y The scrolling vertical gravity
7361     *
7362     * The gravity, defines how the scroller will adjust its view
7363     * when the size of the scroller contents increase.
7364     *
7365     * The scroller will adjust the view to glue itself as follows.
7366     *
7367     *  x=0.0, for showing the left most region of the content.
7368     *  x=1.0, for showing the right most region of the content.
7369     *  y=0.0, for showing the bottom most region of the content.
7370     *  y=1.0, for showing the top most region of the content.
7371     *
7372     * Default values for x and y are 0.0
7373     */
7374    EAPI void         elm_scroller_gravity_set(Evas_Object *obj, double x, double y) EINA_ARG_NONNULL(1);
7375    /**
7376     * @brief Get scrolling gravity values for a scroller
7377     *
7378     * @param obj The scroller object
7379     * @param x The scrolling horizontal gravity
7380     * @param y The scrolling vertical gravity
7381     *
7382     * This gets gravity values for a scroller.
7383     *
7384     * @see elm_scroller_gravity_set()
7385     *
7386     */
7387    EAPI void         elm_scroller_gravity_get(const Evas_Object *obj, double *x, double *y) EINA_ARG_NONNULL(1);
7388    /**
7389     * @}
7390     */
7391
7392    /**
7393     * @defgroup Label Label
7394     *
7395     * @image html img/widget/label/preview-00.png
7396     * @image latex img/widget/label/preview-00.eps
7397     *
7398     * @brief Widget to display text, with simple html-like markup.
7399     *
7400     * The Label widget @b doesn't allow text to overflow its boundaries, if the
7401     * text doesn't fit the geometry of the label it will be ellipsized or be
7402     * cut. Elementary provides several themes for this widget:
7403     * @li default - No animation
7404     * @li marker - Centers the text in the label and make it bold by default
7405     * @li slide_long - The entire text appears from the right of the screen and
7406     * slides until it disappears in the left of the screen(reappering on the
7407     * right again).
7408     * @li slide_short - The text appears in the left of the label and slides to
7409     * the right to show the overflow. When all of the text has been shown the
7410     * position is reset.
7411     * @li slide_bounce - The text appears in the left of the label and slides to
7412     * the right to show the overflow. When all of the text has been shown the
7413     * animation reverses, moving the text to the left.
7414     *
7415     * Custom themes can of course invent new markup tags and style them any way
7416     * they like.
7417     *
7418     * The following signals may be emitted by the label widget:
7419     * @li "language,changed": The program's language changed.
7420     *
7421     * See @ref tutorial_label for a demonstration of how to use a label widget.
7422     * @{
7423     */
7424    /**
7425     * @brief Add a new label to the parent
7426     *
7427     * @param parent The parent object
7428     * @return The new object or NULL if it cannot be created
7429     */
7430    EAPI Evas_Object *elm_label_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7431    /**
7432     * @brief Set the label on the label object
7433     *
7434     * @param obj The label object
7435     * @param label The label will be used on the label object
7436     * @deprecated See elm_object_text_set()
7437     */
7438    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 */
7439    /**
7440     * @brief Get the label used on the label object
7441     *
7442     * @param obj The label object
7443     * @return The string inside the label
7444     * @deprecated See elm_object_text_get()
7445     */
7446    EINA_DEPRECATED EAPI const char *elm_label_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1); /* deprecated, use elm_object_text_get instead */
7447    /**
7448     * @brief Set the wrapping behavior of the label
7449     *
7450     * @param obj The label object
7451     * @param wrap To wrap text or not
7452     *
7453     * By default no wrapping is done. Possible values for @p wrap are:
7454     * @li ELM_WRAP_NONE - No wrapping
7455     * @li ELM_WRAP_CHAR - wrap between characters
7456     * @li ELM_WRAP_WORD - wrap between words
7457     * @li ELM_WRAP_MIXED - Word wrap, and if that fails, char wrap
7458     */
7459    EAPI void         elm_label_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
7460    /**
7461     * @brief Get the wrapping behavior of the label
7462     *
7463     * @param obj The label object
7464     * @return Wrap type
7465     *
7466     * @see elm_label_line_wrap_set()
7467     */
7468    EAPI Elm_Wrap_Type elm_label_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7469    /**
7470     * @brief Set wrap width of the label
7471     *
7472     * @param obj The label object
7473     * @param w The wrap width in pixels at a minimum where words need to wrap
7474     *
7475     * This function sets the maximum width size hint of the label.
7476     *
7477     * @warning This is only relevant if the label is inside a container.
7478     */
7479    EAPI void         elm_label_wrap_width_set(Evas_Object *obj, Evas_Coord w) EINA_ARG_NONNULL(1);
7480    /**
7481     * @brief Get wrap width of the label
7482     *
7483     * @param obj The label object
7484     * @return The wrap width in pixels at a minimum where words need to wrap
7485     *
7486     * @see elm_label_wrap_width_set()
7487     */
7488    EAPI Evas_Coord   elm_label_wrap_width_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7489    /**
7490     * @brief Set wrap height of the label
7491     *
7492     * @param obj The label object
7493     * @param h The wrap height in pixels at a minimum where words need to wrap
7494     *
7495     * This function sets the maximum height size hint of the label.
7496     *
7497     * @warning This is only relevant if the label is inside a container.
7498     */
7499    EAPI void         elm_label_wrap_height_set(Evas_Object *obj, Evas_Coord h) EINA_ARG_NONNULL(1);
7500    /**
7501     * @brief get wrap width of the label
7502     *
7503     * @param obj The label object
7504     * @return The wrap height in pixels at a minimum where words need to wrap
7505     */
7506    EAPI Evas_Coord   elm_label_wrap_height_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7507    /**
7508     * @brief Set the font size on the label object.
7509     *
7510     * @param obj The label object
7511     * @param size font size
7512     *
7513     * @warning NEVER use this. It is for hyper-special cases only. use styles
7514     * instead. e.g. "big", "medium", "small" - or better name them by use:
7515     * "title", "footnote", "quote" etc.
7516     */
7517    EAPI void         elm_label_fontsize_set(Evas_Object *obj, int fontsize) EINA_ARG_NONNULL(1);
7518    /**
7519     * @brief Set the text color on the label object
7520     *
7521     * @param obj The label object
7522     * @param r Red property background color of The label object
7523     * @param g Green property background color of The label object
7524     * @param b Blue property background color of The label object
7525     * @param a Alpha property background color of The label object
7526     *
7527     * @warning NEVER use this. It is for hyper-special cases only. use styles
7528     * instead. e.g. "big", "medium", "small" - or better name them by use:
7529     * "title", "footnote", "quote" etc.
7530     */
7531    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);
7532    /**
7533     * @brief Set the text align on the label object
7534     *
7535     * @param obj The label object
7536     * @param align align mode ("left", "center", "right")
7537     *
7538     * @warning NEVER use this. It is for hyper-special cases only. use styles
7539     * instead. e.g. "big", "medium", "small" - or better name them by use:
7540     * "title", "footnote", "quote" etc.
7541     */
7542    EAPI void         elm_label_text_align_set(Evas_Object *obj, const char *alignmode) EINA_ARG_NONNULL(1);
7543    /**
7544     * @brief Set background color of the label
7545     *
7546     * @param obj The label object
7547     * @param r Red property background color of The label object
7548     * @param g Green property background color of The label object
7549     * @param b Blue property background color of The label object
7550     * @param a Alpha property background alpha of The label object
7551     *
7552     * @warning NEVER use this. It is for hyper-special cases only. use styles
7553     * instead. e.g. "big", "medium", "small" - or better name them by use:
7554     * "title", "footnote", "quote" etc.
7555     */
7556    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);
7557    /**
7558     * @brief Set the ellipsis behavior of the label
7559     *
7560     * @param obj The label object
7561     * @param ellipsis To ellipsis text or not
7562     *
7563     * If set to true and the text doesn't fit in the label an ellipsis("...")
7564     * will be shown at the end of the widget.
7565     *
7566     * @warning This doesn't work with slide(elm_label_slide_set()) or if the
7567     * choosen wrap method was ELM_WRAP_WORD.
7568     */
7569    EAPI void         elm_label_ellipsis_set(Evas_Object *obj, Eina_Bool ellipsis) EINA_ARG_NONNULL(1);
7570    /**
7571     * @brief Set the text slide of the label
7572     *
7573     * @param obj The label object
7574     * @param slide To start slide or stop
7575     *
7576     * If set to true, the text of the label will slide/scroll through the length of
7577     * label.
7578     *
7579     * @warning This only works with the themes "slide_short", "slide_long" and
7580     * "slide_bounce".
7581     */
7582    EAPI void         elm_label_slide_set(Evas_Object *obj, Eina_Bool slide) EINA_ARG_NONNULL(1);
7583    /**
7584     * @brief Get the text slide mode of the label
7585     *
7586     * @param obj The label object
7587     * @return slide slide mode value
7588     *
7589     * @see elm_label_slide_set()
7590     */
7591    EAPI Eina_Bool    elm_label_slide_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
7592    /**
7593     * @brief Set the slide duration(speed) of the label
7594     *
7595     * @param obj The label object
7596     * @return The duration in seconds in moving text from slide begin position
7597     * to slide end position
7598     */
7599    EAPI void         elm_label_slide_duration_set(Evas_Object *obj, double duration) EINA_ARG_NONNULL(1);
7600    /**
7601     * @brief Get the slide duration(speed) of the label
7602     *
7603     * @param obj The label object
7604     * @return The duration time in moving text from slide begin position to slide end position
7605     *
7606     * @see elm_label_slide_duration_set()
7607     */
7608    EAPI double       elm_label_slide_duration_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
7609    /**
7610     * @}
7611     */
7612
7613    /**
7614     * @defgroup Toggle Toggle
7615     *
7616     * @image html img/widget/toggle/preview-00.png
7617     * @image latex img/widget/toggle/preview-00.eps
7618     *
7619     * @brief A toggle is a slider which can be used to toggle between
7620     * two values.  It has two states: on and off.
7621     *
7622     * This widget is deprecated. Please use elm_check_add() instead using the
7623     * toggle style like:
7624     * 
7625     * @code
7626     * obj = elm_check_add(parent);
7627     * elm_object_style_set(obj, "toggle");
7628     * elm_object_part_text_set(obj, "on", "ON");
7629     * elm_object_part_text_set(obj, "off", "OFF");
7630     * @endcode
7631     * 
7632     * Signals that you can add callbacks for are:
7633     * @li "changed" - Whenever the toggle value has been changed.  Is not called
7634     *                 until the toggle is released by the cursor (assuming it
7635     *                 has been triggered by the cursor in the first place).
7636     *
7637     * Default contents parts of the toggle widget that you can use for are:
7638     * @li "icon" - A icon of the toggle
7639     *
7640     * Default text parts of the toggle widget that you can use for are:
7641     * @li "elm.text" - Label of the toggle
7642     * 
7643     * @ref tutorial_toggle show how to use a toggle.
7644     * @{
7645     */
7646    /**
7647     * @brief Add a toggle to @p parent.
7648     *
7649     * @param parent The parent object
7650     *
7651     * @return The toggle object
7652     */
7653    EINA_DEPRECATED EAPI Evas_Object *elm_toggle_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7654    /**
7655     * @brief Sets the label to be displayed with the toggle.
7656     *
7657     * @param obj The toggle object
7658     * @param label The label to be displayed
7659     *
7660     * @deprecated use elm_object_text_set() instead.
7661     */
7662    EINA_DEPRECATED EAPI void         elm_toggle_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7663    /**
7664     * @brief Gets the label of the toggle
7665     *
7666     * @param obj  toggle object
7667     * @return The label of the toggle
7668     *
7669     * @deprecated use elm_object_text_get() instead.
7670     */
7671    EINA_DEPRECATED EAPI const char  *elm_toggle_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7672    /**
7673     * @brief Set the icon used for the toggle
7674     *
7675     * @param obj The toggle object
7676     * @param icon The icon object for the button
7677     *
7678     * Once the icon object is set, a previously set one will be deleted
7679     * If you want to keep that old content object, use the
7680     * elm_toggle_icon_unset() function.
7681     *
7682     * @deprecated use elm_object_part_content_set() instead.
7683     */
7684    EINA_DEPRECATED EAPI void         elm_toggle_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
7685    /**
7686     * @brief Get the icon used for the toggle
7687     *
7688     * @param obj The toggle object
7689     * @return The icon object that is being used
7690     *
7691     * Return the icon object which is set for this widget.
7692     *
7693     * @see elm_toggle_icon_set()
7694     *
7695     * @deprecated use elm_object_part_content_get() instead.
7696     */
7697    EINA_DEPRECATED EAPI Evas_Object *elm_toggle_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7698    /**
7699     * @brief Unset the icon used for the toggle
7700     *
7701     * @param obj The toggle object
7702     * @return The icon object that was being used
7703     *
7704     * Unparent and return the icon object which was set for this widget.
7705     *
7706     * @see elm_toggle_icon_set()
7707     *
7708     * @deprecated use elm_object_part_content_unset() instead.
7709     */
7710    EINA_DEPRECATED EAPI Evas_Object *elm_toggle_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7711    /**
7712     * @brief Sets the labels to be associated with the on and off states of the toggle.
7713     *
7714     * @param obj The toggle object
7715     * @param onlabel The label displayed when the toggle is in the "on" state
7716     * @param offlabel The label displayed when the toggle is in the "off" state
7717     *
7718     * @deprecated use elm_object_part_text_set() for "on" and "off" parts
7719     * instead.
7720     */
7721    EINA_DEPRECATED EAPI void         elm_toggle_states_labels_set(Evas_Object *obj, const char *onlabel, const char *offlabel) EINA_ARG_NONNULL(1);
7722    /**
7723     * @brief Gets the labels associated with the on and off states of the
7724     * toggle.
7725     *
7726     * @param obj The toggle object
7727     * @param onlabel A char** to place the onlabel of @p obj into
7728     * @param offlabel A char** to place the offlabel of @p obj into
7729     *
7730     * @deprecated use elm_object_part_text_get() for "on" and "off" parts
7731     * instead.
7732     */
7733    EINA_DEPRECATED EAPI void         elm_toggle_states_labels_get(const Evas_Object *obj, const char **onlabel, const char **offlabel) EINA_ARG_NONNULL(1);
7734    /**
7735     * @brief Sets the state of the toggle to @p state.
7736     *
7737     * @param obj The toggle object
7738     * @param state The state of @p obj
7739     *
7740     * @deprecated use elm_check_state_set() instead.
7741     */
7742    EINA_DEPRECATED EAPI void         elm_toggle_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
7743    /**
7744     * @brief Gets the state of the toggle to @p state.
7745     *
7746     * @param obj The toggle object
7747     * @return The state of @p obj
7748     *
7749     * @deprecated use elm_check_state_get() instead.
7750     */
7751    EINA_DEPRECATED EAPI Eina_Bool    elm_toggle_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7752    /**
7753     * @brief Sets the state pointer of the toggle to @p statep.
7754     *
7755     * @param obj The toggle object
7756     * @param statep The state pointer of @p obj
7757     *
7758     * @deprecated use elm_check_state_pointer_set() instead.
7759     */
7760    EINA_DEPRECATED EAPI void         elm_toggle_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
7761    /**
7762     * @}
7763     */
7764
7765    /**
7766     * @defgroup Frame Frame
7767     *
7768     * @image html img/widget/frame/preview-00.png
7769     * @image latex img/widget/frame/preview-00.eps
7770     *
7771     * @brief Frame is a widget that holds some content and has a title.
7772     *
7773     * The default look is a frame with a title, but Frame supports multple
7774     * styles:
7775     * @li default
7776     * @li pad_small
7777     * @li pad_medium
7778     * @li pad_large
7779     * @li pad_huge
7780     * @li outdent_top
7781     * @li outdent_bottom
7782     *
7783     * Of all this styles only default shows the title. Frame emits no signals.
7784     *
7785     * Default contents parts of the frame widget that you can use for are:
7786     * @li "default" - A content of the frame
7787     *
7788     * Default text parts of the frame widget that you can use for are:
7789     * @li "elm.text" - Label of the frame
7790     *
7791     * For a detailed example see the @ref tutorial_frame.
7792     *
7793     * @{
7794     */
7795    /**
7796     * @brief Add a new frame to the parent
7797     *
7798     * @param parent The parent object
7799     * @return The new object or NULL if it cannot be created
7800     */
7801    EAPI Evas_Object *elm_frame_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7802    /**
7803     * @brief Set the frame label
7804     *
7805     * @param obj The frame object
7806     * @param label The label of this frame object
7807     *
7808     * @deprecated use elm_object_text_set() instead.
7809     */
7810    EINA_DEPRECATED EAPI void         elm_frame_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7811    /**
7812     * @brief Get the frame label
7813     *
7814     * @param obj The frame object
7815     *
7816     * @return The label of this frame objet or NULL if unable to get frame
7817     *
7818     * @deprecated use elm_object_text_get() instead.
7819     */
7820    EINA_DEPRECATED EAPI const char  *elm_frame_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7821    /**
7822     * @brief Set the content of the frame widget
7823     *
7824     * Once the content object is set, a previously set one will be deleted.
7825     * If you want to keep that old content object, use the
7826     * elm_frame_content_unset() function.
7827     *
7828     * @param obj The frame object
7829     * @param content The content will be filled in this frame object
7830     *
7831     * @deprecated use elm_object_content_set() instead.
7832     */
7833    EINA_DEPRECATED EAPI void         elm_frame_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
7834    /**
7835     * @brief Get the content of the frame widget
7836     *
7837     * Return the content object which is set for this widget
7838     *
7839     * @param obj The frame object
7840     * @return The content that is being used
7841     *
7842     * @deprecated use elm_object_content_get() instead.
7843     */
7844    EINA_DEPRECATED EAPI Evas_Object *elm_frame_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7845    /**
7846     * @brief Unset the content of the frame widget
7847     *
7848     * Unparent and return the content object which was set for this widget
7849     *
7850     * @param obj The frame object
7851     * @return The content that was being used
7852     *
7853     * @deprecated use elm_object_content_unset() instead.
7854     */
7855    EINA_DEPRECATED EAPI Evas_Object *elm_frame_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7856    /**
7857     * @}
7858     */
7859
7860    /**
7861     * @defgroup Table Table
7862     *
7863     * A container widget to arrange other widgets in a table where items can
7864     * also span multiple columns or rows - even overlap (and then be raised or
7865     * lowered accordingly to adjust stacking if they do overlap).
7866     *
7867     * For a Table widget the row/column count is not fixed.
7868     * The table widget adjusts itself when subobjects are added to it dynamically.
7869     *
7870     * The followin are examples of how to use a table:
7871     * @li @ref tutorial_table_01
7872     * @li @ref tutorial_table_02
7873     *
7874     * @{
7875     */
7876    /**
7877     * @brief Add a new table to the parent
7878     *
7879     * @param parent The parent object
7880     * @return The new object or NULL if it cannot be created
7881     */
7882    EAPI Evas_Object *elm_table_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7883    /**
7884     * @brief Set the homogeneous layout in the table
7885     *
7886     * @param obj The layout object
7887     * @param homogeneous A boolean to set if the layout is homogeneous in the
7888     * table (EINA_TRUE = homogeneous,  EINA_FALSE = no homogeneous)
7889     */
7890    EAPI void         elm_table_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
7891    /**
7892     * @brief Get the current table homogeneous mode.
7893     *
7894     * @param obj The table object
7895     * @return A boolean to indicating if the layout is homogeneous in the table
7896     * (EINA_TRUE = homogeneous,  EINA_FALSE = no homogeneous)
7897     */
7898    EAPI Eina_Bool    elm_table_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7899    /**
7900     * @warning <b>Use elm_table_homogeneous_set() instead</b>
7901     */
7902    EINA_DEPRECATED EAPI void elm_table_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
7903    /**
7904     * @warning <b>Use elm_table_homogeneous_get() instead</b>
7905     */
7906    EINA_DEPRECATED EAPI Eina_Bool elm_table_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7907    /**
7908     * @brief Set padding between cells.
7909     *
7910     * @param obj The layout object.
7911     * @param horizontal set the horizontal padding.
7912     * @param vertical set the vertical padding.
7913     *
7914     * Default value is 0.
7915     */
7916    EAPI void         elm_table_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
7917    /**
7918     * @brief Get padding between cells.
7919     *
7920     * @param obj The layout object.
7921     * @param horizontal set the horizontal padding.
7922     * @param vertical set the vertical padding.
7923     */
7924    EAPI void         elm_table_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
7925    /**
7926     * @brief Add a subobject on the table with the coordinates passed
7927     *
7928     * @param obj The table object
7929     * @param subobj The subobject to be added to the table
7930     * @param x Row number
7931     * @param y Column number
7932     * @param w rowspan
7933     * @param h colspan
7934     *
7935     * @note All positioning inside the table is relative to rows and columns, so
7936     * a value of 0 for x and y, means the top left cell of the table, and a
7937     * value of 1 for w and h means @p subobj only takes that 1 cell.
7938     */
7939    EAPI void         elm_table_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
7940    /**
7941     * @brief Remove child from table.
7942     *
7943     * @param obj The table object
7944     * @param subobj The subobject
7945     */
7946    EAPI void         elm_table_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
7947    /**
7948     * @brief Faster way to remove all child objects from a table object.
7949     *
7950     * @param obj The table object
7951     * @param clear If true, will delete children, else just remove from table.
7952     */
7953    EAPI void         elm_table_clear(Evas_Object *obj, Eina_Bool clear) EINA_ARG_NONNULL(1);
7954    /**
7955     * @brief Set the packing location of an existing child of the table
7956     *
7957     * @param subobj The subobject to be modified in the table
7958     * @param x Row number
7959     * @param y Column number
7960     * @param w rowspan
7961     * @param h colspan
7962     *
7963     * Modifies the position of an object already in the table.
7964     *
7965     * @note All positioning inside the table is relative to rows and columns, so
7966     * a value of 0 for x and y, means the top left cell of the table, and a
7967     * value of 1 for w and h means @p subobj only takes that 1 cell.
7968     */
7969    EAPI void         elm_table_pack_set(Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
7970    /**
7971     * @brief Get the packing location of an existing child of the table
7972     *
7973     * @param subobj The subobject to be modified in the table
7974     * @param x Row number
7975     * @param y Column number
7976     * @param w rowspan
7977     * @param h colspan
7978     *
7979     * @see elm_table_pack_set()
7980     */
7981    EAPI void         elm_table_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
7982    /**
7983     * @}
7984     */
7985
7986    /* TEMPORARY: DOCS WILL BE FILLED IN WITH CNP/SED */
7987    typedef struct Elm_Gen_Item Elm_Gen_Item;
7988    typedef struct _Elm_Gen_Item_Class Elm_Gen_Item_Class;
7989    typedef struct _Elm_Gen_Item_Class_Func Elm_Gen_Item_Class_Func; /**< Class functions for gen item classes. */
7990    typedef char        *(*Elm_Gen_Item_Label_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< Label fetching class function for gen item classes. */
7991    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. */
7992    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. */
7993    typedef void         (*Elm_Gen_Item_Del_Cb)      (void *data, Evas_Object *obj); /**< Deletion class function for gen item classes. */
7994    struct _Elm_Gen_Item_Class
7995      {
7996         const char             *item_style;
7997         struct _Elm_Gen_Item_Class_Func
7998           {
7999              Elm_Gen_Item_Label_Get_Cb label_get;
8000              Elm_Gen_Item_Content_Get_Cb  content_get;
8001              Elm_Gen_Item_State_Get_Cb state_get;
8002              Elm_Gen_Item_Del_Cb       del;
8003           } func;
8004      };
8005    EAPI void elm_gen_clear(Evas_Object *obj);
8006    EAPI void elm_gen_item_selected_set(Elm_Gen_Item *it, Eina_Bool selected);
8007    EAPI Eina_Bool elm_gen_item_selected_get(const Elm_Gen_Item *it);
8008    EAPI void elm_gen_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select);
8009    EAPI Eina_Bool elm_gen_always_select_mode_get(const Evas_Object *obj);
8010    EAPI void elm_gen_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select);
8011    EAPI Eina_Bool elm_gen_no_select_mode_get(const Evas_Object *obj);
8012    EAPI void elm_gen_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
8013    EAPI void elm_gen_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
8014    EAPI void elm_gen_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel);
8015    EAPI void elm_gen_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel);
8016    EAPI void elm_gen_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize);
8017    EAPI void elm_gen_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber);
8018    EAPI void elm_gen_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber);
8019    EAPI void elm_gen_page_show(const Evas_Object *obj, int h_pagenumber, int v_pagenumber);
8020    EAPI void elm_gen_page_bring_in(const Evas_Object *obj, int h_pagenumber, int v_pagenumber);
8021    EAPI Elm_Gen_Item *elm_gen_first_item_get(const Evas_Object *obj);
8022    EAPI Elm_Gen_Item *elm_gen_last_item_get(const Evas_Object *obj);
8023    EAPI Elm_Gen_Item *elm_gen_item_next_get(const Elm_Gen_Item *it);
8024    EAPI Elm_Gen_Item *elm_gen_item_prev_get(const Elm_Gen_Item *it);
8025    EAPI Evas_Object *elm_gen_item_widget_get(const Elm_Gen_Item *it);
8026
8027    /**
8028     * @defgroup Gengrid Gengrid (Generic grid)
8029     *
8030     * This widget aims to position objects in a grid layout while
8031     * actually creating and rendering only the visible ones, using the
8032     * same idea as the @ref Genlist "genlist": the user defines a @b
8033     * class for each item, specifying functions that will be called at
8034     * object creation, deletion, etc. When those items are selected by
8035     * the user, a callback function is issued. Users may interact with
8036     * a gengrid via the mouse (by clicking on items to select them and
8037     * clicking on the grid's viewport and swiping to pan the whole
8038     * view) or via the keyboard, navigating through item with the
8039     * arrow keys.
8040     *
8041     * @section Gengrid_Layouts Gengrid layouts
8042     *
8043     * Gengrid may layout its items in one of two possible layouts:
8044     * - horizontal or
8045     * - vertical.
8046     *
8047     * When in "horizontal mode", items will be placed in @b columns,
8048     * from top to bottom and, when the space for a column is filled,
8049     * another one is started on the right, thus expanding the grid
8050     * horizontally, making for horizontal scrolling. When in "vertical
8051     * mode" , though, items will be placed in @b rows, from left to
8052     * right and, when the space for a row is filled, another one is
8053     * started below, thus expanding the grid vertically (and making
8054     * for vertical scrolling).
8055     *
8056     * @section Gengrid_Items Gengrid items
8057     *
8058     * An item in a gengrid can have 0 or more text labels (they can be
8059     * regular text or textblock Evas objects - that's up to the style
8060     * to determine), 0 or more icons (which are simply objects
8061     * swallowed into the gengrid item's theming Edje object) and 0 or
8062     * more <b>boolean states</b>, which have the behavior left to the
8063     * user to define. The Edje part names for each of these properties
8064     * will be looked up, in the theme file for the gengrid, under the
8065     * Edje (string) data items named @c "labels", @c "icons" and @c
8066     * "states", respectively. For each of those properties, if more
8067     * than one part is provided, they must have names listed separated
8068     * by spaces in the data fields. For the default gengrid item
8069     * theme, we have @b one label part (@c "elm.text"), @b two icon
8070     * parts (@c "elm.swalllow.icon" and @c "elm.swallow.end") and @b
8071     * no state parts.
8072     *
8073     * A gengrid item may be at one of several styles. Elementary
8074     * provides one by default - "default", but this can be extended by
8075     * system or application custom themes/overlays/extensions (see
8076     * @ref Theme "themes" for more details).
8077     *
8078     * @section Gengrid_Item_Class Gengrid item classes
8079     *
8080     * In order to have the ability to add and delete items on the fly,
8081     * gengrid implements a class (callback) system where the
8082     * application provides a structure with information about that
8083     * type of item (gengrid may contain multiple different items with
8084     * different classes, states and styles). Gengrid will call the
8085     * functions in this struct (methods) when an item is "realized"
8086     * (i.e., created dynamically, while the user is scrolling the
8087     * grid). All objects will simply be deleted when no longer needed
8088     * with evas_object_del(). The #Elm_GenGrid_Item_Class structure
8089     * contains the following members:
8090     * - @c item_style - This is a constant string and simply defines
8091     * the name of the item style. It @b must be specified and the
8092     * default should be @c "default".
8093     * - @c func.label_get - This function is called when an item
8094     * object is actually created. The @c data parameter will point to
8095     * the same data passed to elm_gengrid_item_append() and related
8096     * item creation functions. The @c obj parameter is the gengrid
8097     * object itself, while the @c part one is the name string of one
8098     * of the existing text parts in the Edje group implementing the
8099     * item's theme. This function @b must return a strdup'()ed string,
8100     * as the caller will free() it when done. See
8101     * #Elm_Gengrid_Item_Label_Get_Cb.
8102     * - @c func.content_get - This function is called when an item object
8103     * is actually created. The @c data parameter will point to the
8104     * same data passed to elm_gengrid_item_append() and related item
8105     * creation functions. The @c obj parameter is the gengrid object
8106     * itself, while the @c part one is the name string of one of the
8107     * existing (content) swallow parts in the Edje group implementing the
8108     * item's theme. It must return @c NULL, when no content is desired,
8109     * or a valid object handle, otherwise. The object will be deleted
8110     * by the gengrid on its deletion or when the item is "unrealized".
8111     * See #Elm_Gengrid_Item_Content_Get_Cb.
8112     * - @c func.state_get - This function is called when an item
8113     * object is actually created. The @c data parameter will point to
8114     * the same data passed to elm_gengrid_item_append() and related
8115     * item creation functions. The @c obj parameter is the gengrid
8116     * object itself, while the @c part one is the name string of one
8117     * of the state parts in the Edje group implementing the item's
8118     * theme. Return @c EINA_FALSE for false/off or @c EINA_TRUE for
8119     * true/on. Gengrids will emit a signal to its theming Edje object
8120     * with @c "elm,state,XXX,active" and @c "elm" as "emission" and
8121     * "source" arguments, respectively, when the state is true (the
8122     * default is false), where @c XXX is the name of the (state) part.
8123     * See #Elm_Gengrid_Item_State_Get_Cb.
8124     * - @c func.del - This is called when elm_gengrid_item_del() is
8125     * called on an item or elm_gengrid_clear() is called on the
8126     * gengrid. This is intended for use when gengrid items are
8127     * deleted, so any data attached to the item (e.g. its data
8128     * parameter on creation) can be deleted. See #Elm_Gengrid_Item_Del_Cb.
8129     *
8130     * @section Gengrid_Usage_Hints Usage hints
8131     *
8132     * If the user wants to have multiple items selected at the same
8133     * time, elm_gengrid_multi_select_set() will permit it. If the
8134     * gengrid is single-selection only (the default), then
8135     * elm_gengrid_select_item_get() will return the selected item or
8136     * @c NULL, if none is selected. If the gengrid is under
8137     * multi-selection, then elm_gengrid_selected_items_get() will
8138     * return a list (that is only valid as long as no items are
8139     * modified (added, deleted, selected or unselected) of child items
8140     * on a gengrid.
8141     *
8142     * If an item changes (internal (boolean) state, label or content 
8143     * changes), then use elm_gengrid_item_update() to have gengrid
8144     * update the item with the new state. A gengrid will re-"realize"
8145     * the item, thus calling the functions in the
8146     * #Elm_Gengrid_Item_Class set for that item.
8147     *
8148     * To programmatically (un)select an item, use
8149     * elm_gengrid_item_selected_set(). To get its selected state use
8150     * elm_gengrid_item_selected_get(). To make an item disabled
8151     * (unable to be selected and appear differently) use
8152     * elm_gengrid_item_disabled_set() to set this and
8153     * elm_gengrid_item_disabled_get() to get the disabled state.
8154     *
8155     * Grid cells will only have their selection smart callbacks called
8156     * when firstly getting selected. Any further clicks will do
8157     * nothing, unless you enable the "always select mode", with
8158     * elm_gengrid_always_select_mode_set(), thus making every click to
8159     * issue selection callbacks. elm_gengrid_no_select_mode_set() will
8160     * turn off the ability to select items entirely in the widget and
8161     * they will neither appear selected nor call the selection smart
8162     * callbacks.
8163     *
8164     * Remember that you can create new styles and add your own theme
8165     * augmentation per application with elm_theme_extension_add(). If
8166     * you absolutely must have a specific style that overrides any
8167     * theme the user or system sets up you can use
8168     * elm_theme_overlay_add() to add such a file.
8169     *
8170     * @section Gengrid_Smart_Events Gengrid smart events
8171     *
8172     * Smart events that you can add callbacks for are:
8173     * - @c "activated" - The user has double-clicked or pressed
8174     *   (enter|return|spacebar) on an item. The @c event_info parameter
8175     *   is the gengrid item that was activated.
8176     * - @c "clicked,double" - The user has double-clicked an item.
8177     *   The @c event_info parameter is the gengrid item that was double-clicked.
8178     * - @c "longpressed" - This is called when the item is pressed for a certain
8179     *   amount of time. By default it's 1 second.
8180     * - @c "selected" - The user has made an item selected. The
8181     *   @c event_info parameter is the gengrid item that was selected.
8182     * - @c "unselected" - The user has made an item unselected. The
8183     *   @c event_info parameter is the gengrid item that was unselected.
8184     * - @c "realized" - This is called when the item in the gengrid
8185     *   has its implementing Evas object instantiated, de facto. @c
8186     *   event_info is the gengrid item that was created. The object
8187     *   may be deleted at any time, so it is highly advised to the
8188     *   caller @b not to use the object pointer returned from
8189     *   elm_gengrid_item_object_get(), because it may point to freed
8190     *   objects.
8191     * - @c "unrealized" - This is called when the implementing Evas
8192     *   object for this item is deleted. @c event_info is the gengrid
8193     *   item that was deleted.
8194     * - @c "changed" - Called when an item is added, removed, resized
8195     *   or moved and when the gengrid is resized or gets "horizontal"
8196     *   property changes.
8197     * - @c "scroll,anim,start" - This is called when scrolling animation has
8198     *   started.
8199     * - @c "scroll,anim,stop" - This is called when scrolling animation has
8200     *   stopped.
8201     * - @c "drag,start,up" - Called when the item in the gengrid has
8202     *   been dragged (not scrolled) up.
8203     * - @c "drag,start,down" - Called when the item in the gengrid has
8204     *   been dragged (not scrolled) down.
8205     * - @c "drag,start,left" - Called when the item in the gengrid has
8206     *   been dragged (not scrolled) left.
8207     * - @c "drag,start,right" - Called when the item in the gengrid has
8208     *   been dragged (not scrolled) right.
8209     * - @c "drag,stop" - Called when the item in the gengrid has
8210     *   stopped being dragged.
8211     * - @c "drag" - Called when the item in the gengrid is being
8212     *   dragged.
8213     * - @c "scroll" - called when the content has been scrolled
8214     *   (moved).
8215     * - @c "scroll,drag,start" - called when dragging the content has
8216     *   started.
8217     * - @c "scroll,drag,stop" - called when dragging the content has
8218     *   stopped.
8219     * - @c "edge,top" - This is called when the gengrid is scrolled until
8220     *   the top edge.
8221     * - @c "edge,bottom" - This is called when the gengrid is scrolled
8222     *   until the bottom edge.
8223     * - @c "edge,left" - This is called when the gengrid is scrolled
8224     *   until the left edge.
8225     * - @c "edge,right" - This is called when the gengrid is scrolled
8226     *   until the right edge.
8227     *
8228     * List of gengrid examples:
8229     * @li @ref gengrid_example
8230     */
8231
8232    /**
8233     * @addtogroup Gengrid
8234     * @{
8235     */
8236
8237    typedef struct _Elm_Gengrid_Item_Class Elm_Gengrid_Item_Class; /**< Gengrid item class definition structs */
8238    #define Elm_Gengrid_Item_Class Elm_Gen_Item_Class
8239    typedef struct _Elm_Gengrid_Item Elm_Gengrid_Item; /**< Gengrid item handles */
8240    #define Elm_Gengrid_Item Elm_Gen_Item /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
8241    typedef struct _Elm_Gengrid_Item_Class_Func Elm_Gengrid_Item_Class_Func; /**< Class functions for gengrid item classes. */
8242    /**
8243     * Label fetching class function for Elm_Gen_Item_Class.
8244     * @param data The data passed in the item creation function
8245     * @param obj The base widget object
8246     * @param part The part name of the swallow
8247     * @return The allocated (NOT stringshared) string to set as the label
8248     */
8249    typedef char        *(*Elm_Gengrid_Item_Label_Get_Cb) (void *data, Evas_Object *obj, const char *part);
8250    /**
8251     * Content (swallowed object) fetching class function for Elm_Gen_Item_Class.
8252     * @param data The data passed in the item creation function
8253     * @param obj The base widget object
8254     * @param part The part name of the swallow
8255     * @return The content object to swallow
8256     */
8257    typedef Evas_Object *(*Elm_Gengrid_Item_Content_Get_Cb)  (void *data, Evas_Object *obj, const char *part);
8258    /**
8259     * State fetching class function for Elm_Gen_Item_Class.
8260     * @param data The data passed in the item creation function
8261     * @param obj The base widget object
8262     * @param part The part name of the swallow
8263     * @return The hell if I know
8264     */
8265    typedef Eina_Bool    (*Elm_Gengrid_Item_State_Get_Cb) (void *data, Evas_Object *obj, const char *part);
8266    /**
8267     * Deletion class function for Elm_Gen_Item_Class.
8268     * @param data The data passed in the item creation function
8269     * @param obj The base widget object
8270     */
8271    typedef void         (*Elm_Gengrid_Item_Del_Cb)      (void *data, Evas_Object *obj);
8272
8273    /**
8274     * @struct _Elm_Gengrid_Item_Class
8275     *
8276     * Gengrid item class definition. See @ref Gengrid_Item_Class for
8277     * field details.
8278     */
8279    struct _Elm_Gengrid_Item_Class
8280      {
8281         const char             *item_style;
8282         struct _Elm_Gengrid_Item_Class_Func
8283           {
8284              Elm_Gengrid_Item_Label_Get_Cb label_get;
8285              Elm_Gengrid_Item_Content_Get_Cb content_get;
8286              Elm_Gengrid_Item_State_Get_Cb state_get;
8287              Elm_Gengrid_Item_Del_Cb       del;
8288           } func;
8289      }; /**< #Elm_Gengrid_Item_Class member definitions */
8290    #define Elm_Gengrid_Item_Class_Func Elm_Gen_Item_Class_Func
8291    /**
8292     * Add a new gengrid widget to the given parent Elementary
8293     * (container) object
8294     *
8295     * @param parent The parent object
8296     * @return a new gengrid widget handle or @c NULL, on errors
8297     *
8298     * This function inserts a new gengrid widget on the canvas.
8299     *
8300     * @see elm_gengrid_item_size_set()
8301     * @see elm_gengrid_group_item_size_set()
8302     * @see elm_gengrid_horizontal_set()
8303     * @see elm_gengrid_item_append()
8304     * @see elm_gengrid_item_del()
8305     * @see elm_gengrid_clear()
8306     *
8307     * @ingroup Gengrid
8308     */
8309    EAPI Evas_Object       *elm_gengrid_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
8310
8311    /**
8312     * Set the size for the items of a given gengrid widget
8313     *
8314     * @param obj The gengrid object.
8315     * @param w The items' width.
8316     * @param h The items' height;
8317     *
8318     * A gengrid, after creation, has still no information on the size
8319     * to give to each of its cells. So, you most probably will end up
8320     * with squares one @ref Fingers "finger" wide, the default
8321     * size. Use this function to force a custom size for you items,
8322     * making them as big as you wish.
8323     *
8324     * @see elm_gengrid_item_size_get()
8325     *
8326     * @ingroup Gengrid
8327     */
8328    EAPI void               elm_gengrid_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
8329
8330    /**
8331     * Get the size set for the items of a given gengrid widget
8332     *
8333     * @param obj The gengrid object.
8334     * @param w Pointer to a variable where to store the items' width.
8335     * @param h Pointer to a variable where to store the items' height.
8336     *
8337     * @note Use @c NULL pointers on the size values you're not
8338     * interested in: they'll be ignored by the function.
8339     *
8340     * @see elm_gengrid_item_size_get() for more details
8341     *
8342     * @ingroup Gengrid
8343     */
8344    EAPI void               elm_gengrid_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
8345
8346    /**
8347     * Set the size for the group items of a given gengrid widget
8348     *
8349     * @param obj The gengrid object.
8350     * @param w The group items' width.
8351     * @param h The group items' height;
8352     *
8353     * A gengrid, after creation, has still no information on the size
8354     * to give to each of its cells. So, you most probably will end up
8355     * with squares one @ref Fingers "finger" wide, the default
8356     * size. Use this function to force a custom size for you group items,
8357     * making them as big as you wish.
8358     *
8359     * @see elm_gengrid_group_item_size_get()
8360     *
8361     * @ingroup Gengrid
8362     */
8363    EAPI void               elm_gengrid_group_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
8364
8365    /**
8366     * Get the size set for the group items of a given gengrid widget
8367     *
8368     * @param obj The gengrid object.
8369     * @param w Pointer to a variable where to store the group items' width.
8370     * @param h Pointer to a variable where to store the group items' height.
8371     *
8372     * @note Use @c NULL pointers on the size values you're not
8373     * interested in: they'll be ignored by the function.
8374     *
8375     * @see elm_gengrid_group_item_size_get() for more details
8376     *
8377     * @ingroup Gengrid
8378     */
8379    EAPI void               elm_gengrid_group_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
8380
8381    /**
8382     * Set the items grid's alignment within a given gengrid widget
8383     *
8384     * @param obj The gengrid object.
8385     * @param align_x Alignment in the horizontal axis (0 <= align_x <= 1).
8386     * @param align_y Alignment in the vertical axis (0 <= align_y <= 1).
8387     *
8388     * This sets the alignment of the whole grid of items of a gengrid
8389     * within its given viewport. By default, those values are both
8390     * 0.5, meaning that the gengrid will have its items grid placed
8391     * exactly in the middle of its viewport.
8392     *
8393     * @note If given alignment values are out of the cited ranges,
8394     * they'll be changed to the nearest boundary values on the valid
8395     * ranges.
8396     *
8397     * @see elm_gengrid_align_get()
8398     *
8399     * @ingroup Gengrid
8400     */
8401    EAPI void               elm_gengrid_align_set(Evas_Object *obj, double align_x, double align_y) EINA_ARG_NONNULL(1);
8402
8403    /**
8404     * Get the items grid's alignment values within a given gengrid
8405     * widget
8406     *
8407     * @param obj The gengrid object.
8408     * @param align_x Pointer to a variable where to store the
8409     * horizontal alignment.
8410     * @param align_y Pointer to a variable where to store the vertical
8411     * alignment.
8412     *
8413     * @note Use @c NULL pointers on the alignment values you're not
8414     * interested in: they'll be ignored by the function.
8415     *
8416     * @see elm_gengrid_align_set() for more details
8417     *
8418     * @ingroup Gengrid
8419     */
8420    EAPI void               elm_gengrid_align_get(const Evas_Object *obj, double *align_x, double *align_y) EINA_ARG_NONNULL(1);
8421
8422    /**
8423     * Set whether a given gengrid widget is or not able have items
8424     * @b reordered
8425     *
8426     * @param obj The gengrid object
8427     * @param reorder_mode Use @c EINA_TRUE to turn reoderding on,
8428     * @c EINA_FALSE to turn it off
8429     *
8430     * If a gengrid is set to allow reordering, a click held for more
8431     * than 0.5 over a given item will highlight it specially,
8432     * signalling the gengrid has entered the reordering state. From
8433     * that time on, the user will be able to, while still holding the
8434     * mouse button down, move the item freely in the gengrid's
8435     * viewport, replacing to said item to the locations it goes to.
8436     * The replacements will be animated and, whenever the user
8437     * releases the mouse button, the item being replaced gets a new
8438     * definitive place in the grid.
8439     *
8440     * @see elm_gengrid_reorder_mode_get()
8441     *
8442     * @ingroup Gengrid
8443     */
8444    EAPI void               elm_gengrid_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
8445
8446    /**
8447     * Get whether a given gengrid widget is or not able have items
8448     * @b reordered
8449     *
8450     * @param obj The gengrid object
8451     * @return @c EINA_TRUE, if reoderding is on, @c EINA_FALSE if it's
8452     * off
8453     *
8454     * @see elm_gengrid_reorder_mode_set() for more details
8455     *
8456     * @ingroup Gengrid
8457     */
8458    EAPI Eina_Bool          elm_gengrid_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8459
8460    /**
8461     * Append a new item in a given gengrid widget.
8462     *
8463     * @param obj The gengrid object.
8464     * @param gic The item class for the item.
8465     * @param data The item data.
8466     * @param func Convenience function called when the item is
8467     * selected.
8468     * @param func_data Data to be passed to @p func.
8469     * @return A handle to the item added or @c NULL, on errors.
8470     *
8471     * This adds an item to the beginning of the gengrid.
8472     *
8473     * @see elm_gengrid_item_prepend()
8474     * @see elm_gengrid_item_insert_before()
8475     * @see elm_gengrid_item_insert_after()
8476     * @see elm_gengrid_item_del()
8477     *
8478     * @ingroup Gengrid
8479     */
8480    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);
8481
8482    /**
8483     * Prepend a new item in a given gengrid widget.
8484     *
8485     * @param obj The gengrid object.
8486     * @param gic The item class for the item.
8487     * @param data The item data.
8488     * @param func Convenience function called when the item is
8489     * selected.
8490     * @param func_data Data to be passed to @p func.
8491     * @return A handle to the item added or @c NULL, on errors.
8492     *
8493     * This adds an item to the end of the gengrid.
8494     *
8495     * @see elm_gengrid_item_append()
8496     * @see elm_gengrid_item_insert_before()
8497     * @see elm_gengrid_item_insert_after()
8498     * @see elm_gengrid_item_del()
8499     *
8500     * @ingroup Gengrid
8501     */
8502    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);
8503
8504    /**
8505     * Insert an item before another in a gengrid widget
8506     *
8507     * @param obj The gengrid object.
8508     * @param gic The item class for the item.
8509     * @param data The item data.
8510     * @param relative The item to place this new one before.
8511     * @param func Convenience function called when the item is
8512     * selected.
8513     * @param func_data Data to be passed to @p func.
8514     * @return A handle to the item added or @c NULL, on errors.
8515     *
8516     * This inserts an item before another in the gengrid.
8517     *
8518     * @see elm_gengrid_item_append()
8519     * @see elm_gengrid_item_prepend()
8520     * @see elm_gengrid_item_insert_after()
8521     * @see elm_gengrid_item_del()
8522     *
8523     * @ingroup Gengrid
8524     */
8525    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);
8526
8527    /**
8528     * Insert an item after another in a gengrid widget
8529     *
8530     * @param obj The gengrid object.
8531     * @param gic The item class for the item.
8532     * @param data The item data.
8533     * @param relative The item to place this new one after.
8534     * @param func Convenience function called when the item is
8535     * selected.
8536     * @param func_data Data to be passed to @p func.
8537     * @return A handle to the item added or @c NULL, on errors.
8538     *
8539     * This inserts an item after another in the gengrid.
8540     *
8541     * @see elm_gengrid_item_append()
8542     * @see elm_gengrid_item_prepend()
8543     * @see elm_gengrid_item_insert_after()
8544     * @see elm_gengrid_item_del()
8545     *
8546     * @ingroup Gengrid
8547     */
8548    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);
8549
8550    /**
8551     * Insert an item in a gengrid widget using a user-defined sort function.
8552     *
8553     * @param obj The gengrid object.
8554     * @param gic The item class for the item.
8555     * @param data The item data.
8556     * @param comp User defined comparison function that defines the sort order based on
8557     * Elm_Gen_Item and its data param.
8558     * @param func Convenience function called when the item is selected.
8559     * @param func_data Data to be passed to @p func.
8560     * @return A handle to the item added or @c NULL, on errors.
8561     *
8562     * This inserts an item in the gengrid based on user defined comparison function.
8563     *
8564     * @see elm_gengrid_item_append()
8565     * @see elm_gengrid_item_prepend()
8566     * @see elm_gengrid_item_insert_after()
8567     * @see elm_gengrid_item_del()
8568     * @see elm_gengrid_item_direct_sorted_insert()
8569     *
8570     * @ingroup Gengrid
8571     */
8572    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);
8573
8574    /**
8575     * Insert an item in a gengrid widget using a user-defined sort function.
8576     *
8577     * @param obj The gengrid object.
8578     * @param gic The item class for the item.
8579     * @param data The item data.
8580     * @param comp User defined comparison function that defines the sort order based on
8581     * Elm_Gen_Item.
8582     * @param func Convenience function called when the item is selected.
8583     * @param func_data Data to be passed to @p func.
8584     * @return A handle to the item added or @c NULL, on errors.
8585     *
8586     * This inserts an item in the gengrid based on user defined comparison function.
8587     *
8588     * @see elm_gengrid_item_append()
8589     * @see elm_gengrid_item_prepend()
8590     * @see elm_gengrid_item_insert_after()
8591     * @see elm_gengrid_item_del()
8592     * @see elm_gengrid_item_sorted_insert()
8593     *
8594     * @ingroup Gengrid
8595     */
8596    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);
8597
8598    /**
8599     * Set whether items on a given gengrid widget are to get their
8600     * selection callbacks issued for @b every subsequent selection
8601     * click on them or just for the first click.
8602     *
8603     * @param obj The gengrid object
8604     * @param always_select @c EINA_TRUE to make items "always
8605     * selected", @c EINA_FALSE, otherwise
8606     *
8607     * By default, grid items will only call their selection callback
8608     * function when firstly getting selected, any subsequent further
8609     * clicks will do nothing. With this call, you make those
8610     * subsequent clicks also to issue the selection callbacks.
8611     *
8612     * @note <b>Double clicks</b> will @b always be reported on items.
8613     *
8614     * @see elm_gengrid_always_select_mode_get()
8615     *
8616     * @ingroup Gengrid
8617     */
8618    EINA_DEPRECATED EAPI void               elm_gengrid_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
8619
8620    /**
8621     * Get whether items on a given gengrid widget have their selection
8622     * callbacks issued for @b every subsequent selection click on them
8623     * or just for the first click.
8624     *
8625     * @param obj The gengrid object.
8626     * @return @c EINA_TRUE if the gengrid items are "always selected",
8627     * @c EINA_FALSE, otherwise
8628     *
8629     * @see elm_gengrid_always_select_mode_set() for more details
8630     *
8631     * @ingroup Gengrid
8632     */
8633    EINA_DEPRECATED EAPI Eina_Bool          elm_gengrid_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8634
8635    /**
8636     * Set whether items on a given gengrid widget can be selected or not.
8637     *
8638     * @param obj The gengrid object
8639     * @param no_select @c EINA_TRUE to make items selectable,
8640     * @c EINA_FALSE otherwise
8641     *
8642     * This will make items in @p obj selectable or not. In the latter
8643     * case, any user interaction on the gengrid items will neither make
8644     * them appear selected nor them call their selection callback
8645     * functions.
8646     *
8647     * @see elm_gengrid_no_select_mode_get()
8648     *
8649     * @ingroup Gengrid
8650     */
8651    EINA_DEPRECATED EAPI void               elm_gengrid_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
8652
8653    /**
8654     * Get whether items on a given gengrid widget can be selected or
8655     * not.
8656     *
8657     * @param obj The gengrid object
8658     * @return @c EINA_TRUE, if items are selectable, @c EINA_FALSE
8659     * otherwise
8660     *
8661     * @see elm_gengrid_no_select_mode_set() for more details
8662     *
8663     * @ingroup Gengrid
8664     */
8665    EINA_DEPRECATED EAPI Eina_Bool          elm_gengrid_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8666
8667    /**
8668     * Enable or disable multi-selection in a given gengrid widget
8669     *
8670     * @param obj The gengrid object.
8671     * @param multi @c EINA_TRUE, to enable multi-selection,
8672     * @c EINA_FALSE to disable it.
8673     *
8674     * Multi-selection is the ability to have @b more than one
8675     * item selected, on a given gengrid, simultaneously. When it is
8676     * enabled, a sequence of clicks on different items will make them
8677     * all selected, progressively. A click on an already selected item
8678     * will unselect it. If interacting via the keyboard,
8679     * multi-selection is enabled while holding the "Shift" key.
8680     *
8681     * @note By default, multi-selection is @b disabled on gengrids
8682     *
8683     * @see elm_gengrid_multi_select_get()
8684     *
8685     * @ingroup Gengrid
8686     */
8687    EAPI void               elm_gengrid_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
8688
8689    /**
8690     * Get whether multi-selection is enabled or disabled for a given
8691     * gengrid widget
8692     *
8693     * @param obj The gengrid object.
8694     * @return @c EINA_TRUE, if multi-selection is enabled, @c
8695     * EINA_FALSE otherwise
8696     *
8697     * @see elm_gengrid_multi_select_set() for more details
8698     *
8699     * @ingroup Gengrid
8700     */
8701    EAPI Eina_Bool          elm_gengrid_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8702
8703    /**
8704     * Enable or disable bouncing effect for a given gengrid widget
8705     *
8706     * @param obj The gengrid object
8707     * @param h_bounce @c EINA_TRUE, to enable @b horizontal bouncing,
8708     * @c EINA_FALSE to disable it
8709     * @param v_bounce @c EINA_TRUE, to enable @b vertical bouncing,
8710     * @c EINA_FALSE to disable it
8711     *
8712     * The bouncing effect occurs whenever one reaches the gengrid's
8713     * edge's while panning it -- it will scroll past its limits a
8714     * little bit and return to the edge again, in a animated for,
8715     * automatically.
8716     *
8717     * @note By default, gengrids have bouncing enabled on both axis
8718     *
8719     * @see elm_gengrid_bounce_get()
8720     *
8721     * @ingroup Gengrid
8722     */
8723    EINA_DEPRECATED EAPI void               elm_gengrid_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
8724
8725    /**
8726     * Get whether bouncing effects are enabled or disabled, for a
8727     * given gengrid widget, on each axis
8728     *
8729     * @param obj The gengrid object
8730     * @param h_bounce Pointer to a variable where to store the
8731     * horizontal bouncing flag.
8732     * @param v_bounce Pointer to a variable where to store the
8733     * vertical bouncing flag.
8734     *
8735     * @see elm_gengrid_bounce_set() for more details
8736     *
8737     * @ingroup Gengrid
8738     */
8739    EINA_DEPRECATED EAPI void               elm_gengrid_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
8740
8741    /**
8742     * Set a given gengrid widget's scrolling page size, relative to
8743     * its viewport size.
8744     *
8745     * @param obj The gengrid object
8746     * @param h_pagerel The horizontal page (relative) size
8747     * @param v_pagerel The vertical page (relative) size
8748     *
8749     * The gengrid's scroller is capable of binding scrolling by the
8750     * user to "pages". It means that, while scrolling and, specially
8751     * after releasing the mouse button, the grid will @b snap to the
8752     * nearest displaying page's area. When page sizes are set, the
8753     * grid's continuous content area is split into (equal) page sized
8754     * pieces.
8755     *
8756     * This function sets the size of a page <b>relatively to the
8757     * viewport dimensions</b> of the gengrid, for each axis. A value
8758     * @c 1.0 means "the exact viewport's size", in that axis, while @c
8759     * 0.0 turns paging off in that axis. Likewise, @c 0.5 means "half
8760     * a viewport". Sane usable values are, than, between @c 0.0 and @c
8761     * 1.0. Values beyond those will make it behave behave
8762     * inconsistently. If you only want one axis to snap to pages, use
8763     * the value @c 0.0 for the other one.
8764     *
8765     * There is a function setting page size values in @b absolute
8766     * values, too -- elm_gengrid_page_size_set(). Naturally, its use
8767     * is mutually exclusive to this one.
8768     *
8769     * @see elm_gengrid_page_relative_get()
8770     *
8771     * @ingroup Gengrid
8772     */
8773    EINA_DEPRECATED EAPI void               elm_gengrid_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
8774
8775    /**
8776     * Get a given gengrid widget's scrolling page size, relative to
8777     * its viewport size.
8778     *
8779     * @param obj The gengrid object
8780     * @param h_pagerel Pointer to a variable where to store the
8781     * horizontal page (relative) size
8782     * @param v_pagerel Pointer to a variable where to store the
8783     * vertical page (relative) size
8784     *
8785     * @see elm_gengrid_page_relative_set() for more details
8786     *
8787     * @ingroup Gengrid
8788     */
8789    EINA_DEPRECATED EAPI void               elm_gengrid_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel) EINA_ARG_NONNULL(1);
8790
8791    /**
8792     * Set a given gengrid widget's scrolling page size
8793     *
8794     * @param obj The gengrid object
8795     * @param h_pagerel The horizontal page size, in pixels
8796     * @param v_pagerel The vertical page size, in pixels
8797     *
8798     * The gengrid's scroller is capable of binding scrolling by the
8799     * user to "pages". It means that, while scrolling and, specially
8800     * after releasing the mouse button, the grid will @b snap to the
8801     * nearest displaying page's area. When page sizes are set, the
8802     * grid's continuous content area is split into (equal) page sized
8803     * pieces.
8804     *
8805     * This function sets the size of a page of the gengrid, in pixels,
8806     * for each axis. Sane usable values are, between @c 0 and the
8807     * dimensions of @p obj, for each axis. Values beyond those will
8808     * make it behave behave inconsistently. If you only want one axis
8809     * to snap to pages, use the value @c 0 for the other one.
8810     *
8811     * There is a function setting page size values in @b relative
8812     * values, too -- elm_gengrid_page_relative_set(). Naturally, its
8813     * use is mutually exclusive to this one.
8814     *
8815     * @ingroup Gengrid
8816     */
8817    EINA_DEPRECATED EAPI void               elm_gengrid_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
8818
8819    /**
8820     * @brief Get gengrid current page number.
8821     *
8822     * @param obj The gengrid object
8823     * @param h_pagenumber The horizontal page number
8824     * @param v_pagenumber The vertical page number
8825     *
8826     * The page number starts from 0. 0 is the first page.
8827     * Current page means the page which meet the top-left of the viewport.
8828     * If there are two or more pages in the viewport, it returns the number of page
8829     * which meet the top-left of the viewport.
8830     *
8831     * @see elm_gengrid_last_page_get()
8832     * @see elm_gengrid_page_show()
8833     * @see elm_gengrid_page_brint_in()
8834     */
8835    EINA_DEPRECATED EAPI void         elm_gengrid_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
8836
8837    /**
8838     * @brief Get scroll last page number.
8839     *
8840     * @param obj The gengrid object
8841     * @param h_pagenumber The horizontal page number
8842     * @param v_pagenumber The vertical page number
8843     *
8844     * The page number starts from 0. 0 is the first page.
8845     * This returns the last page number among the pages.
8846     *
8847     * @see elm_gengrid_current_page_get()
8848     * @see elm_gengrid_page_show()
8849     * @see elm_gengrid_page_brint_in()
8850     */
8851    EINA_DEPRECATED EAPI void         elm_gengrid_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
8852
8853    /**
8854     * Show a specific virtual region within the gengrid content object by page number.
8855     *
8856     * @param obj The gengrid object
8857     * @param h_pagenumber The horizontal page number
8858     * @param v_pagenumber The vertical page number
8859     *
8860     * 0, 0 of the indicated page is located at the top-left of the viewport.
8861     * This will jump to the page directly without animation.
8862     *
8863     * Example of usage:
8864     *
8865     * @code
8866     * sc = elm_gengrid_add(win);
8867     * elm_gengrid_content_set(sc, content);
8868     * elm_gengrid_page_relative_set(sc, 1, 0);
8869     * elm_gengrid_current_page_get(sc, &h_page, &v_page);
8870     * elm_gengrid_page_show(sc, h_page + 1, v_page);
8871     * @endcode
8872     *
8873     * @see elm_gengrid_page_bring_in()
8874     */
8875    EINA_DEPRECATED EAPI void         elm_gengrid_page_show(const Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
8876
8877    /**
8878     * Show a specific virtual region within the gengrid content object by page number.
8879     *
8880     * @param obj The gengrid object
8881     * @param h_pagenumber The horizontal page number
8882     * @param v_pagenumber The vertical page number
8883     *
8884     * 0, 0 of the indicated page is located at the top-left of the viewport.
8885     * This will slide to the page with animation.
8886     *
8887     * Example of usage:
8888     *
8889     * @code
8890     * sc = elm_gengrid_add(win);
8891     * elm_gengrid_content_set(sc, content);
8892     * elm_gengrid_page_relative_set(sc, 1, 0);
8893     * elm_gengrid_last_page_get(sc, &h_page, &v_page);
8894     * elm_gengrid_page_bring_in(sc, h_page, v_page);
8895     * @endcode
8896     *
8897     * @see elm_gengrid_page_show()
8898     */
8899     EINA_DEPRECATED EAPI void         elm_gengrid_page_bring_in(const Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
8900
8901    /**
8902     * Set the direction in which a given gengrid widget will expand while
8903     * placing its items.
8904     *
8905     * @param obj The gengrid object.
8906     * @param setting @c EINA_TRUE to make the gengrid expand
8907     * horizontally, @c EINA_FALSE to expand vertically.
8908     *
8909     * When in "horizontal mode" (@c EINA_TRUE), items will be placed
8910     * in @b columns, from top to bottom and, when the space for a
8911     * column is filled, another one is started on the right, thus
8912     * expanding the grid horizontally. When in "vertical mode"
8913     * (@c EINA_FALSE), though, items will be placed in @b rows, from left
8914     * to right and, when the space for a row is filled, another one is
8915     * started below, thus expanding the grid vertically.
8916     *
8917     * @see elm_gengrid_horizontal_get()
8918     *
8919     * @ingroup Gengrid
8920     */
8921    EAPI void               elm_gengrid_horizontal_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
8922
8923    /**
8924     * Get for what direction a given gengrid widget will expand while
8925     * placing its items.
8926     *
8927     * @param obj The gengrid object.
8928     * @return @c EINA_TRUE, if @p obj is set to expand horizontally,
8929     * @c EINA_FALSE if it's set to expand vertically.
8930     *
8931     * @see elm_gengrid_horizontal_set() for more detais
8932     *
8933     * @ingroup Gengrid
8934     */
8935    EAPI Eina_Bool          elm_gengrid_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8936
8937    /**
8938     * Get the first item in a given gengrid widget
8939     *
8940     * @param obj The gengrid object
8941     * @return The first item's handle or @c NULL, if there are no
8942     * items in @p obj (and on errors)
8943     *
8944     * This returns the first item in the @p obj's internal list of
8945     * items.
8946     *
8947     * @see elm_gengrid_last_item_get()
8948     *
8949     * @ingroup Gengrid
8950     */
8951    EINA_DEPRECATED EAPI Elm_Gengrid_Item  *elm_gengrid_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8952
8953    /**
8954     * Get the last item in a given gengrid widget
8955     *
8956     * @param obj The gengrid object
8957     * @return The last item's handle or @c NULL, if there are no
8958     * items in @p obj (and on errors)
8959     *
8960     * This returns the last item in the @p obj's internal list of
8961     * items.
8962     *
8963     * @see elm_gengrid_first_item_get()
8964     *
8965     * @ingroup Gengrid
8966     */
8967    EINA_DEPRECATED EAPI Elm_Gengrid_Item  *elm_gengrid_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8968
8969    /**
8970     * Get the @b next item in a gengrid widget's internal list of items,
8971     * given a handle to one of those items.
8972     *
8973     * @param item The gengrid item to fetch next from
8974     * @return The item after @p item, or @c NULL if there's none (and
8975     * on errors)
8976     *
8977     * This returns the item placed after the @p item, on the container
8978     * gengrid.
8979     *
8980     * @see elm_gengrid_item_prev_get()
8981     *
8982     * @ingroup Gengrid
8983     */
8984    EINA_DEPRECATED EAPI Elm_Gengrid_Item  *elm_gengrid_item_next_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8985
8986    /**
8987     * Get the @b previous item in a gengrid widget's internal list of items,
8988     * given a handle to one of those items.
8989     *
8990     * @param item The gengrid item to fetch previous from
8991     * @return The item before @p item, or @c NULL if there's none (and
8992     * on errors)
8993     *
8994     * This returns the item placed before the @p item, on the container
8995     * gengrid.
8996     *
8997     * @see elm_gengrid_item_next_get()
8998     *
8999     * @ingroup Gengrid
9000     */
9001    EINA_DEPRECATED EAPI Elm_Gengrid_Item  *elm_gengrid_item_prev_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9002
9003    /**
9004     * Get the gengrid object's handle which contains a given gengrid
9005     * item
9006     *
9007     * @param item The item to fetch the container from
9008     * @return The gengrid (parent) object
9009     *
9010     * This returns the gengrid object itself that an item belongs to.
9011     *
9012     * @ingroup Gengrid
9013     */
9014    EINA_DEPRECATED EAPI Evas_Object       *elm_gengrid_item_gengrid_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9015
9016    /**
9017     * Remove a gengrid item from its parent, deleting it.
9018     *
9019     * @param item The item to be removed.
9020     * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
9021     *
9022     * @see elm_gengrid_clear(), to remove all items in a gengrid at
9023     * once.
9024     *
9025     * @ingroup Gengrid
9026     */
9027    EAPI void               elm_gengrid_item_del(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9028
9029    /**
9030     * Update the contents of a given gengrid item
9031     *
9032     * @param item The gengrid item
9033     *
9034     * This updates an item by calling all the item class functions
9035     * again to get the contents, labels and states. Use this when the
9036     * original item data has changed and you want the changes to be
9037     * reflected.
9038     *
9039     * @ingroup Gengrid
9040     */
9041    EAPI void               elm_gengrid_item_update(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9042
9043    /**
9044     * Get the Gengrid Item class for the given Gengrid Item.
9045     *
9046     * @param item The gengrid item
9047     *
9048     * This returns the Gengrid_Item_Class for the given item. It can be used to examine
9049     * the function pointers and item_style.
9050     *
9051     * @ingroup Gengrid
9052     */
9053    EAPI const Elm_Gengrid_Item_Class *elm_gengrid_item_item_class_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9054
9055    /**
9056     * Get the Gengrid Item class for the given Gengrid Item.
9057     *
9058     * This sets the Gengrid_Item_Class for the given item. It can be used to examine
9059     * the function pointers and item_style.
9060     *
9061     * @param item The gengrid item
9062     * @param gic The gengrid item class describing the function pointers and the item style.
9063     *
9064     * @ingroup Gengrid
9065     */
9066    EAPI void               elm_gengrid_item_item_class_set(Elm_Gengrid_Item *item, const Elm_Gengrid_Item_Class *gic) EINA_ARG_NONNULL(1, 2);
9067
9068    /**
9069     * Return the data associated to a given gengrid item
9070     *
9071     * @param item The gengrid item.
9072     * @return the data associated with this item.
9073     *
9074     * This returns the @c data value passed on the
9075     * elm_gengrid_item_append() and related item addition calls.
9076     *
9077     * @see elm_gengrid_item_append()
9078     * @see elm_gengrid_item_data_set()
9079     *
9080     * @ingroup Gengrid
9081     */
9082    EAPI void              *elm_gengrid_item_data_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9083
9084    /**
9085     * Set the data associated with a given gengrid item
9086     *
9087     * @param item The gengrid item
9088     * @param data The data pointer to set on it
9089     *
9090     * This @b overrides the @c data value passed on the
9091     * elm_gengrid_item_append() and related item addition calls. This
9092     * function @b won't call elm_gengrid_item_update() automatically,
9093     * so you'd issue it afterwards if you want to have the item
9094     * updated to reflect the new data.
9095     *
9096     * @see elm_gengrid_item_data_get()
9097     * @see elm_gengrid_item_update()
9098     *
9099     * @ingroup Gengrid
9100     */
9101    EAPI void               elm_gengrid_item_data_set(Elm_Gengrid_Item *item, const void *data) EINA_ARG_NONNULL(1);
9102
9103    /**
9104     * Get a given gengrid item's position, relative to the whole
9105     * gengrid's grid area.
9106     *
9107     * @param item The Gengrid item.
9108     * @param x Pointer to variable to store the item's <b>row number</b>.
9109     * @param y Pointer to variable to store the item's <b>column number</b>.
9110     *
9111     * This returns the "logical" position of the item within the
9112     * gengrid. For example, @c (0, 1) would stand for first row,
9113     * second column.
9114     *
9115     * @ingroup Gengrid
9116     */
9117    EAPI void               elm_gengrid_item_pos_get(const Elm_Gengrid_Item *item, unsigned int *x, unsigned int *y) EINA_ARG_NONNULL(1);
9118
9119    /**
9120     * Set whether a given gengrid item is selected or not
9121     *
9122     * @param item The gengrid item
9123     * @param selected Use @c EINA_TRUE, to make it selected, @c
9124     * EINA_FALSE to make it unselected
9125     *
9126     * This sets the selected state of an item. If multi-selection is
9127     * not enabled on the containing gengrid and @p selected is @c
9128     * EINA_TRUE, any other previously selected items will get
9129     * unselected in favor of this new one.
9130     *
9131     * @see elm_gengrid_item_selected_get()
9132     *
9133     * @ingroup Gengrid
9134     */
9135    EINA_DEPRECATED EAPI void elm_gengrid_item_selected_set(Elm_Gengrid_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
9136
9137    /**
9138     * Get whether a given gengrid item is selected or not
9139     *
9140     * @param item The gengrid item
9141     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
9142     *
9143     * This API returns EINA_TRUE for all the items selected in multi-select mode as well.
9144     *
9145     * @see elm_gengrid_item_selected_set() for more details
9146     *
9147     * @ingroup Gengrid
9148     */
9149    EINA_DEPRECATED EAPI Eina_Bool elm_gengrid_item_selected_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9150
9151    /**
9152     * Get the real Evas object created to implement the view of a
9153     * given gengrid item
9154     *
9155     * @param item The gengrid item.
9156     * @return the Evas object implementing this item's view.
9157     *
9158     * This returns the actual Evas object used to implement the
9159     * specified gengrid item's view. This may be @c NULL, as it may
9160     * not have been created or may have been deleted, at any time, by
9161     * the gengrid. <b>Do not modify this object</b> (move, resize,
9162     * show, hide, etc.), as the gengrid is controlling it. This
9163     * function is for querying, emitting custom signals or hooking
9164     * lower level callbacks for events on that object. Do not delete
9165     * this object under any circumstances.
9166     *
9167     * @see elm_gengrid_item_data_get()
9168     *
9169     * @ingroup Gengrid
9170     */
9171    EAPI const Evas_Object *elm_gengrid_item_object_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9172
9173    /**
9174     * Show the portion of a gengrid's internal grid containing a given
9175     * item, @b immediately.
9176     *
9177     * @param item The item to display
9178     *
9179     * This causes gengrid to @b redraw its viewport's contents to the
9180     * region contining the given @p item item, if it is not fully
9181     * visible.
9182     *
9183     * @see elm_gengrid_item_bring_in()
9184     *
9185     * @ingroup Gengrid
9186     */
9187    EAPI void               elm_gengrid_item_show(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9188
9189    /**
9190     * Animatedly bring in, to the visible area of a gengrid, a given
9191     * item on it.
9192     *
9193     * @param item The gengrid item to display
9194     *
9195     * This causes gengrid to jump to the given @p item and show
9196     * it (by scrolling), if it is not fully visible. This will use
9197     * animation to do so and take a period of time to complete.
9198     *
9199     * @see elm_gengrid_item_show()
9200     *
9201     * @ingroup Gengrid
9202     */
9203    EAPI void               elm_gengrid_item_bring_in(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9204
9205    /**
9206     * Set whether a given gengrid item is disabled or not.
9207     *
9208     * @param item The gengrid item
9209     * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
9210     * to enable it back.
9211     *
9212     * A disabled item cannot be selected or unselected. It will also
9213     * change its appearance, to signal the user it's disabled.
9214     *
9215     * @see elm_gengrid_item_disabled_get()
9216     *
9217     * @ingroup Gengrid
9218     */
9219    EAPI void               elm_gengrid_item_disabled_set(Elm_Gengrid_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
9220
9221    /**
9222     * Get whether a given gengrid item is disabled or not.
9223     *
9224     * @param item The gengrid item
9225     * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
9226     * (and on errors).
9227     *
9228     * @see elm_gengrid_item_disabled_set() for more details
9229     *
9230     * @ingroup Gengrid
9231     */
9232    EAPI Eina_Bool          elm_gengrid_item_disabled_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9233
9234    /**
9235     * Set the text to be shown in a given gengrid item's tooltips.
9236     *
9237     * @param item The gengrid item
9238     * @param text The text to set in the content
9239     *
9240     * This call will setup the text to be used as tooltip to that item
9241     * (analogous to elm_object_tooltip_text_set(), but being item
9242     * tooltips with higher precedence than object tooltips). It can
9243     * have only one tooltip at a time, so any previous tooltip data
9244     * will get removed.
9245     *
9246     * @ingroup Gengrid
9247     */
9248    EAPI void               elm_gengrid_item_tooltip_text_set(Elm_Gengrid_Item *item, const char *text) EINA_ARG_NONNULL(1);
9249
9250    /**
9251     * Set the content to be shown in a given gengrid item's tooltip
9252     *
9253     * @param item The gengrid item.
9254     * @param func The function returning the tooltip contents.
9255     * @param data What to provide to @a func as callback data/context.
9256     * @param del_cb Called when data is not needed anymore, either when
9257     *        another callback replaces @p func, the tooltip is unset with
9258     *        elm_gengrid_item_tooltip_unset() or the owner @p item
9259     *        dies. This callback receives as its first parameter the
9260     *        given @p data, being @c event_info the item handle.
9261     *
9262     * This call will setup the tooltip's contents to @p item
9263     * (analogous to elm_object_tooltip_content_cb_set(), but being
9264     * item tooltips with higher precedence than object tooltips). It
9265     * can have only one tooltip at a time, so any previous tooltip
9266     * content will get removed. @p func (with @p data) will be called
9267     * every time Elementary needs to show the tooltip and it should
9268     * return a valid Evas object, which will be fully managed by the
9269     * tooltip system, getting deleted when the tooltip is gone.
9270     *
9271     * @ingroup Gengrid
9272     */
9273    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);
9274
9275    /**
9276     * Unset a tooltip from a given gengrid item
9277     *
9278     * @param item gengrid item to remove a previously set tooltip from.
9279     *
9280     * This call removes any tooltip set on @p item. The callback
9281     * provided as @c del_cb to
9282     * elm_gengrid_item_tooltip_content_cb_set() will be called to
9283     * notify it is not used anymore (and have resources cleaned, if
9284     * need be).
9285     *
9286     * @see elm_gengrid_item_tooltip_content_cb_set()
9287     *
9288     * @ingroup Gengrid
9289     */
9290    EAPI void               elm_gengrid_item_tooltip_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9291
9292    /**
9293     * Set a different @b style for a given gengrid item's tooltip.
9294     *
9295     * @param item gengrid item with tooltip set
9296     * @param style the <b>theme style</b> to use on tooltips (e.g. @c
9297     * "default", @c "transparent", etc)
9298     *
9299     * Tooltips can have <b>alternate styles</b> to be displayed on,
9300     * which are defined by the theme set on Elementary. This function
9301     * works analogously as elm_object_tooltip_style_set(), but here
9302     * applied only to gengrid item objects. The default style for
9303     * tooltips is @c "default".
9304     *
9305     * @note before you set a style you should define a tooltip with
9306     *       elm_gengrid_item_tooltip_content_cb_set() or
9307     *       elm_gengrid_item_tooltip_text_set()
9308     *
9309     * @see elm_gengrid_item_tooltip_style_get()
9310     *
9311     * @ingroup Gengrid
9312     */
9313    EAPI void               elm_gengrid_item_tooltip_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
9314
9315    /**
9316     * Get the style set a given gengrid item's tooltip.
9317     *
9318     * @param item gengrid item with tooltip already set on.
9319     * @return style the theme style in use, which defaults to
9320     *         "default". If the object does not have a tooltip set,
9321     *         then @c NULL is returned.
9322     *
9323     * @see elm_gengrid_item_tooltip_style_set() for more details
9324     *
9325     * @ingroup Gengrid
9326     */
9327    EAPI const char        *elm_gengrid_item_tooltip_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9328    /**
9329     * @brief Disable size restrictions on an object's tooltip
9330     * @param item The tooltip's anchor object
9331     * @param disable If EINA_TRUE, size restrictions are disabled
9332     * @return EINA_FALSE on failure, EINA_TRUE on success
9333     *
9334     * This function allows a tooltip to expand beyond its parant window's canvas.
9335     * It will instead be limited only by the size of the display.
9336     */
9337    EAPI Eina_Bool          elm_gengrid_item_tooltip_size_restrict_disable(Elm_Gengrid_Item *item, Eina_Bool disable);
9338    /**
9339     * @brief Retrieve size restriction state of an object's tooltip
9340     * @param item The tooltip's anchor object
9341     * @return If EINA_TRUE, size restrictions are disabled
9342     *
9343     * This function returns whether a tooltip is allowed to expand beyond
9344     * its parant window's canvas.
9345     * It will instead be limited only by the size of the display.
9346     */
9347    EAPI Eina_Bool          elm_gengrid_item_tooltip_size_restrict_disabled_get(const Elm_Gengrid_Item *item);
9348    /**
9349     * Set the type of mouse pointer/cursor decoration to be shown,
9350     * when the mouse pointer is over the given gengrid widget item
9351     *
9352     * @param item gengrid item to customize cursor on
9353     * @param cursor the cursor type's name
9354     *
9355     * This function works analogously as elm_object_cursor_set(), but
9356     * here the cursor's changing area is restricted to the item's
9357     * area, and not the whole widget's. Note that that item cursors
9358     * have precedence over widget cursors, so that a mouse over @p
9359     * item will always show cursor @p type.
9360     *
9361     * If this function is called twice for an object, a previously set
9362     * cursor will be unset on the second call.
9363     *
9364     * @see elm_object_cursor_set()
9365     * @see elm_gengrid_item_cursor_get()
9366     * @see elm_gengrid_item_cursor_unset()
9367     *
9368     * @ingroup Gengrid
9369     */
9370    EAPI void               elm_gengrid_item_cursor_set(Elm_Gengrid_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
9371
9372    /**
9373     * Get the type of mouse pointer/cursor decoration set to be shown,
9374     * when the mouse pointer is over the given gengrid widget item
9375     *
9376     * @param item gengrid item with custom cursor set
9377     * @return the cursor type's name or @c NULL, if no custom cursors
9378     * were set to @p item (and on errors)
9379     *
9380     * @see elm_object_cursor_get()
9381     * @see elm_gengrid_item_cursor_set() for more details
9382     * @see elm_gengrid_item_cursor_unset()
9383     *
9384     * @ingroup Gengrid
9385     */
9386    EAPI const char        *elm_gengrid_item_cursor_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9387
9388    /**
9389     * Unset any custom mouse pointer/cursor decoration set to be
9390     * shown, when the mouse pointer is over the given gengrid widget
9391     * item, thus making it show the @b default cursor again.
9392     *
9393     * @param item a gengrid item
9394     *
9395     * Use this call to undo any custom settings on this item's cursor
9396     * decoration, bringing it back to defaults (no custom style set).
9397     *
9398     * @see elm_object_cursor_unset()
9399     * @see elm_gengrid_item_cursor_set() for more details
9400     *
9401     * @ingroup Gengrid
9402     */
9403    EAPI void               elm_gengrid_item_cursor_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9404
9405    /**
9406     * Set a different @b style for a given custom cursor set for a
9407     * gengrid item.
9408     *
9409     * @param item gengrid item with custom cursor set
9410     * @param style the <b>theme style</b> to use (e.g. @c "default",
9411     * @c "transparent", etc)
9412     *
9413     * This function only makes sense when one is using custom mouse
9414     * cursor decorations <b>defined in a theme file</b> , which can
9415     * have, given a cursor name/type, <b>alternate styles</b> on
9416     * it. It works analogously as elm_object_cursor_style_set(), but
9417     * here applied only to gengrid item objects.
9418     *
9419     * @warning Before you set a cursor style you should have defined a
9420     *       custom cursor previously on the item, with
9421     *       elm_gengrid_item_cursor_set()
9422     *
9423     * @see elm_gengrid_item_cursor_engine_only_set()
9424     * @see elm_gengrid_item_cursor_style_get()
9425     *
9426     * @ingroup Gengrid
9427     */
9428    EAPI void               elm_gengrid_item_cursor_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
9429
9430    /**
9431     * Get the current @b style set for a given gengrid item's custom
9432     * cursor
9433     *
9434     * @param item gengrid item with custom cursor set.
9435     * @return style the cursor style in use. If the object does not
9436     *         have a cursor set, then @c NULL is returned.
9437     *
9438     * @see elm_gengrid_item_cursor_style_set() for more details
9439     *
9440     * @ingroup Gengrid
9441     */
9442    EAPI const char        *elm_gengrid_item_cursor_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9443
9444    /**
9445     * Set if the (custom) cursor for a given gengrid item should be
9446     * searched in its theme, also, or should only rely on the
9447     * rendering engine.
9448     *
9449     * @param item item with custom (custom) cursor already set on
9450     * @param engine_only Use @c EINA_TRUE to have cursors looked for
9451     * only on those provided by the rendering engine, @c EINA_FALSE to
9452     * have them searched on the widget's theme, as well.
9453     *
9454     * @note This call is of use only if you've set a custom cursor
9455     * for gengrid items, with elm_gengrid_item_cursor_set().
9456     *
9457     * @note By default, cursors will only be looked for between those
9458     * provided by the rendering engine.
9459     *
9460     * @ingroup Gengrid
9461     */
9462    EAPI void               elm_gengrid_item_cursor_engine_only_set(Elm_Gengrid_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
9463
9464    /**
9465     * Get if the (custom) cursor for a given gengrid item is being
9466     * searched in its theme, also, or is only relying on the rendering
9467     * engine.
9468     *
9469     * @param item a gengrid item
9470     * @return @c EINA_TRUE, if cursors are being looked for only on
9471     * those provided by the rendering engine, @c EINA_FALSE if they
9472     * are being searched on the widget's theme, as well.
9473     *
9474     * @see elm_gengrid_item_cursor_engine_only_set(), for more details
9475     *
9476     * @ingroup Gengrid
9477     */
9478    EAPI Eina_Bool          elm_gengrid_item_cursor_engine_only_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9479
9480    /**
9481     * Remove all items from a given gengrid widget
9482     *
9483     * @param obj The gengrid object.
9484     *
9485     * This removes (and deletes) all items in @p obj, leaving it
9486     * empty.
9487     *
9488     * @see elm_gengrid_item_del(), to remove just one item.
9489     *
9490     * @ingroup Gengrid
9491     */
9492    EINA_DEPRECATED EAPI void elm_gengrid_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
9493
9494    /**
9495     * Get the selected item in a given gengrid widget
9496     *
9497     * @param obj The gengrid object.
9498     * @return The selected item's handleor @c NULL, if none is
9499     * selected at the moment (and on errors)
9500     *
9501     * This returns the selected item in @p obj. If multi selection is
9502     * enabled on @p obj (@see elm_gengrid_multi_select_set()), only
9503     * the first item in the list is selected, which might not be very
9504     * useful. For that case, see elm_gengrid_selected_items_get().
9505     *
9506     * @ingroup Gengrid
9507     */
9508    EAPI Elm_Gengrid_Item  *elm_gengrid_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9509
9510    /**
9511     * Get <b>a list</b> of selected items in a given gengrid
9512     *
9513     * @param obj The gengrid object.
9514     * @return The list of selected items or @c NULL, if none is
9515     * selected at the moment (and on errors)
9516     *
9517     * This returns a list of the selected items, in the order that
9518     * they appear in the grid. This list is only valid as long as no
9519     * more items are selected or unselected (or unselected implictly
9520     * by deletion). The list contains #Elm_Gengrid_Item pointers as
9521     * data, naturally.
9522     *
9523     * @see elm_gengrid_selected_item_get()
9524     *
9525     * @ingroup Gengrid
9526     */
9527    EAPI const Eina_List   *elm_gengrid_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9528
9529    /**
9530     * @}
9531     */
9532
9533    /**
9534     * @defgroup Clock Clock
9535     *
9536     * @image html img/widget/clock/preview-00.png
9537     * @image latex img/widget/clock/preview-00.eps
9538     *
9539     * This is a @b digital clock widget. In its default theme, it has a
9540     * vintage "flipping numbers clock" appearance, which will animate
9541     * sheets of individual algarisms individually as time goes by.
9542     *
9543     * A newly created clock will fetch system's time (already
9544     * considering local time adjustments) to start with, and will tick
9545     * accondingly. It may or may not show seconds.
9546     *
9547     * Clocks have an @b edition mode. When in it, the sheets will
9548     * display extra arrow indications on the top and bottom and the
9549     * user may click on them to raise or lower the time values. After
9550     * it's told to exit edition mode, it will keep ticking with that
9551     * new time set (it keeps the difference from local time).
9552     *
9553     * Also, when under edition mode, user clicks on the cited arrows
9554     * which are @b held for some time will make the clock to flip the
9555     * sheet, thus editing the time, continuosly and automatically for
9556     * the user. The interval between sheet flips will keep growing in
9557     * time, so that it helps the user to reach a time which is distant
9558     * from the one set.
9559     *
9560     * The time display is, by default, in military mode (24h), but an
9561     * am/pm indicator may be optionally shown, too, when it will
9562     * switch to 12h.
9563     *
9564     * Smart callbacks one can register to:
9565     * - "changed" - the clock's user changed the time
9566     *
9567     * Here is an example on its usage:
9568     * @li @ref clock_example
9569     */
9570
9571    /**
9572     * @addtogroup Clock
9573     * @{
9574     */
9575
9576    /**
9577     * Identifiers for which clock digits should be editable, when a
9578     * clock widget is in edition mode. Values may be ORed together to
9579     * make a mask, naturally.
9580     *
9581     * @see elm_clock_edit_set()
9582     * @see elm_clock_digit_edit_set()
9583     */
9584    typedef enum _Elm_Clock_Digedit
9585      {
9586         ELM_CLOCK_NONE         = 0, /**< Default value. Means that all digits are editable, when in edition mode. */
9587         ELM_CLOCK_HOUR_DECIMAL = 1 << 0, /**< Decimal algarism of hours value should be editable */
9588         ELM_CLOCK_HOUR_UNIT    = 1 << 1, /**< Unit algarism of hours value should be editable */
9589         ELM_CLOCK_MIN_DECIMAL  = 1 << 2, /**< Decimal algarism of minutes value should be editable */
9590         ELM_CLOCK_MIN_UNIT     = 1 << 3, /**< Unit algarism of minutes value should be editable */
9591         ELM_CLOCK_SEC_DECIMAL  = 1 << 4, /**< Decimal algarism of seconds value should be editable */
9592         ELM_CLOCK_SEC_UNIT     = 1 << 5, /**< Unit algarism of seconds value should be editable */
9593         ELM_CLOCK_ALL          = (1 << 6) - 1 /**< All digits should be editable */
9594      } Elm_Clock_Digedit;
9595
9596    /**
9597     * Add a new clock widget to the given parent Elementary
9598     * (container) object
9599     *
9600     * @param parent The parent object
9601     * @return a new clock widget handle or @c NULL, on errors
9602     *
9603     * This function inserts a new clock widget on the canvas.
9604     *
9605     * @ingroup Clock
9606     */
9607    EAPI Evas_Object      *elm_clock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9608
9609    /**
9610     * Set a clock widget's time, programmatically
9611     *
9612     * @param obj The clock widget object
9613     * @param hrs The hours to set
9614     * @param min The minutes to set
9615     * @param sec The secondes to set
9616     *
9617     * This function updates the time that is showed by the clock
9618     * widget.
9619     *
9620     *  Values @b must be set within the following ranges:
9621     * - 0 - 23, for hours
9622     * - 0 - 59, for minutes
9623     * - 0 - 59, for seconds,
9624     *
9625     * even if the clock is not in "military" mode.
9626     *
9627     * @warning The behavior for values set out of those ranges is @b
9628     * undefined.
9629     *
9630     * @ingroup Clock
9631     */
9632    EAPI void              elm_clock_time_set(Evas_Object *obj, int hrs, int min, int sec) EINA_ARG_NONNULL(1);
9633
9634    /**
9635     * Get a clock widget's time values
9636     *
9637     * @param obj The clock object
9638     * @param[out] hrs Pointer to the variable to get the hours value
9639     * @param[out] min Pointer to the variable to get the minutes value
9640     * @param[out] sec Pointer to the variable to get the seconds value
9641     *
9642     * This function gets the time set for @p obj, returning
9643     * it on the variables passed as the arguments to function
9644     *
9645     * @note Use @c NULL pointers on the time values you're not
9646     * interested in: they'll be ignored by the function.
9647     *
9648     * @ingroup Clock
9649     */
9650    EAPI void              elm_clock_time_get(const Evas_Object *obj, int *hrs, int *min, int *sec) EINA_ARG_NONNULL(1);
9651
9652    /**
9653     * Set whether a given clock widget is under <b>edition mode</b> or
9654     * under (default) displaying-only mode.
9655     *
9656     * @param obj The clock object
9657     * @param edit @c EINA_TRUE to put it in edition, @c EINA_FALSE to
9658     * put it back to "displaying only" mode
9659     *
9660     * This function makes a clock's time to be editable or not <b>by
9661     * user interaction</b>. When in edition mode, clocks @b stop
9662     * ticking, until one brings them back to canonical mode. The
9663     * elm_clock_digit_edit_set() function will influence which digits
9664     * of the clock will be editable. By default, all of them will be
9665     * (#ELM_CLOCK_NONE).
9666     *
9667     * @note am/pm sheets, if being shown, will @b always be editable
9668     * under edition mode.
9669     *
9670     * @see elm_clock_edit_get()
9671     *
9672     * @ingroup Clock
9673     */
9674    EAPI void              elm_clock_edit_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
9675
9676    /**
9677     * Retrieve whether a given clock widget is under <b>edition
9678     * mode</b> or under (default) displaying-only mode.
9679     *
9680     * @param obj The clock object
9681     * @param edit @c EINA_TRUE, if it's in edition mode, @c EINA_FALSE
9682     * otherwise
9683     *
9684     * This function retrieves whether the clock's time can be edited
9685     * or not by user interaction.
9686     *
9687     * @see elm_clock_edit_set() for more details
9688     *
9689     * @ingroup Clock
9690     */
9691    EAPI Eina_Bool         elm_clock_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9692
9693    /**
9694     * Set what digits of the given clock widget should be editable
9695     * when in edition mode.
9696     *
9697     * @param obj The clock object
9698     * @param digedit Bit mask indicating the digits to be editable
9699     * (values in #Elm_Clock_Digedit).
9700     *
9701     * If the @p digedit param is #ELM_CLOCK_NONE, editing will be
9702     * disabled on @p obj (same effect as elm_clock_edit_set(), with @c
9703     * EINA_FALSE).
9704     *
9705     * @see elm_clock_digit_edit_get()
9706     *
9707     * @ingroup Clock
9708     */
9709    EAPI void              elm_clock_digit_edit_set(Evas_Object *obj, Elm_Clock_Digedit digedit) EINA_ARG_NONNULL(1);
9710
9711    /**
9712     * Retrieve what digits of the given clock widget should be
9713     * editable when in edition mode.
9714     *
9715     * @param obj The clock object
9716     * @return Bit mask indicating the digits to be editable
9717     * (values in #Elm_Clock_Digedit).
9718     *
9719     * @see elm_clock_digit_edit_set() for more details
9720     *
9721     * @ingroup Clock
9722     */
9723    EAPI Elm_Clock_Digedit elm_clock_digit_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9724
9725    /**
9726     * Set if the given clock widget must show hours in military or
9727     * am/pm mode
9728     *
9729     * @param obj The clock object
9730     * @param am_pm @c EINA_TRUE to put it in am/pm mode, @c EINA_FALSE
9731     * to military mode
9732     *
9733     * This function sets if the clock must show hours in military or
9734     * am/pm mode. In some countries like Brazil the military mode
9735     * (00-24h-format) is used, in opposition to the USA, where the
9736     * am/pm mode is more commonly used.
9737     *
9738     * @see elm_clock_show_am_pm_get()
9739     *
9740     * @ingroup Clock
9741     */
9742    EAPI void              elm_clock_show_am_pm_set(Evas_Object *obj, Eina_Bool am_pm) EINA_ARG_NONNULL(1);
9743
9744    /**
9745     * Get if the given clock widget shows hours in military or am/pm
9746     * mode
9747     *
9748     * @param obj The clock object
9749     * @return @c EINA_TRUE, if in am/pm mode, @c EINA_FALSE if in
9750     * military
9751     *
9752     * This function gets if the clock shows hours in military or am/pm
9753     * mode.
9754     *
9755     * @see elm_clock_show_am_pm_set() for more details
9756     *
9757     * @ingroup Clock
9758     */
9759    EAPI Eina_Bool         elm_clock_show_am_pm_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9760
9761    /**
9762     * Set if the given clock widget must show time with seconds or not
9763     *
9764     * @param obj The clock object
9765     * @param seconds @c EINA_TRUE to show seconds, @c EINA_FALSE otherwise
9766     *
9767     * This function sets if the given clock must show or not elapsed
9768     * seconds. By default, they are @b not shown.
9769     *
9770     * @see elm_clock_show_seconds_get()
9771     *
9772     * @ingroup Clock
9773     */
9774    EAPI void              elm_clock_show_seconds_set(Evas_Object *obj, Eina_Bool seconds) EINA_ARG_NONNULL(1);
9775
9776    /**
9777     * Get whether the given clock widget is showing time with seconds
9778     * or not
9779     *
9780     * @param obj The clock object
9781     * @return @c EINA_TRUE if it's showing seconds, @c EINA_FALSE otherwise
9782     *
9783     * This function gets whether @p obj is showing or not the elapsed
9784     * seconds.
9785     *
9786     * @see elm_clock_show_seconds_set()
9787     *
9788     * @ingroup Clock
9789     */
9790    EAPI Eina_Bool         elm_clock_show_seconds_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9791
9792    /**
9793     * Set the interval on time updates for an user mouse button hold
9794     * on clock widgets' time edition.
9795     *
9796     * @param obj The clock object
9797     * @param interval The (first) interval value in seconds
9798     *
9799     * This interval value is @b decreased while the user holds the
9800     * mouse pointer either incrementing or decrementing a given the
9801     * clock digit's value.
9802     *
9803     * This helps the user to get to a given time distant from the
9804     * current one easier/faster, as it will start to flip quicker and
9805     * quicker on mouse button holds.
9806     *
9807     * The calculation for the next flip interval value, starting from
9808     * the one set with this call, is the previous interval divided by
9809     * 1.05, so it decreases a little bit.
9810     *
9811     * The default starting interval value for automatic flips is
9812     * @b 0.85 seconds.
9813     *
9814     * @see elm_clock_interval_get()
9815     *
9816     * @ingroup Clock
9817     */
9818    EAPI void              elm_clock_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
9819
9820    /**
9821     * Get the interval on time updates for an user mouse button hold
9822     * on clock widgets' time edition.
9823     *
9824     * @param obj The clock object
9825     * @return The (first) interval value, in seconds, set on it
9826     *
9827     * @see elm_clock_interval_set() for more details
9828     *
9829     * @ingroup Clock
9830     */
9831    EAPI double            elm_clock_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9832
9833    /**
9834     * @}
9835     */
9836
9837    /**
9838     * @defgroup Layout Layout
9839     *
9840     * @image html img/widget/layout/preview-00.png
9841     * @image latex img/widget/layout/preview-00.eps width=\textwidth
9842     *
9843     * @image html img/layout-predefined.png
9844     * @image latex img/layout-predefined.eps width=\textwidth
9845     *
9846     * This is a container widget that takes a standard Edje design file and
9847     * wraps it very thinly in a widget.
9848     *
9849     * An Edje design (theme) file has a very wide range of possibilities to
9850     * describe the behavior of elements added to the Layout. Check out the Edje
9851     * documentation and the EDC reference to get more information about what can
9852     * be done with Edje.
9853     *
9854     * Just like @ref List, @ref Box, and other container widgets, any
9855     * object added to the Layout will become its child, meaning that it will be
9856     * deleted if the Layout is deleted, move if the Layout is moved, and so on.
9857     *
9858     * The Layout widget can contain as many Contents, Boxes or Tables as
9859     * described in its theme file. For instance, objects can be added to
9860     * different Tables by specifying the respective Table part names. The same
9861     * is valid for Content and Box.
9862     *
9863     * The objects added as child of the Layout will behave as described in the
9864     * part description where they were added. There are 3 possible types of
9865     * parts where a child can be added:
9866     *
9867     * @section secContent Content (SWALLOW part)
9868     *
9869     * Only one object can be added to the @c SWALLOW part (but you still can
9870     * have many @c SWALLOW parts and one object on each of them). Use the @c
9871     * elm_object_content_set/get/unset functions to set, retrieve and unset 
9872     * objects as content of the @c SWALLOW. After being set to this part, the 
9873     * object size, position, visibility, clipping and other description 
9874     * properties will be totally controled by the description of the given part 
9875     * (inside the Edje theme file).
9876     *
9877     * One can use @c evas_object_size_hint_* functions on the child to have some
9878     * kind of control over its behavior, but the resulting behavior will still
9879     * depend heavily on the @c SWALLOW part description.
9880     *
9881     * The Edje theme also can change the part description, based on signals or
9882     * scripts running inside the theme. This change can also be animated. All of
9883     * this will affect the child object set as content accordingly. The object
9884     * size will be changed if the part size is changed, it will animate move if
9885     * the part is moving, and so on.
9886     *
9887     * The following picture demonstrates a Layout widget with a child object
9888     * added to its @c SWALLOW:
9889     *
9890     * @image html layout_swallow.png
9891     * @image latex layout_swallow.eps width=\textwidth
9892     *
9893     * @section secBox Box (BOX part)
9894     *
9895     * An Edje @c BOX part is very similar to the Elementary @ref Box widget. It
9896     * allows one to add objects to the box and have them distributed along its
9897     * area, accordingly to the specified @a layout property (now by @a layout we
9898     * mean the chosen layouting design of the Box, not the Layout widget
9899     * itself).
9900     *
9901     * A similar effect for having a box with its position, size and other things
9902     * controled by the Layout theme would be to create an Elementary @ref Box
9903     * widget and add it as a Content in the @c SWALLOW part.
9904     *
9905     * The main difference of using the Layout Box is that its behavior, the box
9906     * properties like layouting format, padding, align, etc. will be all
9907     * controled by the theme. This means, for example, that a signal could be
9908     * sent to the Layout theme (with elm_object_signal_emit()) and the theme
9909     * handled the signal by changing the box padding, or align, or both. Using
9910     * the Elementary @ref Box widget is not necessarily harder or easier, it
9911     * just depends on the circunstances and requirements.
9912     *
9913     * The Layout Box can be used through the @c elm_layout_box_* set of
9914     * functions.
9915     *
9916     * The following picture demonstrates a Layout widget with many child objects
9917     * added to its @c BOX part:
9918     *
9919     * @image html layout_box.png
9920     * @image latex layout_box.eps width=\textwidth
9921     *
9922     * @section secTable Table (TABLE part)
9923     *
9924     * Just like the @ref secBox, the Layout Table is very similar to the
9925     * Elementary @ref Table widget. It allows one to add objects to the Table
9926     * specifying the row and column where the object should be added, and any
9927     * column or row span if necessary.
9928     *
9929     * Again, we could have this design by adding a @ref Table widget to the @c
9930     * SWALLOW part using elm_object_part_content_set(). The same difference happens
9931     * here when choosing to use the Layout Table (a @c TABLE part) instead of
9932     * the @ref Table plus @c SWALLOW part. It's just a matter of convenience.
9933     *
9934     * The Layout Table can be used through the @c elm_layout_table_* set of
9935     * functions.
9936     *
9937     * The following picture demonstrates a Layout widget with many child objects
9938     * added to its @c TABLE part:
9939     *
9940     * @image html layout_table.png
9941     * @image latex layout_table.eps width=\textwidth
9942     *
9943     * @section secPredef Predefined Layouts
9944     *
9945     * Another interesting thing about the Layout widget is that it offers some
9946     * predefined themes that come with the default Elementary theme. These
9947     * themes can be set by the call elm_layout_theme_set(), and provide some
9948     * basic functionality depending on the theme used.
9949     *
9950     * Most of them already send some signals, some already provide a toolbar or
9951     * back and next buttons.
9952     *
9953     * These are available predefined theme layouts. All of them have class = @c
9954     * layout, group = @c application, and style = one of the following options:
9955     *
9956     * @li @c toolbar-content - application with toolbar and main content area
9957     * @li @c toolbar-content-back - application with toolbar and main content
9958     * area with a back button and title area
9959     * @li @c toolbar-content-back-next - application with toolbar and main
9960     * content area with a back and next buttons and title area
9961     * @li @c content-back - application with a main content area with a back
9962     * button and title area
9963     * @li @c content-back-next - application with a main content area with a
9964     * back and next buttons and title area
9965     * @li @c toolbar-vbox - application with toolbar and main content area as a
9966     * vertical box
9967     * @li @c toolbar-table - application with toolbar and main content area as a
9968     * table
9969     *
9970     * @section secExamples Examples
9971     *
9972     * Some examples of the Layout widget can be found here:
9973     * @li @ref layout_example_01
9974     * @li @ref layout_example_02
9975     * @li @ref layout_example_03
9976     * @li @ref layout_example_edc
9977     *
9978     */
9979
9980    /**
9981     * Add a new layout to the parent
9982     *
9983     * @param parent The parent object
9984     * @return The new object or NULL if it cannot be created
9985     *
9986     * @see elm_layout_file_set()
9987     * @see elm_layout_theme_set()
9988     *
9989     * @ingroup Layout
9990     */
9991    EAPI Evas_Object       *elm_layout_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9992    /**
9993     * Set the file that will be used as layout
9994     *
9995     * @param obj The layout object
9996     * @param file The path to file (edj) that will be used as layout
9997     * @param group The group that the layout belongs in edje file
9998     *
9999     * @return (1 = success, 0 = error)
10000     *
10001     * @ingroup Layout
10002     */
10003    EAPI Eina_Bool          elm_layout_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
10004    /**
10005     * Set the edje group from the elementary theme that will be used as layout
10006     *
10007     * @param obj The layout object
10008     * @param clas the clas of the group
10009     * @param group the group
10010     * @param style the style to used
10011     *
10012     * @return (1 = success, 0 = error)
10013     *
10014     * @ingroup Layout
10015     */
10016    EAPI Eina_Bool          elm_layout_theme_set(Evas_Object *obj, const char *clas, const char *group, const char *style) EINA_ARG_NONNULL(1);
10017    /**
10018     * Set the layout content.
10019     *
10020     * @param obj The layout object
10021     * @param swallow The swallow part name in the edje file
10022     * @param content The child that will be added in this layout object
10023     *
10024     * Once the content object is set, a previously set one will be deleted.
10025     * If you want to keep that old content object, use the
10026     * elm_object_part_content_unset() function.
10027     *
10028     * @note In an Edje theme, the part used as a content container is called @c
10029     * SWALLOW. This is why the parameter name is called @p swallow, but it is
10030     * expected to be a part name just like the second parameter of
10031     * elm_layout_box_append().
10032     *
10033     * @see elm_layout_box_append()
10034     * @see elm_object_part_content_get()
10035     * @see elm_object_part_content_unset()
10036     * @see @ref secBox
10037     * @deprecated use elm_object_part_content_set() instead
10038     *
10039     * @ingroup Layout
10040     */
10041    EINA_DEPRECATED EAPI void               elm_layout_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
10042    /**
10043     * Get the child object in the given content part.
10044     *
10045     * @param obj The layout object
10046     * @param swallow The SWALLOW part to get its content
10047     *
10048     * @return The swallowed object or NULL if none or an error occurred
10049     *
10050     * @deprecated use elm_object_part_content_get() instead
10051     *
10052     * @ingroup Layout
10053     */
10054    EINA_DEPRECATED EAPI Evas_Object       *elm_layout_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10055    /**
10056     * Unset the layout content.
10057     *
10058     * @param obj The layout object
10059     * @param swallow The swallow part name in the edje file
10060     * @return The content that was being used
10061     *
10062     * Unparent and return the content object which was set for this part.
10063     *
10064     * @deprecated use elm_object_part_content_unset() instead
10065     *
10066     * @ingroup Layout
10067     */
10068    EINA_DEPRECATED EAPI Evas_Object       *elm_layout_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10069    /**
10070     * Set the text of the given part
10071     *
10072     * @param obj The layout object
10073     * @param part The TEXT part where to set the text
10074     * @param text The text to set
10075     *
10076     * @ingroup Layout
10077     * @deprecated use elm_object_part_text_set() instead.
10078     */
10079    EINA_DEPRECATED EAPI void               elm_layout_text_set(Evas_Object *obj, const char *part, const char *text) EINA_ARG_NONNULL(1);
10080    /**
10081     * Get the text set in the given part
10082     *
10083     * @param obj The layout object
10084     * @param part The TEXT part to retrieve the text off
10085     *
10086     * @return The text set in @p part
10087     *
10088     * @ingroup Layout
10089     * @deprecated use elm_object_part_text_get() instead.
10090     */
10091    EINA_DEPRECATED EAPI const char        *elm_layout_text_get(const Evas_Object *obj, const char *part) EINA_ARG_NONNULL(1);
10092    /**
10093     * Append child to layout box part.
10094     *
10095     * @param obj the layout object
10096     * @param part the box part to which the object will be appended.
10097     * @param child the child object to append to box.
10098     *
10099     * Once the object is appended, it will become child of the layout. Its
10100     * lifetime will be bound to the layout, whenever the layout dies the child
10101     * will be deleted automatically. One should use elm_layout_box_remove() to
10102     * make this layout forget about the object.
10103     *
10104     * @see elm_layout_box_prepend()
10105     * @see elm_layout_box_insert_before()
10106     * @see elm_layout_box_insert_at()
10107     * @see elm_layout_box_remove()
10108     *
10109     * @ingroup Layout
10110     */
10111    EAPI void               elm_layout_box_append(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
10112    /**
10113     * Prepend child to layout box part.
10114     *
10115     * @param obj the layout object
10116     * @param part the box part to prepend.
10117     * @param child the child object to prepend to box.
10118     *
10119     * Once the object is prepended, it will become child of the layout. Its
10120     * lifetime will be bound to the layout, whenever the layout dies the child
10121     * will be deleted automatically. One should use elm_layout_box_remove() to
10122     * make this layout forget about the object.
10123     *
10124     * @see elm_layout_box_append()
10125     * @see elm_layout_box_insert_before()
10126     * @see elm_layout_box_insert_at()
10127     * @see elm_layout_box_remove()
10128     *
10129     * @ingroup Layout
10130     */
10131    EAPI void               elm_layout_box_prepend(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
10132    /**
10133     * Insert child to layout box part before a reference object.
10134     *
10135     * @param obj the layout object
10136     * @param part the box part to insert.
10137     * @param child the child object to insert into box.
10138     * @param reference another reference object to insert before in box.
10139     *
10140     * Once the object is inserted, it will become child of the layout. Its
10141     * lifetime will be bound to the layout, whenever the layout dies the child
10142     * will be deleted automatically. One should use elm_layout_box_remove() to
10143     * make this layout forget about the object.
10144     *
10145     * @see elm_layout_box_append()
10146     * @see elm_layout_box_prepend()
10147     * @see elm_layout_box_insert_before()
10148     * @see elm_layout_box_remove()
10149     *
10150     * @ingroup Layout
10151     */
10152    EAPI void               elm_layout_box_insert_before(Evas_Object *obj, const char *part, Evas_Object *child, const Evas_Object *reference) EINA_ARG_NONNULL(1);
10153    /**
10154     * Insert child to layout box part at a given position.
10155     *
10156     * @param obj the layout object
10157     * @param part the box part to insert.
10158     * @param child the child object to insert into box.
10159     * @param pos the numeric position >=0 to insert the child.
10160     *
10161     * Once the object is inserted, it will become child of the layout. Its
10162     * lifetime will be bound to the layout, whenever the layout dies the child
10163     * will be deleted automatically. One should use elm_layout_box_remove() to
10164     * make this layout forget about the object.
10165     *
10166     * @see elm_layout_box_append()
10167     * @see elm_layout_box_prepend()
10168     * @see elm_layout_box_insert_before()
10169     * @see elm_layout_box_remove()
10170     *
10171     * @ingroup Layout
10172     */
10173    EAPI void               elm_layout_box_insert_at(Evas_Object *obj, const char *part, Evas_Object *child, unsigned int pos) EINA_ARG_NONNULL(1);
10174    /**
10175     * Remove a child of the given part box.
10176     *
10177     * @param obj The layout object
10178     * @param part The box part name to remove child.
10179     * @param child The object to remove from box.
10180     * @return The object that was being used, or NULL if not found.
10181     *
10182     * The object will be removed from the box part and its lifetime will
10183     * not be handled by the layout anymore. This is equivalent to
10184     * elm_object_part_content_unset() for box.
10185     *
10186     * @see elm_layout_box_append()
10187     * @see elm_layout_box_remove_all()
10188     *
10189     * @ingroup Layout
10190     */
10191    EAPI Evas_Object       *elm_layout_box_remove(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1, 2, 3);
10192    /**
10193     * Remove all child of the given part box.
10194     *
10195     * @param obj The layout object
10196     * @param part The box part name to remove child.
10197     * @param clear If EINA_TRUE, then all objects will be deleted as
10198     *        well, otherwise they will just be removed and will be
10199     *        dangling on the canvas.
10200     *
10201     * The objects will be removed from the box part and their lifetime will
10202     * not be handled by the layout anymore. This is equivalent to
10203     * elm_layout_box_remove() for all box children.
10204     *
10205     * @see elm_layout_box_append()
10206     * @see elm_layout_box_remove()
10207     *
10208     * @ingroup Layout
10209     */
10210    EAPI void               elm_layout_box_remove_all(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
10211    /**
10212     * Insert child to layout table part.
10213     *
10214     * @param obj the layout object
10215     * @param part the box part to pack child.
10216     * @param child_obj the child object to pack into table.
10217     * @param col the column to which the child should be added. (>= 0)
10218     * @param row the row to which the child should be added. (>= 0)
10219     * @param colspan how many columns should be used to store this object. (>=
10220     *        1)
10221     * @param rowspan how many rows should be used to store this object. (>= 1)
10222     *
10223     * Once the object is inserted, it will become child of the table. Its
10224     * lifetime will be bound to the layout, and whenever the layout dies the
10225     * child will be deleted automatically. One should use
10226     * elm_layout_table_remove() to make this layout forget about the object.
10227     *
10228     * If @p colspan or @p rowspan are bigger than 1, that object will occupy
10229     * more space than a single cell. For instance, the following code:
10230     * @code
10231     * elm_layout_table_pack(layout, "table_part", child, 0, 1, 3, 1);
10232     * @endcode
10233     *
10234     * Would result in an object being added like the following picture:
10235     *
10236     * @image html layout_colspan.png
10237     * @image latex layout_colspan.eps width=\textwidth
10238     *
10239     * @see elm_layout_table_unpack()
10240     * @see elm_layout_table_clear()
10241     *
10242     * @ingroup Layout
10243     */
10244    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);
10245    /**
10246     * Unpack (remove) a child of the given part table.
10247     *
10248     * @param obj The layout object
10249     * @param part The table part name to remove child.
10250     * @param child_obj The object to remove from table.
10251     * @return The object that was being used, or NULL if not found.
10252     *
10253     * The object will be unpacked from the table part and its lifetime
10254     * will not be handled by the layout anymore. This is equivalent to
10255     * elm_object_part_content_unset() for table.
10256     *
10257     * @see elm_layout_table_pack()
10258     * @see elm_layout_table_clear()
10259     *
10260     * @ingroup Layout
10261     */
10262    EAPI Evas_Object       *elm_layout_table_unpack(Evas_Object *obj, const char *part, Evas_Object *child_obj) EINA_ARG_NONNULL(1, 2, 3);
10263    /**
10264     * Remove all child of the given part table.
10265     *
10266     * @param obj The layout object
10267     * @param part The table part name to remove child.
10268     * @param clear If EINA_TRUE, then all objects will be deleted as
10269     *        well, otherwise they will just be removed and will be
10270     *        dangling on the canvas.
10271     *
10272     * The objects will be removed from the table part and their lifetime will
10273     * not be handled by the layout anymore. This is equivalent to
10274     * elm_layout_table_unpack() for all table children.
10275     *
10276     * @see elm_layout_table_pack()
10277     * @see elm_layout_table_unpack()
10278     *
10279     * @ingroup Layout
10280     */
10281    EAPI void               elm_layout_table_clear(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
10282    /**
10283     * Get the edje layout
10284     *
10285     * @param obj The layout object
10286     *
10287     * @return A Evas_Object with the edje layout settings loaded
10288     * with function elm_layout_file_set
10289     *
10290     * This returns the edje object. It is not expected to be used to then
10291     * swallow objects via edje_object_part_swallow() for example. Use
10292     * elm_object_part_content_set() instead so child object handling and sizing is
10293     * done properly.
10294     *
10295     * @note This function should only be used if you really need to call some
10296     * low level Edje function on this edje object. All the common stuff (setting
10297     * text, emitting signals, hooking callbacks to signals, etc.) can be done
10298     * with proper elementary functions.
10299     *
10300     * @see elm_object_signal_callback_add()
10301     * @see elm_object_signal_emit()
10302     * @see elm_object_part_text_set()
10303     * @see elm_object_part_content_set()
10304     * @see elm_layout_box_append()
10305     * @see elm_layout_table_pack()
10306     * @see elm_layout_data_get()
10307     *
10308     * @ingroup Layout
10309     */
10310    EAPI Evas_Object       *elm_layout_edje_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10311    /**
10312     * Get the edje data from the given layout
10313     *
10314     * @param obj The layout object
10315     * @param key The data key
10316     *
10317     * @return The edje data string
10318     *
10319     * This function fetches data specified inside the edje theme of this layout.
10320     * This function return NULL if data is not found.
10321     *
10322     * In EDC this comes from a data block within the group block that @p
10323     * obj was loaded from. E.g.
10324     *
10325     * @code
10326     * collections {
10327     *   group {
10328     *     name: "a_group";
10329     *     data {
10330     *       item: "key1" "value1";
10331     *       item: "key2" "value2";
10332     *     }
10333     *   }
10334     * }
10335     * @endcode
10336     *
10337     * @ingroup Layout
10338     */
10339    EAPI const char        *elm_layout_data_get(const Evas_Object *obj, const char *key) EINA_ARG_NONNULL(1, 2);
10340    /**
10341     * Eval sizing
10342     *
10343     * @param obj The layout object
10344     *
10345     * Manually forces a sizing re-evaluation. This is useful when the minimum
10346     * size required by the edje theme of this layout has changed. The change on
10347     * the minimum size required by the edje theme is not immediately reported to
10348     * the elementary layout, so one needs to call this function in order to tell
10349     * the widget (layout) that it needs to reevaluate its own size.
10350     *
10351     * The minimum size of the theme is calculated based on minimum size of
10352     * parts, the size of elements inside containers like box and table, etc. All
10353     * of this can change due to state changes, and that's when this function
10354     * should be called.
10355     *
10356     * Also note that a standard signal of "size,eval" "elm" emitted from the
10357     * edje object will cause this to happen too.
10358     *
10359     * @ingroup Layout
10360     */
10361    EAPI void               elm_layout_sizing_eval(Evas_Object *obj) EINA_ARG_NONNULL(1);
10362
10363    /**
10364     * Sets a specific cursor for an edje part.
10365     *
10366     * @param obj The layout object.
10367     * @param part_name a part from loaded edje group.
10368     * @param cursor cursor name to use, see Elementary_Cursor.h
10369     *
10370     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
10371     *         part not exists or it has "mouse_events: 0".
10372     *
10373     * @ingroup Layout
10374     */
10375    EAPI Eina_Bool          elm_layout_part_cursor_set(Evas_Object *obj, const char *part_name, const char *cursor) EINA_ARG_NONNULL(1, 2);
10376
10377    /**
10378     * Get the cursor to be shown when mouse is over an edje part
10379     *
10380     * @param obj The layout object.
10381     * @param part_name a part from loaded edje group.
10382     * @return the cursor name.
10383     *
10384     * @ingroup Layout
10385     */
10386    EAPI const char        *elm_layout_part_cursor_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10387
10388    /**
10389     * Unsets a cursor previously set with elm_layout_part_cursor_set().
10390     *
10391     * @param obj The layout object.
10392     * @param part_name a part from loaded edje group, that had a cursor set
10393     *        with elm_layout_part_cursor_set().
10394     *
10395     * @ingroup Layout
10396     */
10397    EAPI void               elm_layout_part_cursor_unset(Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10398
10399    /**
10400     * Sets a specific cursor style for an edje part.
10401     *
10402     * @param obj The layout object.
10403     * @param part_name a part from loaded edje group.
10404     * @param style the theme style to use (default, transparent, ...)
10405     *
10406     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
10407     *         part not exists or it did not had a cursor set.
10408     *
10409     * @ingroup Layout
10410     */
10411    EAPI Eina_Bool          elm_layout_part_cursor_style_set(Evas_Object *obj, const char *part_name, const char *style) EINA_ARG_NONNULL(1, 2);
10412
10413    /**
10414     * Gets a specific cursor style for an edje part.
10415     *
10416     * @param obj The layout object.
10417     * @param part_name a part from loaded edje group.
10418     *
10419     * @return the theme style in use, defaults to "default". If the
10420     *         object does not have a cursor set, then NULL is returned.
10421     *
10422     * @ingroup Layout
10423     */
10424    EAPI const char        *elm_layout_part_cursor_style_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10425
10426    /**
10427     * Sets if the cursor set should be searched on the theme or should use
10428     * the provided by the engine, only.
10429     *
10430     * @note before you set if should look on theme you should define a
10431     * cursor with elm_layout_part_cursor_set(). By default it will only
10432     * look for cursors provided by the engine.
10433     *
10434     * @param obj The layout object.
10435     * @param part_name a part from loaded edje group.
10436     * @param engine_only if cursors should be just provided by the engine
10437     *        or should also search on widget's theme as well
10438     *
10439     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
10440     *         part not exists or it did not had a cursor set.
10441     *
10442     * @ingroup Layout
10443     */
10444    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);
10445
10446    /**
10447     * Gets a specific cursor engine_only for an edje part.
10448     *
10449     * @param obj The layout object.
10450     * @param part_name a part from loaded edje group.
10451     *
10452     * @return whenever the cursor is just provided by engine or also from theme.
10453     *
10454     * @ingroup Layout
10455     */
10456    EAPI Eina_Bool          elm_layout_part_cursor_engine_only_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10457
10458 /**
10459  * @def elm_layout_icon_set
10460  * Convienience macro to set the icon object in a layout that follows the
10461  * Elementary naming convention for its parts.
10462  *
10463  * @ingroup Layout
10464  */
10465 #define elm_layout_icon_set(_ly, _obj) \
10466   do { \
10467     const char *sig; \
10468     elm_object_part_content_set((_ly), "elm.swallow.icon", (_obj)); \
10469     if ((_obj)) sig = "elm,state,icon,visible"; \
10470     else sig = "elm,state,icon,hidden"; \
10471     elm_object_signal_emit((_ly), sig, "elm"); \
10472   } while (0)
10473
10474 /**
10475  * @def elm_layout_icon_get
10476  * Convienience macro to get the icon object from a layout that follows the
10477  * Elementary naming convention for its parts.
10478  *
10479  * @ingroup Layout
10480  */
10481 #define elm_layout_icon_get(_ly) \
10482   elm_object_part_content_get((_ly), "elm.swallow.icon")
10483
10484 /**
10485  * @def elm_layout_end_set
10486  * Convienience macro to set the end object in a layout that follows the
10487  * Elementary naming convention for its parts.
10488  *
10489  * @ingroup Layout
10490  */
10491 #define elm_layout_end_set(_ly, _obj) \
10492   do { \
10493     const char *sig; \
10494     elm_object_part_content_set((_ly), "elm.swallow.end", (_obj)); \
10495     if ((_obj)) sig = "elm,state,end,visible"; \
10496     else sig = "elm,state,end,hidden"; \
10497     elm_object_signal_emit((_ly), sig, "elm"); \
10498   } while (0)
10499
10500 /**
10501  * @def elm_layout_end_get
10502  * Convienience macro to get the end object in a layout that follows the
10503  * Elementary naming convention for its parts.
10504  *
10505  * @ingroup Layout
10506  */
10507 #define elm_layout_end_get(_ly) \
10508   elm_object_part_content_get((_ly), "elm.swallow.end")
10509
10510 /**
10511  * @def elm_layout_label_set
10512  * Convienience macro to set the label in a layout that follows the
10513  * Elementary naming convention for its parts.
10514  *
10515  * @ingroup Layout
10516  * @deprecated use elm_object_text_set() instead.
10517  */
10518 #define elm_layout_label_set(_ly, _txt) \
10519   elm_layout_text_set((_ly), "elm.text", (_txt))
10520
10521 /**
10522  * @def elm_layout_label_get
10523  * Convenience macro to get the label in a layout that follows the
10524  * Elementary naming convention for its parts.
10525  *
10526  * @ingroup Layout
10527  * @deprecated use elm_object_text_set() instead.
10528  */
10529 #define elm_layout_label_get(_ly) \
10530   elm_layout_text_get((_ly), "elm.text")
10531
10532    /* smart callbacks called:
10533     * "theme,changed" - when elm theme is changed.
10534     */
10535
10536    /**
10537     * @defgroup Notify Notify
10538     *
10539     * @image html img/widget/notify/preview-00.png
10540     * @image latex img/widget/notify/preview-00.eps
10541     *
10542     * Display a container in a particular region of the parent(top, bottom,
10543     * etc).  A timeout can be set to automatically hide the notify. This is so
10544     * that, after an evas_object_show() on a notify object, if a timeout was set
10545     * on it, it will @b automatically get hidden after that time.
10546     *
10547     * Signals that you can add callbacks for are:
10548     * @li "timeout" - when timeout happens on notify and it's hidden
10549     * @li "block,clicked" - when a click outside of the notify happens
10550     *
10551     * Default contents parts of the notify widget that you can use for are:
10552     * @li "default" - A content of the notify
10553     *
10554     * @ref tutorial_notify show usage of the API.
10555     *
10556     * @{
10557     */
10558    /**
10559     * @brief Possible orient values for notify.
10560     *
10561     * This values should be used in conjunction to elm_notify_orient_set() to
10562     * set the position in which the notify should appear(relative to its parent)
10563     * and in conjunction with elm_notify_orient_get() to know where the notify
10564     * is appearing.
10565     */
10566    typedef enum _Elm_Notify_Orient
10567      {
10568         ELM_NOTIFY_ORIENT_TOP, /**< Notify should appear in the top of parent, default */
10569         ELM_NOTIFY_ORIENT_CENTER, /**< Notify should appear in the center of parent */
10570         ELM_NOTIFY_ORIENT_BOTTOM, /**< Notify should appear in the bottom of parent */
10571         ELM_NOTIFY_ORIENT_LEFT, /**< Notify should appear in the left of parent */
10572         ELM_NOTIFY_ORIENT_RIGHT, /**< Notify should appear in the right of parent */
10573         ELM_NOTIFY_ORIENT_TOP_LEFT, /**< Notify should appear in the top left of parent */
10574         ELM_NOTIFY_ORIENT_TOP_RIGHT, /**< Notify should appear in the top right of parent */
10575         ELM_NOTIFY_ORIENT_BOTTOM_LEFT, /**< Notify should appear in the bottom left of parent */
10576         ELM_NOTIFY_ORIENT_BOTTOM_RIGHT, /**< Notify should appear in the bottom right of parent */
10577         ELM_NOTIFY_ORIENT_LAST /**< Sentinel value, @b don't use */
10578      } Elm_Notify_Orient;
10579    /**
10580     * @brief Add a new notify to the parent
10581     *
10582     * @param parent The parent object
10583     * @return The new object or NULL if it cannot be created
10584     */
10585    EAPI Evas_Object      *elm_notify_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10586    /**
10587     * @brief Set the content of the notify widget
10588     *
10589     * @param obj The notify object
10590     * @param content The content will be filled in this notify object
10591     *
10592     * Once the content object is set, a previously set one will be deleted. If
10593     * you want to keep that old content object, use the
10594     * elm_notify_content_unset() function.
10595     *
10596     * @deprecated use elm_object_content_set() instead
10597     *
10598     */
10599    EINA_DEPRECATED EAPI void              elm_notify_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
10600    /**
10601     * @brief Unset the content of the notify widget
10602     *
10603     * @param obj The notify object
10604     * @return The content that was being used
10605     *
10606     * Unparent and return the content object which was set for this widget
10607     *
10608     * @see elm_notify_content_set()
10609     * @deprecated use elm_object_content_unset() instead
10610     *
10611     */
10612    EINA_DEPRECATED EAPI Evas_Object      *elm_notify_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
10613    /**
10614     * @brief Return the content of the notify widget
10615     *
10616     * @param obj The notify object
10617     * @return The content that is being used
10618     *
10619     * @see elm_notify_content_set()
10620     * @deprecated use elm_object_content_get() instead
10621     *
10622     */
10623    EINA_DEPRECATED EAPI Evas_Object      *elm_notify_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10624    /**
10625     * @brief Set the notify parent
10626     *
10627     * @param obj The notify object
10628     * @param content The new parent
10629     *
10630     * Once the parent object is set, a previously set one will be disconnected
10631     * and replaced.
10632     */
10633    EAPI void              elm_notify_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
10634    /**
10635     * @brief Get the notify parent
10636     *
10637     * @param obj The notify object
10638     * @return The parent
10639     *
10640     * @see elm_notify_parent_set()
10641     */
10642    EAPI Evas_Object      *elm_notify_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10643    /**
10644     * @brief Set the orientation
10645     *
10646     * @param obj The notify object
10647     * @param orient The new orientation
10648     *
10649     * Sets the position in which the notify will appear in its parent.
10650     *
10651     * @see @ref Elm_Notify_Orient for possible values.
10652     */
10653    EAPI void              elm_notify_orient_set(Evas_Object *obj, Elm_Notify_Orient orient) EINA_ARG_NONNULL(1);
10654    /**
10655     * @brief Return the orientation
10656     * @param obj The notify object
10657     * @return The orientation of the notification
10658     *
10659     * @see elm_notify_orient_set()
10660     * @see Elm_Notify_Orient
10661     */
10662    EAPI Elm_Notify_Orient elm_notify_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10663    /**
10664     * @brief Set the time interval after which the notify window is going to be
10665     * hidden.
10666     *
10667     * @param obj The notify object
10668     * @param time The timeout in seconds
10669     *
10670     * This function sets a timeout and starts the timer controlling when the
10671     * notify is hidden. Since calling evas_object_show() on a notify restarts
10672     * the timer controlling when the notify is hidden, setting this before the
10673     * notify is shown will in effect mean starting the timer when the notify is
10674     * shown.
10675     *
10676     * @note Set a value <= 0.0 to disable a running timer.
10677     *
10678     * @note If the value > 0.0 and the notify is previously visible, the
10679     * timer will be started with this value, canceling any running timer.
10680     */
10681    EAPI void              elm_notify_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
10682    /**
10683     * @brief Return the timeout value (in seconds)
10684     * @param obj the notify object
10685     *
10686     * @see elm_notify_timeout_set()
10687     */
10688    EAPI double            elm_notify_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10689    /**
10690     * @brief Sets whether events should be passed to by a click outside
10691     * its area.
10692     *
10693     * @param obj The notify object
10694     * @param repeats EINA_TRUE Events are repeats, else no
10695     *
10696     * When true if the user clicks outside the window the events will be caught
10697     * by the others widgets, else the events are blocked.
10698     *
10699     * @note The default value is EINA_TRUE.
10700     */
10701    EAPI void              elm_notify_repeat_events_set(Evas_Object *obj, Eina_Bool repeat) EINA_ARG_NONNULL(1);
10702    /**
10703     * @brief Return true if events are repeat below the notify object
10704     * @param obj the notify object
10705     *
10706     * @see elm_notify_repeat_events_set()
10707     */
10708    EAPI Eina_Bool         elm_notify_repeat_events_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10709    /**
10710     * @}
10711     */
10712
10713    /**
10714     * @defgroup Hover Hover
10715     *
10716     * @image html img/widget/hover/preview-00.png
10717     * @image latex img/widget/hover/preview-00.eps
10718     *
10719     * A Hover object will hover over its @p parent object at the @p target
10720     * location. Anything in the background will be given a darker coloring to
10721     * indicate that the hover object is on top (at the default theme). When the
10722     * hover is clicked it is dismissed(hidden), if the contents of the hover are
10723     * clicked that @b doesn't cause the hover to be dismissed.
10724     *
10725     * A Hover object has two parents. One parent that owns it during creation
10726     * and the other parent being the one over which the hover object spans.
10727     *
10728     *
10729     * @note The hover object will take up the entire space of @p target
10730     * object.
10731     *
10732     * Elementary has the following styles for the hover widget:
10733     * @li default
10734     * @li popout
10735     * @li menu
10736     * @li hoversel_vertical
10737     *
10738     * The following are the available position for content:
10739     * @li left
10740     * @li top-left
10741     * @li top
10742     * @li top-right
10743     * @li right
10744     * @li bottom-right
10745     * @li bottom
10746     * @li bottom-left
10747     * @li middle
10748     * @li smart
10749     *
10750     * Signals that you can add callbacks for are:
10751     * @li "clicked" - the user clicked the empty space in the hover to dismiss
10752     * @li "smart,changed" - a content object placed under the "smart"
10753     *                   policy was replaced to a new slot direction.
10754     *
10755     * See @ref tutorial_hover for more information.
10756     *
10757     * @{
10758     */
10759    typedef enum _Elm_Hover_Axis
10760      {
10761         ELM_HOVER_AXIS_NONE, /**< ELM_HOVER_AXIS_NONE -- no prefered orientation */
10762         ELM_HOVER_AXIS_HORIZONTAL, /**< ELM_HOVER_AXIS_HORIZONTAL -- horizontal */
10763         ELM_HOVER_AXIS_VERTICAL, /**< ELM_HOVER_AXIS_VERTICAL -- vertical */
10764         ELM_HOVER_AXIS_BOTH /**< ELM_HOVER_AXIS_BOTH -- both */
10765      } Elm_Hover_Axis;
10766    /**
10767     * @brief Adds a hover object to @p parent
10768     *
10769     * @param parent The parent object
10770     * @return The hover object or NULL if one could not be created
10771     */
10772    EAPI Evas_Object *elm_hover_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10773    /**
10774     * @brief Sets the target object for the hover.
10775     *
10776     * @param obj The hover object
10777     * @param target The object to center the hover onto. The hover
10778     *
10779     * This function will cause the hover to be centered on the target object.
10780     */
10781    EAPI void         elm_hover_target_set(Evas_Object *obj, Evas_Object *target) EINA_ARG_NONNULL(1);
10782    /**
10783     * @brief Gets the target object for the hover.
10784     *
10785     * @param obj The hover object
10786     * @param parent The object to locate the hover over.
10787     *
10788     * @see elm_hover_target_set()
10789     */
10790    EAPI Evas_Object *elm_hover_target_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10791    /**
10792     * @brief Sets the parent object for the hover.
10793     *
10794     * @param obj The hover object
10795     * @param parent The object to locate the hover over.
10796     *
10797     * This function will cause the hover to take up the entire space that the
10798     * parent object fills.
10799     */
10800    EAPI void         elm_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
10801    /**
10802     * @brief Gets the parent object for the hover.
10803     *
10804     * @param obj The hover object
10805     * @return The parent object to locate the hover over.
10806     *
10807     * @see elm_hover_parent_set()
10808     */
10809    EAPI Evas_Object *elm_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10810    /**
10811     * @brief Sets the content of the hover object and the direction in which it
10812     * will pop out.
10813     *
10814     * @param obj The hover object
10815     * @param swallow The direction that the object will be displayed
10816     * at. Accepted values are "left", "top-left", "top", "top-right",
10817     * "right", "bottom-right", "bottom", "bottom-left", "middle" and
10818     * "smart".
10819     * @param content The content to place at @p swallow
10820     *
10821     * Once the content object is set for a given direction, a previously
10822     * set one (on the same direction) will be deleted. If you want to
10823     * keep that old content object, use the elm_hover_content_unset()
10824     * function.
10825     *
10826     * All directions may have contents at the same time, except for
10827     * "smart". This is a special placement hint and its use case
10828     * independs of the calculations coming from
10829     * elm_hover_best_content_location_get(). Its use is for cases when
10830     * one desires only one hover content, but with a dinamic special
10831     * placement within the hover area. The content's geometry, whenever
10832     * it changes, will be used to decide on a best location not
10833     * extrapolating the hover's parent object view to show it in (still
10834     * being the hover's target determinant of its medium part -- move and
10835     * resize it to simulate finger sizes, for example). If one of the
10836     * directions other than "smart" are used, a previously content set
10837     * using it will be deleted, and vice-versa.
10838     */
10839    EAPI void         elm_hover_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
10840    /**
10841     * @brief Get the content of the hover object, in a given direction.
10842     *
10843     * Return the content object which was set for this widget in the
10844     * @p swallow direction.
10845     *
10846     * @param obj The hover object
10847     * @param swallow The direction that the object was display at.
10848     * @return The content that was being used
10849     *
10850     * @see elm_hover_content_set()
10851     */
10852    EAPI Evas_Object *elm_hover_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10853    /**
10854     * @brief Unset the content of the hover object, in a given direction.
10855     *
10856     * Unparent and return the content object set at @p swallow direction.
10857     *
10858     * @param obj The hover object
10859     * @param swallow The direction that the object was display at.
10860     * @return The content that was being used.
10861     *
10862     * @see elm_hover_content_set()
10863     */
10864    EAPI Evas_Object *elm_hover_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10865    /**
10866     * @brief Returns the best swallow location for content in the hover.
10867     *
10868     * @param obj The hover object
10869     * @param pref_axis The preferred orientation axis for the hover object to use
10870     * @return The edje location to place content into the hover or @c
10871     *         NULL, on errors.
10872     *
10873     * Best is defined here as the location at which there is the most available
10874     * space.
10875     *
10876     * @p pref_axis may be one of
10877     * - @c ELM_HOVER_AXIS_NONE -- no prefered orientation
10878     * - @c ELM_HOVER_AXIS_HORIZONTAL -- horizontal
10879     * - @c ELM_HOVER_AXIS_VERTICAL -- vertical
10880     * - @c ELM_HOVER_AXIS_BOTH -- both
10881     *
10882     * If ELM_HOVER_AXIS_HORIZONTAL is choosen the returned position will
10883     * nescessarily be along the horizontal axis("left" or "right"). If
10884     * ELM_HOVER_AXIS_VERTICAL is choosen the returned position will nescessarily
10885     * be along the vertical axis("top" or "bottom"). Chossing
10886     * ELM_HOVER_AXIS_BOTH or ELM_HOVER_AXIS_NONE has the same effect and the
10887     * returned position may be in either axis.
10888     *
10889     * @see elm_hover_content_set()
10890     */
10891    EAPI const char  *elm_hover_best_content_location_get(const Evas_Object *obj, Elm_Hover_Axis pref_axis) EINA_ARG_NONNULL(1);
10892    /**
10893     * @}
10894     */
10895
10896    /* entry */
10897    /**
10898     * @defgroup Entry Entry
10899     *
10900     * @image html img/widget/entry/preview-00.png
10901     * @image latex img/widget/entry/preview-00.eps width=\textwidth
10902     * @image html img/widget/entry/preview-01.png
10903     * @image latex img/widget/entry/preview-01.eps width=\textwidth
10904     * @image html img/widget/entry/preview-02.png
10905     * @image latex img/widget/entry/preview-02.eps width=\textwidth
10906     * @image html img/widget/entry/preview-03.png
10907     * @image latex img/widget/entry/preview-03.eps width=\textwidth
10908     *
10909     * An entry is a convenience widget which shows a box that the user can
10910     * enter text into. Entries by default don't scroll, so they grow to
10911     * accomodate the entire text, resizing the parent window as needed. This
10912     * can be changed with the elm_entry_scrollable_set() function.
10913     *
10914     * They can also be single line or multi line (the default) and when set
10915     * to multi line mode they support text wrapping in any of the modes
10916     * indicated by #Elm_Wrap_Type.
10917     *
10918     * Other features include password mode, filtering of inserted text with
10919     * elm_entry_text_filter_append() and related functions, inline "items" and
10920     * formatted markup text.
10921     *
10922     * @section entry-markup Formatted text
10923     *
10924     * The markup tags supported by the Entry are defined by the theme, but
10925     * even when writing new themes or extensions it's a good idea to stick to
10926     * a sane default, to maintain coherency and avoid application breakages.
10927     * Currently defined by the default theme are the following tags:
10928     * @li \<br\>: Inserts a line break.
10929     * @li \<ps\>: Inserts a paragraph separator. This is preferred over line
10930     * breaks.
10931     * @li \<tab\>: Inserts a tab.
10932     * @li \<em\>...\</em\>: Emphasis. Sets the @em oblique style for the
10933     * enclosed text.
10934     * @li \<b\>...\</b\>: Sets the @b bold style for the enclosed text.
10935     * @li \<link\>...\</link\>: Underlines the enclosed text.
10936     * @li \<hilight\>...\</hilight\>: Hilights the enclosed text.
10937     *
10938     * @section entry-special Special markups
10939     *
10940     * Besides those used to format text, entries support two special markup
10941     * tags used to insert clickable portions of text or items inlined within
10942     * the text.
10943     *
10944     * @subsection entry-anchors Anchors
10945     *
10946     * Anchors are similar to HTML anchors. Text can be surrounded by \<a\> and
10947     * \</a\> tags and an event will be generated when this text is clicked,
10948     * like this:
10949     *
10950     * @code
10951     * This text is outside <a href=anc-01>but this one is an anchor</a>
10952     * @endcode
10953     *
10954     * The @c href attribute in the opening tag gives the name that will be
10955     * used to identify the anchor and it can be any valid utf8 string.
10956     *
10957     * When an anchor is clicked, an @c "anchor,clicked" signal is emitted with
10958     * an #Elm_Entry_Anchor_Info in the @c event_info parameter for the
10959     * callback function. The same applies for "anchor,in" (mouse in), "anchor,out"
10960     * (mouse out), "anchor,down" (mouse down), and "anchor,up" (mouse up) events on
10961     * an anchor.
10962     *
10963     * @subsection entry-items Items
10964     *
10965     * Inlined in the text, any other @c Evas_Object can be inserted by using
10966     * \<item\> tags this way:
10967     *
10968     * @code
10969     * <item size=16x16 vsize=full href=emoticon/haha></item>
10970     * @endcode
10971     *
10972     * Just like with anchors, the @c href identifies each item, but these need,
10973     * in addition, to indicate their size, which is done using any one of
10974     * @c size, @c absize or @c relsize attributes. These attributes take their
10975     * value in the WxH format, where W is the width and H the height of the
10976     * item.
10977     *
10978     * @li absize: Absolute pixel size for the item. Whatever value is set will
10979     * be the item's size regardless of any scale value the object may have
10980     * been set to. The final line height will be adjusted to fit larger items.
10981     * @li size: Similar to @c absize, but it's adjusted to the scale value set
10982     * for the object.
10983     * @li relsize: Size is adjusted for the item to fit within the current
10984     * line height.
10985     *
10986     * Besides their size, items are specificed a @c vsize value that affects
10987     * how their final size and position are calculated. The possible values
10988     * are:
10989     * @li ascent: Item will be placed within the line's baseline and its
10990     * ascent. That is, the height between the line where all characters are
10991     * positioned and the highest point in the line. For @c size and @c absize
10992     * items, the descent value will be added to the total line height to make
10993     * them fit. @c relsize items will be adjusted to fit within this space.
10994     * @li full: Items will be placed between the descent and ascent, or the
10995     * lowest point in the line and its highest.
10996     *
10997     * The next image shows different configurations of items and how they
10998     * are the previously mentioned options affect their sizes. In all cases,
10999     * the green line indicates the ascent, blue for the baseline and red for
11000     * the descent.
11001     *
11002     * @image html entry_item.png
11003     * @image latex entry_item.eps width=\textwidth
11004     *
11005     * And another one to show how size differs from absize. In the first one,
11006     * the scale value is set to 1.0, while the second one is using one of 2.0.
11007     *
11008     * @image html entry_item_scale.png
11009     * @image latex entry_item_scale.eps width=\textwidth
11010     *
11011     * After the size for an item is calculated, the entry will request an
11012     * object to place in its space. For this, the functions set with
11013     * elm_entry_item_provider_append() and related functions will be called
11014     * in order until one of them returns a @c non-NULL value. If no providers
11015     * are available, or all of them return @c NULL, then the entry falls back
11016     * to one of the internal defaults, provided the name matches with one of
11017     * them.
11018     *
11019     * All of the following are currently supported:
11020     *
11021     * - emoticon/angry
11022     * - emoticon/angry-shout
11023     * - emoticon/crazy-laugh
11024     * - emoticon/evil-laugh
11025     * - emoticon/evil
11026     * - emoticon/goggle-smile
11027     * - emoticon/grumpy
11028     * - emoticon/grumpy-smile
11029     * - emoticon/guilty
11030     * - emoticon/guilty-smile
11031     * - emoticon/haha
11032     * - emoticon/half-smile
11033     * - emoticon/happy-panting
11034     * - emoticon/happy
11035     * - emoticon/indifferent
11036     * - emoticon/kiss
11037     * - emoticon/knowing-grin
11038     * - emoticon/laugh
11039     * - emoticon/little-bit-sorry
11040     * - emoticon/love-lots
11041     * - emoticon/love
11042     * - emoticon/minimal-smile
11043     * - emoticon/not-happy
11044     * - emoticon/not-impressed
11045     * - emoticon/omg
11046     * - emoticon/opensmile
11047     * - emoticon/smile
11048     * - emoticon/sorry
11049     * - emoticon/squint-laugh
11050     * - emoticon/surprised
11051     * - emoticon/suspicious
11052     * - emoticon/tongue-dangling
11053     * - emoticon/tongue-poke
11054     * - emoticon/uh
11055     * - emoticon/unhappy
11056     * - emoticon/very-sorry
11057     * - emoticon/what
11058     * - emoticon/wink
11059     * - emoticon/worried
11060     * - emoticon/wtf
11061     *
11062     * Alternatively, an item may reference an image by its path, using
11063     * the URI form @c file:///path/to/an/image.png and the entry will then
11064     * use that image for the item.
11065     *
11066     * @section entry-files Loading and saving files
11067     *
11068     * Entries have convinience functions to load text from a file and save
11069     * changes back to it after a short delay. The automatic saving is enabled
11070     * by default, but can be disabled with elm_entry_autosave_set() and files
11071     * can be loaded directly as plain text or have any markup in them
11072     * recognized. See elm_entry_file_set() for more details.
11073     *
11074     * @section entry-signals Emitted signals
11075     *
11076     * This widget emits the following signals:
11077     *
11078     * @li "changed": The text within the entry was changed.
11079     * @li "changed,user": The text within the entry was changed because of user interaction.
11080     * @li "activated": The enter key was pressed on a single line entry.
11081     * @li "press": A mouse button has been pressed on the entry.
11082     * @li "longpressed": A mouse button has been pressed and held for a couple
11083     * seconds.
11084     * @li "clicked": The entry has been clicked (mouse press and release).
11085     * @li "clicked,double": The entry has been double clicked.
11086     * @li "clicked,triple": The entry has been triple clicked.
11087     * @li "focused": The entry has received focus.
11088     * @li "unfocused": The entry has lost focus.
11089     * @li "selection,paste": A paste of the clipboard contents was requested.
11090     * @li "selection,copy": A copy of the selected text into the clipboard was
11091     * requested.
11092     * @li "selection,cut": A cut of the selected text into the clipboard was
11093     * requested.
11094     * @li "selection,start": A selection has begun and no previous selection
11095     * existed.
11096     * @li "selection,changed": The current selection has changed.
11097     * @li "selection,cleared": The current selection has been cleared.
11098     * @li "cursor,changed": The cursor has changed position.
11099     * @li "anchor,clicked": An anchor has been clicked. The event_info
11100     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11101     * @li "anchor,in": Mouse cursor has moved into an anchor. The event_info
11102     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11103     * @li "anchor,out": Mouse cursor has moved out of an anchor. The event_info
11104     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11105     * @li "anchor,up": Mouse button has been unpressed on an anchor. The event_info
11106     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11107     * @li "anchor,down": Mouse button has been pressed on an anchor. The event_info
11108     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11109     * @li "preedit,changed": The preedit string has changed.
11110     * @li "language,changed": Program language changed.
11111     *
11112     * @section entry-examples
11113     *
11114     * An overview of the Entry API can be seen in @ref entry_example_01
11115     *
11116     * @{
11117     */
11118    /**
11119     * @typedef Elm_Entry_Anchor_Info
11120     *
11121     * The info sent in the callback for the "anchor,clicked" signals emitted
11122     * by entries.
11123     */
11124    typedef struct _Elm_Entry_Anchor_Info Elm_Entry_Anchor_Info;
11125    /**
11126     * @struct _Elm_Entry_Anchor_Info
11127     *
11128     * The info sent in the callback for the "anchor,clicked" signals emitted
11129     * by entries.
11130     */
11131    struct _Elm_Entry_Anchor_Info
11132      {
11133         const char *name; /**< The name of the anchor, as stated in its href */
11134         int         button; /**< The mouse button used to click on it */
11135         Evas_Coord  x, /**< Anchor geometry, relative to canvas */
11136                     y, /**< Anchor geometry, relative to canvas */
11137                     w, /**< Anchor geometry, relative to canvas */
11138                     h; /**< Anchor geometry, relative to canvas */
11139      };
11140    /**
11141     * @typedef Elm_Entry_Filter_Cb
11142     * This callback type is used by entry filters to modify text.
11143     * @param data The data specified as the last param when adding the filter
11144     * @param entry The entry object
11145     * @param text A pointer to the location of the text being filtered. This data can be modified,
11146     * but any additional allocations must be managed by the user.
11147     * @see elm_entry_text_filter_append
11148     * @see elm_entry_text_filter_prepend
11149     */
11150    typedef void (*Elm_Entry_Filter_Cb)(void *data, Evas_Object *entry, char **text);
11151
11152    /**
11153     * @typedef Elm_Entry_Change_Info
11154     * This corresponds to Edje_Entry_Change_Info. Includes information about
11155     * a change in the entry.
11156     */
11157    typedef Edje_Entry_Change_Info Elm_Entry_Change_Info;
11158
11159
11160    /**
11161     * This adds an entry to @p parent object.
11162     *
11163     * By default, entries are:
11164     * @li not scrolled
11165     * @li multi-line
11166     * @li word wrapped
11167     * @li autosave is enabled
11168     *
11169     * @param parent The parent object
11170     * @return The new object or NULL if it cannot be created
11171     */
11172    EAPI Evas_Object *elm_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11173    /**
11174     * Sets the entry to single line mode.
11175     *
11176     * In single line mode, entries don't ever wrap when the text reaches the
11177     * edge, and instead they keep growing horizontally. Pressing the @c Enter
11178     * key will generate an @c "activate" event instead of adding a new line.
11179     *
11180     * When @p single_line is @c EINA_FALSE, line wrapping takes effect again
11181     * and pressing enter will break the text into a different line
11182     * without generating any events.
11183     *
11184     * @param obj The entry object
11185     * @param single_line If true, the text in the entry
11186     * will be on a single line.
11187     */
11188    EAPI void         elm_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
11189    /**
11190     * Gets whether the entry is set to be single line.
11191     *
11192     * @param obj The entry object
11193     * @return single_line If true, the text in the entry is set to display
11194     * on a single line.
11195     *
11196     * @see elm_entry_single_line_set()
11197     */
11198    EAPI Eina_Bool    elm_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11199    /**
11200     * Sets the entry to password mode.
11201     *
11202     * In password mode, entries are implicitly single line and the display of
11203     * any text in them is replaced with asterisks (*).
11204     *
11205     * @param obj The entry object
11206     * @param password If true, password mode is enabled.
11207     */
11208    EAPI void         elm_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
11209    /**
11210     * Gets whether the entry is set to password mode.
11211     *
11212     * @param obj The entry object
11213     * @return If true, the entry is set to display all characters
11214     * as asterisks (*).
11215     *
11216     * @see elm_entry_password_set()
11217     */
11218    EAPI Eina_Bool    elm_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11219    /**
11220     * This sets the text displayed within the entry to @p entry.
11221     *
11222     * @param obj The entry object
11223     * @param entry The text to be displayed
11224     *
11225     * @deprecated Use elm_object_text_set() instead.
11226     * @note Using this function bypasses text filters
11227     */
11228    EAPI void         elm_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
11229    /**
11230     * This returns the text currently shown in object @p entry.
11231     * See also elm_entry_entry_set().
11232     *
11233     * @param obj The entry object
11234     * @return The currently displayed text or NULL on failure
11235     *
11236     * @deprecated Use elm_object_text_get() instead.
11237     */
11238    EAPI const char  *elm_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11239    /**
11240     * Appends @p entry to the text of the entry.
11241     *
11242     * Adds the text in @p entry to the end of any text already present in the
11243     * widget.
11244     *
11245     * The appended text is subject to any filters set for the widget.
11246     *
11247     * @param obj The entry object
11248     * @param entry The text to be displayed
11249     *
11250     * @see elm_entry_text_filter_append()
11251     */
11252    EAPI void         elm_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
11253    /**
11254     * Gets whether the entry is empty.
11255     *
11256     * Empty means no text at all. If there are any markup tags, like an item
11257     * tag for which no provider finds anything, and no text is displayed, this
11258     * function still returns EINA_FALSE.
11259     *
11260     * @param obj The entry object
11261     * @return EINA_TRUE if the entry is empty, EINA_FALSE otherwise.
11262     */
11263    EAPI Eina_Bool    elm_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11264    /**
11265     * Gets any selected text within the entry.
11266     *
11267     * If there's any selected text in the entry, this function returns it as
11268     * a string in markup format. NULL is returned if no selection exists or
11269     * if an error occurred.
11270     *
11271     * The returned value points to an internal string and should not be freed
11272     * or modified in any way. If the @p entry object is deleted or its
11273     * contents are changed, the returned pointer should be considered invalid.
11274     *
11275     * @param obj The entry object
11276     * @return The selected text within the entry or NULL on failure
11277     */
11278    EAPI const char  *elm_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11279    /**
11280     * Returns the actual textblock object of the entry.
11281     *
11282     * This function exposes the internal textblock object that actually
11283     * contains and draws the text. This should be used for low-level
11284     * manipulations that are otherwise not possible.
11285     *
11286     * Changing the textblock directly from here will not notify edje/elm to
11287     * recalculate the textblock size automatically, so any modifications
11288     * done to the textblock returned by this function should be followed by
11289     * a call to elm_entry_calc_force().
11290     *
11291     * The return value is marked as const as an additional warning.
11292     * One should not use the returned object with any of the generic evas
11293     * functions (geometry_get/resize/move and etc), but only with the textblock
11294     * functions; The former will either not work at all, or break the correct
11295     * functionality.
11296     *
11297     * IMPORTANT: Many functions may change (i.e delete and create a new one)
11298     * the internal textblock object. Do NOT cache the returned object, and try
11299     * not to mix calls on this object with regular elm_entry calls (which may
11300     * change the internal textblock object). This applies to all cursors
11301     * returned from textblock calls, and all the other derivative values.
11302     *
11303     * @param obj The entry object
11304     * @return The textblock object.
11305     */
11306    EAPI const Evas_Object *elm_entry_textblock_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11307    /**
11308     * Forces calculation of the entry size and text layouting.
11309     *
11310     * This should be used after modifying the textblock object directly. See
11311     * elm_entry_textblock_get() for more information.
11312     *
11313     * @param obj The entry object
11314     *
11315     * @see elm_entry_textblock_get()
11316     */
11317    EAPI void elm_entry_calc_force(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11318    /**
11319     * Inserts the given text into the entry at the current cursor position.
11320     *
11321     * This inserts text at the cursor position as if it was typed
11322     * by the user (note that this also allows markup which a user
11323     * can't just "type" as it would be converted to escaped text, so this
11324     * call can be used to insert things like emoticon items or bold push/pop
11325     * tags, other font and color change tags etc.)
11326     *
11327     * If any selection exists, it will be replaced by the inserted text.
11328     *
11329     * The inserted text is subject to any filters set for the widget.
11330     *
11331     * @param obj The entry object
11332     * @param entry The text to insert
11333     *
11334     * @see elm_entry_text_filter_append()
11335     */
11336    EAPI void         elm_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
11337    /**
11338     * Set the line wrap type to use on multi-line entries.
11339     *
11340     * Sets the wrap type used by the entry to any of the specified in
11341     * #Elm_Wrap_Type. This tells how the text will be implicitly cut into a new
11342     * line (without inserting a line break or paragraph separator) when it
11343     * reaches the far edge of the widget.
11344     *
11345     * Note that this only makes sense for multi-line entries. A widget set
11346     * to be single line will never wrap.
11347     *
11348     * @param obj The entry object
11349     * @param wrap The wrap mode to use. See #Elm_Wrap_Type for details on them
11350     */
11351    EAPI void         elm_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
11352    /**
11353     * Gets the wrap mode the entry was set to use.
11354     *
11355     * @param obj The entry object
11356     * @return Wrap type
11357     *
11358     * @see also elm_entry_line_wrap_set()
11359     */
11360    EAPI Elm_Wrap_Type elm_entry_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11361    /**
11362     * Sets if the entry is to be editable or not.
11363     *
11364     * By default, entries are editable and when focused, any text input by the
11365     * user will be inserted at the current cursor position. But calling this
11366     * function with @p editable as EINA_FALSE will prevent the user from
11367     * inputting text into the entry.
11368     *
11369     * The only way to change the text of a non-editable entry is to use
11370     * elm_object_text_set(), elm_entry_entry_insert() and other related
11371     * functions.
11372     *
11373     * @param obj The entry object
11374     * @param editable If EINA_TRUE, user input will be inserted in the entry,
11375     * if not, the entry is read-only and no user input is allowed.
11376     */
11377    EAPI void         elm_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
11378    /**
11379     * Gets whether the entry is editable or not.
11380     *
11381     * @param obj The entry object
11382     * @return If true, the entry is editable by the user.
11383     * If false, it is not editable by the user
11384     *
11385     * @see elm_entry_editable_set()
11386     */
11387    EAPI Eina_Bool    elm_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11388    /**
11389     * This drops any existing text selection within the entry.
11390     *
11391     * @param obj The entry object
11392     */
11393    EAPI void         elm_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
11394    /**
11395     * This selects all text within the entry.
11396     *
11397     * @param obj The entry object
11398     */
11399    EAPI void         elm_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
11400    /**
11401     * This moves the cursor one place to the right within the entry.
11402     *
11403     * @param obj The entry object
11404     * @return EINA_TRUE upon success, EINA_FALSE upon failure
11405     */
11406    EAPI Eina_Bool    elm_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
11407    /**
11408     * This moves the cursor one place to the left within the entry.
11409     *
11410     * @param obj The entry object
11411     * @return EINA_TRUE upon success, EINA_FALSE upon failure
11412     */
11413    EAPI Eina_Bool    elm_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
11414    /**
11415     * This moves the cursor one line up within the entry.
11416     *
11417     * @param obj The entry object
11418     * @return EINA_TRUE upon success, EINA_FALSE upon failure
11419     */
11420    EAPI Eina_Bool    elm_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
11421    /**
11422     * This moves the cursor one line down within the entry.
11423     *
11424     * @param obj The entry object
11425     * @return EINA_TRUE upon success, EINA_FALSE upon failure
11426     */
11427    EAPI Eina_Bool    elm_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
11428    /**
11429     * This moves the cursor to the beginning of the entry.
11430     *
11431     * @param obj The entry object
11432     */
11433    EAPI void         elm_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
11434    /**
11435     * This moves the cursor to the end of the entry.
11436     *
11437     * @param obj The entry object
11438     */
11439    EAPI void         elm_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
11440    /**
11441     * This moves the cursor to the beginning of the current line.
11442     *
11443     * @param obj The entry object
11444     */
11445    EAPI void         elm_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
11446    /**
11447     * This moves the cursor to the end of the current line.
11448     *
11449     * @param obj The entry object
11450     */
11451    EAPI void         elm_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
11452    /**
11453     * This begins a selection within the entry as though
11454     * the user were holding down the mouse button to make a selection.
11455     *
11456     * @param obj The entry object
11457     */
11458    EAPI void         elm_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
11459    /**
11460     * This ends a selection within the entry as though
11461     * the user had just released the mouse button while making a selection.
11462     *
11463     * @param obj The entry object
11464     */
11465    EAPI void         elm_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
11466    /**
11467     * Gets whether a format node exists at the current cursor position.
11468     *
11469     * A format node is anything that defines how the text is rendered. It can
11470     * be a visible format node, such as a line break or a paragraph separator,
11471     * or an invisible one, such as bold begin or end tag.
11472     * This function returns whether any format node exists at the current
11473     * cursor position.
11474     *
11475     * @param obj The entry object
11476     * @return EINA_TRUE if the current cursor position contains a format node,
11477     * EINA_FALSE otherwise.
11478     *
11479     * @see elm_entry_cursor_is_visible_format_get()
11480     */
11481    EAPI Eina_Bool    elm_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11482    /**
11483     * Gets if the current cursor position holds a visible format node.
11484     *
11485     * @param obj The entry object
11486     * @return EINA_TRUE if the current cursor is a visible format, EINA_FALSE
11487     * if it's an invisible one or no format exists.
11488     *
11489     * @see elm_entry_cursor_is_format_get()
11490     */
11491    EAPI Eina_Bool    elm_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11492    /**
11493     * Gets the character pointed by the cursor at its current position.
11494     *
11495     * This function returns a string with the utf8 character stored at the
11496     * current cursor position.
11497     * Only the text is returned, any format that may exist will not be part
11498     * of the return value.
11499     *
11500     * @param obj The entry object
11501     * @return The text pointed by the cursors.
11502     */
11503    EAPI const char  *elm_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11504    /**
11505     * This function returns the geometry of the cursor.
11506     *
11507     * It's useful if you want to draw something on the cursor (or where it is),
11508     * or for example in the case of scrolled entry where you want to show the
11509     * cursor.
11510     *
11511     * @param obj The entry object
11512     * @param x returned geometry
11513     * @param y returned geometry
11514     * @param w returned geometry
11515     * @param h returned geometry
11516     * @return EINA_TRUE upon success, EINA_FALSE upon failure
11517     */
11518    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);
11519    /**
11520     * Sets the cursor position in the entry to the given value
11521     *
11522     * The value in @p pos is the index of the character position within the
11523     * contents of the string as returned by elm_entry_cursor_pos_get().
11524     *
11525     * @param obj The entry object
11526     * @param pos The position of the cursor
11527     */
11528    EAPI void         elm_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
11529    /**
11530     * Retrieves the current position of the cursor in the entry
11531     *
11532     * @param obj The entry object
11533     * @return The cursor position
11534     */
11535    EAPI int          elm_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11536    /**
11537     * This executes a "cut" action on the selected text in the entry.
11538     *
11539     * @param obj The entry object
11540     */
11541    EAPI void         elm_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
11542    /**
11543     * This executes a "copy" action on the selected text in the entry.
11544     *
11545     * @param obj The entry object
11546     */
11547    EAPI void         elm_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
11548    /**
11549     * This executes a "paste" action in the entry.
11550     *
11551     * @param obj The entry object
11552     */
11553    EAPI void         elm_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
11554    /**
11555     * This clears and frees the items in a entry's contextual (longpress)
11556     * menu.
11557     *
11558     * @param obj The entry object
11559     *
11560     * @see elm_entry_context_menu_item_add()
11561     */
11562    EAPI void         elm_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
11563    /**
11564     * This adds an item to the entry's contextual menu.
11565     *
11566     * A longpress on an entry will make the contextual menu show up, if this
11567     * hasn't been disabled with elm_entry_context_menu_disabled_set().
11568     * By default, this menu provides a few options like enabling selection mode,
11569     * which is useful on embedded devices that need to be explicit about it,
11570     * and when a selection exists it also shows the copy and cut actions.
11571     *
11572     * With this function, developers can add other options to this menu to
11573     * perform any action they deem necessary.
11574     *
11575     * @param obj The entry object
11576     * @param label The item's text label
11577     * @param icon_file The item's icon file
11578     * @param icon_type The item's icon type
11579     * @param func The callback to execute when the item is clicked
11580     * @param data The data to associate with the item for related functions
11581     */
11582    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);
11583    /**
11584     * This disables the entry's contextual (longpress) menu.
11585     *
11586     * @param obj The entry object
11587     * @param disabled If true, the menu is disabled
11588     */
11589    EAPI void         elm_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
11590    /**
11591     * This returns whether the entry's contextual (longpress) menu is
11592     * disabled.
11593     *
11594     * @param obj The entry object
11595     * @return If true, the menu is disabled
11596     */
11597    EAPI Eina_Bool    elm_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11598    /**
11599     * This appends a custom item provider to the list for that entry
11600     *
11601     * This appends the given callback. The list is walked from beginning to end
11602     * with each function called given the item href string in the text. If the
11603     * function returns an object handle other than NULL (it should create an
11604     * object to do this), then this object is used to replace that item. If
11605     * not the next provider is called until one provides an item object, or the
11606     * default provider in entry does.
11607     *
11608     * @param obj The entry object
11609     * @param func The function called to provide the item object
11610     * @param data The data passed to @p func
11611     *
11612     * @see @ref entry-items
11613     */
11614    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);
11615    /**
11616     * This prepends a custom item provider to the list for that entry
11617     *
11618     * This prepends the given callback. See elm_entry_item_provider_append() for
11619     * more information
11620     *
11621     * @param obj The entry object
11622     * @param func The function called to provide the item object
11623     * @param data The data passed to @p func
11624     */
11625    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);
11626    /**
11627     * This removes a custom item provider to the list for that entry
11628     *
11629     * This removes the given callback. See elm_entry_item_provider_append() for
11630     * more information
11631     *
11632     * @param obj The entry object
11633     * @param func The function called to provide the item object
11634     * @param data The data passed to @p func
11635     */
11636    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);
11637    /**
11638     * Append a filter function for text inserted in the entry
11639     *
11640     * Append the given callback to the list. This functions will be called
11641     * whenever any text is inserted into the entry, with the text to be inserted
11642     * as a parameter. The callback function is free to alter the text in any way
11643     * it wants, but it must remember to free the given pointer and update it.
11644     * If the new text is to be discarded, the function can free it and set its
11645     * text parameter to NULL. This will also prevent any following filters from
11646     * being called.
11647     *
11648     * @param obj The entry object
11649     * @param func The function to use as text filter
11650     * @param data User data to pass to @p func
11651     */
11652    EAPI void         elm_entry_text_filter_append(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11653    /**
11654     * Prepend a filter function for text insdrted in the entry
11655     *
11656     * Prepend the given callback to the list. See elm_entry_text_filter_append()
11657     * for more information
11658     *
11659     * @param obj The entry object
11660     * @param func The function to use as text filter
11661     * @param data User data to pass to @p func
11662     */
11663    EAPI void         elm_entry_text_filter_prepend(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11664    /**
11665     * Remove a filter from the list
11666     *
11667     * Removes the given callback from the filter list. See
11668     * elm_entry_text_filter_append() for more information.
11669     *
11670     * @param obj The entry object
11671     * @param func The filter function to remove
11672     * @param data The user data passed when adding the function
11673     */
11674    EAPI void         elm_entry_text_filter_remove(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11675    /**
11676     * This converts a markup (HTML-like) string into UTF-8.
11677     *
11678     * The returned string is a malloc'ed buffer and it should be freed when
11679     * not needed anymore.
11680     *
11681     * @param s The string (in markup) to be converted
11682     * @return The converted string (in UTF-8). It should be freed.
11683     */
11684    EAPI char        *elm_entry_markup_to_utf8(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
11685    /**
11686     * This converts a UTF-8 string into markup (HTML-like).
11687     *
11688     * The returned string is a malloc'ed buffer and it should be freed when
11689     * not needed anymore.
11690     *
11691     * @param s The string (in UTF-8) to be converted
11692     * @return The converted string (in markup). It should be freed.
11693     */
11694    EAPI char        *elm_entry_utf8_to_markup(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
11695    /**
11696     * This sets the file (and implicitly loads it) for the text to display and
11697     * then edit. All changes are written back to the file after a short delay if
11698     * the entry object is set to autosave (which is the default).
11699     *
11700     * If the entry had any other file set previously, any changes made to it
11701     * will be saved if the autosave feature is enabled, otherwise, the file
11702     * will be silently discarded and any non-saved changes will be lost.
11703     *
11704     * @param obj The entry object
11705     * @param file The path to the file to load and save
11706     * @param format The file format
11707     */
11708    EAPI void         elm_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
11709    /**
11710     * Gets the file being edited by the entry.
11711     *
11712     * This function can be used to retrieve any file set on the entry for
11713     * edition, along with the format used to load and save it.
11714     *
11715     * @param obj The entry object
11716     * @param file The path to the file to load and save
11717     * @param format The file format
11718     */
11719    EAPI void         elm_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
11720    /**
11721     * This function writes any changes made to the file set with
11722     * elm_entry_file_set()
11723     *
11724     * @param obj The entry object
11725     */
11726    EAPI void         elm_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
11727    /**
11728     * This sets the entry object to 'autosave' the loaded text file or not.
11729     *
11730     * @param obj The entry object
11731     * @param autosave Autosave the loaded file or not
11732     *
11733     * @see elm_entry_file_set()
11734     */
11735    EAPI void         elm_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
11736    /**
11737     * This gets the entry object's 'autosave' status.
11738     *
11739     * @param obj The entry object
11740     * @return Autosave the loaded file or not
11741     *
11742     * @see elm_entry_file_set()
11743     */
11744    EAPI Eina_Bool    elm_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11745    /**
11746     * Control pasting of text and images for the widget.
11747     *
11748     * Normally the entry allows both text and images to be pasted.  By setting
11749     * textonly to be true, this prevents images from being pasted.
11750     *
11751     * Note this only changes the behaviour of text.
11752     *
11753     * @param obj The entry object
11754     * @param textonly paste mode - EINA_TRUE is text only, EINA_FALSE is
11755     * text+image+other.
11756     */
11757    EAPI void         elm_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
11758    /**
11759     * Getting elm_entry text paste/drop mode.
11760     *
11761     * In textonly mode, only text may be pasted or dropped into the widget.
11762     *
11763     * @param obj The entry object
11764     * @return If the widget only accepts text from pastes.
11765     */
11766    EAPI Eina_Bool    elm_entry_cnp_textonly_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11767    /**
11768     * Enable or disable scrolling in entry
11769     *
11770     * Normally the entry is not scrollable unless you enable it with this call.
11771     *
11772     * @param obj The entry object
11773     * @param scroll EINA_TRUE if it is to be scrollable, EINA_FALSE otherwise
11774     */
11775    EAPI void         elm_entry_scrollable_set(Evas_Object *obj, Eina_Bool scroll);
11776    /**
11777     * Get the scrollable state of the entry
11778     *
11779     * Normally the entry is not scrollable. This gets the scrollable state
11780     * of the entry. See elm_entry_scrollable_set() for more information.
11781     *
11782     * @param obj The entry object
11783     * @return The scrollable state
11784     */
11785    EAPI Eina_Bool    elm_entry_scrollable_get(const Evas_Object *obj);
11786    /**
11787     * This sets a widget to be displayed to the left of a scrolled entry.
11788     *
11789     * @param obj The scrolled entry object
11790     * @param icon The widget to display on the left side of the scrolled
11791     * entry.
11792     *
11793     * @note A previously set widget will be destroyed.
11794     * @note If the object being set does not have minimum size hints set,
11795     * it won't get properly displayed.
11796     *
11797     * @see elm_entry_end_set()
11798     */
11799    EAPI void         elm_entry_icon_set(Evas_Object *obj, Evas_Object *icon);
11800    /**
11801     * Gets the leftmost widget of the scrolled entry. This object is
11802     * owned by the scrolled entry and should not be modified.
11803     *
11804     * @param obj The scrolled entry object
11805     * @return the left widget inside the scroller
11806     */
11807    EAPI Evas_Object *elm_entry_icon_get(const Evas_Object *obj);
11808    /**
11809     * Unset the leftmost widget of the scrolled entry, unparenting and
11810     * returning it.
11811     *
11812     * @param obj The scrolled entry object
11813     * @return the previously set icon sub-object of this entry, on
11814     * success.
11815     *
11816     * @see elm_entry_icon_set()
11817     */
11818    EAPI Evas_Object *elm_entry_icon_unset(Evas_Object *obj);
11819    /**
11820     * Sets the visibility of the left-side widget of the scrolled entry,
11821     * set by elm_entry_icon_set().
11822     *
11823     * @param obj The scrolled entry object
11824     * @param setting EINA_TRUE if the object should be displayed,
11825     * EINA_FALSE if not.
11826     */
11827    EAPI void         elm_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting);
11828    /**
11829     * This sets a widget to be displayed to the end of a scrolled entry.
11830     *
11831     * @param obj The scrolled entry object
11832     * @param end The widget to display on the right side of the scrolled
11833     * entry.
11834     *
11835     * @note A previously set widget will be destroyed.
11836     * @note If the object being set does not have minimum size hints set,
11837     * it won't get properly displayed.
11838     *
11839     * @see elm_entry_icon_set
11840     */
11841    EAPI void         elm_entry_end_set(Evas_Object *obj, Evas_Object *end);
11842    /**
11843     * Gets the endmost widget of the scrolled entry. This object is owned
11844     * by the scrolled entry and should not be modified.
11845     *
11846     * @param obj The scrolled entry object
11847     * @return the right widget inside the scroller
11848     */
11849    EAPI Evas_Object *elm_entry_end_get(const Evas_Object *obj);
11850    /**
11851     * Unset the endmost widget of the scrolled entry, unparenting and
11852     * returning it.
11853     *
11854     * @param obj The scrolled entry object
11855     * @return the previously set icon sub-object of this entry, on
11856     * success.
11857     *
11858     * @see elm_entry_icon_set()
11859     */
11860    EAPI Evas_Object *elm_entry_end_unset(Evas_Object *obj);
11861    /**
11862     * Sets the visibility of the end widget of the scrolled entry, set by
11863     * elm_entry_end_set().
11864     *
11865     * @param obj The scrolled entry object
11866     * @param setting EINA_TRUE if the object should be displayed,
11867     * EINA_FALSE if not.
11868     */
11869    EAPI void         elm_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting);
11870    /**
11871     * This sets the scrolled entry's scrollbar policy (ie. enabling/disabling
11872     * them).
11873     *
11874     * Setting an entry to single-line mode with elm_entry_single_line_set()
11875     * will automatically disable the display of scrollbars when the entry
11876     * moves inside its scroller.
11877     *
11878     * @param obj The scrolled entry object
11879     * @param h The horizontal scrollbar policy to apply
11880     * @param v The vertical scrollbar policy to apply
11881     */
11882    EAPI void         elm_entry_scrollbar_policy_set(Evas_Object *obj, Elm_Scroller_Policy h, Elm_Scroller_Policy v);
11883    /**
11884     * This enables/disables bouncing within the entry.
11885     *
11886     * This function sets whether the entry will bounce when scrolling reaches
11887     * the end of the contained entry.
11888     *
11889     * @param obj The scrolled entry object
11890     * @param h The horizontal bounce state
11891     * @param v The vertical bounce state
11892     */
11893    EAPI void         elm_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
11894    /**
11895     * Get the bounce mode
11896     *
11897     * @param obj The Entry object
11898     * @param h_bounce Allow bounce horizontally
11899     * @param v_bounce Allow bounce vertically
11900     */
11901    EAPI void         elm_entry_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
11902
11903    /* pre-made filters for entries */
11904    /**
11905     * @typedef Elm_Entry_Filter_Limit_Size
11906     *
11907     * Data for the elm_entry_filter_limit_size() entry filter.
11908     */
11909    typedef struct _Elm_Entry_Filter_Limit_Size Elm_Entry_Filter_Limit_Size;
11910    /**
11911     * @struct _Elm_Entry_Filter_Limit_Size
11912     *
11913     * Data for the elm_entry_filter_limit_size() entry filter.
11914     */
11915    struct _Elm_Entry_Filter_Limit_Size
11916      {
11917         int max_char_count; /**< The maximum number of characters allowed. */
11918         int max_byte_count; /**< The maximum number of bytes allowed*/
11919      };
11920    /**
11921     * Filter inserted text based on user defined character and byte limits
11922     *
11923     * Add this filter to an entry to limit the characters that it will accept
11924     * based the the contents of the provided #Elm_Entry_Filter_Limit_Size.
11925     * The funtion works on the UTF-8 representation of the string, converting
11926     * it from the set markup, thus not accounting for any format in it.
11927     *
11928     * The user must create an #Elm_Entry_Filter_Limit_Size structure and pass
11929     * it as data when setting the filter. In it, it's possible to set limits
11930     * by character count or bytes (any of them is disabled if 0), and both can
11931     * be set at the same time. In that case, it first checks for characters,
11932     * then bytes.
11933     *
11934     * The function will cut the inserted text in order to allow only the first
11935     * number of characters that are still allowed. The cut is made in
11936     * characters, even when limiting by bytes, in order to always contain
11937     * valid ones and avoid half unicode characters making it in.
11938     *
11939     * This filter, like any others, does not apply when setting the entry text
11940     * directly with elm_object_text_set() (or the deprecated
11941     * elm_entry_entry_set()).
11942     */
11943    EAPI void         elm_entry_filter_limit_size(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 2, 3);
11944    /**
11945     * @typedef Elm_Entry_Filter_Accept_Set
11946     *
11947     * Data for the elm_entry_filter_accept_set() entry filter.
11948     */
11949    typedef struct _Elm_Entry_Filter_Accept_Set Elm_Entry_Filter_Accept_Set;
11950    /**
11951     * @struct _Elm_Entry_Filter_Accept_Set
11952     *
11953     * Data for the elm_entry_filter_accept_set() entry filter.
11954     */
11955    struct _Elm_Entry_Filter_Accept_Set
11956      {
11957         const char *accepted; /**< Set of characters accepted in the entry. */
11958         const char *rejected; /**< Set of characters rejected from the entry. */
11959      };
11960    /**
11961     * Filter inserted text based on accepted or rejected sets of characters
11962     *
11963     * Add this filter to an entry to restrict the set of accepted characters
11964     * based on the sets in the provided #Elm_Entry_Filter_Accept_Set.
11965     * This structure contains both accepted and rejected sets, but they are
11966     * mutually exclusive.
11967     *
11968     * The @c accepted set takes preference, so if it is set, the filter will
11969     * only work based on the accepted characters, ignoring anything in the
11970     * @c rejected value. If @c accepted is @c NULL, then @c rejected is used.
11971     *
11972     * In both cases, the function filters by matching utf8 characters to the
11973     * raw markup text, so it can be used to remove formatting tags.
11974     *
11975     * This filter, like any others, does not apply when setting the entry text
11976     * directly with elm_object_text_set() (or the deprecated
11977     * elm_entry_entry_set()).
11978     */
11979    EAPI void         elm_entry_filter_accept_set(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 3);
11980    /**
11981     * Set the input panel layout of the entry
11982     *
11983     * @param obj The entry object
11984     * @param layout layout type
11985     */
11986    EAPI void elm_entry_input_panel_layout_set(Evas_Object *obj, Elm_Input_Panel_Layout layout) EINA_ARG_NONNULL(1);
11987    /**
11988     * Get the input panel layout of the entry
11989     *
11990     * @param obj The entry object
11991     * @return layout type
11992     *
11993     * @see elm_entry_input_panel_layout_set
11994     */
11995    EAPI Elm_Input_Panel_Layout elm_entry_input_panel_layout_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
11996    /**
11997     * Set the autocapitalization type on the immodule.
11998     *
11999     * @param obj The entry object
12000     * @param autocapital_type The type of autocapitalization
12001     */
12002    EAPI void         elm_entry_autocapital_type_set(Evas_Object *obj, Elm_Autocapital_Type autocapital_type) EINA_ARG_NONNULL(1);
12003    /**
12004     * Retrieve the autocapitalization type on the immodule.
12005     *
12006     * @param obj The entry object
12007     * @return autocapitalization type
12008     */
12009    EAPI Elm_Autocapital_Type elm_entry_autocapital_type_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
12010    /**
12011     * Sets the attribute to show the input panel automatically.
12012     *
12013     * @param obj The entry object
12014     * @param enabled If true, the input panel is appeared when entry is clicked or has a focus
12015     */
12016    EAPI void elm_entry_input_panel_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
12017    /**
12018     * Retrieve the attribute to show the input panel automatically.
12019     *
12020     * @param obj The entry object
12021     * @return EINA_TRUE if input panel will be appeared when the entry is clicked or has a focus, EINA_FALSE otherwise
12022     */
12023    EAPI Eina_Bool elm_entry_input_panel_enabled_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
12024
12025    /**
12026     * @}
12027     */
12028
12029    /* composite widgets - these basically put together basic widgets above
12030     * in convenient packages that do more than basic stuff */
12031
12032    /* anchorview */
12033    /**
12034     * @defgroup Anchorview Anchorview
12035     *
12036     * @image html img/widget/anchorview/preview-00.png
12037     * @image latex img/widget/anchorview/preview-00.eps
12038     *
12039     * Anchorview is for displaying text that contains markup with anchors
12040     * like <c>\<a href=1234\>something\</\></c> in it.
12041     *
12042     * Besides being styled differently, the anchorview widget provides the
12043     * necessary functionality so that clicking on these anchors brings up a
12044     * popup with user defined content such as "call", "add to contacts" or
12045     * "open web page". This popup is provided using the @ref Hover widget.
12046     *
12047     * This widget is very similar to @ref Anchorblock, so refer to that
12048     * widget for an example. The only difference Anchorview has is that the
12049     * widget is already provided with scrolling functionality, so if the
12050     * text set to it is too large to fit in the given space, it will scroll,
12051     * whereas the @ref Anchorblock widget will keep growing to ensure all the
12052     * text can be displayed.
12053     *
12054     * This widget emits the following signals:
12055     * @li "anchor,clicked": will be called when an anchor is clicked. The
12056     * @p event_info parameter on the callback will be a pointer of type
12057     * ::Elm_Entry_Anchorview_Info.
12058     *
12059     * See @ref Anchorblock for an example on how to use both of them.
12060     *
12061     * @see Anchorblock
12062     * @see Entry
12063     * @see Hover
12064     *
12065     * @{
12066     */
12067    /**
12068     * @typedef Elm_Entry_Anchorview_Info
12069     *
12070     * The info sent in the callback for "anchor,clicked" signals emitted by
12071     * the Anchorview widget.
12072     */
12073    typedef struct _Elm_Entry_Anchorview_Info Elm_Entry_Anchorview_Info;
12074    /**
12075     * @struct _Elm_Entry_Anchorview_Info
12076     *
12077     * The info sent in the callback for "anchor,clicked" signals emitted by
12078     * the Anchorview widget.
12079     */
12080    struct _Elm_Entry_Anchorview_Info
12081      {
12082         const char     *name; /**< Name of the anchor, as indicated in its href
12083                                    attribute */
12084         int             button; /**< The mouse button used to click on it */
12085         Evas_Object    *hover; /**< The hover object to use for the popup */
12086         struct {
12087              Evas_Coord    x, y, w, h;
12088         } anchor, /**< Geometry selection of text used as anchor */
12089           hover_parent; /**< Geometry of the object used as parent by the
12090                              hover */
12091         Eina_Bool       hover_left : 1; /**< Hint indicating if there's space
12092                                              for content on the left side of
12093                                              the hover. Before calling the
12094                                              callback, the widget will make the
12095                                              necessary calculations to check
12096                                              which sides are fit to be set with
12097                                              content, based on the position the
12098                                              hover is activated and its distance
12099                                              to the edges of its parent object
12100                                              */
12101         Eina_Bool       hover_right : 1; /**< Hint indicating content fits on
12102                                               the right side of the hover.
12103                                               See @ref hover_left */
12104         Eina_Bool       hover_top : 1; /**< Hint indicating content fits on top
12105                                             of the hover. See @ref hover_left */
12106         Eina_Bool       hover_bottom : 1; /**< Hint indicating content fits
12107                                                below the hover. See @ref
12108                                                hover_left */
12109      };
12110    /**
12111     * Add a new Anchorview object
12112     *
12113     * @param parent The parent object
12114     * @return The new object or NULL if it cannot be created
12115     */
12116    EAPI Evas_Object *elm_anchorview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12117    /**
12118     * Set the text to show in the anchorview
12119     *
12120     * Sets the text of the anchorview to @p text. This text can include markup
12121     * format tags, including <c>\<a href=anchorname\></c> to begin a segment of
12122     * text that will be specially styled and react to click events, ended with
12123     * either of \</a\> or \</\>. When clicked, the anchor will emit an
12124     * "anchor,clicked" signal that you can attach a callback to with
12125     * evas_object_smart_callback_add(). The name of the anchor given in the
12126     * event info struct will be the one set in the href attribute, in this
12127     * case, anchorname.
12128     *
12129     * Other markup can be used to style the text in different ways, but it's
12130     * up to the style defined in the theme which tags do what.
12131     * @deprecated use elm_object_text_set() instead.
12132     */
12133    EINA_DEPRECATED EAPI void         elm_anchorview_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
12134    /**
12135     * Get the markup text set for the anchorview
12136     *
12137     * Retrieves the text set on the anchorview, with markup tags included.
12138     *
12139     * @param obj The anchorview object
12140     * @return The markup text set or @c NULL if nothing was set or an error
12141     * occurred
12142     * @deprecated use elm_object_text_set() instead.
12143     */
12144    EINA_DEPRECATED EAPI const char  *elm_anchorview_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12145    /**
12146     * Set the parent of the hover popup
12147     *
12148     * Sets the parent object to use by the hover created by the anchorview
12149     * when an anchor is clicked. See @ref Hover for more details on this.
12150     * If no parent is set, the same anchorview object will be used.
12151     *
12152     * @param obj The anchorview object
12153     * @param parent The object to use as parent for the hover
12154     */
12155    EAPI void         elm_anchorview_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
12156    /**
12157     * Get the parent of the hover popup
12158     *
12159     * Get the object used as parent for the hover created by the anchorview
12160     * widget. See @ref Hover for more details on this.
12161     *
12162     * @param obj The anchorview object
12163     * @return The object used as parent for the hover, NULL if none is set.
12164     */
12165    EAPI Evas_Object *elm_anchorview_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12166    /**
12167     * Set the style that the hover should use
12168     *
12169     * When creating the popup hover, anchorview will request that it's
12170     * themed according to @p style.
12171     *
12172     * @param obj The anchorview object
12173     * @param style The style to use for the underlying hover
12174     *
12175     * @see elm_object_style_set()
12176     */
12177    EAPI void         elm_anchorview_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
12178    /**
12179     * Get the style that the hover should use
12180     *
12181     * Get the style the hover created by anchorview will use.
12182     *
12183     * @param obj The anchorview object
12184     * @return The style to use by the hover. NULL means the default is used.
12185     *
12186     * @see elm_object_style_set()
12187     */
12188    EAPI const char  *elm_anchorview_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12189    /**
12190     * Ends the hover popup in the anchorview
12191     *
12192     * When an anchor is clicked, the anchorview widget will create a hover
12193     * object to use as a popup with user provided content. This function
12194     * terminates this popup, returning the anchorview to its normal state.
12195     *
12196     * @param obj The anchorview object
12197     */
12198    EAPI void         elm_anchorview_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
12199    /**
12200     * Set bouncing behaviour when the scrolled content reaches an edge
12201     *
12202     * Tell the internal scroller object whether it should bounce or not
12203     * when it reaches the respective edges for each axis.
12204     *
12205     * @param obj The anchorview object
12206     * @param h_bounce Whether to bounce or not in the horizontal axis
12207     * @param v_bounce Whether to bounce or not in the vertical axis
12208     *
12209     * @see elm_scroller_bounce_set()
12210     */
12211    EAPI void         elm_anchorview_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
12212    /**
12213     * Get the set bouncing behaviour of the internal scroller
12214     *
12215     * Get whether the internal scroller should bounce when the edge of each
12216     * axis is reached scrolling.
12217     *
12218     * @param obj The anchorview object
12219     * @param h_bounce Pointer where to store the bounce state of the horizontal
12220     *                 axis
12221     * @param v_bounce Pointer where to store the bounce state of the vertical
12222     *                 axis
12223     *
12224     * @see elm_scroller_bounce_get()
12225     */
12226    EAPI void         elm_anchorview_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
12227    /**
12228     * Appends a custom item provider to the given anchorview
12229     *
12230     * Appends the given function to the list of items providers. This list is
12231     * called, one function at a time, with the given @p data pointer, the
12232     * anchorview object and, in the @p item parameter, the item name as
12233     * referenced in its href string. Following functions in the list will be
12234     * called in order until one of them returns something different to NULL,
12235     * which should be an Evas_Object which will be used in place of the item
12236     * element.
12237     *
12238     * Items in the markup text take the form \<item relsize=16x16 vsize=full
12239     * href=item/name\>\</item\>
12240     *
12241     * @param obj The anchorview object
12242     * @param func The function to add to the list of providers
12243     * @param data User data that will be passed to the callback function
12244     *
12245     * @see elm_entry_item_provider_append()
12246     */
12247    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);
12248    /**
12249     * Prepend a custom item provider to the given anchorview
12250     *
12251     * Like elm_anchorview_item_provider_append(), but it adds the function
12252     * @p func to the beginning of the list, instead of the end.
12253     *
12254     * @param obj The anchorview object
12255     * @param func The function to add to the list of providers
12256     * @param data User data that will be passed to the callback function
12257     */
12258    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);
12259    /**
12260     * Remove a custom item provider from the list of the given anchorview
12261     *
12262     * Removes the function and data pairing that matches @p func and @p data.
12263     * That is, unless the same function and same user data are given, the
12264     * function will not be removed from the list. This allows us to add the
12265     * same callback several times, with different @p data pointers and be
12266     * able to remove them later without conflicts.
12267     *
12268     * @param obj The anchorview object
12269     * @param func The function to remove from the list
12270     * @param data The data matching the function to remove from the list
12271     */
12272    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);
12273    /**
12274     * @}
12275     */
12276
12277    /* anchorblock */
12278    /**
12279     * @defgroup Anchorblock Anchorblock
12280     *
12281     * @image html img/widget/anchorblock/preview-00.png
12282     * @image latex img/widget/anchorblock/preview-00.eps
12283     *
12284     * Anchorblock is for displaying text that contains markup with anchors
12285     * like <c>\<a href=1234\>something\</\></c> in it.
12286     *
12287     * Besides being styled differently, the anchorblock widget provides the
12288     * necessary functionality so that clicking on these anchors brings up a
12289     * popup with user defined content such as "call", "add to contacts" or
12290     * "open web page". This popup is provided using the @ref Hover widget.
12291     *
12292     * This widget emits the following signals:
12293     * @li "anchor,clicked": will be called when an anchor is clicked. The
12294     * @p event_info parameter on the callback will be a pointer of type
12295     * ::Elm_Entry_Anchorblock_Info.
12296     *
12297     * @see Anchorview
12298     * @see Entry
12299     * @see Hover
12300     *
12301     * Since examples are usually better than plain words, we might as well
12302     * try @ref tutorial_anchorblock_example "one".
12303     */
12304    /**
12305     * @addtogroup Anchorblock
12306     * @{
12307     */
12308    /**
12309     * @typedef Elm_Entry_Anchorblock_Info
12310     *
12311     * The info sent in the callback for "anchor,clicked" signals emitted by
12312     * the Anchorblock widget.
12313     */
12314    typedef struct _Elm_Entry_Anchorblock_Info Elm_Entry_Anchorblock_Info;
12315    /**
12316     * @struct _Elm_Entry_Anchorblock_Info
12317     *
12318     * The info sent in the callback for "anchor,clicked" signals emitted by
12319     * the Anchorblock widget.
12320     */
12321    struct _Elm_Entry_Anchorblock_Info
12322      {
12323         const char     *name; /**< Name of the anchor, as indicated in its href
12324                                    attribute */
12325         int             button; /**< The mouse button used to click on it */
12326         Evas_Object    *hover; /**< The hover object to use for the popup */
12327         struct {
12328              Evas_Coord    x, y, w, h;
12329         } anchor, /**< Geometry selection of text used as anchor */
12330           hover_parent; /**< Geometry of the object used as parent by the
12331                              hover */
12332         Eina_Bool       hover_left : 1; /**< Hint indicating if there's space
12333                                              for content on the left side of
12334                                              the hover. Before calling the
12335                                              callback, the widget will make the
12336                                              necessary calculations to check
12337                                              which sides are fit to be set with
12338                                              content, based on the position the
12339                                              hover is activated and its distance
12340                                              to the edges of its parent object
12341                                              */
12342         Eina_Bool       hover_right : 1; /**< Hint indicating content fits on
12343                                               the right side of the hover.
12344                                               See @ref hover_left */
12345         Eina_Bool       hover_top : 1; /**< Hint indicating content fits on top
12346                                             of the hover. See @ref hover_left */
12347         Eina_Bool       hover_bottom : 1; /**< Hint indicating content fits
12348                                                below the hover. See @ref
12349                                                hover_left */
12350      };
12351    /**
12352     * Add a new Anchorblock object
12353     *
12354     * @param parent The parent object
12355     * @return The new object or NULL if it cannot be created
12356     */
12357    EAPI Evas_Object *elm_anchorblock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12358    /**
12359     * Set the text to show in the anchorblock
12360     *
12361     * Sets the text of the anchorblock to @p text. This text can include markup
12362     * format tags, including <c>\<a href=anchorname\></a></c> to begin a segment
12363     * of text that will be specially styled and react to click events, ended
12364     * with either of \</a\> or \</\>. When clicked, the anchor will emit an
12365     * "anchor,clicked" signal that you can attach a callback to with
12366     * evas_object_smart_callback_add(). The name of the anchor given in the
12367     * event info struct will be the one set in the href attribute, in this
12368     * case, anchorname.
12369     *
12370     * Other markup can be used to style the text in different ways, but it's
12371     * up to the style defined in the theme which tags do what.
12372     * @deprecated use elm_object_text_set() instead.
12373     */
12374    EINA_DEPRECATED EAPI void         elm_anchorblock_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
12375    /**
12376     * Get the markup text set for the anchorblock
12377     *
12378     * Retrieves the text set on the anchorblock, with markup tags included.
12379     *
12380     * @param obj The anchorblock object
12381     * @return The markup text set or @c NULL if nothing was set or an error
12382     * occurred
12383     * @deprecated use elm_object_text_set() instead.
12384     */
12385    EINA_DEPRECATED EAPI const char  *elm_anchorblock_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12386    /**
12387     * Set the parent of the hover popup
12388     *
12389     * Sets the parent object to use by the hover created by the anchorblock
12390     * when an anchor is clicked. See @ref Hover for more details on this.
12391     *
12392     * @param obj The anchorblock object
12393     * @param parent The object to use as parent for the hover
12394     */
12395    EAPI void         elm_anchorblock_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
12396    /**
12397     * Get the parent of the hover popup
12398     *
12399     * Get the object used as parent for the hover created by the anchorblock
12400     * widget. See @ref Hover for more details on this.
12401     * If no parent is set, the same anchorblock object will be used.
12402     *
12403     * @param obj The anchorblock object
12404     * @return The object used as parent for the hover, NULL if none is set.
12405     */
12406    EAPI Evas_Object *elm_anchorblock_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12407    /**
12408     * Set the style that the hover should use
12409     *
12410     * When creating the popup hover, anchorblock will request that it's
12411     * themed according to @p style.
12412     *
12413     * @param obj The anchorblock object
12414     * @param style The style to use for the underlying hover
12415     *
12416     * @see elm_object_style_set()
12417     */
12418    EAPI void         elm_anchorblock_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
12419    /**
12420     * Get the style that the hover should use
12421     *
12422     * Get the style, the hover created by anchorblock will use.
12423     *
12424     * @param obj The anchorblock object
12425     * @return The style to use by the hover. NULL means the default is used.
12426     *
12427     * @see elm_object_style_set()
12428     */
12429    EAPI const char  *elm_anchorblock_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12430    /**
12431     * Ends the hover popup in the anchorblock
12432     *
12433     * When an anchor is clicked, the anchorblock widget will create a hover
12434     * object to use as a popup with user provided content. This function
12435     * terminates this popup, returning the anchorblock to its normal state.
12436     *
12437     * @param obj The anchorblock object
12438     */
12439    EAPI void         elm_anchorblock_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
12440    /**
12441     * Appends a custom item provider to the given anchorblock
12442     *
12443     * Appends the given function to the list of items providers. This list is
12444     * called, one function at a time, with the given @p data pointer, the
12445     * anchorblock object and, in the @p item parameter, the item name as
12446     * referenced in its href string. Following functions in the list will be
12447     * called in order until one of them returns something different to NULL,
12448     * which should be an Evas_Object which will be used in place of the item
12449     * element.
12450     *
12451     * Items in the markup text take the form \<item relsize=16x16 vsize=full
12452     * href=item/name\>\</item\>
12453     *
12454     * @param obj The anchorblock object
12455     * @param func The function to add to the list of providers
12456     * @param data User data that will be passed to the callback function
12457     *
12458     * @see elm_entry_item_provider_append()
12459     */
12460    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);
12461    /**
12462     * Prepend a custom item provider to the given anchorblock
12463     *
12464     * Like elm_anchorblock_item_provider_append(), but it adds the function
12465     * @p func to the beginning of the list, instead of the end.
12466     *
12467     * @param obj The anchorblock object
12468     * @param func The function to add to the list of providers
12469     * @param data User data that will be passed to the callback function
12470     */
12471    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);
12472    /**
12473     * Remove a custom item provider from the list of the given anchorblock
12474     *
12475     * Removes the function and data pairing that matches @p func and @p data.
12476     * That is, unless the same function and same user data are given, the
12477     * function will not be removed from the list. This allows us to add the
12478     * same callback several times, with different @p data pointers and be
12479     * able to remove them later without conflicts.
12480     *
12481     * @param obj The anchorblock object
12482     * @param func The function to remove from the list
12483     * @param data The data matching the function to remove from the list
12484     */
12485    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);
12486    /**
12487     * @}
12488     */
12489
12490    /**
12491     * @defgroup Bubble Bubble
12492     *
12493     * @image html img/widget/bubble/preview-00.png
12494     * @image latex img/widget/bubble/preview-00.eps
12495     * @image html img/widget/bubble/preview-01.png
12496     * @image latex img/widget/bubble/preview-01.eps
12497     * @image html img/widget/bubble/preview-02.png
12498     * @image latex img/widget/bubble/preview-02.eps
12499     *
12500     * @brief The Bubble is a widget to show text similar to how speech is
12501     * represented in comics.
12502     *
12503     * The bubble widget contains 5 important visual elements:
12504     * @li The frame is a rectangle with rounded edjes and an "arrow".
12505     * @li The @p icon is an image to which the frame's arrow points to.
12506     * @li The @p label is a text which appears to the right of the icon if the
12507     * corner is "top_left" or "bottom_left" and is right aligned to the frame
12508     * otherwise.
12509     * @li The @p info is a text which appears to the right of the label. Info's
12510     * font is of a ligther color than label.
12511     * @li The @p content is an evas object that is shown inside the frame.
12512     *
12513     * The position of the arrow, icon, label and info depends on which corner is
12514     * selected. The four available corners are:
12515     * @li "top_left" - Default
12516     * @li "top_right"
12517     * @li "bottom_left"
12518     * @li "bottom_right"
12519     *
12520     * Signals that you can add callbacks for are:
12521     * @li "clicked" - This is called when a user has clicked the bubble.
12522     *
12523     * Default contents parts of the bubble that you can use for are:
12524     * @li "default" - A content of the bubble
12525     * @li "icon" - An icon of the bubble
12526     *
12527     * Default text parts of the button widget that you can use for are:
12528     * @li NULL - Label of the bubble
12529     * 
12530          * For an example of using a buble see @ref bubble_01_example_page "this".
12531     *
12532     * @{
12533     */
12534
12535    /**
12536     * Add a new bubble to the parent
12537     *
12538     * @param parent The parent object
12539     * @return The new object or NULL if it cannot be created
12540     *
12541     * This function adds a text bubble to the given parent evas object.
12542     */
12543    EAPI Evas_Object *elm_bubble_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12544    /**
12545     * Set the label of the bubble
12546     *
12547     * @param obj The bubble object
12548     * @param label The string to set in the label
12549     *
12550     * This function sets the title of the bubble. Where this appears depends on
12551     * the selected corner.
12552     * @deprecated use elm_object_text_set() instead.
12553     */
12554    EINA_DEPRECATED EAPI void         elm_bubble_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
12555    /**
12556     * Get the label of the bubble
12557     *
12558     * @param obj The bubble object
12559     * @return The string of set in the label
12560     *
12561     * This function gets the title of the bubble.
12562     * @deprecated use elm_object_text_get() instead.
12563     */
12564    EINA_DEPRECATED EAPI const char  *elm_bubble_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12565    /**
12566     * Set the info of the bubble
12567     *
12568     * @param obj The bubble object
12569     * @param info The given info about the bubble
12570     *
12571     * This function sets the info of the bubble. Where this appears depends on
12572     * the selected corner.
12573     * @deprecated use elm_object_part_text_set() instead. (with "info" as the parameter).
12574     */
12575    EINA_DEPRECATED EAPI void         elm_bubble_info_set(Evas_Object *obj, const char *info) EINA_ARG_NONNULL(1);
12576    /**
12577     * Get the info of the bubble
12578     *
12579     * @param obj The bubble object
12580     *
12581     * @return The "info" string of the bubble
12582     *
12583     * This function gets the info text.
12584     * @deprecated use elm_object_part_text_get() instead. (with "info" as the parameter).
12585     */
12586    EINA_DEPRECATED EAPI const char  *elm_bubble_info_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12587    /**
12588     * Set the content to be shown in the bubble
12589     *
12590     * Once the content object is set, a previously set one will be deleted.
12591     * If you want to keep the old content object, use the
12592     * elm_bubble_content_unset() function.
12593     *
12594     * @param obj The bubble object
12595     * @param content The given content of the bubble
12596     *
12597     * This function sets the content shown on the middle of the bubble.
12598     * 
12599     * @deprecated use elm_object_content_set() instead
12600     *
12601     */
12602    EINA_DEPRECATED EAPI void         elm_bubble_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
12603    /**
12604     * Get the content shown in the bubble
12605     *
12606     * Return the content object which is set for this widget.
12607     *
12608     * @param obj The bubble object
12609     * @return The content that is being used
12610     *
12611     * @deprecated use elm_object_content_get() instead
12612     *
12613     */
12614    EINA_DEPRECATED EAPI Evas_Object *elm_bubble_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12615    /**
12616     * Unset the content shown in the bubble
12617     *
12618     * Unparent and return the content object which was set for this widget.
12619     *
12620     * @param obj The bubble object
12621     * @return The content that was being used
12622     *
12623     * @deprecated use elm_object_content_unset() instead
12624     *
12625     */
12626    EINA_DEPRECATED EAPI Evas_Object *elm_bubble_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12627    /**
12628     * Set the icon of the bubble
12629     *
12630     * Once the icon object is set, a previously set one will be deleted.
12631     * If you want to keep the old content object, use the
12632     * elm_icon_content_unset() function.
12633     *
12634     * @param obj The bubble object
12635     * @param icon The given icon for the bubble
12636     *
12637     * @deprecated use elm_object_part_content_set() instead
12638     *
12639     */
12640    EINA_DEPRECATED EAPI void         elm_bubble_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
12641    /**
12642     * Get the icon of the bubble
12643     *
12644     * @param obj The bubble object
12645     * @return The icon for the bubble
12646     *
12647     * This function gets the icon shown on the top left of bubble.
12648     *
12649     * @deprecated use elm_object_part_content_get() instead
12650     *
12651     */
12652    EINA_DEPRECATED EAPI Evas_Object *elm_bubble_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12653    /**
12654     * Unset the icon of the bubble
12655     *
12656     * Unparent and return the icon object which was set for this widget.
12657     *
12658     * @param obj The bubble object
12659     * @return The icon that was being used
12660     *
12661     * @deprecated use elm_object_part_content_unset() instead
12662     *
12663     */
12664    EINA_DEPRECATED EAPI Evas_Object *elm_bubble_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12665    /**
12666     * Set the corner of the bubble
12667     *
12668     * @param obj The bubble object.
12669     * @param corner The given corner for the bubble.
12670     *
12671     * This function sets the corner of the bubble. The corner will be used to
12672     * determine where the arrow in the frame points to and where label, icon and
12673     * info are shown.
12674     *
12675     * Possible values for corner are:
12676     * @li "top_left" - Default
12677     * @li "top_right"
12678     * @li "bottom_left"
12679     * @li "bottom_right"
12680     */
12681    EAPI void         elm_bubble_corner_set(Evas_Object *obj, const char *corner) EINA_ARG_NONNULL(1, 2);
12682    /**
12683     * Get the corner of the bubble
12684     *
12685     * @param obj The bubble object.
12686     * @return The given corner for the bubble.
12687     *
12688     * This function gets the selected corner of the bubble.
12689     */
12690    EAPI const char  *elm_bubble_corner_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12691    /**
12692     * @}
12693     */
12694
12695    /**
12696     * @defgroup Photo Photo
12697     *
12698     * For displaying the photo of a person (contact). Simple, yet
12699     * with a very specific purpose.
12700     *
12701     * Signals that you can add callbacks for are:
12702     *
12703     * "clicked" - This is called when a user has clicked the photo
12704     * "drag,start" - Someone started dragging the image out of the object
12705     * "drag,end" - Dragged item was dropped (somewhere)
12706     *
12707     * @{
12708     */
12709
12710    /**
12711     * Add a new photo to the parent
12712     *
12713     * @param parent The parent object
12714     * @return The new object or NULL if it cannot be created
12715     *
12716     * @ingroup Photo
12717     */
12718    EAPI Evas_Object *elm_photo_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12719
12720    /**
12721     * Set the file that will be used as photo
12722     *
12723     * @param obj The photo object
12724     * @param file The path to file that will be used as photo
12725     *
12726     * @return (1 = success, 0 = error)
12727     *
12728     * @ingroup Photo
12729     */
12730    EAPI Eina_Bool    elm_photo_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
12731
12732     /**
12733     * Set the file that will be used as thumbnail in the photo.
12734     *
12735     * @param obj The photo object.
12736     * @param file The path to file that will be used as thumb.
12737     * @param group The key used in case of an EET file.
12738     *
12739     * @ingroup Photo
12740     */
12741    EAPI void         elm_photo_thumb_set(const Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
12742
12743    /**
12744     * Set the size that will be used on the photo
12745     *
12746     * @param obj The photo object
12747     * @param size The size that the photo will be
12748     *
12749     * @ingroup Photo
12750     */
12751    EAPI void         elm_photo_size_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
12752
12753    /**
12754     * Set if the photo should be completely visible or not.
12755     *
12756     * @param obj The photo object
12757     * @param fill if true the photo will be completely visible
12758     *
12759     * @ingroup Photo
12760     */
12761    EAPI void         elm_photo_fill_inside_set(Evas_Object *obj, Eina_Bool fill) EINA_ARG_NONNULL(1);
12762
12763    /**
12764     * Set editability of the photo.
12765     *
12766     * An editable photo can be dragged to or from, and can be cut or
12767     * pasted too.  Note that pasting an image or dropping an item on
12768     * the image will delete the existing content.
12769     *
12770     * @param obj The photo object.
12771     * @param set To set of clear editablity.
12772     */
12773    EAPI void         elm_photo_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
12774
12775    /**
12776     * @}
12777     */
12778
12779    /* gesture layer */
12780    /**
12781     * @defgroup Elm_Gesture_Layer Gesture Layer
12782     * Gesture Layer Usage:
12783     *
12784     * Use Gesture Layer to detect gestures.
12785     * The advantage is that you don't have to implement
12786     * gesture detection, just set callbacks of gesture state.
12787     * By using gesture layer we make standard interface.
12788     *
12789     * In order to use Gesture Layer you start with @ref elm_gesture_layer_add
12790     * with a parent object parameter.
12791     * Next 'activate' gesture layer with a @ref elm_gesture_layer_attach
12792     * call. Usually with same object as target (2nd parameter).
12793     *
12794     * Now you need to tell gesture layer what gestures you follow.
12795     * This is done with @ref elm_gesture_layer_cb_set call.
12796     * By setting the callback you actually saying to gesture layer:
12797     * I would like to know when the gesture @ref Elm_Gesture_Types
12798     * switches to state @ref Elm_Gesture_State.
12799     *
12800     * Next, you need to implement the actual action that follows the input
12801     * in your callback.
12802     *
12803     * Note that if you like to stop being reported about a gesture, just set
12804     * all callbacks referring this gesture to NULL.
12805     * (again with @ref elm_gesture_layer_cb_set)
12806     *
12807     * The information reported by gesture layer to your callback is depending
12808     * on @ref Elm_Gesture_Types:
12809     * @ref Elm_Gesture_Taps_Info is the info reported for tap gestures:
12810     * @ref ELM_GESTURE_N_TAPS, @ref ELM_GESTURE_N_LONG_TAPS,
12811     * @ref ELM_GESTURE_N_DOUBLE_TAPS, @ref ELM_GESTURE_N_TRIPLE_TAPS.
12812     *
12813     * @ref Elm_Gesture_Momentum_Info is info reported for momentum gestures:
12814     * @ref ELM_GESTURE_MOMENTUM.
12815     *
12816     * @ref Elm_Gesture_Line_Info is the info reported for line gestures:
12817     * (this also contains @ref Elm_Gesture_Momentum_Info internal structure)
12818     * @ref ELM_GESTURE_N_LINES, @ref ELM_GESTURE_N_FLICKS.
12819     * Note that we consider a flick as a line-gesture that should be completed
12820     * in flick-time-limit as defined in @ref Config.
12821     *
12822     * @ref Elm_Gesture_Zoom_Info is the info reported for @ref ELM_GESTURE_ZOOM gesture.
12823     *
12824     * @ref Elm_Gesture_Rotate_Info is the info reported for @ref ELM_GESTURE_ROTATE gesture.
12825     *
12826     *
12827     * Gesture Layer Tweaks:
12828     *
12829     * Note that line, flick, gestures can start without the need to remove fingers from surface.
12830     * When user fingers rests on same-spot gesture is ended and starts again when fingers moved.
12831     *
12832     * Setting glayer_continues_enable to false in @ref Config will change this behavior
12833     * so gesture starts when user touches (a *DOWN event) touch-surface
12834     * and ends when no fingers touches surface (a *UP event).
12835     */
12836
12837    /**
12838     * @enum _Elm_Gesture_Types
12839     * Enum of supported gesture types.
12840     * @ingroup Elm_Gesture_Layer
12841     */
12842    enum _Elm_Gesture_Types
12843      {
12844         ELM_GESTURE_FIRST = 0,
12845
12846         ELM_GESTURE_N_TAPS, /**< N fingers single taps */
12847         ELM_GESTURE_N_LONG_TAPS, /**< N fingers single long-taps */
12848         ELM_GESTURE_N_DOUBLE_TAPS, /**< N fingers double-single taps */
12849         ELM_GESTURE_N_TRIPLE_TAPS, /**< N fingers triple-single taps */
12850
12851         ELM_GESTURE_MOMENTUM, /**< Reports momentum in the dircetion of move */
12852
12853         ELM_GESTURE_N_LINES, /**< N fingers line gesture */
12854         ELM_GESTURE_N_FLICKS, /**< N fingers flick gesture */
12855
12856         ELM_GESTURE_ZOOM, /**< Zoom */
12857         ELM_GESTURE_ROTATE, /**< Rotate */
12858
12859         ELM_GESTURE_LAST
12860      };
12861
12862    /**
12863     * @typedef Elm_Gesture_Types
12864     * gesture types enum
12865     * @ingroup Elm_Gesture_Layer
12866     */
12867    typedef enum _Elm_Gesture_Types Elm_Gesture_Types;
12868
12869    /**
12870     * @enum _Elm_Gesture_State
12871     * Enum of gesture states.
12872     * @ingroup Elm_Gesture_Layer
12873     */
12874    enum _Elm_Gesture_State
12875      {
12876         ELM_GESTURE_STATE_UNDEFINED = -1, /**< Gesture not STARTed */
12877         ELM_GESTURE_STATE_START,          /**< Gesture STARTed     */
12878         ELM_GESTURE_STATE_MOVE,           /**< Gesture is ongoing  */
12879         ELM_GESTURE_STATE_END,            /**< Gesture completed   */
12880         ELM_GESTURE_STATE_ABORT    /**< Onging gesture was ABORTed */
12881      };
12882
12883    /**
12884     * @typedef Elm_Gesture_State
12885     * gesture states enum
12886     * @ingroup Elm_Gesture_Layer
12887     */
12888    typedef enum _Elm_Gesture_State Elm_Gesture_State;
12889
12890    /**
12891     * @struct _Elm_Gesture_Taps_Info
12892     * Struct holds taps info for user
12893     * @ingroup Elm_Gesture_Layer
12894     */
12895    struct _Elm_Gesture_Taps_Info
12896      {
12897         Evas_Coord x, y;         /**< Holds center point between fingers */
12898         unsigned int n;          /**< Number of fingers tapped           */
12899         unsigned int timestamp;  /**< event timestamp       */
12900      };
12901
12902    /**
12903     * @typedef Elm_Gesture_Taps_Info
12904     * holds taps info for user
12905     * @ingroup Elm_Gesture_Layer
12906     */
12907    typedef struct _Elm_Gesture_Taps_Info Elm_Gesture_Taps_Info;
12908
12909    /**
12910     * @struct _Elm_Gesture_Momentum_Info
12911     * Struct holds momentum info for user
12912     * x1 and y1 are not necessarily in sync
12913     * x1 holds x value of x direction starting point
12914     * and same holds for y1.
12915     * This is noticeable when doing V-shape movement
12916     * @ingroup Elm_Gesture_Layer
12917     */
12918    struct _Elm_Gesture_Momentum_Info
12919      {  /* Report line ends, timestamps, and momentum computed        */
12920         Evas_Coord x1; /**< Final-swipe direction starting point on X */
12921         Evas_Coord y1; /**< Final-swipe direction starting point on Y */
12922         Evas_Coord x2; /**< Final-swipe direction ending point on X   */
12923         Evas_Coord y2; /**< Final-swipe direction ending point on Y   */
12924
12925         unsigned int tx; /**< Timestamp of start of final x-swipe */
12926         unsigned int ty; /**< Timestamp of start of final y-swipe */
12927
12928         Evas_Coord mx; /**< Momentum on X */
12929         Evas_Coord my; /**< Momentum on Y */
12930
12931         unsigned int n;  /**< Number of fingers */
12932      };
12933
12934    /**
12935     * @typedef Elm_Gesture_Momentum_Info
12936     * holds momentum info for user
12937     * @ingroup Elm_Gesture_Layer
12938     */
12939     typedef struct _Elm_Gesture_Momentum_Info Elm_Gesture_Momentum_Info;
12940
12941    /**
12942     * @struct _Elm_Gesture_Line_Info
12943     * Struct holds line info for user
12944     * @ingroup Elm_Gesture_Layer
12945     */
12946    struct _Elm_Gesture_Line_Info
12947      {  /* Report line ends, timestamps, and momentum computed      */
12948         Elm_Gesture_Momentum_Info momentum; /**< Line momentum info */
12949         double angle;              /**< Angle (direction) of lines  */
12950      };
12951
12952    /**
12953     * @typedef Elm_Gesture_Line_Info
12954     * Holds line info for user
12955     * @ingroup Elm_Gesture_Layer
12956     */
12957     typedef struct  _Elm_Gesture_Line_Info Elm_Gesture_Line_Info;
12958
12959    /**
12960     * @struct _Elm_Gesture_Zoom_Info
12961     * Struct holds zoom info for user
12962     * @ingroup Elm_Gesture_Layer
12963     */
12964    struct _Elm_Gesture_Zoom_Info
12965      {
12966         Evas_Coord x, y;       /**< Holds zoom center point reported to user  */
12967         Evas_Coord radius; /**< Holds radius between fingers reported to user */
12968         double zoom;            /**< Zoom value: 1.0 means no zoom             */
12969         double momentum;        /**< Zoom momentum: zoom growth per second (NOT YET SUPPORTED) */
12970      };
12971
12972    /**
12973     * @typedef Elm_Gesture_Zoom_Info
12974     * Holds zoom info for user
12975     * @ingroup Elm_Gesture_Layer
12976     */
12977    typedef struct _Elm_Gesture_Zoom_Info Elm_Gesture_Zoom_Info;
12978
12979    /**
12980     * @struct _Elm_Gesture_Rotate_Info
12981     * Struct holds rotation info for user
12982     * @ingroup Elm_Gesture_Layer
12983     */
12984    struct _Elm_Gesture_Rotate_Info
12985      {
12986         Evas_Coord x, y;   /**< Holds zoom center point reported to user      */
12987         Evas_Coord radius; /**< Holds radius between fingers reported to user */
12988         double base_angle; /**< Holds start-angle */
12989         double angle;      /**< Rotation value: 0.0 means no rotation         */
12990         double momentum;   /**< Rotation momentum: rotation done per second (NOT YET SUPPORTED) */
12991      };
12992
12993    /**
12994     * @typedef Elm_Gesture_Rotate_Info
12995     * Holds rotation info for user
12996     * @ingroup Elm_Gesture_Layer
12997     */
12998    typedef struct _Elm_Gesture_Rotate_Info Elm_Gesture_Rotate_Info;
12999
13000    /**
13001     * @typedef Elm_Gesture_Event_Cb
13002     * User callback used to stream gesture info from gesture layer
13003     * @param data user data
13004     * @param event_info gesture report info
13005     * Returns a flag field to be applied on the causing event.
13006     * You should probably return EVAS_EVENT_FLAG_ON_HOLD if your widget acted
13007     * upon the event, in an irreversible way.
13008     *
13009     * @ingroup Elm_Gesture_Layer
13010     */
13011    typedef Evas_Event_Flags (*Elm_Gesture_Event_Cb) (void *data, void *event_info);
13012
13013    /**
13014     * Use function to set callbacks to be notified about
13015     * change of state of gesture.
13016     * When a user registers a callback with this function
13017     * this means this gesture has to be tested.
13018     *
13019     * When ALL callbacks for a gesture are set to NULL
13020     * it means user isn't interested in gesture-state
13021     * and it will not be tested.
13022     *
13023     * @param obj Pointer to gesture-layer.
13024     * @param idx The gesture you would like to track its state.
13025     * @param cb callback function pointer.
13026     * @param cb_type what event this callback tracks: START, MOVE, END, ABORT.
13027     * @param data user info to be sent to callback (usually, Smart Data)
13028     *
13029     * @ingroup Elm_Gesture_Layer
13030     */
13031    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);
13032
13033    /**
13034     * Call this function to get repeat-events settings.
13035     *
13036     * @param obj Pointer to gesture-layer.
13037     *
13038     * @return repeat events settings.
13039     * @see elm_gesture_layer_hold_events_set()
13040     * @ingroup Elm_Gesture_Layer
13041     */
13042    EAPI Eina_Bool elm_gesture_layer_hold_events_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
13043
13044    /**
13045     * This function called in order to make gesture-layer repeat events.
13046     * Set this of you like to get the raw events only if gestures were not detected.
13047     * Clear this if you like gesture layer to fwd events as testing gestures.
13048     *
13049     * @param obj Pointer to gesture-layer.
13050     * @param r Repeat: TRUE/FALSE
13051     *
13052     * @ingroup Elm_Gesture_Layer
13053     */
13054    EAPI void elm_gesture_layer_hold_events_set(Evas_Object *obj, Eina_Bool r) EINA_ARG_NONNULL(1);
13055
13056    /**
13057     * This function sets step-value for zoom action.
13058     * Set step to any positive value.
13059     * Cancel step setting by setting to 0.0
13060     *
13061     * @param obj Pointer to gesture-layer.
13062     * @param s new zoom step value.
13063     *
13064     * @ingroup Elm_Gesture_Layer
13065     */
13066    EAPI void elm_gesture_layer_zoom_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
13067
13068    /**
13069     * This function sets step-value for rotate action.
13070     * Set step to any positive value.
13071     * Cancel step setting by setting to 0.0
13072     *
13073     * @param obj Pointer to gesture-layer.
13074     * @param s new roatate step value.
13075     *
13076     * @ingroup Elm_Gesture_Layer
13077     */
13078    EAPI void elm_gesture_layer_rotate_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
13079
13080    /**
13081     * This function called to attach gesture-layer to an Evas_Object.
13082     * @param obj Pointer to gesture-layer.
13083     * @param t Pointer to underlying object (AKA Target)
13084     *
13085     * @return TRUE, FALSE on success, failure.
13086     *
13087     * @ingroup Elm_Gesture_Layer
13088     */
13089    EAPI Eina_Bool elm_gesture_layer_attach(Evas_Object *obj, Evas_Object *t) EINA_ARG_NONNULL(1, 2);
13090
13091    /**
13092     * Call this function to construct a new gesture-layer object.
13093     * This does not activate the gesture layer. You have to
13094     * call elm_gesture_layer_attach in order to 'activate' gesture-layer.
13095     *
13096     * @param parent the parent object.
13097     *
13098     * @return Pointer to new gesture-layer object.
13099     *
13100     * @ingroup Elm_Gesture_Layer
13101     */
13102    EAPI Evas_Object *elm_gesture_layer_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13103
13104    /**
13105     * @defgroup Thumb Thumb
13106     *
13107     * @image html img/widget/thumb/preview-00.png
13108     * @image latex img/widget/thumb/preview-00.eps
13109     *
13110     * A thumb object is used for displaying the thumbnail of an image or video.
13111     * You must have compiled Elementary with Ethumb_Client support and the DBus
13112     * service must be present and auto-activated in order to have thumbnails to
13113     * be generated.
13114     *
13115     * Once the thumbnail object becomes visible, it will check if there is a
13116     * previously generated thumbnail image for the file set on it. If not, it
13117     * will start generating this thumbnail.
13118     *
13119     * Different config settings will cause different thumbnails to be generated
13120     * even on the same file.
13121     *
13122     * Generated thumbnails are stored under @c $HOME/.thumbnails/. Check the
13123     * Ethumb documentation to change this path, and to see other configuration
13124     * options.
13125     *
13126     * Signals that you can add callbacks for are:
13127     *
13128     * - "clicked" - This is called when a user has clicked the thumb without dragging
13129     *             around.
13130     * - "clicked,double" - This is called when a user has double-clicked the thumb.
13131     * - "press" - This is called when a user has pressed down the thumb.
13132     * - "generate,start" - The thumbnail generation started.
13133     * - "generate,stop" - The generation process stopped.
13134     * - "generate,error" - The generation failed.
13135     * - "load,error" - The thumbnail image loading failed.
13136     *
13137     * available styles:
13138     * - default
13139     * - noframe
13140     *
13141     * An example of use of thumbnail:
13142     *
13143     * - @ref thumb_example_01
13144     */
13145
13146    /**
13147     * @addtogroup Thumb
13148     * @{
13149     */
13150
13151    /**
13152     * @enum _Elm_Thumb_Animation_Setting
13153     * @typedef Elm_Thumb_Animation_Setting
13154     *
13155     * Used to set if a video thumbnail is animating or not.
13156     *
13157     * @ingroup Thumb
13158     */
13159    typedef enum _Elm_Thumb_Animation_Setting
13160      {
13161         ELM_THUMB_ANIMATION_START = 0, /**< Play animation once */
13162         ELM_THUMB_ANIMATION_LOOP,      /**< Keep playing animation until stop is requested */
13163         ELM_THUMB_ANIMATION_STOP,      /**< Stop playing the animation */
13164         ELM_THUMB_ANIMATION_LAST
13165      } Elm_Thumb_Animation_Setting;
13166
13167    /**
13168     * Add a new thumb object to the parent.
13169     *
13170     * @param parent The parent object.
13171     * @return The new object or NULL if it cannot be created.
13172     *
13173     * @see elm_thumb_file_set()
13174     * @see elm_thumb_ethumb_client_get()
13175     *
13176     * @ingroup Thumb
13177     */
13178    EAPI Evas_Object                 *elm_thumb_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13179    /**
13180     * Reload thumbnail if it was generated before.
13181     *
13182     * @param obj The thumb object to reload
13183     *
13184     * This is useful if the ethumb client configuration changed, like its
13185     * size, aspect or any other property one set in the handle returned
13186     * by elm_thumb_ethumb_client_get().
13187     *
13188     * If the options didn't change, the thumbnail won't be generated again, but
13189     * the old one will still be used.
13190     *
13191     * @see elm_thumb_file_set()
13192     *
13193     * @ingroup Thumb
13194     */
13195    EAPI void                         elm_thumb_reload(Evas_Object *obj) EINA_ARG_NONNULL(1);
13196    /**
13197     * Set the file that will be used as thumbnail.
13198     *
13199     * @param obj The thumb object.
13200     * @param file The path to file that will be used as thumb.
13201     * @param key The key used in case of an EET file.
13202     *
13203     * The file can be an image or a video (in that case, acceptable extensions are:
13204     * avi, mp4, ogv, mov, mpg and wmv). To start the video animation, use the
13205     * function elm_thumb_animate().
13206     *
13207     * @see elm_thumb_file_get()
13208     * @see elm_thumb_reload()
13209     * @see elm_thumb_animate()
13210     *
13211     * @ingroup Thumb
13212     */
13213    EAPI void                         elm_thumb_file_set(Evas_Object *obj, const char *file, const char *key) EINA_ARG_NONNULL(1);
13214    /**
13215     * Get the image or video path and key used to generate the thumbnail.
13216     *
13217     * @param obj The thumb object.
13218     * @param file Pointer to filename.
13219     * @param key Pointer to key.
13220     *
13221     * @see elm_thumb_file_set()
13222     * @see elm_thumb_path_get()
13223     *
13224     * @ingroup Thumb
13225     */
13226    EAPI void                         elm_thumb_file_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
13227    /**
13228     * Get the path and key to the image or video generated by ethumb.
13229     *
13230     * One just need to make sure that the thumbnail was generated before getting
13231     * its path; otherwise, the path will be NULL. One way to do that is by asking
13232     * for the path when/after the "generate,stop" smart callback is called.
13233     *
13234     * @param obj The thumb object.
13235     * @param file Pointer to thumb path.
13236     * @param key Pointer to thumb key.
13237     *
13238     * @see elm_thumb_file_get()
13239     *
13240     * @ingroup Thumb
13241     */
13242    EAPI void                         elm_thumb_path_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
13243    /**
13244     * Set the animation state for the thumb object. If its content is an animated
13245     * video, you may start/stop the animation or tell it to play continuously and
13246     * looping.
13247     *
13248     * @param obj The thumb object.
13249     * @param setting The animation setting.
13250     *
13251     * @see elm_thumb_file_set()
13252     *
13253     * @ingroup Thumb
13254     */
13255    EAPI void                         elm_thumb_animate_set(Evas_Object *obj, Elm_Thumb_Animation_Setting s) EINA_ARG_NONNULL(1);
13256    /**
13257     * Get the animation state for the thumb object.
13258     *
13259     * @param obj The thumb object.
13260     * @return getting The animation setting or @c ELM_THUMB_ANIMATION_LAST,
13261     * on errors.
13262     *
13263     * @see elm_thumb_animate_set()
13264     *
13265     * @ingroup Thumb
13266     */
13267    EAPI Elm_Thumb_Animation_Setting  elm_thumb_animate_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13268    /**
13269     * Get the ethumb_client handle so custom configuration can be made.
13270     *
13271     * @return Ethumb_Client instance or NULL.
13272     *
13273     * This must be called before the objects are created to be sure no object is
13274     * visible and no generation started.
13275     *
13276     * Example of usage:
13277     *
13278     * @code
13279     * #include <Elementary.h>
13280     * #ifndef ELM_LIB_QUICKLAUNCH
13281     * EAPI_MAIN int
13282     * elm_main(int argc, char **argv)
13283     * {
13284     *    Ethumb_Client *client;
13285     *
13286     *    elm_need_ethumb();
13287     *
13288     *    // ... your code
13289     *
13290     *    client = elm_thumb_ethumb_client_get();
13291     *    if (!client)
13292     *      {
13293     *         ERR("could not get ethumb_client");
13294     *         return 1;
13295     *      }
13296     *    ethumb_client_size_set(client, 100, 100);
13297     *    ethumb_client_crop_align_set(client, 0.5, 0.5);
13298     *    // ... your code
13299     *
13300     *    // Create elm_thumb objects here
13301     *
13302     *    elm_run();
13303     *    elm_shutdown();
13304     *    return 0;
13305     * }
13306     * #endif
13307     * ELM_MAIN()
13308     * @endcode
13309     *
13310     * @note There's only one client handle for Ethumb, so once a configuration
13311     * change is done to it, any other request for thumbnails (for any thumbnail
13312     * object) will use that configuration. Thus, this configuration is global.
13313     *
13314     * @ingroup Thumb
13315     */
13316    EAPI void                        *elm_thumb_ethumb_client_get(void);
13317    /**
13318     * Get the ethumb_client connection state.
13319     *
13320     * @return EINA_TRUE if the client is connected to the server or EINA_FALSE
13321     * otherwise.
13322     */
13323    EAPI Eina_Bool                    elm_thumb_ethumb_client_connected(void);
13324    /**
13325     * Make the thumbnail 'editable'.
13326     *
13327     * @param obj Thumb object.
13328     * @param set Turn on or off editability. Default is @c EINA_FALSE.
13329     *
13330     * This means the thumbnail is a valid drag target for drag and drop, and can be
13331     * cut or pasted too.
13332     *
13333     * @see elm_thumb_editable_get()
13334     *
13335     * @ingroup Thumb
13336     */
13337    EAPI Eina_Bool                    elm_thumb_editable_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
13338    /**
13339     * Make the thumbnail 'editable'.
13340     *
13341     * @param obj Thumb object.
13342     * @return Editability.
13343     *
13344     * This means the thumbnail is a valid drag target for drag and drop, and can be
13345     * cut or pasted too.
13346     *
13347     * @see elm_thumb_editable_set()
13348     *
13349     * @ingroup Thumb
13350     */
13351    EAPI Eina_Bool                    elm_thumb_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13352
13353    /**
13354     * @}
13355     */
13356
13357    /**
13358     * @defgroup Web Web
13359     *
13360     * @image html img/widget/web/preview-00.png
13361     * @image latex img/widget/web/preview-00.eps
13362     *
13363     * A web object is used for displaying web pages (HTML/CSS/JS)
13364     * using WebKit-EFL. You must have compiled Elementary with
13365     * ewebkit support.
13366     *
13367     * Signals that you can add callbacks for are:
13368     * @li "download,request": A file download has been requested. Event info is
13369     * a pointer to a Elm_Web_Download
13370     * @li "editorclient,contents,changed": Editor client's contents changed
13371     * @li "editorclient,selection,changed": Editor client's selection changed
13372     * @li "frame,created": A new frame was created. Event info is an
13373     * Evas_Object which can be handled with WebKit's ewk_frame API
13374     * @li "icon,received": An icon was received by the main frame
13375     * @li "inputmethod,changed": Input method changed. Event info is an
13376     * Eina_Bool indicating whether it's enabled or not
13377     * @li "js,windowobject,clear": JS window object has been cleared
13378     * @li "link,hover,in": Mouse cursor is hovering over a link. Event info
13379     * is a char *link[2], where the first string contains the URL the link
13380     * points to, and the second one the title of the link
13381     * @li "link,hover,out": Mouse cursor left the link
13382     * @li "load,document,finished": Loading of a document finished. Event info
13383     * is the frame that finished loading
13384     * @li "load,error": Load failed. Event info is a pointer to
13385     * Elm_Web_Frame_Load_Error
13386     * @li "load,finished": Load finished. Event info is NULL on success, on
13387     * error it's a pointer to Elm_Web_Frame_Load_Error
13388     * @li "load,newwindow,show": A new window was created and is ready to be
13389     * shown
13390     * @li "load,progress": Overall load progress. Event info is a pointer to
13391     * a double containing a value between 0.0 and 1.0
13392     * @li "load,provisional": Started provisional load
13393     * @li "load,started": Loading of a document started
13394     * @li "menubar,visible,get": Queries if the menubar is visible. Event info
13395     * is a pointer to Eina_Bool where the callback should set EINA_TRUE if
13396     * the menubar is visible, or EINA_FALSE in case it's not
13397     * @li "menubar,visible,set": Informs menubar visibility. Event info is
13398     * an Eina_Bool indicating the visibility
13399     * @li "popup,created": A dropdown widget was activated, requesting its
13400     * popup menu to be created. Event info is a pointer to Elm_Web_Menu
13401     * @li "popup,willdelete": The web object is ready to destroy the popup
13402     * object created. Event info is a pointer to Elm_Web_Menu
13403     * @li "ready": Page is fully loaded
13404     * @li "scrollbars,visible,get": Queries visibility of scrollbars. Event
13405     * info is a pointer to Eina_Bool where the visibility state should be set
13406     * @li "scrollbars,visible,set": Informs scrollbars visibility. Event info
13407     * is an Eina_Bool with the visibility state set
13408     * @li "statusbar,text,set": Text of the statusbar changed. Even info is
13409     * a string with the new text
13410     * @li "statusbar,visible,get": Queries visibility of the status bar.
13411     * Event info is a pointer to Eina_Bool where the visibility state should be
13412     * set.
13413     * @li "statusbar,visible,set": Informs statusbar visibility. Event info is
13414     * an Eina_Bool with the visibility value
13415     * @li "title,changed": Title of the main frame changed. Event info is a
13416     * string with the new title
13417     * @li "toolbars,visible,get": Queries visibility of toolbars. Event info
13418     * is a pointer to Eina_Bool where the visibility state should be set
13419     * @li "toolbars,visible,set": Informs the visibility of toolbars. Event
13420     * info is an Eina_Bool with the visibility state
13421     * @li "tooltip,text,set": Show and set text of a tooltip. Event info is
13422     * a string with the text to show
13423     * @li "uri,changed": URI of the main frame changed. Event info is a string
13424     * with the new URI
13425     * @li "view,resized": The web object internal's view changed sized
13426     * @li "windows,close,request": A JavaScript request to close the current
13427     * window was requested
13428     * @li "zoom,animated,end": Animated zoom finished
13429     *
13430     * available styles:
13431     * - default
13432     *
13433     * An example of use of web:
13434     *
13435     * - @ref web_example_01 TBD
13436     */
13437
13438    /**
13439     * @addtogroup Web
13440     * @{
13441     */
13442
13443    /**
13444     * Structure used to report load errors.
13445     *
13446     * Load errors are reported as signal by elm_web. All the strings are
13447     * temporary references and should @b not be used after the signal
13448     * callback returns. If it's required, make copies with strdup() or
13449     * eina_stringshare_add() (they are not even guaranteed to be
13450     * stringshared, so must use eina_stringshare_add() and not
13451     * eina_stringshare_ref()).
13452     */
13453    typedef struct _Elm_Web_Frame_Load_Error Elm_Web_Frame_Load_Error;
13454    /**
13455     * Structure used to report load errors.
13456     *
13457     * Load errors are reported as signal by elm_web. All the strings are
13458     * temporary references and should @b not be used after the signal
13459     * callback returns. If it's required, make copies with strdup() or
13460     * eina_stringshare_add() (they are not even guaranteed to be
13461     * stringshared, so must use eina_stringshare_add() and not
13462     * eina_stringshare_ref()).
13463     */
13464    struct _Elm_Web_Frame_Load_Error
13465      {
13466         int code; /**< Numeric error code */
13467         Eina_Bool is_cancellation; /**< Error produced by cancelling a request */
13468         const char *domain; /**< Error domain name */
13469         const char *description; /**< Error description (already localized) */
13470         const char *failing_url; /**< The URL that failed to load */
13471         Evas_Object *frame; /**< Frame object that produced the error */
13472      };
13473
13474    /**
13475     * The possibles types that the items in a menu can be
13476     */
13477    typedef enum _Elm_Web_Menu_Item_Type
13478      {
13479         ELM_WEB_MENU_SEPARATOR,
13480         ELM_WEB_MENU_GROUP,
13481         ELM_WEB_MENU_OPTION
13482      } Elm_Web_Menu_Item_Type;
13483
13484    /**
13485     * Structure describing the items in a menu
13486     */
13487    typedef struct _Elm_Web_Menu_Item Elm_Web_Menu_Item;
13488    /**
13489     * Structure describing the items in a menu
13490     */
13491    struct _Elm_Web_Menu_Item
13492      {
13493         const char *text; /**< The text for the item */
13494         Elm_Web_Menu_Item_Type type; /**< The type of the item */
13495      };
13496
13497    /**
13498     * Structure describing the menu of a popup
13499     *
13500     * This structure will be passed as the @c event_info for the "popup,create"
13501     * signal, which is emitted when a dropdown menu is opened. Users wanting
13502     * to handle these popups by themselves should listen to this signal and
13503     * set the @c handled property of the struct to @c EINA_TRUE. Leaving this
13504     * property as @c EINA_FALSE means that the user will not handle the popup
13505     * and the default implementation will be used.
13506     *
13507     * When the popup is ready to be dismissed, a "popup,willdelete" signal
13508     * will be emitted to notify the user that it can destroy any objects and
13509     * free all data related to it.
13510     *
13511     * @see elm_web_popup_selected_set()
13512     * @see elm_web_popup_destroy()
13513     */
13514    typedef struct _Elm_Web_Menu Elm_Web_Menu;
13515    /**
13516     * Structure describing the menu of a popup
13517     *
13518     * This structure will be passed as the @c event_info for the "popup,create"
13519     * signal, which is emitted when a dropdown menu is opened. Users wanting
13520     * to handle these popups by themselves should listen to this signal and
13521     * set the @c handled property of the struct to @c EINA_TRUE. Leaving this
13522     * property as @c EINA_FALSE means that the user will not handle the popup
13523     * and the default implementation will be used.
13524     *
13525     * When the popup is ready to be dismissed, a "popup,willdelete" signal
13526     * will be emitted to notify the user that it can destroy any objects and
13527     * free all data related to it.
13528     *
13529     * @see elm_web_popup_selected_set()
13530     * @see elm_web_popup_destroy()
13531     */
13532    struct _Elm_Web_Menu
13533      {
13534         Eina_List *items; /**< List of #Elm_Web_Menu_Item */
13535         int x; /**< The X position of the popup, relative to the elm_web object */
13536         int y; /**< The Y position of the popup, relative to the elm_web object */
13537         int width; /**< Width of the popup menu */
13538         int height; /**< Height of the popup menu */
13539
13540         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. */
13541      };
13542
13543    typedef struct _Elm_Web_Download Elm_Web_Download;
13544    struct _Elm_Web_Download
13545      {
13546         const char *url;
13547      };
13548
13549    /**
13550     * Types of zoom available.
13551     */
13552    typedef enum _Elm_Web_Zoom_Mode
13553      {
13554         ELM_WEB_ZOOM_MODE_MANUAL = 0, /**< Zoom controled normally by elm_web_zoom_set */
13555         ELM_WEB_ZOOM_MODE_AUTO_FIT, /**< Zoom until content fits in web object */
13556         ELM_WEB_ZOOM_MODE_AUTO_FILL, /**< Zoom until content fills web object */
13557         ELM_WEB_ZOOM_MODE_LAST
13558      } Elm_Web_Zoom_Mode;
13559    /**
13560     * Opaque handler containing the features (such as statusbar, menubar, etc)
13561     * that are to be set on a newly requested window.
13562     */
13563    typedef struct _Elm_Web_Window_Features Elm_Web_Window_Features;
13564    /**
13565     * Callback type for the create_window hook.
13566     *
13567     * The function parameters are:
13568     * @li @p data User data pointer set when setting the hook function
13569     * @li @p obj The elm_web object requesting the new window
13570     * @li @p js Set to @c EINA_TRUE if the request was originated from
13571     * JavaScript. @c EINA_FALSE otherwise.
13572     * @li @p window_features A pointer of #Elm_Web_Window_Features indicating
13573     * the features requested for the new window.
13574     *
13575     * The returned value of the function should be the @c elm_web widget where
13576     * the request will be loaded. That is, if a new window or tab is created,
13577     * the elm_web widget in it should be returned, and @b NOT the window
13578     * object.
13579     * Returning @c NULL should cancel the request.
13580     *
13581     * @see elm_web_window_create_hook_set()
13582     */
13583    typedef Evas_Object *(*Elm_Web_Window_Open)(void *data, Evas_Object *obj, Eina_Bool js, const Elm_Web_Window_Features *window_features);
13584    /**
13585     * Callback type for the JS alert hook.
13586     *
13587     * The function parameters are:
13588     * @li @p data User data pointer set when setting the hook function
13589     * @li @p obj The elm_web object requesting the new window
13590     * @li @p message The message to show in the alert dialog
13591     *
13592     * The function should return the object representing the alert dialog.
13593     * Elm_Web will run a second main loop to handle the dialog and normal
13594     * flow of the application will be restored when the object is deleted, so
13595     * the user should handle the popup properly in order to delete the object
13596     * when the action is finished.
13597     * If the function returns @c NULL the popup will be ignored.
13598     *
13599     * @see elm_web_dialog_alert_hook_set()
13600     */
13601    typedef Evas_Object *(*Elm_Web_Dialog_Alert)(void *data, Evas_Object *obj, const char *message);
13602    /**
13603     * Callback type for the JS confirm hook.
13604     *
13605     * The function parameters are:
13606     * @li @p data User data pointer set when setting the hook function
13607     * @li @p obj The elm_web object requesting the new window
13608     * @li @p message The message to show in the confirm dialog
13609     * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
13610     * the user selected @c Ok, @c EINA_FALSE otherwise.
13611     *
13612     * The function should return the object representing the confirm dialog.
13613     * Elm_Web will run a second main loop to handle the dialog and normal
13614     * flow of the application will be restored when the object is deleted, so
13615     * the user should handle the popup properly in order to delete the object
13616     * when the action is finished.
13617     * If the function returns @c NULL the popup will be ignored.
13618     *
13619     * @see elm_web_dialog_confirm_hook_set()
13620     */
13621    typedef Evas_Object *(*Elm_Web_Dialog_Confirm)(void *data, Evas_Object *obj, const char *message, Eina_Bool *ret);
13622    /**
13623     * Callback type for the JS prompt hook.
13624     *
13625     * The function parameters are:
13626     * @li @p data User data pointer set when setting the hook function
13627     * @li @p obj The elm_web object requesting the new window
13628     * @li @p message The message to show in the prompt dialog
13629     * @li @p def_value The default value to present the user in the entry
13630     * @li @p value Pointer where to store the value given by the user. Must
13631     * be a malloc'ed string or @c NULL if the user cancelled the popup.
13632     * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
13633     * the user selected @c Ok, @c EINA_FALSE otherwise.
13634     *
13635     * The function should return the object representing the prompt dialog.
13636     * Elm_Web will run a second main loop to handle the dialog and normal
13637     * flow of the application will be restored when the object is deleted, so
13638     * the user should handle the popup properly in order to delete the object
13639     * when the action is finished.
13640     * If the function returns @c NULL the popup will be ignored.
13641     *
13642     * @see elm_web_dialog_prompt_hook_set()
13643     */
13644    typedef Evas_Object *(*Elm_Web_Dialog_Prompt)(void *data, Evas_Object *obj, const char *message, const char *def_value, char **value, Eina_Bool *ret);
13645    /**
13646     * Callback type for the JS file selector hook.
13647     *
13648     * The function parameters are:
13649     * @li @p data User data pointer set when setting the hook function
13650     * @li @p obj The elm_web object requesting the new window
13651     * @li @p allows_multiple @c EINA_TRUE if multiple files can be selected.
13652     * @li @p accept_types Mime types accepted
13653     * @li @p selected Pointer where to store the list of malloc'ed strings
13654     * containing the path to each file selected. Must be @c NULL if the file
13655     * dialog is cancelled
13656     * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
13657     * the user selected @c Ok, @c EINA_FALSE otherwise.
13658     *
13659     * The function should return the object representing the file selector
13660     * dialog.
13661     * Elm_Web will run a second main loop to handle the dialog and normal
13662     * flow of the application will be restored when the object is deleted, so
13663     * the user should handle the popup properly in order to delete the object
13664     * when the action is finished.
13665     * If the function returns @c NULL the popup will be ignored.
13666     *
13667     * @see elm_web_dialog_file selector_hook_set()
13668     */
13669    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);
13670    /**
13671     * Callback type for the JS console message hook.
13672     *
13673     * When a console message is added from JavaScript, any set function to the
13674     * console message hook will be called for the user to handle. There is no
13675     * default implementation of this hook.
13676     *
13677     * The function parameters are:
13678     * @li @p data User data pointer set when setting the hook function
13679     * @li @p obj The elm_web object that originated the message
13680     * @li @p message The message sent
13681     * @li @p line_number The line number
13682     * @li @p source_id Source id
13683     *
13684     * @see elm_web_console_message_hook_set()
13685     */
13686    typedef void (*Elm_Web_Console_Message)(void *data, Evas_Object *obj, const char *message, unsigned int line_number, const char *source_id);
13687    /**
13688     * Add a new web object to the parent.
13689     *
13690     * @param parent The parent object.
13691     * @return The new object or NULL if it cannot be created.
13692     *
13693     * @see elm_web_uri_set()
13694     * @see elm_web_webkit_view_get()
13695     */
13696    EAPI Evas_Object                 *elm_web_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13697
13698    /**
13699     * Get internal ewk_view object from web object.
13700     *
13701     * Elementary may not provide some low level features of EWebKit,
13702     * instead of cluttering the API with proxy methods we opted to
13703     * return the internal reference. Be careful using it as it may
13704     * interfere with elm_web behavior.
13705     *
13706     * @param obj The web object.
13707     * @return The internal ewk_view object or NULL if it does not
13708     *         exist. (Failure to create or Elementary compiled without
13709     *         ewebkit)
13710     *
13711     * @see elm_web_add()
13712     */
13713    EAPI Evas_Object                 *elm_web_webkit_view_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13714
13715    /**
13716     * Sets the function to call when a new window is requested
13717     *
13718     * This hook will be called when a request to create a new window is
13719     * issued from the web page loaded.
13720     * There is no default implementation for this feature, so leaving this
13721     * unset or passing @c NULL in @p func will prevent new windows from
13722     * opening.
13723     *
13724     * @param obj The web object where to set the hook function
13725     * @param func The hook function to be called when a window is requested
13726     * @param data User data
13727     */
13728    EAPI void                         elm_web_window_create_hook_set(Evas_Object *obj, Elm_Web_Window_Open func, void *data);
13729    /**
13730     * Sets the function to call when an alert dialog
13731     *
13732     * This hook will be called when a JavaScript alert dialog is requested.
13733     * If no function is set or @c NULL is passed in @p func, the default
13734     * implementation will take place.
13735     *
13736     * @param obj The web object where to set the hook function
13737     * @param func The callback function to be used
13738     * @param data User data
13739     *
13740     * @see elm_web_inwin_mode_set()
13741     */
13742    EAPI void                         elm_web_dialog_alert_hook_set(Evas_Object *obj, Elm_Web_Dialog_Alert func, void *data);
13743    /**
13744     * Sets the function to call when an confirm dialog
13745     *
13746     * This hook will be called when a JavaScript confirm dialog is requested.
13747     * If no function is set or @c NULL is passed in @p func, the default
13748     * implementation will take place.
13749     *
13750     * @param obj The web object where to set the hook function
13751     * @param func The callback function to be used
13752     * @param data User data
13753     *
13754     * @see elm_web_inwin_mode_set()
13755     */
13756    EAPI void                         elm_web_dialog_confirm_hook_set(Evas_Object *obj, Elm_Web_Dialog_Confirm func, void *data);
13757    /**
13758     * Sets the function to call when an prompt dialog
13759     *
13760     * This hook will be called when a JavaScript prompt dialog is requested.
13761     * If no function is set or @c NULL is passed in @p func, the default
13762     * implementation will take place.
13763     *
13764     * @param obj The web object where to set the hook function
13765     * @param func The callback function to be used
13766     * @param data User data
13767     *
13768     * @see elm_web_inwin_mode_set()
13769     */
13770    EAPI void                         elm_web_dialog_prompt_hook_set(Evas_Object *obj, Elm_Web_Dialog_Prompt func, void *data);
13771    /**
13772     * Sets the function to call when an file selector dialog
13773     *
13774     * This hook will be called when a JavaScript file selector dialog is
13775     * requested.
13776     * If no function is set or @c NULL is passed in @p func, the default
13777     * implementation will take place.
13778     *
13779     * @param obj The web object where to set the hook function
13780     * @param func The callback function to be used
13781     * @param data User data
13782     *
13783     * @see elm_web_inwin_mode_set()
13784     */
13785    EAPI void                         elm_web_dialog_file_selector_hook_set(Evas_Object *obj, Elm_Web_Dialog_File_Selector func, void *data);
13786    /**
13787     * Sets the function to call when a console message is emitted from JS
13788     *
13789     * This hook will be called when a console message is emitted from
13790     * JavaScript. There is no default implementation for this feature.
13791     *
13792     * @param obj The web object where to set the hook function
13793     * @param func The callback function to be used
13794     * @param data User data
13795     */
13796    EAPI void                         elm_web_console_message_hook_set(Evas_Object *obj, Elm_Web_Console_Message func, void *data);
13797    /**
13798     * Gets the status of the tab propagation
13799     *
13800     * @param obj The web object to query
13801     * @return EINA_TRUE if tab propagation is enabled, EINA_FALSE otherwise
13802     *
13803     * @see elm_web_tab_propagate_set()
13804     */
13805    EAPI Eina_Bool                    elm_web_tab_propagate_get(const Evas_Object *obj);
13806    /**
13807     * Sets whether to use tab propagation
13808     *
13809     * If tab propagation is enabled, whenever the user presses the Tab key,
13810     * Elementary will handle it and switch focus to the next widget.
13811     * The default value is disabled, where WebKit will handle the Tab key to
13812     * cycle focus though its internal objects, jumping to the next widget
13813     * only when that cycle ends.
13814     *
13815     * @param obj The web object
13816     * @param propagate Whether to propagate Tab keys to Elementary or not
13817     */
13818    EAPI void                         elm_web_tab_propagate_set(Evas_Object *obj, Eina_Bool propagate);
13819    /**
13820     * Sets the URI for the web object
13821     *
13822     * It must be a full URI, with resource included, in the form
13823     * http://www.enlightenment.org or file:///tmp/something.html
13824     *
13825     * @param obj The web object
13826     * @param uri The URI to set
13827     * @return EINA_TRUE if the URI could be, EINA_FALSE if an error occurred
13828     */
13829    EAPI Eina_Bool                    elm_web_uri_set(Evas_Object *obj, const char *uri);
13830    /**
13831     * Gets the current URI for the object
13832     *
13833     * The returned string must not be freed and is guaranteed to be
13834     * stringshared.
13835     *
13836     * @param obj The web object
13837     * @return A stringshared internal string with the current URI, or NULL on
13838     * failure
13839     */
13840    EAPI const char                  *elm_web_uri_get(const Evas_Object *obj);
13841    /**
13842     * Gets the current title
13843     *
13844     * The returned string must not be freed and is guaranteed to be
13845     * stringshared.
13846     *
13847     * @param obj The web object
13848     * @return A stringshared internal string with the current title, or NULL on
13849     * failure
13850     */
13851    EAPI const char                  *elm_web_title_get(const Evas_Object *obj);
13852    /**
13853     * Sets the background color to be used by the web object
13854     *
13855     * This is the color that will be used by default when the loaded page
13856     * does not set it's own. Color values are pre-multiplied.
13857     *
13858     * @param obj The web object
13859     * @param r Red component
13860     * @param g Green component
13861     * @param b Blue component
13862     * @param a Alpha component
13863     */
13864    EAPI void                         elm_web_bg_color_set(Evas_Object *obj, int r, int g, int b, int a);
13865    /**
13866     * Gets the background color to be used by the web object
13867     *
13868     * This is the color that will be used by default when the loaded page
13869     * does not set it's own. Color values are pre-multiplied.
13870     *
13871     * @param obj The web object
13872     * @param r Red component
13873     * @param g Green component
13874     * @param b Blue component
13875     * @param a Alpha component
13876     */
13877    EAPI void                         elm_web_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b, int *a);
13878    /**
13879     * Gets a copy of the currently selected text
13880     *
13881     * The string returned must be freed by the user when it's done with it.
13882     *
13883     * @param obj The web object
13884     * @return A newly allocated string, or NULL if nothing is selected or an
13885     * error occurred
13886     */
13887    EAPI char                        *elm_view_selection_get(const Evas_Object *obj);
13888    /**
13889     * Tells the web object which index in the currently open popup was selected
13890     *
13891     * When the user handles the popup creation from the "popup,created" signal,
13892     * it needs to tell the web object which item was selected by calling this
13893     * function with the index corresponding to the item.
13894     *
13895     * @param obj The web object
13896     * @param index The index selected
13897     *
13898     * @see elm_web_popup_destroy()
13899     */
13900    EAPI void                         elm_web_popup_selected_set(Evas_Object *obj, int index);
13901    /**
13902     * Dismisses an open dropdown popup
13903     *
13904     * When the popup from a dropdown widget is to be dismissed, either after
13905     * selecting an option or to cancel it, this function must be called, which
13906     * will later emit an "popup,willdelete" signal to notify the user that
13907     * any memory and objects related to this popup can be freed.
13908     *
13909     * @param obj The web object
13910     * @return EINA_TRUE if the menu was successfully destroyed, or EINA_FALSE
13911     * if there was no menu to destroy
13912     */
13913    EAPI Eina_Bool                    elm_web_popup_destroy(Evas_Object *obj);
13914    /**
13915     * Searches the given string in a document.
13916     *
13917     * @param obj The web object where to search the text
13918     * @param string String to search
13919     * @param case_sensitive If search should be case sensitive or not
13920     * @param forward If search is from cursor and on or backwards
13921     * @param wrap If search should wrap at the end
13922     *
13923     * @return @c EINA_TRUE if the given string was found, @c EINA_FALSE if not
13924     * or failure
13925     */
13926    EAPI Eina_Bool                    elm_web_text_search(const Evas_Object *obj, const char *string, Eina_Bool case_sensitive, Eina_Bool forward, Eina_Bool wrap);
13927    /**
13928     * Marks matches of the given string in a document.
13929     *
13930     * @param obj The web object where to search text
13931     * @param string String to match
13932     * @param case_sensitive If match should be case sensitive or not
13933     * @param highlight If matches should be highlighted
13934     * @param limit Maximum amount of matches, or zero to unlimited
13935     *
13936     * @return number of matched @a string
13937     */
13938    EAPI unsigned int                 elm_web_text_matches_mark(Evas_Object *obj, const char *string, Eina_Bool case_sensitive, Eina_Bool highlight, unsigned int limit);
13939    /**
13940     * Clears all marked matches in the document
13941     *
13942     * @param obj The web object
13943     *
13944     * @return EINA_TRUE on success, EINA_FALSE otherwise
13945     */
13946    EAPI Eina_Bool                    elm_web_text_matches_unmark_all(Evas_Object *obj);
13947    /**
13948     * Sets whether to highlight the matched marks
13949     *
13950     * If enabled, marks set with elm_web_text_matches_mark() will be
13951     * highlighted.
13952     *
13953     * @param obj The web object
13954     * @param highlight Whether to highlight the marks or not
13955     *
13956     * @return EINA_TRUE on success, EINA_FALSE otherwise
13957     */
13958    EAPI Eina_Bool                    elm_web_text_matches_highlight_set(Evas_Object *obj, Eina_Bool highlight);
13959    /**
13960     * Gets whether highlighting marks is enabled
13961     *
13962     * @param The web object
13963     *
13964     * @return EINA_TRUE is marks are set to be highlighted, EINA_FALSE
13965     * otherwise
13966     */
13967    EAPI Eina_Bool                    elm_web_text_matches_highlight_get(const Evas_Object *obj);
13968    /**
13969     * Gets the overall loading progress of the page
13970     *
13971     * Returns the estimated loading progress of the page, with a value between
13972     * 0.0 and 1.0. This is an estimated progress accounting for all the frames
13973     * included in the page.
13974     *
13975     * @param The web object
13976     *
13977     * @return A value between 0.0 and 1.0 indicating the progress, or -1.0 on
13978     * failure
13979     */
13980    EAPI double                       elm_web_load_progress_get(const Evas_Object *obj);
13981    /**
13982     * Stops loading the current page
13983     *
13984     * Cancels the loading of the current page in the web object. This will
13985     * cause a "load,error" signal to be emitted, with the is_cancellation
13986     * flag set to EINA_TRUE.
13987     *
13988     * @param obj The web object
13989     *
13990     * @return EINA_TRUE if the cancel was successful, EINA_FALSE otherwise
13991     */
13992    EAPI Eina_Bool                    elm_web_stop(Evas_Object *obj);
13993    /**
13994     * Requests a reload of the current document in the object
13995     *
13996     * @param obj The web object
13997     *
13998     * @return EINA_TRUE on success, EINA_FALSE otherwise
13999     */
14000    EAPI Eina_Bool                    elm_web_reload(Evas_Object *obj);
14001    /**
14002     * Requests a reload of the current document, avoiding any existing caches
14003     *
14004     * @param obj The web object
14005     *
14006     * @return EINA_TRUE on success, EINA_FALSE otherwise
14007     */
14008    EAPI Eina_Bool                    elm_web_reload_full(Evas_Object *obj);
14009    /**
14010     * Goes back one step in the browsing history
14011     *
14012     * This is equivalent to calling elm_web_object_navigate(obj, -1);
14013     *
14014     * @param obj The web object
14015     *
14016     * @return EINA_TRUE on success, EINA_FALSE otherwise
14017     *
14018     * @see elm_web_history_enable_set()
14019     * @see elm_web_back_possible()
14020     * @see elm_web_forward()
14021     * @see elm_web_navigate()
14022     */
14023    EAPI Eina_Bool                    elm_web_back(Evas_Object *obj);
14024    /**
14025     * Goes forward one step in the browsing history
14026     *
14027     * This is equivalent to calling elm_web_object_navigate(obj, 1);
14028     *
14029     * @param obj The web object
14030     *
14031     * @return EINA_TRUE on success, EINA_FALSE otherwise
14032     *
14033     * @see elm_web_history_enable_set()
14034     * @see elm_web_forward_possible()
14035     * @see elm_web_back()
14036     * @see elm_web_navigate()
14037     */
14038    EAPI Eina_Bool                    elm_web_forward(Evas_Object *obj);
14039    /**
14040     * Jumps the given number of steps in the browsing history
14041     *
14042     * The @p steps value can be a negative integer to back in history, or a
14043     * positive to move forward.
14044     *
14045     * @param obj The web object
14046     * @param steps The number of steps to jump
14047     *
14048     * @return EINA_TRUE on success, EINA_FALSE on error or if not enough
14049     * history exists to jump the given number of steps
14050     *
14051     * @see elm_web_history_enable_set()
14052     * @see elm_web_navigate_possible()
14053     * @see elm_web_back()
14054     * @see elm_web_forward()
14055     */
14056    EAPI Eina_Bool                    elm_web_navigate(Evas_Object *obj, int steps);
14057    /**
14058     * Queries whether it's possible to go back in history
14059     *
14060     * @param obj The web object
14061     *
14062     * @return EINA_TRUE if it's possible to back in history, EINA_FALSE
14063     * otherwise
14064     */
14065    EAPI Eina_Bool                    elm_web_back_possible(Evas_Object *obj);
14066    /**
14067     * Queries whether it's possible to go forward in history
14068     *
14069     * @param obj The web object
14070     *
14071     * @return EINA_TRUE if it's possible to forward in history, EINA_FALSE
14072     * otherwise
14073     */
14074    EAPI Eina_Bool                    elm_web_forward_possible(Evas_Object *obj);
14075    /**
14076     * Queries whether it's possible to jump the given number of steps
14077     *
14078     * The @p steps value can be a negative integer to back in history, or a
14079     * positive to move forward.
14080     *
14081     * @param obj The web object
14082     * @param steps The number of steps to check for
14083     *
14084     * @return EINA_TRUE if enough history exists to perform the given jump,
14085     * EINA_FALSE otherwise
14086     */
14087    EAPI Eina_Bool                    elm_web_navigate_possible(Evas_Object *obj, int steps);
14088    /**
14089     * Gets whether browsing history is enabled for the given object
14090     *
14091     * @param obj The web object
14092     *
14093     * @return EINA_TRUE if history is enabled, EINA_FALSE otherwise
14094     */
14095    EAPI Eina_Bool                    elm_web_history_enable_get(const Evas_Object *obj);
14096    /**
14097     * Enables or disables the browsing history
14098     *
14099     * @param obj The web object
14100     * @param enable Whether to enable or disable the browsing history
14101     */
14102    EAPI void                         elm_web_history_enable_set(Evas_Object *obj, Eina_Bool enable);
14103    /**
14104     * Sets the zoom level of the web object
14105     *
14106     * Zoom level matches the Webkit API, so 1.0 means normal zoom, with higher
14107     * values meaning zoom in and lower meaning zoom out. This function will
14108     * only affect the zoom level if the mode set with elm_web_zoom_mode_set()
14109     * is ::ELM_WEB_ZOOM_MODE_MANUAL.
14110     *
14111     * @param obj The web object
14112     * @param zoom The zoom level to set
14113     */
14114    EAPI void                         elm_web_zoom_set(Evas_Object *obj, double zoom);
14115    /**
14116     * Gets the current zoom level set on the web object
14117     *
14118     * Note that this is the zoom level set on the web object and not that
14119     * of the underlying Webkit one. In the ::ELM_WEB_ZOOM_MODE_MANUAL mode,
14120     * the two zoom levels should match, but for the other two modes the
14121     * Webkit zoom is calculated internally to match the chosen mode without
14122     * changing the zoom level set for the web object.
14123     *
14124     * @param obj The web object
14125     *
14126     * @return The zoom level set on the object
14127     */
14128    EAPI double                       elm_web_zoom_get(const Evas_Object *obj);
14129    /**
14130     * Sets the zoom mode to use
14131     *
14132     * The modes can be any of those defined in ::Elm_Web_Zoom_Mode, except
14133     * ::ELM_WEB_ZOOM_MODE_LAST. The default is ::ELM_WEB_ZOOM_MODE_MANUAL.
14134     *
14135     * ::ELM_WEB_ZOOM_MODE_MANUAL means the zoom level will be controlled
14136     * with the elm_web_zoom_set() function.
14137     * ::ELM_WEB_ZOOM_MODE_AUTO_FIT will calculate the needed zoom level to
14138     * make sure the entirety of the web object's contents are shown.
14139     * ::ELM_WEB_ZOOM_MODE_AUTO_FILL will calculate the needed zoom level to
14140     * fit the contents in the web object's size, without leaving any space
14141     * unused.
14142     *
14143     * @param obj The web object
14144     * @param mode The mode to set
14145     */
14146    EAPI void                         elm_web_zoom_mode_set(Evas_Object *obj, Elm_Web_Zoom_Mode mode);
14147    /**
14148     * Gets the currently set zoom mode
14149     *
14150     * @param obj The web object
14151     *
14152     * @return The current zoom mode set for the object, or
14153     * ::ELM_WEB_ZOOM_MODE_LAST on error
14154     */
14155    EAPI Elm_Web_Zoom_Mode            elm_web_zoom_mode_get(const Evas_Object *obj);
14156    /**
14157     * Shows the given region in the web object
14158     *
14159     * @param obj The web object
14160     * @param x The x coordinate of the region to show
14161     * @param y The y coordinate of the region to show
14162     * @param w The width of the region to show
14163     * @param h The height of the region to show
14164     */
14165    EAPI void                         elm_web_region_show(Evas_Object *obj, int x, int y, int w, int h);
14166    /**
14167     * Brings in the region to the visible area
14168     *
14169     * Like elm_web_region_show(), but it animates the scrolling of the object
14170     * to show the area
14171     *
14172     * @param obj The web object
14173     * @param x The x coordinate of the region to show
14174     * @param y The y coordinate of the region to show
14175     * @param w The width of the region to show
14176     * @param h The height of the region to show
14177     */
14178    EAPI void                         elm_web_region_bring_in(Evas_Object *obj, int x, int y, int w, int h);
14179    /**
14180     * Sets the default dialogs to use an Inwin instead of a normal window
14181     *
14182     * If set, then the default implementation for the JavaScript dialogs and
14183     * file selector will be opened in an Inwin. Otherwise they will use a
14184     * normal separated window.
14185     *
14186     * @param obj The web object
14187     * @param value EINA_TRUE to use Inwin, EINA_FALSE to use a normal window
14188     */
14189    EAPI void                         elm_web_inwin_mode_set(Evas_Object *obj, Eina_Bool value);
14190    /**
14191     * Gets whether Inwin mode is set for the current object
14192     *
14193     * @param obj The web object
14194     *
14195     * @return EINA_TRUE if Inwin mode is set, EINA_FALSE otherwise
14196     */
14197    EAPI Eina_Bool                    elm_web_inwin_mode_get(const Evas_Object *obj);
14198
14199    EAPI void                         elm_web_window_features_ref(Elm_Web_Window_Features *wf);
14200    EAPI void                         elm_web_window_features_unref(Elm_Web_Window_Features *wf);
14201    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);
14202    EAPI void                         elm_web_window_features_int_property_get(const Elm_Web_Window_Features *wf, int *x, int *y, int *w, int *h);
14203
14204    /**
14205     * @}
14206     */
14207
14208    /**
14209     * @defgroup Hoversel Hoversel
14210     *
14211     * @image html img/widget/hoversel/preview-00.png
14212     * @image latex img/widget/hoversel/preview-00.eps
14213     *
14214     * A hoversel is a button that pops up a list of items (automatically
14215     * choosing the direction to display) that have a label and, optionally, an
14216     * icon to select from. It is a convenience widget to avoid the need to do
14217     * all the piecing together yourself. It is intended for a small number of
14218     * items in the hoversel menu (no more than 8), though is capable of many
14219     * more.
14220     *
14221     * Signals that you can add callbacks for are:
14222     * "clicked" - the user clicked the hoversel button and popped up the sel
14223     * "selected" - an item in the hoversel list is selected. event_info is the item
14224     * "dismissed" - the hover is dismissed
14225     *
14226     * See @ref tutorial_hoversel for an example.
14227     * @{
14228     */
14229    typedef struct _Elm_Hoversel_Item Elm_Hoversel_Item; /**< Item of Elm_Hoversel. Sub-type of Elm_Widget_Item */
14230    /**
14231     * @brief Add a new Hoversel object
14232     *
14233     * @param parent The parent object
14234     * @return The new object or NULL if it cannot be created
14235     */
14236    EAPI Evas_Object       *elm_hoversel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14237    /**
14238     * @brief This sets the hoversel to expand horizontally.
14239     *
14240     * @param obj The hoversel object
14241     * @param horizontal If true, the hover will expand horizontally to the
14242     * right.
14243     *
14244     * @note The initial button will display horizontally regardless of this
14245     * setting.
14246     */
14247    EAPI void               elm_hoversel_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
14248    /**
14249     * @brief This returns whether the hoversel is set to expand horizontally.
14250     *
14251     * @param obj The hoversel object
14252     * @return If true, the hover will expand horizontally to the right.
14253     *
14254     * @see elm_hoversel_horizontal_set()
14255     */
14256    EAPI Eina_Bool          elm_hoversel_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14257    /**
14258     * @brief Set the Hover parent
14259     *
14260     * @param obj The hoversel object
14261     * @param parent The parent to use
14262     *
14263     * Sets the hover parent object, the area that will be darkened when the
14264     * hoversel is clicked. Should probably be the window that the hoversel is
14265     * in. See @ref Hover objects for more information.
14266     */
14267    EAPI void               elm_hoversel_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
14268    /**
14269     * @brief Get the Hover parent
14270     *
14271     * @param obj The hoversel object
14272     * @return The used parent
14273     *
14274     * Gets the hover parent object.
14275     *
14276     * @see elm_hoversel_hover_parent_set()
14277     */
14278    EAPI Evas_Object       *elm_hoversel_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14279    /**
14280     * @brief Set the hoversel button label
14281     *
14282     * @param obj The hoversel object
14283     * @param label The label text.
14284     *
14285     * This sets the label of the button that is always visible (before it is
14286     * clicked and expanded).
14287     *
14288     * @deprecated elm_object_text_set()
14289     */
14290    EINA_DEPRECATED EAPI void               elm_hoversel_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
14291    /**
14292     * @brief Get the hoversel button label
14293     *
14294     * @param obj The hoversel object
14295     * @return The label text.
14296     *
14297     * @deprecated elm_object_text_get()
14298     */
14299    EINA_DEPRECATED EAPI const char        *elm_hoversel_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14300    /**
14301     * @brief Set the icon of the hoversel button
14302     *
14303     * @param obj The hoversel object
14304     * @param icon The icon object
14305     *
14306     * Sets the icon of the button that is always visible (before it is clicked
14307     * and expanded).  Once the icon object is set, a previously set one will be
14308     * deleted, if you want to keep that old content object, use the
14309     * elm_hoversel_icon_unset() function.
14310     *
14311     * @see elm_object_content_set() for the button widget
14312     */
14313    EAPI void               elm_hoversel_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
14314    /**
14315     * @brief Get the icon of the hoversel button
14316     *
14317     * @param obj The hoversel object
14318     * @return The icon object
14319     *
14320     * Get the icon of the button that is always visible (before it is clicked
14321     * and expanded). Also see elm_object_content_get() for the button widget.
14322     *
14323     * @see elm_hoversel_icon_set()
14324     */
14325    EAPI Evas_Object       *elm_hoversel_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14326    /**
14327     * @brief Get and unparent the icon of the hoversel button
14328     *
14329     * @param obj The hoversel object
14330     * @return The icon object that was being used
14331     *
14332     * Unparent and return the icon of the button that is always visible
14333     * (before it is clicked and expanded).
14334     *
14335     * @see elm_hoversel_icon_set()
14336     * @see elm_object_content_unset() for the button widget
14337     */
14338    EAPI Evas_Object       *elm_hoversel_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
14339    /**
14340     * @brief This triggers the hoversel popup from code, the same as if the user
14341     * had clicked the button.
14342     *
14343     * @param obj The hoversel object
14344     */
14345    EAPI void               elm_hoversel_hover_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
14346    /**
14347     * @brief This dismisses the hoversel popup as if the user had clicked
14348     * outside the hover.
14349     *
14350     * @param obj The hoversel object
14351     */
14352    EAPI void               elm_hoversel_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
14353    /**
14354     * @brief Returns whether the hoversel is expanded.
14355     *
14356     * @param obj The hoversel object
14357     * @return  This will return EINA_TRUE if the hoversel is expanded or
14358     * EINA_FALSE if it is not expanded.
14359     */
14360    EAPI Eina_Bool          elm_hoversel_expanded_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14361    /**
14362     * @brief This will remove all the children items from the hoversel.
14363     *
14364     * @param obj The hoversel object
14365     *
14366     * @warning Should @b not be called while the hoversel is active; use
14367     * elm_hoversel_expanded_get() to check first.
14368     *
14369     * @see elm_hoversel_item_del_cb_set()
14370     * @see elm_hoversel_item_del()
14371     */
14372    EAPI void               elm_hoversel_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
14373    /**
14374     * @brief Get the list of items within the given hoversel.
14375     *
14376     * @param obj The hoversel object
14377     * @return Returns a list of Elm_Hoversel_Item*
14378     *
14379     * @see elm_hoversel_item_add()
14380     */
14381    EAPI const Eina_List   *elm_hoversel_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14382    /**
14383     * @brief Add an item to the hoversel button
14384     *
14385     * @param obj The hoversel object
14386     * @param label The text label to use for the item (NULL if not desired)
14387     * @param icon_file An image file path on disk to use for the icon or standard
14388     * icon name (NULL if not desired)
14389     * @param icon_type The icon type if relevant
14390     * @param func Convenience function to call when this item is selected
14391     * @param data Data to pass to item-related functions
14392     * @return A handle to the item added.
14393     *
14394     * This adds an item to the hoversel to show when it is clicked. Note: if you
14395     * need to use an icon from an edje file then use
14396     * elm_hoversel_item_icon_set() right after the this function, and set
14397     * icon_file to NULL here.
14398     *
14399     * For more information on what @p icon_file and @p icon_type are see the
14400     * @ref Icon "icon documentation".
14401     */
14402    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);
14403    /**
14404     * @brief Delete an item from the hoversel
14405     *
14406     * @param item The item to delete
14407     *
14408     * This deletes the item from the hoversel (should not be called while the
14409     * hoversel is active; use elm_hoversel_expanded_get() to check first).
14410     *
14411     * @see elm_hoversel_item_add()
14412     * @see elm_hoversel_item_del_cb_set()
14413     */
14414    EAPI void               elm_hoversel_item_del(Elm_Hoversel_Item *item) EINA_ARG_NONNULL(1);
14415    /**
14416     * @brief Set the function to be called when an item from the hoversel is
14417     * freed.
14418     *
14419     * @param item The item to set the callback on
14420     * @param func The function called
14421     *
14422     * That function will receive these parameters:
14423     * @li void *item_data
14424     * @li Evas_Object *the_item_object
14425     * @li Elm_Hoversel_Item *the_object_struct
14426     *
14427     * @see elm_hoversel_item_add()
14428     */
14429    EAPI void               elm_hoversel_item_del_cb_set(Elm_Hoversel_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
14430    /**
14431     * @brief This returns the data pointer supplied with elm_hoversel_item_add()
14432     * that will be passed to associated function callbacks.
14433     *
14434     * @param item The item to get the data from
14435     * @return The data pointer set with elm_hoversel_item_add()
14436     *
14437     * @see elm_hoversel_item_add()
14438     */
14439    EAPI void              *elm_hoversel_item_data_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
14440    /**
14441     * @brief This returns the label text of the given hoversel item.
14442     *
14443     * @param item The item to get the label
14444     * @return The label text of the hoversel item
14445     *
14446     * @see elm_hoversel_item_add()
14447     */
14448    EAPI const char        *elm_hoversel_item_label_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
14449    /**
14450     * @brief This sets the icon for the given hoversel item.
14451     *
14452     * @param item The item to set the icon
14453     * @param icon_file An image file path on disk to use for the icon or standard
14454     * icon name
14455     * @param icon_group The edje group to use if @p icon_file is an edje file. Set this
14456     * to NULL if the icon is not an edje file
14457     * @param icon_type The icon type
14458     *
14459     * The icon can be loaded from the standard set, from an image file, or from
14460     * an edje file.
14461     *
14462     * @see elm_hoversel_item_add()
14463     */
14464    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);
14465    /**
14466     * @brief Get the icon object of the hoversel item
14467     *
14468     * @param item The item to get the icon from
14469     * @param icon_file The image file path on disk used for the icon or standard
14470     * icon name
14471     * @param icon_group The edje group used if @p icon_file is an edje file. NULL
14472     * if the icon is not an edje file
14473     * @param icon_type The icon type
14474     *
14475     * @see elm_hoversel_item_icon_set()
14476     * @see elm_hoversel_item_add()
14477     */
14478    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);
14479    /**
14480     * @}
14481     */
14482
14483    /**
14484     * @defgroup Toolbar Toolbar
14485     * @ingroup Elementary
14486     *
14487     * @image html img/widget/toolbar/preview-00.png
14488     * @image latex img/widget/toolbar/preview-00.eps width=\textwidth
14489     *
14490     * @image html img/toolbar.png
14491     * @image latex img/toolbar.eps width=\textwidth
14492     *
14493     * A toolbar is a widget that displays a list of items inside
14494     * a box. It can be scrollable, show a menu with items that don't fit
14495     * to toolbar size or even crop them.
14496     *
14497     * Only one item can be selected at a time.
14498     *
14499     * Items can have multiple states, or show menus when selected by the user.
14500     *
14501     * Smart callbacks one can listen to:
14502     * - "clicked" - when the user clicks on a toolbar item and becomes selected.
14503     * - "language,changed" - when the program language changes
14504     *
14505     * Available styles for it:
14506     * - @c "default"
14507     * - @c "transparent" - no background or shadow, just show the content
14508     *
14509     * List of examples:
14510     * @li @ref toolbar_example_01
14511     * @li @ref toolbar_example_02
14512     * @li @ref toolbar_example_03
14513     */
14514
14515    /**
14516     * @addtogroup Toolbar
14517     * @{
14518     */
14519
14520    /**
14521     * @enum _Elm_Toolbar_Shrink_Mode
14522     * @typedef Elm_Toolbar_Shrink_Mode
14523     *
14524     * Set toolbar's items display behavior, it can be scrollabel,
14525     * show a menu with exceeding items, or simply hide them.
14526     *
14527     * @note Default value is #ELM_TOOLBAR_SHRINK_MENU. It reads value
14528     * from elm config.
14529     *
14530     * Values <b> don't </b> work as bitmask, only one can be choosen.
14531     *
14532     * @see elm_toolbar_mode_shrink_set()
14533     * @see elm_toolbar_mode_shrink_get()
14534     *
14535     * @ingroup Toolbar
14536     */
14537    typedef enum _Elm_Toolbar_Shrink_Mode
14538      {
14539         ELM_TOOLBAR_SHRINK_NONE,   /**< Set toolbar minimun size to fit all the items. */
14540         ELM_TOOLBAR_SHRINK_HIDE,   /**< Hide exceeding items. */
14541         ELM_TOOLBAR_SHRINK_SCROLL, /**< Allow accessing exceeding items through a scroller. */
14542         ELM_TOOLBAR_SHRINK_MENU,   /**< Inserts a button to pop up a menu with exceeding items. */
14543         ELM_TOOLBAR_SHRINK_LAST    /**< Indicates error if returned by elm_toolbar_shrink_mode_get() */
14544      } Elm_Toolbar_Shrink_Mode;
14545
14546    typedef struct _Elm_Toolbar_Item Elm_Toolbar_Item; /**< Item of Elm_Toolbar. Sub-type of Elm_Widget_Item. Can be created with elm_toolbar_item_append(), elm_toolbar_item_prepend() and functions to add items in relative positions, like elm_toolbar_item_insert_before(), and deleted with elm_toolbar_item_del(). */
14547
14548    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(). */
14549
14550    /**
14551     * Add a new toolbar widget to the given parent Elementary
14552     * (container) object.
14553     *
14554     * @param parent The parent object.
14555     * @return a new toolbar widget handle or @c NULL, on errors.
14556     *
14557     * This function inserts a new toolbar widget on the canvas.
14558     *
14559     * @ingroup Toolbar
14560     */
14561    EAPI Evas_Object            *elm_toolbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14562
14563    /**
14564     * Set the icon size, in pixels, to be used by toolbar items.
14565     *
14566     * @param obj The toolbar object
14567     * @param icon_size The icon size in pixels
14568     *
14569     * @note Default value is @c 32. It reads value from elm config.
14570     *
14571     * @see elm_toolbar_icon_size_get()
14572     *
14573     * @ingroup Toolbar
14574     */
14575    EAPI void                    elm_toolbar_icon_size_set(Evas_Object *obj, int icon_size) EINA_ARG_NONNULL(1);
14576
14577    /**
14578     * Get the icon size, in pixels, to be used by toolbar items.
14579     *
14580     * @param obj The toolbar object.
14581     * @return The icon size in pixels.
14582     *
14583     * @see elm_toolbar_icon_size_set() for details.
14584     *
14585     * @ingroup Toolbar
14586     */
14587    EAPI int                     elm_toolbar_icon_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14588
14589    /**
14590     * Sets icon lookup order, for toolbar items' icons.
14591     *
14592     * @param obj The toolbar object.
14593     * @param order The icon lookup order.
14594     *
14595     * Icons added before calling this function will not be affected.
14596     * The default lookup order is #ELM_ICON_LOOKUP_THEME_FDO.
14597     *
14598     * @see elm_toolbar_icon_order_lookup_get()
14599     *
14600     * @ingroup Toolbar
14601     */
14602    EAPI void                    elm_toolbar_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
14603
14604    /**
14605     * Gets the icon lookup order.
14606     *
14607     * @param obj The toolbar object.
14608     * @return The icon lookup order.
14609     *
14610     * @see elm_toolbar_icon_order_lookup_set() for details.
14611     *
14612     * @ingroup Toolbar
14613     */
14614    EAPI Elm_Icon_Lookup_Order   elm_toolbar_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14615
14616    /**
14617     * Set whether the toolbar should always have an item selected.
14618     *
14619     * @param obj The toolbar object.
14620     * @param wrap @c EINA_TRUE to enable always-select mode or @c EINA_FALSE to
14621     * disable it.
14622     *
14623     * This will cause the toolbar to always have an item selected, and clicking
14624     * the selected item will not cause a selected event to be emitted. Enabling this mode
14625     * will immediately select the first toolbar item.
14626     *
14627     * Always-selected is disabled by default.
14628     *
14629     * @see elm_toolbar_always_select_mode_get().
14630     *
14631     * @ingroup Toolbar
14632     */
14633    EAPI void                    elm_toolbar_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
14634
14635    /**
14636     * Get whether the toolbar should always have an item selected.
14637     *
14638     * @param obj The toolbar object.
14639     * @return @c EINA_TRUE means an item will always be selected, @c EINA_FALSE indicates
14640     * that it is possible to have no items selected. If @p obj is @c NULL, @c EINA_FALSE is returned.
14641     *
14642     * @see elm_toolbar_always_select_mode_set() for details.
14643     *
14644     * @ingroup Toolbar
14645     */
14646    EAPI Eina_Bool               elm_toolbar_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14647
14648    /**
14649     * Set whether the toolbar items' should be selected by the user or not.
14650     *
14651     * @param obj The toolbar object.
14652     * @param wrap @c EINA_TRUE to disable selection or @c EINA_FALSE to
14653     * enable it.
14654     *
14655     * This will turn off the ability to select items entirely and they will
14656     * neither appear selected nor emit selected signals. The clicked
14657     * callback function will still be called.
14658     *
14659     * Selection is enabled by default.
14660     *
14661     * @see elm_toolbar_no_select_mode_get().
14662     *
14663     * @ingroup Toolbar
14664     */
14665    EAPI void                    elm_toolbar_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
14666
14667    /**
14668     * Set whether the toolbar items' should be selected by the user or not.
14669     *
14670     * @param obj The toolbar object.
14671     * @return @c EINA_TRUE means items can be selected. @c EINA_FALSE indicates
14672     * they can't. If @p obj is @c NULL, @c EINA_FALSE is returned.
14673     *
14674     * @see elm_toolbar_no_select_mode_set() for details.
14675     *
14676     * @ingroup Toolbar
14677     */
14678    EAPI Eina_Bool               elm_toolbar_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14679
14680    /**
14681     * Append item to the toolbar.
14682     *
14683     * @param obj The toolbar object.
14684     * @param icon A string with icon name or the absolute path of an image file.
14685     * @param label The label of the item.
14686     * @param func The function to call when the item is clicked.
14687     * @param data The data to associate with the item for related callbacks.
14688     * @return The created item or @c NULL upon failure.
14689     *
14690     * A new item will be created and appended to the toolbar, i.e., will
14691     * be set as @b last item.
14692     *
14693     * Items created with this method can be deleted with
14694     * elm_toolbar_item_del().
14695     *
14696     * Associated @p data can be properly freed when item is deleted if a
14697     * callback function is set with elm_toolbar_item_del_cb_set().
14698     *
14699     * If a function is passed as argument, it will be called everytime this item
14700     * is selected, i.e., the user clicks over an unselected item.
14701     * If such function isn't needed, just passing
14702     * @c NULL as @p func is enough. The same should be done for @p data.
14703     *
14704     * Toolbar will load icon image from fdo or current theme.
14705     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14706     * If an absolute path is provided it will load it direct from a file.
14707     *
14708     * @see elm_toolbar_item_icon_set()
14709     * @see elm_toolbar_item_del()
14710     * @see elm_toolbar_item_del_cb_set()
14711     *
14712     * @ingroup Toolbar
14713     */
14714    EAPI Elm_Toolbar_Item       *elm_toolbar_item_append(Evas_Object *obj, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
14715
14716    /**
14717     * Prepend item to the toolbar.
14718     *
14719     * @param obj The toolbar object.
14720     * @param icon A string with icon name or the absolute path of an image file.
14721     * @param label The label of the item.
14722     * @param func The function to call when the item is clicked.
14723     * @param data The data to associate with the item for related callbacks.
14724     * @return The created item or @c NULL upon failure.
14725     *
14726     * A new item will be created and prepended to the toolbar, i.e., will
14727     * be set as @b first item.
14728     *
14729     * Items created with this method can be deleted with
14730     * elm_toolbar_item_del().
14731     *
14732     * Associated @p data can be properly freed when item is deleted if a
14733     * callback function is set with elm_toolbar_item_del_cb_set().
14734     *
14735     * If a function is passed as argument, it will be called everytime this item
14736     * is selected, i.e., the user clicks over an unselected item.
14737     * If such function isn't needed, just passing
14738     * @c NULL as @p func is enough. The same should be done for @p data.
14739     *
14740     * Toolbar will load icon image from fdo or current theme.
14741     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14742     * If an absolute path is provided it will load it direct from a file.
14743     *
14744     * @see elm_toolbar_item_icon_set()
14745     * @see elm_toolbar_item_del()
14746     * @see elm_toolbar_item_del_cb_set()
14747     *
14748     * @ingroup Toolbar
14749     */
14750    EAPI Elm_Toolbar_Item       *elm_toolbar_item_prepend(Evas_Object *obj, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
14751
14752    /**
14753     * Insert a new item into the toolbar object before item @p before.
14754     *
14755     * @param obj The toolbar object.
14756     * @param before The toolbar item to insert before.
14757     * @param icon A string with icon name or the absolute path of an image file.
14758     * @param label The label of the item.
14759     * @param func The function to call when the item is clicked.
14760     * @param data The data to associate with the item for related callbacks.
14761     * @return The created item or @c NULL upon failure.
14762     *
14763     * A new item will be created and added to the toolbar. Its position in
14764     * this toolbar will be just before item @p before.
14765     *
14766     * Items created with this method can be deleted with
14767     * elm_toolbar_item_del().
14768     *
14769     * Associated @p data can be properly freed when item is deleted if a
14770     * callback function is set with elm_toolbar_item_del_cb_set().
14771     *
14772     * If a function is passed as argument, it will be called everytime this item
14773     * is selected, i.e., the user clicks over an unselected item.
14774     * If such function isn't needed, just passing
14775     * @c NULL as @p func is enough. The same should be done for @p data.
14776     *
14777     * Toolbar will load icon image from fdo or current theme.
14778     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14779     * If an absolute path is provided it will load it direct from a file.
14780     *
14781     * @see elm_toolbar_item_icon_set()
14782     * @see elm_toolbar_item_del()
14783     * @see elm_toolbar_item_del_cb_set()
14784     *
14785     * @ingroup Toolbar
14786     */
14787    EAPI Elm_Toolbar_Item       *elm_toolbar_item_insert_before(Evas_Object *obj, Elm_Toolbar_Item *before, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
14788
14789    /**
14790     * Insert a new item into the toolbar object after item @p after.
14791     *
14792     * @param obj The toolbar object.
14793     * @param after The toolbar item to insert after.
14794     * @param icon A string with icon name or the absolute path of an image file.
14795     * @param label The label of the item.
14796     * @param func The function to call when the item is clicked.
14797     * @param data The data to associate with the item for related callbacks.
14798     * @return The created item or @c NULL upon failure.
14799     *
14800     * A new item will be created and added to the toolbar. Its position in
14801     * this toolbar will be just after item @p after.
14802     *
14803     * Items created with this method can be deleted with
14804     * elm_toolbar_item_del().
14805     *
14806     * Associated @p data can be properly freed when item is deleted if a
14807     * callback function is set with elm_toolbar_item_del_cb_set().
14808     *
14809     * If a function is passed as argument, it will be called everytime this item
14810     * is selected, i.e., the user clicks over an unselected item.
14811     * If such function isn't needed, just passing
14812     * @c NULL as @p func is enough. The same should be done for @p data.
14813     *
14814     * Toolbar will load icon image from fdo or current theme.
14815     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14816     * If an absolute path is provided it will load it direct from a file.
14817     *
14818     * @see elm_toolbar_item_icon_set()
14819     * @see elm_toolbar_item_del()
14820     * @see elm_toolbar_item_del_cb_set()
14821     *
14822     * @ingroup Toolbar
14823     */
14824    EAPI Elm_Toolbar_Item       *elm_toolbar_item_insert_after(Evas_Object *obj, Elm_Toolbar_Item *after, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
14825
14826    /**
14827     * Get the first item in the given toolbar widget's list of
14828     * items.
14829     *
14830     * @param obj The toolbar object
14831     * @return The first item or @c NULL, if it has no items (and on
14832     * errors)
14833     *
14834     * @see elm_toolbar_item_append()
14835     * @see elm_toolbar_last_item_get()
14836     *
14837     * @ingroup Toolbar
14838     */
14839    EAPI Elm_Toolbar_Item       *elm_toolbar_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14840
14841    /**
14842     * Get the last item in the given toolbar widget's list of
14843     * items.
14844     *
14845     * @param obj The toolbar object
14846     * @return The last item or @c NULL, if it has no items (and on
14847     * errors)
14848     *
14849     * @see elm_toolbar_item_prepend()
14850     * @see elm_toolbar_first_item_get()
14851     *
14852     * @ingroup Toolbar
14853     */
14854    EAPI Elm_Toolbar_Item       *elm_toolbar_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14855
14856    /**
14857     * Get the item after @p item in toolbar.
14858     *
14859     * @param item The toolbar item.
14860     * @return The item after @p item, or @c NULL if none or on failure.
14861     *
14862     * @note If it is the last item, @c NULL will be returned.
14863     *
14864     * @see elm_toolbar_item_append()
14865     *
14866     * @ingroup Toolbar
14867     */
14868    EAPI Elm_Toolbar_Item       *elm_toolbar_item_next_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14869
14870    /**
14871     * Get the item before @p item in toolbar.
14872     *
14873     * @param item The toolbar item.
14874     * @return The item before @p item, or @c NULL if none or on failure.
14875     *
14876     * @note If it is the first item, @c NULL will be returned.
14877     *
14878     * @see elm_toolbar_item_prepend()
14879     *
14880     * @ingroup Toolbar
14881     */
14882    EAPI Elm_Toolbar_Item       *elm_toolbar_item_prev_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14883
14884    /**
14885     * Get the toolbar object from an item.
14886     *
14887     * @param item The item.
14888     * @return The toolbar object.
14889     *
14890     * This returns the toolbar object itself that an item belongs to.
14891     *
14892     * @ingroup Toolbar
14893     */
14894    EAPI Evas_Object            *elm_toolbar_item_toolbar_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14895
14896    /**
14897     * Set the priority of a toolbar item.
14898     *
14899     * @param item The toolbar item.
14900     * @param priority The item priority. The default is zero.
14901     *
14902     * This is used only when the toolbar shrink mode is set to
14903     * #ELM_TOOLBAR_SHRINK_MENU or #ELM_TOOLBAR_SHRINK_HIDE.
14904     * When space is less than required, items with low priority
14905     * will be removed from the toolbar and added to a dynamically-created menu,
14906     * while items with higher priority will remain on the toolbar,
14907     * with the same order they were added.
14908     *
14909     * @see elm_toolbar_item_priority_get()
14910     *
14911     * @ingroup Toolbar
14912     */
14913    EAPI void                    elm_toolbar_item_priority_set(Elm_Toolbar_Item *item, int priority) EINA_ARG_NONNULL(1);
14914
14915    /**
14916     * Get the priority of a toolbar item.
14917     *
14918     * @param item The toolbar item.
14919     * @return The @p item priority, or @c 0 on failure.
14920     *
14921     * @see elm_toolbar_item_priority_set() for details.
14922     *
14923     * @ingroup Toolbar
14924     */
14925    EAPI int                     elm_toolbar_item_priority_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14926
14927    /**
14928     * Get the label of item.
14929     *
14930     * @param item The item of toolbar.
14931     * @return The label of item.
14932     *
14933     * The return value is a pointer to the label associated to @p item when
14934     * it was created, with function elm_toolbar_item_append() or similar,
14935     * or later,
14936     * with function elm_toolbar_item_label_set. If no label
14937     * was passed as argument, it will return @c NULL.
14938     *
14939     * @see elm_toolbar_item_label_set() for more details.
14940     * @see elm_toolbar_item_append()
14941     *
14942     * @ingroup Toolbar
14943     */
14944    EAPI const char             *elm_toolbar_item_label_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14945
14946    /**
14947     * Set the label of item.
14948     *
14949     * @param item The item of toolbar.
14950     * @param text The label of item.
14951     *
14952     * The label to be displayed by the item.
14953     * Label will be placed at icons bottom (if set).
14954     *
14955     * If a label was passed as argument on item creation, with function
14956     * elm_toolbar_item_append() or similar, it will be already
14957     * displayed by the item.
14958     *
14959     * @see elm_toolbar_item_label_get()
14960     * @see elm_toolbar_item_append()
14961     *
14962     * @ingroup Toolbar
14963     */
14964    EAPI void                    elm_toolbar_item_label_set(Elm_Toolbar_Item *item, const char *label) EINA_ARG_NONNULL(1);
14965
14966    /**
14967     * Return the data associated with a given toolbar widget item.
14968     *
14969     * @param item The toolbar widget item handle.
14970     * @return The data associated with @p item.
14971     *
14972     * @see elm_toolbar_item_data_set()
14973     *
14974     * @ingroup Toolbar
14975     */
14976    EAPI void                   *elm_toolbar_item_data_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14977
14978    /**
14979     * Set the data associated with a given toolbar widget item.
14980     *
14981     * @param item The toolbar widget item handle.
14982     * @param data The new data pointer to set to @p item.
14983     *
14984     * This sets new item data on @p item.
14985     *
14986     * @warning The old data pointer won't be touched by this function, so
14987     * the user had better to free that old data himself/herself.
14988     *
14989     * @ingroup Toolbar
14990     */
14991    EAPI void                    elm_toolbar_item_data_set(Elm_Toolbar_Item *item, const void *data) EINA_ARG_NONNULL(1);
14992
14993    /**
14994     * Returns a pointer to a toolbar item by its label.
14995     *
14996     * @param obj The toolbar object.
14997     * @param label The label of the item to find.
14998     *
14999     * @return The pointer to the toolbar item matching @p label or @c NULL
15000     * on failure.
15001     *
15002     * @ingroup Toolbar
15003     */
15004    EAPI Elm_Toolbar_Item       *elm_toolbar_item_find_by_label(const Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
15005
15006    /*
15007     * Get whether the @p item is selected or not.
15008     *
15009     * @param item The toolbar item.
15010     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
15011     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
15012     *
15013     * @see elm_toolbar_selected_item_set() for details.
15014     * @see elm_toolbar_item_selected_get()
15015     *
15016     * @ingroup Toolbar
15017     */
15018    EAPI Eina_Bool               elm_toolbar_item_selected_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15019
15020    /**
15021     * Set the selected state of an item.
15022     *
15023     * @param item The toolbar item
15024     * @param selected The selected state
15025     *
15026     * This sets the selected state of the given item @p it.
15027     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
15028     *
15029     * If a new item is selected the previosly selected will be unselected.
15030     * Previoulsy selected item can be get with function
15031     * elm_toolbar_selected_item_get().
15032     *
15033     * Selected items will be highlighted.
15034     *
15035     * @see elm_toolbar_item_selected_get()
15036     * @see elm_toolbar_selected_item_get()
15037     *
15038     * @ingroup Toolbar
15039     */
15040    EAPI void                    elm_toolbar_item_selected_set(Elm_Toolbar_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
15041
15042    /**
15043     * Get the selected item.
15044     *
15045     * @param obj The toolbar object.
15046     * @return The selected toolbar item.
15047     *
15048     * The selected item can be unselected with function
15049     * elm_toolbar_item_selected_set().
15050     *
15051     * The selected item always will be highlighted on toolbar.
15052     *
15053     * @see elm_toolbar_selected_items_get()
15054     *
15055     * @ingroup Toolbar
15056     */
15057    EAPI Elm_Toolbar_Item       *elm_toolbar_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15058
15059    /**
15060     * Set the icon associated with @p item.
15061     *
15062     * @param obj The parent of this item.
15063     * @param item The toolbar item.
15064     * @param icon A string with icon name or the absolute path of an image file.
15065     *
15066     * Toolbar will load icon image from fdo or current theme.
15067     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
15068     * If an absolute path is provided it will load it direct from a file.
15069     *
15070     * @see elm_toolbar_icon_order_lookup_set()
15071     * @see elm_toolbar_icon_order_lookup_get()
15072     *
15073     * @ingroup Toolbar
15074     */
15075    EAPI void                    elm_toolbar_item_icon_set(Elm_Toolbar_Item *item, const char *icon) EINA_ARG_NONNULL(1);
15076
15077    /**
15078     * Get the string used to set the icon of @p item.
15079     *
15080     * @param item The toolbar item.
15081     * @return The string associated with the icon object.
15082     *
15083     * @see elm_toolbar_item_icon_set() for details.
15084     *
15085     * @ingroup Toolbar
15086     */
15087    EAPI const char             *elm_toolbar_item_icon_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15088
15089    /**
15090     * Get the object of @p item.
15091     *
15092     * @param item The toolbar item.
15093     * @return The object
15094     *
15095     * @ingroup Toolbar
15096     */
15097    EAPI Evas_Object            *elm_toolbar_item_object_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15098
15099    /**
15100     * Get the icon object of @p item.
15101     *
15102     * @param item The toolbar item.
15103     * @return The icon object
15104     *
15105     * @see elm_toolbar_item_icon_set() or elm_toolbar_item_icon_memfile_set() for details.
15106     *
15107     * @ingroup Toolbar
15108     */
15109    EAPI Evas_Object            *elm_toolbar_item_icon_object_get(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15110
15111    /**
15112     * Set the icon associated with @p item to an image in a binary buffer.
15113     *
15114     * @param item The toolbar item.
15115     * @param img The binary data that will be used as an image
15116     * @param size The size of binary data @p img
15117     * @param format Optional format of @p img to pass to the image loader
15118     * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
15119     *
15120     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
15121     *
15122     * @note The icon image set by this function can be changed by
15123     * elm_toolbar_item_icon_set().
15124     * 
15125     * @ingroup Toolbar
15126     */
15127    EAPI Eina_Bool elm_toolbar_item_icon_memfile_set(Elm_Toolbar_Item *item, const void *img, size_t size, const char *format, const char *key) EINA_ARG_NONNULL(1);
15128
15129    /**
15130     * Delete them item from the toolbar.
15131     *
15132     * @param item The item of toolbar to be deleted.
15133     *
15134     * @see elm_toolbar_item_append()
15135     * @see elm_toolbar_item_del_cb_set()
15136     *
15137     * @ingroup Toolbar
15138     */
15139    EAPI void                    elm_toolbar_item_del(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15140
15141    /**
15142     * Set the function called when a toolbar item is freed.
15143     *
15144     * @param item The item to set the callback on.
15145     * @param func The function called.
15146     *
15147     * If there is a @p func, then it will be called prior item's memory release.
15148     * That will be called with the following arguments:
15149     * @li item's data;
15150     * @li item's Evas object;
15151     * @li item itself;
15152     *
15153     * This way, a data associated to a toolbar item could be properly freed.
15154     *
15155     * @ingroup Toolbar
15156     */
15157    EAPI void                    elm_toolbar_item_del_cb_set(Elm_Toolbar_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
15158
15159    /**
15160     * Get a value whether toolbar item is disabled or not.
15161     *
15162     * @param item The item.
15163     * @return The disabled state.
15164     *
15165     * @see elm_toolbar_item_disabled_set() for more details.
15166     *
15167     * @ingroup Toolbar
15168     */
15169    EAPI Eina_Bool               elm_toolbar_item_disabled_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15170
15171    /**
15172     * Sets the disabled/enabled state of a toolbar item.
15173     *
15174     * @param item The item.
15175     * @param disabled The disabled state.
15176     *
15177     * A disabled item cannot be selected or unselected. It will also
15178     * change its appearance (generally greyed out). This sets the
15179     * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
15180     * enabled).
15181     *
15182     * @ingroup Toolbar
15183     */
15184    EAPI void                    elm_toolbar_item_disabled_set(Elm_Toolbar_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
15185
15186    /**
15187     * Set or unset item as a separator.
15188     *
15189     * @param item The toolbar item.
15190     * @param setting @c EINA_TRUE to set item @p item as separator or
15191     * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
15192     *
15193     * Items aren't set as separator by default.
15194     *
15195     * If set as separator it will display separator theme, so won't display
15196     * icons or label.
15197     *
15198     * @see elm_toolbar_item_separator_get()
15199     *
15200     * @ingroup Toolbar
15201     */
15202    EAPI void                    elm_toolbar_item_separator_set(Elm_Toolbar_Item *item, Eina_Bool separator) EINA_ARG_NONNULL(1);
15203
15204    /**
15205     * Get a value whether item is a separator or not.
15206     *
15207     * @param item The toolbar item.
15208     * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
15209     * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
15210     *
15211     * @see elm_toolbar_item_separator_set() for details.
15212     *
15213     * @ingroup Toolbar
15214     */
15215    EAPI Eina_Bool               elm_toolbar_item_separator_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15216
15217    /**
15218     * Set the shrink state of toolbar @p obj.
15219     *
15220     * @param obj The toolbar object.
15221     * @param shrink_mode Toolbar's items display behavior.
15222     *
15223     * The toolbar won't scroll if #ELM_TOOLBAR_SHRINK_NONE,
15224     * but will enforce a minimun size so all the items will fit, won't scroll
15225     * and won't show the items that don't fit if #ELM_TOOLBAR_SHRINK_HIDE,
15226     * will scroll if #ELM_TOOLBAR_SHRINK_SCROLL, and will create a button to
15227     * pop up excess elements with #ELM_TOOLBAR_SHRINK_MENU.
15228     *
15229     * @ingroup Toolbar
15230     */
15231    EAPI void                    elm_toolbar_mode_shrink_set(Evas_Object *obj, Elm_Toolbar_Shrink_Mode shrink_mode) EINA_ARG_NONNULL(1);
15232
15233    /**
15234     * Get the shrink mode of toolbar @p obj.
15235     *
15236     * @param obj The toolbar object.
15237     * @return Toolbar's items display behavior.
15238     *
15239     * @see elm_toolbar_mode_shrink_set() for details.
15240     *
15241     * @ingroup Toolbar
15242     */
15243    EAPI Elm_Toolbar_Shrink_Mode elm_toolbar_mode_shrink_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15244
15245    /**
15246     * Enable/disable homogenous mode.
15247     *
15248     * @param obj The toolbar object
15249     * @param homogeneous Assume the items within the toolbar are of the
15250     * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
15251     *
15252     * This will enable the homogeneous mode where items are of the same size.
15253     * @see elm_toolbar_homogeneous_get()
15254     *
15255     * @ingroup Toolbar
15256     */
15257    EAPI void                    elm_toolbar_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
15258
15259    /**
15260     * Get whether the homogenous mode is enabled.
15261     *
15262     * @param obj The toolbar object.
15263     * @return Assume the items within the toolbar are of the same height
15264     * and width (EINA_TRUE = on, EINA_FALSE = off).
15265     *
15266     * @see elm_toolbar_homogeneous_set()
15267     *
15268     * @ingroup Toolbar
15269     */
15270    EAPI Eina_Bool               elm_toolbar_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15271
15272    /**
15273     * Enable/disable homogenous mode.
15274     *
15275     * @param obj The toolbar object
15276     * @param homogeneous Assume the items within the toolbar are of the
15277     * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
15278     *
15279     * This will enable the homogeneous mode where items are of the same size.
15280     * @see elm_toolbar_homogeneous_get()
15281     *
15282     * @deprecated use elm_toolbar_homogeneous_set() instead.
15283     *
15284     * @ingroup Toolbar
15285     */
15286    EINA_DEPRECATED EAPI void    elm_toolbar_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
15287
15288    /**
15289     * Get whether the homogenous mode is enabled.
15290     *
15291     * @param obj The toolbar object.
15292     * @return Assume the items within the toolbar are of the same height
15293     * and width (EINA_TRUE = on, EINA_FALSE = off).
15294     *
15295     * @see elm_toolbar_homogeneous_set()
15296     * @deprecated use elm_toolbar_homogeneous_get() instead.
15297     *
15298     * @ingroup Toolbar
15299     */
15300    EINA_DEPRECATED EAPI Eina_Bool elm_toolbar_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15301
15302    /**
15303     * Set the parent object of the toolbar items' menus.
15304     *
15305     * @param obj The toolbar object.
15306     * @param parent The parent of the menu objects.
15307     *
15308     * Each item can be set as item menu, with elm_toolbar_item_menu_set().
15309     *
15310     * For more details about setting the parent for toolbar menus, see
15311     * elm_menu_parent_set().
15312     *
15313     * @see elm_menu_parent_set() for details.
15314     * @see elm_toolbar_item_menu_set() for details.
15315     *
15316     * @ingroup Toolbar
15317     */
15318    EAPI void                    elm_toolbar_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
15319
15320    /**
15321     * Get the parent object of the toolbar items' menus.
15322     *
15323     * @param obj The toolbar object.
15324     * @return The parent of the menu objects.
15325     *
15326     * @see elm_toolbar_menu_parent_set() for details.
15327     *
15328     * @ingroup Toolbar
15329     */
15330    EAPI Evas_Object            *elm_toolbar_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15331
15332    /**
15333     * Set the alignment of the items.
15334     *
15335     * @param obj The toolbar object.
15336     * @param align The new alignment, a float between <tt> 0.0 </tt>
15337     * and <tt> 1.0 </tt>.
15338     *
15339     * Alignment of toolbar items, from <tt> 0.0 </tt> to indicates to align
15340     * left, to <tt> 1.0 </tt>, to align to right. <tt> 0.5 </tt> centralize
15341     * items.
15342     *
15343     * Centered items by default.
15344     *
15345     * @see elm_toolbar_align_get()
15346     *
15347     * @ingroup Toolbar
15348     */
15349    EAPI void                    elm_toolbar_align_set(Evas_Object *obj, double align) EINA_ARG_NONNULL(1);
15350
15351    /**
15352     * Get the alignment of the items.
15353     *
15354     * @param obj The toolbar object.
15355     * @return toolbar items alignment, a float between <tt> 0.0 </tt> and
15356     * <tt> 1.0 </tt>.
15357     *
15358     * @see elm_toolbar_align_set() for details.
15359     *
15360     * @ingroup Toolbar
15361     */
15362    EAPI double                  elm_toolbar_align_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15363
15364    /**
15365     * Set whether the toolbar item opens a menu.
15366     *
15367     * @param item The toolbar item.
15368     * @param menu If @c EINA_TRUE, @p item will opens a menu when selected.
15369     *
15370     * A toolbar item can be set to be a menu, using this function.
15371     *
15372     * Once it is set to be a menu, it can be manipulated through the
15373     * menu-like function elm_toolbar_menu_parent_set() and the other
15374     * elm_menu functions, using the Evas_Object @c menu returned by
15375     * elm_toolbar_item_menu_get().
15376     *
15377     * So, items to be displayed in this item's menu should be added with
15378     * elm_menu_item_add().
15379     *
15380     * The following code exemplifies the most basic usage:
15381     * @code
15382     * tb = elm_toolbar_add(win)
15383     * item = elm_toolbar_item_append(tb, "refresh", "Menu", NULL, NULL);
15384     * elm_toolbar_item_menu_set(item, EINA_TRUE);
15385     * elm_toolbar_menu_parent_set(tb, win);
15386     * menu = elm_toolbar_item_menu_get(item);
15387     * elm_menu_item_add(menu, NULL, "edit-cut", "Cut", NULL, NULL);
15388     * menu_item = elm_menu_item_add(menu, NULL, "edit-copy", "Copy", NULL,
15389     * NULL);
15390     * @endcode
15391     *
15392     * @see elm_toolbar_item_menu_get()
15393     *
15394     * @ingroup Toolbar
15395     */
15396    EAPI void                    elm_toolbar_item_menu_set(Elm_Toolbar_Item *item, Eina_Bool menu) EINA_ARG_NONNULL(1);
15397
15398    /**
15399     * Get toolbar item's menu.
15400     *
15401     * @param item The toolbar item.
15402     * @return Item's menu object or @c NULL on failure.
15403     *
15404     * If @p item wasn't set as menu item with elm_toolbar_item_menu_set(),
15405     * this function will set it.
15406     *
15407     * @see elm_toolbar_item_menu_set() for details.
15408     *
15409     * @ingroup Toolbar
15410     */
15411    EAPI Evas_Object            *elm_toolbar_item_menu_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15412
15413    /**
15414     * Add a new state to @p item.
15415     *
15416     * @param item The item.
15417     * @param icon A string with icon name or the absolute path of an image file.
15418     * @param label The label of the new state.
15419     * @param func The function to call when the item is clicked when this
15420     * state is selected.
15421     * @param data The data to associate with the state.
15422     * @return The toolbar item state, or @c NULL upon failure.
15423     *
15424     * Toolbar will load icon image from fdo or current theme.
15425     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
15426     * If an absolute path is provided it will load it direct from a file.
15427     *
15428     * States created with this function can be removed with
15429     * elm_toolbar_item_state_del().
15430     *
15431     * @see elm_toolbar_item_state_del()
15432     * @see elm_toolbar_item_state_sel()
15433     * @see elm_toolbar_item_state_get()
15434     *
15435     * @ingroup Toolbar
15436     */
15437    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_add(Elm_Toolbar_Item *item, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
15438
15439    /**
15440     * Delete a previoulsy added state to @p item.
15441     *
15442     * @param item The toolbar item.
15443     * @param state The state to be deleted.
15444     * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
15445     *
15446     * @see elm_toolbar_item_state_add()
15447     */
15448    EAPI Eina_Bool               elm_toolbar_item_state_del(Elm_Toolbar_Item *item, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
15449
15450    /**
15451     * Set @p state as the current state of @p it.
15452     *
15453     * @param it The item.
15454     * @param state The state to use.
15455     * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
15456     *
15457     * If @p state is @c NULL, it won't select any state and the default item's
15458     * icon and label will be used. It's the same behaviour than
15459     * elm_toolbar_item_state_unser().
15460     *
15461     * @see elm_toolbar_item_state_unset()
15462     *
15463     * @ingroup Toolbar
15464     */
15465    EAPI Eina_Bool               elm_toolbar_item_state_set(Elm_Toolbar_Item *it, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
15466
15467    /**
15468     * Unset the state of @p it.
15469     *
15470     * @param it The item.
15471     *
15472     * The default icon and label from this item will be displayed.
15473     *
15474     * @see elm_toolbar_item_state_set() for more details.
15475     *
15476     * @ingroup Toolbar
15477     */
15478    EAPI void                    elm_toolbar_item_state_unset(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
15479
15480    /**
15481     * Get the current state of @p it.
15482     *
15483     * @param item The item.
15484     * @return The selected state or @c NULL if none is selected or on failure.
15485     *
15486     * @see elm_toolbar_item_state_set() for details.
15487     * @see elm_toolbar_item_state_unset()
15488     * @see elm_toolbar_item_state_add()
15489     *
15490     * @ingroup Toolbar
15491     */
15492    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_get(const Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
15493
15494    /**
15495     * Get the state after selected state in toolbar's @p item.
15496     *
15497     * @param it The toolbar item to change state.
15498     * @return The state after current state, or @c NULL on failure.
15499     *
15500     * If last state is selected, this function will return first state.
15501     *
15502     * @see elm_toolbar_item_state_set()
15503     * @see elm_toolbar_item_state_add()
15504     *
15505     * @ingroup Toolbar
15506     */
15507    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_next(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
15508
15509    /**
15510     * Get the state before selected state in toolbar's @p item.
15511     *
15512     * @param it The toolbar item to change state.
15513     * @return The state before current state, or @c NULL on failure.
15514     *
15515     * If first state is selected, this function will return last state.
15516     *
15517     * @see elm_toolbar_item_state_set()
15518     * @see elm_toolbar_item_state_add()
15519     *
15520     * @ingroup Toolbar
15521     */
15522    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_prev(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
15523
15524    /**
15525     * Set the text to be shown in a given toolbar item's tooltips.
15526     *
15527     * @param item Target item.
15528     * @param text The text to set in the content.
15529     *
15530     * Setup the text as tooltip to object. The item can have only one tooltip,
15531     * so any previous tooltip data - set with this function or
15532     * elm_toolbar_item_tooltip_content_cb_set() - is removed.
15533     *
15534     * @see elm_object_tooltip_text_set() for more details.
15535     *
15536     * @ingroup Toolbar
15537     */
15538    EAPI void             elm_toolbar_item_tooltip_text_set(Elm_Toolbar_Item *item, const char *text) EINA_ARG_NONNULL(1);
15539
15540    /**
15541     * Set the content to be shown in the tooltip item.
15542     *
15543     * Setup the tooltip to item. The item can have only one tooltip,
15544     * so any previous tooltip data is removed. @p func(with @p data) will
15545     * be called every time that need show the tooltip and it should
15546     * return a valid Evas_Object. This object is then managed fully by
15547     * tooltip system and is deleted when the tooltip is gone.
15548     *
15549     * @param item the toolbar item being attached a tooltip.
15550     * @param func the function used to create the tooltip contents.
15551     * @param data what to provide to @a func as callback data/context.
15552     * @param del_cb called when data is not needed anymore, either when
15553     *        another callback replaces @a func, the tooltip is unset with
15554     *        elm_toolbar_item_tooltip_unset() or the owner @a item
15555     *        dies. This callback receives as the first parameter the
15556     *        given @a data, and @c event_info is the item.
15557     *
15558     * @see elm_object_tooltip_content_cb_set() for more details.
15559     *
15560     * @ingroup Toolbar
15561     */
15562    EAPI void             elm_toolbar_item_tooltip_content_cb_set(Elm_Toolbar_Item *item, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) EINA_ARG_NONNULL(1);
15563
15564    /**
15565     * Unset tooltip from item.
15566     *
15567     * @param item toolbar item to remove previously set tooltip.
15568     *
15569     * Remove tooltip from item. The callback provided as del_cb to
15570     * elm_toolbar_item_tooltip_content_cb_set() will be called to notify
15571     * it is not used anymore.
15572     *
15573     * @see elm_object_tooltip_unset() for more details.
15574     * @see elm_toolbar_item_tooltip_content_cb_set()
15575     *
15576     * @ingroup Toolbar
15577     */
15578    EAPI void             elm_toolbar_item_tooltip_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15579
15580    /**
15581     * Sets a different style for this item tooltip.
15582     *
15583     * @note before you set a style you should define a tooltip with
15584     *       elm_toolbar_item_tooltip_content_cb_set() or
15585     *       elm_toolbar_item_tooltip_text_set()
15586     *
15587     * @param item toolbar item with tooltip already set.
15588     * @param style the theme style to use (default, transparent, ...)
15589     *
15590     * @see elm_object_tooltip_style_set() for more details.
15591     *
15592     * @ingroup Toolbar
15593     */
15594    EAPI void             elm_toolbar_item_tooltip_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
15595
15596    /**
15597     * Get the style for this item tooltip.
15598     *
15599     * @param item toolbar item with tooltip already set.
15600     * @return style the theme style in use, defaults to "default". If the
15601     *         object does not have a tooltip set, then NULL is returned.
15602     *
15603     * @see elm_object_tooltip_style_get() for more details.
15604     * @see elm_toolbar_item_tooltip_style_set()
15605     *
15606     * @ingroup Toolbar
15607     */
15608    EAPI const char      *elm_toolbar_item_tooltip_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15609
15610    /**
15611     * Set the type of mouse pointer/cursor decoration to be shown,
15612     * when the mouse pointer is over the given toolbar widget item
15613     *
15614     * @param item toolbar item to customize cursor on
15615     * @param cursor the cursor type's name
15616     *
15617     * This function works analogously as elm_object_cursor_set(), but
15618     * here the cursor's changing area is restricted to the item's
15619     * area, and not the whole widget's. Note that that item cursors
15620     * have precedence over widget cursors, so that a mouse over an
15621     * item with custom cursor set will always show @b that cursor.
15622     *
15623     * If this function is called twice for an object, a previously set
15624     * cursor will be unset on the second call.
15625     *
15626     * @see elm_object_cursor_set()
15627     * @see elm_toolbar_item_cursor_get()
15628     * @see elm_toolbar_item_cursor_unset()
15629     *
15630     * @ingroup Toolbar
15631     */
15632    EAPI void             elm_toolbar_item_cursor_set(Elm_Toolbar_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
15633
15634    /*
15635     * Get the type of mouse pointer/cursor decoration set to be shown,
15636     * when the mouse pointer is over the given toolbar widget item
15637     *
15638     * @param item toolbar item with custom cursor set
15639     * @return the cursor type's name or @c NULL, if no custom cursors
15640     * were set to @p item (and on errors)
15641     *
15642     * @see elm_object_cursor_get()
15643     * @see elm_toolbar_item_cursor_set()
15644     * @see elm_toolbar_item_cursor_unset()
15645     *
15646     * @ingroup Toolbar
15647     */
15648    EAPI const char      *elm_toolbar_item_cursor_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15649
15650    /**
15651     * Unset any custom mouse pointer/cursor decoration set to be
15652     * shown, when the mouse pointer is over the given toolbar widget
15653     * item, thus making it show the @b default cursor again.
15654     *
15655     * @param item a toolbar item
15656     *
15657     * Use this call to undo any custom settings on this item's cursor
15658     * decoration, bringing it back to defaults (no custom style set).
15659     *
15660     * @see elm_object_cursor_unset()
15661     * @see elm_toolbar_item_cursor_set()
15662     *
15663     * @ingroup Toolbar
15664     */
15665    EAPI void             elm_toolbar_item_cursor_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15666
15667    /**
15668     * Set a different @b style for a given custom cursor set for a
15669     * toolbar item.
15670     *
15671     * @param item toolbar item with custom cursor set
15672     * @param style the <b>theme style</b> to use (e.g. @c "default",
15673     * @c "transparent", etc)
15674     *
15675     * This function only makes sense when one is using custom mouse
15676     * cursor decorations <b>defined in a theme file</b>, which can have,
15677     * given a cursor name/type, <b>alternate styles</b> on it. It
15678     * works analogously as elm_object_cursor_style_set(), but here
15679     * applyed only to toolbar item objects.
15680     *
15681     * @warning Before you set a cursor style you should have definen a
15682     *       custom cursor previously on the item, with
15683     *       elm_toolbar_item_cursor_set()
15684     *
15685     * @see elm_toolbar_item_cursor_engine_only_set()
15686     * @see elm_toolbar_item_cursor_style_get()
15687     *
15688     * @ingroup Toolbar
15689     */
15690    EAPI void             elm_toolbar_item_cursor_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
15691
15692    /**
15693     * Get the current @b style set for a given toolbar item's custom
15694     * cursor
15695     *
15696     * @param item toolbar item with custom cursor set.
15697     * @return style the cursor style in use. If the object does not
15698     *         have a cursor set, then @c NULL is returned.
15699     *
15700     * @see elm_toolbar_item_cursor_style_set() for more details
15701     *
15702     * @ingroup Toolbar
15703     */
15704    EAPI const char      *elm_toolbar_item_cursor_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15705
15706    /**
15707     * Set if the (custom)cursor for a given toolbar item should be
15708     * searched in its theme, also, or should only rely on the
15709     * rendering engine.
15710     *
15711     * @param item item with custom (custom) cursor already set on
15712     * @param engine_only Use @c EINA_TRUE to have cursors looked for
15713     * only on those provided by the rendering engine, @c EINA_FALSE to
15714     * have them searched on the widget's theme, as well.
15715     *
15716     * @note This call is of use only if you've set a custom cursor
15717     * for toolbar items, with elm_toolbar_item_cursor_set().
15718     *
15719     * @note By default, cursors will only be looked for between those
15720     * provided by the rendering engine.
15721     *
15722     * @ingroup Toolbar
15723     */
15724    EAPI void             elm_toolbar_item_cursor_engine_only_set(Elm_Toolbar_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
15725
15726    /**
15727     * Get if the (custom) cursor for a given toolbar item is being
15728     * searched in its theme, also, or is only relying on the rendering
15729     * engine.
15730     *
15731     * @param item a toolbar item
15732     * @return @c EINA_TRUE, if cursors are being looked for only on
15733     * those provided by the rendering engine, @c EINA_FALSE if they
15734     * are being searched on the widget's theme, as well.
15735     *
15736     * @see elm_toolbar_item_cursor_engine_only_set(), for more details
15737     *
15738     * @ingroup Toolbar
15739     */
15740    EAPI Eina_Bool        elm_toolbar_item_cursor_engine_only_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15741
15742    /**
15743     * Change a toolbar's orientation
15744     * @param obj The toolbar object
15745     * @param vertical If @c EINA_TRUE, the toolbar is vertical
15746     * By default, a toolbar will be horizontal. Use this function to create a vertical toolbar.
15747     * @ingroup Toolbar
15748     * @deprecated use elm_toolbar_horizontal_set() instead.
15749     */
15750    EINA_DEPRECATED EAPI void             elm_toolbar_orientation_set(Evas_Object *obj, Eina_Bool vertical) EINA_ARG_NONNULL(1);
15751
15752    /**
15753     * Change a toolbar's orientation
15754     * @param obj The toolbar object
15755     * @param horizontal If @c EINA_TRUE, the toolbar is horizontal
15756     * By default, a toolbar will be horizontal. Use this function to create a vertical toolbar.
15757     * @ingroup Toolbar
15758     */
15759    EAPI void             elm_toolbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
15760
15761    /**
15762     * Get a toolbar's orientation
15763     * @param obj The toolbar object
15764     * @return If @c EINA_TRUE, the toolbar is vertical
15765     * By default, a toolbar will be horizontal. Use this function to determine whether a toolbar is vertical.
15766     * @ingroup Toolbar
15767     * @deprecated use elm_toolbar_horizontal_get() instead.
15768     */
15769    EINA_DEPRECATED EAPI Eina_Bool        elm_toolbar_orientation_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15770
15771    /**
15772     * Get a toolbar's orientation
15773     * @param obj The toolbar object
15774     * @return If @c EINA_TRUE, the toolbar is horizontal
15775     * By default, a toolbar will be horizontal. Use this function to determine whether a toolbar is vertical.
15776     * @ingroup Toolbar
15777     */
15778    EAPI Eina_Bool elm_toolbar_horizontal_get(const Evas_Object *obj);
15779    /**
15780     * @}
15781     */
15782
15783    /**
15784     * @defgroup Tooltips Tooltips
15785     *
15786     * The Tooltip is an (internal, for now) smart object used to show a
15787     * content in a frame on mouse hover of objects(or widgets), with
15788     * tips/information about them.
15789     *
15790     * @{
15791     */
15792
15793    EAPI double       elm_tooltip_delay_get(void);
15794    EAPI Eina_Bool    elm_tooltip_delay_set(double delay);
15795    EAPI void         elm_object_tooltip_show(Evas_Object *obj) EINA_ARG_NONNULL(1);
15796    EAPI void         elm_object_tooltip_hide(Evas_Object *obj) EINA_ARG_NONNULL(1);
15797    EAPI void         elm_object_tooltip_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1, 2);
15798    EAPI void         elm_object_tooltip_domain_translatable_text_set(Evas_Object *obj, const char *domain, const char *text) EINA_ARG_NONNULL(1, 3);
15799 #define elm_object_tooltip_translatable_text_set(obj, text) elm_object_tooltip_domain_translatable_text_set((obj), NULL, (text))
15800    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);
15801    EAPI void         elm_object_tooltip_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
15802    EAPI void         elm_object_tooltip_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
15803    EAPI const char  *elm_object_tooltip_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15804    EAPI Eina_Bool    elm_tooltip_size_restrict_disable(Evas_Object *obj, Eina_Bool disable) EINA_ARG_NONNULL(1);
15805    EAPI Eina_Bool    elm_tooltip_size_restrict_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15806
15807    /**
15808     * @}
15809     */
15810
15811    /**
15812     * @defgroup Cursors Cursors
15813     *
15814     * The Elementary cursor is an internal smart object used to
15815     * customize the mouse cursor displayed over objects (or
15816     * widgets). In the most common scenario, the cursor decoration
15817     * comes from the graphical @b engine Elementary is running
15818     * on. Those engines may provide different decorations for cursors,
15819     * and Elementary provides functions to choose them (think of X11
15820     * cursors, as an example).
15821     *
15822     * There's also the possibility of, besides using engine provided
15823     * cursors, also use ones coming from Edje theming files. Both
15824     * globally and per widget, Elementary makes it possible for one to
15825     * make the cursors lookup to be held on engines only or on
15826     * Elementary's theme file, too. To set cursor's hot spot,
15827     * two data items should be added to cursor's theme: "hot_x" and
15828     * "hot_y", that are the offset from upper-left corner of the cursor
15829     * (coordinates 0,0).
15830     *
15831     * @{
15832     */
15833
15834    /**
15835     * Set the cursor to be shown when mouse is over the object
15836     *
15837     * Set the cursor that will be displayed when mouse is over the
15838     * object. The object can have only one cursor set to it, so if
15839     * this function is called twice for an object, the previous set
15840     * will be unset.
15841     * If using X cursors, a definition of all the valid cursor names
15842     * is listed on Elementary_Cursors.h. If an invalid name is set
15843     * the default cursor will be used.
15844     *
15845     * @param obj the object being set a cursor.
15846     * @param cursor the cursor name to be used.
15847     *
15848     * @ingroup Cursors
15849     */
15850    EAPI void         elm_object_cursor_set(Evas_Object *obj, const char *cursor) EINA_ARG_NONNULL(1);
15851
15852    /**
15853     * Get the cursor to be shown when mouse is over the object
15854     *
15855     * @param obj an object with cursor already set.
15856     * @return the cursor name.
15857     *
15858     * @ingroup Cursors
15859     */
15860    EAPI const char  *elm_object_cursor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15861
15862    /**
15863     * Unset cursor for object
15864     *
15865     * Unset cursor for object, and set the cursor to default if the mouse
15866     * was over this object.
15867     *
15868     * @param obj Target object
15869     * @see elm_object_cursor_set()
15870     *
15871     * @ingroup Cursors
15872     */
15873    EAPI void         elm_object_cursor_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
15874
15875    /**
15876     * Sets a different style for this object cursor.
15877     *
15878     * @note before you set a style you should define a cursor with
15879     *       elm_object_cursor_set()
15880     *
15881     * @param obj an object with cursor already set.
15882     * @param style the theme style to use (default, transparent, ...)
15883     *
15884     * @ingroup Cursors
15885     */
15886    EAPI void         elm_object_cursor_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
15887
15888    /**
15889     * Get the style for this object cursor.
15890     *
15891     * @param obj an object with cursor already set.
15892     * @return style the theme style in use, defaults to "default". If the
15893     *         object does not have a cursor set, then NULL is returned.
15894     *
15895     * @ingroup Cursors
15896     */
15897    EAPI const char  *elm_object_cursor_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15898
15899    /**
15900     * Set if the cursor set should be searched on the theme or should use
15901     * the provided by the engine, only.
15902     *
15903     * @note before you set if should look on theme you should define a cursor
15904     * with elm_object_cursor_set(). By default it will only look for cursors
15905     * provided by the engine.
15906     *
15907     * @param obj an object with cursor already set.
15908     * @param engine_only boolean to define it cursors should be looked only
15909     * between the provided by the engine or searched on widget's theme as well.
15910     *
15911     * @ingroup Cursors
15912     */
15913    EAPI void         elm_object_cursor_engine_only_set(Evas_Object *obj, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
15914
15915    /**
15916     * Get the cursor engine only usage for this object cursor.
15917     *
15918     * @param obj an object with cursor already set.
15919     * @return engine_only boolean to define it cursors should be
15920     * looked only between the provided by the engine or searched on
15921     * widget's theme as well. If the object does not have a cursor
15922     * set, then EINA_FALSE is returned.
15923     *
15924     * @ingroup Cursors
15925     */
15926    EAPI Eina_Bool    elm_object_cursor_engine_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15927
15928    /**
15929     * Get the configured cursor engine only usage
15930     *
15931     * This gets the globally configured exclusive usage of engine cursors.
15932     *
15933     * @return 1 if only engine cursors should be used
15934     * @ingroup Cursors
15935     */
15936    EAPI int          elm_cursor_engine_only_get(void);
15937
15938    /**
15939     * Set the configured cursor engine only usage
15940     *
15941     * This sets the globally configured exclusive usage of engine cursors.
15942     * It won't affect cursors set before changing this value.
15943     *
15944     * @param engine_only If 1 only engine cursors will be enabled, if 0 will
15945     * look for them on theme before.
15946     * @return EINA_TRUE if value is valid and setted (0 or 1)
15947     * @ingroup Cursors
15948     */
15949    EAPI Eina_Bool    elm_cursor_engine_only_set(int engine_only);
15950
15951    /**
15952     * @}
15953     */
15954
15955    /**
15956     * @defgroup Menu Menu
15957     *
15958     * @image html img/widget/menu/preview-00.png
15959     * @image latex img/widget/menu/preview-00.eps
15960     *
15961     * A menu is a list of items displayed above its parent. When the menu is
15962     * showing its parent is darkened. Each item can have a sub-menu. The menu
15963     * object can be used to display a menu on a right click event, in a toolbar,
15964     * anywhere.
15965     *
15966     * Signals that you can add callbacks for are:
15967     * @li "clicked" - the user clicked the empty space in the menu to dismiss.
15968     *             event_info is NULL.
15969     *
15970     * @see @ref tutorial_menu
15971     * @{
15972     */
15973    typedef struct _Elm_Menu_Item Elm_Menu_Item; /**< Item of Elm_Menu. Sub-type of Elm_Widget_Item */
15974    /**
15975     * @brief Add a new menu to the parent
15976     *
15977     * @param parent The parent object.
15978     * @return The new object or NULL if it cannot be created.
15979     */
15980    EAPI Evas_Object       *elm_menu_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
15981    /**
15982     * @brief Set the parent for the given menu widget
15983     *
15984     * @param obj The menu object.
15985     * @param parent The new parent.
15986     */
15987    EAPI void               elm_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
15988    /**
15989     * @brief Get the parent for the given menu widget
15990     *
15991     * @param obj The menu object.
15992     * @return The parent.
15993     *
15994     * @see elm_menu_parent_set()
15995     */
15996    EAPI Evas_Object       *elm_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15997    /**
15998     * @brief Move the menu to a new position
15999     *
16000     * @param obj The menu object.
16001     * @param x The new position.
16002     * @param y The new position.
16003     *
16004     * Sets the top-left position of the menu to (@p x,@p y).
16005     *
16006     * @note @p x and @p y coordinates are relative to parent.
16007     */
16008    EAPI void               elm_menu_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
16009    /**
16010     * @brief Close a opened menu
16011     *
16012     * @param obj the menu object
16013     * @return void
16014     *
16015     * Hides the menu and all it's sub-menus.
16016     */
16017    EAPI void               elm_menu_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
16018    /**
16019     * @brief Returns a list of @p item's items.
16020     *
16021     * @param obj The menu object
16022     * @return An Eina_List* of @p item's items
16023     */
16024    EAPI const Eina_List   *elm_menu_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16025    /**
16026     * @brief Get the Evas_Object of an Elm_Menu_Item
16027     *
16028     * @param item The menu item object.
16029     * @return The edje object containing the swallowed content
16030     *
16031     * @warning Don't manipulate this object!
16032     */
16033    EAPI Evas_Object       *elm_menu_item_object_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
16034    /**
16035     * @brief Add an item at the end of the given menu widget
16036     *
16037     * @param obj The menu object.
16038     * @param parent The parent menu item (optional)
16039     * @param icon A icon display on the item. The icon will be destryed by the menu.
16040     * @param label The label of the item.
16041     * @param func Function called when the user select the item.
16042     * @param data Data sent by the callback.
16043     * @return Returns the new item.
16044     */
16045    EAPI Elm_Menu_Item     *elm_menu_item_add(Evas_Object *obj, Elm_Menu_Item *parent, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
16046    /**
16047     * @brief Add an object swallowed in an item at the end of the given menu
16048     * widget
16049     *
16050     * @param obj The menu object.
16051     * @param parent The parent menu item (optional)
16052     * @param subobj The object to swallow
16053     * @param func Function called when the user select the item.
16054     * @param data Data sent by the callback.
16055     * @return Returns the new item.
16056     *
16057     * Add an evas object as an item to the menu.
16058     */
16059    EAPI Elm_Menu_Item     *elm_menu_item_add_object(Evas_Object *obj, Elm_Menu_Item *parent, Evas_Object *subobj, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
16060    /**
16061     * @brief Set the label of a menu item
16062     *
16063     * @param item The menu item object.
16064     * @param label The label to set for @p item
16065     *
16066     * @warning Don't use this funcion on items created with
16067     * elm_menu_item_add_object() or elm_menu_item_separator_add().
16068     */
16069    EAPI void               elm_menu_item_label_set(Elm_Menu_Item *item, const char *label) EINA_ARG_NONNULL(1);
16070    /**
16071     * @brief Get the label of a menu item
16072     *
16073     * @param item The menu item object.
16074     * @return The label of @p item
16075     */
16076    EAPI const char        *elm_menu_item_label_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16077    /**
16078     * @brief Set the icon of a menu item to the standard icon with name @p icon
16079     *
16080     * @param item The menu item object.
16081     * @param icon The icon object to set for the content of @p item
16082     *
16083     * Once this icon is set, any previously set icon will be deleted.
16084     */
16085    EAPI void               elm_menu_item_object_icon_name_set(Elm_Menu_Item *item, const char *icon) EINA_ARG_NONNULL(1, 2);
16086    /**
16087     * @brief Get the string representation from the icon of a menu item
16088     *
16089     * @param item The menu item object.
16090     * @return The string representation of @p item's icon or NULL
16091     *
16092     * @see elm_menu_item_object_icon_name_set()
16093     */
16094    EAPI const char        *elm_menu_item_object_icon_name_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16095    /**
16096     * @brief Set the content object of a menu item
16097     *
16098     * @param item The menu item object
16099     * @param The content object or NULL
16100     * @return EINA_TRUE on success, else EINA_FALSE
16101     *
16102     * Use this function to change the object swallowed by a menu item, deleting
16103     * any previously swallowed object.
16104     */
16105    EAPI Eina_Bool          elm_menu_item_object_content_set(Elm_Menu_Item *item, Evas_Object *obj) EINA_ARG_NONNULL(1);
16106    /**
16107     * @brief Get the content object of a menu item
16108     *
16109     * @param item The menu item object
16110     * @return The content object or NULL
16111     * @note If @p item was added with elm_menu_item_add_object, this
16112     * function will return the object passed, else it will return the
16113     * icon object.
16114     *
16115     * @see elm_menu_item_object_content_set()
16116     */
16117    EAPI Evas_Object *elm_menu_item_object_content_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16118    /**
16119     * @brief Set the selected state of @p item.
16120     *
16121     * @param item The menu item object.
16122     * @param selected The selected/unselected state of the item
16123     */
16124    EAPI void               elm_menu_item_selected_set(Elm_Menu_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
16125    /**
16126     * @brief Get the selected state of @p item.
16127     *
16128     * @param item The menu item object.
16129     * @return The selected/unselected state of the item
16130     *
16131     * @see elm_menu_item_selected_set()
16132     */
16133    EAPI Eina_Bool          elm_menu_item_selected_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16134    /**
16135     * @brief Set the disabled state of @p item.
16136     *
16137     * @param item The menu item object.
16138     * @param disabled The enabled/disabled state of the item
16139     */
16140    EAPI void               elm_menu_item_disabled_set(Elm_Menu_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
16141    /**
16142     * @brief Get the disabled state of @p item.
16143     *
16144     * @param item The menu item object.
16145     * @return The enabled/disabled state of the item
16146     *
16147     * @see elm_menu_item_disabled_set()
16148     */
16149    EAPI Eina_Bool          elm_menu_item_disabled_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16150    /**
16151     * @brief Add a separator item to menu @p obj under @p parent.
16152     *
16153     * @param obj The menu object
16154     * @param parent The item to add the separator under
16155     * @return The created item or NULL on failure
16156     *
16157     * This is item is a @ref Separator.
16158     */
16159    EAPI Elm_Menu_Item     *elm_menu_item_separator_add(Evas_Object *obj, Elm_Menu_Item *parent) EINA_ARG_NONNULL(1);
16160    /**
16161     * @brief Returns whether @p item is a separator.
16162     *
16163     * @param item The item to check
16164     * @return If true, @p item is a separator
16165     *
16166     * @see elm_menu_item_separator_add()
16167     */
16168    EAPI Eina_Bool          elm_menu_item_is_separator(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16169    /**
16170     * @brief Deletes an item from the menu.
16171     *
16172     * @param item The item to delete.
16173     *
16174     * @see elm_menu_item_add()
16175     */
16176    EAPI void               elm_menu_item_del(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16177    /**
16178     * @brief Set the function called when a menu item is deleted.
16179     *
16180     * @param item The item to set the callback on
16181     * @param func The function called
16182     *
16183     * @see elm_menu_item_add()
16184     * @see elm_menu_item_del()
16185     */
16186    EAPI void               elm_menu_item_del_cb_set(Elm_Menu_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
16187    /**
16188     * @brief Returns the data associated with menu item @p item.
16189     *
16190     * @param item The item
16191     * @return The data associated with @p item or NULL if none was set.
16192     *
16193     * This is the data set with elm_menu_add() or elm_menu_item_data_set().
16194     */
16195    EAPI void              *elm_menu_item_data_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
16196    /**
16197     * @brief Sets the data to be associated with menu item @p item.
16198     *
16199     * @param item The item
16200     * @param data The data to be associated with @p item
16201     */
16202    EAPI void               elm_menu_item_data_set(Elm_Menu_Item *item, const void *data) EINA_ARG_NONNULL(1);
16203    /**
16204     * @brief Returns a list of @p item's subitems.
16205     *
16206     * @param item The item
16207     * @return An Eina_List* of @p item's subitems
16208     *
16209     * @see elm_menu_add()
16210     */
16211    EAPI const Eina_List   *elm_menu_item_subitems_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16212    /**
16213     * @brief Get the position of a menu item
16214     *
16215     * @param item The menu item
16216     * @return The item's index
16217     *
16218     * This function returns the index position of a menu item in a menu.
16219     * For a sub-menu, this number is relative to the first item in the sub-menu.
16220     *
16221     * @note Index values begin with 0
16222     */
16223    EAPI unsigned int       elm_menu_item_index_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_PURE;
16224    /**
16225     * @brief @brief Return a menu item's owner menu
16226     *
16227     * @param item The menu item
16228     * @return The menu object owning @p item, or NULL on failure
16229     *
16230     * Use this function to get the menu object owning an item.
16231     */
16232    EAPI Evas_Object       *elm_menu_item_menu_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_PURE;
16233    /**
16234     * @brief Get the selected item in the menu
16235     *
16236     * @param obj The menu object
16237     * @return The selected item, or NULL if none
16238     *
16239     * @see elm_menu_item_selected_get()
16240     * @see elm_menu_item_selected_set()
16241     */
16242    EAPI Elm_Menu_Item *elm_menu_selected_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
16243    /**
16244     * @brief Get the last item in the menu
16245     *
16246     * @param obj The menu object
16247     * @return The last item, or NULL if none
16248     */
16249    EAPI Elm_Menu_Item *elm_menu_last_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
16250    /**
16251     * @brief Get the first item in the menu
16252     *
16253     * @param obj The menu object
16254     * @return The first item, or NULL if none
16255     */
16256    EAPI Elm_Menu_Item *elm_menu_first_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
16257    /**
16258     * @brief Get the next item in the menu.
16259     *
16260     * @param item The menu item object.
16261     * @return The item after it, or NULL if none
16262     */
16263    EAPI Elm_Menu_Item *elm_menu_item_next_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
16264    /**
16265     * @brief Get the previous item in the menu.
16266     *
16267     * @param item The menu item object.
16268     * @return The item before it, or NULL if none
16269     */
16270    EAPI Elm_Menu_Item *elm_menu_item_prev_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
16271    /**
16272     * @}
16273     */
16274
16275    /**
16276     * @defgroup List List
16277     * @ingroup Elementary
16278     *
16279     * @image html img/widget/list/preview-00.png
16280     * @image latex img/widget/list/preview-00.eps width=\textwidth
16281     *
16282     * @image html img/list.png
16283     * @image latex img/list.eps width=\textwidth
16284     *
16285     * A list widget is a container whose children are displayed vertically or
16286     * horizontally, in order, and can be selected.
16287     * The list can accept only one or multiple items selection. Also has many
16288     * modes of items displaying.
16289     *
16290     * A list is a very simple type of list widget.  For more robust
16291     * lists, @ref Genlist should probably be used.
16292     *
16293     * Smart callbacks one can listen to:
16294     * - @c "activated" - The user has double-clicked or pressed
16295     *   (enter|return|spacebar) on an item. The @c event_info parameter
16296     *   is the item that was activated.
16297     * - @c "clicked,double" - The user has double-clicked an item.
16298     *   The @c event_info parameter is the item that was double-clicked.
16299     * - "selected" - when the user selected an item
16300     * - "unselected" - when the user unselected an item
16301     * - "longpressed" - an item in the list is long-pressed
16302     * - "edge,top" - the list is scrolled until the top edge
16303     * - "edge,bottom" - the list is scrolled until the bottom edge
16304     * - "edge,left" - the list is scrolled until the left edge
16305     * - "edge,right" - the list is scrolled until the right edge
16306     * - "language,changed" - the program's language changed
16307     *
16308     * Available styles for it:
16309     * - @c "default"
16310     *
16311     * List of examples:
16312     * @li @ref list_example_01
16313     * @li @ref list_example_02
16314     * @li @ref list_example_03
16315     */
16316
16317    /**
16318     * @addtogroup List
16319     * @{
16320     */
16321
16322    /**
16323     * @enum _Elm_List_Mode
16324     * @typedef Elm_List_Mode
16325     *
16326     * Set list's resize behavior, transverse axis scroll and
16327     * items cropping. See each mode's description for more details.
16328     *
16329     * @note Default value is #ELM_LIST_SCROLL.
16330     *
16331     * Values <b> don't </b> work as bitmask, only one can be choosen.
16332     *
16333     * @see elm_list_mode_set()
16334     * @see elm_list_mode_get()
16335     *
16336     * @ingroup List
16337     */
16338    typedef enum _Elm_List_Mode
16339      {
16340         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. */
16341         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). */
16342         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. */
16343         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. */
16344         ELM_LIST_LAST /**< Indicates error if returned by elm_list_mode_get() */
16345      } Elm_List_Mode;
16346
16347    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().  */
16348
16349    /**
16350     * Add a new list widget to the given parent Elementary
16351     * (container) object.
16352     *
16353     * @param parent The parent object.
16354     * @return a new list widget handle or @c NULL, on errors.
16355     *
16356     * This function inserts a new list widget on the canvas.
16357     *
16358     * @ingroup List
16359     */
16360    EAPI Evas_Object     *elm_list_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16361
16362    /**
16363     * Starts the list.
16364     *
16365     * @param obj The list object
16366     *
16367     * @note Call before running show() on the list object.
16368     * @warning If not called, it won't display the list properly.
16369     *
16370     * @code
16371     * li = elm_list_add(win);
16372     * elm_list_item_append(li, "First", NULL, NULL, NULL, NULL);
16373     * elm_list_item_append(li, "Second", NULL, NULL, NULL, NULL);
16374     * elm_list_go(li);
16375     * evas_object_show(li);
16376     * @endcode
16377     *
16378     * @ingroup List
16379     */
16380    EAPI void             elm_list_go(Evas_Object *obj) EINA_ARG_NONNULL(1);
16381
16382    /**
16383     * Enable or disable multiple items selection on the list object.
16384     *
16385     * @param obj The list object
16386     * @param multi @c EINA_TRUE to enable multi selection or @c EINA_FALSE to
16387     * disable it.
16388     *
16389     * Disabled by default. If disabled, the user can select a single item of
16390     * the list each time. Selected items are highlighted on list.
16391     * If enabled, many items can be selected.
16392     *
16393     * If a selected item is selected again, it will be unselected.
16394     *
16395     * @see elm_list_multi_select_get()
16396     *
16397     * @ingroup List
16398     */
16399    EAPI void             elm_list_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
16400
16401    /**
16402     * Get a value whether multiple items selection is enabled or not.
16403     *
16404     * @see elm_list_multi_select_set() for details.
16405     *
16406     * @param obj The list object.
16407     * @return @c EINA_TRUE means multiple items selection is enabled.
16408     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
16409     * @c EINA_FALSE is returned.
16410     *
16411     * @ingroup List
16412     */
16413    EAPI Eina_Bool        elm_list_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16414
16415    /**
16416     * Set which mode to use for the list object.
16417     *
16418     * @param obj The list object
16419     * @param mode One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
16420     * #ELM_LIST_LIMIT or #ELM_LIST_EXPAND.
16421     *
16422     * Set list's resize behavior, transverse axis scroll and
16423     * items cropping. See each mode's description for more details.
16424     *
16425     * @note Default value is #ELM_LIST_SCROLL.
16426     *
16427     * Only one can be set, if a previous one was set, it will be changed
16428     * by the new mode set. Bitmask won't work as well.
16429     *
16430     * @see elm_list_mode_get()
16431     *
16432     * @ingroup List
16433     */
16434    EAPI void             elm_list_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
16435
16436    /**
16437     * Get the mode the list is at.
16438     *
16439     * @param obj The list object
16440     * @return One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
16441     * #ELM_LIST_LIMIT, #ELM_LIST_EXPAND or #ELM_LIST_LAST on errors.
16442     *
16443     * @note see elm_list_mode_set() for more information.
16444     *
16445     * @ingroup List
16446     */
16447    EAPI Elm_List_Mode    elm_list_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16448
16449    /**
16450     * Enable or disable horizontal mode on the list object.
16451     *
16452     * @param obj The list object.
16453     * @param horizontal @c EINA_TRUE to enable horizontal or @c EINA_FALSE to
16454     * disable it, i.e., to enable vertical mode.
16455     *
16456     * @note Vertical mode is set by default.
16457     *
16458     * On horizontal mode items are displayed on list from left to right,
16459     * instead of from top to bottom. Also, the list will scroll horizontally.
16460     * Each item will presents left icon on top and right icon, or end, at
16461     * the bottom.
16462     *
16463     * @see elm_list_horizontal_get()
16464     *
16465     * @ingroup List
16466     */
16467    EAPI void             elm_list_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
16468
16469    /**
16470     * Get a value whether horizontal mode is enabled or not.
16471     *
16472     * @param obj The list object.
16473     * @return @c EINA_TRUE means horizontal mode selection is enabled.
16474     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
16475     * @c EINA_FALSE is returned.
16476     *
16477     * @see elm_list_horizontal_set() for details.
16478     *
16479     * @ingroup List
16480     */
16481    EAPI Eina_Bool        elm_list_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16482
16483    /**
16484     * Enable or disable always select mode on the list object.
16485     *
16486     * @param obj The list object
16487     * @param always_select @c EINA_TRUE to enable always select mode or
16488     * @c EINA_FALSE to disable it.
16489     *
16490     * @note Always select mode is disabled by default.
16491     *
16492     * Default behavior of list items is to only call its callback function
16493     * the first time it's pressed, i.e., when it is selected. If a selected
16494     * item is pressed again, and multi-select is disabled, it won't call
16495     * this function (if multi-select is enabled it will unselect the item).
16496     *
16497     * If always select is enabled, it will call the callback function
16498     * everytime a item is pressed, so it will call when the item is selected,
16499     * and again when a selected item is pressed.
16500     *
16501     * @see elm_list_always_select_mode_get()
16502     * @see elm_list_multi_select_set()
16503     *
16504     * @ingroup List
16505     */
16506    EAPI void             elm_list_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
16507
16508    /**
16509     * Get a value whether always select mode is enabled or not, meaning that
16510     * an item will always call its callback function, even if already selected.
16511     *
16512     * @param obj The list object
16513     * @return @c EINA_TRUE means horizontal mode selection is enabled.
16514     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
16515     * @c EINA_FALSE is returned.
16516     *
16517     * @see elm_list_always_select_mode_set() for details.
16518     *
16519     * @ingroup List
16520     */
16521    EAPI Eina_Bool        elm_list_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16522
16523    /**
16524     * Set bouncing behaviour when the scrolled content reaches an edge.
16525     *
16526     * Tell the internal scroller object whether it should bounce or not
16527     * when it reaches the respective edges for each axis.
16528     *
16529     * @param obj The list object
16530     * @param h_bounce Whether to bounce or not in the horizontal axis.
16531     * @param v_bounce Whether to bounce or not in the vertical axis.
16532     *
16533     * @see elm_scroller_bounce_set()
16534     *
16535     * @ingroup List
16536     */
16537    EAPI void             elm_list_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
16538
16539    /**
16540     * Get the bouncing behaviour of the internal scroller.
16541     *
16542     * Get whether the internal scroller should bounce when the edge of each
16543     * axis is reached scrolling.
16544     *
16545     * @param obj The list object.
16546     * @param h_bounce Pointer where to store the bounce state of the horizontal
16547     * axis.
16548     * @param v_bounce Pointer where to store the bounce state of the vertical
16549     * axis.
16550     *
16551     * @see elm_scroller_bounce_get()
16552     * @see elm_list_bounce_set()
16553     *
16554     * @ingroup List
16555     */
16556    EAPI void             elm_list_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
16557
16558    /**
16559     * Set the scrollbar policy.
16560     *
16561     * @param obj The list object
16562     * @param policy_h Horizontal scrollbar policy.
16563     * @param policy_v Vertical scrollbar policy.
16564     *
16565     * This sets the scrollbar visibility policy for the given scroller.
16566     * #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it
16567     * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
16568     * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
16569     * This applies respectively for the horizontal and vertical scrollbars.
16570     *
16571     * The both are disabled by default, i.e., are set to
16572     * #ELM_SCROLLER_POLICY_OFF.
16573     *
16574     * @ingroup List
16575     */
16576    EAPI void             elm_list_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
16577
16578    /**
16579     * Get the scrollbar policy.
16580     *
16581     * @see elm_list_scroller_policy_get() for details.
16582     *
16583     * @param obj The list object.
16584     * @param policy_h Pointer where to store horizontal scrollbar policy.
16585     * @param policy_v Pointer where to store vertical scrollbar policy.
16586     *
16587     * @ingroup List
16588     */
16589    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);
16590
16591    /**
16592     * Append a new item to the list object.
16593     *
16594     * @param obj The list object.
16595     * @param label The label of the list item.
16596     * @param icon The icon object to use for the left side of the item. An
16597     * icon can be any Evas object, but usually it is an icon created
16598     * with elm_icon_add().
16599     * @param end The icon object to use for the right side of the item. An
16600     * icon can be any Evas object.
16601     * @param func The function to call when the item is clicked.
16602     * @param data The data to associate with the item for related callbacks.
16603     *
16604     * @return The created item or @c NULL upon failure.
16605     *
16606     * A new item will be created and appended to the list, i.e., will
16607     * be set as @b last item.
16608     *
16609     * Items created with this method can be deleted with
16610     * elm_list_item_del().
16611     *
16612     * Associated @p data can be properly freed when item is deleted if a
16613     * callback function is set with elm_list_item_del_cb_set().
16614     *
16615     * If a function is passed as argument, it will be called everytime this item
16616     * is selected, i.e., the user clicks over an unselected item.
16617     * If always select is enabled it will call this function every time
16618     * user clicks over an item (already selected or not).
16619     * If such function isn't needed, just passing
16620     * @c NULL as @p func is enough. The same should be done for @p data.
16621     *
16622     * Simple example (with no function callback or data associated):
16623     * @code
16624     * li = elm_list_add(win);
16625     * ic = elm_icon_add(win);
16626     * elm_icon_file_set(ic, "path/to/image", NULL);
16627     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
16628     * elm_list_item_append(li, "label", ic, NULL, NULL, NULL);
16629     * elm_list_go(li);
16630     * evas_object_show(li);
16631     * @endcode
16632     *
16633     * @see elm_list_always_select_mode_set()
16634     * @see elm_list_item_del()
16635     * @see elm_list_item_del_cb_set()
16636     * @see elm_list_clear()
16637     * @see elm_icon_add()
16638     *
16639     * @ingroup List
16640     */
16641    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);
16642
16643    /**
16644     * Prepend a new item to the list object.
16645     *
16646     * @param obj The list object.
16647     * @param label The label of the list item.
16648     * @param icon The icon object to use for the left side of the item. An
16649     * icon can be any Evas object, but usually it is an icon created
16650     * with elm_icon_add().
16651     * @param end The icon object to use for the right side of the item. An
16652     * icon can be any Evas object.
16653     * @param func The function to call when the item is clicked.
16654     * @param data The data to associate with the item for related callbacks.
16655     *
16656     * @return The created item or @c NULL upon failure.
16657     *
16658     * A new item will be created and prepended to the list, i.e., will
16659     * be set as @b first item.
16660     *
16661     * Items created with this method can be deleted with
16662     * elm_list_item_del().
16663     *
16664     * Associated @p data can be properly freed when item is deleted if a
16665     * callback function is set with elm_list_item_del_cb_set().
16666     *
16667     * If a function is passed as argument, it will be called everytime this item
16668     * is selected, i.e., the user clicks over an unselected item.
16669     * If always select is enabled it will call this function every time
16670     * user clicks over an item (already selected or not).
16671     * If such function isn't needed, just passing
16672     * @c NULL as @p func is enough. The same should be done for @p data.
16673     *
16674     * @see elm_list_item_append() for a simple code example.
16675     * @see elm_list_always_select_mode_set()
16676     * @see elm_list_item_del()
16677     * @see elm_list_item_del_cb_set()
16678     * @see elm_list_clear()
16679     * @see elm_icon_add()
16680     *
16681     * @ingroup List
16682     */
16683    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);
16684
16685    /**
16686     * Insert a new item into the list object before item @p before.
16687     *
16688     * @param obj The list object.
16689     * @param before The list item to insert before.
16690     * @param label The label of the list item.
16691     * @param icon The icon object to use for the left side of the item. An
16692     * icon can be any Evas object, but usually it is an icon created
16693     * with elm_icon_add().
16694     * @param end The icon object to use for the right side of the item. An
16695     * icon can be any Evas object.
16696     * @param func The function to call when the item is clicked.
16697     * @param data The data to associate with the item for related callbacks.
16698     *
16699     * @return The created item or @c NULL upon failure.
16700     *
16701     * A new item will be created and added to the list. Its position in
16702     * this list will be just before item @p before.
16703     *
16704     * Items created with this method can be deleted with
16705     * elm_list_item_del().
16706     *
16707     * Associated @p data can be properly freed when item is deleted if a
16708     * callback function is set with elm_list_item_del_cb_set().
16709     *
16710     * If a function is passed as argument, it will be called everytime this item
16711     * is selected, i.e., the user clicks over an unselected item.
16712     * If always select is enabled it will call this function every time
16713     * user clicks over an item (already selected or not).
16714     * If such function isn't needed, just passing
16715     * @c NULL as @p func is enough. The same should be done for @p data.
16716     *
16717     * @see elm_list_item_append() for a simple code example.
16718     * @see elm_list_always_select_mode_set()
16719     * @see elm_list_item_del()
16720     * @see elm_list_item_del_cb_set()
16721     * @see elm_list_clear()
16722     * @see elm_icon_add()
16723     *
16724     * @ingroup List
16725     */
16726    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);
16727
16728    /**
16729     * Insert a new item into the list object after item @p after.
16730     *
16731     * @param obj The list object.
16732     * @param after The list item to insert after.
16733     * @param label The label of the list item.
16734     * @param icon The icon object to use for the left side of the item. An
16735     * icon can be any Evas object, but usually it is an icon created
16736     * with elm_icon_add().
16737     * @param end The icon object to use for the right side of the item. An
16738     * icon can be any Evas object.
16739     * @param func The function to call when the item is clicked.
16740     * @param data The data to associate with the item for related callbacks.
16741     *
16742     * @return The created item or @c NULL upon failure.
16743     *
16744     * A new item will be created and added to the list. Its position in
16745     * this list will be just after item @p after.
16746     *
16747     * Items created with this method can be deleted with
16748     * elm_list_item_del().
16749     *
16750     * Associated @p data can be properly freed when item is deleted if a
16751     * callback function is set with elm_list_item_del_cb_set().
16752     *
16753     * If a function is passed as argument, it will be called everytime this item
16754     * is selected, i.e., the user clicks over an unselected item.
16755     * If always select is enabled it will call this function every time
16756     * user clicks over an item (already selected or not).
16757     * If such function isn't needed, just passing
16758     * @c NULL as @p func is enough. The same should be done for @p data.
16759     *
16760     * @see elm_list_item_append() for a simple code example.
16761     * @see elm_list_always_select_mode_set()
16762     * @see elm_list_item_del()
16763     * @see elm_list_item_del_cb_set()
16764     * @see elm_list_clear()
16765     * @see elm_icon_add()
16766     *
16767     * @ingroup List
16768     */
16769    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);
16770
16771    /**
16772     * Insert a new item into the sorted list object.
16773     *
16774     * @param obj The list object.
16775     * @param label The label of the list item.
16776     * @param icon The icon object to use for the left side of the item. An
16777     * icon can be any Evas object, but usually it is an icon created
16778     * with elm_icon_add().
16779     * @param end The icon object to use for the right side of the item. An
16780     * icon can be any Evas object.
16781     * @param func The function to call when the item is clicked.
16782     * @param data The data to associate with the item for related callbacks.
16783     * @param cmp_func The comparing function to be used to sort list
16784     * items <b>by #Elm_List_Item item handles</b>. This function will
16785     * receive two items and compare them, returning a non-negative integer
16786     * if the second item should be place after the first, or negative value
16787     * if should be placed before.
16788     *
16789     * @return The created item or @c NULL upon failure.
16790     *
16791     * @note This function inserts values into a list object assuming it was
16792     * sorted and the result will be sorted.
16793     *
16794     * A new item will be created and added to the list. Its position in
16795     * this list will be found comparing the new item with previously inserted
16796     * items using function @p cmp_func.
16797     *
16798     * Items created with this method can be deleted with
16799     * elm_list_item_del().
16800     *
16801     * Associated @p data can be properly freed when item is deleted if a
16802     * callback function is set with elm_list_item_del_cb_set().
16803     *
16804     * If a function is passed as argument, it will be called everytime this item
16805     * is selected, i.e., the user clicks over an unselected item.
16806     * If always select is enabled it will call this function every time
16807     * user clicks over an item (already selected or not).
16808     * If such function isn't needed, just passing
16809     * @c NULL as @p func is enough. The same should be done for @p data.
16810     *
16811     * @see elm_list_item_append() for a simple code example.
16812     * @see elm_list_always_select_mode_set()
16813     * @see elm_list_item_del()
16814     * @see elm_list_item_del_cb_set()
16815     * @see elm_list_clear()
16816     * @see elm_icon_add()
16817     *
16818     * @ingroup List
16819     */
16820    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);
16821
16822    /**
16823     * Remove all list's items.
16824     *
16825     * @param obj The list object
16826     *
16827     * @see elm_list_item_del()
16828     * @see elm_list_item_append()
16829     *
16830     * @ingroup List
16831     */
16832    EAPI void             elm_list_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
16833
16834    /**
16835     * Get a list of all the list items.
16836     *
16837     * @param obj The list object
16838     * @return An @c Eina_List of list items, #Elm_List_Item,
16839     * or @c NULL on failure.
16840     *
16841     * @see elm_list_item_append()
16842     * @see elm_list_item_del()
16843     * @see elm_list_clear()
16844     *
16845     * @ingroup List
16846     */
16847    EAPI const Eina_List *elm_list_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16848
16849    /**
16850     * Get the selected item.
16851     *
16852     * @param obj The list object.
16853     * @return The selected list item.
16854     *
16855     * The selected item can be unselected with function
16856     * elm_list_item_selected_set().
16857     *
16858     * The selected item always will be highlighted on list.
16859     *
16860     * @see elm_list_selected_items_get()
16861     *
16862     * @ingroup List
16863     */
16864    EAPI Elm_List_Item   *elm_list_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16865
16866    /**
16867     * Return a list of the currently selected list items.
16868     *
16869     * @param obj The list object.
16870     * @return An @c Eina_List of list items, #Elm_List_Item,
16871     * or @c NULL on failure.
16872     *
16873     * Multiple items can be selected if multi select is enabled. It can be
16874     * done with elm_list_multi_select_set().
16875     *
16876     * @see elm_list_selected_item_get()
16877     * @see elm_list_multi_select_set()
16878     *
16879     * @ingroup List
16880     */
16881    EAPI const Eina_List *elm_list_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16882
16883    /**
16884     * Set the selected state of an item.
16885     *
16886     * @param item The list item
16887     * @param selected The selected state
16888     *
16889     * This sets the selected state of the given item @p it.
16890     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
16891     *
16892     * If a new item is selected the previosly selected will be unselected,
16893     * unless multiple selection is enabled with elm_list_multi_select_set().
16894     * Previoulsy selected item can be get with function
16895     * elm_list_selected_item_get().
16896     *
16897     * Selected items will be highlighted.
16898     *
16899     * @see elm_list_item_selected_get()
16900     * @see elm_list_selected_item_get()
16901     * @see elm_list_multi_select_set()
16902     *
16903     * @ingroup List
16904     */
16905    EAPI void             elm_list_item_selected_set(Elm_List_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
16906
16907    /*
16908     * Get whether the @p item is selected or not.
16909     *
16910     * @param item The list item.
16911     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
16912     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
16913     *
16914     * @see elm_list_selected_item_set() for details.
16915     * @see elm_list_item_selected_get()
16916     *
16917     * @ingroup List
16918     */
16919    EAPI Eina_Bool        elm_list_item_selected_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
16920
16921    /**
16922     * Set or unset item as a separator.
16923     *
16924     * @param it The list item.
16925     * @param setting @c EINA_TRUE to set item @p it as separator or
16926     * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
16927     *
16928     * Items aren't set as separator by default.
16929     *
16930     * If set as separator it will display separator theme, so won't display
16931     * icons or label.
16932     *
16933     * @see elm_list_item_separator_get()
16934     *
16935     * @ingroup List
16936     */
16937    EAPI void             elm_list_item_separator_set(Elm_List_Item *it, Eina_Bool setting) EINA_ARG_NONNULL(1);
16938
16939    /**
16940     * Get a value whether item is a separator or not.
16941     *
16942     * @see elm_list_item_separator_set() for details.
16943     *
16944     * @param it The list item.
16945     * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
16946     * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
16947     *
16948     * @ingroup List
16949     */
16950    EAPI Eina_Bool        elm_list_item_separator_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
16951
16952    /**
16953     * Show @p item in the list view.
16954     *
16955     * @param item The list item to be shown.
16956     *
16957     * It won't animate list until item is visible. If such behavior is wanted,
16958     * use elm_list_bring_in() intead.
16959     *
16960     * @ingroup List
16961     */
16962    EAPI void             elm_list_item_show(Elm_List_Item *item) EINA_ARG_NONNULL(1);
16963
16964    /**
16965     * Bring in the given item to list view.
16966     *
16967     * @param item The item.
16968     *
16969     * This causes list to jump to the given item @p item and show it
16970     * (by scrolling), if it is not fully visible.
16971     *
16972     * This may use animation to do so and take a period of time.
16973     *
16974     * If animation isn't wanted, elm_list_item_show() can be used.
16975     *
16976     * @ingroup List
16977     */
16978    EAPI void             elm_list_item_bring_in(Elm_List_Item *item) EINA_ARG_NONNULL(1);
16979
16980    /**
16981     * Delete them item from the list.
16982     *
16983     * @param item The item of list to be deleted.
16984     *
16985     * If deleting all list items is required, elm_list_clear()
16986     * should be used instead of getting items list and deleting each one.
16987     *
16988     * @see elm_list_clear()
16989     * @see elm_list_item_append()
16990     * @see elm_list_item_del_cb_set()
16991     *
16992     * @ingroup List
16993     */
16994    EAPI void             elm_list_item_del(Elm_List_Item *item) EINA_ARG_NONNULL(1);
16995
16996    /**
16997     * Set the function called when a list item is freed.
16998     *
16999     * @param item The item to set the callback on
17000     * @param func The function called
17001     *
17002     * If there is a @p func, then it will be called prior item's memory release.
17003     * That will be called with the following arguments:
17004     * @li item's data;
17005     * @li item's Evas object;
17006     * @li item itself;
17007     *
17008     * This way, a data associated to a list item could be properly freed.
17009     *
17010     * @ingroup List
17011     */
17012    EAPI void             elm_list_item_del_cb_set(Elm_List_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
17013
17014    /**
17015     * Get the data associated to the item.
17016     *
17017     * @param item The list item
17018     * @return The data associated to @p item
17019     *
17020     * The return value is a pointer to data associated to @p item when it was
17021     * created, with function elm_list_item_append() or similar. If no data
17022     * was passed as argument, it will return @c NULL.
17023     *
17024     * @see elm_list_item_append()
17025     *
17026     * @ingroup List
17027     */
17028    EAPI void            *elm_list_item_data_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17029
17030    /**
17031     * Get the left side icon associated to the item.
17032     *
17033     * @param item The list item
17034     * @return The left side icon associated to @p item
17035     *
17036     * The return value is a pointer to the icon associated to @p item when
17037     * it was
17038     * created, with function elm_list_item_append() or similar, or later
17039     * with function elm_list_item_icon_set(). If no icon
17040     * was passed as argument, it will return @c NULL.
17041     *
17042     * @see elm_list_item_append()
17043     * @see elm_list_item_icon_set()
17044     *
17045     * @ingroup List
17046     */
17047    EAPI Evas_Object     *elm_list_item_icon_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17048
17049    /**
17050     * Set the left side icon associated to the item.
17051     *
17052     * @param item The list item
17053     * @param icon The left side icon object to associate with @p item
17054     *
17055     * The icon object to use at left side of the item. An
17056     * icon can be any Evas object, but usually it is an icon created
17057     * with elm_icon_add().
17058     *
17059     * Once the icon object is set, a previously set one will be deleted.
17060     * @warning Setting the same icon for two items will cause the icon to
17061     * dissapear from the first item.
17062     *
17063     * If an icon was passed as argument on item creation, with function
17064     * elm_list_item_append() or similar, it will be already
17065     * associated to the item.
17066     *
17067     * @see elm_list_item_append()
17068     * @see elm_list_item_icon_get()
17069     *
17070     * @ingroup List
17071     */
17072    EAPI void             elm_list_item_icon_set(Elm_List_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
17073
17074    /**
17075     * Get the right side icon associated to the item.
17076     *
17077     * @param item The list item
17078     * @return The right side icon associated to @p item
17079     *
17080     * The return value is a pointer to the icon associated to @p item when
17081     * it was
17082     * created, with function elm_list_item_append() or similar, or later
17083     * with function elm_list_item_icon_set(). If no icon
17084     * was passed as argument, it will return @c NULL.
17085     *
17086     * @see elm_list_item_append()
17087     * @see elm_list_item_icon_set()
17088     *
17089     * @ingroup List
17090     */
17091    EAPI Evas_Object     *elm_list_item_end_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17092
17093    /**
17094     * Set the right side icon associated to the item.
17095     *
17096     * @param item The list item
17097     * @param end The right side icon object to associate with @p item
17098     *
17099     * The icon object to use at right side of the item. An
17100     * icon can be any Evas object, but usually it is an icon created
17101     * with elm_icon_add().
17102     *
17103     * Once the icon object is set, a previously set one will be deleted.
17104     * @warning Setting the same icon for two items will cause the icon to
17105     * dissapear from the first item.
17106     *
17107     * If an icon was passed as argument on item creation, with function
17108     * elm_list_item_append() or similar, it will be already
17109     * associated to the item.
17110     *
17111     * @see elm_list_item_append()
17112     * @see elm_list_item_end_get()
17113     *
17114     * @ingroup List
17115     */
17116    EAPI void             elm_list_item_end_set(Elm_List_Item *item, Evas_Object *end) EINA_ARG_NONNULL(1);
17117
17118    /**
17119     * Gets the base object of the item.
17120     *
17121     * @param item The list item
17122     * @return The base object associated with @p item
17123     *
17124     * Base object is the @c Evas_Object that represents that item.
17125     *
17126     * @ingroup List
17127     */
17128    EAPI Evas_Object     *elm_list_item_object_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17129    EINA_DEPRECATED EAPI Evas_Object     *elm_list_item_base_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17130
17131    /**
17132     * Get the label of item.
17133     *
17134     * @param item The item of list.
17135     * @return The label of item.
17136     *
17137     * The return value is a pointer to the label associated to @p item when
17138     * it was created, with function elm_list_item_append(), or later
17139     * with function elm_list_item_label_set. If no label
17140     * was passed as argument, it will return @c NULL.
17141     *
17142     * @see elm_list_item_label_set() for more details.
17143     * @see elm_list_item_append()
17144     *
17145     * @ingroup List
17146     */
17147    EAPI const char      *elm_list_item_label_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17148
17149    /**
17150     * Set the label of item.
17151     *
17152     * @param item The item of list.
17153     * @param text The label of item.
17154     *
17155     * The label to be displayed by the item.
17156     * Label will be placed between left and right side icons (if set).
17157     *
17158     * If a label was passed as argument on item creation, with function
17159     * elm_list_item_append() or similar, it will be already
17160     * displayed by the item.
17161     *
17162     * @see elm_list_item_label_get()
17163     * @see elm_list_item_append()
17164     *
17165     * @ingroup List
17166     */
17167    EAPI void             elm_list_item_label_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
17168
17169
17170    /**
17171     * Get the item before @p it in list.
17172     *
17173     * @param it The list item.
17174     * @return The item before @p it, or @c NULL if none or on failure.
17175     *
17176     * @note If it is the first item, @c NULL will be returned.
17177     *
17178     * @see elm_list_item_append()
17179     * @see elm_list_items_get()
17180     *
17181     * @ingroup List
17182     */
17183    EAPI Elm_List_Item   *elm_list_item_prev(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
17184
17185    /**
17186     * Get the item after @p it in list.
17187     *
17188     * @param it The list item.
17189     * @return The item after @p it, or @c NULL if none or on failure.
17190     *
17191     * @note If it is the last item, @c NULL will be returned.
17192     *
17193     * @see elm_list_item_append()
17194     * @see elm_list_items_get()
17195     *
17196     * @ingroup List
17197     */
17198    EAPI Elm_List_Item   *elm_list_item_next(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
17199
17200    /**
17201     * Sets the disabled/enabled state of a list item.
17202     *
17203     * @param it The item.
17204     * @param disabled The disabled state.
17205     *
17206     * A disabled item cannot be selected or unselected. It will also
17207     * change its appearance (generally greyed out). This sets the
17208     * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
17209     * enabled).
17210     *
17211     * @ingroup List
17212     */
17213    EAPI void             elm_list_item_disabled_set(Elm_List_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
17214
17215    /**
17216     * Get a value whether list item is disabled or not.
17217     *
17218     * @param it The item.
17219     * @return The disabled state.
17220     *
17221     * @see elm_list_item_disabled_set() for more details.
17222     *
17223     * @ingroup List
17224     */
17225    EAPI Eina_Bool        elm_list_item_disabled_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
17226
17227    /**
17228     * Set the text to be shown in a given list item's tooltips.
17229     *
17230     * @param item Target item.
17231     * @param text The text to set in the content.
17232     *
17233     * Setup the text as tooltip to object. The item can have only one tooltip,
17234     * so any previous tooltip data - set with this function or
17235     * elm_list_item_tooltip_content_cb_set() - is removed.
17236     *
17237     * @see elm_object_tooltip_text_set() for more details.
17238     *
17239     * @ingroup List
17240     */
17241    EAPI void             elm_list_item_tooltip_text_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
17242
17243
17244    /**
17245     * @brief Disable size restrictions on an object's tooltip
17246     * @param item The tooltip's anchor object
17247     * @param disable If EINA_TRUE, size restrictions are disabled
17248     * @return EINA_FALSE on failure, EINA_TRUE on success
17249     *
17250     * This function allows a tooltip to expand beyond its parant window's canvas.
17251     * It will instead be limited only by the size of the display.
17252     */
17253    EAPI Eina_Bool        elm_list_item_tooltip_size_restrict_disable(Elm_List_Item *item, Eina_Bool disable) EINA_ARG_NONNULL(1);
17254    /**
17255     * @brief Retrieve size restriction state of an object's tooltip
17256     * @param obj The tooltip's anchor object
17257     * @return If EINA_TRUE, size restrictions are disabled
17258     *
17259     * This function returns whether a tooltip is allowed to expand beyond
17260     * its parant window's canvas.
17261     * It will instead be limited only by the size of the display.
17262     */
17263    EAPI Eina_Bool        elm_list_item_tooltip_size_restrict_disabled_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17264
17265    /**
17266     * Set the content to be shown in the tooltip item.
17267     *
17268     * Setup the tooltip to item. The item can have only one tooltip,
17269     * so any previous tooltip data is removed. @p func(with @p data) will
17270     * be called every time that need show the tooltip and it should
17271     * return a valid Evas_Object. This object is then managed fully by
17272     * tooltip system and is deleted when the tooltip is gone.
17273     *
17274     * @param item the list item being attached a tooltip.
17275     * @param func the function used to create the tooltip contents.
17276     * @param data what to provide to @a func as callback data/context.
17277     * @param del_cb called when data is not needed anymore, either when
17278     *        another callback replaces @a func, the tooltip is unset with
17279     *        elm_list_item_tooltip_unset() or the owner @a item
17280     *        dies. This callback receives as the first parameter the
17281     *        given @a data, and @c event_info is the item.
17282     *
17283     * @see elm_object_tooltip_content_cb_set() for more details.
17284     *
17285     * @ingroup List
17286     */
17287    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);
17288
17289    /**
17290     * Unset tooltip from item.
17291     *
17292     * @param item list item to remove previously set tooltip.
17293     *
17294     * Remove tooltip from item. The callback provided as del_cb to
17295     * elm_list_item_tooltip_content_cb_set() will be called to notify
17296     * it is not used anymore.
17297     *
17298     * @see elm_object_tooltip_unset() for more details.
17299     * @see elm_list_item_tooltip_content_cb_set()
17300     *
17301     * @ingroup List
17302     */
17303    EAPI void             elm_list_item_tooltip_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
17304
17305    /**
17306     * Sets a different style for this item tooltip.
17307     *
17308     * @note before you set a style you should define a tooltip with
17309     *       elm_list_item_tooltip_content_cb_set() or
17310     *       elm_list_item_tooltip_text_set()
17311     *
17312     * @param item list item with tooltip already set.
17313     * @param style the theme style to use (default, transparent, ...)
17314     *
17315     * @see elm_object_tooltip_style_set() for more details.
17316     *
17317     * @ingroup List
17318     */
17319    EAPI void             elm_list_item_tooltip_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
17320
17321    /**
17322     * Get the style for this item tooltip.
17323     *
17324     * @param item list item with tooltip already set.
17325     * @return style the theme style in use, defaults to "default". If the
17326     *         object does not have a tooltip set, then NULL is returned.
17327     *
17328     * @see elm_object_tooltip_style_get() for more details.
17329     * @see elm_list_item_tooltip_style_set()
17330     *
17331     * @ingroup List
17332     */
17333    EAPI const char      *elm_list_item_tooltip_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17334
17335    /**
17336     * Set the type of mouse pointer/cursor decoration to be shown,
17337     * when the mouse pointer is over the given list widget item
17338     *
17339     * @param item list item to customize cursor on
17340     * @param cursor the cursor type's name
17341     *
17342     * This function works analogously as elm_object_cursor_set(), but
17343     * here the cursor's changing area is restricted to the item's
17344     * area, and not the whole widget's. Note that that item cursors
17345     * have precedence over widget cursors, so that a mouse over an
17346     * item with custom cursor set will always show @b that cursor.
17347     *
17348     * If this function is called twice for an object, a previously set
17349     * cursor will be unset on the second call.
17350     *
17351     * @see elm_object_cursor_set()
17352     * @see elm_list_item_cursor_get()
17353     * @see elm_list_item_cursor_unset()
17354     *
17355     * @ingroup List
17356     */
17357    EAPI void             elm_list_item_cursor_set(Elm_List_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
17358
17359    /*
17360     * Get the type of mouse pointer/cursor decoration set to be shown,
17361     * when the mouse pointer is over the given list widget item
17362     *
17363     * @param item list item with custom cursor set
17364     * @return the cursor type's name or @c NULL, if no custom cursors
17365     * were set to @p item (and on errors)
17366     *
17367     * @see elm_object_cursor_get()
17368     * @see elm_list_item_cursor_set()
17369     * @see elm_list_item_cursor_unset()
17370     *
17371     * @ingroup List
17372     */
17373    EAPI const char      *elm_list_item_cursor_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17374
17375    /**
17376     * Unset any custom mouse pointer/cursor decoration set to be
17377     * shown, when the mouse pointer is over the given list widget
17378     * item, thus making it show the @b default cursor again.
17379     *
17380     * @param item a list item
17381     *
17382     * Use this call to undo any custom settings on this item's cursor
17383     * decoration, bringing it back to defaults (no custom style set).
17384     *
17385     * @see elm_object_cursor_unset()
17386     * @see elm_list_item_cursor_set()
17387     *
17388     * @ingroup List
17389     */
17390    EAPI void             elm_list_item_cursor_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
17391
17392    /**
17393     * Set a different @b style for a given custom cursor set for a
17394     * list item.
17395     *
17396     * @param item list item with custom cursor set
17397     * @param style the <b>theme style</b> to use (e.g. @c "default",
17398     * @c "transparent", etc)
17399     *
17400     * This function only makes sense when one is using custom mouse
17401     * cursor decorations <b>defined in a theme file</b>, which can have,
17402     * given a cursor name/type, <b>alternate styles</b> on it. It
17403     * works analogously as elm_object_cursor_style_set(), but here
17404     * applyed only to list item objects.
17405     *
17406     * @warning Before you set a cursor style you should have definen a
17407     *       custom cursor previously on the item, with
17408     *       elm_list_item_cursor_set()
17409     *
17410     * @see elm_list_item_cursor_engine_only_set()
17411     * @see elm_list_item_cursor_style_get()
17412     *
17413     * @ingroup List
17414     */
17415    EAPI void             elm_list_item_cursor_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
17416
17417    /**
17418     * Get the current @b style set for a given list item's custom
17419     * cursor
17420     *
17421     * @param item list item with custom cursor set.
17422     * @return style the cursor style in use. If the object does not
17423     *         have a cursor set, then @c NULL is returned.
17424     *
17425     * @see elm_list_item_cursor_style_set() for more details
17426     *
17427     * @ingroup List
17428     */
17429    EAPI const char      *elm_list_item_cursor_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17430
17431    /**
17432     * Set if the (custom)cursor for a given list item should be
17433     * searched in its theme, also, or should only rely on the
17434     * rendering engine.
17435     *
17436     * @param item item with custom (custom) cursor already set on
17437     * @param engine_only Use @c EINA_TRUE to have cursors looked for
17438     * only on those provided by the rendering engine, @c EINA_FALSE to
17439     * have them searched on the widget's theme, as well.
17440     *
17441     * @note This call is of use only if you've set a custom cursor
17442     * for list items, with elm_list_item_cursor_set().
17443     *
17444     * @note By default, cursors will only be looked for between those
17445     * provided by the rendering engine.
17446     *
17447     * @ingroup List
17448     */
17449    EAPI void             elm_list_item_cursor_engine_only_set(Elm_List_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
17450
17451    /**
17452     * Get if the (custom) cursor for a given list item is being
17453     * searched in its theme, also, or is only relying on the rendering
17454     * engine.
17455     *
17456     * @param item a list item
17457     * @return @c EINA_TRUE, if cursors are being looked for only on
17458     * those provided by the rendering engine, @c EINA_FALSE if they
17459     * are being searched on the widget's theme, as well.
17460     *
17461     * @see elm_list_item_cursor_engine_only_set(), for more details
17462     *
17463     * @ingroup List
17464     */
17465    EAPI Eina_Bool        elm_list_item_cursor_engine_only_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17466
17467    /**
17468     * @}
17469     */
17470
17471    /**
17472     * @defgroup Slider Slider
17473     * @ingroup Elementary
17474     *
17475     * @image html img/widget/slider/preview-00.png
17476     * @image latex img/widget/slider/preview-00.eps width=\textwidth
17477     *
17478     * The slider adds a dragable ā€œsliderā€ widget for selecting the value of
17479     * something within a range.
17480     *
17481     * A slider can be horizontal or vertical. It can contain an Icon and has a
17482     * primary label as well as a units label (that is formatted with floating
17483     * point values and thus accepts a printf-style format string, like
17484     * ā€œ%1.2f unitsā€. There is also an indicator string that may be somewhere
17485     * else (like on the slider itself) that also accepts a format string like
17486     * units. Label, Icon Unit and Indicator strings/objects are optional.
17487     *
17488     * A slider may be inverted which means values invert, with high vales being
17489     * on the left or top and low values on the right or bottom (as opposed to
17490     * normally being low on the left or top and high on the bottom and right).
17491     *
17492     * The slider should have its minimum and maximum values set by the
17493     * application with  elm_slider_min_max_set() and value should also be set by
17494     * the application before use with  elm_slider_value_set(). The span of the
17495     * slider is its length (horizontally or vertically). This will be scaled by
17496     * the object or applications scaling factor. At any point code can query the
17497     * slider for its value with elm_slider_value_get().
17498     *
17499     * Smart callbacks one can listen to:
17500     * - "changed" - Whenever the slider value is changed by the user.
17501     * - "slider,drag,start" - dragging the slider indicator around has started.
17502     * - "slider,drag,stop" - dragging the slider indicator around has stopped.
17503     * - "delay,changed" - A short time after the value is changed by the user.
17504     * This will be called only when the user stops dragging for
17505     * a very short period or when they release their
17506     * finger/mouse, so it avoids possibly expensive reactions to
17507     * the value change.
17508     *
17509     * Available styles for it:
17510     * - @c "default"
17511     *
17512     * Default contents parts of the slider widget that you can use for are:
17513     * @li "icon" - A icon of the slider
17514     * @li "end" - A end part content of the slider
17515     * 
17516     * Default text parts of the silder widget that you can use for are:
17517     * @li "default" - Label of the silder
17518     * Here is an example on its usage:
17519     * @li @ref slider_example
17520     */
17521
17522    /**
17523     * @addtogroup Slider
17524     * @{
17525     */
17526
17527    /**
17528     * Add a new slider widget to the given parent Elementary
17529     * (container) object.
17530     *
17531     * @param parent The parent object.
17532     * @return a new slider widget handle or @c NULL, on errors.
17533     *
17534     * This function inserts a new slider widget on the canvas.
17535     *
17536     * @ingroup Slider
17537     */
17538    EAPI Evas_Object       *elm_slider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
17539
17540    /**
17541     * Set the label of a given slider widget
17542     *
17543     * @param obj The progress bar object
17544     * @param label The text label string, in UTF-8
17545     *
17546     * @ingroup Slider
17547     * @deprecated use elm_object_text_set() instead.
17548     */
17549    EINA_DEPRECATED EAPI void               elm_slider_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
17550
17551    /**
17552     * Get the label of a given slider widget
17553     *
17554     * @param obj The progressbar object
17555     * @return The text label string, in UTF-8
17556     *
17557     * @ingroup Slider
17558     * @deprecated use elm_object_text_get() instead.
17559     */
17560    EINA_DEPRECATED EAPI const char        *elm_slider_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17561
17562    /**
17563     * Set the icon object of the slider object.
17564     *
17565     * @param obj The slider object.
17566     * @param icon The icon object.
17567     *
17568     * On horizontal mode, icon is placed at left, and on vertical mode,
17569     * placed at top.
17570     *
17571     * @note Once the icon object is set, a previously set one will be deleted.
17572     * If you want to keep that old content object, use the
17573     * elm_slider_icon_unset() function.
17574     *
17575     * @warning If the object being set does not have minimum size hints set,
17576     * it won't get properly displayed.
17577     *
17578     * @ingroup Slider
17579     * @deprecated use elm_object_part_content_set() instead.
17580     */
17581    EINA_DEPRECATED EAPI void               elm_slider_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
17582
17583    /**
17584     * Unset an icon set on a given slider widget.
17585     *
17586     * @param obj The slider object.
17587     * @return The icon object that was being used, if any was set, or
17588     * @c NULL, otherwise (and on errors).
17589     *
17590     * On horizontal mode, icon is placed at left, and on vertical mode,
17591     * placed at top.
17592     *
17593     * This call will unparent and return the icon object which was set
17594     * for this widget, previously, on success.
17595     *
17596     * @see elm_slider_icon_set() for more details
17597     * @see elm_slider_icon_get()
17598     * @deprecated use elm_object_part_content_unset() instead.
17599     *
17600     * @ingroup Slider
17601     */
17602    EINA_DEPRECATED EAPI Evas_Object       *elm_slider_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
17603
17604    /**
17605     * Retrieve the icon object set for a given slider widget.
17606     *
17607     * @param obj The slider object.
17608     * @return The icon object's handle, if @p obj had one set, or @c NULL,
17609     * otherwise (and on errors).
17610     *
17611     * On horizontal mode, icon is placed at left, and on vertical mode,
17612     * placed at top.
17613     *
17614     * @see elm_slider_icon_set() for more details
17615     * @see elm_slider_icon_unset()
17616     *
17617     * @deprecated use elm_object_part_content_get() instead.
17618     *
17619     * @ingroup Slider
17620     */
17621    EINA_DEPRECATED EAPI Evas_Object       *elm_slider_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17622
17623    /**
17624     * Set the end object of the slider object.
17625     *
17626     * @param obj The slider object.
17627     * @param end The end object.
17628     *
17629     * On horizontal mode, end is placed at left, and on vertical mode,
17630     * placed at bottom.
17631     *
17632     * @note Once the icon object is set, a previously set one will be deleted.
17633     * If you want to keep that old content object, use the
17634     * elm_slider_end_unset() function.
17635     *
17636     * @warning If the object being set does not have minimum size hints set,
17637     * it won't get properly displayed.
17638     *
17639     * @deprecated use elm_object_part_content_set() instead.
17640     *
17641     * @ingroup Slider
17642     */
17643    EINA_DEPRECATED EAPI void               elm_slider_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1);
17644
17645    /**
17646     * Unset an end object set on a given slider widget.
17647     *
17648     * @param obj The slider object.
17649     * @return The end object that was being used, if any was set, or
17650     * @c NULL, otherwise (and on errors).
17651     *
17652     * On horizontal mode, end is placed at left, and on vertical mode,
17653     * placed at bottom.
17654     *
17655     * This call will unparent and return the icon object which was set
17656     * for this widget, previously, on success.
17657     *
17658     * @see elm_slider_end_set() for more details.
17659     * @see elm_slider_end_get()
17660     *
17661     * @deprecated use elm_object_part_content_unset() instead
17662     * instead.
17663     *
17664     * @ingroup Slider
17665     */
17666    EINA_DEPRECATED EAPI Evas_Object       *elm_slider_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
17667
17668    /**
17669     * Retrieve the end object set for a given slider widget.
17670     *
17671     * @param obj The slider object.
17672     * @return The end object's handle, if @p obj had one set, or @c NULL,
17673     * otherwise (and on errors).
17674     *
17675     * On horizontal mode, icon is placed at right, and on vertical mode,
17676     * placed at bottom.
17677     *
17678     * @see elm_slider_end_set() for more details.
17679     * @see elm_slider_end_unset()
17680     *
17681     *
17682     * @deprecated use elm_object_part_content_get() instead 
17683     * instead.
17684     *
17685     * @ingroup Slider
17686     */
17687    EINA_DEPRECATED EAPI Evas_Object       *elm_slider_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17688
17689    /**
17690     * Set the (exact) length of the bar region of a given slider widget.
17691     *
17692     * @param obj The slider object.
17693     * @param size The length of the slider's bar region.
17694     *
17695     * This sets the minimum width (when in horizontal mode) or height
17696     * (when in vertical mode) of the actual bar area of the slider
17697     * @p obj. This in turn affects the object's minimum size. Use
17698     * this when you're not setting other size hints expanding on the
17699     * given direction (like weight and alignment hints) and you would
17700     * like it to have a specific size.
17701     *
17702     * @note Icon, end, label, indicator and unit text around @p obj
17703     * will require their
17704     * own space, which will make @p obj to require more the @p size,
17705     * actually.
17706     *
17707     * @see elm_slider_span_size_get()
17708     *
17709     * @ingroup Slider
17710     */
17711    EAPI void               elm_slider_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
17712
17713    /**
17714     * Get the length set for the bar region of a given slider widget
17715     *
17716     * @param obj The slider object.
17717     * @return The length of the slider's bar region.
17718     *
17719     * If that size was not set previously, with
17720     * elm_slider_span_size_set(), this call will return @c 0.
17721     *
17722     * @ingroup Slider
17723     */
17724    EAPI Evas_Coord         elm_slider_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17725
17726    /**
17727     * Set the format string for the unit label.
17728     *
17729     * @param obj The slider object.
17730     * @param format The format string for the unit display.
17731     *
17732     * Unit label is displayed all the time, if set, after slider's bar.
17733     * In horizontal mode, at right and in vertical mode, at bottom.
17734     *
17735     * If @c NULL, unit label won't be visible. If not it sets the format
17736     * string for the label text. To the label text is provided a floating point
17737     * value, so the label text can display up to 1 floating point value.
17738     * Note that this is optional.
17739     *
17740     * Use a format string such as "%1.2f meters" for example, and it will
17741     * display values like: "3.14 meters" for a value equal to 3.14159.
17742     *
17743     * Default is unit label disabled.
17744     *
17745     * @see elm_slider_indicator_format_get()
17746     *
17747     * @ingroup Slider
17748     */
17749    EAPI void               elm_slider_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
17750
17751    /**
17752     * Get the unit label format of the slider.
17753     *
17754     * @param obj The slider object.
17755     * @return The unit label format string in UTF-8.
17756     *
17757     * Unit label is displayed all the time, if set, after slider's bar.
17758     * In horizontal mode, at right and in vertical mode, at bottom.
17759     *
17760     * @see elm_slider_unit_format_set() for more
17761     * information on how this works.
17762     *
17763     * @ingroup Slider
17764     */
17765    EAPI const char        *elm_slider_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17766
17767    /**
17768     * Set the format string for the indicator label.
17769     *
17770     * @param obj The slider object.
17771     * @param indicator The format string for the indicator display.
17772     *
17773     * The slider may display its value somewhere else then unit label,
17774     * for example, above the slider knob that is dragged around. This function
17775     * sets the format string used for this.
17776     *
17777     * If @c NULL, indicator label won't be visible. If not it sets the format
17778     * string for the label text. To the label text is provided a floating point
17779     * value, so the label text can display up to 1 floating point value.
17780     * Note that this is optional.
17781     *
17782     * Use a format string such as "%1.2f meters" for example, and it will
17783     * display values like: "3.14 meters" for a value equal to 3.14159.
17784     *
17785     * Default is indicator label disabled.
17786     *
17787     * @see elm_slider_indicator_format_get()
17788     *
17789     * @ingroup Slider
17790     */
17791    EAPI void               elm_slider_indicator_format_set(Evas_Object *obj, const char *indicator) EINA_ARG_NONNULL(1);
17792
17793    /**
17794     * Get the indicator label format of the slider.
17795     *
17796     * @param obj The slider object.
17797     * @return The indicator label format string in UTF-8.
17798     *
17799     * The slider may display its value somewhere else then unit label,
17800     * for example, above the slider knob that is dragged around. This function
17801     * gets the format string used for this.
17802     *
17803     * @see elm_slider_indicator_format_set() for more
17804     * information on how this works.
17805     *
17806     * @ingroup Slider
17807     */
17808    EAPI const char        *elm_slider_indicator_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17809
17810    /**
17811     * Set the format function pointer for the indicator label
17812     *
17813     * @param obj The slider object.
17814     * @param func The indicator format function.
17815     * @param free_func The freeing function for the format string.
17816     *
17817     * Set the callback function to format the indicator string.
17818     *
17819     * @see elm_slider_indicator_format_set() for more info on how this works.
17820     *
17821     * @ingroup Slider
17822     */
17823   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);
17824
17825   /**
17826    * Set the format function pointer for the units label
17827    *
17828    * @param obj The slider object.
17829    * @param func The units format function.
17830    * @param free_func The freeing function for the format string.
17831    *
17832    * Set the callback function to format the indicator string.
17833    *
17834    * @see elm_slider_units_format_set() for more info on how this works.
17835    *
17836    * @ingroup Slider
17837    */
17838   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);
17839
17840   /**
17841    * Set the orientation of a given slider widget.
17842    *
17843    * @param obj The slider object.
17844    * @param horizontal Use @c EINA_TRUE to make @p obj to be
17845    * @b horizontal, @c EINA_FALSE to make it @b vertical.
17846    *
17847    * Use this function to change how your slider is to be
17848    * disposed: vertically or horizontally.
17849    *
17850    * By default it's displayed horizontally.
17851    *
17852    * @see elm_slider_horizontal_get()
17853    *
17854    * @ingroup Slider
17855    */
17856    EAPI void               elm_slider_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
17857
17858    /**
17859     * Retrieve the orientation of a given slider widget
17860     *
17861     * @param obj The slider object.
17862     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
17863     * @c EINA_FALSE if it's @b vertical (and on errors).
17864     *
17865     * @see elm_slider_horizontal_set() for more details.
17866     *
17867     * @ingroup Slider
17868     */
17869    EAPI Eina_Bool          elm_slider_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17870
17871    /**
17872     * Set the minimum and maximum values for the slider.
17873     *
17874     * @param obj The slider object.
17875     * @param min The minimum value.
17876     * @param max The maximum value.
17877     *
17878     * Define the allowed range of values to be selected by the user.
17879     *
17880     * If actual value is less than @p min, it will be updated to @p min. If it
17881     * is bigger then @p max, will be updated to @p max. Actual value can be
17882     * get with elm_slider_value_get().
17883     *
17884     * By default, min is equal to 0.0, and max is equal to 1.0.
17885     *
17886     * @warning Maximum must be greater than minimum, otherwise behavior
17887     * is undefined.
17888     *
17889     * @see elm_slider_min_max_get()
17890     *
17891     * @ingroup Slider
17892     */
17893    EAPI void               elm_slider_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
17894
17895    /**
17896     * Get the minimum and maximum values of the slider.
17897     *
17898     * @param obj The slider object.
17899     * @param min Pointer where to store the minimum value.
17900     * @param max Pointer where to store the maximum value.
17901     *
17902     * @note If only one value is needed, the other pointer can be passed
17903     * as @c NULL.
17904     *
17905     * @see elm_slider_min_max_set() for details.
17906     *
17907     * @ingroup Slider
17908     */
17909    EAPI void               elm_slider_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
17910
17911    /**
17912     * Set the value the slider displays.
17913     *
17914     * @param obj The slider object.
17915     * @param val The value to be displayed.
17916     *
17917     * Value will be presented on the unit label following format specified with
17918     * elm_slider_unit_format_set() and on indicator with
17919     * elm_slider_indicator_format_set().
17920     *
17921     * @warning The value must to be between min and max values. This values
17922     * are set by elm_slider_min_max_set().
17923     *
17924     * @see elm_slider_value_get()
17925     * @see elm_slider_unit_format_set()
17926     * @see elm_slider_indicator_format_set()
17927     * @see elm_slider_min_max_set()
17928     *
17929     * @ingroup Slider
17930     */
17931    EAPI void               elm_slider_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
17932
17933    /**
17934     * Get the value displayed by the spinner.
17935     *
17936     * @param obj The spinner object.
17937     * @return The value displayed.
17938     *
17939     * @see elm_spinner_value_set() for details.
17940     *
17941     * @ingroup Slider
17942     */
17943    EAPI double             elm_slider_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17944
17945    /**
17946     * Invert a given slider widget's displaying values order
17947     *
17948     * @param obj The slider object.
17949     * @param inverted Use @c EINA_TRUE to make @p obj inverted,
17950     * @c EINA_FALSE to bring it back to default, non-inverted values.
17951     *
17952     * A slider may be @b inverted, in which state it gets its
17953     * values inverted, with high vales being on the left or top and
17954     * low values on the right or bottom, as opposed to normally have
17955     * the low values on the former and high values on the latter,
17956     * respectively, for horizontal and vertical modes.
17957     *
17958     * @see elm_slider_inverted_get()
17959     *
17960     * @ingroup Slider
17961     */
17962    EAPI void               elm_slider_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
17963
17964    /**
17965     * Get whether a given slider widget's displaying values are
17966     * inverted or not.
17967     *
17968     * @param obj The slider object.
17969     * @return @c EINA_TRUE, if @p obj has inverted values,
17970     * @c EINA_FALSE otherwise (and on errors).
17971     *
17972     * @see elm_slider_inverted_set() for more details.
17973     *
17974     * @ingroup Slider
17975     */
17976    EAPI Eina_Bool          elm_slider_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17977
17978    /**
17979     * Set whether to enlarge slider indicator (augmented knob) or not.
17980     *
17981     * @param obj The slider object.
17982     * @param show @c EINA_TRUE will make it enlarge, @c EINA_FALSE will
17983     * let the knob always at default size.
17984     *
17985     * By default, indicator will be bigger while dragged by the user.
17986     *
17987     * @warning It won't display values set with
17988     * elm_slider_indicator_format_set() if you disable indicator.
17989     *
17990     * @ingroup Slider
17991     */
17992    EAPI void               elm_slider_indicator_show_set(Evas_Object *obj, Eina_Bool show) EINA_ARG_NONNULL(1);
17993
17994    /**
17995     * Get whether a given slider widget's enlarging indicator or not.
17996     *
17997     * @param obj The slider object.
17998     * @return @c EINA_TRUE, if @p obj is enlarging indicator, or
17999     * @c EINA_FALSE otherwise (and on errors).
18000     *
18001     * @see elm_slider_indicator_show_set() for details.
18002     *
18003     * @ingroup Slider
18004     */
18005    EAPI Eina_Bool          elm_slider_indicator_show_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18006
18007    /**
18008     * @}
18009     */
18010
18011    /**
18012     * @addtogroup Actionslider Actionslider
18013     *
18014     * @image html img/widget/actionslider/preview-00.png
18015     * @image latex img/widget/actionslider/preview-00.eps
18016     *
18017     * An actionslider is a switcher for 2 or 3 labels with customizable magnet
18018     * properties. The user drags and releases the indicator, to choose a label.
18019     *
18020     * Labels occupy the following positions.
18021     * a. Left
18022     * b. Right
18023     * c. Center
18024     *
18025     * Positions can be enabled or disabled.
18026     *
18027     * Magnets can be set on the above positions.
18028     *
18029     * When the indicator is released, it will move to its nearest "enabled and magnetized" position.
18030     *
18031     * @note By default all positions are set as enabled.
18032     *
18033     * Signals that you can add callbacks for are:
18034     *
18035     * "selected" - when user selects an enabled position (the label is passed
18036     *              as event info)".
18037     * @n
18038     * "pos_changed" - when the indicator reaches any of the positions("left",
18039     *                 "right" or "center").
18040     *
18041     * See an example of actionslider usage @ref actionslider_example_page "here"
18042     * @{
18043     */
18044    typedef enum _Elm_Actionslider_Pos
18045      {
18046         ELM_ACTIONSLIDER_NONE = 0,
18047         ELM_ACTIONSLIDER_LEFT = 1 << 0,
18048         ELM_ACTIONSLIDER_CENTER = 1 << 1,
18049         ELM_ACTIONSLIDER_RIGHT = 1 << 2,
18050         ELM_ACTIONSLIDER_ALL = (1 << 3) -1
18051      } Elm_Actionslider_Pos;
18052
18053    /**
18054     * Add a new actionslider to the parent.
18055     *
18056     * @param parent The parent object
18057     * @return The new actionslider object or NULL if it cannot be created
18058     */
18059    EAPI Evas_Object          *elm_actionslider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18060    /**
18061     * Set actionslider labels.
18062     *
18063     * @param obj The actionslider object
18064     * @param left_label The label to be set on the left.
18065     * @param center_label The label to be set on the center.
18066     * @param right_label The label to be set on the right.
18067     * @deprecated use elm_object_text_set() instead.
18068     */
18069    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);
18070    /**
18071     * Get actionslider labels.
18072     *
18073     * @param obj The actionslider object
18074     * @param left_label A char** to place the left_label of @p obj into.
18075     * @param center_label A char** to place the center_label of @p obj into.
18076     * @param right_label A char** to place the right_label of @p obj into.
18077     * @deprecated use elm_object_text_set() instead.
18078     */
18079    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);
18080    /**
18081     * Get actionslider selected label.
18082     *
18083     * @param obj The actionslider object
18084     * @return The selected label
18085     */
18086    EAPI const char           *elm_actionslider_selected_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18087    /**
18088     * Set actionslider indicator position.
18089     *
18090     * @param obj The actionslider object.
18091     * @param pos The position of the indicator.
18092     */
18093    EAPI void                  elm_actionslider_indicator_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
18094    /**
18095     * Get actionslider indicator position.
18096     *
18097     * @param obj The actionslider object.
18098     * @return The position of the indicator.
18099     */
18100    EAPI Elm_Actionslider_Pos  elm_actionslider_indicator_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18101    /**
18102     * Set actionslider magnet position. To make multiple positions magnets @c or
18103     * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT)
18104     *
18105     * @param obj The actionslider object.
18106     * @param pos Bit mask indicating the magnet positions.
18107     */
18108    EAPI void                  elm_actionslider_magnet_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
18109    /**
18110     * Get actionslider magnet position.
18111     *
18112     * @param obj The actionslider object.
18113     * @return The positions with magnet property.
18114     */
18115    EAPI Elm_Actionslider_Pos  elm_actionslider_magnet_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18116    /**
18117     * Set actionslider enabled position. To set multiple positions as enabled @c or
18118     * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT).
18119     *
18120     * @note All the positions are enabled by default.
18121     *
18122     * @param obj The actionslider object.
18123     * @param pos Bit mask indicating the enabled positions.
18124     */
18125    EAPI void                  elm_actionslider_enabled_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
18126    /**
18127     * Get actionslider enabled position.
18128     *
18129     * @param obj The actionslider object.
18130     * @return The enabled positions.
18131     */
18132    EAPI Elm_Actionslider_Pos  elm_actionslider_enabled_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18133    /**
18134     * Set the label used on the indicator.
18135     *
18136     * @param obj The actionslider object
18137     * @param label The label to be set on the indicator.
18138     * @deprecated use elm_object_text_set() instead.
18139     */
18140    EINA_DEPRECATED EAPI void                  elm_actionslider_indicator_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
18141    /**
18142     * Get the label used on the indicator object.
18143     *
18144     * @param obj The actionslider object
18145     * @return The indicator label
18146     * @deprecated use elm_object_text_get() instead.
18147     */
18148    EINA_DEPRECATED EAPI const char           *elm_actionslider_indicator_label_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
18149    /**
18150     * @}
18151     */
18152
18153    /**
18154     * @defgroup Genlist Genlist
18155     *
18156     * @image html img/widget/genlist/preview-00.png
18157     * @image latex img/widget/genlist/preview-00.eps
18158     * @image html img/genlist.png
18159     * @image latex img/genlist.eps
18160     *
18161     * This widget aims to have more expansive list than the simple list in
18162     * Elementary that could have more flexible items and allow many more entries
18163     * while still being fast and low on memory usage. At the same time it was
18164     * also made to be able to do tree structures. But the price to pay is more
18165     * complexity when it comes to usage. If all you want is a simple list with
18166     * icons and a single label, use the normal @ref List object.
18167     *
18168     * Genlist has a fairly large API, mostly because it's relatively complex,
18169     * trying to be both expansive, powerful and efficient. First we will begin
18170     * an overview on the theory behind genlist.
18171     *
18172     * @section Genlist_Item_Class Genlist item classes - creating items
18173     *
18174     * In order to have the ability to add and delete items on the fly, genlist
18175     * implements a class (callback) system where the application provides a
18176     * structure with information about that type of item (genlist may contain
18177     * multiple different items with different classes, states and styles).
18178     * Genlist will call the functions in this struct (methods) when an item is
18179     * "realized" (i.e., created dynamically, while the user is scrolling the
18180     * grid). All objects will simply be deleted when no longer needed with
18181     * evas_object_del(). The #Elm_Genlist_Item_Class structure contains the
18182     * following members:
18183     * - @c item_style - This is a constant string and simply defines the name
18184     *   of the item style. It @b must be specified and the default should be @c
18185     *   "default".
18186     *
18187     * - @c func - A struct with pointers to functions that will be called when
18188     *   an item is going to be actually created. All of them receive a @c data
18189     *   parameter that will point to the same data passed to
18190     *   elm_genlist_item_append() and related item creation functions, and a @c
18191     *   obj parameter that points to the genlist object itself.
18192     *
18193     * The function pointers inside @c func are @c label_get, @c icon_get, @c
18194     * state_get and @c del. The 3 first functions also receive a @c part
18195     * parameter described below. A brief description of these functions follows:
18196     *
18197     * - @c label_get - The @c part parameter is the name string of one of the
18198     *   existing text parts in the Edje group implementing the item's theme.
18199     *   This function @b must return a strdup'()ed string, as the caller will
18200     *   free() it when done. See #Elm_Genlist_Item_Label_Get_Cb.
18201     * - @c content_get - The @c part parameter is the name string of one of the
18202     *   existing (content) swallow parts in the Edje group implementing the item's
18203     *   theme. It must return @c NULL, when no content is desired, or a valid
18204     *   object handle, otherwise.  The object will be deleted by the genlist on
18205     *   its deletion or when the item is "unrealized".  See
18206     *   #Elm_Genlist_Item_Content_Get_Cb.
18207     * - @c func.state_get - The @c part parameter is the name string of one of
18208     *   the state parts in the Edje group implementing the item's theme. Return
18209     *   @c EINA_FALSE for false/off or @c EINA_TRUE for true/on. Genlists will
18210     *   emit a signal to its theming Edje object with @c "elm,state,XXX,active"
18211     *   and @c "elm" as "emission" and "source" arguments, respectively, when
18212     *   the state is true (the default is false), where @c XXX is the name of
18213     *   the (state) part.  See #Elm_Genlist_Item_State_Get_Cb.
18214     * - @c func.del - This is intended for use when genlist items are deleted,
18215     *   so any data attached to the item (e.g. its data parameter on creation)
18216     *   can be deleted. See #Elm_Genlist_Item_Del_Cb.
18217     *
18218     * available item styles:
18219     * - default
18220     * - default_style - The text part is a textblock
18221     *
18222     * @image html img/widget/genlist/preview-04.png
18223     * @image latex img/widget/genlist/preview-04.eps
18224     *
18225     * - double_label
18226     *
18227     * @image html img/widget/genlist/preview-01.png
18228     * @image latex img/widget/genlist/preview-01.eps
18229     *
18230     * - icon_top_text_bottom
18231     *
18232     * @image html img/widget/genlist/preview-02.png
18233     * @image latex img/widget/genlist/preview-02.eps
18234     *
18235     * - group_index
18236     *
18237     * @image html img/widget/genlist/preview-03.png
18238     * @image latex img/widget/genlist/preview-03.eps
18239     *
18240     * @section Genlist_Items Structure of items
18241     *
18242     * An item in a genlist can have 0 or more text labels (they can be regular
18243     * text or textblock Evas objects - that's up to the style to determine), 0
18244     * or more contents (which are simply objects swallowed into the genlist item's
18245     * theming Edje object) and 0 or more <b>boolean states</b>, which have the
18246     * behavior left to the user to define. The Edje part names for each of
18247     * these properties will be looked up, in the theme file for the genlist,
18248     * under the Edje (string) data items named @c "labels", @c "contents" and @c
18249     * "states", respectively. For each of those properties, if more than one
18250     * part is provided, they must have names listed separated by spaces in the
18251     * data fields. For the default genlist item theme, we have @b one label
18252     * part (@c "elm.text"), @b two content parts (@c "elm.swalllow.icon" and @c
18253     * "elm.swallow.end") and @b no state parts.
18254     *
18255     * A genlist item may be at one of several styles. Elementary provides one
18256     * by default - "default", but this can be extended by system or application
18257     * custom themes/overlays/extensions (see @ref Theme "themes" for more
18258     * details).
18259     *
18260     * @section Genlist_Manipulation Editing and Navigating
18261     *
18262     * Items can be added by several calls. All of them return a @ref
18263     * Elm_Genlist_Item handle that is an internal member inside the genlist.
18264     * They all take a data parameter that is meant to be used for a handle to
18265     * the applications internal data (eg the struct with the original item
18266     * data). The parent parameter is the parent genlist item this belongs to if
18267     * it is a tree or an indexed group, and NULL if there is no parent. The
18268     * flags can be a bitmask of #ELM_GENLIST_ITEM_NONE,
18269     * #ELM_GENLIST_ITEM_SUBITEMS and #ELM_GENLIST_ITEM_GROUP. If
18270     * #ELM_GENLIST_ITEM_SUBITEMS is set then this item is displayed as an item
18271     * that is able to expand and have child items.  If ELM_GENLIST_ITEM_GROUP
18272     * is set then this item is group index item that is displayed at the top
18273     * until the next group comes. The func parameter is a convenience callback
18274     * that is called when the item is selected and the data parameter will be
18275     * the func_data parameter, obj be the genlist object and event_info will be
18276     * the genlist item.
18277     *
18278     * elm_genlist_item_append() adds an item to the end of the list, or if
18279     * there is a parent, to the end of all the child items of the parent.
18280     * elm_genlist_item_prepend() is the same but adds to the beginning of
18281     * the list or children list. elm_genlist_item_insert_before() inserts at
18282     * item before another item and elm_genlist_item_insert_after() inserts after
18283     * the indicated item.
18284     *
18285     * The application can clear the list with elm_gen_clear() which deletes
18286     * all the items in the list and elm_genlist_item_del() will delete a specific
18287     * item. elm_genlist_item_subitems_clear() will clear all items that are
18288     * children of the indicated parent item.
18289     *
18290     * To help inspect list items you can jump to the item at the top of the list
18291     * with elm_genlist_first_item_get() which will return the item pointer, and
18292     * similarly elm_genlist_last_item_get() gets the item at the end of the list.
18293     * elm_genlist_item_next_get() and elm_genlist_item_prev_get() get the next
18294     * and previous items respectively relative to the indicated item. Using
18295     * these calls you can walk the entire item list/tree. Note that as a tree
18296     * the items are flattened in the list, so elm_genlist_item_parent_get() will
18297     * let you know which item is the parent (and thus know how to skip them if
18298     * wanted).
18299     *
18300     * @section Genlist_Muti_Selection Multi-selection
18301     *
18302     * If the application wants multiple items to be able to be selected,
18303     * elm_genlist_multi_select_set() can enable this. If the list is
18304     * single-selection only (the default), then elm_genlist_selected_item_get()
18305     * will return the selected item, if any, or NULL if none is selected. If the
18306     * list is multi-select then elm_genlist_selected_items_get() will return a
18307     * list (that is only valid as long as no items are modified (added, deleted,
18308     * selected or unselected)).
18309     *
18310     * @section Genlist_Usage_Hints Usage hints
18311     *
18312     * There are also convenience functions. elm_gen_item_genlist_get() will
18313     * return the genlist object the item belongs to. elm_genlist_item_show()
18314     * will make the scroller scroll to show that specific item so its visible.
18315     * elm_genlist_item_data_get() returns the data pointer set by the item
18316     * creation functions.
18317     *
18318     * If an item changes (state of boolean changes, label or contents change),
18319     * then use elm_genlist_item_update() to have genlist update the item with
18320     * the new state. Genlist will re-realize the item thus call the functions
18321     * in the _Elm_Genlist_Item_Class for that item.
18322     *
18323     * To programmatically (un)select an item use elm_genlist_item_selected_set().
18324     * To get its selected state use elm_genlist_item_selected_get(). Similarly
18325     * to expand/contract an item and get its expanded state, use
18326     * elm_genlist_item_expanded_set() and elm_genlist_item_expanded_get(). And
18327     * again to make an item disabled (unable to be selected and appear
18328     * differently) use elm_genlist_item_disabled_set() to set this and
18329     * elm_genlist_item_disabled_get() to get the disabled state.
18330     *
18331     * In general to indicate how the genlist should expand items horizontally to
18332     * fill the list area, use elm_genlist_horizontal_set(). Valid modes are
18333     * ELM_LIST_LIMIT and ELM_LIST_SCROLL. The default is ELM_LIST_SCROLL. This
18334     * mode means that if items are too wide to fit, the scroller will scroll
18335     * horizontally. Otherwise items are expanded to fill the width of the
18336     * viewport of the scroller. If it is ELM_LIST_LIMIT, items will be expanded
18337     * to the viewport width and limited to that size. This can be combined with
18338     * a different style that uses edjes' ellipsis feature (cutting text off like
18339     * this: "tex...").
18340     *
18341     * Items will only call their selection func and callback when first becoming
18342     * selected. Any further clicks will do nothing, unless you enable always
18343     * select with elm_gen_always_select_mode_set(). This means even if
18344     * selected, every click will make the selected callbacks be called.
18345     * elm_genlist_no_select_mode_set() will turn off the ability to select
18346     * items entirely and they will neither appear selected nor call selected
18347     * callback functions.
18348     *
18349     * Remember that you can create new styles and add your own theme augmentation
18350     * per application with elm_theme_extension_add(). If you absolutely must
18351     * have a specific style that overrides any theme the user or system sets up
18352     * you can use elm_theme_overlay_add() to add such a file.
18353     *
18354     * @section Genlist_Implementation Implementation
18355     *
18356     * Evas tracks every object you create. Every time it processes an event
18357     * (mouse move, down, up etc.) it needs to walk through objects and find out
18358     * what event that affects. Even worse every time it renders display updates,
18359     * in order to just calculate what to re-draw, it needs to walk through many
18360     * many many objects. Thus, the more objects you keep active, the more
18361     * overhead Evas has in just doing its work. It is advisable to keep your
18362     * active objects to the minimum working set you need. Also remember that
18363     * object creation and deletion carries an overhead, so there is a
18364     * middle-ground, which is not easily determined. But don't keep massive lists
18365     * of objects you can't see or use. Genlist does this with list objects. It
18366     * creates and destroys them dynamically as you scroll around. It groups them
18367     * into blocks so it can determine the visibility etc. of a whole block at
18368     * once as opposed to having to walk the whole list. This 2-level list allows
18369     * for very large numbers of items to be in the list (tests have used up to
18370     * 2,000,000 items). Also genlist employs a queue for adding items. As items
18371     * may be different sizes, every item added needs to be calculated as to its
18372     * size and thus this presents a lot of overhead on populating the list, this
18373     * genlist employs a queue. Any item added is queued and spooled off over
18374     * time, actually appearing some time later, so if your list has many members
18375     * you may find it takes a while for them to all appear, with your process
18376     * consuming a lot of CPU while it is busy spooling.
18377     *
18378     * Genlist also implements a tree structure, but it does so with callbacks to
18379     * the application, with the application filling in tree structures when
18380     * requested (allowing for efficient building of a very deep tree that could
18381     * even be used for file-management). See the above smart signal callbacks for
18382     * details.
18383     *
18384     * @section Genlist_Smart_Events Genlist smart events
18385     *
18386     * Signals that you can add callbacks for are:
18387     * - @c "activated" - The user has double-clicked or pressed
18388     *   (enter|return|spacebar) on an item. The @c event_info parameter is the
18389     *   item that was activated.
18390     * - @c "clicked,double" - The user has double-clicked an item.  The @c
18391     *   event_info parameter is the item that was double-clicked.
18392     * - @c "selected" - This is called when a user has made an item selected.
18393     *   The event_info parameter is the genlist item that was selected.
18394     * - @c "unselected" - This is called when a user has made an item
18395     *   unselected. The event_info parameter is the genlist item that was
18396     *   unselected.
18397     * - @c "expanded" - This is called when elm_genlist_item_expanded_set() is
18398     *   called and the item is now meant to be expanded. The event_info
18399     *   parameter is the genlist item that was indicated to expand.  It is the
18400     *   job of this callback to then fill in the child items.
18401     * - @c "contracted" - This is called when elm_genlist_item_expanded_set() is
18402     *   called and the item is now meant to be contracted. The event_info
18403     *   parameter is the genlist item that was indicated to contract. It is the
18404     *   job of this callback to then delete the child items.
18405     * - @c "expand,request" - This is called when a user has indicated they want
18406     *   to expand a tree branch item. The callback should decide if the item can
18407     *   expand (has any children) and then call elm_genlist_item_expanded_set()
18408     *   appropriately to set the state. The event_info parameter is the genlist
18409     *   item that was indicated to expand.
18410     * - @c "contract,request" - This is called when a user has indicated they
18411     *   want to contract a tree branch item. The callback should decide if the
18412     *   item can contract (has any children) and then call
18413     *   elm_genlist_item_expanded_set() appropriately to set the state. The
18414     *   event_info parameter is the genlist item that was indicated to contract.
18415     * - @c "realized" - This is called when the item in the list is created as a
18416     *   real evas object. event_info parameter is the genlist item that was
18417     *   created. The object may be deleted at any time, so it is up to the
18418     *   caller to not use the object pointer from elm_genlist_item_object_get()
18419     *   in a way where it may point to freed objects.
18420     * - @c "unrealized" - This is called just before an item is unrealized.
18421     *   After this call content objects provided will be deleted and the item
18422     *   object itself delete or be put into a floating cache.
18423     * - @c "drag,start,up" - This is called when the item in the list has been
18424     *   dragged (not scrolled) up.
18425     * - @c "drag,start,down" - This is called when the item in the list has been
18426     *   dragged (not scrolled) down.
18427     * - @c "drag,start,left" - This is called when the item in the list has been
18428     *   dragged (not scrolled) left.
18429     * - @c "drag,start,right" - This is called when the item in the list has
18430     *   been dragged (not scrolled) right.
18431     * - @c "drag,stop" - This is called when the item in the list has stopped
18432     *   being dragged.
18433     * - @c "drag" - This is called when the item in the list is being dragged.
18434     * - @c "longpressed" - This is called when the item is pressed for a certain
18435     *   amount of time. By default it's 1 second.
18436     * - @c "scroll,anim,start" - This is called when scrolling animation has
18437     *   started.
18438     * - @c "scroll,anim,stop" - This is called when scrolling animation has
18439     *   stopped.
18440     * - @c "scroll,drag,start" - This is called when dragging the content has
18441     *   started.
18442     * - @c "scroll,drag,stop" - This is called when dragging the content has
18443     *   stopped.
18444     * - @c "edge,top" - This is called when the genlist is scrolled until
18445     *   the top edge.
18446     * - @c "edge,bottom" - This is called when the genlist is scrolled
18447     *   until the bottom edge.
18448     * - @c "edge,left" - This is called when the genlist is scrolled
18449     *   until the left edge.
18450     * - @c "edge,right" - This is called when the genlist is scrolled
18451     *   until the right edge.
18452     * - @c "multi,swipe,left" - This is called when the genlist is multi-touch
18453     *   swiped left.
18454     * - @c "multi,swipe,right" - This is called when the genlist is multi-touch
18455     *   swiped right.
18456     * - @c "multi,swipe,up" - This is called when the genlist is multi-touch
18457     *   swiped up.
18458     * - @c "multi,swipe,down" - This is called when the genlist is multi-touch
18459     *   swiped down.
18460     * - @c "multi,pinch,out" - This is called when the genlist is multi-touch
18461     *   pinched out.  "- @c multi,pinch,in" - This is called when the genlist is
18462     *   multi-touch pinched in.
18463     * - @c "swipe" - This is called when the genlist is swiped.
18464     * - @c "moved" - This is called when a genlist item is moved.
18465     * - @c "language,changed" - This is called when the program's language is
18466     *   changed.
18467     *
18468     * @section Genlist_Examples Examples
18469     *
18470     * Here is a list of examples that use the genlist, trying to show some of
18471     * its capabilities:
18472     * - @ref genlist_example_01
18473     * - @ref genlist_example_02
18474     * - @ref genlist_example_03
18475     * - @ref genlist_example_04
18476     * - @ref genlist_example_05
18477     */
18478
18479    /**
18480     * @addtogroup Genlist
18481     * @{
18482     */
18483
18484    /**
18485     * @enum _Elm_Genlist_Item_Flags
18486     * @typedef Elm_Genlist_Item_Flags
18487     *
18488     * Defines if the item is of any special type (has subitems or it's the
18489     * index of a group), or is just a simple item.
18490     *
18491     * @ingroup Genlist
18492     */
18493    typedef enum _Elm_Genlist_Item_Flags
18494      {
18495         ELM_GENLIST_ITEM_NONE = 0, /**< simple item */
18496         ELM_GENLIST_ITEM_SUBITEMS = (1 << 0), /**< may expand and have child items */
18497         ELM_GENLIST_ITEM_GROUP = (1 << 1) /**< index of a group of items */
18498      } Elm_Genlist_Item_Flags;
18499    typedef struct _Elm_Genlist_Item_Class Elm_Genlist_Item_Class;  /**< Genlist item class definition structs */
18500    #define Elm_Genlist_Item_Class Elm_Gen_Item_Class
18501    typedef struct _Elm_Genlist_Item       Elm_Genlist_Item; /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
18502    #define Elm_Genlist_Item Elm_Gen_Item /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
18503    typedef struct _Elm_Genlist_Item_Class_Func Elm_Genlist_Item_Class_Func; /**< Class functions for genlist item class */
18504    /**
18505     * Label fetching class function for Elm_Gen_Item_Class.
18506     * @param data The data passed in the item creation function
18507     * @param obj The base widget object
18508     * @param part The part name of the swallow
18509     * @return The allocated (NOT stringshared) string to set as the label
18510     */
18511    typedef char        *(*Elm_Genlist_Item_Label_Get_Cb) (void *data, Evas_Object *obj, const char *part);
18512    /**
18513     * Content (swallowed object) fetching class function for Elm_Gen_Item_Class.
18514     * @param data The data passed in the item creation function
18515     * @param obj The base widget object
18516     * @param part The part name of the swallow
18517     * @return The content object to swallow
18518     */
18519    typedef Evas_Object *(*Elm_Genlist_Item_Content_Get_Cb)  (void *data, Evas_Object *obj, const char *part);
18520    /**
18521     * State fetching class function for Elm_Gen_Item_Class.
18522     * @param data The data passed in the item creation function
18523     * @param obj The base widget object
18524     * @param part The part name of the swallow
18525     * @return The hell if I know
18526     */
18527    typedef Eina_Bool    (*Elm_Genlist_Item_State_Get_Cb) (void *data, Evas_Object *obj, const char *part);
18528    /**
18529     * Deletion class function for Elm_Gen_Item_Class.
18530     * @param data The data passed in the item creation function
18531     * @param obj The base widget object
18532     */
18533    typedef void         (*Elm_Genlist_Item_Del_Cb)      (void *data, Evas_Object *obj);
18534
18535    /**
18536     * @struct _Elm_Genlist_Item_Class
18537     *
18538     * Genlist item class definition structs.
18539     *
18540     * This struct contains the style and fetching functions that will define the
18541     * contents of each item.
18542     *
18543     * @see @ref Genlist_Item_Class
18544     */
18545    struct _Elm_Genlist_Item_Class
18546      {
18547         const char                *item_style; /**< style of this class. */
18548         struct Elm_Genlist_Item_Class_Func
18549           {
18550              Elm_Genlist_Item_Label_Get_Cb  label_get; /**< Label fetching class function for genlist item classes.*/
18551              Elm_Genlist_Item_Content_Get_Cb   content_get; /**< Content fetching class function for genlist item classes. */
18552              Elm_Genlist_Item_State_Get_Cb  state_get; /**< State fetching class function for genlist item classes. */
18553              Elm_Genlist_Item_Del_Cb        del; /**< Deletion class function for genlist item classes. */
18554           } func;
18555      };
18556    #define Elm_Genlist_Item_Class_Func Elm_Gen_Item_Class_Func
18557    /**
18558     * Add a new genlist widget to the given parent Elementary
18559     * (container) object
18560     *
18561     * @param parent The parent object
18562     * @return a new genlist widget handle or @c NULL, on errors
18563     *
18564     * This function inserts a new genlist widget on the canvas.
18565     *
18566     * @see elm_genlist_item_append()
18567     * @see elm_genlist_item_del()
18568     * @see elm_gen_clear()
18569     *
18570     * @ingroup Genlist
18571     */
18572    EAPI Evas_Object      *elm_genlist_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18573    /**
18574     * Remove all items from a given genlist widget.
18575     *
18576     * @param obj The genlist object
18577     *
18578     * This removes (and deletes) all items in @p obj, leaving it empty.
18579     *
18580     * This is deprecated. Please use elm_gen_clear() instead.
18581     * 
18582     * @see elm_genlist_item_del(), to remove just one item.
18583     *
18584     * @ingroup Genlist
18585     */
18586    EINA_DEPRECATED EAPI void elm_genlist_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
18587    /**
18588     * Enable or disable multi-selection in the genlist
18589     *
18590     * @param obj The genlist object
18591     * @param multi Multi-select enable/disable. Default is disabled.
18592     *
18593     * This enables (@c EINA_TRUE) or disables (@c EINA_FALSE) multi-selection in
18594     * the list. This allows more than 1 item to be selected. To retrieve the list
18595     * of selected items, use elm_genlist_selected_items_get().
18596     *
18597     * @see elm_genlist_selected_items_get()
18598     * @see elm_genlist_multi_select_get()
18599     *
18600     * @ingroup Genlist
18601     */
18602    EAPI void              elm_genlist_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
18603    /**
18604     * Gets if multi-selection in genlist is enabled or disabled.
18605     *
18606     * @param obj The genlist object
18607     * @return Multi-select enabled/disabled
18608     * (@c EINA_TRUE = enabled/@c EINA_FALSE = disabled). Default is @c EINA_FALSE.
18609     *
18610     * @see elm_genlist_multi_select_set()
18611     *
18612     * @ingroup Genlist
18613     */
18614    EAPI Eina_Bool         elm_genlist_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18615    /**
18616     * This sets the horizontal stretching mode.
18617     *
18618     * @param obj The genlist object
18619     * @param mode The mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).
18620     *
18621     * This sets the mode used for sizing items horizontally. Valid modes
18622     * are #ELM_LIST_LIMIT and #ELM_LIST_SCROLL. The default is
18623     * ELM_LIST_SCROLL. This mode means that if items are too wide to fit,
18624     * the scroller will scroll horizontally. Otherwise items are expanded
18625     * to fill the width of the viewport of the scroller. If it is
18626     * ELM_LIST_LIMIT, items will be expanded to the viewport width and
18627     * limited to that size.
18628     *
18629     * @see elm_genlist_horizontal_get()
18630     *
18631     * @ingroup Genlist
18632     */
18633    EAPI void              elm_genlist_horizontal_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
18634    EINA_DEPRECATED EAPI void              elm_genlist_horizontal_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
18635    /**
18636     * Gets the horizontal stretching mode.
18637     *
18638     * @param obj The genlist object
18639     * @return The mode to use
18640     * (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL)
18641     *
18642     * @see elm_genlist_horizontal_set()
18643     *
18644     * @ingroup Genlist
18645     */
18646    EAPI Elm_List_Mode     elm_genlist_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18647    EINA_DEPRECATED EAPI Elm_List_Mode     elm_genlist_horizontal_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18648    /**
18649     * Set the always select mode.
18650     *
18651     * @param obj The genlist object
18652     * @param always_select The always select mode (@c EINA_TRUE = on, @c
18653     * EINA_FALSE = off). Default is @c EINA_FALSE.
18654     *
18655     * Items will only call their selection func and callback when first
18656     * becoming selected. Any further clicks will do nothing, unless you
18657     * enable always select with elm_gen_always_select_mode_set().
18658     * This means that, even if selected, every click will make the selected
18659     * callbacks be called.
18660     * 
18661     * This function is deprecated. please see elm_gen_always_select_mode_set()
18662     *
18663     * @see elm_genlist_always_select_mode_get()
18664     *
18665     * @ingroup Genlist
18666     */
18667    EINA_DEPRECATED EAPI void              elm_genlist_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
18668    /**
18669     * Get the always select mode.
18670     *
18671     * @param obj The genlist object
18672     * @return The always select mode
18673     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
18674     *
18675     * @see elm_genlist_always_select_mode_set()
18676     *
18677     * @ingroup Genlist
18678     */
18679    EINA_DEPRECATED EAPI Eina_Bool         elm_genlist_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18680    /**
18681     * Enable/disable the no select mode.
18682     *
18683     * @param obj The genlist object
18684     * @param no_select The no select mode
18685     * (EINA_TRUE = on, EINA_FALSE = off)
18686     *
18687     * This will turn off the ability to select items entirely and they
18688     * will neither appear selected nor call selected callback functions.
18689     *
18690     * @see elm_genlist_no_select_mode_get()
18691     *
18692     * @ingroup Genlist
18693     */
18694    EINA_DEPRECATED EAPI void              elm_genlist_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
18695    /**
18696     * Gets whether the no select mode is enabled.
18697     *
18698     * @param obj The genlist object
18699     * @return The no select mode
18700     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
18701     *
18702     * @see elm_genlist_no_select_mode_set()
18703     *
18704     * @ingroup Genlist
18705     */
18706    EINA_DEPRECATED EAPI Eina_Bool         elm_genlist_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18707    /**
18708     * Enable/disable compress mode.
18709     *
18710     * @param obj The genlist object
18711     * @param compress The compress mode
18712     * (@c EINA_TRUE = on, @c EINA_FALSE = off). Default is @c EINA_FALSE.
18713     *
18714     * This will enable the compress mode where items are "compressed"
18715     * horizontally to fit the genlist scrollable viewport width. This is
18716     * special for genlist.  Do not rely on
18717     * elm_genlist_horizontal_set() being set to @c ELM_LIST_COMPRESS to
18718     * work as genlist needs to handle it specially.
18719     *
18720     * @see elm_genlist_compress_mode_get()
18721     *
18722     * @ingroup Genlist
18723     */
18724    EAPI void              elm_genlist_compress_mode_set(Evas_Object *obj, Eina_Bool compress) EINA_ARG_NONNULL(1);
18725    /**
18726     * Get whether the compress mode is enabled.
18727     *
18728     * @param obj The genlist object
18729     * @return The compress mode
18730     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
18731     *
18732     * @see elm_genlist_compress_mode_set()
18733     *
18734     * @ingroup Genlist
18735     */
18736    EAPI Eina_Bool         elm_genlist_compress_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18737    /**
18738     * Enable/disable height-for-width mode.
18739     *
18740     * @param obj The genlist object
18741     * @param setting The height-for-width mode (@c EINA_TRUE = on,
18742     * @c EINA_FALSE = off). Default is @c EINA_FALSE.
18743     *
18744     * With height-for-width mode the item width will be fixed (restricted
18745     * to a minimum of) to the list width when calculating its size in
18746     * order to allow the height to be calculated based on it. This allows,
18747     * for instance, text block to wrap lines if the Edje part is
18748     * configured with "text.min: 0 1".
18749     *
18750     * @note This mode will make list resize slower as it will have to
18751     *       recalculate every item height again whenever the list width
18752     *       changes!
18753     *
18754     * @note When height-for-width mode is enabled, it also enables
18755     *       compress mode (see elm_genlist_compress_mode_set()) and
18756     *       disables homogeneous (see elm_genlist_homogeneous_set()).
18757     *
18758     * @ingroup Genlist
18759     */
18760    EAPI void              elm_genlist_height_for_width_mode_set(Evas_Object *obj, Eina_Bool height_for_width) EINA_ARG_NONNULL(1);
18761    /**
18762     * Get whether the height-for-width mode is enabled.
18763     *
18764     * @param obj The genlist object
18765     * @return The height-for-width mode (@c EINA_TRUE = on, @c EINA_FALSE =
18766     * off)
18767     *
18768     * @ingroup Genlist
18769     */
18770    EAPI Eina_Bool         elm_genlist_height_for_width_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18771    /**
18772     * Enable/disable horizontal and vertical bouncing effect.
18773     *
18774     * @param obj The genlist object
18775     * @param h_bounce Allow bounce horizontally (@c EINA_TRUE = on, @c
18776     * EINA_FALSE = off). Default is @c EINA_FALSE.
18777     * @param v_bounce Allow bounce vertically (@c EINA_TRUE = on, @c
18778     * EINA_FALSE = off). Default is @c EINA_TRUE.
18779     *
18780     * This will enable or disable the scroller bouncing effect for the
18781     * genlist. See elm_scroller_bounce_set() for details.
18782     *
18783     * @see elm_scroller_bounce_set()
18784     * @see elm_genlist_bounce_get()
18785     *
18786     * @ingroup Genlist
18787     */
18788    EINA_DEPRECATED EAPI void              elm_genlist_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
18789    /**
18790     * Get whether the horizontal and vertical bouncing effect is enabled.
18791     *
18792     * @param obj The genlist object
18793     * @param h_bounce Pointer to a bool to receive if the bounce horizontally
18794     * option is set.
18795     * @param v_bounce Pointer to a bool to receive if the bounce vertically
18796     * option is set.
18797     *
18798     * @see elm_genlist_bounce_set()
18799     *
18800     * @ingroup Genlist
18801     */
18802    EINA_DEPRECATED EAPI void              elm_genlist_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
18803    /**
18804     * Enable/disable homogenous mode.
18805     *
18806     * @param obj The genlist object
18807     * @param homogeneous Assume the items within the genlist are of the
18808     * same height and width (EINA_TRUE = on, EINA_FALSE = off). Default is @c
18809     * EINA_FALSE.
18810     *
18811     * This will enable the homogeneous mode where items are of the same
18812     * height and width so that genlist may do the lazy-loading at its
18813     * maximum (which increases the performance for scrolling the list). This
18814     * implies 'compressed' mode.
18815     *
18816     * @see elm_genlist_compress_mode_set()
18817     * @see elm_genlist_homogeneous_get()
18818     *
18819     * @ingroup Genlist
18820     */
18821    EAPI void              elm_genlist_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
18822    /**
18823     * Get whether the homogenous mode is enabled.
18824     *
18825     * @param obj The genlist object
18826     * @return Assume the items within the genlist are of the same height
18827     * and width (EINA_TRUE = on, EINA_FALSE = off)
18828     *
18829     * @see elm_genlist_homogeneous_set()
18830     *
18831     * @ingroup Genlist
18832     */
18833    EAPI Eina_Bool         elm_genlist_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18834    /**
18835     * Set the maximum number of items within an item block
18836     *
18837     * @param obj The genlist object
18838     * @param n   Maximum number of items within an item block. Default is 32.
18839     *
18840     * This will configure the block count to tune to the target with
18841     * particular performance matrix.
18842     *
18843     * A block of objects will be used to reduce the number of operations due to
18844     * many objects in the screen. It can determine the visibility, or if the
18845     * object has changed, it theme needs to be updated, etc. doing this kind of
18846     * calculation to the entire block, instead of per object.
18847     *
18848     * The default value for the block count is enough for most lists, so unless
18849     * you know you will have a lot of objects visible in the screen at the same
18850     * time, don't try to change this.
18851     *
18852     * @see elm_genlist_block_count_get()
18853     * @see @ref Genlist_Implementation
18854     *
18855     * @ingroup Genlist
18856     */
18857    EAPI void              elm_genlist_block_count_set(Evas_Object *obj, int n) EINA_ARG_NONNULL(1);
18858    /**
18859     * Get the maximum number of items within an item block
18860     *
18861     * @param obj The genlist object
18862     * @return Maximum number of items within an item block
18863     *
18864     * @see elm_genlist_block_count_set()
18865     *
18866     * @ingroup Genlist
18867     */
18868    EAPI int               elm_genlist_block_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18869    /**
18870     * Set the timeout in seconds for the longpress event.
18871     *
18872     * @param obj The genlist object
18873     * @param timeout timeout in seconds. Default is 1.
18874     *
18875     * This option will change how long it takes to send an event "longpressed"
18876     * after the mouse down signal is sent to the list. If this event occurs, no
18877     * "clicked" event will be sent.
18878     *
18879     * @see elm_genlist_longpress_timeout_set()
18880     *
18881     * @ingroup Genlist
18882     */
18883    EAPI void              elm_genlist_longpress_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
18884    /**
18885     * Get the timeout in seconds for the longpress event.
18886     *
18887     * @param obj The genlist object
18888     * @return timeout in seconds
18889     *
18890     * @see elm_genlist_longpress_timeout_get()
18891     *
18892     * @ingroup Genlist
18893     */
18894    EAPI double            elm_genlist_longpress_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18895    /**
18896     * Append a new item in a given genlist widget.
18897     *
18898     * @param obj The genlist object
18899     * @param itc The item class for the item
18900     * @param data The item data
18901     * @param parent The parent item, or NULL if none
18902     * @param flags Item flags
18903     * @param func Convenience function called when the item is selected
18904     * @param func_data Data passed to @p func above.
18905     * @return A handle to the item added or @c NULL if not possible
18906     *
18907     * This adds the given item to the end of the list or the end of
18908     * the children list if the @p parent is given.
18909     *
18910     * @see elm_genlist_item_prepend()
18911     * @see elm_genlist_item_insert_before()
18912     * @see elm_genlist_item_insert_after()
18913     * @see elm_genlist_item_del()
18914     *
18915     * @ingroup Genlist
18916     */
18917    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);
18918    /**
18919     * Prepend a new item in a given genlist widget.
18920     *
18921     * @param obj The genlist object
18922     * @param itc The item class for the item
18923     * @param data The item data
18924     * @param parent The parent item, or NULL if none
18925     * @param flags Item flags
18926     * @param func Convenience function called when the item is selected
18927     * @param func_data Data passed to @p func above.
18928     * @return A handle to the item added or NULL if not possible
18929     *
18930     * This adds an item to the beginning of the list or beginning of the
18931     * children of the parent if given.
18932     *
18933     * @see elm_genlist_item_append()
18934     * @see elm_genlist_item_insert_before()
18935     * @see elm_genlist_item_insert_after()
18936     * @see elm_genlist_item_del()
18937     *
18938     * @ingroup Genlist
18939     */
18940    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);
18941    /**
18942     * Insert an item before another in a genlist widget
18943     *
18944     * @param obj The genlist object
18945     * @param itc The item class for the item
18946     * @param data The item data
18947     * @param before The item to place this new one before.
18948     * @param flags Item flags
18949     * @param func Convenience function called when the item is selected
18950     * @param func_data Data passed to @p func above.
18951     * @return A handle to the item added or @c NULL if not possible
18952     *
18953     * This inserts an item before another in the list. It will be in the
18954     * same tree level or group as the item it is inserted before.
18955     *
18956     * @see elm_genlist_item_append()
18957     * @see elm_genlist_item_prepend()
18958     * @see elm_genlist_item_insert_after()
18959     * @see elm_genlist_item_del()
18960     *
18961     * @ingroup Genlist
18962     */
18963    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);
18964    /**
18965     * Insert an item after another in a genlist widget
18966     *
18967     * @param obj The genlist object
18968     * @param itc The item class for the item
18969     * @param data The item data
18970     * @param after The item to place this new one after.
18971     * @param flags Item flags
18972     * @param func Convenience function called when the item is selected
18973     * @param func_data Data passed to @p func above.
18974     * @return A handle to the item added or @c NULL if not possible
18975     *
18976     * This inserts an item after another in the list. It will be in the
18977     * same tree level or group as the item it is inserted after.
18978     *
18979     * @see elm_genlist_item_append()
18980     * @see elm_genlist_item_prepend()
18981     * @see elm_genlist_item_insert_before()
18982     * @see elm_genlist_item_del()
18983     *
18984     * @ingroup Genlist
18985     */
18986    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);
18987    /**
18988     * Insert a new item into the sorted genlist object
18989     *
18990     * @param obj The genlist object
18991     * @param itc The item class for the item
18992     * @param data The item data
18993     * @param parent The parent item, or NULL if none
18994     * @param flags Item flags
18995     * @param comp The function called for the sort
18996     * @param func Convenience function called when item selected
18997     * @param func_data Data passed to @p func above.
18998     * @return A handle to the item added or NULL if not possible
18999     *
19000     * @ingroup Genlist
19001     */
19002    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);
19003    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);
19004    /* operations to retrieve existing items */
19005    /**
19006     * Get the selectd item in the genlist.
19007     *
19008     * @param obj The genlist object
19009     * @return The selected item, or NULL if none is selected.
19010     *
19011     * This gets the selected item in the list (if multi-selection is enabled, only
19012     * the item that was first selected in the list is returned - which is not very
19013     * useful, so see elm_genlist_selected_items_get() for when multi-selection is
19014     * used).
19015     *
19016     * If no item is selected, NULL is returned.
19017     *
19018     * @see elm_genlist_selected_items_get()
19019     *
19020     * @ingroup Genlist
19021     */
19022    EAPI Elm_Genlist_Item *elm_genlist_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19023    /**
19024     * Get a list of selected items in the genlist.
19025     *
19026     * @param obj The genlist object
19027     * @return The list of selected items, or NULL if none are selected.
19028     *
19029     * It returns a list of the selected items. This list pointer is only valid so
19030     * long as the selection doesn't change (no items are selected or unselected, or
19031     * unselected implicitly by deletion). The list contains Elm_Genlist_Item
19032     * pointers. The order of the items in this list is the order which they were
19033     * selected, i.e. the first item in this list is the first item that was
19034     * selected, and so on.
19035     *
19036     * @note If not in multi-select mode, consider using function
19037     * elm_genlist_selected_item_get() instead.
19038     *
19039     * @see elm_genlist_multi_select_set()
19040     * @see elm_genlist_selected_item_get()
19041     *
19042     * @ingroup Genlist
19043     */
19044    EAPI const Eina_List  *elm_genlist_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19045    /**
19046     * Get the mode item style of items in the genlist
19047     * @param obj The genlist object
19048     * @return The mode item style string, or NULL if none is specified
19049     * 
19050     * This is a constant string and simply defines the name of the
19051     * style that will be used for mode animations. It can be
19052     * @c NULL if you don't plan to use Genlist mode. See
19053     * elm_genlist_item_mode_set() for more info.
19054     * 
19055     * @ingroup Genlist
19056     */
19057    EAPI const char       *elm_genlist_mode_item_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19058    /**
19059     * Set the mode item style of items in the genlist
19060     * @param obj The genlist object
19061     * @param style The mode item style string, or NULL if none is desired
19062     * 
19063     * This is a constant string and simply defines the name of the
19064     * style that will be used for mode animations. It can be
19065     * @c NULL if you don't plan to use Genlist mode. See
19066     * elm_genlist_item_mode_set() for more info.
19067     * 
19068     * @ingroup Genlist
19069     */
19070    EAPI void              elm_genlist_mode_item_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
19071    /**
19072     * Get a list of realized items in genlist
19073     *
19074     * @param obj The genlist object
19075     * @return The list of realized items, nor NULL if none are realized.
19076     *
19077     * This returns a list of the realized items in the genlist. The list
19078     * contains Elm_Genlist_Item pointers. The list must be freed by the
19079     * caller when done with eina_list_free(). The item pointers in the
19080     * list are only valid so long as those items are not deleted or the
19081     * genlist is not deleted.
19082     *
19083     * @see elm_genlist_realized_items_update()
19084     *
19085     * @ingroup Genlist
19086     */
19087    EAPI Eina_List        *elm_genlist_realized_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19088    /**
19089     * Get the item that is at the x, y canvas coords.
19090     *
19091     * @param obj The gelinst object.
19092     * @param x The input x coordinate
19093     * @param y The input y coordinate
19094     * @param posret The position relative to the item returned here
19095     * @return The item at the coordinates or NULL if none
19096     *
19097     * This returns the item at the given coordinates (which are canvas
19098     * relative, not object-relative). If an item is at that coordinate,
19099     * that item handle is returned, and if @p posret is not NULL, the
19100     * integer pointed to is set to a value of -1, 0 or 1, depending if
19101     * the coordinate is on the upper portion of that item (-1), on the
19102     * middle section (0) or on the lower part (1). If NULL is returned as
19103     * an item (no item found there), then posret may indicate -1 or 1
19104     * based if the coordinate is above or below all items respectively in
19105     * the genlist.
19106     *
19107     * @ingroup Genlist
19108     */
19109    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);
19110    /**
19111     * Get the first item in the genlist
19112     *
19113     * This returns the first item in the list.
19114     *
19115     * @param obj The genlist object
19116     * @return The first item, or NULL if none
19117     *
19118     * @ingroup Genlist
19119     */
19120    EINA_DEPRECATED EAPI Elm_Genlist_Item *elm_genlist_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19121    /**
19122     * Get the last item in the genlist
19123     *
19124     * This returns the last item in the list.
19125     *
19126     * @return The last item, or NULL if none
19127     *
19128     * @ingroup Genlist
19129     */
19130    EINA_DEPRECATED EAPI Elm_Genlist_Item *elm_genlist_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19131    /**
19132     * Set the scrollbar policy
19133     *
19134     * @param obj The genlist object
19135     * @param policy_h Horizontal scrollbar policy.
19136     * @param policy_v Vertical scrollbar policy.
19137     *
19138     * This sets the scrollbar visibility policy for the given genlist
19139     * scroller. #ELM_SMART_SCROLLER_POLICY_AUTO means the scrollbar is
19140     * made visible if it is needed, and otherwise kept hidden.
19141     * #ELM_SMART_SCROLLER_POLICY_ON turns it on all the time, and
19142     * #ELM_SMART_SCROLLER_POLICY_OFF always keeps it off. This applies
19143     * respectively for the horizontal and vertical scrollbars. Default is
19144     * #ELM_SMART_SCROLLER_POLICY_AUTO
19145     *
19146     * @see elm_genlist_scroller_policy_get()
19147     *
19148     * @ingroup Genlist
19149     */
19150    EAPI void              elm_genlist_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
19151    /**
19152     * Get the scrollbar policy
19153     *
19154     * @param obj The genlist object
19155     * @param policy_h Pointer to store the horizontal scrollbar policy.
19156     * @param policy_v Pointer to store the vertical scrollbar policy.
19157     *
19158     * @see elm_genlist_scroller_policy_set()
19159     *
19160     * @ingroup Genlist
19161     */
19162    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);
19163    /**
19164     * Get the @b next item in a genlist widget's internal list of items,
19165     * given a handle to one of those items.
19166     *
19167     * @param item The genlist item to fetch next from
19168     * @return The item after @p item, or @c NULL if there's none (and
19169     * on errors)
19170     *
19171     * This returns the item placed after the @p item, on the container
19172     * genlist.
19173     *
19174     * @see elm_genlist_item_prev_get()
19175     *
19176     * @ingroup Genlist
19177     */
19178    EINA_DEPRECATED EAPI Elm_Genlist_Item  *elm_genlist_item_next_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19179    /**
19180     * Get the @b previous item in a genlist widget's internal list of items,
19181     * given a handle to one of those items.
19182     *
19183     * @param item The genlist item to fetch previous from
19184     * @return The item before @p item, or @c NULL if there's none (and
19185     * on errors)
19186     *
19187     * This returns the item placed before the @p item, on the container
19188     * genlist.
19189     *
19190     * @see elm_genlist_item_next_get()
19191     *
19192     * @ingroup Genlist
19193     */
19194    EINA_DEPRECATED EAPI Elm_Genlist_Item  *elm_genlist_item_prev_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19195    /**
19196     * Get the genlist object's handle which contains a given genlist
19197     * item
19198     *
19199     * @param item The item to fetch the container from
19200     * @return The genlist (parent) object
19201     *
19202     * This returns the genlist object itself that an item belongs to.
19203     *
19204     * This function is deprecated. Please use elm_gen_item_widget_get()
19205     * 
19206     * @ingroup Genlist
19207     */
19208    EINA_DEPRECATED EAPI Evas_Object       *elm_genlist_item_genlist_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19209    /**
19210     * Get the parent item of the given item
19211     *
19212     * @param it The item
19213     * @return The parent of the item or @c NULL if it has no parent.
19214     *
19215     * This returns the item that was specified as parent of the item @p it on
19216     * elm_genlist_item_append() and insertion related functions.
19217     *
19218     * @ingroup Genlist
19219     */
19220    EAPI Elm_Genlist_Item  *elm_genlist_item_parent_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19221    /**
19222     * Remove all sub-items (children) of the given item
19223     *
19224     * @param it The item
19225     *
19226     * This removes all items that are children (and their descendants) of the
19227     * given item @p it.
19228     *
19229     * @see elm_genlist_clear()
19230     * @see elm_genlist_item_del()
19231     *
19232     * @ingroup Genlist
19233     */
19234    EAPI void               elm_genlist_item_subitems_clear(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19235    /**
19236     * Set whether a given genlist item is selected or not
19237     *
19238     * @param it The item
19239     * @param selected Use @c EINA_TRUE, to make it selected, @c
19240     * EINA_FALSE to make it unselected
19241     *
19242     * This sets the selected state of an item. If multi selection is
19243     * not enabled on the containing genlist and @p selected is @c
19244     * EINA_TRUE, any other previously selected items will get
19245     * unselected in favor of this new one.
19246     *
19247     * @see elm_genlist_item_selected_get()
19248     *
19249     * @ingroup Genlist
19250     */
19251    EINA_DEPRECATED EAPI void elm_genlist_item_selected_set(Elm_Genlist_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
19252    /**
19253     * Get whether a given genlist item is selected or not
19254     *
19255     * @param it The item
19256     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
19257     *
19258     * @see elm_genlist_item_selected_set() for more details
19259     *
19260     * @ingroup Genlist
19261     */
19262    EINA_DEPRECATED EAPI Eina_Bool elm_genlist_item_selected_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19263    /**
19264     * Sets the expanded state of an item.
19265     *
19266     * @param it The item
19267     * @param expanded The expanded state (@c EINA_TRUE expanded, @c EINA_FALSE not expanded).
19268     *
19269     * This function flags the item of type #ELM_GENLIST_ITEM_SUBITEMS as
19270     * expanded or not.
19271     *
19272     * The theme will respond to this change visually, and a signal "expanded" or
19273     * "contracted" will be sent from the genlist with a pointer to the item that
19274     * has been expanded/contracted.
19275     *
19276     * Calling this function won't show or hide any child of this item (if it is
19277     * a parent). You must manually delete and create them on the callbacks fo
19278     * the "expanded" or "contracted" signals.
19279     *
19280     * @see elm_genlist_item_expanded_get()
19281     *
19282     * @ingroup Genlist
19283     */
19284    EAPI void               elm_genlist_item_expanded_set(Elm_Genlist_Item *item, Eina_Bool expanded) EINA_ARG_NONNULL(1);
19285    /**
19286     * Get the expanded state of an item
19287     *
19288     * @param it The item
19289     * @return The expanded state
19290     *
19291     * This gets the expanded state of an item.
19292     *
19293     * @see elm_genlist_item_expanded_set()
19294     *
19295     * @ingroup Genlist
19296     */
19297    EAPI Eina_Bool          elm_genlist_item_expanded_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19298    /**
19299     * Get the depth of expanded item
19300     *
19301     * @param it The genlist item object
19302     * @return The depth of expanded item
19303     *
19304     * @ingroup Genlist
19305     */
19306    EAPI int                elm_genlist_item_expanded_depth_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19307    /**
19308     * Set whether a given genlist item is disabled or not.
19309     *
19310     * @param it The item
19311     * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
19312     * to enable it back.
19313     *
19314     * A disabled item cannot be selected or unselected. It will also
19315     * change its appearance, to signal the user it's disabled.
19316     *
19317     * @see elm_genlist_item_disabled_get()
19318     *
19319     * @ingroup Genlist
19320     */
19321    EAPI void               elm_genlist_item_disabled_set(Elm_Genlist_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
19322    /**
19323     * Get whether a given genlist item is disabled or not.
19324     *
19325     * @param it The item
19326     * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
19327     * (and on errors).
19328     *
19329     * @see elm_genlist_item_disabled_set() for more details
19330     *
19331     * @ingroup Genlist
19332     */
19333    EAPI Eina_Bool          elm_genlist_item_disabled_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19334    /**
19335     * Sets the display only state of an item.
19336     *
19337     * @param it The item
19338     * @param display_only @c EINA_TRUE if the item is display only, @c
19339     * EINA_FALSE otherwise.
19340     *
19341     * A display only item cannot be selected or unselected. It is for
19342     * display only and not selecting or otherwise clicking, dragging
19343     * etc. by the user, thus finger size rules will not be applied to
19344     * this item.
19345     *
19346     * It's good to set group index items to display only state.
19347     *
19348     * @see elm_genlist_item_display_only_get()
19349     *
19350     * @ingroup Genlist
19351     */
19352    EAPI void               elm_genlist_item_display_only_set(Elm_Genlist_Item *it, Eina_Bool display_only) EINA_ARG_NONNULL(1);
19353    /**
19354     * Get the display only state of an item
19355     *
19356     * @param it The item
19357     * @return @c EINA_TRUE if the item is display only, @c
19358     * EINA_FALSE otherwise.
19359     *
19360     * @see elm_genlist_item_display_only_set()
19361     *
19362     * @ingroup Genlist
19363     */
19364    EAPI Eina_Bool          elm_genlist_item_display_only_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19365    /**
19366     * Show the portion of a genlist's internal list containing a given
19367     * item, immediately.
19368     *
19369     * @param it The item to display
19370     *
19371     * This causes genlist to jump to the given item @p it and show it (by
19372     * immediately scrolling to that position), if it is not fully visible.
19373     *
19374     * @see elm_genlist_item_bring_in()
19375     * @see elm_genlist_item_top_show()
19376     * @see elm_genlist_item_middle_show()
19377     *
19378     * @ingroup Genlist
19379     */
19380    EAPI void               elm_genlist_item_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19381    /**
19382     * Animatedly bring in, to the visible are of a genlist, a given
19383     * item on it.
19384     *
19385     * @param it The item to display
19386     *
19387     * This causes genlist to jump to the given item @p it and show it (by
19388     * animatedly scrolling), if it is not fully visible. This may use animation
19389     * to do so and take a period of time
19390     *
19391     * @see elm_genlist_item_show()
19392     * @see elm_genlist_item_top_bring_in()
19393     * @see elm_genlist_item_middle_bring_in()
19394     *
19395     * @ingroup Genlist
19396     */
19397    EAPI void               elm_genlist_item_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19398    /**
19399     * Show the portion of a genlist's internal list containing a given
19400     * item, immediately.
19401     *
19402     * @param it The item to display
19403     *
19404     * This causes genlist to jump to the given item @p it and show it (by
19405     * immediately scrolling to that position), if it is not fully visible.
19406     *
19407     * The item will be positioned at the top of the genlist viewport.
19408     *
19409     * @see elm_genlist_item_show()
19410     * @see elm_genlist_item_top_bring_in()
19411     *
19412     * @ingroup Genlist
19413     */
19414    EAPI void               elm_genlist_item_top_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19415    /**
19416     * Animatedly bring in, to the visible are of a genlist, a given
19417     * item on it.
19418     *
19419     * @param it The item
19420     *
19421     * This causes genlist to jump to the given item @p it and show it (by
19422     * animatedly scrolling), if it is not fully visible. This may use animation
19423     * to do so and take a period of time
19424     *
19425     * The item will be positioned at the top of the genlist viewport.
19426     *
19427     * @see elm_genlist_item_bring_in()
19428     * @see elm_genlist_item_top_show()
19429     *
19430     * @ingroup Genlist
19431     */
19432    EAPI void               elm_genlist_item_top_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19433    /**
19434     * Show the portion of a genlist's internal list containing a given
19435     * item, immediately.
19436     *
19437     * @param it The item to display
19438     *
19439     * This causes genlist to jump to the given item @p it and show it (by
19440     * immediately scrolling to that position), if it is not fully visible.
19441     *
19442     * The item will be positioned at the middle of the genlist viewport.
19443     *
19444     * @see elm_genlist_item_show()
19445     * @see elm_genlist_item_middle_bring_in()
19446     *
19447     * @ingroup Genlist
19448     */
19449    EAPI void               elm_genlist_item_middle_show(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19450    /**
19451     * Animatedly bring in, to the visible are of a genlist, a given
19452     * item on it.
19453     *
19454     * @param it The item
19455     *
19456     * This causes genlist to jump to the given item @p it and show it (by
19457     * animatedly scrolling), if it is not fully visible. This may use animation
19458     * to do so and take a period of time
19459     *
19460     * The item will be positioned at the middle of the genlist viewport.
19461     *
19462     * @see elm_genlist_item_bring_in()
19463     * @see elm_genlist_item_middle_show()
19464     *
19465     * @ingroup Genlist
19466     */
19467    EAPI void               elm_genlist_item_middle_bring_in(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19468    /**
19469     * Remove a genlist item from the its parent, deleting it.
19470     *
19471     * @param item The item to be removed.
19472     * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
19473     *
19474     * @see elm_genlist_clear(), to remove all items in a genlist at
19475     * once.
19476     *
19477     * @ingroup Genlist
19478     */
19479    EAPI void               elm_genlist_item_del(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19480    /**
19481     * Return the data associated to a given genlist item
19482     *
19483     * @param item The genlist item.
19484     * @return the data associated to this item.
19485     *
19486     * This returns the @c data value passed on the
19487     * elm_genlist_item_append() and related item addition calls.
19488     *
19489     * @see elm_genlist_item_append()
19490     * @see elm_genlist_item_data_set()
19491     *
19492     * @ingroup Genlist
19493     */
19494    EAPI void              *elm_genlist_item_data_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19495    /**
19496     * Set the data associated to a given genlist item
19497     *
19498     * @param item The genlist item
19499     * @param data The new data pointer to set on it
19500     *
19501     * This @b overrides the @c data value passed on the
19502     * elm_genlist_item_append() and related item addition calls. This
19503     * function @b won't call elm_genlist_item_update() automatically,
19504     * so you'd issue it afterwards if you want to hove the item
19505     * updated to reflect the that new data.
19506     *
19507     * @see elm_genlist_item_data_get()
19508     *
19509     * @ingroup Genlist
19510     */
19511    EAPI void               elm_genlist_item_data_set(Elm_Genlist_Item *it, const void *data) EINA_ARG_NONNULL(1);
19512    /**
19513     * Tells genlist to "orphan" icons fetchs by the item class
19514     *
19515     * @param it The item
19516     *
19517     * This instructs genlist to release references to icons in the item,
19518     * meaning that they will no longer be managed by genlist and are
19519     * floating "orphans" that can be re-used elsewhere if the user wants
19520     * to.
19521     *
19522     * @ingroup Genlist
19523     */
19524    EAPI void               elm_genlist_item_contents_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19525    EINA_DEPRECATED EAPI void               elm_genlist_item_icons_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19526    /**
19527     * Get the real Evas object created to implement the view of a
19528     * given genlist item
19529     *
19530     * @param item The genlist item.
19531     * @return the Evas object implementing this item's view.
19532     *
19533     * This returns the actual Evas object used to implement the
19534     * specified genlist item's view. This may be @c NULL, as it may
19535     * not have been created or may have been deleted, at any time, by
19536     * the genlist. <b>Do not modify this object</b> (move, resize,
19537     * show, hide, etc.), as the genlist is controlling it. This
19538     * function is for querying, emitting custom signals or hooking
19539     * lower level callbacks for events on that object. Do not delete
19540     * this object under any circumstances.
19541     *
19542     * @see elm_genlist_item_data_get()
19543     *
19544     * @ingroup Genlist
19545     */
19546    EAPI const Evas_Object *elm_genlist_item_object_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19547    /**
19548     * Update the contents of an item
19549     *
19550     * @param it The item
19551     *
19552     * This updates an item by calling all the item class functions again
19553     * to get the icons, labels and states. Use this when the original
19554     * item data has changed and the changes are desired to be reflected.
19555     *
19556     * Use elm_genlist_realized_items_update() to update all already realized
19557     * items.
19558     *
19559     * @see elm_genlist_realized_items_update()
19560     *
19561     * @ingroup Genlist
19562     */
19563    EAPI void               elm_genlist_item_update(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19564    /**
19565     * Update the item class of an item
19566     *
19567     * @param it The item
19568     * @param itc The item class for the item
19569     *
19570     * This sets another class fo the item, changing the way that it is
19571     * displayed. After changing the item class, elm_genlist_item_update() is
19572     * called on the item @p it.
19573     *
19574     * @ingroup Genlist
19575     */
19576    EAPI void               elm_genlist_item_item_class_update(Elm_Genlist_Item *it, const Elm_Genlist_Item_Class *itc) EINA_ARG_NONNULL(1, 2);
19577    EAPI const Elm_Genlist_Item_Class *elm_genlist_item_item_class_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19578    /**
19579     * Set the text to be shown in a given genlist item's tooltips.
19580     *
19581     * @param item The genlist item
19582     * @param text The text to set in the content
19583     *
19584     * This call will setup the text to be used as tooltip to that item
19585     * (analogous to elm_object_tooltip_text_set(), but being item
19586     * tooltips with higher precedence than object tooltips). It can
19587     * have only one tooltip at a time, so any previous tooltip data
19588     * will get removed.
19589     *
19590     * In order to set an icon or something else as a tooltip, look at
19591     * elm_genlist_item_tooltip_content_cb_set().
19592     *
19593     * @ingroup Genlist
19594     */
19595    EAPI void               elm_genlist_item_tooltip_text_set(Elm_Genlist_Item *item, const char *text) EINA_ARG_NONNULL(1);
19596    /**
19597     * Set the content to be shown in a given genlist item's tooltips
19598     *
19599     * @param item The genlist item.
19600     * @param func The function returning the tooltip contents.
19601     * @param data What to provide to @a func as callback data/context.
19602     * @param del_cb Called when data is not needed anymore, either when
19603     *        another callback replaces @p func, the tooltip is unset with
19604     *        elm_genlist_item_tooltip_unset() or the owner @p item
19605     *        dies. This callback receives as its first parameter the
19606     *        given @p data, being @c event_info the item handle.
19607     *
19608     * This call will setup the tooltip's contents to @p item
19609     * (analogous to elm_object_tooltip_content_cb_set(), but being
19610     * item tooltips with higher precedence than object tooltips). It
19611     * can have only one tooltip at a time, so any previous tooltip
19612     * content will get removed. @p func (with @p data) will be called
19613     * every time Elementary needs to show the tooltip and it should
19614     * return a valid Evas object, which will be fully managed by the
19615     * tooltip system, getting deleted when the tooltip is gone.
19616     *
19617     * In order to set just a text as a tooltip, look at
19618     * elm_genlist_item_tooltip_text_set().
19619     *
19620     * @ingroup Genlist
19621     */
19622    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);
19623    /**
19624     * Unset a tooltip from a given genlist item
19625     *
19626     * @param item genlist item to remove a previously set tooltip from.
19627     *
19628     * This call removes any tooltip set on @p item. The callback
19629     * provided as @c del_cb to
19630     * elm_genlist_item_tooltip_content_cb_set() will be called to
19631     * notify it is not used anymore (and have resources cleaned, if
19632     * need be).
19633     *
19634     * @see elm_genlist_item_tooltip_content_cb_set()
19635     *
19636     * @ingroup Genlist
19637     */
19638    EAPI void               elm_genlist_item_tooltip_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19639    /**
19640     * Set a different @b style for a given genlist item's tooltip.
19641     *
19642     * @param item genlist item with tooltip set
19643     * @param style the <b>theme style</b> to use on tooltips (e.g. @c
19644     * "default", @c "transparent", etc)
19645     *
19646     * Tooltips can have <b>alternate styles</b> to be displayed on,
19647     * which are defined by the theme set on Elementary. This function
19648     * works analogously as elm_object_tooltip_style_set(), but here
19649     * applied only to genlist item objects. The default style for
19650     * tooltips is @c "default".
19651     *
19652     * @note before you set a style you should define a tooltip with
19653     *       elm_genlist_item_tooltip_content_cb_set() or
19654     *       elm_genlist_item_tooltip_text_set()
19655     *
19656     * @see elm_genlist_item_tooltip_style_get()
19657     *
19658     * @ingroup Genlist
19659     */
19660    EAPI void               elm_genlist_item_tooltip_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
19661    /**
19662     * Get the style set a given genlist item's tooltip.
19663     *
19664     * @param item genlist item with tooltip already set on.
19665     * @return style the theme style in use, which defaults to
19666     *         "default". If the object does not have a tooltip set,
19667     *         then @c NULL is returned.
19668     *
19669     * @see elm_genlist_item_tooltip_style_set() for more details
19670     *
19671     * @ingroup Genlist
19672     */
19673    EAPI const char        *elm_genlist_item_tooltip_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19674    /**
19675     * @brief Disable size restrictions on an object's tooltip
19676     * @param item The tooltip's anchor object
19677     * @param disable If EINA_TRUE, size restrictions are disabled
19678     * @return EINA_FALSE on failure, EINA_TRUE on success
19679     *
19680     * This function allows a tooltip to expand beyond its parant window's canvas.
19681     * It will instead be limited only by the size of the display.
19682     */
19683    EAPI Eina_Bool          elm_genlist_item_tooltip_size_restrict_disable(Elm_Genlist_Item *item, Eina_Bool disable);
19684    /**
19685     * @brief Retrieve size restriction state of an object's tooltip
19686     * @param item The tooltip's anchor object
19687     * @return If EINA_TRUE, size restrictions are disabled
19688     *
19689     * This function returns whether a tooltip is allowed to expand beyond
19690     * its parant window's canvas.
19691     * It will instead be limited only by the size of the display.
19692     */
19693    EAPI Eina_Bool          elm_genlist_item_tooltip_size_restrict_disabled_get(const Elm_Genlist_Item *item);
19694    /**
19695     * Set the type of mouse pointer/cursor decoration to be shown,
19696     * when the mouse pointer is over the given genlist widget item
19697     *
19698     * @param item genlist item to customize cursor on
19699     * @param cursor the cursor type's name
19700     *
19701     * This function works analogously as elm_object_cursor_set(), but
19702     * here the cursor's changing area is restricted to the item's
19703     * area, and not the whole widget's. Note that that item cursors
19704     * have precedence over widget cursors, so that a mouse over @p
19705     * item will always show cursor @p type.
19706     *
19707     * If this function is called twice for an object, a previously set
19708     * cursor will be unset on the second call.
19709     *
19710     * @see elm_object_cursor_set()
19711     * @see elm_genlist_item_cursor_get()
19712     * @see elm_genlist_item_cursor_unset()
19713     *
19714     * @ingroup Genlist
19715     */
19716    EAPI void               elm_genlist_item_cursor_set(Elm_Genlist_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
19717    /**
19718     * Get the type of mouse pointer/cursor decoration set to be shown,
19719     * when the mouse pointer is over the given genlist widget item
19720     *
19721     * @param item genlist item with custom cursor set
19722     * @return the cursor type's name or @c NULL, if no custom cursors
19723     * were set to @p item (and on errors)
19724     *
19725     * @see elm_object_cursor_get()
19726     * @see elm_genlist_item_cursor_set() for more details
19727     * @see elm_genlist_item_cursor_unset()
19728     *
19729     * @ingroup Genlist
19730     */
19731    EAPI const char        *elm_genlist_item_cursor_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19732    /**
19733     * Unset any custom mouse pointer/cursor decoration set to be
19734     * shown, when the mouse pointer is over the given genlist widget
19735     * item, thus making it show the @b default cursor again.
19736     *
19737     * @param item a genlist item
19738     *
19739     * Use this call to undo any custom settings on this item's cursor
19740     * decoration, bringing it back to defaults (no custom style set).
19741     *
19742     * @see elm_object_cursor_unset()
19743     * @see elm_genlist_item_cursor_set() for more details
19744     *
19745     * @ingroup Genlist
19746     */
19747    EAPI void               elm_genlist_item_cursor_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19748    /**
19749     * Set a different @b style for a given custom cursor set for a
19750     * genlist item.
19751     *
19752     * @param item genlist item with custom cursor set
19753     * @param style the <b>theme style</b> to use (e.g. @c "default",
19754     * @c "transparent", etc)
19755     *
19756     * This function only makes sense when one is using custom mouse
19757     * cursor decorations <b>defined in a theme file</b> , which can
19758     * have, given a cursor name/type, <b>alternate styles</b> on
19759     * it. It works analogously as elm_object_cursor_style_set(), but
19760     * here applied only to genlist item objects.
19761     *
19762     * @warning Before you set a cursor style you should have defined a
19763     *       custom cursor previously on the item, with
19764     *       elm_genlist_item_cursor_set()
19765     *
19766     * @see elm_genlist_item_cursor_engine_only_set()
19767     * @see elm_genlist_item_cursor_style_get()
19768     *
19769     * @ingroup Genlist
19770     */
19771    EAPI void               elm_genlist_item_cursor_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
19772    /**
19773     * Get the current @b style set for a given genlist item's custom
19774     * cursor
19775     *
19776     * @param item genlist item with custom cursor set.
19777     * @return style the cursor style in use. If the object does not
19778     *         have a cursor set, then @c NULL is returned.
19779     *
19780     * @see elm_genlist_item_cursor_style_set() for more details
19781     *
19782     * @ingroup Genlist
19783     */
19784    EAPI const char        *elm_genlist_item_cursor_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19785    /**
19786     * Set if the (custom) cursor for a given genlist item should be
19787     * searched in its theme, also, or should only rely on the
19788     * rendering engine.
19789     *
19790     * @param item item with custom (custom) cursor already set on
19791     * @param engine_only Use @c EINA_TRUE to have cursors looked for
19792     * only on those provided by the rendering engine, @c EINA_FALSE to
19793     * have them searched on the widget's theme, as well.
19794     *
19795     * @note This call is of use only if you've set a custom cursor
19796     * for genlist items, with elm_genlist_item_cursor_set().
19797     *
19798     * @note By default, cursors will only be looked for between those
19799     * provided by the rendering engine.
19800     *
19801     * @ingroup Genlist
19802     */
19803    EAPI void               elm_genlist_item_cursor_engine_only_set(Elm_Genlist_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
19804    /**
19805     * Get if the (custom) cursor for a given genlist item is being
19806     * searched in its theme, also, or is only relying on the rendering
19807     * engine.
19808     *
19809     * @param item a genlist item
19810     * @return @c EINA_TRUE, if cursors are being looked for only on
19811     * those provided by the rendering engine, @c EINA_FALSE if they
19812     * are being searched on the widget's theme, as well.
19813     *
19814     * @see elm_genlist_item_cursor_engine_only_set(), for more details
19815     *
19816     * @ingroup Genlist
19817     */
19818    EAPI Eina_Bool          elm_genlist_item_cursor_engine_only_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19819    /**
19820     * Update the contents of all realized items.
19821     *
19822     * @param obj The genlist object.
19823     *
19824     * This updates all realized items by calling all the item class functions again
19825     * to get the icons, labels and states. Use this when the original
19826     * item data has changed and the changes are desired to be reflected.
19827     *
19828     * To update just one item, use elm_genlist_item_update().
19829     *
19830     * @see elm_genlist_realized_items_get()
19831     * @see elm_genlist_item_update()
19832     *
19833     * @ingroup Genlist
19834     */
19835    EAPI void               elm_genlist_realized_items_update(Evas_Object *obj) EINA_ARG_NONNULL(1);
19836    /**
19837     * Activate a genlist mode on an item
19838     *
19839     * @param item The genlist item
19840     * @param mode Mode name
19841     * @param mode_set Boolean to define set or unset mode.
19842     *
19843     * A genlist mode is a different way of selecting an item. Once a mode is
19844     * activated on an item, any other selected item is immediately unselected.
19845     * This feature provides an easy way of implementing a new kind of animation
19846     * for selecting an item, without having to entirely rewrite the item style
19847     * theme. However, the elm_genlist_selected_* API can't be used to get what
19848     * item is activate for a mode.
19849     *
19850     * The current item style will still be used, but applying a genlist mode to
19851     * an item will select it using a different kind of animation.
19852     *
19853     * The current active item for a mode can be found by
19854     * elm_genlist_mode_item_get().
19855     *
19856     * The characteristics of genlist mode are:
19857     * - Only one mode can be active at any time, and for only one item.
19858     * - Genlist handles deactivating other items when one item is activated.
19859     * - A mode is defined in the genlist theme (edc), and more modes can easily
19860     *   be added.
19861     * - A mode style and the genlist item style are different things. They
19862     *   can be combined to provide a default style to the item, with some kind
19863     *   of animation for that item when the mode is activated.
19864     *
19865     * When a mode is activated on an item, a new view for that item is created.
19866     * The theme of this mode defines the animation that will be used to transit
19867     * the item from the old view to the new view. This second (new) view will be
19868     * active for that item while the mode is active on the item, and will be
19869     * destroyed after the mode is totally deactivated from that item.
19870     *
19871     * @see elm_genlist_mode_get()
19872     * @see elm_genlist_mode_item_get()
19873     *
19874     * @ingroup Genlist
19875     */
19876    EAPI void               elm_genlist_item_mode_set(Elm_Genlist_Item *it, const char *mode_type, Eina_Bool mode_set) EINA_ARG_NONNULL(1, 2);
19877    /**
19878     * Get the last (or current) genlist mode used.
19879     *
19880     * @param obj The genlist object
19881     *
19882     * This function just returns the name of the last used genlist mode. It will
19883     * be the current mode if it's still active.
19884     *
19885     * @see elm_genlist_item_mode_set()
19886     * @see elm_genlist_mode_item_get()
19887     *
19888     * @ingroup Genlist
19889     */
19890    EAPI const char        *elm_genlist_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19891    /**
19892     * Get active genlist mode item
19893     *
19894     * @param obj The genlist object
19895     * @return The active item for that current mode. Or @c NULL if no item is
19896     * activated with any mode.
19897     *
19898     * This function returns the item that was activated with a mode, by the
19899     * function elm_genlist_item_mode_set().
19900     *
19901     * @see elm_genlist_item_mode_set()
19902     * @see elm_genlist_mode_get()
19903     *
19904     * @ingroup Genlist
19905     */
19906    EAPI const Elm_Genlist_Item *elm_genlist_mode_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19907
19908    /**
19909     * Set reorder mode
19910     *
19911     * @param obj The genlist object
19912     * @param reorder_mode The reorder mode
19913     * (EINA_TRUE = on, EINA_FALSE = off)
19914     *
19915     * @ingroup Genlist
19916     */
19917    EAPI void               elm_genlist_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
19918
19919    /**
19920     * Get the reorder mode
19921     *
19922     * @param obj The genlist object
19923     * @return The reorder mode
19924     * (EINA_TRUE = on, EINA_FALSE = off)
19925     *
19926     * @ingroup Genlist
19927     */
19928    EAPI Eina_Bool          elm_genlist_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19929
19930    /**
19931     * @}
19932     */
19933
19934    /**
19935     * @defgroup Check Check
19936     *
19937     * @image html img/widget/check/preview-00.png
19938     * @image latex img/widget/check/preview-00.eps
19939     * @image html img/widget/check/preview-01.png
19940     * @image latex img/widget/check/preview-01.eps
19941     * @image html img/widget/check/preview-02.png
19942     * @image latex img/widget/check/preview-02.eps
19943     *
19944     * @brief The check widget allows for toggling a value between true and
19945     * false.
19946     *
19947     * Check objects are a lot like radio objects in layout and functionality
19948     * except they do not work as a group, but independently and only toggle the
19949     * value of a boolean from false to true (0 or 1). elm_check_state_set() sets
19950     * the boolean state (1 for true, 0 for false), and elm_check_state_get()
19951     * returns the current state. For convenience, like the radio objects, you
19952     * can set a pointer to a boolean directly with elm_check_state_pointer_set()
19953     * for it to modify.
19954     *
19955     * Signals that you can add callbacks for are:
19956     * "changed" - This is called whenever the user changes the state of one of
19957     *             the check object(event_info is NULL).
19958     *
19959     * Default contents parts of the check widget that you can use for are:
19960     * @li "icon" - A icon of the check
19961     *
19962     * Default text parts of the check widget that you can use for are:
19963     * @li "elm.text" - Label of the check
19964     *
19965     * @ref tutorial_check should give you a firm grasp of how to use this widget
19966     * .
19967     * @{
19968     */
19969    /**
19970     * @brief Add a new Check object
19971     *
19972     * @param parent The parent object
19973     * @return The new object or NULL if it cannot be created
19974     */
19975    EAPI Evas_Object *elm_check_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19976    /**
19977     * @brief Set the text label of the check object
19978     *
19979     * @param obj The check object
19980     * @param label The text label string in UTF-8
19981     *
19982     * @deprecated use elm_object_text_set() instead.
19983     */
19984    EINA_DEPRECATED EAPI void         elm_check_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
19985    /**
19986     * @brief Get the text label of the check object
19987     *
19988     * @param obj The check object
19989     * @return The text label string in UTF-8
19990     *
19991     * @deprecated use elm_object_text_get() instead.
19992     */
19993    EINA_DEPRECATED EAPI const char  *elm_check_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19994    /**
19995     * @brief Set the icon object of the check object
19996     *
19997     * @param obj The check object
19998     * @param icon The icon object
19999     *
20000     * Once the icon object is set, a previously set one will be deleted.
20001     * If you want to keep that old content object, use the
20002     * elm_object_content_unset() function.
20003     *
20004     * @deprecated use elm_object_part_content_set() instead.
20005     *
20006     */
20007    EINA_DEPRECATED EAPI void         elm_check_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
20008    /**
20009     * @brief Get the icon object of the check object
20010     *
20011     * @param obj The check object
20012     * @return The icon object
20013     *
20014     * @deprecated use elm_object_part_content_get() instead.
20015     *  
20016     */
20017    EINA_DEPRECATED EAPI Evas_Object *elm_check_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20018    /**
20019     * @brief Unset the icon used for the check object
20020     *
20021     * @param obj The check object
20022     * @return The icon object that was being used
20023     *
20024     * Unparent and return the icon object which was set for this widget.
20025     *
20026     * @deprecated use elm_object_part_content_unset() instead.
20027     *
20028     */
20029    EINA_DEPRECATED EAPI Evas_Object *elm_check_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
20030    /**
20031     * @brief Set the on/off state of the check object
20032     *
20033     * @param obj The check object
20034     * @param state The state to use (1 == on, 0 == off)
20035     *
20036     * This sets the state of the check. If set
20037     * with elm_check_state_pointer_set() the state of that variable is also
20038     * changed. Calling this @b doesn't cause the "changed" signal to be emited.
20039     */
20040    EAPI void         elm_check_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
20041    /**
20042     * @brief Get the state of the check object
20043     *
20044     * @param obj The check object
20045     * @return The boolean state
20046     */
20047    EAPI Eina_Bool    elm_check_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20048    /**
20049     * @brief Set a convenience pointer to a boolean to change
20050     *
20051     * @param obj The check object
20052     * @param statep Pointer to the boolean to modify
20053     *
20054     * This sets a pointer to a boolean, that, in addition to the check objects
20055     * state will also be modified directly. To stop setting the object pointed
20056     * to simply use NULL as the @p statep parameter. If @p statep is not NULL,
20057     * then when this is called, the check objects state will also be modified to
20058     * reflect the value of the boolean @p statep points to, just like calling
20059     * elm_check_state_set().
20060     */
20061    EAPI void         elm_check_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
20062    EINA_DEPRECATED EAPI void         elm_check_states_labels_set(Evas_Object *obj, const char *ontext, const char *offtext) EINA_ARG_NONNULL(1,2,3);
20063    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);
20064
20065    /**
20066     * @}
20067     */
20068
20069    /**
20070     * @defgroup Radio Radio
20071     *
20072     * @image html img/widget/radio/preview-00.png
20073     * @image latex img/widget/radio/preview-00.eps
20074     *
20075     * @brief Radio is a widget that allows for 1 or more options to be displayed
20076     * and have the user choose only 1 of them.
20077     *
20078     * A radio object contains an indicator, an optional Label and an optional
20079     * icon object. While it's possible to have a group of only one radio they,
20080     * are normally used in groups of 2 or more. To add a radio to a group use
20081     * elm_radio_group_add(). The radio object(s) will select from one of a set
20082     * of integer values, so any value they are configuring needs to be mapped to
20083     * a set of integers. To configure what value that radio object represents,
20084     * use  elm_radio_state_value_set() to set the integer it represents. To set
20085     * the value the whole group(which one is currently selected) is to indicate
20086     * use elm_radio_value_set() on any group member, and to get the groups value
20087     * use elm_radio_value_get(). For convenience the radio objects are also able
20088     * to directly set an integer(int) to the value that is selected. To specify
20089     * the pointer to this integer to modify, use elm_radio_value_pointer_set().
20090     * The radio objects will modify this directly. That implies the pointer must
20091     * point to valid memory for as long as the radio objects exist.
20092     *
20093     * Signals that you can add callbacks for are:
20094     * @li changed - This is called whenever the user changes the state of one of
20095     * the radio objects within the group of radio objects that work together.
20096     *
20097     * Default contents parts of the radio widget that you can use for are:
20098     * @li "icon" - A icon of the radio
20099     *
20100     * @ref tutorial_radio show most of this API in action.
20101     * @{
20102     */
20103    /**
20104     * @brief Add a new radio to the parent
20105     *
20106     * @param parent The parent object
20107     * @return The new object or NULL if it cannot be created
20108     */
20109    EAPI Evas_Object *elm_radio_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20110    /**
20111     * @brief Set the text label of the radio object
20112     *
20113     * @param obj The radio object
20114     * @param label The text label string in UTF-8
20115     *
20116     * @deprecated use elm_object_text_set() instead.
20117     */
20118    EINA_DEPRECATED EAPI void         elm_radio_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
20119    /**
20120     * @brief Get the text label of the radio object
20121     *
20122     * @param obj The radio object
20123     * @return The text label string in UTF-8
20124     *
20125     * @deprecated use elm_object_text_set() instead.
20126     */
20127    EINA_DEPRECATED EAPI const char  *elm_radio_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20128    /**
20129     * @brief Set the icon object of the radio object
20130     *
20131     * @param obj The radio object
20132     * @param icon The icon object
20133     *
20134     * Once the icon object is set, a previously set one will be deleted. If you
20135     * want to keep that old content object, use the elm_radio_icon_unset()
20136     * function.
20137     *
20138     * @deprecated use elm_object_part_content_set() instead.
20139     *
20140     */
20141    EINA_DEPRECATED EAPI void         elm_radio_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
20142    /**
20143     * @brief Get the icon object of the radio object
20144     *
20145     * @param obj The radio object
20146     * @return The icon object
20147     *
20148     * @see elm_radio_icon_set()
20149     *
20150     * @deprecated use elm_object_part_content_get() instead.
20151     *
20152     */
20153    EINA_DEPRECATED EAPI Evas_Object *elm_radio_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20154    /**
20155     * @brief Unset the icon used for the radio object
20156     *
20157     * @param obj The radio object
20158     * @return The icon object that was being used
20159     *
20160     * Unparent and return the icon object which was set for this widget.
20161     *
20162     * @see elm_radio_icon_set()
20163     * @deprecated use elm_object_part_content_unset() instead.
20164     *
20165     */
20166    EINA_DEPRECATED EAPI Evas_Object *elm_radio_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
20167    /**
20168     * @brief Add this radio to a group of other radio objects
20169     *
20170     * @param obj The radio object
20171     * @param group Any object whose group the @p obj is to join.
20172     *
20173     * Radio objects work in groups. Each member should have a different integer
20174     * value assigned. In order to have them work as a group, they need to know
20175     * about each other. This adds the given radio object to the group of which
20176     * the group object indicated is a member.
20177     */
20178    EAPI void         elm_radio_group_add(Evas_Object *obj, Evas_Object *group) EINA_ARG_NONNULL(1);
20179    /**
20180     * @brief Set the integer value that this radio object represents
20181     *
20182     * @param obj The radio object
20183     * @param value The value to use if this radio object is selected
20184     *
20185     * This sets the value of the radio.
20186     */
20187    EAPI void         elm_radio_state_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
20188    /**
20189     * @brief Get the integer value that this radio object represents
20190     *
20191     * @param obj The radio object
20192     * @return The value used if this radio object is selected
20193     *
20194     * This gets the value of the radio.
20195     *
20196     * @see elm_radio_value_set()
20197     */
20198    EAPI int          elm_radio_state_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20199    /**
20200     * @brief Set the value of the radio.
20201     *
20202     * @param obj The radio object
20203     * @param value The value to use for the group
20204     *
20205     * This sets the value of the radio group and will also set the value if
20206     * pointed to, to the value supplied, but will not call any callbacks.
20207     */
20208    EAPI void         elm_radio_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
20209    /**
20210     * @brief Get the state of the radio object
20211     *
20212     * @param obj The radio object
20213     * @return The integer state
20214     */
20215    EAPI int          elm_radio_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20216    /**
20217     * @brief Set a convenience pointer to a integer to change
20218     *
20219     * @param obj The radio object
20220     * @param valuep Pointer to the integer to modify
20221     *
20222     * This sets a pointer to a integer, that, in addition to the radio objects
20223     * state will also be modified directly. To stop setting the object pointed
20224     * to simply use NULL as the @p valuep argument. If valuep is not NULL, then
20225     * when this is called, the radio objects state will also be modified to
20226     * reflect the value of the integer valuep points to, just like calling
20227     * elm_radio_value_set().
20228     */
20229    EAPI void         elm_radio_value_pointer_set(Evas_Object *obj, int *valuep) EINA_ARG_NONNULL(1);
20230    /**
20231     * @}
20232     */
20233
20234    /**
20235     * @defgroup Pager Pager
20236     *
20237     * @image html img/widget/pager/preview-00.png
20238     * @image latex img/widget/pager/preview-00.eps
20239     *
20240     * @brief Widget that allows flipping between one or more ā€œpagesā€
20241     * of objects.
20242     *
20243     * The flipping between pages of objects is animated. All content
20244     * in the pager is kept in a stack, being the last content added
20245     * (visible one) on the top of that stack.
20246     *
20247     * Objects can be pushed or popped from the stack or deleted as
20248     * well. Pushes and pops will animate the widget accordingly to its
20249     * style (a pop will also delete the child object once the
20250     * animation is finished). Any object already in the pager can be
20251     * promoted to the top (from its current stacking position) through
20252     * the use of elm_pager_content_promote(). New objects are pushed
20253     * to the top with elm_pager_content_push(). When the top item is
20254     * no longer wanted, simply pop it with elm_pager_content_pop() and
20255     * it will also be deleted. If an object is no longer needed and is
20256     * not the top item, just delete it as normal. You can query which
20257     * objects are the top and bottom with
20258     * elm_pager_content_bottom_get() and elm_pager_content_top_get().
20259     *
20260     * Signals that you can add callbacks for are:
20261     * - @c "show,finished" - when a new page is actually shown on the top
20262     * - @c "hide,finished" - when a previous page is hidden
20263     *
20264     * Only after the first of that signals the child object is
20265     * guaranteed to be visible, as in @c evas_object_visible_get().
20266     *
20267     * This widget has the following styles available:
20268     * - @c "default"
20269     * - @c "fade"
20270     * - @c "fade_translucide"
20271     * - @c "fade_invisible"
20272     *
20273     * @note These styles affect only the flipping animations on the
20274     * default theme; the appearance when not animating is unaffected
20275     * by them.
20276     *
20277     * @ref tutorial_pager gives a good overview of the usage of the API.
20278     * @{
20279     */
20280
20281    /**
20282     * Add a new pager to the parent
20283     *
20284     * @param parent The parent object
20285     * @return The new object or NULL if it cannot be created
20286     *
20287     * @ingroup Pager
20288     */
20289    EAPI Evas_Object *elm_pager_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20290
20291    /**
20292     * @brief Push an object to the top of the pager stack (and show it).
20293     *
20294     * @param obj The pager object
20295     * @param content The object to push
20296     *
20297     * The object pushed becomes a child of the pager, it will be controlled and
20298     * deleted when the pager is deleted.
20299     *
20300     * @note If the content is already in the stack use
20301     * elm_pager_content_promote().
20302     * @warning Using this function on @p content already in the stack results in
20303     * undefined behavior.
20304     */
20305    EAPI void         elm_pager_content_push(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
20306
20307    /**
20308     * @brief Pop the object that is on top of the stack
20309     *
20310     * @param obj The pager object
20311     *
20312     * This pops the object that is on the top(visible) of the pager, makes it
20313     * disappear, then deletes the object. The object that was underneath it on
20314     * the stack will become visible.
20315     */
20316    EAPI void         elm_pager_content_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
20317
20318    /**
20319     * @brief Moves an object already in the pager stack to the top of the stack.
20320     *
20321     * @param obj The pager object
20322     * @param content The object to promote
20323     *
20324     * This will take the @p content and move it to the top of the stack as
20325     * if it had been pushed there.
20326     *
20327     * @note If the content isn't already in the stack use
20328     * elm_pager_content_push().
20329     * @warning Using this function on @p content not already in the stack
20330     * results in undefined behavior.
20331     */
20332    EAPI void         elm_pager_content_promote(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
20333
20334    /**
20335     * @brief Return the object at the bottom of the pager stack
20336     *
20337     * @param obj The pager object
20338     * @return The bottom object or NULL if none
20339     */
20340    EAPI Evas_Object *elm_pager_content_bottom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20341
20342    /**
20343     * @brief  Return the object at the top of the pager stack
20344     *
20345     * @param obj The pager object
20346     * @return The top object or NULL if none
20347     */
20348    EAPI Evas_Object *elm_pager_content_top_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20349
20350    /**
20351     * @}
20352     */
20353
20354    /**
20355     * @defgroup Slideshow Slideshow
20356     *
20357     * @image html img/widget/slideshow/preview-00.png
20358     * @image latex img/widget/slideshow/preview-00.eps
20359     *
20360     * This widget, as the name indicates, is a pre-made image
20361     * slideshow panel, with API functions acting on (child) image
20362     * items presentation. Between those actions, are:
20363     * - advance to next/previous image
20364     * - select the style of image transition animation
20365     * - set the exhibition time for each image
20366     * - start/stop the slideshow
20367     *
20368     * The transition animations are defined in the widget's theme,
20369     * consequently new animations can be added without having to
20370     * update the widget's code.
20371     *
20372     * @section Slideshow_Items Slideshow items
20373     *
20374     * For slideshow items, just like for @ref Genlist "genlist" ones,
20375     * the user defines a @b classes, specifying functions that will be
20376     * called on the item's creation and deletion times.
20377     *
20378     * The #Elm_Slideshow_Item_Class structure contains the following
20379     * members:
20380     *
20381     * - @c func.get - When an item is displayed, this function is
20382     *   called, and it's where one should create the item object, de
20383     *   facto. For example, the object can be a pure Evas image object
20384     *   or an Elementary @ref Photocam "photocam" widget. See
20385     *   #SlideshowItemGetFunc.
20386     * - @c func.del - When an item is no more displayed, this function
20387     *   is called, where the user must delete any data associated to
20388     *   the item. See #SlideshowItemDelFunc.
20389     *
20390     * @section Slideshow_Caching Slideshow caching
20391     *
20392     * The slideshow provides facilities to have items adjacent to the
20393     * one being displayed <b>already "realized"</b> (i.e. loaded) for
20394     * you, so that the system does not have to decode image data
20395     * anymore at the time it has to actually switch images on its
20396     * viewport. The user is able to set the numbers of items to be
20397     * cached @b before and @b after the current item, in the widget's
20398     * item list.
20399     *
20400     * Smart events one can add callbacks for are:
20401     *
20402     * - @c "changed" - when the slideshow switches its view to a new
20403     *   item
20404     *
20405     * List of examples for the slideshow widget:
20406     * @li @ref slideshow_example
20407     */
20408
20409    /**
20410     * @addtogroup Slideshow
20411     * @{
20412     */
20413
20414    typedef struct _Elm_Slideshow_Item_Class Elm_Slideshow_Item_Class; /**< Slideshow item class definition struct */
20415    typedef struct _Elm_Slideshow_Item_Class_Func Elm_Slideshow_Item_Class_Func; /**< Class functions for slideshow item classes. */
20416    typedef struct _Elm_Slideshow_Item       Elm_Slideshow_Item; /**< Slideshow item handle */
20417    typedef Evas_Object *(*SlideshowItemGetFunc) (void *data, Evas_Object *obj); /**< Image fetching class function for slideshow item classes. */
20418    typedef void         (*SlideshowItemDelFunc) (void *data, Evas_Object *obj); /**< Deletion class function for slideshow item classes. */
20419
20420    /**
20421     * @struct _Elm_Slideshow_Item_Class
20422     *
20423     * Slideshow item class definition. See @ref Slideshow_Items for
20424     * field details.
20425     */
20426    struct _Elm_Slideshow_Item_Class
20427      {
20428         struct _Elm_Slideshow_Item_Class_Func
20429           {
20430              SlideshowItemGetFunc get;
20431              SlideshowItemDelFunc del;
20432           } func;
20433      }; /**< #Elm_Slideshow_Item_Class member definitions */
20434
20435    /**
20436     * Add a new slideshow widget to the given parent Elementary
20437     * (container) object
20438     *
20439     * @param parent The parent object
20440     * @return A new slideshow widget handle or @c NULL, on errors
20441     *
20442     * This function inserts a new slideshow widget on the canvas.
20443     *
20444     * @ingroup Slideshow
20445     */
20446    EAPI Evas_Object        *elm_slideshow_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20447
20448    /**
20449     * Add (append) a new item in a given slideshow widget.
20450     *
20451     * @param obj The slideshow object
20452     * @param itc The item class for the item
20453     * @param data The item's data
20454     * @return A handle to the item added or @c NULL, on errors
20455     *
20456     * Add a new item to @p obj's internal list of items, appending it.
20457     * The item's class must contain the function really fetching the
20458     * image object to show for this item, which could be an Evas image
20459     * object or an Elementary photo, for example. The @p data
20460     * parameter is going to be passed to both class functions of the
20461     * item.
20462     *
20463     * @see #Elm_Slideshow_Item_Class
20464     * @see elm_slideshow_item_sorted_insert()
20465     *
20466     * @ingroup Slideshow
20467     */
20468    EAPI Elm_Slideshow_Item *elm_slideshow_item_add(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data) EINA_ARG_NONNULL(1);
20469
20470    /**
20471     * Insert a new item into the given slideshow widget, using the @p func
20472     * function to sort items (by item handles).
20473     *
20474     * @param obj The slideshow object
20475     * @param itc The item class for the item
20476     * @param data The item's data
20477     * @param func The comparing function to be used to sort slideshow
20478     * items <b>by #Elm_Slideshow_Item item handles</b>
20479     * @return Returns The slideshow item handle, on success, or
20480     * @c NULL, on errors
20481     *
20482     * Add a new item to @p obj's internal list of items, in a position
20483     * determined by the @p func comparing function. The item's class
20484     * must contain the function really fetching the image object to
20485     * show for this item, which could be an Evas image object or an
20486     * Elementary photo, for example. The @p data parameter is going to
20487     * be passed to both class functions of the item.
20488     *
20489     * @see #Elm_Slideshow_Item_Class
20490     * @see elm_slideshow_item_add()
20491     *
20492     * @ingroup Slideshow
20493     */
20494    EAPI Elm_Slideshow_Item *elm_slideshow_item_sorted_insert(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data, Eina_Compare_Cb func) EINA_ARG_NONNULL(1);
20495
20496    /**
20497     * Display a given slideshow widget's item, programmatically.
20498     *
20499     * @param obj The slideshow object
20500     * @param item The item to display on @p obj's viewport
20501     *
20502     * The change between the current item and @p item will use the
20503     * transition @p obj is set to use (@see
20504     * elm_slideshow_transition_set()).
20505     *
20506     * @ingroup Slideshow
20507     */
20508    EAPI void                elm_slideshow_show(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
20509
20510    /**
20511     * Slide to the @b next item, in a given slideshow widget
20512     *
20513     * @param obj The slideshow object
20514     *
20515     * The sliding animation @p obj is set to use will be the
20516     * transition effect used, after this call is issued.
20517     *
20518     * @note If the end of the slideshow's internal list of items is
20519     * reached, it'll wrap around to the list's beginning, again.
20520     *
20521     * @ingroup Slideshow
20522     */
20523    EAPI void                elm_slideshow_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
20524
20525    /**
20526     * Slide to the @b previous item, in a given slideshow widget
20527     *
20528     * @param obj The slideshow object
20529     *
20530     * The sliding animation @p obj is set to use will be the
20531     * transition effect used, after this call is issued.
20532     *
20533     * @note If the beginning of the slideshow's internal list of items
20534     * is reached, it'll wrap around to the list's end, again.
20535     *
20536     * @ingroup Slideshow
20537     */
20538    EAPI void                elm_slideshow_previous(Evas_Object *obj) EINA_ARG_NONNULL(1);
20539
20540    /**
20541     * Returns the list of sliding transition/effect names available, for a
20542     * given slideshow widget.
20543     *
20544     * @param obj The slideshow object
20545     * @return The list of transitions (list of @b stringshared strings
20546     * as data)
20547     *
20548     * The transitions, which come from @p obj's theme, must be an EDC
20549     * data item named @c "transitions" on the theme file, with (prefix)
20550     * names of EDC programs actually implementing them.
20551     *
20552     * The available transitions for slideshows on the default theme are:
20553     * - @c "fade" - the current item fades out, while the new one
20554     *   fades in to the slideshow's viewport.
20555     * - @c "black_fade" - the current item fades to black, and just
20556     *   then, the new item will fade in.
20557     * - @c "horizontal" - the current item slides horizontally, until
20558     *   it gets out of the slideshow's viewport, while the new item
20559     *   comes from the left to take its place.
20560     * - @c "vertical" - the current item slides vertically, until it
20561     *   gets out of the slideshow's viewport, while the new item comes
20562     *   from the bottom to take its place.
20563     * - @c "square" - the new item starts to appear from the middle of
20564     *   the current one, but with a tiny size, growing until its
20565     *   target (full) size and covering the old one.
20566     *
20567     * @warning The stringshared strings get no new references
20568     * exclusive to the user grabbing the list, here, so if you'd like
20569     * to use them out of this call's context, you'd better @c
20570     * eina_stringshare_ref() them.
20571     *
20572     * @see elm_slideshow_transition_set()
20573     *
20574     * @ingroup Slideshow
20575     */
20576    EAPI const Eina_List    *elm_slideshow_transitions_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20577
20578    /**
20579     * Set the current slide transition/effect in use for a given
20580     * slideshow widget
20581     *
20582     * @param obj The slideshow object
20583     * @param transition The new transition's name string
20584     *
20585     * If @p transition is implemented in @p obj's theme (i.e., is
20586     * contained in the list returned by
20587     * elm_slideshow_transitions_get()), this new sliding effect will
20588     * be used on the widget.
20589     *
20590     * @see elm_slideshow_transitions_get() for more details
20591     *
20592     * @ingroup Slideshow
20593     */
20594    EAPI void                elm_slideshow_transition_set(Evas_Object *obj, const char *transition) EINA_ARG_NONNULL(1);
20595
20596    /**
20597     * Get the current slide transition/effect in use for a given
20598     * slideshow widget
20599     *
20600     * @param obj The slideshow object
20601     * @return The current transition's name
20602     *
20603     * @see elm_slideshow_transition_set() for more details
20604     *
20605     * @ingroup Slideshow
20606     */
20607    EAPI const char         *elm_slideshow_transition_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20608
20609    /**
20610     * Set the interval between each image transition on a given
20611     * slideshow widget, <b>and start the slideshow, itself</b>
20612     *
20613     * @param obj The slideshow object
20614     * @param timeout The new displaying timeout for images
20615     *
20616     * After this call, the slideshow widget will start cycling its
20617     * view, sequentially and automatically, with the images of the
20618     * items it has. The time between each new image displayed is going
20619     * to be @p timeout, in @b seconds. If a different timeout was set
20620     * previously and an slideshow was in progress, it will continue
20621     * with the new time between transitions, after this call.
20622     *
20623     * @note A value less than or equal to 0 on @p timeout will disable
20624     * the widget's internal timer, thus halting any slideshow which
20625     * could be happening on @p obj.
20626     *
20627     * @see elm_slideshow_timeout_get()
20628     *
20629     * @ingroup Slideshow
20630     */
20631    EAPI void                elm_slideshow_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
20632
20633    /**
20634     * Get the interval set for image transitions on a given slideshow
20635     * widget.
20636     *
20637     * @param obj The slideshow object
20638     * @return Returns the timeout set on it
20639     *
20640     * @see elm_slideshow_timeout_set() for more details
20641     *
20642     * @ingroup Slideshow
20643     */
20644    EAPI double              elm_slideshow_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20645
20646    /**
20647     * Set if, after a slideshow is started, for a given slideshow
20648     * widget, its items should be displayed cyclically or not.
20649     *
20650     * @param obj The slideshow object
20651     * @param loop Use @c EINA_TRUE to make it cycle through items or
20652     * @c EINA_FALSE for it to stop at the end of @p obj's internal
20653     * list of items
20654     *
20655     * @note elm_slideshow_next() and elm_slideshow_previous() will @b
20656     * ignore what is set by this functions, i.e., they'll @b always
20657     * cycle through items. This affects only the "automatic"
20658     * slideshow, as set by elm_slideshow_timeout_set().
20659     *
20660     * @see elm_slideshow_loop_get()
20661     *
20662     * @ingroup Slideshow
20663     */
20664    EAPI void                elm_slideshow_loop_set(Evas_Object *obj, Eina_Bool loop) EINA_ARG_NONNULL(1);
20665
20666    /**
20667     * Get if, after a slideshow is started, for a given slideshow
20668     * widget, its items are to be displayed cyclically or not.
20669     *
20670     * @param obj The slideshow object
20671     * @return @c EINA_TRUE, if the items in @p obj will be cycled
20672     * through or @c EINA_FALSE, otherwise
20673     *
20674     * @see elm_slideshow_loop_set() for more details
20675     *
20676     * @ingroup Slideshow
20677     */
20678    EAPI Eina_Bool           elm_slideshow_loop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20679
20680    /**
20681     * Remove all items from a given slideshow widget
20682     *
20683     * @param obj The slideshow object
20684     *
20685     * This removes (and deletes) all items in @p obj, leaving it
20686     * empty.
20687     *
20688     * @see elm_slideshow_item_del(), to remove just one item.
20689     *
20690     * @ingroup Slideshow
20691     */
20692    EAPI void                elm_slideshow_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
20693
20694    /**
20695     * Get the internal list of items in a given slideshow widget.
20696     *
20697     * @param obj The slideshow object
20698     * @return The list of items (#Elm_Slideshow_Item as data) or
20699     * @c NULL on errors.
20700     *
20701     * This list is @b not to be modified in any way and must not be
20702     * freed. Use the list members with functions like
20703     * elm_slideshow_item_del(), elm_slideshow_item_data_get().
20704     *
20705     * @warning This list is only valid until @p obj object's internal
20706     * items list is changed. It should be fetched again with another
20707     * call to this function when changes happen.
20708     *
20709     * @ingroup Slideshow
20710     */
20711    EAPI const Eina_List    *elm_slideshow_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20712
20713    /**
20714     * Delete a given item from a slideshow widget.
20715     *
20716     * @param item The slideshow item
20717     *
20718     * @ingroup Slideshow
20719     */
20720    EAPI void                elm_slideshow_item_del(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
20721
20722    /**
20723     * Return the data associated with a given slideshow item
20724     *
20725     * @param item The slideshow item
20726     * @return Returns the data associated to this item
20727     *
20728     * @ingroup Slideshow
20729     */
20730    EAPI void               *elm_slideshow_item_data_get(const Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
20731
20732    /**
20733     * Returns the currently displayed item, in a given slideshow widget
20734     *
20735     * @param obj The slideshow object
20736     * @return A handle to the item being displayed in @p obj or
20737     * @c NULL, if none is (and on errors)
20738     *
20739     * @ingroup Slideshow
20740     */
20741    EAPI Elm_Slideshow_Item *elm_slideshow_item_current_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20742
20743    /**
20744     * Get the real Evas object created to implement the view of a
20745     * given slideshow item
20746     *
20747     * @param item The slideshow item.
20748     * @return the Evas object implementing this item's view.
20749     *
20750     * This returns the actual Evas object used to implement the
20751     * specified slideshow item's view. This may be @c NULL, as it may
20752     * not have been created or may have been deleted, at any time, by
20753     * the slideshow. <b>Do not modify this object</b> (move, resize,
20754     * show, hide, etc.), as the slideshow is controlling it. This
20755     * function is for querying, emitting custom signals or hooking
20756     * lower level callbacks for events on that object. Do not delete
20757     * this object under any circumstances.
20758     *
20759     * @see elm_slideshow_item_data_get()
20760     *
20761     * @ingroup Slideshow
20762     */
20763    EAPI Evas_Object*        elm_slideshow_item_object_get(const Elm_Slideshow_Item* item) EINA_ARG_NONNULL(1);
20764
20765    /**
20766     * Get the the item, in a given slideshow widget, placed at
20767     * position @p nth, in its internal items list
20768     *
20769     * @param obj The slideshow object
20770     * @param nth The number of the item to grab a handle to (0 being
20771     * the first)
20772     * @return The item stored in @p obj at position @p nth or @c NULL,
20773     * if there's no item with that index (and on errors)
20774     *
20775     * @ingroup Slideshow
20776     */
20777    EAPI Elm_Slideshow_Item *elm_slideshow_item_nth_get(const Evas_Object *obj, unsigned int nth) EINA_ARG_NONNULL(1);
20778
20779    /**
20780     * Set the current slide layout in use for a given slideshow widget
20781     *
20782     * @param obj The slideshow object
20783     * @param layout The new layout's name string
20784     *
20785     * If @p layout is implemented in @p obj's theme (i.e., is contained
20786     * in the list returned by elm_slideshow_layouts_get()), this new
20787     * images layout will be used on the widget.
20788     *
20789     * @see elm_slideshow_layouts_get() for more details
20790     *
20791     * @ingroup Slideshow
20792     */
20793    EAPI void                elm_slideshow_layout_set(Evas_Object *obj, const char *layout) EINA_ARG_NONNULL(1);
20794
20795    /**
20796     * Get the current slide layout in use for a given slideshow widget
20797     *
20798     * @param obj The slideshow object
20799     * @return The current layout's name
20800     *
20801     * @see elm_slideshow_layout_set() for more details
20802     *
20803     * @ingroup Slideshow
20804     */
20805    EAPI const char         *elm_slideshow_layout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20806
20807    /**
20808     * Returns the list of @b layout names available, for a given
20809     * slideshow widget.
20810     *
20811     * @param obj The slideshow object
20812     * @return The list of layouts (list of @b stringshared strings
20813     * as data)
20814     *
20815     * Slideshow layouts will change how the widget is to dispose each
20816     * image item in its viewport, with regard to cropping, scaling,
20817     * etc.
20818     *
20819     * The layouts, which come from @p obj's theme, must be an EDC
20820     * data item name @c "layouts" on the theme file, with (prefix)
20821     * names of EDC programs actually implementing them.
20822     *
20823     * The available layouts for slideshows on the default theme are:
20824     * - @c "fullscreen" - item images with original aspect, scaled to
20825     *   touch top and down slideshow borders or, if the image's heigh
20826     *   is not enough, left and right slideshow borders.
20827     * - @c "not_fullscreen" - the same behavior as the @c "fullscreen"
20828     *   one, but always leaving 10% of the slideshow's dimensions of
20829     *   distance between the item image's borders and the slideshow
20830     *   borders, for each axis.
20831     *
20832     * @warning The stringshared strings get no new references
20833     * exclusive to the user grabbing the list, here, so if you'd like
20834     * to use them out of this call's context, you'd better @c
20835     * eina_stringshare_ref() them.
20836     *
20837     * @see elm_slideshow_layout_set()
20838     *
20839     * @ingroup Slideshow
20840     */
20841    EAPI const Eina_List    *elm_slideshow_layouts_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20842
20843    /**
20844     * Set the number of items to cache, on a given slideshow widget,
20845     * <b>before the current item</b>
20846     *
20847     * @param obj The slideshow object
20848     * @param count Number of items to cache before the current one
20849     *
20850     * The default value for this property is @c 2. See
20851     * @ref Slideshow_Caching "slideshow caching" for more details.
20852     *
20853     * @see elm_slideshow_cache_before_get()
20854     *
20855     * @ingroup Slideshow
20856     */
20857    EAPI void                elm_slideshow_cache_before_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
20858
20859    /**
20860     * Retrieve the number of items to cache, on a given slideshow widget,
20861     * <b>before the current item</b>
20862     *
20863     * @param obj The slideshow object
20864     * @return The number of items set to be cached before the current one
20865     *
20866     * @see elm_slideshow_cache_before_set() for more details
20867     *
20868     * @ingroup Slideshow
20869     */
20870    EAPI int                 elm_slideshow_cache_before_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20871
20872    /**
20873     * Set the number of items to cache, on a given slideshow widget,
20874     * <b>after the current item</b>
20875     *
20876     * @param obj The slideshow object
20877     * @param count Number of items to cache after the current one
20878     *
20879     * The default value for this property is @c 2. See
20880     * @ref Slideshow_Caching "slideshow caching" for more details.
20881     *
20882     * @see elm_slideshow_cache_after_get()
20883     *
20884     * @ingroup Slideshow
20885     */
20886    EAPI void                elm_slideshow_cache_after_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
20887
20888    /**
20889     * Retrieve the number of items to cache, on a given slideshow widget,
20890     * <b>after the current item</b>
20891     *
20892     * @param obj The slideshow object
20893     * @return The number of items set to be cached after the current one
20894     *
20895     * @see elm_slideshow_cache_after_set() for more details
20896     *
20897     * @ingroup Slideshow
20898     */
20899    EAPI int                 elm_slideshow_cache_after_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20900
20901    /**
20902     * Get the number of items stored in a given slideshow widget
20903     *
20904     * @param obj The slideshow object
20905     * @return The number of items on @p obj, at the moment of this call
20906     *
20907     * @ingroup Slideshow
20908     */
20909    EAPI unsigned int        elm_slideshow_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20910
20911    /**
20912     * @}
20913     */
20914
20915    /**
20916     * @defgroup Fileselector File Selector
20917     *
20918     * @image html img/widget/fileselector/preview-00.png
20919     * @image latex img/widget/fileselector/preview-00.eps
20920     *
20921     * A file selector is a widget that allows a user to navigate
20922     * through a file system, reporting file selections back via its
20923     * API.
20924     *
20925     * It contains shortcut buttons for home directory (@c ~) and to
20926     * jump one directory upwards (..), as well as cancel/ok buttons to
20927     * confirm/cancel a given selection. After either one of those two
20928     * former actions, the file selector will issue its @c "done" smart
20929     * callback.
20930     *
20931     * There's a text entry on it, too, showing the name of the current
20932     * selection. There's the possibility of making it editable, so it
20933     * is useful on file saving dialogs on applications, where one
20934     * gives a file name to save contents to, in a given directory in
20935     * the system. This custom file name will be reported on the @c
20936     * "done" smart callback (explained in sequence).
20937     *
20938     * Finally, it has a view to display file system items into in two
20939     * possible forms:
20940     * - list
20941     * - grid
20942     *
20943     * If Elementary is built with support of the Ethumb thumbnailing
20944     * library, the second form of view will display preview thumbnails
20945     * of files which it supports.
20946     *
20947     * Smart callbacks one can register to:
20948     *
20949     * - @c "selected" - the user has clicked on a file (when not in
20950     *      folders-only mode) or directory (when in folders-only mode)
20951     * - @c "directory,open" - the list has been populated with new
20952     *      content (@c event_info is a pointer to the directory's
20953     *      path, a @b stringshared string)
20954     * - @c "done" - the user has clicked on the "ok" or "cancel"
20955     *      buttons (@c event_info is a pointer to the selection's
20956     *      path, a @b stringshared string)
20957     *
20958     * Here is an example on its usage:
20959     * @li @ref fileselector_example
20960     */
20961
20962    /**
20963     * @addtogroup Fileselector
20964     * @{
20965     */
20966
20967    /**
20968     * Defines how a file selector widget is to layout its contents
20969     * (file system entries).
20970     */
20971    typedef enum _Elm_Fileselector_Mode
20972      {
20973         ELM_FILESELECTOR_LIST = 0, /**< layout as a list */
20974         ELM_FILESELECTOR_GRID, /**< layout as a grid */
20975         ELM_FILESELECTOR_LAST /**< sentinel (helper) value, not used */
20976      } Elm_Fileselector_Mode;
20977
20978    /**
20979     * Add a new file selector widget to the given parent Elementary
20980     * (container) object
20981     *
20982     * @param parent The parent object
20983     * @return a new file selector widget handle or @c NULL, on errors
20984     *
20985     * This function inserts a new file selector widget on the canvas.
20986     *
20987     * @ingroup Fileselector
20988     */
20989    EAPI Evas_Object          *elm_fileselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20990
20991    /**
20992     * Enable/disable the file name entry box where the user can type
20993     * in a name for a file, in a given file selector widget
20994     *
20995     * @param obj The file selector object
20996     * @param is_save @c EINA_TRUE to make the file selector a "saving
20997     * dialog", @c EINA_FALSE otherwise
20998     *
20999     * Having the entry editable is useful on file saving dialogs on
21000     * applications, where one gives a file name to save contents to,
21001     * in a given directory in the system. This custom file name will
21002     * be reported on the @c "done" smart callback.
21003     *
21004     * @see elm_fileselector_is_save_get()
21005     *
21006     * @ingroup Fileselector
21007     */
21008    EAPI void                  elm_fileselector_is_save_set(Evas_Object *obj, Eina_Bool is_save) EINA_ARG_NONNULL(1);
21009
21010    /**
21011     * Get whether the given file selector is in "saving dialog" mode
21012     *
21013     * @param obj The file selector object
21014     * @return @c EINA_TRUE, if the file selector is in "saving dialog"
21015     * mode, @c EINA_FALSE otherwise (and on errors)
21016     *
21017     * @see elm_fileselector_is_save_set() for more details
21018     *
21019     * @ingroup Fileselector
21020     */
21021    EAPI Eina_Bool             elm_fileselector_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21022
21023    /**
21024     * Enable/disable folder-only view for a given file selector widget
21025     *
21026     * @param obj The file selector object
21027     * @param only @c EINA_TRUE to make @p obj only display
21028     * directories, @c EINA_FALSE to make files to be displayed in it
21029     * too
21030     *
21031     * If enabled, the widget's view will only display folder items,
21032     * naturally.
21033     *
21034     * @see elm_fileselector_folder_only_get()
21035     *
21036     * @ingroup Fileselector
21037     */
21038    EAPI void                  elm_fileselector_folder_only_set(Evas_Object *obj, Eina_Bool only) EINA_ARG_NONNULL(1);
21039
21040    /**
21041     * Get whether folder-only view is set for a given file selector
21042     * widget
21043     *
21044     * @param obj The file selector object
21045     * @return only @c EINA_TRUE if @p obj is only displaying
21046     * directories, @c EINA_FALSE if files are being displayed in it
21047     * too (and on errors)
21048     *
21049     * @see elm_fileselector_folder_only_get()
21050     *
21051     * @ingroup Fileselector
21052     */
21053    EAPI Eina_Bool             elm_fileselector_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21054
21055    /**
21056     * Enable/disable the "ok" and "cancel" buttons on a given file
21057     * selector widget
21058     *
21059     * @param obj The file selector object
21060     * @param only @c EINA_TRUE to show them, @c EINA_FALSE to hide.
21061     *
21062     * @note A file selector without those buttons will never emit the
21063     * @c "done" smart event, and is only usable if one is just hooking
21064     * to the other two events.
21065     *
21066     * @see elm_fileselector_buttons_ok_cancel_get()
21067     *
21068     * @ingroup Fileselector
21069     */
21070    EAPI void                  elm_fileselector_buttons_ok_cancel_set(Evas_Object *obj, Eina_Bool buttons) EINA_ARG_NONNULL(1);
21071
21072    /**
21073     * Get whether the "ok" and "cancel" buttons on a given file
21074     * selector widget are being shown.
21075     *
21076     * @param obj The file selector object
21077     * @return @c EINA_TRUE if they are being shown, @c EINA_FALSE
21078     * otherwise (and on errors)
21079     *
21080     * @see elm_fileselector_buttons_ok_cancel_set() for more details
21081     *
21082     * @ingroup Fileselector
21083     */
21084    EAPI Eina_Bool             elm_fileselector_buttons_ok_cancel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21085
21086    /**
21087     * Enable/disable a tree view in the given file selector widget,
21088     * <b>if it's in @c #ELM_FILESELECTOR_LIST mode</b>
21089     *
21090     * @param obj The file selector object
21091     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
21092     * disable
21093     *
21094     * In a tree view, arrows are created on the sides of directories,
21095     * allowing them to expand in place.
21096     *
21097     * @note If it's in other mode, the changes made by this function
21098     * will only be visible when one switches back to "list" mode.
21099     *
21100     * @see elm_fileselector_expandable_get()
21101     *
21102     * @ingroup Fileselector
21103     */
21104    EAPI void                  elm_fileselector_expandable_set(Evas_Object *obj, Eina_Bool expand) EINA_ARG_NONNULL(1);
21105
21106    /**
21107     * Get whether tree view is enabled for the given file selector
21108     * widget
21109     *
21110     * @param obj The file selector object
21111     * @return @c EINA_TRUE if @p obj is in tree view, @c EINA_FALSE
21112     * otherwise (and or errors)
21113     *
21114     * @see elm_fileselector_expandable_set() for more details
21115     *
21116     * @ingroup Fileselector
21117     */
21118    EAPI Eina_Bool             elm_fileselector_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21119
21120    /**
21121     * Set, programmatically, the @b directory that a given file
21122     * selector widget will display contents from
21123     *
21124     * @param obj The file selector object
21125     * @param path The path to display in @p obj
21126     *
21127     * This will change the @b directory that @p obj is displaying. It
21128     * will also clear the text entry area on the @p obj object, which
21129     * displays select files' names.
21130     *
21131     * @see elm_fileselector_path_get()
21132     *
21133     * @ingroup Fileselector
21134     */
21135    EAPI void                  elm_fileselector_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
21136
21137    /**
21138     * Get the parent directory's path that a given file selector
21139     * widget is displaying
21140     *
21141     * @param obj The file selector object
21142     * @return The (full) path of the directory the file selector is
21143     * displaying, a @b stringshared string
21144     *
21145     * @see elm_fileselector_path_set()
21146     *
21147     * @ingroup Fileselector
21148     */
21149    EAPI const char           *elm_fileselector_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21150
21151    /**
21152     * Set, programmatically, the currently selected file/directory in
21153     * the given file selector widget
21154     *
21155     * @param obj The file selector object
21156     * @param path The (full) path to a file or directory
21157     * @return @c EINA_TRUE on success, @c EINA_FALSE on failure. The
21158     * latter case occurs if the directory or file pointed to do not
21159     * exist.
21160     *
21161     * @see elm_fileselector_selected_get()
21162     *
21163     * @ingroup Fileselector
21164     */
21165    EAPI Eina_Bool             elm_fileselector_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
21166
21167    /**
21168     * Get the currently selected item's (full) path, in the given file
21169     * selector widget
21170     *
21171     * @param obj The file selector object
21172     * @return The absolute path of the selected item, a @b
21173     * stringshared string
21174     *
21175     * @note Custom editions on @p obj object's text entry, if made,
21176     * will appear on the return string of this function, naturally.
21177     *
21178     * @see elm_fileselector_selected_set() for more details
21179     *
21180     * @ingroup Fileselector
21181     */
21182    EAPI const char           *elm_fileselector_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21183
21184    /**
21185     * Set the mode in which a given file selector widget will display
21186     * (layout) file system entries in its view
21187     *
21188     * @param obj The file selector object
21189     * @param mode The mode of the fileselector, being it one of
21190     * #ELM_FILESELECTOR_LIST (default) or #ELM_FILESELECTOR_GRID. The
21191     * first one, naturally, will display the files in a list. The
21192     * latter will make the widget to display its entries in a grid
21193     * form.
21194     *
21195     * @note By using elm_fileselector_expandable_set(), the user may
21196     * trigger a tree view for that list.
21197     *
21198     * @note If Elementary is built with support of the Ethumb
21199     * thumbnailing library, the second form of view will display
21200     * preview thumbnails of files which it supports. You must have
21201     * elm_need_ethumb() called in your Elementary for thumbnailing to
21202     * work, though.
21203     *
21204     * @see elm_fileselector_expandable_set().
21205     * @see elm_fileselector_mode_get().
21206     *
21207     * @ingroup Fileselector
21208     */
21209    EAPI void                  elm_fileselector_mode_set(Evas_Object *obj, Elm_Fileselector_Mode mode) EINA_ARG_NONNULL(1);
21210
21211    /**
21212     * Get the mode in which a given file selector widget is displaying
21213     * (layouting) file system entries in its view
21214     *
21215     * @param obj The fileselector object
21216     * @return The mode in which the fileselector is at
21217     *
21218     * @see elm_fileselector_mode_set() for more details
21219     *
21220     * @ingroup Fileselector
21221     */
21222    EAPI Elm_Fileselector_Mode elm_fileselector_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21223
21224    /**
21225     * @}
21226     */
21227
21228    /**
21229     * @defgroup Progressbar Progress bar
21230     *
21231     * The progress bar is a widget for visually representing the
21232     * progress status of a given job/task.
21233     *
21234     * A progress bar may be horizontal or vertical. It may display an
21235     * icon besides it, as well as primary and @b units labels. The
21236     * former is meant to label the widget as a whole, while the
21237     * latter, which is formatted with floating point values (and thus
21238     * accepts a <c>printf</c>-style format string, like <c>"%1.2f
21239     * units"</c>), is meant to label the widget's <b>progress
21240     * value</b>. Label, icon and unit strings/objects are @b optional
21241     * for progress bars.
21242     *
21243     * A progress bar may be @b inverted, in which state it gets its
21244     * values inverted, with high values being on the left or top and
21245     * low values on the right or bottom, as opposed to normally have
21246     * the low values on the former and high values on the latter,
21247     * respectively, for horizontal and vertical modes.
21248     *
21249     * The @b span of the progress, as set by
21250     * elm_progressbar_span_size_set(), is its length (horizontally or
21251     * vertically), unless one puts size hints on the widget to expand
21252     * on desired directions, by any container. That length will be
21253     * scaled by the object or applications scaling factor. At any
21254     * point code can query the progress bar for its value with
21255     * elm_progressbar_value_get().
21256     *
21257     * Available widget styles for progress bars:
21258     * - @c "default"
21259     * - @c "wheel" (simple style, no text, no progression, only
21260     *      "pulse" effect is available)
21261     *
21262     * Default contents parts of the progressbar widget that you can use for are:
21263     * @li "icon" - A icon of the progressbar
21264     * 
21265     * Here is an example on its usage:
21266     * @li @ref progressbar_example
21267     */
21268
21269    /**
21270     * Add a new progress bar widget to the given parent Elementary
21271     * (container) object
21272     *
21273     * @param parent The parent object
21274     * @return a new progress bar widget handle or @c NULL, on errors
21275     *
21276     * This function inserts a new progress bar widget on the canvas.
21277     *
21278     * @ingroup Progressbar
21279     */
21280    EAPI Evas_Object *elm_progressbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21281
21282    /**
21283     * Set whether a given progress bar widget is at "pulsing mode" or
21284     * not.
21285     *
21286     * @param obj The progress bar object
21287     * @param pulse @c EINA_TRUE to put @p obj in pulsing mode,
21288     * @c EINA_FALSE to put it back to its default one
21289     *
21290     * By default, progress bars will display values from the low to
21291     * high value boundaries. There are, though, contexts in which the
21292     * state of progression of a given task is @b unknown.  For those,
21293     * one can set a progress bar widget to a "pulsing state", to give
21294     * the user an idea that some computation is being held, but
21295     * without exact progress values. In the default theme it will
21296     * animate its bar with the contents filling in constantly and back
21297     * to non-filled, in a loop. To start and stop this pulsing
21298     * animation, one has to explicitly call elm_progressbar_pulse().
21299     *
21300     * @see elm_progressbar_pulse_get()
21301     * @see elm_progressbar_pulse()
21302     *
21303     * @ingroup Progressbar
21304     */
21305    EAPI void         elm_progressbar_pulse_set(Evas_Object *obj, Eina_Bool pulse) EINA_ARG_NONNULL(1);
21306
21307    /**
21308     * Get whether a given progress bar widget is at "pulsing mode" or
21309     * not.
21310     *
21311     * @param obj The progress bar object
21312     * @return @c EINA_TRUE, if @p obj is in pulsing mode, @c EINA_FALSE
21313     * if it's in the default one (and on errors)
21314     *
21315     * @ingroup Progressbar
21316     */
21317    EAPI Eina_Bool    elm_progressbar_pulse_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21318
21319    /**
21320     * Start/stop a given progress bar "pulsing" animation, if its
21321     * under that mode
21322     *
21323     * @param obj The progress bar object
21324     * @param state @c EINA_TRUE, to @b start the pulsing animation,
21325     * @c EINA_FALSE to @b stop it
21326     *
21327     * @note This call won't do anything if @p obj is not under "pulsing mode".
21328     *
21329     * @see elm_progressbar_pulse_set() for more details.
21330     *
21331     * @ingroup Progressbar
21332     */
21333    EAPI void         elm_progressbar_pulse(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
21334
21335    /**
21336     * Set the progress value (in percentage) on a given progress bar
21337     * widget
21338     *
21339     * @param obj The progress bar object
21340     * @param val The progress value (@b must be between @c 0.0 and @c
21341     * 1.0)
21342     *
21343     * Use this call to set progress bar levels.
21344     *
21345     * @note If you passes a value out of the specified range for @p
21346     * val, it will be interpreted as the @b closest of the @b boundary
21347     * values in the range.
21348     *
21349     * @ingroup Progressbar
21350     */
21351    EAPI void         elm_progressbar_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
21352
21353    /**
21354     * Get the progress value (in percentage) on a given progress bar
21355     * widget
21356     *
21357     * @param obj The progress bar object
21358     * @return The value of the progressbar
21359     *
21360     * @see elm_progressbar_value_set() for more details
21361     *
21362     * @ingroup Progressbar
21363     */
21364    EAPI double       elm_progressbar_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21365
21366    /**
21367     * Set the label of a given progress bar widget
21368     *
21369     * @param obj The progress bar object
21370     * @param label The text label string, in UTF-8
21371     *
21372     * @ingroup Progressbar
21373     * @deprecated use elm_object_text_set() instead.
21374     */
21375    EINA_DEPRECATED EAPI void         elm_progressbar_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
21376
21377    /**
21378     * Get the label of a given progress bar widget
21379     *
21380     * @param obj The progressbar object
21381     * @return The text label string, in UTF-8
21382     *
21383     * @ingroup Progressbar
21384     * @deprecated use elm_object_text_set() instead.
21385     */
21386    EINA_DEPRECATED EAPI const char  *elm_progressbar_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21387
21388    /**
21389     * Set the icon object of a given progress bar widget
21390     *
21391     * @param obj The progress bar object
21392     * @param icon The icon object
21393     *
21394     * Use this call to decorate @p obj with an icon next to it.
21395     *
21396     * @note Once the icon object is set, a previously set one will be
21397     * deleted. If you want to keep that old content object, use the
21398     * elm_progressbar_icon_unset() function.
21399     *
21400     * @see elm_progressbar_icon_get()
21401     * @deprecated use elm_object_part_content_set() instead.
21402     *
21403     * @ingroup Progressbar
21404     */
21405    EINA_DEPRECATED EAPI void         elm_progressbar_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
21406
21407    /**
21408     * Retrieve the icon object set for a given progress bar widget
21409     *
21410     * @param obj The progress bar object
21411     * @return The icon object's handle, if @p obj had one set, or @c NULL,
21412     * otherwise (and on errors)
21413     *
21414     * @see elm_progressbar_icon_set() for more details
21415     * @deprecated use elm_object_part_content_get() instead.
21416     *
21417     * @ingroup Progressbar
21418     */
21419    EINA_DEPRECATED EAPI Evas_Object *elm_progressbar_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21420
21421    /**
21422     * Unset an icon set on a given progress bar widget
21423     *
21424     * @param obj The progress bar object
21425     * @return The icon object that was being used, if any was set, or
21426     * @c NULL, otherwise (and on errors)
21427     *
21428     * This call will unparent and return the icon object which was set
21429     * for this widget, previously, on success.
21430     *
21431     * @see elm_progressbar_icon_set() for more details
21432     * @deprecated use elm_object_part_content_unset() instead.
21433     *
21434     * @ingroup Progressbar
21435     */
21436    EINA_DEPRECATED EAPI Evas_Object *elm_progressbar_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
21437
21438    /**
21439     * Set the (exact) length of the bar region of a given progress bar
21440     * widget
21441     *
21442     * @param obj The progress bar object
21443     * @param size The length of the progress bar's bar region
21444     *
21445     * This sets the minimum width (when in horizontal mode) or height
21446     * (when in vertical mode) of the actual bar area of the progress
21447     * bar @p obj. This in turn affects the object's minimum size. Use
21448     * this when you're not setting other size hints expanding on the
21449     * given direction (like weight and alignment hints) and you would
21450     * like it to have a specific size.
21451     *
21452     * @note Icon, label and unit text around @p obj will require their
21453     * own space, which will make @p obj to require more the @p size,
21454     * actually.
21455     *
21456     * @see elm_progressbar_span_size_get()
21457     *
21458     * @ingroup Progressbar
21459     */
21460    EAPI void         elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
21461
21462    /**
21463     * Get the length set for the bar region of a given progress bar
21464     * widget
21465     *
21466     * @param obj The progress bar object
21467     * @return The length of the progress bar's bar region
21468     *
21469     * If that size was not set previously, with
21470     * elm_progressbar_span_size_set(), this call will return @c 0.
21471     *
21472     * @ingroup Progressbar
21473     */
21474    EAPI Evas_Coord   elm_progressbar_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21475
21476    /**
21477     * Set the format string for a given progress bar widget's units
21478     * label
21479     *
21480     * @param obj The progress bar object
21481     * @param format The format string for @p obj's units label
21482     *
21483     * If @c NULL is passed on @p format, it will make @p obj's units
21484     * area to be hidden completely. If not, it'll set the <b>format
21485     * string</b> for the units label's @b text. The units label is
21486     * provided a floating point value, so the units text is up display
21487     * at most one floating point falue. Note that the units label is
21488     * optional. Use a format string such as "%1.2f meters" for
21489     * example.
21490     *
21491     * @note The default format string for a progress bar is an integer
21492     * percentage, as in @c "%.0f %%".
21493     *
21494     * @see elm_progressbar_unit_format_get()
21495     *
21496     * @ingroup Progressbar
21497     */
21498    EAPI void         elm_progressbar_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
21499
21500    /**
21501     * Retrieve the format string set for a given progress bar widget's
21502     * units label
21503     *
21504     * @param obj The progress bar object
21505     * @return The format set string for @p obj's units label or
21506     * @c NULL, if none was set (and on errors)
21507     *
21508     * @see elm_progressbar_unit_format_set() for more details
21509     *
21510     * @ingroup Progressbar
21511     */
21512    EAPI const char  *elm_progressbar_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21513
21514    /**
21515     * Set the orientation of a given progress bar widget
21516     *
21517     * @param obj The progress bar object
21518     * @param horizontal Use @c EINA_TRUE to make @p obj to be
21519     * @b horizontal, @c EINA_FALSE to make it @b vertical
21520     *
21521     * Use this function to change how your progress bar is to be
21522     * disposed: vertically or horizontally.
21523     *
21524     * @see elm_progressbar_horizontal_get()
21525     *
21526     * @ingroup Progressbar
21527     */
21528    EAPI void         elm_progressbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
21529
21530    /**
21531     * Retrieve the orientation of a given progress bar widget
21532     *
21533     * @param obj The progress bar object
21534     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
21535     * @c EINA_FALSE if it's @b vertical (and on errors)
21536     *
21537     * @see elm_progressbar_horizontal_set() for more details
21538     *
21539     * @ingroup Progressbar
21540     */
21541    EAPI Eina_Bool    elm_progressbar_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21542
21543    /**
21544     * Invert a given progress bar widget's displaying values order
21545     *
21546     * @param obj The progress bar object
21547     * @param inverted Use @c EINA_TRUE to make @p obj inverted,
21548     * @c EINA_FALSE to bring it back to default, non-inverted values.
21549     *
21550     * A progress bar may be @b inverted, in which state it gets its
21551     * values inverted, with high values being on the left or top and
21552     * low values on the right or bottom, as opposed to normally have
21553     * the low values on the former and high values on the latter,
21554     * respectively, for horizontal and vertical modes.
21555     *
21556     * @see elm_progressbar_inverted_get()
21557     *
21558     * @ingroup Progressbar
21559     */
21560    EAPI void         elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
21561
21562    /**
21563     * Get whether a given progress bar widget's displaying values are
21564     * inverted or not
21565     *
21566     * @param obj The progress bar object
21567     * @return @c EINA_TRUE, if @p obj has inverted values,
21568     * @c EINA_FALSE otherwise (and on errors)
21569     *
21570     * @see elm_progressbar_inverted_set() for more details
21571     *
21572     * @ingroup Progressbar
21573     */
21574    EAPI Eina_Bool    elm_progressbar_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21575
21576    /**
21577     * @defgroup Separator Separator
21578     *
21579     * @brief Separator is a very thin object used to separate other objects.
21580     *
21581     * A separator can be vertical or horizontal.
21582     *
21583     * @ref tutorial_separator is a good example of how to use a separator.
21584     * @{
21585     */
21586    /**
21587     * @brief Add a separator object to @p parent
21588     *
21589     * @param parent The parent object
21590     *
21591     * @return The separator object, or NULL upon failure
21592     */
21593    EAPI Evas_Object *elm_separator_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21594    /**
21595     * @brief Set the horizontal mode of a separator object
21596     *
21597     * @param obj The separator object
21598     * @param horizontal If true, the separator is horizontal
21599     */
21600    EAPI void         elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
21601    /**
21602     * @brief Get the horizontal mode of a separator object
21603     *
21604     * @param obj The separator object
21605     * @return If true, the separator is horizontal
21606     *
21607     * @see elm_separator_horizontal_set()
21608     */
21609    EAPI Eina_Bool    elm_separator_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21610    /**
21611     * @}
21612     */
21613
21614    /**
21615     * @defgroup Spinner Spinner
21616     * @ingroup Elementary
21617     *
21618     * @image html img/widget/spinner/preview-00.png
21619     * @image latex img/widget/spinner/preview-00.eps
21620     *
21621     * A spinner is a widget which allows the user to increase or decrease
21622     * numeric values using arrow buttons, or edit values directly, clicking
21623     * over it and typing the new value.
21624     *
21625     * By default the spinner will not wrap and has a label
21626     * of "%.0f" (just showing the integer value of the double).
21627     *
21628     * A spinner has a label that is formatted with floating
21629     * point values and thus accepts a printf-style format string, like
21630     * ā€œ%1.2f unitsā€.
21631     *
21632     * It also allows specific values to be replaced by pre-defined labels.
21633     *
21634     * Smart callbacks one can register to:
21635     *
21636     * - "changed" - Whenever the spinner value is changed.
21637     * - "delay,changed" - A short time after the value is changed by the user.
21638     *    This will be called only when the user stops dragging for a very short
21639     *    period or when they release their finger/mouse, so it avoids possibly
21640     *    expensive reactions to the value change.
21641     *
21642     * Available styles for it:
21643     * - @c "default";
21644     * - @c "vertical": up/down buttons at the right side and text left aligned.
21645     *
21646     * Here is an example on its usage:
21647     * @ref spinner_example
21648     */
21649
21650    /**
21651     * @addtogroup Spinner
21652     * @{
21653     */
21654
21655    /**
21656     * Add a new spinner widget to the given parent Elementary
21657     * (container) object.
21658     *
21659     * @param parent The parent object.
21660     * @return a new spinner widget handle or @c NULL, on errors.
21661     *
21662     * This function inserts a new spinner widget on the canvas.
21663     *
21664     * @ingroup Spinner
21665     *
21666     */
21667    EAPI Evas_Object *elm_spinner_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21668
21669    /**
21670     * Set the format string of the displayed label.
21671     *
21672     * @param obj The spinner object.
21673     * @param fmt The format string for the label display.
21674     *
21675     * If @c NULL, this sets the format to "%.0f". If not it sets the format
21676     * string for the label text. The label text is provided a floating point
21677     * value, so the label text can display up to 1 floating point value.
21678     * Note that this is optional.
21679     *
21680     * Use a format string such as "%1.2f meters" for example, and it will
21681     * display values like: "3.14 meters" for a value equal to 3.14159.
21682     *
21683     * Default is "%0.f".
21684     *
21685     * @see elm_spinner_label_format_get()
21686     *
21687     * @ingroup Spinner
21688     */
21689    EAPI void         elm_spinner_label_format_set(Evas_Object *obj, const char *fmt) EINA_ARG_NONNULL(1);
21690
21691    /**
21692     * Get the label format of the spinner.
21693     *
21694     * @param obj The spinner object.
21695     * @return The text label format string in UTF-8.
21696     *
21697     * @see elm_spinner_label_format_set() for details.
21698     *
21699     * @ingroup Spinner
21700     */
21701    EAPI const char  *elm_spinner_label_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21702
21703    /**
21704     * Set the minimum and maximum values for the spinner.
21705     *
21706     * @param obj The spinner object.
21707     * @param min The minimum value.
21708     * @param max The maximum value.
21709     *
21710     * Define the allowed range of values to be selected by the user.
21711     *
21712     * If actual value is less than @p min, it will be updated to @p min. If it
21713     * is bigger then @p max, will be updated to @p max. Actual value can be
21714     * get with elm_spinner_value_get().
21715     *
21716     * By default, min is equal to 0, and max is equal to 100.
21717     *
21718     * @warning Maximum must be greater than minimum.
21719     *
21720     * @see elm_spinner_min_max_get()
21721     *
21722     * @ingroup Spinner
21723     */
21724    EAPI void         elm_spinner_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
21725
21726    /**
21727     * Get the minimum and maximum values of the spinner.
21728     *
21729     * @param obj The spinner object.
21730     * @param min Pointer where to store the minimum value.
21731     * @param max Pointer where to store the maximum value.
21732     *
21733     * @note If only one value is needed, the other pointer can be passed
21734     * as @c NULL.
21735     *
21736     * @see elm_spinner_min_max_set() for details.
21737     *
21738     * @ingroup Spinner
21739     */
21740    EAPI void         elm_spinner_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
21741
21742    /**
21743     * Set the step used to increment or decrement the spinner value.
21744     *
21745     * @param obj The spinner object.
21746     * @param step The step value.
21747     *
21748     * This value will be incremented or decremented to the displayed value.
21749     * It will be incremented while the user keep right or top arrow pressed,
21750     * and will be decremented while the user keep left or bottom arrow pressed.
21751     *
21752     * The interval to increment / decrement can be set with
21753     * elm_spinner_interval_set().
21754     *
21755     * By default step value is equal to 1.
21756     *
21757     * @see elm_spinner_step_get()
21758     *
21759     * @ingroup Spinner
21760     */
21761    EAPI void         elm_spinner_step_set(Evas_Object *obj, double step) EINA_ARG_NONNULL(1);
21762
21763    /**
21764     * Get the step used to increment or decrement the spinner value.
21765     *
21766     * @param obj The spinner object.
21767     * @return The step value.
21768     *
21769     * @see elm_spinner_step_get() for more details.
21770     *
21771     * @ingroup Spinner
21772     */
21773    EAPI double       elm_spinner_step_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21774
21775    /**
21776     * Set the value the spinner displays.
21777     *
21778     * @param obj The spinner object.
21779     * @param val The value to be displayed.
21780     *
21781     * Value will be presented on the label following format specified with
21782     * elm_spinner_format_set().
21783     *
21784     * @warning The value must to be between min and max values. This values
21785     * are set by elm_spinner_min_max_set().
21786     *
21787     * @see elm_spinner_value_get().
21788     * @see elm_spinner_format_set().
21789     * @see elm_spinner_min_max_set().
21790     *
21791     * @ingroup Spinner
21792     */
21793    EAPI void         elm_spinner_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
21794
21795    /**
21796     * Get the value displayed by the spinner.
21797     *
21798     * @param obj The spinner object.
21799     * @return The value displayed.
21800     *
21801     * @see elm_spinner_value_set() for details.
21802     *
21803     * @ingroup Spinner
21804     */
21805    EAPI double       elm_spinner_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21806
21807    /**
21808     * Set whether the spinner should wrap when it reaches its
21809     * minimum or maximum value.
21810     *
21811     * @param obj The spinner object.
21812     * @param wrap @c EINA_TRUE to enable wrap or @c EINA_FALSE to
21813     * disable it.
21814     *
21815     * Disabled by default. If disabled, when the user tries to increment the
21816     * value,
21817     * but displayed value plus step value is bigger than maximum value,
21818     * the spinner
21819     * won't allow it. The same happens when the user tries to decrement it,
21820     * but the value less step is less than minimum value.
21821     *
21822     * When wrap is enabled, in such situations it will allow these changes,
21823     * but will get the value that would be less than minimum and subtracts
21824     * from maximum. Or add the value that would be more than maximum to
21825     * the minimum.
21826     *
21827     * E.g.:
21828     * @li min value = 10
21829     * @li max value = 50
21830     * @li step value = 20
21831     * @li displayed value = 20
21832     *
21833     * When the user decrement value (using left or bottom arrow), it will
21834     * displays @c 40, because max - (min - (displayed - step)) is
21835     * @c 50 - (@c 10 - (@c 20 - @c 20)) = @c 40.
21836     *
21837     * @see elm_spinner_wrap_get().
21838     *
21839     * @ingroup Spinner
21840     */
21841    EAPI void         elm_spinner_wrap_set(Evas_Object *obj, Eina_Bool wrap) EINA_ARG_NONNULL(1);
21842
21843    /**
21844     * Get whether the spinner should wrap when it reaches its
21845     * minimum or maximum value.
21846     *
21847     * @param obj The spinner object
21848     * @return @c EINA_TRUE means wrap is enabled. @c EINA_FALSE indicates
21849     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
21850     *
21851     * @see elm_spinner_wrap_set() for details.
21852     *
21853     * @ingroup Spinner
21854     */
21855    EAPI Eina_Bool    elm_spinner_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21856
21857    /**
21858     * Set whether the spinner can be directly edited by the user or not.
21859     *
21860     * @param obj The spinner object.
21861     * @param editable @c EINA_TRUE to allow users to edit it or @c EINA_FALSE to
21862     * don't allow users to edit it directly.
21863     *
21864     * Spinner objects can have edition @b disabled, in which state they will
21865     * be changed only by arrows.
21866     * Useful for contexts
21867     * where you don't want your users to interact with it writting the value.
21868     * Specially
21869     * when using special values, the user can see real value instead
21870     * of special label on edition.
21871     *
21872     * It's enabled by default.
21873     *
21874     * @see elm_spinner_editable_get()
21875     *
21876     * @ingroup Spinner
21877     */
21878    EAPI void         elm_spinner_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
21879
21880    /**
21881     * Get whether the spinner can be directly edited by the user or not.
21882     *
21883     * @param obj The spinner object.
21884     * @return @c EINA_TRUE means edition is enabled. @c EINA_FALSE indicates
21885     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
21886     *
21887     * @see elm_spinner_editable_set() for details.
21888     *
21889     * @ingroup Spinner
21890     */
21891    EAPI Eina_Bool    elm_spinner_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21892
21893    /**
21894     * Set a special string to display in the place of the numerical value.
21895     *
21896     * @param obj The spinner object.
21897     * @param value The value to be replaced.
21898     * @param label The label to be used.
21899     *
21900     * It's useful for cases when a user should select an item that is
21901     * better indicated by a label than a value. For example, weekdays or months.
21902     *
21903     * E.g.:
21904     * @code
21905     * sp = elm_spinner_add(win);
21906     * elm_spinner_min_max_set(sp, 1, 3);
21907     * elm_spinner_special_value_add(sp, 1, "January");
21908     * elm_spinner_special_value_add(sp, 2, "February");
21909     * elm_spinner_special_value_add(sp, 3, "March");
21910     * evas_object_show(sp);
21911     * @endcode
21912     *
21913     * @ingroup Spinner
21914     */
21915    EAPI void         elm_spinner_special_value_add(Evas_Object *obj, double value, const char *label) EINA_ARG_NONNULL(1);
21916
21917    /**
21918     * Set the interval on time updates for an user mouse button hold
21919     * on spinner widgets' arrows.
21920     *
21921     * @param obj The spinner object.
21922     * @param interval The (first) interval value in seconds.
21923     *
21924     * This interval value is @b decreased while the user holds the
21925     * mouse pointer either incrementing or decrementing spinner's value.
21926     *
21927     * This helps the user to get to a given value distant from the
21928     * current one easier/faster, as it will start to change quicker and
21929     * quicker on mouse button holds.
21930     *
21931     * The calculation for the next change interval value, starting from
21932     * the one set with this call, is the previous interval divided by
21933     * @c 1.05, so it decreases a little bit.
21934     *
21935     * The default starting interval value for automatic changes is
21936     * @c 0.85 seconds.
21937     *
21938     * @see elm_spinner_interval_get()
21939     *
21940     * @ingroup Spinner
21941     */
21942    EAPI void         elm_spinner_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
21943
21944    /**
21945     * Get the interval on time updates for an user mouse button hold
21946     * on spinner widgets' arrows.
21947     *
21948     * @param obj The spinner object.
21949     * @return The (first) interval value, in seconds, set on it.
21950     *
21951     * @see elm_spinner_interval_set() for more details.
21952     *
21953     * @ingroup Spinner
21954     */
21955    EAPI double       elm_spinner_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21956
21957    /**
21958     * @}
21959     */
21960
21961    /**
21962     * @defgroup Index Index
21963     *
21964     * @image html img/widget/index/preview-00.png
21965     * @image latex img/widget/index/preview-00.eps
21966     *
21967     * An index widget gives you an index for fast access to whichever
21968     * group of other UI items one might have. It's a list of text
21969     * items (usually letters, for alphabetically ordered access).
21970     *
21971     * Index widgets are by default hidden and just appear when the
21972     * user clicks over it's reserved area in the canvas. In its
21973     * default theme, it's an area one @ref Fingers "finger" wide on
21974     * the right side of the index widget's container.
21975     *
21976     * When items on the index are selected, smart callbacks get
21977     * called, so that its user can make other container objects to
21978     * show a given area or child object depending on the index item
21979     * selected. You'd probably be using an index together with @ref
21980     * List "lists", @ref Genlist "generic lists" or @ref Gengrid
21981     * "general grids".
21982     *
21983     * Smart events one  can add callbacks for are:
21984     * - @c "changed" - When the selected index item changes. @c
21985     *      event_info is the selected item's data pointer.
21986     * - @c "delay,changed" - When the selected index item changes, but
21987     *      after a small idling period. @c event_info is the selected
21988     *      item's data pointer.
21989     * - @c "selected" - When the user releases a mouse button and
21990     *      selects an item. @c event_info is the selected item's data
21991     *      pointer.
21992     * - @c "level,up" - when the user moves a finger from the first
21993     *      level to the second level
21994     * - @c "level,down" - when the user moves a finger from the second
21995     *      level to the first level
21996     *
21997     * The @c "delay,changed" event is so that it'll wait a small time
21998     * before actually reporting those events and, moreover, just the
21999     * last event happening on those time frames will actually be
22000     * reported.
22001     *
22002     * Here are some examples on its usage:
22003     * @li @ref index_example_01
22004     * @li @ref index_example_02
22005     */
22006
22007    /**
22008     * @addtogroup Index
22009     * @{
22010     */
22011
22012    typedef struct _Elm_Index_Item Elm_Index_Item; /**< Opaque handle for items of Elementary index widgets */
22013
22014    /**
22015     * Add a new index widget to the given parent Elementary
22016     * (container) object
22017     *
22018     * @param parent The parent object
22019     * @return a new index widget handle or @c NULL, on errors
22020     *
22021     * This function inserts a new index widget on the canvas.
22022     *
22023     * @ingroup Index
22024     */
22025    EAPI Evas_Object    *elm_index_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22026
22027    /**
22028     * Set whether a given index widget is or not visible,
22029     * programatically.
22030     *
22031     * @param obj The index object
22032     * @param active @c EINA_TRUE to show it, @c EINA_FALSE to hide it
22033     *
22034     * Not to be confused with visible as in @c evas_object_show() --
22035     * visible with regard to the widget's auto hiding feature.
22036     *
22037     * @see elm_index_active_get()
22038     *
22039     * @ingroup Index
22040     */
22041    EAPI void            elm_index_active_set(Evas_Object *obj, Eina_Bool active) EINA_ARG_NONNULL(1);
22042
22043    /**
22044     * Get whether a given index widget is currently visible or not.
22045     *
22046     * @param obj The index object
22047     * @return @c EINA_TRUE, if it's shown, @c EINA_FALSE otherwise
22048     *
22049     * @see elm_index_active_set() for more details
22050     *
22051     * @ingroup Index
22052     */
22053    EAPI Eina_Bool       elm_index_active_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22054
22055    /**
22056     * Set the items level for a given index widget.
22057     *
22058     * @param obj The index object.
22059     * @param level @c 0 or @c 1, the currently implemented levels.
22060     *
22061     * @see elm_index_item_level_get()
22062     *
22063     * @ingroup Index
22064     */
22065    EAPI void            elm_index_item_level_set(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
22066
22067    /**
22068     * Get the items level set for a given index widget.
22069     *
22070     * @param obj The index object.
22071     * @return @c 0 or @c 1, which are the levels @p obj might be at.
22072     *
22073     * @see elm_index_item_level_set() for more information
22074     *
22075     * @ingroup Index
22076     */
22077    EAPI int             elm_index_item_level_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22078
22079    /**
22080     * Returns the last selected item's data, for a given index widget.
22081     *
22082     * @param obj The index object.
22083     * @return The item @b data associated to the last selected item on
22084     * @p obj (or @c NULL, on errors).
22085     *
22086     * @warning The returned value is @b not an #Elm_Index_Item item
22087     * handle, but the data associated to it (see the @c item parameter
22088     * in elm_index_item_append(), as an example).
22089     *
22090     * @ingroup Index
22091     */
22092    EAPI void           *elm_index_item_selected_get(const Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
22093
22094    /**
22095     * Append a new item on a given index widget.
22096     *
22097     * @param obj The index object.
22098     * @param letter Letter under which the item should be indexed
22099     * @param item The item data to set for the index's item
22100     *
22101     * Despite the most common usage of the @p letter argument is for
22102     * single char strings, one could use arbitrary strings as index
22103     * entries.
22104     *
22105     * @c item will be the pointer returned back on @c "changed", @c
22106     * "delay,changed" and @c "selected" smart events.
22107     *
22108     * @ingroup Index
22109     */
22110    EAPI void            elm_index_item_append(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
22111
22112    /**
22113     * Prepend a new item on a given index widget.
22114     *
22115     * @param obj The index object.
22116     * @param letter Letter under which the item should be indexed
22117     * @param item The item data to set for the index's item
22118     *
22119     * Despite the most common usage of the @p letter argument is for
22120     * single char strings, one could use arbitrary strings as index
22121     * entries.
22122     *
22123     * @c item will be the pointer returned back on @c "changed", @c
22124     * "delay,changed" and @c "selected" smart events.
22125     *
22126     * @ingroup Index
22127     */
22128    EAPI void            elm_index_item_prepend(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
22129
22130    /**
22131     * Append a new item, on a given index widget, <b>after the item
22132     * having @p relative as data</b>.
22133     *
22134     * @param obj The index object.
22135     * @param letter Letter under which the item should be indexed
22136     * @param item The item data to set for the index's item
22137     * @param relative The item data of the index item to be the
22138     * predecessor of this new one
22139     *
22140     * Despite the most common usage of the @p letter argument is for
22141     * single char strings, one could use arbitrary strings as index
22142     * entries.
22143     *
22144     * @c item will be the pointer returned back on @c "changed", @c
22145     * "delay,changed" and @c "selected" smart events.
22146     *
22147     * @note If @p relative is @c NULL or if it's not found to be data
22148     * set on any previous item on @p obj, this function will behave as
22149     * elm_index_item_append().
22150     *
22151     * @ingroup Index
22152     */
22153    EAPI void            elm_index_item_append_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
22154
22155    /**
22156     * Prepend a new item, on a given index widget, <b>after the item
22157     * having @p relative as data</b>.
22158     *
22159     * @param obj The index object.
22160     * @param letter Letter under which the item should be indexed
22161     * @param item The item data to set for the index's item
22162     * @param relative The item data of the index item to be the
22163     * successor of this new one
22164     *
22165     * Despite the most common usage of the @p letter argument is for
22166     * single char strings, one could use arbitrary strings as index
22167     * entries.
22168     *
22169     * @c item will be the pointer returned back on @c "changed", @c
22170     * "delay,changed" and @c "selected" smart events.
22171     *
22172     * @note If @p relative is @c NULL or if it's not found to be data
22173     * set on any previous item on @p obj, this function will behave as
22174     * elm_index_item_prepend().
22175     *
22176     * @ingroup Index
22177     */
22178    EAPI void            elm_index_item_prepend_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
22179
22180    /**
22181     * Insert a new item into the given index widget, using @p cmp_func
22182     * function to sort items (by item handles).
22183     *
22184     * @param obj The index object.
22185     * @param letter Letter under which the item should be indexed
22186     * @param item The item data to set for the index's item
22187     * @param cmp_func The comparing function to be used to sort index
22188     * items <b>by #Elm_Index_Item item handles</b>
22189     * @param cmp_data_func A @b fallback function to be called for the
22190     * sorting of index items <b>by item data</b>). It will be used
22191     * when @p cmp_func returns @c 0 (equality), which means an index
22192     * item with provided item data already exists. To decide which
22193     * data item should be pointed to by the index item in question, @p
22194     * cmp_data_func will be used. If @p cmp_data_func returns a
22195     * non-negative value, the previous index item data will be
22196     * replaced by the given @p item pointer. If the previous data need
22197     * to be freed, it should be done by the @p cmp_data_func function,
22198     * because all references to it will be lost. If this function is
22199     * not provided (@c NULL is given), index items will be @b
22200     * duplicated, if @p cmp_func returns @c 0.
22201     *
22202     * Despite the most common usage of the @p letter argument is for
22203     * single char strings, one could use arbitrary strings as index
22204     * entries.
22205     *
22206     * @c item will be the pointer returned back on @c "changed", @c
22207     * "delay,changed" and @c "selected" smart events.
22208     *
22209     * @ingroup Index
22210     */
22211    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);
22212
22213    /**
22214     * Remove an item from a given index widget, <b>to be referenced by
22215     * it's data value</b>.
22216     *
22217     * @param obj The index object
22218     * @param item The item's data pointer for the item to be removed
22219     * from @p obj
22220     *
22221     * If a deletion callback is set, via elm_index_item_del_cb_set(),
22222     * that callback function will be called by this one.
22223     *
22224     * @warning The item to be removed from @p obj will be found via
22225     * its item data pointer, and not by an #Elm_Index_Item handle.
22226     *
22227     * @ingroup Index
22228     */
22229    EAPI void            elm_index_item_del(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
22230
22231    /**
22232     * Find a given index widget's item, <b>using item data</b>.
22233     *
22234     * @param obj The index object
22235     * @param item The item data pointed to by the desired index item
22236     * @return The index item handle, if found, or @c NULL otherwise
22237     *
22238     * @ingroup Index
22239     */
22240    EAPI Elm_Index_Item *elm_index_item_find(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
22241
22242    /**
22243     * Removes @b all items from a given index widget.
22244     *
22245     * @param obj The index object.
22246     *
22247     * If deletion callbacks are set, via elm_index_item_del_cb_set(),
22248     * that callback function will be called for each item in @p obj.
22249     *
22250     * @ingroup Index
22251     */
22252    EAPI void            elm_index_item_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
22253
22254    /**
22255     * Go to a given items level on a index widget
22256     *
22257     * @param obj The index object
22258     * @param level The index level (one of @c 0 or @c 1)
22259     *
22260     * @ingroup Index
22261     */
22262    EAPI void            elm_index_item_go(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
22263
22264    /**
22265     * Return the data associated with a given index widget item
22266     *
22267     * @param it The index widget item handle
22268     * @return The data associated with @p it
22269     *
22270     * @see elm_index_item_data_set()
22271     *
22272     * @ingroup Index
22273     */
22274    EAPI void           *elm_index_item_data_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
22275
22276    /**
22277     * Set the data associated with a given index widget item
22278     *
22279     * @param it The index widget item handle
22280     * @param data The new data pointer to set to @p it
22281     *
22282     * This sets new item data on @p it.
22283     *
22284     * @warning The old data pointer won't be touched by this function, so
22285     * the user had better to free that old data himself/herself.
22286     *
22287     * @ingroup Index
22288     */
22289    EAPI void            elm_index_item_data_set(Elm_Index_Item *it, const void *data) EINA_ARG_NONNULL(1);
22290
22291    /**
22292     * Set the function to be called when a given index widget item is freed.
22293     *
22294     * @param it The item to set the callback on
22295     * @param func The function to call on the item's deletion
22296     *
22297     * When called, @p func will have both @c data and @c event_info
22298     * arguments with the @p it item's data value and, naturally, the
22299     * @c obj argument with a handle to the parent index widget.
22300     *
22301     * @ingroup Index
22302     */
22303    EAPI void            elm_index_item_del_cb_set(Elm_Index_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
22304
22305    /**
22306     * Get the letter (string) set on a given index widget item.
22307     *
22308     * @param it The index item handle
22309     * @return The letter string set on @p it
22310     *
22311     * @ingroup Index
22312     */
22313    EAPI const char     *elm_index_item_letter_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
22314
22315    /**
22316     * @}
22317     */
22318
22319    /**
22320     * @defgroup Photocam Photocam
22321     *
22322     * @image html img/widget/photocam/preview-00.png
22323     * @image latex img/widget/photocam/preview-00.eps
22324     *
22325     * This is a widget specifically for displaying high-resolution digital
22326     * camera photos giving speedy feedback (fast load), low memory footprint
22327     * and zooming and panning as well as fitting logic. It is entirely focused
22328     * on jpeg images, and takes advantage of properties of the jpeg format (via
22329     * evas loader features in the jpeg loader).
22330     *
22331     * Signals that you can add callbacks for are:
22332     * @li "clicked" - This is called when a user has clicked the photo without
22333     *                 dragging around.
22334     * @li "press" - This is called when a user has pressed down on the photo.
22335     * @li "longpressed" - This is called when a user has pressed down on the
22336     *                     photo for a long time without dragging around.
22337     * @li "clicked,double" - This is called when a user has double-clicked the
22338     *                        photo.
22339     * @li "load" - Photo load begins.
22340     * @li "loaded" - This is called when the image file load is complete for the
22341     *                first view (low resolution blurry version).
22342     * @li "load,detail" - Photo detailed data load begins.
22343     * @li "loaded,detail" - This is called when the image file load is complete
22344     *                      for the detailed image data (full resolution needed).
22345     * @li "zoom,start" - Zoom animation started.
22346     * @li "zoom,stop" - Zoom animation stopped.
22347     * @li "zoom,change" - Zoom changed when using an auto zoom mode.
22348     * @li "scroll" - the content has been scrolled (moved)
22349     * @li "scroll,anim,start" - scrolling animation has started
22350     * @li "scroll,anim,stop" - scrolling animation has stopped
22351     * @li "scroll,drag,start" - dragging the contents around has started
22352     * @li "scroll,drag,stop" - dragging the contents around has stopped
22353     *
22354     * @ref tutorial_photocam shows the API in action.
22355     * @{
22356     */
22357    /**
22358     * @brief Types of zoom available.
22359     */
22360    typedef enum _Elm_Photocam_Zoom_Mode
22361      {
22362         ELM_PHOTOCAM_ZOOM_MODE_MANUAL = 0, /**< Zoom controled normally by elm_photocam_zoom_set */
22363         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT, /**< Zoom until photo fits in photocam */
22364         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL, /**< Zoom until photo fills photocam */
22365         ELM_PHOTOCAM_ZOOM_MODE_LAST
22366      } Elm_Photocam_Zoom_Mode;
22367    /**
22368     * @brief Add a new Photocam object
22369     *
22370     * @param parent The parent object
22371     * @return The new object or NULL if it cannot be created
22372     */
22373    EAPI Evas_Object           *elm_photocam_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22374    /**
22375     * @brief Set the photo file to be shown
22376     *
22377     * @param obj The photocam object
22378     * @param file The photo file
22379     * @return The return error (see EVAS_LOAD_ERROR_NONE, EVAS_LOAD_ERROR_GENERIC etc.)
22380     *
22381     * This sets (and shows) the specified file (with a relative or absolute
22382     * path) and will return a load error (same error that
22383     * evas_object_image_load_error_get() will return). The image will change and
22384     * adjust its size at this point and begin a background load process for this
22385     * photo that at some time in the future will be displayed at the full
22386     * quality needed.
22387     */
22388    EAPI Evas_Load_Error        elm_photocam_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
22389    /**
22390     * @brief Returns the path of the current image file
22391     *
22392     * @param obj The photocam object
22393     * @return Returns the path
22394     *
22395     * @see elm_photocam_file_set()
22396     */
22397    EAPI const char            *elm_photocam_file_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22398    /**
22399     * @brief Set the zoom level of the photo
22400     *
22401     * @param obj The photocam object
22402     * @param zoom The zoom level to set
22403     *
22404     * This sets the zoom level. 1 will be 1:1 pixel for pixel. 2 will be 2:1
22405     * (that is 2x2 photo pixels will display as 1 on-screen pixel). 4:1 will be
22406     * 4x4 photo pixels as 1 screen pixel, and so on. The @p zoom parameter must
22407     * be greater than 0. It is usggested to stick to powers of 2. (1, 2, 4, 8,
22408     * 16, 32, etc.).
22409     */
22410    EAPI void                   elm_photocam_zoom_set(Evas_Object *obj, double zoom) EINA_ARG_NONNULL(1);
22411    /**
22412     * @brief Get the zoom level of the photo
22413     *
22414     * @param obj The photocam object
22415     * @return The current zoom level
22416     *
22417     * This returns the current zoom level of the photocam object. Note that if
22418     * you set the fill mode to other than ELM_PHOTOCAM_ZOOM_MODE_MANUAL
22419     * (which is the default), the zoom level may be changed at any time by the
22420     * photocam object itself to account for photo size and photocam viewpoer
22421     * size.
22422     *
22423     * @see elm_photocam_zoom_set()
22424     * @see elm_photocam_zoom_mode_set()
22425     */
22426    EAPI double                 elm_photocam_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22427    /**
22428     * @brief Set the zoom mode
22429     *
22430     * @param obj The photocam object
22431     * @param mode The desired mode
22432     *
22433     * This sets the zoom mode to manual or one of several automatic levels.
22434     * Manual (ELM_PHOTOCAM_ZOOM_MODE_MANUAL) means that zoom is set manually by
22435     * elm_photocam_zoom_set() and will stay at that level until changed by code
22436     * or until zoom mode is changed. This is the default mode. The Automatic
22437     * modes will allow the photocam object to automatically adjust zoom mode
22438     * based on properties. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT) will adjust zoom so
22439     * the photo fits EXACTLY inside the scroll frame with no pixels outside this
22440     * area. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL will be similar but ensure no
22441     * pixels within the frame are left unfilled.
22442     */
22443    EAPI void                   elm_photocam_zoom_mode_set(Evas_Object *obj, Elm_Photocam_Zoom_Mode mode) EINA_ARG_NONNULL(1);
22444    /**
22445     * @brief Get the zoom mode
22446     *
22447     * @param obj The photocam object
22448     * @return The current zoom mode
22449     *
22450     * This gets the current zoom mode of the photocam object.
22451     *
22452     * @see elm_photocam_zoom_mode_set()
22453     */
22454    EAPI Elm_Photocam_Zoom_Mode elm_photocam_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22455    /**
22456     * @brief Get the current image pixel width and height
22457     *
22458     * @param obj The photocam object
22459     * @param w A pointer to the width return
22460     * @param h A pointer to the height return
22461     *
22462     * This gets the current photo pixel width and height (for the original).
22463     * The size will be returned in the integers @p w and @p h that are pointed
22464     * to.
22465     */
22466    EAPI void                   elm_photocam_image_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
22467    /**
22468     * @brief Get the area of the image that is currently shown
22469     *
22470     * @param obj
22471     * @param x A pointer to the X-coordinate of region
22472     * @param y A pointer to the Y-coordinate of region
22473     * @param w A pointer to the width
22474     * @param h A pointer to the height
22475     *
22476     * @see elm_photocam_image_region_show()
22477     * @see elm_photocam_image_region_bring_in()
22478     */
22479    EAPI void                   elm_photocam_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
22480    /**
22481     * @brief Set the viewed portion of the image
22482     *
22483     * @param obj The photocam object
22484     * @param x X-coordinate of region in image original pixels
22485     * @param y Y-coordinate of region in image original pixels
22486     * @param w Width of region in image original pixels
22487     * @param h Height of region in image original pixels
22488     *
22489     * This shows the region of the image without using animation.
22490     */
22491    EAPI void                   elm_photocam_image_region_show(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
22492    /**
22493     * @brief Bring in the viewed portion of the image
22494     *
22495     * @param obj The photocam object
22496     * @param x X-coordinate of region in image original pixels
22497     * @param y Y-coordinate of region in image original pixels
22498     * @param w Width of region in image original pixels
22499     * @param h Height of region in image original pixels
22500     *
22501     * This shows the region of the image using animation.
22502     */
22503    EAPI void                   elm_photocam_image_region_bring_in(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
22504    /**
22505     * @brief Set the paused state for photocam
22506     *
22507     * @param obj The photocam object
22508     * @param paused The pause state to set
22509     *
22510     * This sets the paused state to on(EINA_TRUE) or off (EINA_FALSE) for
22511     * photocam. The default is off. This will stop zooming using animation on
22512     * zoom levels changes and change instantly. This will stop any existing
22513     * animations that are running.
22514     */
22515    EAPI void                   elm_photocam_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
22516    /**
22517     * @brief Get the paused state for photocam
22518     *
22519     * @param obj The photocam object
22520     * @return The current paused state
22521     *
22522     * This gets the current paused state for the photocam object.
22523     *
22524     * @see elm_photocam_paused_set()
22525     */
22526    EAPI Eina_Bool              elm_photocam_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22527    /**
22528     * @brief Get the internal low-res image used for photocam
22529     *
22530     * @param obj The photocam object
22531     * @return The internal image object handle, or NULL if none exists
22532     *
22533     * This gets the internal image object inside photocam. Do not modify it. It
22534     * is for inspection only, and hooking callbacks to. Nothing else. It may be
22535     * deleted at any time as well.
22536     */
22537    EAPI Evas_Object           *elm_photocam_internal_image_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22538    /**
22539     * @brief Set the photocam scrolling bouncing.
22540     *
22541     * @param obj The photocam object
22542     * @param h_bounce bouncing for horizontal
22543     * @param v_bounce bouncing for vertical
22544     */
22545    EAPI void                   elm_photocam_bounce_set(Evas_Object *obj,  Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
22546    /**
22547     * @brief Get the photocam scrolling bouncing.
22548     *
22549     * @param obj The photocam object
22550     * @param h_bounce bouncing for horizontal
22551     * @param v_bounce bouncing for vertical
22552     *
22553     * @see elm_photocam_bounce_set()
22554     */
22555    EAPI void                   elm_photocam_bounce_get(const Evas_Object *obj,  Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
22556    /**
22557     * @}
22558     */
22559
22560    /**
22561     * @defgroup Map Map
22562     * @ingroup Elementary
22563     *
22564     * @image html img/widget/map/preview-00.png
22565     * @image latex img/widget/map/preview-00.eps
22566     *
22567     * This is a widget specifically for displaying a map. It uses basically
22568     * OpenStreetMap provider http://www.openstreetmap.org/,
22569     * but custom providers can be added.
22570     *
22571     * It supports some basic but yet nice features:
22572     * @li zoom and scroll
22573     * @li markers with content to be displayed when user clicks over it
22574     * @li group of markers
22575     * @li routes
22576     *
22577     * Smart callbacks one can listen to:
22578     *
22579     * - "clicked" - This is called when a user has clicked the map without
22580     *   dragging around.
22581     * - "press" - This is called when a user has pressed down on the map.
22582     * - "longpressed" - This is called when a user has pressed down on the map
22583     *   for a long time without dragging around.
22584     * - "clicked,double" - This is called when a user has double-clicked
22585     *   the map.
22586     * - "load,detail" - Map detailed data load begins.
22587     * - "loaded,detail" - This is called when all currently visible parts of
22588     *   the map are loaded.
22589     * - "zoom,start" - Zoom animation started.
22590     * - "zoom,stop" - Zoom animation stopped.
22591     * - "zoom,change" - Zoom changed when using an auto zoom mode.
22592     * - "scroll" - the content has been scrolled (moved).
22593     * - "scroll,anim,start" - scrolling animation has started.
22594     * - "scroll,anim,stop" - scrolling animation has stopped.
22595     * - "scroll,drag,start" - dragging the contents around has started.
22596     * - "scroll,drag,stop" - dragging the contents around has stopped.
22597     * - "downloaded" - This is called when all currently required map images
22598     *   are downloaded.
22599     * - "route,load" - This is called when route request begins.
22600     * - "route,loaded" - This is called when route request ends.
22601     * - "name,load" - This is called when name request begins.
22602     * - "name,loaded- This is called when name request ends.
22603     *
22604     * Available style for map widget:
22605     * - @c "default"
22606     *
22607     * Available style for markers:
22608     * - @c "radio"
22609     * - @c "radio2"
22610     * - @c "empty"
22611     *
22612     * Available style for marker bubble:
22613     * - @c "default"
22614     *
22615     * List of examples:
22616     * @li @ref map_example_01
22617     * @li @ref map_example_02
22618     * @li @ref map_example_03
22619     */
22620
22621    /**
22622     * @addtogroup Map
22623     * @{
22624     */
22625
22626    /**
22627     * @enum _Elm_Map_Zoom_Mode
22628     * @typedef Elm_Map_Zoom_Mode
22629     *
22630     * Set map's zoom behavior. It can be set to manual or automatic.
22631     *
22632     * Default value is #ELM_MAP_ZOOM_MODE_MANUAL.
22633     *
22634     * Values <b> don't </b> work as bitmask, only one can be choosen.
22635     *
22636     * @note Valid sizes are 2^zoom, consequently the map may be smaller
22637     * than the scroller view.
22638     *
22639     * @see elm_map_zoom_mode_set()
22640     * @see elm_map_zoom_mode_get()
22641     *
22642     * @ingroup Map
22643     */
22644    typedef enum _Elm_Map_Zoom_Mode
22645      {
22646         ELM_MAP_ZOOM_MODE_MANUAL, /**< Zoom controled manually by elm_map_zoom_set(). It's set by default. */
22647         ELM_MAP_ZOOM_MODE_AUTO_FIT, /**< Zoom until map fits inside the scroll frame with no pixels outside this area. */
22648         ELM_MAP_ZOOM_MODE_AUTO_FILL, /**< Zoom until map fills scroll, ensuring no pixels are left unfilled. */
22649         ELM_MAP_ZOOM_MODE_LAST
22650      } Elm_Map_Zoom_Mode;
22651
22652    /**
22653     * @enum _Elm_Map_Route_Sources
22654     * @typedef Elm_Map_Route_Sources
22655     *
22656     * Set route service to be used. By default used source is
22657     * #ELM_MAP_ROUTE_SOURCE_YOURS.
22658     *
22659     * @see elm_map_route_source_set()
22660     * @see elm_map_route_source_get()
22661     *
22662     * @ingroup Map
22663     */
22664    typedef enum _Elm_Map_Route_Sources
22665      {
22666         ELM_MAP_ROUTE_SOURCE_YOURS, /**< Routing service http://www.yournavigation.org/ . Set by default.*/
22667         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. */
22668         ELM_MAP_ROUTE_SOURCE_ORS, /**< Open Route Service: http://www.openrouteservice.org/ . It's not working with Map yet. */
22669         ELM_MAP_ROUTE_SOURCE_LAST
22670      } Elm_Map_Route_Sources;
22671
22672    typedef enum _Elm_Map_Name_Sources
22673      {
22674         ELM_MAP_NAME_SOURCE_NOMINATIM,
22675         ELM_MAP_NAME_SOURCE_LAST
22676      } Elm_Map_Name_Sources;
22677
22678    /**
22679     * @enum _Elm_Map_Route_Type
22680     * @typedef Elm_Map_Route_Type
22681     *
22682     * Set type of transport used on route.
22683     *
22684     * @see elm_map_route_add()
22685     *
22686     * @ingroup Map
22687     */
22688    typedef enum _Elm_Map_Route_Type
22689      {
22690         ELM_MAP_ROUTE_TYPE_MOTOCAR, /**< Route should consider an automobile will be used. */
22691         ELM_MAP_ROUTE_TYPE_BICYCLE, /**< Route should consider a bicycle will be used by the user. */
22692         ELM_MAP_ROUTE_TYPE_FOOT, /**< Route should consider user will be walking. */
22693         ELM_MAP_ROUTE_TYPE_LAST
22694      } Elm_Map_Route_Type;
22695
22696    /**
22697     * @enum _Elm_Map_Route_Method
22698     * @typedef Elm_Map_Route_Method
22699     *
22700     * Set the routing method, what should be priorized, time or distance.
22701     *
22702     * @see elm_map_route_add()
22703     *
22704     * @ingroup Map
22705     */
22706    typedef enum _Elm_Map_Route_Method
22707      {
22708         ELM_MAP_ROUTE_METHOD_FASTEST, /**< Route should priorize time. */
22709         ELM_MAP_ROUTE_METHOD_SHORTEST, /**< Route should priorize distance. */
22710         ELM_MAP_ROUTE_METHOD_LAST
22711      } Elm_Map_Route_Method;
22712
22713    typedef enum _Elm_Map_Name_Method
22714      {
22715         ELM_MAP_NAME_METHOD_SEARCH,
22716         ELM_MAP_NAME_METHOD_REVERSE,
22717         ELM_MAP_NAME_METHOD_LAST
22718      } Elm_Map_Name_Method;
22719
22720    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(). */
22721    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(). */
22722    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(). */
22723    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(). */
22724    typedef struct _Elm_Map_Name            Elm_Map_Name; /**< A handle for specific coordinates. */
22725    typedef struct _Elm_Map_Track           Elm_Map_Track;
22726
22727    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. */
22728    typedef void         (*ElmMapMarkerDelFunc)      (Evas_Object *obj, Elm_Map_Marker *marker, void *data, Evas_Object *o); /**< Function to delete bubble content for marker classes. */
22729    typedef Evas_Object *(*ElmMapMarkerIconGetFunc)  (Evas_Object *obj, Elm_Map_Marker *marker, void *data); /**< Icon fetching class function for marker classes. */
22730    typedef Evas_Object *(*ElmMapGroupIconGetFunc)   (Evas_Object *obj, void *data); /**< Icon fetching class function for markers group classes. */
22731
22732    typedef char        *(*ElmMapModuleSourceFunc) (void);
22733    typedef int          (*ElmMapModuleZoomMinFunc) (void);
22734    typedef int          (*ElmMapModuleZoomMaxFunc) (void);
22735    typedef char        *(*ElmMapModuleUrlFunc) (Evas_Object *obj, int x, int y, int zoom);
22736    typedef int          (*ElmMapModuleRouteSourceFunc) (void);
22737    typedef char        *(*ElmMapModuleRouteUrlFunc) (Evas_Object *obj, char *type_name, int method, double flon, double flat, double tlon, double tlat);
22738    typedef char        *(*ElmMapModuleNameUrlFunc) (Evas_Object *obj, int method, char *name, double lon, double lat);
22739    typedef Eina_Bool    (*ElmMapModuleGeoIntoCoordFunc) (const Evas_Object *obj, int zoom, double lon, double lat, int size, int *x, int *y);
22740    typedef Eina_Bool    (*ElmMapModuleCoordIntoGeoFunc) (const Evas_Object *obj, int zoom, int x, int y, int size, double *lon, double *lat);
22741
22742    /**
22743     * Add a new map widget to the given parent Elementary (container) object.
22744     *
22745     * @param parent The parent object.
22746     * @return a new map widget handle or @c NULL, on errors.
22747     *
22748     * This function inserts a new map widget on the canvas.
22749     *
22750     * @ingroup Map
22751     */
22752    EAPI Evas_Object          *elm_map_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22753
22754    /**
22755     * Set the zoom level of the map.
22756     *
22757     * @param obj The map object.
22758     * @param zoom The zoom level to set.
22759     *
22760     * This sets the zoom level.
22761     *
22762     * It will respect limits defined by elm_map_source_zoom_min_set() and
22763     * elm_map_source_zoom_max_set().
22764     *
22765     * By default these values are 0 (world map) and 18 (maximum zoom).
22766     *
22767     * This function should be used when zoom mode is set to
22768     * #ELM_MAP_ZOOM_MODE_MANUAL. This is the default mode, and can be set
22769     * with elm_map_zoom_mode_set().
22770     *
22771     * @see elm_map_zoom_mode_set().
22772     * @see elm_map_zoom_get().
22773     *
22774     * @ingroup Map
22775     */
22776    EAPI void                  elm_map_zoom_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
22777
22778    /**
22779     * Get the zoom level of the map.
22780     *
22781     * @param obj The map object.
22782     * @return The current zoom level.
22783     *
22784     * This returns the current zoom level of the map object.
22785     *
22786     * Note that if you set the fill mode to other than #ELM_MAP_ZOOM_MODE_MANUAL
22787     * (which is the default), the zoom level may be changed at any time by the
22788     * map object itself to account for map size and map viewport size.
22789     *
22790     * @see elm_map_zoom_set() for details.
22791     *
22792     * @ingroup Map
22793     */
22794    EAPI int                   elm_map_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22795
22796    /**
22797     * Set the zoom mode used by the map object.
22798     *
22799     * @param obj The map object.
22800     * @param mode The zoom mode of the map, being it one of
22801     * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
22802     * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
22803     *
22804     * This sets the zoom mode to manual or one of the automatic levels.
22805     * Manual (#ELM_MAP_ZOOM_MODE_MANUAL) means that zoom is set manually by
22806     * elm_map_zoom_set() and will stay at that level until changed by code
22807     * or until zoom mode is changed. This is the default mode.
22808     *
22809     * The Automatic modes will allow the map object to automatically
22810     * adjust zoom mode based on properties. #ELM_MAP_ZOOM_MODE_AUTO_FIT will
22811     * adjust zoom so the map fits inside the scroll frame with no pixels
22812     * outside this area. #ELM_MAP_ZOOM_MODE_AUTO_FILL will be similar but
22813     * ensure no pixels within the frame are left unfilled. Do not forget that
22814     * the valid sizes are 2^zoom, consequently the map may be smaller than
22815     * the scroller view.
22816     *
22817     * @see elm_map_zoom_set()
22818     *
22819     * @ingroup Map
22820     */
22821    EAPI void                  elm_map_zoom_mode_set(Evas_Object *obj, Elm_Map_Zoom_Mode mode) EINA_ARG_NONNULL(1);
22822
22823    /**
22824     * Get the zoom mode used by the map object.
22825     *
22826     * @param obj The map object.
22827     * @return The zoom mode of the map, being it one of
22828     * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
22829     * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
22830     *
22831     * This function returns the current zoom mode used by the map object.
22832     *
22833     * @see elm_map_zoom_mode_set() for more details.
22834     *
22835     * @ingroup Map
22836     */
22837    EAPI Elm_Map_Zoom_Mode     elm_map_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22838
22839    /**
22840     * Get the current coordinates of the map.
22841     *
22842     * @param obj The map object.
22843     * @param lon Pointer where to store longitude.
22844     * @param lat Pointer where to store latitude.
22845     *
22846     * This gets the current center coordinates of the map object. It can be
22847     * set by elm_map_geo_region_bring_in() and elm_map_geo_region_show().
22848     *
22849     * @see elm_map_geo_region_bring_in()
22850     * @see elm_map_geo_region_show()
22851     *
22852     * @ingroup Map
22853     */
22854    EAPI void                  elm_map_geo_region_get(const Evas_Object *obj, double *lon, double *lat) EINA_ARG_NONNULL(1);
22855
22856    /**
22857     * Animatedly bring in given coordinates to the center of the map.
22858     *
22859     * @param obj The map object.
22860     * @param lon Longitude to center at.
22861     * @param lat Latitude to center at.
22862     *
22863     * This causes map to jump to the given @p lat and @p lon coordinates
22864     * and show it (by scrolling) in the center of the viewport, if it is not
22865     * already centered. This will use animation to do so and take a period
22866     * of time to complete.
22867     *
22868     * @see elm_map_geo_region_show() for a function to avoid animation.
22869     * @see elm_map_geo_region_get()
22870     *
22871     * @ingroup Map
22872     */
22873    EAPI void                  elm_map_geo_region_bring_in(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
22874
22875    /**
22876     * Show the given coordinates at the center of the map, @b immediately.
22877     *
22878     * @param obj The map object.
22879     * @param lon Longitude to center at.
22880     * @param lat Latitude to center at.
22881     *
22882     * This causes map to @b redraw its viewport's contents to the
22883     * region contining the given @p lat and @p lon, that will be moved to the
22884     * center of the map.
22885     *
22886     * @see elm_map_geo_region_bring_in() for a function to move with animation.
22887     * @see elm_map_geo_region_get()
22888     *
22889     * @ingroup Map
22890     */
22891    EAPI void                  elm_map_geo_region_show(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
22892
22893    /**
22894     * Pause or unpause the map.
22895     *
22896     * @param obj The map object.
22897     * @param paused Use @c EINA_TRUE to pause the map @p obj or @c EINA_FALSE
22898     * to unpause it.
22899     *
22900     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
22901     * for map.
22902     *
22903     * The default is off.
22904     *
22905     * This will stop zooming using animation, changing zoom levels will
22906     * change instantly. This will stop any existing animations that are running.
22907     *
22908     * @see elm_map_paused_get()
22909     *
22910     * @ingroup Map
22911     */
22912    EAPI void                  elm_map_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
22913
22914    /**
22915     * Get a value whether map is paused or not.
22916     *
22917     * @param obj The map object.
22918     * @return @c EINA_TRUE means map is pause. @c EINA_FALSE indicates
22919     * it is not. If @p obj is @c NULL, @c EINA_FALSE is returned.
22920     *
22921     * This gets the current paused state for the map object.
22922     *
22923     * @see elm_map_paused_set() for details.
22924     *
22925     * @ingroup Map
22926     */
22927    EAPI Eina_Bool             elm_map_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22928
22929    /**
22930     * Set to show markers during zoom level changes or not.
22931     *
22932     * @param obj The map object.
22933     * @param paused Use @c EINA_TRUE to @b not show markers or @c EINA_FALSE
22934     * to show them.
22935     *
22936     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
22937     * for map.
22938     *
22939     * The default is off.
22940     *
22941     * This will stop zooming using animation, changing zoom levels will
22942     * change instantly. This will stop any existing animations that are running.
22943     *
22944     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
22945     * for the markers.
22946     *
22947     * The default  is off.
22948     *
22949     * Enabling it will force the map to stop displaying the markers during
22950     * zoom level changes. Set to on if you have a large number of markers.
22951     *
22952     * @see elm_map_paused_markers_get()
22953     *
22954     * @ingroup Map
22955     */
22956    EAPI void                  elm_map_paused_markers_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
22957
22958    /**
22959     * Get a value whether markers will be displayed on zoom level changes or not
22960     *
22961     * @param obj The map object.
22962     * @return @c EINA_TRUE means map @b won't display markers or @c EINA_FALSE
22963     * indicates it will. If @p obj is @c NULL, @c EINA_FALSE is returned.
22964     *
22965     * This gets the current markers paused state for the map object.
22966     *
22967     * @see elm_map_paused_markers_set() for details.
22968     *
22969     * @ingroup Map
22970     */
22971    EAPI Eina_Bool             elm_map_paused_markers_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22972
22973    /**
22974     * Get the information of downloading status.
22975     *
22976     * @param obj The map object.
22977     * @param try_num Pointer where to store number of tiles being downloaded.
22978     * @param finish_num Pointer where to store number of tiles successfully
22979     * downloaded.
22980     *
22981     * This gets the current downloading status for the map object, the number
22982     * of tiles being downloaded and the number of tiles already downloaded.
22983     *
22984     * @ingroup Map
22985     */
22986    EAPI void                  elm_map_utils_downloading_status_get(const Evas_Object *obj, int *try_num, int *finish_num) EINA_ARG_NONNULL(1, 2, 3);
22987
22988    /**
22989     * Convert a pixel coordinate (x,y) into a geographic coordinate
22990     * (longitude, latitude).
22991     *
22992     * @param obj The map object.
22993     * @param x the coordinate.
22994     * @param y the coordinate.
22995     * @param size the size in pixels of the map.
22996     * The map is a square and generally his size is : pow(2.0, zoom)*256.
22997     * @param lon Pointer where to store the longitude that correspond to x.
22998     * @param lat Pointer where to store the latitude that correspond to y.
22999     *
23000     * @note Origin pixel point is the top left corner of the viewport.
23001     * Map zoom and size are taken on account.
23002     *
23003     * @see elm_map_utils_convert_geo_into_coord() if you need the inverse.
23004     *
23005     * @ingroup Map
23006     */
23007    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);
23008
23009    /**
23010     * Convert a geographic coordinate (longitude, latitude) into a pixel
23011     * coordinate (x, y).
23012     *
23013     * @param obj The map object.
23014     * @param lon the longitude.
23015     * @param lat the latitude.
23016     * @param size the size in pixels of the map. The map is a square
23017     * and generally his size is : pow(2.0, zoom)*256.
23018     * @param x Pointer where to store the horizontal pixel coordinate that
23019     * correspond to the longitude.
23020     * @param y Pointer where to store the vertical pixel coordinate that
23021     * correspond to the latitude.
23022     *
23023     * @note Origin pixel point is the top left corner of the viewport.
23024     * Map zoom and size are taken on account.
23025     *
23026     * @see elm_map_utils_convert_coord_into_geo() if you need the inverse.
23027     *
23028     * @ingroup Map
23029     */
23030    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);
23031
23032    /**
23033     * Convert a geographic coordinate (longitude, latitude) into a name
23034     * (address).
23035     *
23036     * @param obj The map object.
23037     * @param lon the longitude.
23038     * @param lat the latitude.
23039     * @return name A #Elm_Map_Name handle for this coordinate.
23040     *
23041     * To get the string for this address, elm_map_name_address_get()
23042     * should be used.
23043     *
23044     * @see elm_map_utils_convert_name_into_coord() if you need the inverse.
23045     *
23046     * @ingroup Map
23047     */
23048    EAPI Elm_Map_Name         *elm_map_utils_convert_coord_into_name(const Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
23049
23050    /**
23051     * Convert a name (address) into a geographic coordinate
23052     * (longitude, latitude).
23053     *
23054     * @param obj The map object.
23055     * @param name The address.
23056     * @return name A #Elm_Map_Name handle for this address.
23057     *
23058     * To get the longitude and latitude, elm_map_name_region_get()
23059     * should be used.
23060     *
23061     * @see elm_map_utils_convert_coord_into_name() if you need the inverse.
23062     *
23063     * @ingroup Map
23064     */
23065    EAPI Elm_Map_Name         *elm_map_utils_convert_name_into_coord(const Evas_Object *obj, char *address) EINA_ARG_NONNULL(1, 2);
23066
23067    /**
23068     * Convert a pixel coordinate into a rotated pixel coordinate.
23069     *
23070     * @param obj The map object.
23071     * @param x horizontal coordinate of the point to rotate.
23072     * @param y vertical coordinate of the point to rotate.
23073     * @param cx rotation's center horizontal position.
23074     * @param cy rotation's center vertical position.
23075     * @param degree amount of degrees from 0.0 to 360.0 to rotate arount Z axis.
23076     * @param xx Pointer where to store rotated x.
23077     * @param yy Pointer where to store rotated y.
23078     *
23079     * @ingroup Map
23080     */
23081    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);
23082
23083    /**
23084     * Add a new marker to the map object.
23085     *
23086     * @param obj The map object.
23087     * @param lon The longitude of the marker.
23088     * @param lat The latitude of the marker.
23089     * @param clas The class, to use when marker @b isn't grouped to others.
23090     * @param clas_group The class group, to use when marker is grouped to others
23091     * @param data The data passed to the callbacks.
23092     *
23093     * @return The created marker or @c NULL upon failure.
23094     *
23095     * A marker will be created and shown in a specific point of the map, defined
23096     * by @p lon and @p lat.
23097     *
23098     * It will be displayed using style defined by @p class when this marker
23099     * is displayed alone (not grouped). A new class can be created with
23100     * elm_map_marker_class_new().
23101     *
23102     * If the marker is grouped to other markers, it will be displayed with
23103     * style defined by @p class_group. Markers with the same group are grouped
23104     * if they are close. A new group class can be created with
23105     * elm_map_marker_group_class_new().
23106     *
23107     * Markers created with this method can be deleted with
23108     * elm_map_marker_remove().
23109     *
23110     * A marker can have associated content to be displayed by a bubble,
23111     * when a user click over it, as well as an icon. These objects will
23112     * be fetch using class' callback functions.
23113     *
23114     * @see elm_map_marker_class_new()
23115     * @see elm_map_marker_group_class_new()
23116     * @see elm_map_marker_remove()
23117     *
23118     * @ingroup Map
23119     */
23120    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);
23121
23122    /**
23123     * Set the maximum numbers of markers' content to be displayed in a group.
23124     *
23125     * @param obj The map object.
23126     * @param max The maximum numbers of items displayed in a bubble.
23127     *
23128     * A bubble will be displayed when the user clicks over the group,
23129     * and will place the content of markers that belong to this group
23130     * inside it.
23131     *
23132     * A group can have a long list of markers, consequently the creation
23133     * of the content of the bubble can be very slow.
23134     *
23135     * In order to avoid this, a maximum number of items is displayed
23136     * in a bubble.
23137     *
23138     * By default this number is 30.
23139     *
23140     * Marker with the same group class are grouped if they are close.
23141     *
23142     * @see elm_map_marker_add()
23143     *
23144     * @ingroup Map
23145     */
23146    EAPI void                  elm_map_max_marker_per_group_set(Evas_Object *obj, int max) EINA_ARG_NONNULL(1);
23147
23148    /**
23149     * Remove a marker from the map.
23150     *
23151     * @param marker The marker to remove.
23152     *
23153     * @see elm_map_marker_add()
23154     *
23155     * @ingroup Map
23156     */
23157    EAPI void                  elm_map_marker_remove(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
23158
23159    /**
23160     * Get the current coordinates of the marker.
23161     *
23162     * @param marker marker.
23163     * @param lat Pointer where to store the marker's latitude.
23164     * @param lon Pointer where to store the marker's longitude.
23165     *
23166     * These values are set when adding markers, with function
23167     * elm_map_marker_add().
23168     *
23169     * @see elm_map_marker_add()
23170     *
23171     * @ingroup Map
23172     */
23173    EAPI void                  elm_map_marker_region_get(const Elm_Map_Marker *marker, double *lon, double *lat) EINA_ARG_NONNULL(1);
23174
23175    /**
23176     * Animatedly bring in given marker to the center of the map.
23177     *
23178     * @param marker The marker to center at.
23179     *
23180     * This causes map to jump to the given @p marker's coordinates
23181     * and show it (by scrolling) in the center of the viewport, if it is not
23182     * already centered. This will use animation to do so and take a period
23183     * of time to complete.
23184     *
23185     * @see elm_map_marker_show() for a function to avoid animation.
23186     * @see elm_map_marker_region_get()
23187     *
23188     * @ingroup Map
23189     */
23190    EAPI void                  elm_map_marker_bring_in(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
23191
23192    /**
23193     * Show the given marker at the center of the map, @b immediately.
23194     *
23195     * @param marker The marker to center at.
23196     *
23197     * This causes map to @b redraw its viewport's contents to the
23198     * region contining the given @p marker's coordinates, that will be
23199     * moved to the center of the map.
23200     *
23201     * @see elm_map_marker_bring_in() for a function to move with animation.
23202     * @see elm_map_markers_list_show() if more than one marker need to be
23203     * displayed.
23204     * @see elm_map_marker_region_get()
23205     *
23206     * @ingroup Map
23207     */
23208    EAPI void                  elm_map_marker_show(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
23209
23210    /**
23211     * Move and zoom the map to display a list of markers.
23212     *
23213     * @param markers A list of #Elm_Map_Marker handles.
23214     *
23215     * The map will be centered on the center point of the markers in the list.
23216     * Then the map will be zoomed in order to fit the markers using the maximum
23217     * zoom which allows display of all the markers.
23218     *
23219     * @warning All the markers should belong to the same map object.
23220     *
23221     * @see elm_map_marker_show() to show a single marker.
23222     * @see elm_map_marker_bring_in()
23223     *
23224     * @ingroup Map
23225     */
23226    EAPI void                  elm_map_markers_list_show(Eina_List *markers) EINA_ARG_NONNULL(1);
23227
23228    /**
23229     * Get the Evas object returned by the ElmMapMarkerGetFunc callback
23230     *
23231     * @param marker The marker wich content should be returned.
23232     * @return Return the evas object if it exists, else @c NULL.
23233     *
23234     * To set callback function #ElmMapMarkerGetFunc for the marker class,
23235     * elm_map_marker_class_get_cb_set() should be used.
23236     *
23237     * This content is what will be inside the bubble that will be displayed
23238     * when an user clicks over the marker.
23239     *
23240     * This returns the actual Evas object used to be placed inside
23241     * the bubble. This may be @c NULL, as it may
23242     * not have been created or may have been deleted, at any time, by
23243     * the map. <b>Do not modify this object</b> (move, resize,
23244     * show, hide, etc.), as the map is controlling it. This
23245     * function is for querying, emitting custom signals or hooking
23246     * lower level callbacks for events on that object. Do not delete
23247     * this object under any circumstances.
23248     *
23249     * @ingroup Map
23250     */
23251    EAPI Evas_Object          *elm_map_marker_object_get(const Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
23252
23253    /**
23254     * Update the marker
23255     *
23256     * @param marker The marker to be updated.
23257     *
23258     * If a content is set to this marker, it will call function to delete it,
23259     * #ElmMapMarkerDelFunc, and then will fetch the content again with
23260     * #ElmMapMarkerGetFunc.
23261     *
23262     * These functions are set for the marker class with
23263     * elm_map_marker_class_get_cb_set() and elm_map_marker_class_del_cb_set().
23264     *
23265     * @ingroup Map
23266     */
23267    EAPI void                  elm_map_marker_update(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
23268
23269    /**
23270     * Close all the bubbles opened by the user.
23271     *
23272     * @param obj The map object.
23273     *
23274     * A bubble is displayed with a content fetched with #ElmMapMarkerGetFunc
23275     * when the user clicks on a marker.
23276     *
23277     * This functions is set for the marker class with
23278     * elm_map_marker_class_get_cb_set().
23279     *
23280     * @ingroup Map
23281     */
23282    EAPI void                  elm_map_bubbles_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
23283
23284    /**
23285     * Create a new group class.
23286     *
23287     * @param obj The map object.
23288     * @return Returns the new group class.
23289     *
23290     * Each marker must be associated to a group class. Markers in the same
23291     * group are grouped if they are close.
23292     *
23293     * The group class defines the style of the marker when a marker is grouped
23294     * to others markers. When it is alone, another class will be used.
23295     *
23296     * A group class will need to be provided when creating a marker with
23297     * elm_map_marker_add().
23298     *
23299     * Some properties and functions can be set by class, as:
23300     * - style, with elm_map_group_class_style_set()
23301     * - data - to be associated to the group class. It can be set using
23302     *   elm_map_group_class_data_set().
23303     * - min zoom to display markers, set with
23304     *   elm_map_group_class_zoom_displayed_set().
23305     * - max zoom to group markers, set using
23306     *   elm_map_group_class_zoom_grouped_set().
23307     * - visibility - set if markers will be visible or not, set with
23308     *   elm_map_group_class_hide_set().
23309     * - #ElmMapGroupIconGetFunc - used to fetch icon for markers group classes.
23310     *   It can be set using elm_map_group_class_icon_cb_set().
23311     *
23312     * @see elm_map_marker_add()
23313     * @see elm_map_group_class_style_set()
23314     * @see elm_map_group_class_data_set()
23315     * @see elm_map_group_class_zoom_displayed_set()
23316     * @see elm_map_group_class_zoom_grouped_set()
23317     * @see elm_map_group_class_hide_set()
23318     * @see elm_map_group_class_icon_cb_set()
23319     *
23320     * @ingroup Map
23321     */
23322    EAPI Elm_Map_Group_Class  *elm_map_group_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
23323
23324    /**
23325     * Set the marker's style of a group class.
23326     *
23327     * @param clas The group class.
23328     * @param style The style to be used by markers.
23329     *
23330     * Each marker must be associated to a group class, and will use the style
23331     * defined by such class when grouped to other markers.
23332     *
23333     * The following styles are provided by default theme:
23334     * @li @c radio - blue circle
23335     * @li @c radio2 - green circle
23336     * @li @c empty
23337     *
23338     * @see elm_map_group_class_new() for more details.
23339     * @see elm_map_marker_add()
23340     *
23341     * @ingroup Map
23342     */
23343    EAPI void                  elm_map_group_class_style_set(Elm_Map_Group_Class *clas, const char *style) EINA_ARG_NONNULL(1);
23344
23345    /**
23346     * Set the icon callback function of a group class.
23347     *
23348     * @param clas The group class.
23349     * @param icon_get The callback function that will return the icon.
23350     *
23351     * Each marker must be associated to a group class, and it can display a
23352     * custom icon. The function @p icon_get must return this icon.
23353     *
23354     * @see elm_map_group_class_new() for more details.
23355     * @see elm_map_marker_add()
23356     *
23357     * @ingroup Map
23358     */
23359    EAPI void                  elm_map_group_class_icon_cb_set(Elm_Map_Group_Class *clas, ElmMapGroupIconGetFunc icon_get) EINA_ARG_NONNULL(1);
23360
23361    /**
23362     * Set the data associated to the group class.
23363     *
23364     * @param clas The group class.
23365     * @param data The new user data.
23366     *
23367     * This data will be passed for callback functions, like icon get callback,
23368     * that can be set with elm_map_group_class_icon_cb_set().
23369     *
23370     * If a data was previously set, the object will lose the pointer for it,
23371     * so if needs to be freed, you must do it yourself.
23372     *
23373     * @see elm_map_group_class_new() for more details.
23374     * @see elm_map_group_class_icon_cb_set()
23375     * @see elm_map_marker_add()
23376     *
23377     * @ingroup Map
23378     */
23379    EAPI void                  elm_map_group_class_data_set(Elm_Map_Group_Class *clas, void *data) EINA_ARG_NONNULL(1);
23380
23381    /**
23382     * Set the minimum zoom from where the markers are displayed.
23383     *
23384     * @param clas The group class.
23385     * @param zoom The minimum zoom.
23386     *
23387     * Markers only will be displayed when the map is displayed at @p zoom
23388     * or bigger.
23389     *
23390     * @see elm_map_group_class_new() for more details.
23391     * @see elm_map_marker_add()
23392     *
23393     * @ingroup Map
23394     */
23395    EAPI void                  elm_map_group_class_zoom_displayed_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
23396
23397    /**
23398     * Set the zoom from where the markers are no more grouped.
23399     *
23400     * @param clas The group class.
23401     * @param zoom The maximum zoom.
23402     *
23403     * Markers only will be grouped when the map is displayed at
23404     * less than @p zoom.
23405     *
23406     * @see elm_map_group_class_new() for more details.
23407     * @see elm_map_marker_add()
23408     *
23409     * @ingroup Map
23410     */
23411    EAPI void                  elm_map_group_class_zoom_grouped_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
23412
23413    /**
23414     * Set if the markers associated to the group class @clas are hidden or not.
23415     *
23416     * @param clas The group class.
23417     * @param hide Use @c EINA_TRUE to hide markers or @c EINA_FALSE
23418     * to show them.
23419     *
23420     * If @p hide is @c EINA_TRUE the markers will be hidden, but default
23421     * is to show them.
23422     *
23423     * @ingroup Map
23424     */
23425    EAPI void                  elm_map_group_class_hide_set(Evas_Object *obj, Elm_Map_Group_Class *clas, Eina_Bool hide) EINA_ARG_NONNULL(1, 2);
23426
23427    /**
23428     * Create a new marker class.
23429     *
23430     * @param obj The map object.
23431     * @return Returns the new group class.
23432     *
23433     * Each marker must be associated to a class.
23434     *
23435     * The marker class defines the style of the marker when a marker is
23436     * displayed alone, i.e., not grouped to to others markers. When grouped
23437     * it will use group class style.
23438     *
23439     * A marker class will need to be provided when creating a marker with
23440     * elm_map_marker_add().
23441     *
23442     * Some properties and functions can be set by class, as:
23443     * - style, with elm_map_marker_class_style_set()
23444     * - #ElmMapMarkerIconGetFunc - used to fetch icon for markers classes.
23445     *   It can be set using elm_map_marker_class_icon_cb_set().
23446     * - #ElmMapMarkerGetFunc - used to fetch bubble content for marker classes.
23447     *   Set using elm_map_marker_class_get_cb_set().
23448     * - #ElmMapMarkerDelFunc - used to delete bubble content for marker classes.
23449     *   Set using elm_map_marker_class_del_cb_set().
23450     *
23451     * @see elm_map_marker_add()
23452     * @see elm_map_marker_class_style_set()
23453     * @see elm_map_marker_class_icon_cb_set()
23454     * @see elm_map_marker_class_get_cb_set()
23455     * @see elm_map_marker_class_del_cb_set()
23456     *
23457     * @ingroup Map
23458     */
23459    EAPI Elm_Map_Marker_Class *elm_map_marker_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
23460
23461    /**
23462     * Set the marker's style of a marker class.
23463     *
23464     * @param clas The marker class.
23465     * @param style The style to be used by markers.
23466     *
23467     * Each marker must be associated to a marker class, and will use the style
23468     * defined by such class when alone, i.e., @b not grouped to other markers.
23469     *
23470     * The following styles are provided by default theme:
23471     * @li @c radio
23472     * @li @c radio2
23473     * @li @c empty
23474     *
23475     * @see elm_map_marker_class_new() for more details.
23476     * @see elm_map_marker_add()
23477     *
23478     * @ingroup Map
23479     */
23480    EAPI void                  elm_map_marker_class_style_set(Elm_Map_Marker_Class *clas, const char *style) EINA_ARG_NONNULL(1);
23481
23482    /**
23483     * Set the icon callback function of a marker class.
23484     *
23485     * @param clas The marker class.
23486     * @param icon_get The callback function that will return the icon.
23487     *
23488     * Each marker must be associated to a marker class, and it can display a
23489     * custom icon. The function @p icon_get must return this icon.
23490     *
23491     * @see elm_map_marker_class_new() for more details.
23492     * @see elm_map_marker_add()
23493     *
23494     * @ingroup Map
23495     */
23496    EAPI void                  elm_map_marker_class_icon_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerIconGetFunc icon_get) EINA_ARG_NONNULL(1);
23497
23498    /**
23499     * Set the bubble content callback function of a marker class.
23500     *
23501     * @param clas The marker class.
23502     * @param get The callback function that will return the content.
23503     *
23504     * Each marker must be associated to a marker class, and it can display a
23505     * a content on a bubble that opens when the user click over the marker.
23506     * The function @p get must return this content object.
23507     *
23508     * If this content will need to be deleted, elm_map_marker_class_del_cb_set()
23509     * can be used.
23510     *
23511     * @see elm_map_marker_class_new() for more details.
23512     * @see elm_map_marker_class_del_cb_set()
23513     * @see elm_map_marker_add()
23514     *
23515     * @ingroup Map
23516     */
23517    EAPI void                  elm_map_marker_class_get_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerGetFunc get) EINA_ARG_NONNULL(1);
23518
23519    /**
23520     * Set the callback function used to delete bubble content of a marker class.
23521     *
23522     * @param clas The marker class.
23523     * @param del The callback function that will delete the content.
23524     *
23525     * Each marker must be associated to a marker class, and it can display a
23526     * a content on a bubble that opens when the user click over the marker.
23527     * The function to return such content can be set with
23528     * elm_map_marker_class_get_cb_set().
23529     *
23530     * If this content must be freed, a callback function need to be
23531     * set for that task with this function.
23532     *
23533     * If this callback is defined it will have to delete (or not) the
23534     * object inside, but if the callback is not defined the object will be
23535     * destroyed with evas_object_del().
23536     *
23537     * @see elm_map_marker_class_new() for more details.
23538     * @see elm_map_marker_class_get_cb_set()
23539     * @see elm_map_marker_add()
23540     *
23541     * @ingroup Map
23542     */
23543    EAPI void                  elm_map_marker_class_del_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerDelFunc del) EINA_ARG_NONNULL(1);
23544
23545    /**
23546     * Get the list of available sources.
23547     *
23548     * @param obj The map object.
23549     * @return The source names list.
23550     *
23551     * It will provide a list with all available sources, that can be set as
23552     * current source with elm_map_source_name_set(), or get with
23553     * elm_map_source_name_get().
23554     *
23555     * Available sources:
23556     * @li "Mapnik"
23557     * @li "Osmarender"
23558     * @li "CycleMap"
23559     * @li "Maplint"
23560     *
23561     * @see elm_map_source_name_set() for more details.
23562     * @see elm_map_source_name_get()
23563     *
23564     * @ingroup Map
23565     */
23566    EAPI const char          **elm_map_source_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23567
23568    /**
23569     * Set the source of the map.
23570     *
23571     * @param obj The map object.
23572     * @param source The source to be used.
23573     *
23574     * Map widget retrieves images that composes the map from a web service.
23575     * This web service can be set with this method.
23576     *
23577     * A different service can return a different maps with different
23578     * information and it can use different zoom values.
23579     *
23580     * The @p source_name need to match one of the names provided by
23581     * elm_map_source_names_get().
23582     *
23583     * The current source can be get using elm_map_source_name_get().
23584     *
23585     * @see elm_map_source_names_get()
23586     * @see elm_map_source_name_get()
23587     *
23588     *
23589     * @ingroup Map
23590     */
23591    EAPI void                  elm_map_source_name_set(Evas_Object *obj, const char *source_name) EINA_ARG_NONNULL(1);
23592
23593    /**
23594     * Get the name of currently used source.
23595     *
23596     * @param obj The map object.
23597     * @return Returns the name of the source in use.
23598     *
23599     * @see elm_map_source_name_set() for more details.
23600     *
23601     * @ingroup Map
23602     */
23603    EAPI const char           *elm_map_source_name_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23604
23605    /**
23606     * Set the source of the route service to be used by the map.
23607     *
23608     * @param obj The map object.
23609     * @param source The route service to be used, being it one of
23610     * #ELM_MAP_ROUTE_SOURCE_YOURS (default), #ELM_MAP_ROUTE_SOURCE_MONAV,
23611     * and #ELM_MAP_ROUTE_SOURCE_ORS.
23612     *
23613     * Each one has its own algorithm, so the route retrieved may
23614     * differ depending on the source route. Now, only the default is working.
23615     *
23616     * #ELM_MAP_ROUTE_SOURCE_YOURS is the routing service provided at
23617     * http://www.yournavigation.org/.
23618     *
23619     * #ELM_MAP_ROUTE_SOURCE_MONAV, offers exact routing without heuristic
23620     * assumptions. Its routing core is based on Contraction Hierarchies.
23621     *
23622     * #ELM_MAP_ROUTE_SOURCE_ORS, is provided at http://www.openrouteservice.org/
23623     *
23624     * @see elm_map_route_source_get().
23625     *
23626     * @ingroup Map
23627     */
23628    EAPI void                  elm_map_route_source_set(Evas_Object *obj, Elm_Map_Route_Sources source) EINA_ARG_NONNULL(1);
23629
23630    /**
23631     * Get the current route source.
23632     *
23633     * @param obj The map object.
23634     * @return The source of the route service used by the map.
23635     *
23636     * @see elm_map_route_source_set() for details.
23637     *
23638     * @ingroup Map
23639     */
23640    EAPI Elm_Map_Route_Sources elm_map_route_source_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23641
23642    /**
23643     * Set the minimum zoom of the source.
23644     *
23645     * @param obj The map object.
23646     * @param zoom New minimum zoom value to be used.
23647     *
23648     * By default, it's 0.
23649     *
23650     * @ingroup Map
23651     */
23652    EAPI void                  elm_map_source_zoom_min_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
23653
23654    /**
23655     * Get the minimum zoom of the source.
23656     *
23657     * @param obj The map object.
23658     * @return Returns the minimum zoom of the source.
23659     *
23660     * @see elm_map_source_zoom_min_set() for details.
23661     *
23662     * @ingroup Map
23663     */
23664    EAPI int                   elm_map_source_zoom_min_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23665
23666    /**
23667     * Set the maximum zoom of the source.
23668     *
23669     * @param obj The map object.
23670     * @param zoom New maximum zoom value to be used.
23671     *
23672     * By default, it's 18.
23673     *
23674     * @ingroup Map
23675     */
23676    EAPI void                  elm_map_source_zoom_max_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
23677
23678    /**
23679     * Get the maximum zoom of the source.
23680     *
23681     * @param obj The map object.
23682     * @return Returns the maximum zoom of the source.
23683     *
23684     * @see elm_map_source_zoom_min_set() for details.
23685     *
23686     * @ingroup Map
23687     */
23688    EAPI int                   elm_map_source_zoom_max_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23689
23690    /**
23691     * Set the user agent used by the map object to access routing services.
23692     *
23693     * @param obj The map object.
23694     * @param user_agent The user agent to be used by the map.
23695     *
23696     * User agent is a client application implementing a network protocol used
23697     * in communications within a clientā€“server distributed computing system
23698     *
23699     * The @p user_agent identification string will transmitted in a header
23700     * field @c User-Agent.
23701     *
23702     * @see elm_map_user_agent_get()
23703     *
23704     * @ingroup Map
23705     */
23706    EAPI void                  elm_map_user_agent_set(Evas_Object *obj, const char *user_agent) EINA_ARG_NONNULL(1, 2);
23707
23708    /**
23709     * Get the user agent used by the map object.
23710     *
23711     * @param obj The map object.
23712     * @return The user agent identification string used by the map.
23713     *
23714     * @see elm_map_user_agent_set() for details.
23715     *
23716     * @ingroup Map
23717     */
23718    EAPI const char           *elm_map_user_agent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23719
23720    /**
23721     * Add a new route to the map object.
23722     *
23723     * @param obj The map object.
23724     * @param type The type of transport to be considered when tracing a route.
23725     * @param method The routing method, what should be priorized.
23726     * @param flon The start longitude.
23727     * @param flat The start latitude.
23728     * @param tlon The destination longitude.
23729     * @param tlat The destination latitude.
23730     *
23731     * @return The created route or @c NULL upon failure.
23732     *
23733     * A route will be traced by point on coordinates (@p flat, @p flon)
23734     * to point on coordinates (@p tlat, @p tlon), using the route service
23735     * set with elm_map_route_source_set().
23736     *
23737     * It will take @p type on consideration to define the route,
23738     * depending if the user will be walking or driving, the route may vary.
23739     * One of #ELM_MAP_ROUTE_TYPE_MOTOCAR, #ELM_MAP_ROUTE_TYPE_BICYCLE, or
23740     * #ELM_MAP_ROUTE_TYPE_FOOT need to be used.
23741     *
23742     * Another parameter is what the route should priorize, the minor distance
23743     * or the less time to be spend on the route. So @p method should be one
23744     * of #ELM_MAP_ROUTE_METHOD_SHORTEST or #ELM_MAP_ROUTE_METHOD_FASTEST.
23745     *
23746     * Routes created with this method can be deleted with
23747     * elm_map_route_remove(), colored with elm_map_route_color_set(),
23748     * and distance can be get with elm_map_route_distance_get().
23749     *
23750     * @see elm_map_route_remove()
23751     * @see elm_map_route_color_set()
23752     * @see elm_map_route_distance_get()
23753     * @see elm_map_route_source_set()
23754     *
23755     * @ingroup Map
23756     */
23757    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);
23758
23759    /**
23760     * Remove a route from the map.
23761     *
23762     * @param route The route to remove.
23763     *
23764     * @see elm_map_route_add()
23765     *
23766     * @ingroup Map
23767     */
23768    EAPI void                  elm_map_route_remove(Elm_Map_Route *route) EINA_ARG_NONNULL(1);
23769
23770    /**
23771     * Set the route color.
23772     *
23773     * @param route The route object.
23774     * @param r Red channel value, from 0 to 255.
23775     * @param g Green channel value, from 0 to 255.
23776     * @param b Blue channel value, from 0 to 255.
23777     * @param a Alpha channel value, from 0 to 255.
23778     *
23779     * It uses an additive color model, so each color channel represents
23780     * how much of each primary colors must to be used. 0 represents
23781     * ausence of this color, so if all of the three are set to 0,
23782     * the color will be black.
23783     *
23784     * These component values should be integers in the range 0 to 255,
23785     * (single 8-bit byte).
23786     *
23787     * This sets the color used for the route. By default, it is set to
23788     * solid red (r = 255, g = 0, b = 0, a = 255).
23789     *
23790     * For alpha channel, 0 represents completely transparent, and 255, opaque.
23791     *
23792     * @see elm_map_route_color_get()
23793     *
23794     * @ingroup Map
23795     */
23796    EAPI void                  elm_map_route_color_set(Elm_Map_Route *route, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
23797
23798    /**
23799     * Get the route color.
23800     *
23801     * @param route The route object.
23802     * @param r Pointer where to store the red channel value.
23803     * @param g Pointer where to store the green channel value.
23804     * @param b Pointer where to store the blue channel value.
23805     * @param a Pointer where to store the alpha channel value.
23806     *
23807     * @see elm_map_route_color_set() for details.
23808     *
23809     * @ingroup Map
23810     */
23811    EAPI void                  elm_map_route_color_get(const Elm_Map_Route *route, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
23812
23813    /**
23814     * Get the route distance in kilometers.
23815     *
23816     * @param route The route object.
23817     * @return The distance of route (unit : km).
23818     *
23819     * @ingroup Map
23820     */
23821    EAPI double                elm_map_route_distance_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
23822
23823    /**
23824     * Get the information of route nodes.
23825     *
23826     * @param route The route object.
23827     * @return Returns a string with the nodes of route.
23828     *
23829     * @ingroup Map
23830     */
23831    EAPI const char           *elm_map_route_node_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
23832
23833    /**
23834     * Get the information of route waypoint.
23835     *
23836     * @param route the route object.
23837     * @return Returns a string with information about waypoint of route.
23838     *
23839     * @ingroup Map
23840     */
23841    EAPI const char           *elm_map_route_waypoint_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
23842
23843    /**
23844     * Get the address of the name.
23845     *
23846     * @param name The name handle.
23847     * @return Returns the address string of @p name.
23848     *
23849     * This gets the coordinates of the @p name, created with one of the
23850     * conversion functions.
23851     *
23852     * @see elm_map_utils_convert_name_into_coord()
23853     * @see elm_map_utils_convert_coord_into_name()
23854     *
23855     * @ingroup Map
23856     */
23857    EAPI const char           *elm_map_name_address_get(const Elm_Map_Name *name) EINA_ARG_NONNULL(1);
23858
23859    /**
23860     * Get the current coordinates of the name.
23861     *
23862     * @param name The name handle.
23863     * @param lat Pointer where to store the latitude.
23864     * @param lon Pointer where to store The longitude.
23865     *
23866     * This gets the coordinates of the @p name, created with one of the
23867     * conversion functions.
23868     *
23869     * @see elm_map_utils_convert_name_into_coord()
23870     * @see elm_map_utils_convert_coord_into_name()
23871     *
23872     * @ingroup Map
23873     */
23874    EAPI void                  elm_map_name_region_get(const Elm_Map_Name *name, double *lon, double *lat) EINA_ARG_NONNULL(1);
23875
23876    /**
23877     * Remove a name from the map.
23878     *
23879     * @param name The name to remove.
23880     *
23881     * Basically the struct handled by @p name will be freed, so convertions
23882     * between address and coordinates will be lost.
23883     *
23884     * @see elm_map_utils_convert_name_into_coord()
23885     * @see elm_map_utils_convert_coord_into_name()
23886     *
23887     * @ingroup Map
23888     */
23889    EAPI void                  elm_map_name_remove(Elm_Map_Name *name) EINA_ARG_NONNULL(1);
23890
23891    /**
23892     * Rotate the map.
23893     *
23894     * @param obj The map object.
23895     * @param degree Angle from 0.0 to 360.0 to rotate arount Z axis.
23896     * @param cx Rotation's center horizontal position.
23897     * @param cy Rotation's center vertical position.
23898     *
23899     * @see elm_map_rotate_get()
23900     *
23901     * @ingroup Map
23902     */
23903    EAPI void                  elm_map_rotate_set(Evas_Object *obj, double degree, Evas_Coord cx, Evas_Coord cy) EINA_ARG_NONNULL(1);
23904
23905    /**
23906     * Get the rotate degree of the map
23907     *
23908     * @param obj The map object
23909     * @param degree Pointer where to store degrees from 0.0 to 360.0
23910     * to rotate arount Z axis.
23911     * @param cx Pointer where to store rotation's center horizontal position.
23912     * @param cy Pointer where to store rotation's center vertical position.
23913     *
23914     * @see elm_map_rotate_set() to set map rotation.
23915     *
23916     * @ingroup Map
23917     */
23918    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);
23919
23920    /**
23921     * Enable or disable mouse wheel to be used to zoom in / out the map.
23922     *
23923     * @param obj The map object.
23924     * @param disabled Use @c EINA_TRUE to disable mouse wheel or @c EINA_FALSE
23925     * to enable it.
23926     *
23927     * Mouse wheel can be used for the user to zoom in or zoom out the map.
23928     *
23929     * It's disabled by default.
23930     *
23931     * @see elm_map_wheel_disabled_get()
23932     *
23933     * @ingroup Map
23934     */
23935    EAPI void                  elm_map_wheel_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
23936
23937    /**
23938     * Get a value whether mouse wheel is enabled or not.
23939     *
23940     * @param obj The map object.
23941     * @return @c EINA_TRUE means map is disabled. @c EINA_FALSE indicates
23942     * it is enabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
23943     *
23944     * Mouse wheel can be used for the user to zoom in or zoom out the map.
23945     *
23946     * @see elm_map_wheel_disabled_set() for details.
23947     *
23948     * @ingroup Map
23949     */
23950    EAPI Eina_Bool             elm_map_wheel_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23951
23952 #ifdef ELM_EMAP
23953    /**
23954     * Add a track on the map
23955     *
23956     * @param obj The map object.
23957     * @param emap The emap route object.
23958     * @return The route object. This is an elm object of type Route.
23959     *
23960     * @see elm_route_add() for details.
23961     *
23962     * @ingroup Map
23963     */
23964    EAPI Evas_Object          *elm_map_track_add(Evas_Object *obj, EMap_Route *emap) EINA_ARG_NONNULL(1);
23965 #endif
23966
23967    /**
23968     * Remove a track from the map
23969     *
23970     * @param obj The map object.
23971     * @param route The track to remove.
23972     *
23973     * @ingroup Map
23974     */
23975    EAPI void                  elm_map_track_remove(Evas_Object *obj, Evas_Object *route) EINA_ARG_NONNULL(1);
23976
23977    /**
23978     * @}
23979     */
23980
23981    /* Route */
23982    EAPI Evas_Object *elm_route_add(Evas_Object *parent);
23983 #ifdef ELM_EMAP
23984    EAPI void elm_route_emap_set(Evas_Object *obj, EMap_Route *emap);
23985 #endif
23986    EAPI double elm_route_lon_min_get(Evas_Object *obj);
23987    EAPI double elm_route_lat_min_get(Evas_Object *obj);
23988    EAPI double elm_route_lon_max_get(Evas_Object *obj);
23989    EAPI double elm_route_lat_max_get(Evas_Object *obj);
23990
23991
23992    /**
23993     * @defgroup Panel Panel
23994     *
23995     * @image html img/widget/panel/preview-00.png
23996     * @image latex img/widget/panel/preview-00.eps
23997     *
23998     * @brief A panel is a type of animated container that contains subobjects.
23999     * It can be expanded or contracted by clicking the button on it's edge.
24000     *
24001     * Orientations are as follows:
24002     * @li ELM_PANEL_ORIENT_TOP
24003     * @li ELM_PANEL_ORIENT_LEFT
24004     * @li ELM_PANEL_ORIENT_RIGHT
24005     *
24006     * Default contents parts of the panel widget that you can use for are:
24007     * @li "default" - A content of the panel
24008     *
24009     * @ref tutorial_panel shows one way to use this widget.
24010     * @{
24011     */
24012    typedef enum _Elm_Panel_Orient
24013      {
24014         ELM_PANEL_ORIENT_TOP, /**< Panel (dis)appears from the top */
24015         ELM_PANEL_ORIENT_BOTTOM, /**< Not implemented */
24016         ELM_PANEL_ORIENT_LEFT, /**< Panel (dis)appears from the left */
24017         ELM_PANEL_ORIENT_RIGHT, /**< Panel (dis)appears from the right */
24018      } Elm_Panel_Orient;
24019    /**
24020     * @brief Adds a panel object
24021     *
24022     * @param parent The parent object
24023     *
24024     * @return The panel object, or NULL on failure
24025     */
24026    EAPI Evas_Object          *elm_panel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24027    /**
24028     * @brief Sets the orientation of the panel
24029     *
24030     * @param parent The parent object
24031     * @param orient The panel orientation. Can be one of the following:
24032     * @li ELM_PANEL_ORIENT_TOP
24033     * @li ELM_PANEL_ORIENT_LEFT
24034     * @li ELM_PANEL_ORIENT_RIGHT
24035     *
24036     * Sets from where the panel will (dis)appear.
24037     */
24038    EAPI void                  elm_panel_orient_set(Evas_Object *obj, Elm_Panel_Orient orient) EINA_ARG_NONNULL(1);
24039    /**
24040     * @brief Get the orientation of the panel.
24041     *
24042     * @param obj The panel object
24043     * @return The Elm_Panel_Orient, or ELM_PANEL_ORIENT_LEFT on failure.
24044     */
24045    EAPI Elm_Panel_Orient      elm_panel_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24046    /**
24047     * @brief Set the content of the panel.
24048     *
24049     * @param obj The panel object
24050     * @param content The panel content
24051     *
24052     * Once the content object is set, a previously set one will be deleted.
24053     * If you want to keep that old content object, use the
24054     * elm_panel_content_unset() function.
24055     *
24056     * @deprecated use elm_object_content_set() instead
24057     *
24058     */
24059    EINA_DEPRECATED EAPI void                  elm_panel_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24060    /**
24061     * @brief Get the content of the panel.
24062     *
24063     * @param obj The panel object
24064     * @return The content that is being used
24065     *
24066     * Return the content object which is set for this widget.
24067     *
24068     * @see elm_panel_content_set()
24069     * 
24070     * @deprecated use elm_object_content_get() instead
24071     *
24072     */
24073    EINA_DEPRECATED EAPI Evas_Object          *elm_panel_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24074    /**
24075     * @brief Unset the content of the panel.
24076     *
24077     * @param obj The panel object
24078     * @return The content that was being used
24079     *
24080     * Unparent and return the content object which was set for this widget.
24081     *
24082     * @see elm_panel_content_set()
24083     *
24084     * @deprecated use elm_object_content_unset() instead
24085     *
24086     */
24087    EINA_DEPRECATED EAPI Evas_Object          *elm_panel_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24088    /**
24089     * @brief Set the state of the panel.
24090     *
24091     * @param obj The panel object
24092     * @param hidden If true, the panel will run the animation to contract
24093     */
24094    EAPI void                  elm_panel_hidden_set(Evas_Object *obj, Eina_Bool hidden) EINA_ARG_NONNULL(1);
24095    /**
24096     * @brief Get the state of the panel.
24097     *
24098     * @param obj The panel object
24099     * @param hidden If true, the panel is in the "hide" state
24100     */
24101    EAPI Eina_Bool             elm_panel_hidden_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24102    /**
24103     * @brief Toggle the hidden state of the panel from code
24104     *
24105     * @param obj The panel object
24106     */
24107    EAPI void                  elm_panel_toggle(Evas_Object *obj) EINA_ARG_NONNULL(1);
24108    /**
24109     * @}
24110     */
24111
24112    /**
24113     * @defgroup Panes Panes
24114     * @ingroup Elementary
24115     *
24116     * @image html img/widget/panes/preview-00.png
24117     * @image latex img/widget/panes/preview-00.eps width=\textwidth
24118     *
24119     * @image html img/panes.png
24120     * @image latex img/panes.eps width=\textwidth
24121     *
24122     * The panes adds a dragable bar between two contents. When dragged
24123     * this bar will resize contents size.
24124     *
24125     * Panes can be displayed vertically or horizontally, and contents
24126     * size proportion can be customized (homogeneous by default).
24127     *
24128     * Smart callbacks one can listen to:
24129     * - "press" - The panes has been pressed (button wasn't released yet).
24130     * - "unpressed" - The panes was released after being pressed.
24131     * - "clicked" - The panes has been clicked>
24132     * - "clicked,double" - The panes has been double clicked
24133     *
24134     * Available styles for it:
24135     * - @c "default"
24136     *
24137     * Default contents parts of the panes widget that you can use for are:
24138     * @li "left" - A leftside content of the panes
24139     * @li "right" - A rightside content of the panes
24140     *
24141     * If panes is displayed vertically, left content will be displayed at
24142     * top.
24143     * 
24144     * Here is an example on its usage:
24145     * @li @ref panes_example
24146     */
24147
24148    /**
24149     * @addtogroup Panes
24150     * @{
24151     */
24152
24153    /**
24154     * Add a new panes widget to the given parent Elementary
24155     * (container) object.
24156     *
24157     * @param parent The parent object.
24158     * @return a new panes widget handle or @c NULL, on errors.
24159     *
24160     * This function inserts a new panes widget on the canvas.
24161     *
24162     * @ingroup Panes
24163     */
24164    EAPI Evas_Object          *elm_panes_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24165
24166    /**
24167     * Set the left content of the panes widget.
24168     *
24169     * @param obj The panes object.
24170     * @param content The new left content object.
24171     *
24172     * Once the content object is set, a previously set one will be deleted.
24173     * If you want to keep that old content object, use the
24174     * elm_panes_content_left_unset() function.
24175     *
24176     * If panes is displayed vertically, left content will be displayed at
24177     * top.
24178     *
24179     * @see elm_panes_content_left_get()
24180     * @see elm_panes_content_right_set() to set content on the other side.
24181     *
24182     * @deprecated use elm_object_part_content_set() instead
24183     *
24184     * @ingroup Panes
24185     */
24186    EINA_DEPRECATED EAPI void                  elm_panes_content_left_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24187
24188    /**
24189     * Set the right content of the panes widget.
24190     *
24191     * @param obj The panes object.
24192     * @param content The new right content object.
24193     *
24194     * Once the content object is set, a previously set one will be deleted.
24195     * If you want to keep that old content object, use the
24196     * elm_panes_content_right_unset() function.
24197     *
24198     * If panes is displayed vertically, left content will be displayed at
24199     * bottom.
24200     *
24201     * @see elm_panes_content_right_get()
24202     * @see elm_panes_content_left_set() to set content on the other side.
24203     *
24204     * @deprecated use elm_object_part_content_set() instead
24205     *
24206     * @ingroup Panes
24207     */
24208    EINA_DEPRECATED EAPI void                  elm_panes_content_right_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24209
24210    /**
24211     * Get the left content of the panes.
24212     *
24213     * @param obj The panes object.
24214     * @return The left content object that is being used.
24215     *
24216     * Return the left content object which is set for this widget.
24217     *
24218     * @see elm_panes_content_left_set() for details.
24219     *
24220     * @deprecated use elm_object_part_content_get() instead
24221     *
24222     * @ingroup Panes
24223     */
24224    EINA_DEPRECATED EAPI Evas_Object          *elm_panes_content_left_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24225
24226    /**
24227     * Get the right content of the panes.
24228     *
24229     * @param obj The panes object
24230     * @return The right content object that is being used
24231     *
24232     * Return the right content object which is set for this widget.
24233     *
24234     * @see elm_panes_content_right_set() for details.
24235     *
24236     * @deprecated use elm_object_part_content_get() instead
24237     *
24238     * @ingroup Panes
24239     */
24240    EINA_DEPRECATED EAPI Evas_Object          *elm_panes_content_right_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24241
24242    /**
24243     * Unset the left content used for the panes.
24244     *
24245     * @param obj The panes object.
24246     * @return The left content object that was being used.
24247     *
24248     * Unparent and return the left content object which was set for this widget.
24249     *
24250     * @see elm_panes_content_left_set() for details.
24251     * @see elm_panes_content_left_get().
24252     *
24253     * @deprecated use elm_object_part_content_unset() instead
24254     *
24255     * @ingroup Panes
24256     */
24257    EINA_DEPRECATED EAPI Evas_Object          *elm_panes_content_left_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24258
24259    /**
24260     * Unset the right content used for the panes.
24261     *
24262     * @param obj The panes object.
24263     * @return The right content object that was being used.
24264     *
24265     * Unparent and return the right content object which was set for this
24266     * widget.
24267     *
24268     * @see elm_panes_content_right_set() for details.
24269     * @see elm_panes_content_right_get().
24270     *
24271     * @deprecated use elm_object_part_content_unset() instead
24272     *
24273     * @ingroup Panes
24274     */
24275    EINA_DEPRECATED EAPI Evas_Object          *elm_panes_content_right_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24276
24277    /**
24278     * Get the size proportion of panes widget's left side.
24279     *
24280     * @param obj The panes object.
24281     * @return float value between 0.0 and 1.0 representing size proportion
24282     * of left side.
24283     *
24284     * @see elm_panes_content_left_size_set() for more details.
24285     *
24286     * @ingroup Panes
24287     */
24288    EAPI double                elm_panes_content_left_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24289
24290    /**
24291     * Set the size proportion of panes widget's left side.
24292     *
24293     * @param obj The panes object.
24294     * @param size Value between 0.0 and 1.0 representing size proportion
24295     * of left side.
24296     *
24297     * By default it's homogeneous, i.e., both sides have the same size.
24298     *
24299     * If something different is required, it can be set with this function.
24300     * For example, if the left content should be displayed over
24301     * 75% of the panes size, @p size should be passed as @c 0.75.
24302     * This way, right content will be resized to 25% of panes size.
24303     *
24304     * If displayed vertically, left content is displayed at top, and
24305     * right content at bottom.
24306     *
24307     * @note This proportion will change when user drags the panes bar.
24308     *
24309     * @see elm_panes_content_left_size_get()
24310     *
24311     * @ingroup Panes
24312     */
24313    EAPI void                  elm_panes_content_left_size_set(Evas_Object *obj, double size) EINA_ARG_NONNULL(1);
24314
24315   /**
24316    * Set the orientation of a given panes widget.
24317    *
24318    * @param obj The panes object.
24319    * @param horizontal Use @c EINA_TRUE to make @p obj to be
24320    * @b horizontal, @c EINA_FALSE to make it @b vertical.
24321    *
24322    * Use this function to change how your panes is to be
24323    * disposed: vertically or horizontally.
24324    *
24325    * By default it's displayed horizontally.
24326    *
24327    * @see elm_panes_horizontal_get()
24328    *
24329    * @ingroup Panes
24330    */
24331    EAPI void                  elm_panes_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
24332
24333    /**
24334     * Retrieve the orientation of a given panes widget.
24335     *
24336     * @param obj The panes object.
24337     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
24338     * @c EINA_FALSE if it's @b vertical (and on errors).
24339     *
24340     * @see elm_panes_horizontal_set() for more details.
24341     *
24342     * @ingroup Panes
24343     */
24344    EAPI Eina_Bool             elm_panes_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24345    EAPI void                  elm_panes_fixed_set(Evas_Object *obj, Eina_Bool fixed) EINA_ARG_NONNULL(1);
24346    EAPI Eina_Bool             elm_panes_fixed_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24347
24348    /**
24349     * @}
24350     */
24351
24352    /**
24353     * @defgroup Flip Flip
24354     *
24355     * @image html img/widget/flip/preview-00.png
24356     * @image latex img/widget/flip/preview-00.eps
24357     *
24358     * This widget holds 2 content objects(Evas_Object): one on the front and one
24359     * on the back. It allows you to flip from front to back and vice-versa using
24360     * various animations.
24361     *
24362     * If either the front or back contents are not set the flip will treat that
24363     * as transparent. So if you wore to set the front content but not the back,
24364     * and then call elm_flip_go() you would see whatever is below the flip.
24365     *
24366     * For a list of supported animations see elm_flip_go().
24367     *
24368     * Signals that you can add callbacks for are:
24369     * "animate,begin" - when a flip animation was started
24370     * "animate,done" - when a flip animation is finished
24371     *
24372     * @ref tutorial_flip show how to use most of the API.
24373     *
24374     * @{
24375     */
24376    typedef enum _Elm_Flip_Mode
24377      {
24378         ELM_FLIP_ROTATE_Y_CENTER_AXIS,
24379         ELM_FLIP_ROTATE_X_CENTER_AXIS,
24380         ELM_FLIP_ROTATE_XZ_CENTER_AXIS,
24381         ELM_FLIP_ROTATE_YZ_CENTER_AXIS,
24382         ELM_FLIP_CUBE_LEFT,
24383         ELM_FLIP_CUBE_RIGHT,
24384         ELM_FLIP_CUBE_UP,
24385         ELM_FLIP_CUBE_DOWN,
24386         ELM_FLIP_PAGE_LEFT,
24387         ELM_FLIP_PAGE_RIGHT,
24388         ELM_FLIP_PAGE_UP,
24389         ELM_FLIP_PAGE_DOWN
24390      } Elm_Flip_Mode;
24391    typedef enum _Elm_Flip_Interaction
24392      {
24393         ELM_FLIP_INTERACTION_NONE,
24394         ELM_FLIP_INTERACTION_ROTATE,
24395         ELM_FLIP_INTERACTION_CUBE,
24396         ELM_FLIP_INTERACTION_PAGE
24397      } Elm_Flip_Interaction;
24398    typedef enum _Elm_Flip_Direction
24399      {
24400         ELM_FLIP_DIRECTION_UP, /**< Allows interaction with the top of the widget */
24401         ELM_FLIP_DIRECTION_DOWN, /**< Allows interaction with the bottom of the widget */
24402         ELM_FLIP_DIRECTION_LEFT, /**< Allows interaction with the left portion of the widget */
24403         ELM_FLIP_DIRECTION_RIGHT /**< Allows interaction with the right portion of the widget */
24404      } Elm_Flip_Direction;
24405    /**
24406     * @brief Add a new flip to the parent
24407     *
24408     * @param parent The parent object
24409     * @return The new object or NULL if it cannot be created
24410     */
24411    EAPI Evas_Object *elm_flip_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24412    /**
24413     * @brief Set the front content of the flip widget.
24414     *
24415     * @param obj The flip object
24416     * @param content The new front content object
24417     *
24418     * Once the content object is set, a previously set one will be deleted.
24419     * If you want to keep that old content object, use the
24420     * elm_flip_content_front_unset() function.
24421     */
24422    EAPI void         elm_flip_content_front_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24423    /**
24424     * @brief Set the back content of the flip widget.
24425     *
24426     * @param obj The flip object
24427     * @param content The new back content object
24428     *
24429     * Once the content object is set, a previously set one will be deleted.
24430     * If you want to keep that old content object, use the
24431     * elm_flip_content_back_unset() function.
24432     */
24433    EAPI void         elm_flip_content_back_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24434    /**
24435     * @brief Get the front content used for the flip
24436     *
24437     * @param obj The flip object
24438     * @return The front content object that is being used
24439     *
24440     * Return the front content object which is set for this widget.
24441     */
24442    EAPI Evas_Object *elm_flip_content_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24443    /**
24444     * @brief Get the back content used for the flip
24445     *
24446     * @param obj The flip object
24447     * @return The back content object that is being used
24448     *
24449     * Return the back content object which is set for this widget.
24450     */
24451    EAPI Evas_Object *elm_flip_content_back_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24452    /**
24453     * @brief Unset the front content used for the flip
24454     *
24455     * @param obj The flip object
24456     * @return The front content object that was being used
24457     *
24458     * Unparent and return the front content object which was set for this widget.
24459     */
24460    EAPI Evas_Object *elm_flip_content_front_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24461    /**
24462     * @brief Unset the back content used for the flip
24463     *
24464     * @param obj The flip object
24465     * @return The back content object that was being used
24466     *
24467     * Unparent and return the back content object which was set for this widget.
24468     */
24469    EAPI Evas_Object *elm_flip_content_back_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24470    /**
24471     * @brief Get flip front visibility state
24472     *
24473     * @param obj The flip objct
24474     * @return EINA_TRUE if front front is showing, EINA_FALSE if the back is
24475     * showing.
24476     */
24477    EAPI Eina_Bool    elm_flip_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24478    /**
24479     * @brief Set flip perspective
24480     *
24481     * @param obj The flip object
24482     * @param foc The coordinate to set the focus on
24483     * @param x The X coordinate
24484     * @param y The Y coordinate
24485     *
24486     * @warning This function currently does nothing.
24487     */
24488    EAPI void         elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
24489    /**
24490     * @brief Runs the flip animation
24491     *
24492     * @param obj The flip object
24493     * @param mode The mode type
24494     *
24495     * Flips the front and back contents using the @p mode animation. This
24496     * efectively hides the currently visible content and shows the hidden one.
24497     *
24498     * There a number of possible animations to use for the flipping:
24499     * @li ELM_FLIP_ROTATE_X_CENTER_AXIS - Rotate the currently visible content
24500     * around a horizontal axis in the middle of its height, the other content
24501     * is shown as the other side of the flip.
24502     * @li ELM_FLIP_ROTATE_Y_CENTER_AXIS - Rotate the currently visible content
24503     * around a vertical axis in the middle of its width, the other content is
24504     * shown as the other side of the flip.
24505     * @li ELM_FLIP_ROTATE_XZ_CENTER_AXIS - Rotate the currently visible content
24506     * around a diagonal axis in the middle of its width, the other content is
24507     * shown as the other side of the flip.
24508     * @li ELM_FLIP_ROTATE_YZ_CENTER_AXIS - Rotate the currently visible content
24509     * around a diagonal axis in the middle of its height, the other content is
24510     * shown as the other side of the flip.
24511     * @li ELM_FLIP_CUBE_LEFT - Rotate the currently visible content to the left
24512     * as if the flip was a cube, the other content is show as the right face of
24513     * the cube.
24514     * @li ELM_FLIP_CUBE_RIGHT - Rotate the currently visible content to the
24515     * right as if the flip was a cube, the other content is show as the left
24516     * face of the cube.
24517     * @li ELM_FLIP_CUBE_UP - Rotate the currently visible content up as if the
24518     * flip was a cube, the other content is show as the bottom face of the cube.
24519     * @li ELM_FLIP_CUBE_DOWN - Rotate the currently visible content down as if
24520     * the flip was a cube, the other content is show as the upper face of the
24521     * cube.
24522     * @li ELM_FLIP_PAGE_LEFT - Move the currently visible content to the left as
24523     * if the flip was a book, the other content is shown as the page below that.
24524     * @li ELM_FLIP_PAGE_RIGHT - Move the currently visible content to the right
24525     * as if the flip was a book, the other content is shown as the page below
24526     * that.
24527     * @li ELM_FLIP_PAGE_UP - Move the currently visible content up as if the
24528     * flip was a book, the other content is shown as the page below that.
24529     * @li ELM_FLIP_PAGE_DOWN - Move the currently visible content down as if the
24530     * flip was a book, the other content is shown as the page below that.
24531     *
24532     * @image html elm_flip.png
24533     * @image latex elm_flip.eps width=\textwidth
24534     */
24535    EAPI void         elm_flip_go(Evas_Object *obj, Elm_Flip_Mode mode) EINA_ARG_NONNULL(1);
24536    /**
24537     * @brief Set the interactive flip mode
24538     *
24539     * @param obj The flip object
24540     * @param mode The interactive flip mode to use
24541     *
24542     * This sets if the flip should be interactive (allow user to click and
24543     * drag a side of the flip to reveal the back page and cause it to flip).
24544     * By default a flip is not interactive. You may also need to set which
24545     * sides of the flip are "active" for flipping and how much space they use
24546     * (a minimum of a finger size) with elm_flip_interacton_direction_enabled_set()
24547     * and elm_flip_interacton_direction_hitsize_set()
24548     *
24549     * The four avilable mode of interaction are:
24550     * @li ELM_FLIP_INTERACTION_NONE - No interaction is allowed
24551     * @li ELM_FLIP_INTERACTION_ROTATE - Interaction will cause rotate animation
24552     * @li ELM_FLIP_INTERACTION_CUBE - Interaction will cause cube animation
24553     * @li ELM_FLIP_INTERACTION_PAGE - Interaction will cause page animation
24554     *
24555     * @note ELM_FLIP_INTERACTION_ROTATE won't cause
24556     * ELM_FLIP_ROTATE_XZ_CENTER_AXIS or ELM_FLIP_ROTATE_YZ_CENTER_AXIS to
24557     * happen, those can only be acheived with elm_flip_go();
24558     */
24559    EAPI void         elm_flip_interaction_set(Evas_Object *obj, Elm_Flip_Interaction mode);
24560    /**
24561     * @brief Get the interactive flip mode
24562     *
24563     * @param obj The flip object
24564     * @return The interactive flip mode
24565     *
24566     * Returns the interactive flip mode set by elm_flip_interaction_set()
24567     */
24568    EAPI Elm_Flip_Interaction elm_flip_interaction_get(const Evas_Object *obj);
24569    /**
24570     * @brief Set which directions of the flip respond to interactive flip
24571     *
24572     * @param obj The flip object
24573     * @param dir The direction to change
24574     * @param enabled If that direction is enabled or not
24575     *
24576     * By default all directions are disabled, so you may want to enable the
24577     * desired directions for flipping if you need interactive flipping. You must
24578     * call this function once for each direction that should be enabled.
24579     *
24580     * @see elm_flip_interaction_set()
24581     */
24582    EAPI void         elm_flip_interacton_direction_enabled_set(Evas_Object *obj, Elm_Flip_Direction dir, Eina_Bool enabled);
24583    /**
24584     * @brief Get the enabled state of that flip direction
24585     *
24586     * @param obj The flip object
24587     * @param dir The direction to check
24588     * @return If that direction is enabled or not
24589     *
24590     * Gets the enabled state set by elm_flip_interacton_direction_enabled_set()
24591     *
24592     * @see elm_flip_interaction_set()
24593     */
24594    EAPI Eina_Bool    elm_flip_interacton_direction_enabled_get(Evas_Object *obj, Elm_Flip_Direction dir);
24595    /**
24596     * @brief Set the amount of the flip that is sensitive to interactive flip
24597     *
24598     * @param obj The flip object
24599     * @param dir The direction to modify
24600     * @param hitsize The amount of that dimension (0.0 to 1.0) to use
24601     *
24602     * Set the amount of the flip that is sensitive to interactive flip, with 0
24603     * representing no area in the flip and 1 representing the entire flip. There
24604     * is however a consideration to be made in that the area will never be
24605     * smaller than the finger size set(as set in your Elementary configuration).
24606     *
24607     * @see elm_flip_interaction_set()
24608     */
24609    EAPI void         elm_flip_interacton_direction_hitsize_set(Evas_Object *obj, Elm_Flip_Direction dir, double hitsize);
24610    /**
24611     * @brief Get the amount of the flip that is sensitive to interactive flip
24612     *
24613     * @param obj The flip object
24614     * @param dir The direction to check
24615     * @return The size set for that direction
24616     *
24617     * Returns the amount os sensitive area set by
24618     * elm_flip_interacton_direction_hitsize_set().
24619     */
24620    EAPI double       elm_flip_interacton_direction_hitsize_get(Evas_Object *obj, Elm_Flip_Direction dir);
24621    /**
24622     * @}
24623     */
24624
24625    /* scrolledentry */
24626    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24627    EINA_DEPRECATED EAPI void         elm_scrolled_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
24628    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24629    EINA_DEPRECATED EAPI void         elm_scrolled_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
24630    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24631    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
24632    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24633    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
24634    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24635    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24636    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
24637    EINA_DEPRECATED EAPI void         elm_scrolled_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
24638    EINA_DEPRECATED EAPI void         elm_scrolled_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
24639    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24640    EINA_DEPRECATED EAPI void         elm_scrolled_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
24641    EINA_DEPRECATED EAPI void         elm_scrolled_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
24642    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
24643    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
24644    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
24645    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
24646    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24647    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24648    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24649    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24650    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
24651    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
24652    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24653    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24654    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24655    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
24656    EINA_DEPRECATED EAPI int          elm_scrolled_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24657    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
24658    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
24659    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
24660    EINA_DEPRECATED EAPI void         elm_scrolled_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
24661    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);
24662    EINA_DEPRECATED EAPI void         elm_scrolled_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
24663    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24664    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);
24665    EINA_DEPRECATED EAPI void         elm_scrolled_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
24666    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);
24667    EINA_DEPRECATED EAPI void         elm_scrolled_entry_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1, 2);
24668    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24669    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24670    EINA_DEPRECATED EAPI void         elm_scrolled_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
24671    EINA_DEPRECATED EAPI void         elm_scrolled_entry_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1, 2);
24672    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24673    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24674    EINA_DEPRECATED EAPI void         elm_scrolled_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
24675    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);
24676    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);
24677    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);
24678    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);
24679    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);
24680    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);
24681    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
24682    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
24683    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
24684    EINA_DEPRECATED EAPI void         elm_scrolled_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
24685    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24686    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
24687    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cnp_textonly_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
24688
24689    /**
24690     * @defgroup Conformant Conformant
24691     * @ingroup Elementary
24692     *
24693     * @image html img/widget/conformant/preview-00.png
24694     * @image latex img/widget/conformant/preview-00.eps width=\textwidth
24695     *
24696     * @image html img/conformant.png
24697     * @image latex img/conformant.eps width=\textwidth
24698     *
24699     * The aim is to provide a widget that can be used in elementary apps to
24700     * account for space taken up by the indicator, virtual keypad & softkey
24701     * windows when running the illume2 module of E17.
24702     *
24703     * So conformant content will be sized and positioned considering the
24704     * space required for such stuff, and when they popup, as a keyboard
24705     * shows when an entry is selected, conformant content won't change.
24706     *
24707     * Available styles for it:
24708     * - @c "default"
24709     *
24710     * Default contents parts of the conformant widget that you can use for are:
24711     * @li "default" - A content of the conformant
24712     *
24713     * See how to use this widget in this example:
24714     * @ref conformant_example
24715     */
24716
24717    /**
24718     * @addtogroup Conformant
24719     * @{
24720     */
24721
24722    /**
24723     * Add a new conformant widget to the given parent Elementary
24724     * (container) object.
24725     *
24726     * @param parent The parent object.
24727     * @return A new conformant widget handle or @c NULL, on errors.
24728     *
24729     * This function inserts a new conformant widget on the canvas.
24730     *
24731     * @ingroup Conformant
24732     */
24733    EAPI Evas_Object *elm_conformant_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24734
24735    /**
24736     * Set the content of the conformant widget.
24737     *
24738     * @param obj The conformant object.
24739     * @param content The content to be displayed by the conformant.
24740     *
24741     * Content will be sized and positioned considering the space required
24742     * to display a virtual keyboard. So it won't fill all the conformant
24743     * size. This way is possible to be sure that content won't resize
24744     * or be re-positioned after the keyboard is displayed.
24745     *
24746     * Once the content object is set, a previously set one will be deleted.
24747     * If you want to keep that old content object, use the
24748     * elm_object_content_unset() function.
24749     *
24750     * @see elm_object_content_unset()
24751     * @see elm_object_content_get()
24752     *
24753     * @deprecated use elm_object_content_set() instead
24754     *
24755     * @ingroup Conformant
24756     */
24757    EINA_DEPRECATED EAPI void         elm_conformant_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24758
24759    /**
24760     * Get the content of the conformant widget.
24761     *
24762     * @param obj The conformant object.
24763     * @return The content that is being used.
24764     *
24765     * Return the content object which is set for this widget.
24766     * It won't be unparent from conformant. For that, use
24767     * elm_object_content_unset().
24768     *
24769     * @see elm_object_content_set().
24770     * @see elm_object_content_unset()
24771     *
24772     * @deprecated use elm_object_content_get() instead
24773     *
24774     * @ingroup Conformant
24775     */
24776    EINA_DEPRECATED EAPI Evas_Object *elm_conformant_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24777
24778    /**
24779     * Unset the content of the conformant widget.
24780     *
24781     * @param obj The conformant object.
24782     * @return The content that was being used.
24783     *
24784     * Unparent and return the content object which was set for this widget.
24785     *
24786     * @see elm_object_content_set().
24787     *
24788     * @deprecated use elm_object_content_unset() instead
24789     *
24790     * @ingroup Conformant
24791     */
24792    EINA_DEPRECATED EAPI Evas_Object *elm_conformant_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24793
24794    /**
24795     * Returns the Evas_Object that represents the content area.
24796     *
24797     * @param obj The conformant object.
24798     * @return The content area of the widget.
24799     *
24800     * @ingroup Conformant
24801     */
24802    EAPI Evas_Object *elm_conformant_content_area_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24803
24804    /**
24805     * @}
24806     */
24807
24808    /**
24809     * @defgroup Mapbuf Mapbuf
24810     * @ingroup Elementary
24811     *
24812     * @image html img/widget/mapbuf/preview-00.png
24813     * @image latex img/widget/mapbuf/preview-00.eps width=\textwidth
24814     *
24815     * This holds one content object and uses an Evas Map of transformation
24816     * points to be later used with this content. So the content will be
24817     * moved, resized, etc as a single image. So it will improve performance
24818     * when you have a complex interafce, with a lot of elements, and will
24819     * need to resize or move it frequently (the content object and its
24820     * children).
24821     *
24822     * Default contents parts of the mapbuf widget that you can use for are:
24823     * @li "default" - A content of the mapbuf
24824     *
24825     * To enable map, elm_mapbuf_enabled_set() should be used.
24826     * 
24827     * See how to use this widget in this example:
24828     * @ref mapbuf_example
24829     */
24830
24831    /**
24832     * @addtogroup Mapbuf
24833     * @{
24834     */
24835
24836    /**
24837     * Add a new mapbuf widget to the given parent Elementary
24838     * (container) object.
24839     *
24840     * @param parent The parent object.
24841     * @return A new mapbuf widget handle or @c NULL, on errors.
24842     *
24843     * This function inserts a new mapbuf widget on the canvas.
24844     *
24845     * @ingroup Mapbuf
24846     */
24847    EAPI Evas_Object *elm_mapbuf_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24848
24849    /**
24850     * Set the content of the mapbuf.
24851     *
24852     * @param obj The mapbuf object.
24853     * @param content The content that will be filled in this mapbuf object.
24854     *
24855     * Once the content object is set, a previously set one will be deleted.
24856     * If you want to keep that old content object, use the
24857     * elm_mapbuf_content_unset() function.
24858     *
24859     * To enable map, elm_mapbuf_enabled_set() should be used.
24860     *
24861     * @deprecated use elm_object_content_set() instead
24862     *
24863     * @ingroup Mapbuf
24864     */
24865    EINA_DEPRECATED EAPI void         elm_mapbuf_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24866
24867    /**
24868     * Get the content of the mapbuf.
24869     *
24870     * @param obj The mapbuf object.
24871     * @return The content that is being used.
24872     *
24873     * Return the content object which is set for this widget.
24874     *
24875     * @see elm_mapbuf_content_set() for details.
24876     *
24877     * @deprecated use elm_object_content_get() instead
24878     *
24879     * @ingroup Mapbuf
24880     */
24881    EINA_DEPRECATED EAPI Evas_Object *elm_mapbuf_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24882
24883    /**
24884     * Unset the content of the mapbuf.
24885     *
24886     * @param obj The mapbuf object.
24887     * @return The content that was being used.
24888     *
24889     * Unparent and return the content object which was set for this widget.
24890     *
24891     * @see elm_mapbuf_content_set() for details.
24892     *
24893     * @deprecated use elm_object_content_unset() instead
24894     *
24895     * @ingroup Mapbuf
24896     */
24897    EINA_DEPRECATED EAPI Evas_Object *elm_mapbuf_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24898
24899    /**
24900     * Enable or disable the map.
24901     *
24902     * @param obj The mapbuf object.
24903     * @param enabled @c EINA_TRUE to enable map or @c EINA_FALSE to disable it.
24904     *
24905     * This enables the map that is set or disables it. On enable, the object
24906     * geometry will be saved, and the new geometry will change (position and
24907     * size) to reflect the map geometry set.
24908     *
24909     * Also, when enabled, alpha and smooth states will be used, so if the
24910     * content isn't solid, alpha should be enabled, for example, otherwise
24911     * a black retangle will fill the content.
24912     *
24913     * When disabled, the stored map will be freed and geometry prior to
24914     * enabling the map will be restored.
24915     *
24916     * It's disabled by default.
24917     *
24918     * @see elm_mapbuf_alpha_set()
24919     * @see elm_mapbuf_smooth_set()
24920     *
24921     * @ingroup Mapbuf
24922     */
24923    EAPI void         elm_mapbuf_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
24924
24925    /**
24926     * Get a value whether map is enabled or not.
24927     *
24928     * @param obj The mapbuf object.
24929     * @return @c EINA_TRUE means map is enabled. @c EINA_FALSE indicates
24930     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
24931     *
24932     * @see elm_mapbuf_enabled_set() for details.
24933     *
24934     * @ingroup Mapbuf
24935     */
24936    EAPI Eina_Bool    elm_mapbuf_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24937
24938    /**
24939     * Enable or disable smooth map rendering.
24940     *
24941     * @param obj The mapbuf object.
24942     * @param smooth @c EINA_TRUE to enable smooth map rendering or @c EINA_FALSE
24943     * to disable it.
24944     *
24945     * This sets smoothing for map rendering. If the object is a type that has
24946     * its own smoothing settings, then both the smooth settings for this object
24947     * and the map must be turned off.
24948     *
24949     * By default smooth maps are enabled.
24950     *
24951     * @ingroup Mapbuf
24952     */
24953    EAPI void         elm_mapbuf_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
24954
24955    /**
24956     * Get a value whether smooth map rendering is enabled or not.
24957     *
24958     * @param obj The mapbuf object.
24959     * @return @c EINA_TRUE means smooth map rendering is enabled. @c EINA_FALSE
24960     * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
24961     *
24962     * @see elm_mapbuf_smooth_set() for details.
24963     *
24964     * @ingroup Mapbuf
24965     */
24966    EAPI Eina_Bool    elm_mapbuf_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24967
24968    /**
24969     * Set or unset alpha flag for map rendering.
24970     *
24971     * @param obj The mapbuf object.
24972     * @param alpha @c EINA_TRUE to enable alpha blending or @c EINA_FALSE
24973     * to disable it.
24974     *
24975     * This sets alpha flag for map rendering. If the object is a type that has
24976     * its own alpha settings, then this will take precedence. Only image objects
24977     * have this currently. It stops alpha blending of the map area, and is
24978     * useful if you know the object and/or all sub-objects is 100% solid.
24979     *
24980     * Alpha is enabled by default.
24981     *
24982     * @ingroup Mapbuf
24983     */
24984    EAPI void         elm_mapbuf_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
24985
24986    /**
24987     * Get a value whether alpha blending is enabled or not.
24988     *
24989     * @param obj The mapbuf object.
24990     * @return @c EINA_TRUE means alpha blending is enabled. @c EINA_FALSE
24991     * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
24992     *
24993     * @see elm_mapbuf_alpha_set() for details.
24994     *
24995     * @ingroup Mapbuf
24996     */
24997    EAPI Eina_Bool    elm_mapbuf_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24998
24999    /**
25000     * @}
25001     */
25002
25003    /**
25004     * @defgroup Flipselector Flip Selector
25005     *
25006     * @image html img/widget/flipselector/preview-00.png
25007     * @image latex img/widget/flipselector/preview-00.eps
25008     *
25009     * A flip selector is a widget to show a set of @b text items, one
25010     * at a time, with the same sheet switching style as the @ref Clock
25011     * "clock" widget, when one changes the current displaying sheet
25012     * (thus, the "flip" in the name).
25013     *
25014     * User clicks to flip sheets which are @b held for some time will
25015     * make the flip selector to flip continuosly and automatically for
25016     * the user. The interval between flips will keep growing in time,
25017     * so that it helps the user to reach an item which is distant from
25018     * the current selection.
25019     *
25020     * Smart callbacks one can register to:
25021     * - @c "selected" - when the widget's selected text item is changed
25022     * - @c "overflowed" - when the widget's current selection is changed
25023     *   from the first item in its list to the last
25024     * - @c "underflowed" - when the widget's current selection is changed
25025     *   from the last item in its list to the first
25026     *
25027     * Available styles for it:
25028     * - @c "default"
25029     *
25030          * To set/get the label of the flipselector item, you can use
25031          * elm_object_item_text_set/get APIs.
25032          * Once the text is set, a previously set one will be deleted.
25033          * 
25034     * Here is an example on its usage:
25035     * @li @ref flipselector_example
25036     */
25037
25038    /**
25039     * @addtogroup Flipselector
25040     * @{
25041     */
25042
25043    /**
25044     * Add a new flip selector widget to the given parent Elementary
25045     * (container) widget
25046     *
25047     * @param parent The parent object
25048     * @return a new flip selector widget handle or @c NULL, on errors
25049     *
25050     * This function inserts a new flip selector widget on the canvas.
25051     *
25052     * @ingroup Flipselector
25053     */
25054    EAPI Evas_Object               *elm_flipselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25055
25056    /**
25057     * Programmatically select the next item of a flip selector widget
25058     *
25059     * @param obj The flipselector object
25060     *
25061     * @note The selection will be animated. Also, if it reaches the
25062     * end of its list of member items, it will continue with the first
25063     * one onwards.
25064     *
25065     * @ingroup Flipselector
25066     */
25067    EAPI void                       elm_flipselector_flip_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
25068
25069    /**
25070     * Programmatically select the previous item of a flip selector
25071     * widget
25072     *
25073     * @param obj The flipselector object
25074     *
25075     * @note The selection will be animated.  Also, if it reaches the
25076     * beginning of its list of member items, it will continue with the
25077     * last one backwards.
25078     *
25079     * @ingroup Flipselector
25080     */
25081    EAPI void                       elm_flipselector_flip_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
25082
25083    /**
25084     * Append a (text) item to a flip selector widget
25085     *
25086     * @param obj The flipselector object
25087     * @param label The (text) label of the new item
25088     * @param func Convenience callback function to take place when
25089     * item is selected
25090     * @param data Data passed to @p func, above
25091     * @return A handle to the item added or @c NULL, on errors
25092     *
25093     * The widget's list of labels to show will be appended with the
25094     * given value. If the user wishes so, a callback function pointer
25095     * can be passed, which will get called when this same item is
25096     * selected.
25097     *
25098     * @note The current selection @b won't be modified by appending an
25099     * element to the list.
25100     *
25101     * @note The maximum length of the text label is going to be
25102     * determined <b>by the widget's theme</b>. Strings larger than
25103     * that value are going to be @b truncated.
25104     *
25105     * @ingroup Flipselector
25106     */
25107    EAPI Elm_Object_Item     *elm_flipselector_item_append(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
25108
25109    /**
25110     * Prepend a (text) item to a flip selector widget
25111     *
25112     * @param obj The flipselector object
25113     * @param label The (text) label of the new item
25114     * @param func Convenience callback function to take place when
25115     * item is selected
25116     * @param data Data passed to @p func, above
25117     * @return A handle to the item added or @c NULL, on errors
25118     *
25119     * The widget's list of labels to show will be prepended with the
25120     * given value. If the user wishes so, a callback function pointer
25121     * can be passed, which will get called when this same item is
25122     * selected.
25123     *
25124     * @note The current selection @b won't be modified by prepending
25125     * an element to the list.
25126     *
25127     * @note The maximum length of the text label is going to be
25128     * determined <b>by the widget's theme</b>. Strings larger than
25129     * that value are going to be @b truncated.
25130     *
25131     * @ingroup Flipselector
25132     */
25133    EAPI Elm_Object_Item     *elm_flipselector_item_prepend(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
25134
25135    /**
25136     * Get the internal list of items in a given flip selector widget.
25137     *
25138     * @param obj The flipselector object
25139     * @return The list of items (#Elm_Object_Item as data) or
25140     * @c NULL on errors.
25141     *
25142     * This list is @b not to be modified in any way and must not be
25143     * freed. Use the list members with functions like
25144     * elm_object_item_text_set(),
25145     * elm_object_item_text_get(),
25146     * elm_flipselector_item_del(),
25147     * elm_flipselector_item_selected_get(),
25148     * elm_flipselector_item_selected_set().
25149     *
25150     * @warning This list is only valid until @p obj object's internal
25151     * items list is changed. It should be fetched again with another
25152     * call to this function when changes happen.
25153     *
25154     * @ingroup Flipselector
25155     */
25156    EAPI const Eina_List           *elm_flipselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25157
25158    /**
25159     * Get the first item in the given flip selector widget's list of
25160     * items.
25161     *
25162     * @param obj The flipselector object
25163     * @return The first item or @c NULL, if it has no items (and on
25164     * errors)
25165     *
25166     * @see elm_flipselector_item_append()
25167     * @see elm_flipselector_last_item_get()
25168     *
25169     * @ingroup Flipselector
25170     */
25171    EAPI Elm_Object_Item     *elm_flipselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25172
25173    /**
25174     * Get the last item in the given flip selector widget's list of
25175     * items.
25176     *
25177     * @param obj The flipselector object
25178     * @return The last item or @c NULL, if it has no items (and on
25179     * errors)
25180     *
25181     * @see elm_flipselector_item_prepend()
25182     * @see elm_flipselector_first_item_get()
25183     *
25184     * @ingroup Flipselector
25185     */
25186    EAPI Elm_Object_Item     *elm_flipselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25187
25188    /**
25189     * Get the currently selected item in a flip selector widget.
25190     *
25191     * @param obj The flipselector object
25192     * @return The selected item or @c NULL, if the widget has no items
25193     * (and on erros)
25194     *
25195     * @ingroup Flipselector
25196     */
25197    EAPI Elm_Object_Item     *elm_flipselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25198
25199    /**
25200     * Set whether a given flip selector widget's item should be the
25201     * currently selected one.
25202     *
25203     * @param it The flip selector item
25204     * @param selected @c EINA_TRUE to select it, @c EINA_FALSE to unselect.
25205     *
25206     * This sets whether @p item is or not the selected (thus, under
25207     * display) one. If @p item is different than one under display,
25208     * the latter will be unselected. If the @p item is set to be
25209     * unselected, on the other hand, the @b first item in the widget's
25210     * internal members list will be the new selected one.
25211     *
25212     * @see elm_flipselector_item_selected_get()
25213     *
25214     * @ingroup Flipselector
25215     */
25216    EAPI void                       elm_flipselector_item_selected_set(Elm_Object_Item *it, Eina_Bool selected) EINA_ARG_NONNULL(1);
25217
25218    /**
25219     * Get whether a given flip selector widget's item is the currently
25220     * selected one.
25221     *
25222     * @param it The flip selector item
25223     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
25224     * (or on errors).
25225     *
25226     * @see elm_flipselector_item_selected_set()
25227     *
25228     * @ingroup Flipselector
25229     */
25230    EAPI Eina_Bool                  elm_flipselector_item_selected_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25231
25232    /**
25233     * Delete a given item from a flip selector widget.
25234     *
25235     * @param it The item to delete
25236     *
25237     * @ingroup Flipselector
25238     */
25239    EAPI void                       elm_flipselector_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25240
25241    /**
25242     * Get the label of a given flip selector widget's item.
25243     *
25244     * @param it The item to get label from
25245     * @return The text label of @p item or @c NULL, on errors
25246     *
25247     * @see elm_object_item_text_set()
25248     *
25249     * @deprecated see elm_object_item_text_get() instead
25250     * @ingroup Flipselector
25251     */
25252    EINA_DEPRECATED EAPI const char                *elm_flipselector_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25253
25254    /**
25255     * Set the label of a given flip selector widget's item.
25256     *
25257     * @param it The item to set label on
25258     * @param label The text label string, in UTF-8 encoding
25259     *
25260     * @see elm_object_item_text_get()
25261     *
25262          * @deprecated see elm_object_item_text_set() instead
25263     * @ingroup Flipselector
25264     */
25265    EINA_DEPRECATED EAPI void                       elm_flipselector_item_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
25266
25267    /**
25268     * Gets the item before @p item in a flip selector widget's
25269     * internal list of items.
25270     *
25271     * @param it The item to fetch previous from
25272     * @return The item before the @p item, in its parent's list. If
25273     *         there is no previous item for @p item or there's an
25274     *         error, @c NULL is returned.
25275     *
25276     * @see elm_flipselector_item_next_get()
25277     *
25278     * @ingroup Flipselector
25279     */
25280    EAPI Elm_Object_Item     *elm_flipselector_item_prev_get(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25281
25282    /**
25283     * Gets the item after @p item in a flip selector widget's
25284     * internal list of items.
25285     *
25286     * @param it The item to fetch next from
25287     * @return The item after the @p item, in its parent's list. If
25288     *         there is no next item for @p item or there's an
25289     *         error, @c NULL is returned.
25290     *
25291     * @see elm_flipselector_item_next_get()
25292     *
25293     * @ingroup Flipselector
25294     */
25295    EAPI Elm_Object_Item     *elm_flipselector_item_next_get(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25296
25297    /**
25298     * Set the interval on time updates for an user mouse button hold
25299     * on a flip selector widget.
25300     *
25301     * @param obj The flip selector object
25302     * @param interval The (first) interval value in seconds
25303     *
25304     * This interval value is @b decreased while the user holds the
25305     * mouse pointer either flipping up or flipping doww a given flip
25306     * selector.
25307     *
25308     * This helps the user to get to a given item distant from the
25309     * current one easier/faster, as it will start to flip quicker and
25310     * quicker on mouse button holds.
25311     *
25312     * The calculation for the next flip interval value, starting from
25313     * the one set with this call, is the previous interval divided by
25314     * 1.05, so it decreases a little bit.
25315     *
25316     * The default starting interval value for automatic flips is
25317     * @b 0.85 seconds.
25318     *
25319     * @see elm_flipselector_interval_get()
25320     *
25321     * @ingroup Flipselector
25322     */
25323    EAPI void                       elm_flipselector_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
25324
25325    /**
25326     * Get the interval on time updates for an user mouse button hold
25327     * on a flip selector widget.
25328     *
25329     * @param obj The flip selector object
25330     * @return The (first) interval value, in seconds, set on it
25331     *
25332     * @see elm_flipselector_interval_set() for more details
25333     *
25334     * @ingroup Flipselector
25335     */
25336    EAPI double                     elm_flipselector_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25337    /**
25338     * @}
25339     */
25340
25341    /**
25342     * @addtogroup Calendar
25343     * @{
25344     */
25345
25346    /**
25347     * @enum _Elm_Calendar_Mark_Repeat
25348     * @typedef Elm_Calendar_Mark_Repeat
25349     *
25350     * Event periodicity, used to define if a mark should be repeated
25351     * @b beyond event's day. It's set when a mark is added.
25352     *
25353     * So, for a mark added to 13th May with periodicity set to WEEKLY,
25354     * there will be marks every week after this date. Marks will be displayed
25355     * at 13th, 20th, 27th, 3rd June ...
25356     *
25357     * Values don't work as bitmask, only one can be choosen.
25358     *
25359     * @see elm_calendar_mark_add()
25360     *
25361     * @ingroup Calendar
25362     */
25363    typedef enum _Elm_Calendar_Mark_Repeat
25364      {
25365         ELM_CALENDAR_UNIQUE, /**< Default value. Marks will be displayed only on event day. */
25366         ELM_CALENDAR_DAILY, /**< Marks will be displayed everyday after event day (inclusive). */
25367         ELM_CALENDAR_WEEKLY, /**< Marks will be displayed every week after event day (inclusive) - i.e. each seven days. */
25368         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*/
25369         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. */
25370      } Elm_Calendar_Mark_Repeat;
25371
25372    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(). */
25373
25374    /**
25375     * Add a new calendar widget to the given parent Elementary
25376     * (container) object.
25377     *
25378     * @param parent The parent object.
25379     * @return a new calendar widget handle or @c NULL, on errors.
25380     *
25381     * This function inserts a new calendar widget on the canvas.
25382     *
25383     * @ref calendar_example_01
25384     *
25385     * @ingroup Calendar
25386     */
25387    EAPI Evas_Object       *elm_calendar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25388
25389    /**
25390     * Get weekdays names displayed by the calendar.
25391     *
25392     * @param obj The calendar object.
25393     * @return Array of seven strings to be used as weekday names.
25394     *
25395     * By default, weekdays abbreviations get from system are displayed:
25396     * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
25397     * The first string is related to Sunday, the second to Monday...
25398     *
25399     * @see elm_calendar_weekdays_name_set()
25400     *
25401     * @ref calendar_example_05
25402     *
25403     * @ingroup Calendar
25404     */
25405    EAPI const char       **elm_calendar_weekdays_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25406
25407    /**
25408     * Set weekdays names to be displayed by the calendar.
25409     *
25410     * @param obj The calendar object.
25411     * @param weekdays Array of seven strings to be used as weekday names.
25412     * @warning It must have 7 elements, or it will access invalid memory.
25413     * @warning The strings must be NULL terminated ('@\0').
25414     *
25415     * By default, weekdays abbreviations get from system are displayed:
25416     * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
25417     *
25418     * The first string should be related to Sunday, the second to Monday...
25419     *
25420     * The usage should be like this:
25421     * @code
25422     *   const char *weekdays[] =
25423     *   {
25424     *      "Sunday", "Monday", "Tuesday", "Wednesday",
25425     *      "Thursday", "Friday", "Saturday"
25426     *   };
25427     *   elm_calendar_weekdays_names_set(calendar, weekdays);
25428     * @endcode
25429     *
25430     * @see elm_calendar_weekdays_name_get()
25431     *
25432     * @ref calendar_example_02
25433     *
25434     * @ingroup Calendar
25435     */
25436    EAPI void               elm_calendar_weekdays_names_set(Evas_Object *obj, const char *weekdays[]) EINA_ARG_NONNULL(1, 2);
25437
25438    /**
25439     * Set the minimum and maximum values for the year
25440     *
25441     * @param obj The calendar object
25442     * @param min The minimum year, greater than 1901;
25443     * @param max The maximum year;
25444     *
25445     * Maximum must be greater than minimum, except if you don't wan't to set
25446     * maximum year.
25447     * Default values are 1902 and -1.
25448     *
25449     * If the maximum year is a negative value, it will be limited depending
25450     * on the platform architecture (year 2037 for 32 bits);
25451     *
25452     * @see elm_calendar_min_max_year_get()
25453     *
25454     * @ref calendar_example_03
25455     *
25456     * @ingroup Calendar
25457     */
25458    EAPI void               elm_calendar_min_max_year_set(Evas_Object *obj, int min, int max) EINA_ARG_NONNULL(1);
25459
25460    /**
25461     * Get the minimum and maximum values for the year
25462     *
25463     * @param obj The calendar object.
25464     * @param min The minimum year.
25465     * @param max The maximum year.
25466     *
25467     * Default values are 1902 and -1.
25468     *
25469     * @see elm_calendar_min_max_year_get() for more details.
25470     *
25471     * @ref calendar_example_05
25472     *
25473     * @ingroup Calendar
25474     */
25475    EAPI void               elm_calendar_min_max_year_get(const Evas_Object *obj, int *min, int *max) EINA_ARG_NONNULL(1);
25476
25477    /**
25478     * Enable or disable day selection
25479     *
25480     * @param obj The calendar object.
25481     * @param enabled @c EINA_TRUE to enable selection or @c EINA_FALSE to
25482     * disable it.
25483     *
25484     * Enabled by default. If disabled, the user still can select months,
25485     * but not days. Selected days are highlighted on calendar.
25486     * It should be used if you won't need such selection for the widget usage.
25487     *
25488     * When a day is selected, or month is changed, smart callbacks for
25489     * signal "changed" will be called.
25490     *
25491     * @see elm_calendar_day_selection_enable_get()
25492     *
25493     * @ref calendar_example_04
25494     *
25495     * @ingroup Calendar
25496     */
25497    EAPI void               elm_calendar_day_selection_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
25498
25499    /**
25500     * Get a value whether day selection is enabled or not.
25501     *
25502     * @see elm_calendar_day_selection_enable_set() for details.
25503     *
25504     * @param obj The calendar object.
25505     * @return EINA_TRUE means day selection is enabled. EINA_FALSE indicates
25506     * it's disabled. If @p obj is NULL, EINA_FALSE is returned.
25507     *
25508     * @ref calendar_example_05
25509     *
25510     * @ingroup Calendar
25511     */
25512    EAPI Eina_Bool          elm_calendar_day_selection_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25513
25514
25515    /**
25516     * Set selected date to be highlighted on calendar.
25517     *
25518     * @param obj The calendar object.
25519     * @param selected_time A @b tm struct to represent the selected date.
25520     *
25521     * Set the selected date, changing the displayed month if needed.
25522     * Selected date changes when the user goes to next/previous month or
25523     * select a day pressing over it on calendar.
25524     *
25525     * @see elm_calendar_selected_time_get()
25526     *
25527     * @ref calendar_example_04
25528     *
25529     * @ingroup Calendar
25530     */
25531    EAPI void               elm_calendar_selected_time_set(Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1);
25532
25533    /**
25534     * Get selected date.
25535     *
25536     * @param obj The calendar object
25537     * @param selected_time A @b tm struct to point to selected date
25538     * @return EINA_FALSE means an error ocurred and returned time shouldn't
25539     * be considered.
25540     *
25541     * Get date selected by the user or set by function
25542     * elm_calendar_selected_time_set().
25543     * Selected date changes when the user goes to next/previous month or
25544     * select a day pressing over it on calendar.
25545     *
25546     * @see elm_calendar_selected_time_get()
25547     *
25548     * @ref calendar_example_05
25549     *
25550     * @ingroup Calendar
25551     */
25552    EAPI Eina_Bool          elm_calendar_selected_time_get(const Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1, 2);
25553
25554    /**
25555     * Set a function to format the string that will be used to display
25556     * month and year;
25557     *
25558     * @param obj The calendar object
25559     * @param format_function Function to set the month-year string given
25560     * the selected date
25561     *
25562     * By default it uses strftime with "%B %Y" format string.
25563     * It should allocate the memory that will be used by the string,
25564     * that will be freed by the widget after usage.
25565     * A pointer to the string and a pointer to the time struct will be provided.
25566     *
25567     * Example:
25568     * @code
25569     * static char *
25570     * _format_month_year(struct tm *selected_time)
25571     * {
25572     *    char buf[32];
25573     *    if (!strftime(buf, sizeof(buf), "%B %Y", selected_time)) return NULL;
25574     *    return strdup(buf);
25575     * }
25576     *
25577     * elm_calendar_format_function_set(calendar, _format_month_year);
25578     * @endcode
25579     *
25580     * @ref calendar_example_02
25581     *
25582     * @ingroup Calendar
25583     */
25584    EAPI void               elm_calendar_format_function_set(Evas_Object *obj, char * (*format_function) (struct tm *stime)) EINA_ARG_NONNULL(1);
25585
25586    /**
25587     * Add a new mark to the calendar
25588     *
25589     * @param obj The calendar object
25590     * @param mark_type A string used to define the type of mark. It will be
25591     * emitted to the theme, that should display a related modification on these
25592     * days representation.
25593     * @param mark_time A time struct to represent the date of inclusion of the
25594     * mark. For marks that repeats it will just be displayed after the inclusion
25595     * date in the calendar.
25596     * @param repeat Repeat the event following this periodicity. Can be a unique
25597     * mark (that don't repeat), daily, weekly, monthly or annually.
25598     * @return The created mark or @p NULL upon failure.
25599     *
25600     * Add a mark that will be drawn in the calendar respecting the insertion
25601     * time and periodicity. It will emit the type as signal to the widget theme.
25602     * Default theme supports "holiday" and "checked", but it can be extended.
25603     *
25604     * It won't immediately update the calendar, drawing the marks.
25605     * For this, call elm_calendar_marks_draw(). However, when user selects
25606     * next or previous month calendar forces marks drawn.
25607     *
25608     * Marks created with this method can be deleted with
25609     * elm_calendar_mark_del().
25610     *
25611     * Example
25612     * @code
25613     * struct tm selected_time;
25614     * time_t current_time;
25615     *
25616     * current_time = time(NULL) + 5 * 84600;
25617     * localtime_r(&current_time, &selected_time);
25618     * elm_calendar_mark_add(cal, "holiday", selected_time,
25619     *     ELM_CALENDAR_ANNUALLY);
25620     *
25621     * current_time = time(NULL) + 1 * 84600;
25622     * localtime_r(&current_time, &selected_time);
25623     * elm_calendar_mark_add(cal, "checked", selected_time, ELM_CALENDAR_UNIQUE);
25624     *
25625     * elm_calendar_marks_draw(cal);
25626     * @endcode
25627     *
25628     * @see elm_calendar_marks_draw()
25629     * @see elm_calendar_mark_del()
25630     *
25631     * @ref calendar_example_06
25632     *
25633     * @ingroup Calendar
25634     */
25635    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);
25636
25637    /**
25638     * Delete mark from the calendar.
25639     *
25640     * @param mark The mark to be deleted.
25641     *
25642     * If deleting all calendar marks is required, elm_calendar_marks_clear()
25643     * should be used instead of getting marks list and deleting each one.
25644     *
25645     * @see elm_calendar_mark_add()
25646     *
25647     * @ref calendar_example_06
25648     *
25649     * @ingroup Calendar
25650     */
25651    EAPI void               elm_calendar_mark_del(Elm_Calendar_Mark *mark) EINA_ARG_NONNULL(1);
25652
25653    /**
25654     * Remove all calendar's marks
25655     *
25656     * @param obj The calendar object.
25657     *
25658     * @see elm_calendar_mark_add()
25659     * @see elm_calendar_mark_del()
25660     *
25661     * @ingroup Calendar
25662     */
25663    EAPI void               elm_calendar_marks_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
25664
25665
25666    /**
25667     * Get a list of all the calendar marks.
25668     *
25669     * @param obj The calendar object.
25670     * @return An @c Eina_List of calendar marks objects, or @c NULL on failure.
25671     *
25672     * @see elm_calendar_mark_add()
25673     * @see elm_calendar_mark_del()
25674     * @see elm_calendar_marks_clear()
25675     *
25676     * @ingroup Calendar
25677     */
25678    EAPI const Eina_List   *elm_calendar_marks_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25679
25680    /**
25681     * Draw calendar marks.
25682     *
25683     * @param obj The calendar object.
25684     *
25685     * Should be used after adding, removing or clearing marks.
25686     * It will go through the entire marks list updating the calendar.
25687     * If lots of marks will be added, add all the marks and then call
25688     * this function.
25689     *
25690     * When the month is changed, i.e. user selects next or previous month,
25691     * marks will be drawed.
25692     *
25693     * @see elm_calendar_mark_add()
25694     * @see elm_calendar_mark_del()
25695     * @see elm_calendar_marks_clear()
25696     *
25697     * @ref calendar_example_06
25698     *
25699     * @ingroup Calendar
25700     */
25701    EAPI void               elm_calendar_marks_draw(Evas_Object *obj) EINA_ARG_NONNULL(1);
25702
25703    /**
25704     * Set a day text color to the same that represents Saturdays.
25705     *
25706     * @param obj The calendar object.
25707     * @param pos The text position. Position is the cell counter, from left
25708     * to right, up to down. It starts on 0 and ends on 41.
25709     *
25710     * @deprecated use elm_calendar_mark_add() instead like:
25711     *
25712     * @code
25713     * struct tm t = { 0, 0, 12, 6, 0, 0, 6, 6, -1 };
25714     * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
25715     * @endcode
25716     *
25717     * @see elm_calendar_mark_add()
25718     *
25719     * @ingroup Calendar
25720     */
25721    EINA_DEPRECATED EAPI void               elm_calendar_text_saturday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
25722
25723    /**
25724     * Set a day text color to the same that represents Sundays.
25725     *
25726     * @param obj The calendar object.
25727     * @param pos The text position. Position is the cell counter, from left
25728     * to right, up to down. It starts on 0 and ends on 41.
25729
25730     * @deprecated use elm_calendar_mark_add() instead like:
25731     *
25732     * @code
25733     * struct tm t = { 0, 0, 12, 7, 0, 0, 0, 0, -1 };
25734     * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
25735     * @endcode
25736     *
25737     * @see elm_calendar_mark_add()
25738     *
25739     * @ingroup Calendar
25740     */
25741    EINA_DEPRECATED EAPI void               elm_calendar_text_sunday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
25742
25743    /**
25744     * Set a day text color to the same that represents Weekdays.
25745     *
25746     * @param obj The calendar object
25747     * @param pos The text position. Position is the cell counter, from left
25748     * to right, up to down. It starts on 0 and ends on 41.
25749     *
25750     * @deprecated use elm_calendar_mark_add() instead like:
25751     *
25752     * @code
25753     * struct tm t = { 0, 0, 12, 1, 0, 0, 0, 0, -1 };
25754     *
25755     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // monday
25756     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
25757     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // tuesday
25758     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
25759     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // wednesday
25760     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
25761     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // thursday
25762     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
25763     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // friday
25764     * @endcode
25765     *
25766     * @see elm_calendar_mark_add()
25767     *
25768     * @ingroup Calendar
25769     */
25770    EINA_DEPRECATED EAPI void               elm_calendar_text_weekday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
25771
25772    /**
25773     * Set the interval on time updates for an user mouse button hold
25774     * on calendar widgets' month selection.
25775     *
25776     * @param obj The calendar object
25777     * @param interval The (first) interval value in seconds
25778     *
25779     * This interval value is @b decreased while the user holds the
25780     * mouse pointer either selecting next or previous month.
25781     *
25782     * This helps the user to get to a given month distant from the
25783     * current one easier/faster, as it will start to change quicker and
25784     * quicker on mouse button holds.
25785     *
25786     * The calculation for the next change interval value, starting from
25787     * the one set with this call, is the previous interval divided by
25788     * 1.05, so it decreases a little bit.
25789     *
25790     * The default starting interval value for automatic changes is
25791     * @b 0.85 seconds.
25792     *
25793     * @see elm_calendar_interval_get()
25794     *
25795     * @ingroup Calendar
25796     */
25797    EAPI void               elm_calendar_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
25798
25799    /**
25800     * Get the interval on time updates for an user mouse button hold
25801     * on calendar widgets' month selection.
25802     *
25803     * @param obj The calendar object
25804     * @return The (first) interval value, in seconds, set on it
25805     *
25806     * @see elm_calendar_interval_set() for more details
25807     *
25808     * @ingroup Calendar
25809     */
25810    EAPI double             elm_calendar_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25811
25812    /**
25813     * @}
25814     */
25815
25816    /**
25817     * @defgroup Diskselector Diskselector
25818     * @ingroup Elementary
25819     *
25820     * @image html img/widget/diskselector/preview-00.png
25821     * @image latex img/widget/diskselector/preview-00.eps
25822     *
25823     * A diskselector is a kind of list widget. It scrolls horizontally,
25824     * and can contain label and icon objects. Three items are displayed
25825     * with the selected one in the middle.
25826     *
25827     * It can act like a circular list with round mode and labels can be
25828     * reduced for a defined length for side items.
25829     *
25830     * Smart callbacks one can listen to:
25831     * - "selected" - when item is selected, i.e. scroller stops.
25832     *
25833     * Available styles for it:
25834     * - @c "default"
25835     *
25836     * List of examples:
25837     * @li @ref diskselector_example_01
25838     * @li @ref diskselector_example_02
25839     */
25840
25841    /**
25842     * @addtogroup Diskselector
25843     * @{
25844     */
25845
25846    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(). */
25847
25848    /**
25849     * Add a new diskselector widget to the given parent Elementary
25850     * (container) object.
25851     *
25852     * @param parent The parent object.
25853     * @return a new diskselector widget handle or @c NULL, on errors.
25854     *
25855     * This function inserts a new diskselector widget on the canvas.
25856     *
25857     * @ingroup Diskselector
25858     */
25859    EAPI Evas_Object           *elm_diskselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25860
25861    /**
25862     * Enable or disable round mode.
25863     *
25864     * @param obj The diskselector object.
25865     * @param round @c EINA_TRUE to enable round mode or @c EINA_FALSE to
25866     * disable it.
25867     *
25868     * Disabled by default. If round mode is enabled the items list will
25869     * work like a circle list, so when the user reaches the last item,
25870     * the first one will popup.
25871     *
25872     * @see elm_diskselector_round_get()
25873     *
25874     * @ingroup Diskselector
25875     */
25876    EAPI void                   elm_diskselector_round_set(Evas_Object *obj, Eina_Bool round) EINA_ARG_NONNULL(1);
25877
25878    /**
25879     * Get a value whether round mode is enabled or not.
25880     *
25881     * @see elm_diskselector_round_set() for details.
25882     *
25883     * @param obj The diskselector object.
25884     * @return @c EINA_TRUE means round mode is enabled. @c EINA_FALSE indicates
25885     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
25886     *
25887     * @ingroup Diskselector
25888     */
25889    EAPI Eina_Bool              elm_diskselector_round_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25890
25891    /**
25892     * Get the side labels max length.
25893     *
25894     * @deprecated use elm_diskselector_side_label_length_get() instead:
25895     *
25896     * @param obj The diskselector object.
25897     * @return The max length defined for side labels, or 0 if not a valid
25898     * diskselector.
25899     *
25900     * @ingroup Diskselector
25901     */
25902    EINA_DEPRECATED EAPI int    elm_diskselector_side_label_lenght_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25903
25904    /**
25905     * Set the side labels max length.
25906     *
25907     * @deprecated use elm_diskselector_side_label_length_set() instead:
25908     *
25909     * @param obj The diskselector object.
25910     * @param len The max length defined for side labels.
25911     *
25912     * @ingroup Diskselector
25913     */
25914    EINA_DEPRECATED EAPI void   elm_diskselector_side_label_lenght_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
25915
25916    /**
25917     * Get the side labels max length.
25918     *
25919     * @see elm_diskselector_side_label_length_set() for details.
25920     *
25921     * @param obj The diskselector object.
25922     * @return The max length defined for side labels, or 0 if not a valid
25923     * diskselector.
25924     *
25925     * @ingroup Diskselector
25926     */
25927    EAPI int                    elm_diskselector_side_label_length_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25928
25929    /**
25930     * Set the side labels max length.
25931     *
25932     * @param obj The diskselector object.
25933     * @param len The max length defined for side labels.
25934     *
25935     * Length is the number of characters of items' label that will be
25936     * visible when it's set on side positions. It will just crop
25937     * the string after defined size. E.g.:
25938     *
25939     * An item with label "January" would be displayed on side position as
25940     * "Jan" if max length is set to 3, or "Janu", if this property
25941     * is set to 4.
25942     *
25943     * When it's selected, the entire label will be displayed, except for
25944     * width restrictions. In this case label will be cropped and "..."
25945     * will be concatenated.
25946     *
25947     * Default side label max length is 3.
25948     *
25949     * This property will be applyed over all items, included before or
25950     * later this function call.
25951     *
25952     * @ingroup Diskselector
25953     */
25954    EAPI void                   elm_diskselector_side_label_length_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
25955
25956    /**
25957     * Set the number of items to be displayed.
25958     *
25959     * @param obj The diskselector object.
25960     * @param num The number of items the diskselector will display.
25961     *
25962     * Default value is 3, and also it's the minimun. If @p num is less
25963     * than 3, it will be set to 3.
25964     *
25965     * Also, it can be set on theme, using data item @c display_item_num
25966     * on group "elm/diskselector/item/X", where X is style set.
25967     * E.g.:
25968     *
25969     * group { name: "elm/diskselector/item/X";
25970     * data {
25971     *     item: "display_item_num" "5";
25972     *     }
25973     *
25974     * @ingroup Diskselector
25975     */
25976    EAPI void                   elm_diskselector_display_item_num_set(Evas_Object *obj, int num) EINA_ARG_NONNULL(1);
25977
25978    /**
25979     * Get the number of items in the diskselector object.
25980     *
25981     * @param obj The diskselector object.
25982     *
25983     * @ingroup Diskselector
25984     */
25985    EAPI int                   elm_diskselector_display_item_num_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25986
25987    /**
25988     * Set bouncing behaviour when the scrolled content reaches an edge.
25989     *
25990     * Tell the internal scroller object whether it should bounce or not
25991     * when it reaches the respective edges for each axis.
25992     *
25993     * @param obj The diskselector object.
25994     * @param h_bounce Whether to bounce or not in the horizontal axis.
25995     * @param v_bounce Whether to bounce or not in the vertical axis.
25996     *
25997     * @see elm_scroller_bounce_set()
25998     *
25999     * @ingroup Diskselector
26000     */
26001    EAPI void                   elm_diskselector_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
26002
26003    /**
26004     * Get the bouncing behaviour of the internal scroller.
26005     *
26006     * Get whether the internal scroller should bounce when the edge of each
26007     * axis is reached scrolling.
26008     *
26009     * @param obj The diskselector object.
26010     * @param h_bounce Pointer where to store the bounce state of the horizontal
26011     * axis.
26012     * @param v_bounce Pointer where to store the bounce state of the vertical
26013     * axis.
26014     *
26015     * @see elm_scroller_bounce_get()
26016     * @see elm_diskselector_bounce_set()
26017     *
26018     * @ingroup Diskselector
26019     */
26020    EAPI void                   elm_diskselector_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
26021
26022    /**
26023     * Get the scrollbar policy.
26024     *
26025     * @see elm_diskselector_scroller_policy_get() for details.
26026     *
26027     * @param obj The diskselector object.
26028     * @param policy_h Pointer where to store horizontal scrollbar policy.
26029     * @param policy_v Pointer where to store vertical scrollbar policy.
26030     *
26031     * @ingroup Diskselector
26032     */
26033    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);
26034
26035    /**
26036     * Set the scrollbar policy.
26037     *
26038     * @param obj The diskselector object.
26039     * @param policy_h Horizontal scrollbar policy.
26040     * @param policy_v Vertical scrollbar policy.
26041     *
26042     * This sets the scrollbar visibility policy for the given scroller.
26043     * #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it
26044     * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
26045     * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
26046     * This applies respectively for the horizontal and vertical scrollbars.
26047     *
26048     * The both are disabled by default, i.e., are set to
26049     * #ELM_SCROLLER_POLICY_OFF.
26050     *
26051     * @ingroup Diskselector
26052     */
26053    EAPI void                   elm_diskselector_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
26054
26055    /**
26056     * Remove all diskselector's items.
26057     *
26058     * @param obj The diskselector object.
26059     *
26060     * @see elm_diskselector_item_del()
26061     * @see elm_diskselector_item_append()
26062     *
26063     * @ingroup Diskselector
26064     */
26065    EAPI void                   elm_diskselector_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
26066
26067    /**
26068     * Get a list of all the diskselector items.
26069     *
26070     * @param obj The diskselector object.
26071     * @return An @c Eina_List of diskselector items, #Elm_Diskselector_Item,
26072     * or @c NULL on failure.
26073     *
26074     * @see elm_diskselector_item_append()
26075     * @see elm_diskselector_item_del()
26076     * @see elm_diskselector_clear()
26077     *
26078     * @ingroup Diskselector
26079     */
26080    EAPI const Eina_List       *elm_diskselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26081
26082    /**
26083     * Appends a new item to the diskselector object.
26084     *
26085     * @param obj The diskselector object.
26086     * @param label The label of the diskselector item.
26087     * @param icon The icon object to use at left side of the item. An
26088     * icon can be any Evas object, but usually it is an icon created
26089     * with elm_icon_add().
26090     * @param func The function to call when the item is selected.
26091     * @param data The data to associate with the item for related callbacks.
26092     *
26093     * @return The created item or @c NULL upon failure.
26094     *
26095     * A new item will be created and appended to the diskselector, i.e., will
26096     * be set as last item. Also, if there is no selected item, it will
26097     * be selected. This will always happens for the first appended item.
26098     *
26099     * If no icon is set, label will be centered on item position, otherwise
26100     * the icon will be placed at left of the label, that will be shifted
26101     * to the right.
26102     *
26103     * Items created with this method can be deleted with
26104     * elm_diskselector_item_del().
26105     *
26106     * Associated @p data can be properly freed when item is deleted if a
26107     * callback function is set with elm_diskselector_item_del_cb_set().
26108     *
26109     * If a function is passed as argument, it will be called everytime this item
26110     * is selected, i.e., the user stops the diskselector with this
26111     * item on center position. If such function isn't needed, just passing
26112     * @c NULL as @p func is enough. The same should be done for @p data.
26113     *
26114     * Simple example (with no function callback or data associated):
26115     * @code
26116     * disk = elm_diskselector_add(win);
26117     * ic = elm_icon_add(win);
26118     * elm_icon_file_set(ic, "path/to/image", NULL);
26119     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
26120     * elm_diskselector_item_append(disk, "label", ic, NULL, NULL);
26121     * @endcode
26122     *
26123     * @see elm_diskselector_item_del()
26124     * @see elm_diskselector_item_del_cb_set()
26125     * @see elm_diskselector_clear()
26126     * @see elm_icon_add()
26127     *
26128     * @ingroup Diskselector
26129     */
26130    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);
26131
26132
26133    /**
26134     * Delete them item from the diskselector.
26135     *
26136     * @param it The item of diskselector to be deleted.
26137     *
26138     * If deleting all diskselector items is required, elm_diskselector_clear()
26139     * should be used instead of getting items list and deleting each one.
26140     *
26141     * @see elm_diskselector_clear()
26142     * @see elm_diskselector_item_append()
26143     * @see elm_diskselector_item_del_cb_set()
26144     *
26145     * @ingroup Diskselector
26146     */
26147    EAPI void                   elm_diskselector_item_del(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26148
26149    /**
26150     * Set the function called when a diskselector item is freed.
26151     *
26152     * @param it The item to set the callback on
26153     * @param func The function called
26154     *
26155     * If there is a @p func, then it will be called prior item's memory release.
26156     * That will be called with the following arguments:
26157     * @li item's data;
26158     * @li item's Evas object;
26159     * @li item itself;
26160     *
26161     * This way, a data associated to a diskselector item could be properly
26162     * freed.
26163     *
26164     * @ingroup Diskselector
26165     */
26166    EAPI void                   elm_diskselector_item_del_cb_set(Elm_Diskselector_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
26167
26168    /**
26169     * Get the data associated to the item.
26170     *
26171     * @param it The diskselector item
26172     * @return The data associated to @p it
26173     *
26174     * The return value is a pointer to data associated to @p item when it was
26175     * created, with function elm_diskselector_item_append(). If no data
26176     * was passed as argument, it will return @c NULL.
26177     *
26178     * @see elm_diskselector_item_append()
26179     *
26180     * @ingroup Diskselector
26181     */
26182    EAPI void                  *elm_diskselector_item_data_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26183
26184    /**
26185     * Set the icon associated to the item.
26186     *
26187     * @param it The diskselector item
26188     * @param icon The icon object to associate with @p it
26189     *
26190     * The icon object to use at left side of the item. An
26191     * icon can be any Evas object, but usually it is an icon created
26192     * with elm_icon_add().
26193     *
26194     * Once the icon object is set, a previously set one will be deleted.
26195     * @warning Setting the same icon for two items will cause the icon to
26196     * dissapear from the first item.
26197     *
26198     * If an icon was passed as argument on item creation, with function
26199     * elm_diskselector_item_append(), it will be already
26200     * associated to the item.
26201     *
26202     * @see elm_diskselector_item_append()
26203     * @see elm_diskselector_item_icon_get()
26204     *
26205     * @ingroup Diskselector
26206     */
26207    EAPI void                   elm_diskselector_item_icon_set(Elm_Diskselector_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
26208
26209    /**
26210     * Get the icon associated to the item.
26211     *
26212     * @param it The diskselector item
26213     * @return The icon associated to @p it
26214     *
26215     * The return value is a pointer to the icon associated to @p item when it was
26216     * created, with function elm_diskselector_item_append(), or later
26217     * with function elm_diskselector_item_icon_set. If no icon
26218     * was passed as argument, it will return @c NULL.
26219     *
26220     * @see elm_diskselector_item_append()
26221     * @see elm_diskselector_item_icon_set()
26222     *
26223     * @ingroup Diskselector
26224     */
26225    EAPI Evas_Object           *elm_diskselector_item_icon_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26226
26227    /**
26228     * Set the label of item.
26229     *
26230     * @param it The item of diskselector.
26231     * @param label The label of item.
26232     *
26233     * The label to be displayed by the item.
26234     *
26235     * If no icon is set, label will be centered on item position, otherwise
26236     * the icon will be placed at left of the label, that will be shifted
26237     * to the right.
26238     *
26239     * An item with label "January" would be displayed on side position as
26240     * "Jan" if max length is set to 3 with function
26241     * elm_diskselector_side_label_lenght_set(), or "Janu", if this property
26242     * is set to 4.
26243     *
26244     * When this @p item is selected, the entire label will be displayed,
26245     * except for width restrictions.
26246     * In this case label will be cropped and "..." will be concatenated,
26247     * but only for display purposes. It will keep the entire string, so
26248     * if diskselector is resized the remaining characters will be displayed.
26249     *
26250     * If a label was passed as argument on item creation, with function
26251     * elm_diskselector_item_append(), it will be already
26252     * displayed by the item.
26253     *
26254     * @see elm_diskselector_side_label_lenght_set()
26255     * @see elm_diskselector_item_label_get()
26256     * @see elm_diskselector_item_append()
26257     *
26258     * @ingroup Diskselector
26259     */
26260    EAPI void                   elm_diskselector_item_label_set(Elm_Diskselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
26261
26262    /**
26263     * Get the label of item.
26264     *
26265     * @param it The item of diskselector.
26266     * @return The label of item.
26267     *
26268     * The return value is a pointer to the label associated to @p item when it was
26269     * created, with function elm_diskselector_item_append(), or later
26270     * with function elm_diskselector_item_label_set. If no label
26271     * was passed as argument, it will return @c NULL.
26272     *
26273     * @see elm_diskselector_item_label_set() for more details.
26274     * @see elm_diskselector_item_append()
26275     *
26276     * @ingroup Diskselector
26277     */
26278    EAPI const char            *elm_diskselector_item_label_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26279
26280    /**
26281     * Get the selected item.
26282     *
26283     * @param obj The diskselector object.
26284     * @return The selected diskselector item.
26285     *
26286     * The selected item can be unselected with function
26287     * elm_diskselector_item_selected_set(), and the first item of
26288     * diskselector will be selected.
26289     *
26290     * The selected item always will be centered on diskselector, with
26291     * full label displayed, i.e., max lenght set to side labels won't
26292     * apply on the selected item. More details on
26293     * elm_diskselector_side_label_length_set().
26294     *
26295     * @ingroup Diskselector
26296     */
26297    EAPI Elm_Diskselector_Item *elm_diskselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26298
26299    /**
26300     * Set the selected state of an item.
26301     *
26302     * @param it The diskselector item
26303     * @param selected The selected state
26304     *
26305     * This sets the selected state of the given item @p it.
26306     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
26307     *
26308     * If a new item is selected the previosly selected will be unselected.
26309     * Previoulsy selected item can be get with function
26310     * elm_diskselector_selected_item_get().
26311     *
26312     * If the item @p it is unselected, the first item of diskselector will
26313     * be selected.
26314     *
26315     * Selected items will be visible on center position of diskselector.
26316     * So if it was on another position before selected, or was invisible,
26317     * diskselector will animate items until the selected item reaches center
26318     * position.
26319     *
26320     * @see elm_diskselector_item_selected_get()
26321     * @see elm_diskselector_selected_item_get()
26322     *
26323     * @ingroup Diskselector
26324     */
26325    EAPI void                   elm_diskselector_item_selected_set(Elm_Diskselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
26326
26327    /*
26328     * Get whether the @p item is selected or not.
26329     *
26330     * @param it The diskselector item.
26331     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
26332     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
26333     *
26334     * @see elm_diskselector_selected_item_set() for details.
26335     * @see elm_diskselector_item_selected_get()
26336     *
26337     * @ingroup Diskselector
26338     */
26339    EAPI Eina_Bool              elm_diskselector_item_selected_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26340
26341    /**
26342     * Get the first item of the diskselector.
26343     *
26344     * @param obj The diskselector object.
26345     * @return The first item, or @c NULL if none.
26346     *
26347     * The list of items follows append order. So it will return the first
26348     * item appended to the widget that wasn't deleted.
26349     *
26350     * @see elm_diskselector_item_append()
26351     * @see elm_diskselector_items_get()
26352     *
26353     * @ingroup Diskselector
26354     */
26355    EAPI Elm_Diskselector_Item *elm_diskselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26356
26357    /**
26358     * Get the last item of the diskselector.
26359     *
26360     * @param obj The diskselector object.
26361     * @return The last item, or @c NULL if none.
26362     *
26363     * The list of items follows append order. So it will return last first
26364     * item appended to the widget that wasn't deleted.
26365     *
26366     * @see elm_diskselector_item_append()
26367     * @see elm_diskselector_items_get()
26368     *
26369     * @ingroup Diskselector
26370     */
26371    EAPI Elm_Diskselector_Item *elm_diskselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26372
26373    /**
26374     * Get the item before @p item in diskselector.
26375     *
26376     * @param it The diskselector item.
26377     * @return The item before @p item, or @c NULL if none or on failure.
26378     *
26379     * The list of items follows append order. So it will return item appended
26380     * just before @p item and that wasn't deleted.
26381     *
26382     * If it is the first item, @c NULL will be returned.
26383     * First item can be get by elm_diskselector_first_item_get().
26384     *
26385     * @see elm_diskselector_item_append()
26386     * @see elm_diskselector_items_get()
26387     *
26388     * @ingroup Diskselector
26389     */
26390    EAPI Elm_Diskselector_Item *elm_diskselector_item_prev_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26391
26392    /**
26393     * Get the item after @p item in diskselector.
26394     *
26395     * @param it The diskselector item.
26396     * @return The item after @p item, or @c NULL if none or on failure.
26397     *
26398     * The list of items follows append order. So it will return item appended
26399     * just after @p item and that wasn't deleted.
26400     *
26401     * If it is the last item, @c NULL will be returned.
26402     * Last item can be get by elm_diskselector_last_item_get().
26403     *
26404     * @see elm_diskselector_item_append()
26405     * @see elm_diskselector_items_get()
26406     *
26407     * @ingroup Diskselector
26408     */
26409    EAPI Elm_Diskselector_Item *elm_diskselector_item_next_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26410
26411    /**
26412     * Set the text to be shown in the diskselector item.
26413     *
26414     * @param item Target item
26415     * @param text The text to set in the content
26416     *
26417     * Setup the text as tooltip to object. The item can have only one tooltip,
26418     * so any previous tooltip data is removed.
26419     *
26420     * @see elm_object_tooltip_text_set() for more details.
26421     *
26422     * @ingroup Diskselector
26423     */
26424    EAPI void                   elm_diskselector_item_tooltip_text_set(Elm_Diskselector_Item *item, const char *text) EINA_ARG_NONNULL(1);
26425
26426    /**
26427     * Set the content to be shown in the tooltip item.
26428     *
26429     * Setup the tooltip to item. The item can have only one tooltip,
26430     * so any previous tooltip data is removed. @p func(with @p data) will
26431     * be called every time that need show the tooltip and it should
26432     * return a valid Evas_Object. This object is then managed fully by
26433     * tooltip system and is deleted when the tooltip is gone.
26434     *
26435     * @param item the diskselector item being attached a tooltip.
26436     * @param func the function used to create the tooltip contents.
26437     * @param data what to provide to @a func as callback data/context.
26438     * @param del_cb called when data is not needed anymore, either when
26439     *        another callback replaces @p func, the tooltip is unset with
26440     *        elm_diskselector_item_tooltip_unset() or the owner @a item
26441     *        dies. This callback receives as the first parameter the
26442     *        given @a data, and @c event_info is the item.
26443     *
26444     * @see elm_object_tooltip_content_cb_set() for more details.
26445     *
26446     * @ingroup Diskselector
26447     */
26448    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);
26449
26450    /**
26451     * Unset tooltip from item.
26452     *
26453     * @param item diskselector item to remove previously set tooltip.
26454     *
26455     * Remove tooltip from item. The callback provided as del_cb to
26456     * elm_diskselector_item_tooltip_content_cb_set() will be called to notify
26457     * it is not used anymore.
26458     *
26459     * @see elm_object_tooltip_unset() for more details.
26460     * @see elm_diskselector_item_tooltip_content_cb_set()
26461     *
26462     * @ingroup Diskselector
26463     */
26464    EAPI void                   elm_diskselector_item_tooltip_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26465
26466
26467    /**
26468     * Sets a different style for this item tooltip.
26469     *
26470     * @note before you set a style you should define a tooltip with
26471     *       elm_diskselector_item_tooltip_content_cb_set() or
26472     *       elm_diskselector_item_tooltip_text_set()
26473     *
26474     * @param item diskselector item with tooltip already set.
26475     * @param style the theme style to use (default, transparent, ...)
26476     *
26477     * @see elm_object_tooltip_style_set() for more details.
26478     *
26479     * @ingroup Diskselector
26480     */
26481    EAPI void                   elm_diskselector_item_tooltip_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
26482
26483    /**
26484     * Get the style for this item tooltip.
26485     *
26486     * @param item diskselector item with tooltip already set.
26487     * @return style the theme style in use, defaults to "default". If the
26488     *         object does not have a tooltip set, then NULL is returned.
26489     *
26490     * @see elm_object_tooltip_style_get() for more details.
26491     * @see elm_diskselector_item_tooltip_style_set()
26492     *
26493     * @ingroup Diskselector
26494     */
26495    EAPI const char            *elm_diskselector_item_tooltip_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26496
26497    /**
26498     * Set the cursor to be shown when mouse is over the diskselector item
26499     *
26500     * @param item Target item
26501     * @param cursor the cursor name to be used.
26502     *
26503     * @see elm_object_cursor_set() for more details.
26504     *
26505     * @ingroup Diskselector
26506     */
26507    EAPI void                   elm_diskselector_item_cursor_set(Elm_Diskselector_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
26508
26509    /**
26510     * Get the cursor to be shown when mouse is over the diskselector item
26511     *
26512     * @param item diskselector item with cursor already set.
26513     * @return the cursor name.
26514     *
26515     * @see elm_object_cursor_get() for more details.
26516     * @see elm_diskselector_cursor_set()
26517     *
26518     * @ingroup Diskselector
26519     */
26520    EAPI const char            *elm_diskselector_item_cursor_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26521
26522
26523    /**
26524     * Unset the cursor to be shown when mouse is over the diskselector item
26525     *
26526     * @param item Target item
26527     *
26528     * @see elm_object_cursor_unset() for more details.
26529     * @see elm_diskselector_cursor_set()
26530     *
26531     * @ingroup Diskselector
26532     */
26533    EAPI void                   elm_diskselector_item_cursor_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26534
26535    /**
26536     * Sets a different style for this item cursor.
26537     *
26538     * @note before you set a style you should define a cursor with
26539     *       elm_diskselector_item_cursor_set()
26540     *
26541     * @param item diskselector item with cursor already set.
26542     * @param style the theme style to use (default, transparent, ...)
26543     *
26544     * @see elm_object_cursor_style_set() for more details.
26545     *
26546     * @ingroup Diskselector
26547     */
26548    EAPI void                   elm_diskselector_item_cursor_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
26549
26550
26551    /**
26552     * Get the style for this item cursor.
26553     *
26554     * @param item diskselector item with cursor already set.
26555     * @return style the theme style in use, defaults to "default". If the
26556     *         object does not have a cursor set, then @c NULL is returned.
26557     *
26558     * @see elm_object_cursor_style_get() for more details.
26559     * @see elm_diskselector_item_cursor_style_set()
26560     *
26561     * @ingroup Diskselector
26562     */
26563    EAPI const char            *elm_diskselector_item_cursor_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26564
26565
26566    /**
26567     * Set if the cursor set should be searched on the theme or should use
26568     * the provided by the engine, only.
26569     *
26570     * @note before you set if should look on theme you should define a cursor
26571     * with elm_diskselector_item_cursor_set().
26572     * By default it will only look for cursors provided by the engine.
26573     *
26574     * @param item widget item with cursor already set.
26575     * @param engine_only boolean to define if cursors set with
26576     * elm_diskselector_item_cursor_set() should be searched only
26577     * between cursors provided by the engine or searched on widget's
26578     * theme as well.
26579     *
26580     * @see elm_object_cursor_engine_only_set() for more details.
26581     *
26582     * @ingroup Diskselector
26583     */
26584    EAPI void                   elm_diskselector_item_cursor_engine_only_set(Elm_Diskselector_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
26585
26586    /**
26587     * Get the cursor engine only usage for this item cursor.
26588     *
26589     * @param item widget item with cursor already set.
26590     * @return engine_only boolean to define it cursors should be looked only
26591     * between the provided by the engine or searched on widget's theme as well.
26592     * If the item does not have a cursor set, then @c EINA_FALSE is returned.
26593     *
26594     * @see elm_object_cursor_engine_only_get() for more details.
26595     * @see elm_diskselector_item_cursor_engine_only_set()
26596     *
26597     * @ingroup Diskselector
26598     */
26599    EAPI Eina_Bool              elm_diskselector_item_cursor_engine_only_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26600
26601    /**
26602     * @}
26603     */
26604
26605    /**
26606     * @defgroup Colorselector Colorselector
26607     *
26608     * @{
26609     *
26610     * @image html img/widget/colorselector/preview-00.png
26611     * @image latex img/widget/colorselector/preview-00.eps
26612     *
26613     * @brief Widget for user to select a color.
26614     *
26615     * Signals that you can add callbacks for are:
26616     * "changed" - When the color value changes(event_info is NULL).
26617     *
26618     * See @ref tutorial_colorselector.
26619     */
26620    /**
26621     * @brief Add a new colorselector to the parent
26622     *
26623     * @param parent The parent object
26624     * @return The new object or NULL if it cannot be created
26625     *
26626     * @ingroup Colorselector
26627     */
26628    EAPI Evas_Object *elm_colorselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26629    /**
26630     * Set a color for the colorselector
26631     *
26632     * @param obj   Colorselector object
26633     * @param r     r-value of color
26634     * @param g     g-value of color
26635     * @param b     b-value of color
26636     * @param a     a-value of color
26637     *
26638     * @ingroup Colorselector
26639     */
26640    EAPI void         elm_colorselector_color_set(Evas_Object *obj, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
26641    /**
26642     * Get a color from the colorselector
26643     *
26644     * @param obj   Colorselector object
26645     * @param r     integer pointer for r-value of color
26646     * @param g     integer pointer for g-value of color
26647     * @param b     integer pointer for b-value of color
26648     * @param a     integer pointer for a-value of color
26649     *
26650     * @ingroup Colorselector
26651     */
26652    EAPI void         elm_colorselector_color_get(const Evas_Object *obj, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
26653    /**
26654     * @}
26655     */
26656
26657    /**
26658     * @defgroup Ctxpopup Ctxpopup
26659     *
26660     * @image html img/widget/ctxpopup/preview-00.png
26661     * @image latex img/widget/ctxpopup/preview-00.eps
26662     *
26663     * @brief Context popup widet.
26664     *
26665     * A ctxpopup is a widget that, when shown, pops up a list of items.
26666     * It automatically chooses an area inside its parent object's view
26667     * (set via elm_ctxpopup_add() and elm_ctxpopup_hover_parent_set()) to
26668     * optimally fit into it. In the default theme, it will also point an
26669     * arrow to it's top left position at the time one shows it. Ctxpopup
26670     * items have a label and/or an icon. It is intended for a small
26671     * number of items (hence the use of list, not genlist).
26672     *
26673     * @note Ctxpopup is a especialization of @ref Hover.
26674     *
26675     * Signals that you can add callbacks for are:
26676     * "dismissed" - the ctxpopup was dismissed
26677     *
26678     * Default contents parts of the ctxpopup widget that you can use for are:
26679     * @li "default" - A content of the ctxpopup
26680     *
26681     * Default contents parts of the naviframe items that you can use for are:
26682     * @li "icon" - A icon in the title area
26683     * 
26684     * Default text parts of the naviframe items that you can use for are:
26685     * @li "default" - Title label in the title area
26686     *
26687     * @ref tutorial_ctxpopup shows the usage of a good deal of the API.
26688     * @{
26689     */
26690    typedef enum _Elm_Ctxpopup_Direction
26691      {
26692         ELM_CTXPOPUP_DIRECTION_DOWN, /**< ctxpopup show appear below clicked
26693                                           area */
26694         ELM_CTXPOPUP_DIRECTION_RIGHT, /**< ctxpopup show appear to the right of
26695                                            the clicked area */
26696         ELM_CTXPOPUP_DIRECTION_LEFT, /**< ctxpopup show appear to the left of
26697                                           the clicked area */
26698         ELM_CTXPOPUP_DIRECTION_UP, /**< ctxpopup show appear above the clicked
26699                                         area */
26700         ELM_CTXPOPUP_DIRECTION_UNKNOWN, /**< ctxpopup does not determine it's direction yet*/
26701      } Elm_Ctxpopup_Direction;
26702
26703    /**
26704     * @brief Add a new Ctxpopup object to the parent.
26705     *
26706     * @param parent Parent object
26707     * @return New object or @c NULL, if it cannot be created
26708     */
26709    EAPI Evas_Object  *elm_ctxpopup_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26710    /**
26711     * @brief Set the Ctxpopup's parent
26712     *
26713     * @param obj The ctxpopup object
26714     * @param area The parent to use
26715     *
26716     * Set the parent object.
26717     *
26718     * @note elm_ctxpopup_add() will automatically call this function
26719     * with its @c parent argument.
26720     *
26721     * @see elm_ctxpopup_add()
26722     * @see elm_hover_parent_set()
26723     */
26724    EAPI void          elm_ctxpopup_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1, 2);
26725    /**
26726     * @brief Get the Ctxpopup's parent
26727     *
26728     * @param obj The ctxpopup object
26729     *
26730     * @see elm_ctxpopup_hover_parent_set() for more information
26731     */
26732    EAPI Evas_Object  *elm_ctxpopup_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26733    /**
26734     * @brief Clear all items in the given ctxpopup object.
26735     *
26736     * @param obj Ctxpopup object
26737     */
26738    EAPI void          elm_ctxpopup_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
26739    /**
26740     * @brief Change the ctxpopup's orientation to horizontal or vertical.
26741     *
26742     * @param obj Ctxpopup object
26743     * @param horizontal @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical
26744     */
26745    EAPI void          elm_ctxpopup_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
26746    /**
26747     * @brief Get the value of current ctxpopup object's orientation.
26748     *
26749     * @param obj Ctxpopup object
26750     * @return @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical mode (or errors)
26751     *
26752     * @see elm_ctxpopup_horizontal_set()
26753     */
26754    EAPI Eina_Bool     elm_ctxpopup_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26755    /**
26756     * @brief Add a new item to a ctxpopup object.
26757     *
26758     * @param obj Ctxpopup object
26759     * @param icon Icon to be set on new item
26760     * @param label The Label of the new item
26761     * @param func Convenience function called when item selected
26762     * @param data Data passed to @p func
26763     * @return A handle to the item added or @c NULL, on errors
26764     *
26765     * @warning Ctxpopup can't hold both an item list and a content at the same
26766     * time. When an item is added, any previous content will be removed.
26767     *
26768     * @see elm_ctxpopup_content_set()
26769     */
26770    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);
26771    /**
26772     * @brief Delete the given item in a ctxpopup object.
26773     *
26774     * @param it Ctxpopup item to be deleted
26775     *
26776     * @see elm_ctxpopup_item_append()
26777     */
26778    EAPI void          elm_ctxpopup_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26779    /**
26780     * @brief Set the ctxpopup item's state as disabled or enabled.
26781     *
26782     * @param it Ctxpopup item to be enabled/disabled
26783     * @param disabled @c EINA_TRUE to disable it, @c EINA_FALSE to enable it
26784     *
26785     * When disabled the item is greyed out to indicate it's state.
26786     * @deprecated use elm_object_item_disabled_set() instead
26787     */
26788    EINA_DEPRECATED EAPI void          elm_ctxpopup_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
26789    /**
26790     * @brief Get the ctxpopup item's disabled/enabled state.
26791     *
26792     * @param it Ctxpopup item to be enabled/disabled
26793     * @return disabled @c EINA_TRUE, if disabled, @c EINA_FALSE otherwise
26794     *
26795     * @see elm_ctxpopup_item_disabled_set()
26796     * @deprecated use elm_object_item_disabled_get() instead
26797     */
26798    EAPI Eina_Bool     elm_ctxpopup_item_disabled_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26799    /**
26800     * @brief Get the icon object for the given ctxpopup item.
26801     *
26802     * @param it Ctxpopup item
26803     * @return icon object or @c NULL, if the item does not have icon or an error
26804     * occurred
26805     *
26806     * @see elm_ctxpopup_item_append()
26807     * @see elm_ctxpopup_item_icon_set()
26808     *
26809     * @deprecated use elm_object_item_part_content_get() instead
26810     */
26811    EINA_DEPRECATED EAPI Evas_Object  *elm_ctxpopup_item_icon_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26812    /**
26813     * @brief Sets the side icon associated with the ctxpopup item
26814     *
26815     * @param it Ctxpopup item
26816     * @param icon Icon object to be set
26817     *
26818     * Once the icon object is set, a previously set one will be deleted.
26819     * @warning Setting the same icon for two items will cause the icon to
26820     * dissapear from the first item.
26821     *
26822     * @see elm_ctxpopup_item_append()
26823     *  
26824     * @deprecated use elm_object_item_part_content_set() instead
26825     *
26826     */
26827    EINA_DEPRECATED EAPI void          elm_ctxpopup_item_icon_set(Elm_Object_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
26828    /**
26829     * @brief Get the label for the given ctxpopup item.
26830     *
26831     * @param it Ctxpopup item
26832     * @return label string or @c NULL, if the item does not have label or an
26833     * error occured
26834     *
26835     * @see elm_ctxpopup_item_append()
26836     * @see elm_ctxpopup_item_label_set()
26837     *
26838     * @deprecated use elm_object_item_text_get() instead
26839     */
26840    EINA_DEPRECATED EAPI const char   *elm_ctxpopup_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26841    /**
26842     * @brief (Re)set the label on the given ctxpopup item.
26843     *
26844     * @param it Ctxpopup item
26845     * @param label String to set as label
26846     *
26847     * @deprecated use elm_object_item_text_set() instead
26848     */
26849    EINA_DEPRECATED EAPI void          elm_ctxpopup_item_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
26850    /**
26851     * @brief Set an elm widget as the content of the ctxpopup.
26852     *
26853     * @param obj Ctxpopup object
26854     * @param content Content to be swallowed
26855     *
26856     * If the content object is already set, a previous one will bedeleted. If
26857     * you want to keep that old content object, use the
26858     * elm_ctxpopup_content_unset() function.
26859     *
26860     * @warning Ctxpopup can't hold both a item list and a content at the same
26861     * time. When a content is set, any previous items will be removed.
26862     * 
26863     * @deprecated use elm_object_content_set() instead
26864     *
26865     */
26866    EINA_DEPRECATED EAPI void          elm_ctxpopup_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1, 2);
26867    /**
26868     * @brief Unset the ctxpopup content
26869     *
26870     * @param obj Ctxpopup object
26871     * @return The content that was being used
26872     *
26873     * Unparent and return the content object which was set for this widget.
26874     *
26875     * @deprecated use elm_object_content_unset()
26876     *
26877     * @see elm_ctxpopup_content_set()
26878     *
26879     * @deprecated use elm_object_content_unset() instead
26880     *
26881     */
26882    EINA_DEPRECATED EAPI Evas_Object  *elm_ctxpopup_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
26883    /**
26884     * @brief Set the direction priority of a ctxpopup.
26885     *
26886     * @param obj Ctxpopup object
26887     * @param first 1st priority of direction
26888     * @param second 2nd priority of direction
26889     * @param third 3th priority of direction
26890     * @param fourth 4th priority of direction
26891     *
26892     * This functions gives a chance to user to set the priority of ctxpopup
26893     * showing direction. This doesn't guarantee the ctxpopup will appear in the
26894     * requested direction.
26895     *
26896     * @see Elm_Ctxpopup_Direction
26897     */
26898    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);
26899    /**
26900     * @brief Get the direction priority of a ctxpopup.
26901     *
26902     * @param obj Ctxpopup object
26903     * @param first 1st priority of direction to be returned
26904     * @param second 2nd priority of direction to be returned
26905     * @param third 3th priority of direction to be returned
26906     * @param fourth 4th priority of direction to be returned
26907     *
26908     * @see elm_ctxpopup_direction_priority_set() for more information.
26909     */
26910    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);
26911
26912    /**
26913     * @brief Get the current direction of a ctxpopup.
26914     *
26915     * @param obj Ctxpopup object
26916     * @return current direction of a ctxpopup
26917     *
26918     * @warning Once the ctxpopup showed up, the direction would be determined
26919     */
26920    EAPI Elm_Ctxpopup_Direction elm_ctxpopup_direction_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26921
26922    /**
26923     * @}
26924     */
26925
26926    /* transit */
26927    /**
26928     *
26929     * @defgroup Transit Transit
26930     * @ingroup Elementary
26931     *
26932     * Transit is designed to apply various animated transition effects to @c
26933     * Evas_Object, such like translation, rotation, etc. For using these
26934     * effects, create an @ref Elm_Transit and add the desired transition effects.
26935     *
26936     * Once the effects are added into transit, they will be automatically
26937     * managed (their callback will be called until the duration is ended, and
26938     * they will be deleted on completion).
26939     *
26940     * Example:
26941     * @code
26942     * Elm_Transit *trans = elm_transit_add();
26943     * elm_transit_object_add(trans, obj);
26944     * elm_transit_effect_translation_add(trans, 0, 0, 280, 280
26945     * elm_transit_duration_set(transit, 1);
26946     * elm_transit_auto_reverse_set(transit, EINA_TRUE);
26947     * elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
26948     * elm_transit_repeat_times_set(transit, 3);
26949     * @endcode
26950     *
26951     * Some transition effects are used to change the properties of objects. They
26952     * are:
26953     * @li @ref elm_transit_effect_translation_add
26954     * @li @ref elm_transit_effect_color_add
26955     * @li @ref elm_transit_effect_rotation_add
26956     * @li @ref elm_transit_effect_wipe_add
26957     * @li @ref elm_transit_effect_zoom_add
26958     * @li @ref elm_transit_effect_resizing_add
26959     *
26960     * Other transition effects are used to make one object disappear and another
26961     * object appear on its old place. These effects are:
26962     *
26963     * @li @ref elm_transit_effect_flip_add
26964     * @li @ref elm_transit_effect_resizable_flip_add
26965     * @li @ref elm_transit_effect_fade_add
26966     * @li @ref elm_transit_effect_blend_add
26967     *
26968     * It's also possible to make a transition chain with @ref
26969     * elm_transit_chain_transit_add.
26970     *
26971     * @warning We strongly recommend to use elm_transit just when edje can not do
26972     * the trick. Edje has more advantage than Elm_Transit, it has more flexibility and
26973     * animations can be manipulated inside the theme.
26974     *
26975     * List of examples:
26976     * @li @ref transit_example_01_explained
26977     * @li @ref transit_example_02_explained
26978     * @li @ref transit_example_03_c
26979     * @li @ref transit_example_04_c
26980     *
26981     * @{
26982     */
26983
26984    /**
26985     * @enum Elm_Transit_Tween_Mode
26986     *
26987     * The type of acceleration used in the transition.
26988     */
26989    typedef enum
26990      {
26991         ELM_TRANSIT_TWEEN_MODE_LINEAR, /**< Constant speed */
26992         ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL, /**< Starts slow, increase speed
26993                                              over time, then decrease again
26994                                              and stop slowly */
26995         ELM_TRANSIT_TWEEN_MODE_DECELERATE, /**< Starts fast and decrease
26996                                              speed over time */
26997         ELM_TRANSIT_TWEEN_MODE_ACCELERATE /**< Starts slow and increase speed
26998                                             over time */
26999      } Elm_Transit_Tween_Mode;
27000
27001    /**
27002     * @enum Elm_Transit_Effect_Flip_Axis
27003     *
27004     * The axis where flip effect should be applied.
27005     */
27006    typedef enum
27007      {
27008         ELM_TRANSIT_EFFECT_FLIP_AXIS_X, /**< Flip on X axis */
27009         ELM_TRANSIT_EFFECT_FLIP_AXIS_Y /**< Flip on Y axis */
27010      } Elm_Transit_Effect_Flip_Axis;
27011    /**
27012     * @enum Elm_Transit_Effect_Wipe_Dir
27013     *
27014     * The direction where the wipe effect should occur.
27015     */
27016    typedef enum
27017      {
27018         ELM_TRANSIT_EFFECT_WIPE_DIR_LEFT, /**< Wipe to the left */
27019         ELM_TRANSIT_EFFECT_WIPE_DIR_RIGHT, /**< Wipe to the right */
27020         ELM_TRANSIT_EFFECT_WIPE_DIR_UP, /**< Wipe up */
27021         ELM_TRANSIT_EFFECT_WIPE_DIR_DOWN /**< Wipe down */
27022      } Elm_Transit_Effect_Wipe_Dir;
27023    /** @enum Elm_Transit_Effect_Wipe_Type
27024     *
27025     * Whether the wipe effect should show or hide the object.
27026     */
27027    typedef enum
27028      {
27029         ELM_TRANSIT_EFFECT_WIPE_TYPE_HIDE, /**< Hide the object during the
27030                                              animation */
27031         ELM_TRANSIT_EFFECT_WIPE_TYPE_SHOW /**< Show the object during the
27032                                             animation */
27033      } Elm_Transit_Effect_Wipe_Type;
27034
27035    /**
27036     * @typedef Elm_Transit
27037     *
27038     * The Transit created with elm_transit_add(). This type has the information
27039     * about the objects which the transition will be applied, and the
27040     * transition effects that will be used. It also contains info about
27041     * duration, number of repetitions, auto-reverse, etc.
27042     */
27043    typedef struct _Elm_Transit Elm_Transit;
27044    typedef void Elm_Transit_Effect;
27045    /**
27046     * @typedef Elm_Transit_Effect_Transition_Cb
27047     *
27048     * Transition callback called for this effect on each transition iteration.
27049     */
27050    typedef void (*Elm_Transit_Effect_Transition_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit, double progress);
27051    /**
27052     * Elm_Transit_Effect_End_Cb
27053     *
27054     * Transition callback called for this effect when the transition is over.
27055     */
27056    typedef void (*Elm_Transit_Effect_End_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit);
27057
27058    /**
27059     * Elm_Transit_Del_Cb
27060     *
27061     * A callback called when the transit is deleted.
27062     */
27063    typedef void (*Elm_Transit_Del_Cb) (void *data, Elm_Transit *transit);
27064
27065    /**
27066     * Add new transit.
27067     *
27068     * @note Is not necessary to delete the transit object, it will be deleted at
27069     * the end of its operation.
27070     * @note The transit will start playing when the program enter in the main loop, is not
27071     * necessary to give a start to the transit.
27072     *
27073     * @return The transit object.
27074     *
27075     * @ingroup Transit
27076     */
27077    EAPI Elm_Transit                *elm_transit_add(void);
27078
27079    /**
27080     * Stops the animation and delete the @p transit object.
27081     *
27082     * Call this function if you wants to stop the animation before the duration
27083     * time. Make sure the @p transit object is still alive with
27084     * elm_transit_del_cb_set() function.
27085     * All added effects will be deleted, calling its repective data_free_cb
27086     * functions. The function setted by elm_transit_del_cb_set() will be called.
27087     *
27088     * @see elm_transit_del_cb_set()
27089     *
27090     * @param transit The transit object to be deleted.
27091     *
27092     * @ingroup Transit
27093     * @warning Just call this function if you are sure the transit is alive.
27094     */
27095    EAPI void                        elm_transit_del(Elm_Transit *transit) EINA_ARG_NONNULL(1);
27096
27097    /**
27098     * Add a new effect to the transit.
27099     *
27100     * @note The cb function and the data are the key to the effect. If you try to
27101     * add an already added effect, nothing is done.
27102     * @note After the first addition of an effect in @p transit, if its
27103     * effect list become empty again, the @p transit will be killed by
27104     * elm_transit_del(transit) function.
27105     *
27106     * Exemple:
27107     * @code
27108     * Elm_Transit *transit = elm_transit_add();
27109     * elm_transit_effect_add(transit,
27110     *                        elm_transit_effect_blend_op,
27111     *                        elm_transit_effect_blend_context_new(),
27112     *                        elm_transit_effect_blend_context_free);
27113     * @endcode
27114     *
27115     * @param transit The transit object.
27116     * @param transition_cb The operation function. It is called when the
27117     * animation begins, it is the function that actually performs the animation.
27118     * It is called with the @p data, @p transit and the time progression of the
27119     * animation (a double value between 0.0 and 1.0).
27120     * @param effect The context data of the effect.
27121     * @param end_cb The function to free the context data, it will be called
27122     * at the end of the effect, it must finalize the animation and free the
27123     * @p data.
27124     *
27125     * @ingroup Transit
27126     * @warning The transit free the context data at the and of the transition with
27127     * the data_free_cb function, do not use the context data in another transit.
27128     */
27129    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);
27130
27131    /**
27132     * Delete an added effect.
27133     *
27134     * This function will remove the effect from the @p transit, calling the
27135     * data_free_cb to free the @p data.
27136     *
27137     * @see elm_transit_effect_add()
27138     *
27139     * @note If the effect is not found, nothing is done.
27140     * @note If the effect list become empty, this function will call
27141     * elm_transit_del(transit), that is, it will kill the @p transit.
27142     *
27143     * @param transit The transit object.
27144     * @param transition_cb The operation function.
27145     * @param effect The context data of the effect.
27146     *
27147     * @ingroup Transit
27148     */
27149    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);
27150
27151    /**
27152     * Add new object to apply the effects.
27153     *
27154     * @note After the first addition of an object in @p transit, if its
27155     * object list become empty again, the @p transit will be killed by
27156     * elm_transit_del(transit) function.
27157     * @note If the @p obj belongs to another transit, the @p obj will be
27158     * removed from it and it will only belong to the @p transit. If the old
27159     * transit stays without objects, it will die.
27160     * @note When you add an object into the @p transit, its state from
27161     * evas_object_pass_events_get(obj) is saved, and it is applied when the
27162     * transit ends, if you change this state whith evas_object_pass_events_set()
27163     * after add the object, this state will change again when @p transit stops to
27164     * run.
27165     *
27166     * @param transit The transit object.
27167     * @param obj Object to be animated.
27168     *
27169     * @ingroup Transit
27170     * @warning It is not allowed to add a new object after transit begins to go.
27171     */
27172    EAPI void                        elm_transit_object_add(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
27173
27174    /**
27175     * Removes an added object from the transit.
27176     *
27177     * @note If the @p obj is not in the @p transit, nothing is done.
27178     * @note If the list become empty, this function will call
27179     * elm_transit_del(transit), that is, it will kill the @p transit.
27180     *
27181     * @param transit The transit object.
27182     * @param obj Object to be removed from @p transit.
27183     *
27184     * @ingroup Transit
27185     * @warning It is not allowed to remove objects after transit begins to go.
27186     */
27187    EAPI void                        elm_transit_object_remove(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
27188
27189    /**
27190     * Get the objects of the transit.
27191     *
27192     * @param transit The transit object.
27193     * @return a Eina_List with the objects from the transit.
27194     *
27195     * @ingroup Transit
27196     */
27197    EAPI const Eina_List            *elm_transit_objects_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27198
27199    /**
27200     * Enable/disable keeping up the objects states.
27201     * If it is not kept, the objects states will be reset when transition ends.
27202     *
27203     * @note @p transit can not be NULL.
27204     * @note One state includes geometry, color, map data.
27205     *
27206     * @param transit The transit object.
27207     * @param state_keep Keeping or Non Keeping.
27208     *
27209     * @ingroup Transit
27210     */
27211    EAPI void                        elm_transit_objects_final_state_keep_set(Elm_Transit *transit, Eina_Bool state_keep) EINA_ARG_NONNULL(1);
27212
27213    /**
27214     * Get a value whether the objects states will be reset or not.
27215     *
27216     * @note @p transit can not be NULL
27217     *
27218     * @see elm_transit_objects_final_state_keep_set()
27219     *
27220     * @param transit The transit object.
27221     * @return EINA_TRUE means the states of the objects will be reset.
27222     * If @p transit is NULL, EINA_FALSE is returned
27223     *
27224     * @ingroup Transit
27225     */
27226    EAPI Eina_Bool                   elm_transit_objects_final_state_keep_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27227
27228    /**
27229     * Set the event enabled when transit is operating.
27230     *
27231     * If @p enabled is EINA_TRUE, the objects of the transit will receives
27232     * events from mouse and keyboard during the animation.
27233     * @note When you add an object with elm_transit_object_add(), its state from
27234     * evas_object_pass_events_get(obj) is saved, and it is applied when the
27235     * transit ends, if you change this state with evas_object_pass_events_set()
27236     * after adding the object, this state will change again when @p transit stops
27237     * to run.
27238     *
27239     * @param transit The transit object.
27240     * @param enabled Events are received when enabled is @c EINA_TRUE, and
27241     * ignored otherwise.
27242     *
27243     * @ingroup Transit
27244     */
27245    EAPI void                        elm_transit_event_enabled_set(Elm_Transit *transit, Eina_Bool enabled) EINA_ARG_NONNULL(1);
27246
27247    /**
27248     * Get the value of event enabled status.
27249     *
27250     * @see elm_transit_event_enabled_set()
27251     *
27252     * @param transit The Transit object
27253     * @return EINA_TRUE, when event is enabled. If @p transit is NULL
27254     * EINA_FALSE is returned
27255     *
27256     * @ingroup Transit
27257     */
27258    EAPI Eina_Bool                   elm_transit_event_enabled_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27259
27260    /**
27261     * Set the user-callback function when the transit is deleted.
27262     *
27263     * @note Using this function twice will overwrite the first function setted.
27264     * @note the @p transit object will be deleted after call @p cb function.
27265     *
27266     * @param transit The transit object.
27267     * @param cb Callback function pointer. This function will be called before
27268     * the deletion of the transit.
27269     * @param data Callback funtion user data. It is the @p op parameter.
27270     *
27271     * @ingroup Transit
27272     */
27273    EAPI void                        elm_transit_del_cb_set(Elm_Transit *transit, Elm_Transit_Del_Cb cb, void *data) EINA_ARG_NONNULL(1);
27274
27275    /**
27276     * Set reverse effect automatically.
27277     *
27278     * If auto reverse is setted, after running the effects with the progress
27279     * parameter from 0 to 1, it will call the effecs again with the progress
27280     * from 1 to 0. The transit will last for a time iqual to (2 * duration * repeat),
27281     * where the duration was setted with the function elm_transit_add and
27282     * the repeat with the function elm_transit_repeat_times_set().
27283     *
27284     * @param transit The transit object.
27285     * @param reverse EINA_TRUE means the auto_reverse is on.
27286     *
27287     * @ingroup Transit
27288     */
27289    EAPI void                        elm_transit_auto_reverse_set(Elm_Transit *transit, Eina_Bool reverse) EINA_ARG_NONNULL(1);
27290
27291    /**
27292     * Get if the auto reverse is on.
27293     *
27294     * @see elm_transit_auto_reverse_set()
27295     *
27296     * @param transit The transit object.
27297     * @return EINA_TRUE means auto reverse is on. If @p transit is NULL
27298     * EINA_FALSE is returned
27299     *
27300     * @ingroup Transit
27301     */
27302    EAPI Eina_Bool                   elm_transit_auto_reverse_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27303
27304    /**
27305     * Set the transit repeat count. Effect will be repeated by repeat count.
27306     *
27307     * This function sets the number of repetition the transit will run after
27308     * the first one, that is, if @p repeat is 1, the transit will run 2 times.
27309     * If the @p repeat is a negative number, it will repeat infinite times.
27310     *
27311     * @note If this function is called during the transit execution, the transit
27312     * will run @p repeat times, ignoring the times it already performed.
27313     *
27314     * @param transit The transit object
27315     * @param repeat Repeat count
27316     *
27317     * @ingroup Transit
27318     */
27319    EAPI void                        elm_transit_repeat_times_set(Elm_Transit *transit, int repeat) EINA_ARG_NONNULL(1);
27320
27321    /**
27322     * Get the transit repeat count.
27323     *
27324     * @see elm_transit_repeat_times_set()
27325     *
27326     * @param transit The Transit object.
27327     * @return The repeat count. If @p transit is NULL
27328     * 0 is returned
27329     *
27330     * @ingroup Transit
27331     */
27332    EAPI int                         elm_transit_repeat_times_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27333
27334    /**
27335     * Set the transit animation acceleration type.
27336     *
27337     * This function sets the tween mode of the transit that can be:
27338     * ELM_TRANSIT_TWEEN_MODE_LINEAR - The default mode.
27339     * ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL - Starts in accelerate mode and ends decelerating.
27340     * ELM_TRANSIT_TWEEN_MODE_DECELERATE - The animation will be slowed over time.
27341     * ELM_TRANSIT_TWEEN_MODE_ACCELERATE - The animation will accelerate over time.
27342     *
27343     * @param transit The transit object.
27344     * @param tween_mode The tween type.
27345     *
27346     * @ingroup Transit
27347     */
27348    EAPI void                        elm_transit_tween_mode_set(Elm_Transit *transit, Elm_Transit_Tween_Mode tween_mode) EINA_ARG_NONNULL(1);
27349
27350    /**
27351     * Get the transit animation acceleration type.
27352     *
27353     * @note @p transit can not be NULL
27354     *
27355     * @param transit The transit object.
27356     * @return The tween type. If @p transit is NULL
27357     * ELM_TRANSIT_TWEEN_MODE_LINEAR is returned.
27358     *
27359     * @ingroup Transit
27360     */
27361    EAPI Elm_Transit_Tween_Mode      elm_transit_tween_mode_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27362
27363    /**
27364     * Set the transit animation time
27365     *
27366     * @note @p transit can not be NULL
27367     *
27368     * @param transit The transit object.
27369     * @param duration The animation time.
27370     *
27371     * @ingroup Transit
27372     */
27373    EAPI void                        elm_transit_duration_set(Elm_Transit *transit, double duration) EINA_ARG_NONNULL(1);
27374
27375    /**
27376     * Get the transit animation time
27377     *
27378     * @note @p transit can not be NULL
27379     *
27380     * @param transit The transit object.
27381     *
27382     * @return The transit animation time.
27383     *
27384     * @ingroup Transit
27385     */
27386    EAPI double                      elm_transit_duration_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27387
27388    /**
27389     * Starts the transition.
27390     * Once this API is called, the transit begins to measure the time.
27391     *
27392     * @note @p transit can not be NULL
27393     *
27394     * @param transit The transit object.
27395     *
27396     * @ingroup Transit
27397     */
27398    EAPI void                        elm_transit_go(Elm_Transit *transit) EINA_ARG_NONNULL(1);
27399
27400    /**
27401     * Pause/Resume the transition.
27402     *
27403     * If you call elm_transit_go again, the transit will be started from the
27404     * beginning, and will be unpaused.
27405     *
27406     * @note @p transit can not be NULL
27407     *
27408     * @param transit The transit object.
27409     * @param paused Whether the transition should be paused or not.
27410     *
27411     * @ingroup Transit
27412     */
27413    EAPI void                        elm_transit_paused_set(Elm_Transit *transit, Eina_Bool paused) EINA_ARG_NONNULL(1);
27414
27415    /**
27416     * Get the value of paused status.
27417     *
27418     * @see elm_transit_paused_set()
27419     *
27420     * @note @p transit can not be NULL
27421     *
27422     * @param transit The transit object.
27423     * @return EINA_TRUE means transition is paused. If @p transit is NULL
27424     * EINA_FALSE is returned
27425     *
27426     * @ingroup Transit
27427     */
27428    EAPI Eina_Bool                   elm_transit_paused_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27429
27430    /**
27431     * Get the time progression of the animation (a double value between 0.0 and 1.0).
27432     *
27433     * The value returned is a fraction (current time / total time). It
27434     * represents the progression position relative to the total.
27435     *
27436     * @note @p transit can not be NULL
27437     *
27438     * @param transit The transit object.
27439     *
27440     * @return The time progression value. If @p transit is NULL
27441     * 0 is returned
27442     *
27443     * @ingroup Transit
27444     */
27445    EAPI double                      elm_transit_progress_value_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27446
27447    /**
27448     * Makes the chain relationship between two transits.
27449     *
27450     * @note @p transit can not be NULL. Transit would have multiple chain transits.
27451     * @note @p chain_transit can not be NULL. Chain transits could be chained to the only one transit.
27452     *
27453     * @param transit The transit object.
27454     * @param chain_transit The chain transit object. This transit will be operated
27455     *        after transit is done.
27456     *
27457     * This function adds @p chain_transit transition to a chain after the @p
27458     * transit, and will be started as soon as @p transit ends. See @ref
27459     * transit_example_02_explained for a full example.
27460     *
27461     * @ingroup Transit
27462     */
27463    EAPI void                        elm_transit_chain_transit_add(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1, 2);
27464
27465    /**
27466     * Cut off the chain relationship between two transits.
27467     *
27468     * @note @p transit can not be NULL. Transit would have the chain relationship with @p chain transit.
27469     * @note @p chain_transit can not be NULL. Chain transits should be chained to the @p transit.
27470     *
27471     * @param transit The transit object.
27472     * @param chain_transit The chain transit object.
27473     *
27474     * This function remove the @p chain_transit transition from the @p transit.
27475     *
27476     * @ingroup Transit
27477     */
27478    EAPI void                        elm_transit_chain_transit_del(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1,2);
27479
27480    /**
27481     * Get the current chain transit list.
27482     *
27483     * @note @p transit can not be NULL.
27484     *
27485     * @param transit The transit object.
27486     * @return chain transit list.
27487     *
27488     * @ingroup Transit
27489     */
27490    EAPI Eina_List                  *elm_transit_chain_transits_get(const Elm_Transit *transit);
27491
27492    /**
27493     * Add the Resizing Effect to Elm_Transit.
27494     *
27495     * @note This API is one of the facades. It creates resizing effect context
27496     * and add it's required APIs to elm_transit_effect_add.
27497     *
27498     * @see elm_transit_effect_add()
27499     *
27500     * @param transit Transit object.
27501     * @param from_w Object width size when effect begins.
27502     * @param from_h Object height size when effect begins.
27503     * @param to_w Object width size when effect ends.
27504     * @param to_h Object height size when effect ends.
27505     * @return Resizing effect context data.
27506     *
27507     * @ingroup Transit
27508     */
27509    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);
27510
27511    /**
27512     * Add the Translation Effect to Elm_Transit.
27513     *
27514     * @note This API is one of the facades. It creates translation effect context
27515     * and add it's required APIs to elm_transit_effect_add.
27516     *
27517     * @see elm_transit_effect_add()
27518     *
27519     * @param transit Transit object.
27520     * @param from_dx X Position variation when effect begins.
27521     * @param from_dy Y Position variation when effect begins.
27522     * @param to_dx X Position variation when effect ends.
27523     * @param to_dy Y Position variation when effect ends.
27524     * @return Translation effect context data.
27525     *
27526     * @ingroup Transit
27527     * @warning It is highly recommended just create a transit with this effect when
27528     * the window that the objects of the transit belongs has already been created.
27529     * This is because this effect needs the geometry information about the objects,
27530     * and if the window was not created yet, it can get a wrong information.
27531     */
27532    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);
27533
27534    /**
27535     * Add the Zoom Effect to Elm_Transit.
27536     *
27537     * @note This API is one of the facades. It creates zoom effect context
27538     * and add it's required APIs to elm_transit_effect_add.
27539     *
27540     * @see elm_transit_effect_add()
27541     *
27542     * @param transit Transit object.
27543     * @param from_rate Scale rate when effect begins (1 is current rate).
27544     * @param to_rate Scale rate when effect ends.
27545     * @return Zoom effect context data.
27546     *
27547     * @ingroup Transit
27548     * @warning It is highly recommended just create a transit with this effect when
27549     * the window that the objects of the transit belongs has already been created.
27550     * This is because this effect needs the geometry information about the objects,
27551     * and if the window was not created yet, it can get a wrong information.
27552     */
27553    EAPI Elm_Transit_Effect *elm_transit_effect_zoom_add(Elm_Transit *transit, float from_rate, float to_rate);
27554
27555    /**
27556     * Add the Flip Effect to Elm_Transit.
27557     *
27558     * @note This API is one of the facades. It creates flip effect context
27559     * and add it's required APIs to elm_transit_effect_add.
27560     * @note This effect is applied to each pair of objects in the order they are listed
27561     * in the transit list of objects. The first object in the pair will be the
27562     * "front" object and the second will be the "back" object.
27563     *
27564     * @see elm_transit_effect_add()
27565     *
27566     * @param transit Transit object.
27567     * @param axis Flipping Axis(X or Y).
27568     * @param cw Flipping Direction. EINA_TRUE is clock-wise.
27569     * @return Flip effect context data.
27570     *
27571     * @ingroup Transit
27572     * @warning It is highly recommended just create a transit with this effect when
27573     * the window that the objects of the transit belongs has already been created.
27574     * This is because this effect needs the geometry information about the objects,
27575     * and if the window was not created yet, it can get a wrong information.
27576     */
27577    EAPI Elm_Transit_Effect *elm_transit_effect_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
27578
27579    /**
27580     * Add the Resizable Flip Effect to Elm_Transit.
27581     *
27582     * @note This API is one of the facades. It creates resizable flip effect context
27583     * and add it's required APIs to elm_transit_effect_add.
27584     * @note This effect is applied to each pair of objects in the order they are listed
27585     * in the transit list of objects. The first object in the pair will be the
27586     * "front" object and the second will be the "back" object.
27587     *
27588     * @see elm_transit_effect_add()
27589     *
27590     * @param transit Transit object.
27591     * @param axis Flipping Axis(X or Y).
27592     * @param cw Flipping Direction. EINA_TRUE is clock-wise.
27593     * @return Resizable flip effect context data.
27594     *
27595     * @ingroup Transit
27596     * @warning It is highly recommended just create a transit with this effect when
27597     * the window that the objects of the transit belongs has already been created.
27598     * This is because this effect needs the geometry information about the objects,
27599     * and if the window was not created yet, it can get a wrong information.
27600     */
27601    EAPI Elm_Transit_Effect *elm_transit_effect_resizable_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
27602
27603    /**
27604     * Add the Wipe Effect to Elm_Transit.
27605     *
27606     * @note This API is one of the facades. It creates wipe effect context
27607     * and add it's required APIs to elm_transit_effect_add.
27608     *
27609     * @see elm_transit_effect_add()
27610     *
27611     * @param transit Transit object.
27612     * @param type Wipe type. Hide or show.
27613     * @param dir Wipe Direction.
27614     * @return Wipe effect context data.
27615     *
27616     * @ingroup Transit
27617     * @warning It is highly recommended just create a transit with this effect when
27618     * the window that the objects of the transit belongs has already been created.
27619     * This is because this effect needs the geometry information about the objects,
27620     * and if the window was not created yet, it can get a wrong information.
27621     */
27622    EAPI Elm_Transit_Effect *elm_transit_effect_wipe_add(Elm_Transit *transit, Elm_Transit_Effect_Wipe_Type type, Elm_Transit_Effect_Wipe_Dir dir);
27623
27624    /**
27625     * Add the Color Effect to Elm_Transit.
27626     *
27627     * @note This API is one of the facades. It creates color effect context
27628     * and add it's required APIs to elm_transit_effect_add.
27629     *
27630     * @see elm_transit_effect_add()
27631     *
27632     * @param transit        Transit object.
27633     * @param  from_r        RGB R when effect begins.
27634     * @param  from_g        RGB G when effect begins.
27635     * @param  from_b        RGB B when effect begins.
27636     * @param  from_a        RGB A when effect begins.
27637     * @param  to_r          RGB R when effect ends.
27638     * @param  to_g          RGB G when effect ends.
27639     * @param  to_b          RGB B when effect ends.
27640     * @param  to_a          RGB A when effect ends.
27641     * @return               Color effect context data.
27642     *
27643     * @ingroup Transit
27644     */
27645    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);
27646
27647    /**
27648     * Add the Fade Effect to Elm_Transit.
27649     *
27650     * @note This API is one of the facades. It creates fade effect context
27651     * and add it's required APIs to elm_transit_effect_add.
27652     * @note This effect is applied to each pair of objects in the order they are listed
27653     * in the transit list of objects. The first object in the pair will be the
27654     * "before" object and the second will be the "after" object.
27655     *
27656     * @see elm_transit_effect_add()
27657     *
27658     * @param transit Transit object.
27659     * @return Fade effect context data.
27660     *
27661     * @ingroup Transit
27662     * @warning It is highly recommended just create a transit with this effect when
27663     * the window that the objects of the transit belongs has already been created.
27664     * This is because this effect needs the color information about the objects,
27665     * and if the window was not created yet, it can get a wrong information.
27666     */
27667    EAPI Elm_Transit_Effect *elm_transit_effect_fade_add(Elm_Transit *transit);
27668
27669    /**
27670     * Add the Blend Effect to Elm_Transit.
27671     *
27672     * @note This API is one of the facades. It creates blend effect context
27673     * and add it's required APIs to elm_transit_effect_add.
27674     * @note This effect is applied to each pair of objects in the order they are listed
27675     * in the transit list of objects. The first object in the pair will be the
27676     * "before" object and the second will be the "after" object.
27677     *
27678     * @see elm_transit_effect_add()
27679     *
27680     * @param transit Transit object.
27681     * @return Blend effect context data.
27682     *
27683     * @ingroup Transit
27684     * @warning It is highly recommended just create a transit with this effect when
27685     * the window that the objects of the transit belongs has already been created.
27686     * This is because this effect needs the color information about the objects,
27687     * and if the window was not created yet, it can get a wrong information.
27688     */
27689    EAPI Elm_Transit_Effect *elm_transit_effect_blend_add(Elm_Transit *transit);
27690
27691    /**
27692     * Add the Rotation Effect to Elm_Transit.
27693     *
27694     * @note This API is one of the facades. It creates rotation effect context
27695     * and add it's required APIs to elm_transit_effect_add.
27696     *
27697     * @see elm_transit_effect_add()
27698     *
27699     * @param transit Transit object.
27700     * @param from_degree Degree when effect begins.
27701     * @param to_degree Degree when effect is ends.
27702     * @return Rotation effect context data.
27703     *
27704     * @ingroup Transit
27705     * @warning It is highly recommended just create a transit with this effect when
27706     * the window that the objects of the transit belongs has already been created.
27707     * This is because this effect needs the geometry information about the objects,
27708     * and if the window was not created yet, it can get a wrong information.
27709     */
27710    EAPI Elm_Transit_Effect *elm_transit_effect_rotation_add(Elm_Transit *transit, float from_degree, float to_degree);
27711
27712    /**
27713     * Add the ImageAnimation Effect to Elm_Transit.
27714     *
27715     * @note This API is one of the facades. It creates image animation effect context
27716     * and add it's required APIs to elm_transit_effect_add.
27717     * The @p images parameter is a list images paths. This list and
27718     * its contents will be deleted at the end of the effect by
27719     * elm_transit_effect_image_animation_context_free() function.
27720     *
27721     * Example:
27722     * @code
27723     * char buf[PATH_MAX];
27724     * Eina_List *images = NULL;
27725     * Elm_Transit *transi = elm_transit_add();
27726     *
27727     * snprintf(buf, sizeof(buf), "%s/images/icon_11.png", PACKAGE_DATA_DIR);
27728     * images = eina_list_append(images, eina_stringshare_add(buf));
27729     *
27730     * snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
27731     * images = eina_list_append(images, eina_stringshare_add(buf));
27732     * elm_transit_effect_image_animation_add(transi, images);
27733     *
27734     * @endcode
27735     *
27736     * @see elm_transit_effect_add()
27737     *
27738     * @param transit Transit object.
27739     * @param images Eina_List of images file paths. This list and
27740     * its contents will be deleted at the end of the effect by
27741     * elm_transit_effect_image_animation_context_free() function.
27742     * @return Image Animation effect context data.
27743     *
27744     * @ingroup Transit
27745     */
27746    EAPI Elm_Transit_Effect *elm_transit_effect_image_animation_add(Elm_Transit *transit, Eina_List *images);
27747    /**
27748     * @}
27749     */
27750
27751    typedef struct _Elm_Store                      Elm_Store;
27752    typedef struct _Elm_Store_Filesystem           Elm_Store_Filesystem;
27753    typedef struct _Elm_Store_Item                 Elm_Store_Item;
27754    typedef struct _Elm_Store_Item_Filesystem      Elm_Store_Item_Filesystem;
27755    typedef struct _Elm_Store_Item_Info            Elm_Store_Item_Info;
27756    typedef struct _Elm_Store_Item_Info_Filesystem Elm_Store_Item_Info_Filesystem;
27757    typedef struct _Elm_Store_Item_Mapping         Elm_Store_Item_Mapping;
27758    typedef struct _Elm_Store_Item_Mapping_Empty   Elm_Store_Item_Mapping_Empty;
27759    typedef struct _Elm_Store_Item_Mapping_Icon    Elm_Store_Item_Mapping_Icon;
27760    typedef struct _Elm_Store_Item_Mapping_Photo   Elm_Store_Item_Mapping_Photo;
27761    typedef struct _Elm_Store_Item_Mapping_Custom  Elm_Store_Item_Mapping_Custom;
27762
27763    typedef Eina_Bool (*Elm_Store_Item_List_Cb) (void *data, Elm_Store_Item_Info *info);
27764    typedef void      (*Elm_Store_Item_Fetch_Cb) (void *data, Elm_Store_Item *sti);
27765    typedef void      (*Elm_Store_Item_Unfetch_Cb) (void *data, Elm_Store_Item *sti);
27766    typedef void     *(*Elm_Store_Item_Mapping_Cb) (void *data, Elm_Store_Item *sti, const char *part);
27767
27768    typedef enum
27769      {
27770         ELM_STORE_ITEM_MAPPING_NONE = 0,
27771         ELM_STORE_ITEM_MAPPING_LABEL, // const char * -> label
27772         ELM_STORE_ITEM_MAPPING_STATE, // Eina_Bool -> state
27773         ELM_STORE_ITEM_MAPPING_ICON, // char * -> icon path
27774         ELM_STORE_ITEM_MAPPING_PHOTO, // char * -> photo path
27775         ELM_STORE_ITEM_MAPPING_CUSTOM, // item->custom(it->data, it, part) -> void * (-> any)
27776         // can add more here as needed by common apps
27777         ELM_STORE_ITEM_MAPPING_LAST
27778      } Elm_Store_Item_Mapping_Type;
27779
27780    struct _Elm_Store_Item_Mapping_Icon
27781      {
27782         // FIXME: allow edje file icons
27783         int                   w, h;
27784         Elm_Icon_Lookup_Order lookup_order;
27785         Eina_Bool             standard_name : 1;
27786         Eina_Bool             no_scale : 1;
27787         Eina_Bool             smooth : 1;
27788         Eina_Bool             scale_up : 1;
27789         Eina_Bool             scale_down : 1;
27790      };
27791
27792    struct _Elm_Store_Item_Mapping_Empty
27793      {
27794         Eina_Bool             dummy;
27795      };
27796
27797    struct _Elm_Store_Item_Mapping_Photo
27798      {
27799         int                   size;
27800      };
27801
27802    struct _Elm_Store_Item_Mapping_Custom
27803      {
27804         Elm_Store_Item_Mapping_Cb func;
27805      };
27806
27807    struct _Elm_Store_Item_Mapping
27808      {
27809         Elm_Store_Item_Mapping_Type     type;
27810         const char                     *part;
27811         int                             offset;
27812         union
27813           {
27814              Elm_Store_Item_Mapping_Empty  empty;
27815              Elm_Store_Item_Mapping_Icon   icon;
27816              Elm_Store_Item_Mapping_Photo  photo;
27817              Elm_Store_Item_Mapping_Custom custom;
27818              // add more types here
27819           } details;
27820      };
27821
27822    struct _Elm_Store_Item_Info
27823      {
27824         Elm_Genlist_Item_Class       *item_class;
27825         const Elm_Store_Item_Mapping *mapping;
27826         void                         *data;
27827         char                         *sort_id;
27828      };
27829
27830    struct _Elm_Store_Item_Info_Filesystem
27831      {
27832         Elm_Store_Item_Info  base;
27833         char                *path;
27834      };
27835
27836 #define ELM_STORE_ITEM_MAPPING_END { ELM_STORE_ITEM_MAPPING_NONE, NULL, 0, { .empty = { EINA_TRUE } } }
27837 #define ELM_STORE_ITEM_MAPPING_OFFSET(st, it) offsetof(st, it)
27838
27839    EAPI void                    elm_store_free(Elm_Store *st);
27840
27841    EAPI Elm_Store              *elm_store_filesystem_new(void);
27842    EAPI void                    elm_store_filesystem_directory_set(Elm_Store *st, const char *dir) EINA_ARG_NONNULL(1);
27843    EAPI const char             *elm_store_filesystem_directory_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
27844    EAPI const char             *elm_store_item_filesystem_path_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27845
27846    EAPI void                    elm_store_target_genlist_set(Elm_Store *st, Evas_Object *obj) EINA_ARG_NONNULL(1);
27847
27848    EAPI void                    elm_store_cache_set(Elm_Store *st, int max) EINA_ARG_NONNULL(1);
27849    EAPI int                     elm_store_cache_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
27850    EAPI void                    elm_store_list_func_set(Elm_Store *st, Elm_Store_Item_List_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
27851    EAPI void                    elm_store_fetch_func_set(Elm_Store *st, Elm_Store_Item_Fetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
27852    EAPI void                    elm_store_fetch_thread_set(Elm_Store *st, Eina_Bool use_thread) EINA_ARG_NONNULL(1);
27853    EAPI Eina_Bool               elm_store_fetch_thread_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
27854
27855    EAPI void                    elm_store_unfetch_func_set(Elm_Store *st, Elm_Store_Item_Unfetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
27856    EAPI void                    elm_store_sorted_set(Elm_Store *st, Eina_Bool sorted) EINA_ARG_NONNULL(1);
27857    EAPI Eina_Bool               elm_store_sorted_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
27858    EAPI void                    elm_store_item_data_set(Elm_Store_Item *sti, void *data) EINA_ARG_NONNULL(1);
27859    EAPI void                   *elm_store_item_data_get(Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27860    EAPI const Elm_Store        *elm_store_item_store_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27861    EAPI const Elm_Genlist_Item *elm_store_item_genlist_item_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27862
27863    /**
27864     * @defgroup SegmentControl SegmentControl
27865     * @ingroup Elementary
27866     *
27867     * @image html img/widget/segment_control/preview-00.png
27868     * @image latex img/widget/segment_control/preview-00.eps width=\textwidth
27869     *
27870     * @image html img/segment_control.png
27871     * @image latex img/segment_control.eps width=\textwidth
27872     *
27873     * Segment control widget is a horizontal control made of multiple segment
27874     * items, each segment item functioning similar to discrete two state button.
27875     * A segment control groups the items together and provides compact
27876     * single button with multiple equal size segments.
27877     *
27878     * Segment item size is determined by base widget
27879     * size and the number of items added.
27880     * Only one segment item can be at selected state. A segment item can display
27881     * combination of Text and any Evas_Object like Images or other widget.
27882     *
27883     * Smart callbacks one can listen to:
27884     * - "changed" - When the user clicks on a segment item which is not
27885     *   previously selected and get selected. The event_info parameter is the
27886     *   segment item pointer.
27887     *
27888     * Available styles for it:
27889     * - @c "default"
27890     *
27891     * Here is an example on its usage:
27892     * @li @ref segment_control_example
27893     */
27894
27895    /**
27896     * @addtogroup SegmentControl
27897     * @{
27898     */
27899
27900    typedef struct _Elm_Segment_Item Elm_Segment_Item; /**< Item handle for a segment control widget. */
27901
27902    /**
27903     * Add a new segment control widget to the given parent Elementary
27904     * (container) object.
27905     *
27906     * @param parent The parent object.
27907     * @return a new segment control widget handle or @c NULL, on errors.
27908     *
27909     * This function inserts a new segment control widget on the canvas.
27910     *
27911     * @ingroup SegmentControl
27912     */
27913    EAPI Evas_Object      *elm_segment_control_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
27914
27915    /**
27916     * Append a new item to the segment control object.
27917     *
27918     * @param obj The segment control object.
27919     * @param icon The icon object to use for the left side of the item. An
27920     * icon can be any Evas object, but usually it is an icon created
27921     * with elm_icon_add().
27922     * @param label The label of the item.
27923     *        Note that, NULL is different from empty string "".
27924     * @return The created item or @c NULL upon failure.
27925     *
27926     * A new item will be created and appended to the segment control, i.e., will
27927     * be set as @b last item.
27928     *
27929     * If it should be inserted at another position,
27930     * elm_segment_control_item_insert_at() should be used instead.
27931     *
27932     * Items created with this function can be deleted with function
27933     * elm_segment_control_item_del() or elm_segment_control_item_del_at().
27934     *
27935     * @note @p label set to @c NULL is different from empty string "".
27936     * If an item
27937     * only has icon, it will be displayed bigger and centered. If it has
27938     * icon and label, even that an empty string, icon will be smaller and
27939     * positioned at left.
27940     *
27941     * Simple example:
27942     * @code
27943     * sc = elm_segment_control_add(win);
27944     * ic = elm_icon_add(win);
27945     * elm_icon_file_set(ic, "path/to/image", NULL);
27946     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
27947     * elm_segment_control_item_add(sc, ic, "label");
27948     * evas_object_show(sc);
27949     * @endcode
27950     *
27951     * @see elm_segment_control_item_insert_at()
27952     * @see elm_segment_control_item_del()
27953     *
27954     * @ingroup SegmentControl
27955     */
27956    EAPI Elm_Segment_Item *elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon, const char *label) EINA_ARG_NONNULL(1);
27957
27958    /**
27959     * Insert a new item to the segment control object at specified position.
27960     *
27961     * @param obj The segment control object.
27962     * @param icon The icon object to use for the left side of the item. An
27963     * icon can be any Evas object, but usually it is an icon created
27964     * with elm_icon_add().
27965     * @param label The label of the item.
27966     * @param index Item position. Value should be between 0 and items count.
27967     * @return The created item or @c NULL upon failure.
27968
27969     * Index values must be between @c 0, when item will be prepended to
27970     * segment control, and items count, that can be get with
27971     * elm_segment_control_item_count_get(), case when item will be appended
27972     * to segment control, just like elm_segment_control_item_add().
27973     *
27974     * Items created with this function can be deleted with function
27975     * elm_segment_control_item_del() or elm_segment_control_item_del_at().
27976     *
27977     * @note @p label set to @c NULL is different from empty string "".
27978     * If an item
27979     * only has icon, it will be displayed bigger and centered. If it has
27980     * icon and label, even that an empty string, icon will be smaller and
27981     * positioned at left.
27982     *
27983     * @see elm_segment_control_item_add()
27984     * @see elm_segment_control_item_count_get()
27985     * @see elm_segment_control_item_del()
27986     *
27987     * @ingroup SegmentControl
27988     */
27989    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);
27990
27991    /**
27992     * Remove a segment control item from its parent, deleting it.
27993     *
27994     * @param it The item to be removed.
27995     *
27996     * Items can be added with elm_segment_control_item_add() or
27997     * elm_segment_control_item_insert_at().
27998     *
27999     * @ingroup SegmentControl
28000     */
28001    EAPI void              elm_segment_control_item_del(Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
28002
28003    /**
28004     * Remove a segment control item at given index from its parent,
28005     * deleting it.
28006     *
28007     * @param obj The segment control object.
28008     * @param index The position of the segment control item to be deleted.
28009     *
28010     * Items can be added with elm_segment_control_item_add() or
28011     * elm_segment_control_item_insert_at().
28012     *
28013     * @ingroup SegmentControl
28014     */
28015    EAPI void              elm_segment_control_item_del_at(Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
28016
28017    /**
28018     * Get the Segment items count from segment control.
28019     *
28020     * @param obj The segment control object.
28021     * @return Segment items count.
28022     *
28023     * It will just return the number of items added to segment control @p obj.
28024     *
28025     * @ingroup SegmentControl
28026     */
28027    EAPI int               elm_segment_control_item_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28028
28029    /**
28030     * Get the item placed at specified index.
28031     *
28032     * @param obj The segment control object.
28033     * @param index The index of the segment item.
28034     * @return The segment control item or @c NULL on failure.
28035     *
28036     * Index is the position of an item in segment control widget. Its
28037     * range is from @c 0 to <tt> count - 1 </tt>.
28038     * Count is the number of items, that can be get with
28039     * elm_segment_control_item_count_get().
28040     *
28041     * @ingroup SegmentControl
28042     */
28043    EAPI Elm_Segment_Item *elm_segment_control_item_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
28044
28045    /**
28046     * Get the label of item.
28047     *
28048     * @param obj The segment control object.
28049     * @param index The index of the segment item.
28050     * @return The label of the item at @p index.
28051     *
28052     * The return value is a pointer to the label associated to the item when
28053     * it was created, with function elm_segment_control_item_add(), or later
28054     * with function elm_segment_control_item_label_set. If no label
28055     * was passed as argument, it will return @c NULL.
28056     *
28057     * @see elm_segment_control_item_label_set() for more details.
28058     * @see elm_segment_control_item_add()
28059     *
28060     * @ingroup SegmentControl
28061     */
28062    EAPI const char       *elm_segment_control_item_label_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
28063
28064    /**
28065     * Set the label of item.
28066     *
28067     * @param it The item of segment control.
28068     * @param text The label of item.
28069     *
28070     * The label to be displayed by the item.
28071     * Label will be at right of the icon (if set).
28072     *
28073     * If a label was passed as argument on item creation, with function
28074     * elm_control_segment_item_add(), it will be already
28075     * displayed by the item.
28076     *
28077     * @see elm_segment_control_item_label_get()
28078     * @see elm_segment_control_item_add()
28079     *
28080     * @ingroup SegmentControl
28081     */
28082    EAPI void              elm_segment_control_item_label_set(Elm_Segment_Item* it, const char* label) EINA_ARG_NONNULL(1);
28083
28084    /**
28085     * Get the icon associated to the item.
28086     *
28087     * @param obj The segment control object.
28088     * @param index The index of the segment item.
28089     * @return The left side icon associated to the item at @p index.
28090     *
28091     * The return value is a pointer to the icon associated to the item when
28092     * it was created, with function elm_segment_control_item_add(), or later
28093     * with function elm_segment_control_item_icon_set(). If no icon
28094     * was passed as argument, it will return @c NULL.
28095     *
28096     * @see elm_segment_control_item_add()
28097     * @see elm_segment_control_item_icon_set()
28098     *
28099     * @ingroup SegmentControl
28100     */
28101    EAPI Evas_Object      *elm_segment_control_item_icon_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
28102
28103    /**
28104     * Set the icon associated to the item.
28105     *
28106     * @param it The segment control item.
28107     * @param icon The icon object to associate with @p it.
28108     *
28109     * The icon object to use at left side of the item. An
28110     * icon can be any Evas object, but usually it is an icon created
28111     * with elm_icon_add().
28112     *
28113     * Once the icon object is set, a previously set one will be deleted.
28114     * @warning Setting the same icon for two items will cause the icon to
28115     * dissapear from the first item.
28116     *
28117     * If an icon was passed as argument on item creation, with function
28118     * elm_segment_control_item_add(), it will be already
28119     * associated to the item.
28120     *
28121     * @see elm_segment_control_item_add()
28122     * @see elm_segment_control_item_icon_get()
28123     *
28124     * @ingroup SegmentControl
28125     */
28126    EAPI void              elm_segment_control_item_icon_set(Elm_Segment_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
28127
28128    /**
28129     * Get the index of an item.
28130     *
28131     * @param it The segment control item.
28132     * @return The position of item in segment control widget.
28133     *
28134     * Index is the position of an item in segment control widget. Its
28135     * range is from @c 0 to <tt> count - 1 </tt>.
28136     * Count is the number of items, that can be get with
28137     * elm_segment_control_item_count_get().
28138     *
28139     * @ingroup SegmentControl
28140     */
28141    EAPI int               elm_segment_control_item_index_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
28142
28143    /**
28144     * Get the base object of the item.
28145     *
28146     * @param it The segment control item.
28147     * @return The base object associated with @p it.
28148     *
28149     * Base object is the @c Evas_Object that represents that item.
28150     *
28151     * @ingroup SegmentControl
28152     */
28153    EAPI Evas_Object      *elm_segment_control_item_object_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
28154
28155    /**
28156     * Get the selected item.
28157     *
28158     * @param obj The segment control object.
28159     * @return The selected item or @c NULL if none of segment items is
28160     * selected.
28161     *
28162     * The selected item can be unselected with function
28163     * elm_segment_control_item_selected_set().
28164     *
28165     * The selected item always will be highlighted on segment control.
28166     *
28167     * @ingroup SegmentControl
28168     */
28169    EAPI Elm_Segment_Item *elm_segment_control_item_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28170
28171    /**
28172     * Set the selected state of an item.
28173     *
28174     * @param it The segment control item
28175     * @param select The selected state
28176     *
28177     * This sets the selected state of the given item @p it.
28178     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
28179     *
28180     * If a new item is selected the previosly selected will be unselected.
28181     * Previoulsy selected item can be get with function
28182     * elm_segment_control_item_selected_get().
28183     *
28184     * The selected item always will be highlighted on segment control.
28185     *
28186     * @see elm_segment_control_item_selected_get()
28187     *
28188     * @ingroup SegmentControl
28189     */
28190    EAPI void              elm_segment_control_item_selected_set(Elm_Segment_Item *it, Eina_Bool select) EINA_ARG_NONNULL(1);
28191
28192    /**
28193     * @}
28194     */
28195
28196    /**
28197     * @defgroup Grid Grid
28198     *
28199     * The grid is a grid layout widget that lays out a series of children as a
28200     * fixed "grid" of widgets using a given percentage of the grid width and
28201     * height each using the child object.
28202     *
28203     * The Grid uses a "Virtual resolution" that is stretched to fill the grid
28204     * widgets size itself. The default is 100 x 100, so that means the
28205     * position and sizes of children will effectively be percentages (0 to 100)
28206     * of the width or height of the grid widget
28207     *
28208     * @{
28209     */
28210
28211    /**
28212     * Add a new grid to the parent
28213     *
28214     * @param parent The parent object
28215     * @return The new object or NULL if it cannot be created
28216     *
28217     * @ingroup Grid
28218     */
28219    EAPI Evas_Object *elm_grid_add(Evas_Object *parent);
28220
28221    /**
28222     * Set the virtual size of the grid
28223     *
28224     * @param obj The grid object
28225     * @param w The virtual width of the grid
28226     * @param h The virtual height of the grid
28227     *
28228     * @ingroup Grid
28229     */
28230    EAPI void         elm_grid_size_set(Evas_Object *obj, int w, int h);
28231
28232    /**
28233     * Get the virtual size of the grid
28234     *
28235     * @param obj The grid object
28236     * @param w Pointer to integer to store the virtual width of the grid
28237     * @param h Pointer to integer to store the virtual height of the grid
28238     *
28239     * @ingroup Grid
28240     */
28241    EAPI void         elm_grid_size_get(Evas_Object *obj, int *w, int *h);
28242
28243    /**
28244     * Pack child at given position and size
28245     *
28246     * @param obj The grid object
28247     * @param subobj The child to pack
28248     * @param x The virtual x coord at which to pack it
28249     * @param y The virtual y coord at which to pack it
28250     * @param w The virtual width at which to pack it
28251     * @param h The virtual height at which to pack it
28252     *
28253     * @ingroup Grid
28254     */
28255    EAPI void         elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h);
28256
28257    /**
28258     * Unpack a child from a grid object
28259     *
28260     * @param obj The grid object
28261     * @param subobj The child to unpack
28262     *
28263     * @ingroup Grid
28264     */
28265    EAPI void         elm_grid_unpack(Evas_Object *obj, Evas_Object *subobj);
28266
28267    /**
28268     * Faster way to remove all child objects from a grid object.
28269     *
28270     * @param obj The grid object
28271     * @param clear If true, it will delete just removed children
28272     *
28273     * @ingroup Grid
28274     */
28275    EAPI void         elm_grid_clear(Evas_Object *obj, Eina_Bool clear);
28276
28277    /**
28278     * Set packing of an existing child at to position and size
28279     *
28280     * @param subobj The child to set packing of
28281     * @param x The virtual x coord at which to pack it
28282     * @param y The virtual y coord at which to pack it
28283     * @param w The virtual width at which to pack it
28284     * @param h The virtual height at which to pack it
28285     *
28286     * @ingroup Grid
28287     */
28288    EAPI void         elm_grid_pack_set(Evas_Object *subobj, int x, int y, int w, int h);
28289
28290    /**
28291     * get packing of a child
28292     *
28293     * @param subobj The child to query
28294     * @param x Pointer to integer to store the virtual x coord
28295     * @param y Pointer to integer to store the virtual y coord
28296     * @param w Pointer to integer to store the virtual width
28297     * @param h Pointer to integer to store the virtual height
28298     *
28299     * @ingroup Grid
28300     */
28301    EAPI void         elm_grid_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h);
28302
28303    /**
28304     * @}
28305     */
28306
28307    EAPI Evas_Object *elm_factory_add(Evas_Object *parent);
28308    EINA_DEPRECATED EAPI void         elm_factory_content_set(Evas_Object *obj, Evas_Object *content);
28309    EINA_DEPRECATED EAPI Evas_Object *elm_factory_content_get(const Evas_Object *obj);
28310    EAPI void         elm_factory_maxmin_mode_set(Evas_Object *obj, Eina_Bool enabled);
28311    EAPI Eina_Bool    elm_factory_maxmin_mode_get(const Evas_Object *obj);
28312    EAPI void         elm_factory_maxmin_reset_set(Evas_Object *obj);
28313
28314    /**
28315     * @defgroup Video Video
28316     *
28317     * @addtogroup Video
28318     * @{
28319     *
28320     * Elementary comes with two object that help design application that need
28321     * to display video. The main one, Elm_Video, display a video by using Emotion.
28322     * It does embedded the video inside an Edje object, so you can do some
28323     * animation depending on the video state change. It does also implement a
28324     * ressource management policy to remove this burden from the application writer.
28325     *
28326     * The second one, Elm_Player is a video player that need to be linked with and Elm_Video.
28327     * It take care of updating its content according to Emotion event and provide a
28328     * way to theme itself. It also does automatically raise the priority of the
28329     * linked Elm_Video so it will use the video decoder if available. It also does
28330     * activate the remember function on the linked Elm_Video object.
28331     *
28332     * Signals that you can add callback for are :
28333     *
28334     * "forward,clicked" - the user clicked the forward button.
28335     * "info,clicked" - the user clicked the info button.
28336     * "next,clicked" - the user clicked the next button.
28337     * "pause,clicked" - the user clicked the pause button.
28338     * "play,clicked" - the user clicked the play button.
28339     * "prev,clicked" - the user clicked the prev button.
28340     * "rewind,clicked" - the user clicked the rewind button.
28341     * "stop,clicked" - the user clicked the stop button.
28342     * 
28343     * Default contents parts of the player widget that you can use for are:
28344     * @li "video" - A video of the player
28345     * 
28346     */
28347
28348    /**
28349     * @brief Add a new Elm_Player object to the given parent Elementary (container) object.
28350     *
28351     * @param parent The parent object
28352     * @return a new player widget handle or @c NULL, on errors.
28353     *
28354     * This function inserts a new player widget on the canvas.
28355     *
28356     * @see elm_object_part_content_set()
28357     *
28358     * @ingroup Video
28359     */
28360    EAPI Evas_Object *elm_player_add(Evas_Object *parent);
28361
28362    /**
28363     * @brief Link a Elm_Payer with an Elm_Video object.
28364     *
28365     * @param player the Elm_Player object.
28366     * @param video The Elm_Video object.
28367     *
28368     * This mean that action on the player widget will affect the
28369     * video object and the state of the video will be reflected in
28370     * the player itself.
28371     *
28372     * @see elm_player_add()
28373     * @see elm_video_add()
28374     * @deprecated use elm_object_part_content_set() instead
28375     *
28376     * @ingroup Video
28377     */
28378    EINA_DEPRECATED EAPI void elm_player_video_set(Evas_Object *player, Evas_Object *video);
28379
28380    /**
28381     * @brief Add a new Elm_Video object to the given parent Elementary (container) object.
28382     *
28383     * @param parent The parent object
28384     * @return a new video widget handle or @c NULL, on errors.
28385     *
28386     * This function inserts a new video widget on the canvas.
28387     *
28388     * @seeelm_video_file_set()
28389     * @see elm_video_uri_set()
28390     *
28391     * @ingroup Video
28392     */
28393    EAPI Evas_Object *elm_video_add(Evas_Object *parent);
28394
28395    /**
28396     * @brief Define the file that will be the video source.
28397     *
28398     * @param video The video object to define the file for.
28399     * @param filename The file to target.
28400     *
28401     * This function will explicitly define a filename as a source
28402     * for the video of the Elm_Video object.
28403     *
28404     * @see elm_video_uri_set()
28405     * @see elm_video_add()
28406     * @see elm_player_add()
28407     *
28408     * @ingroup Video
28409     */
28410    EAPI void elm_video_file_set(Evas_Object *video, const char *filename);
28411
28412    /**
28413     * @brief Define the uri that will be the video source.
28414     *
28415     * @param video The video object to define the file for.
28416     * @param uri The uri to target.
28417     *
28418     * This function will define an uri as a source for the video of the
28419     * Elm_Video object. URI could be remote source of video, like http:// or local source
28420     * like for example WebCam who are most of the time v4l2:// (but that depend and
28421     * you should use Emotion API to request and list the available Webcam on your system).
28422     *
28423     * @see elm_video_file_set()
28424     * @see elm_video_add()
28425     * @see elm_player_add()
28426     *
28427     * @ingroup Video
28428     */
28429    EAPI void elm_video_uri_set(Evas_Object *video, const char *uri);
28430
28431    /**
28432     * @brief Get the underlying Emotion object.
28433     *
28434     * @param video The video object to proceed the request on.
28435     * @return the underlying Emotion object.
28436     *
28437     * @ingroup Video
28438     */
28439    EAPI Evas_Object *elm_video_emotion_get(const Evas_Object *video);
28440
28441    /**
28442     * @brief Start to play the video
28443     *
28444     * @param video The video object to proceed the request on.
28445     *
28446     * Start to play the video and cancel all suspend state.
28447     *
28448     * @ingroup Video
28449     */
28450    EAPI void elm_video_play(Evas_Object *video);
28451
28452    /**
28453     * @brief Pause the video
28454     *
28455     * @param video The video object to proceed the request on.
28456     *
28457     * Pause the video and start a timer to trigger suspend mode.
28458     *
28459     * @ingroup Video
28460     */
28461    EAPI void elm_video_pause(Evas_Object *video);
28462
28463    /**
28464     * @brief Stop the video
28465     *
28466     * @param video The video object to proceed the request on.
28467     *
28468     * Stop the video and put the emotion in deep sleep mode.
28469     *
28470     * @ingroup Video
28471     */
28472    EAPI void elm_video_stop(Evas_Object *video);
28473
28474    /**
28475     * @brief Is the video actually playing.
28476     *
28477     * @param video The video object to proceed the request on.
28478     * @return EINA_TRUE if the video is actually playing.
28479     *
28480     * You should consider watching event on the object instead of polling
28481     * the object state.
28482     *
28483     * @ingroup Video
28484     */
28485    EAPI Eina_Bool elm_video_is_playing(const Evas_Object *video);
28486
28487    /**
28488     * @brief Is it possible to seek inside the video.
28489     *
28490     * @param video The video object to proceed the request on.
28491     * @return EINA_TRUE if is possible to seek inside the video.
28492     *
28493     * @ingroup Video
28494     */
28495    EAPI Eina_Bool elm_video_is_seekable(const Evas_Object *video);
28496
28497    /**
28498     * @brief Is the audio muted.
28499     *
28500     * @param video The video object to proceed the request on.
28501     * @return EINA_TRUE if the audio is muted.
28502     *
28503     * @ingroup Video
28504     */
28505    EAPI Eina_Bool elm_video_audio_mute_get(const Evas_Object *video);
28506
28507    /**
28508     * @brief Change the mute state of the Elm_Video object.
28509     *
28510     * @param video The video object to proceed the request on.
28511     * @param mute The new mute state.
28512     *
28513     * @ingroup Video
28514     */
28515    EAPI void elm_video_audio_mute_set(Evas_Object *video, Eina_Bool mute);
28516
28517    /**
28518     * @brief Get the audio level of the current video.
28519     *
28520     * @param video The video object to proceed the request on.
28521     * @return the current audio level.
28522     *
28523     * @ingroup Video
28524     */
28525    EAPI double elm_video_audio_level_get(const Evas_Object *video);
28526
28527    /**
28528     * @brief Set the audio level of anElm_Video object.
28529     *
28530     * @param video The video object to proceed the request on.
28531     * @param volume The new audio volume.
28532     *
28533     * @ingroup Video
28534     */
28535    EAPI void elm_video_audio_level_set(Evas_Object *video, double volume);
28536
28537    EAPI double elm_video_play_position_get(const Evas_Object *video);
28538    EAPI void elm_video_play_position_set(Evas_Object *video, double position);
28539    EAPI double elm_video_play_length_get(const Evas_Object *video);
28540    EAPI void elm_video_remember_position_set(Evas_Object *video, Eina_Bool remember);
28541    EAPI Eina_Bool elm_video_remember_position_get(const Evas_Object *video);
28542    EAPI const char *elm_video_title_get(const Evas_Object *video);
28543    /**
28544     * @}
28545     */
28546
28547    /**
28548     * @defgroup Naviframe Naviframe
28549     * @ingroup Elementary
28550     *
28551     * @brief Naviframe is a kind of view manager for the applications.
28552     *
28553     * Naviframe provides functions to switch different pages with stack
28554     * mechanism. It means if one page(item) needs to be changed to the new one,
28555     * then naviframe would push the new page to it's internal stack. Of course,
28556     * it can be back to the previous page by popping the top page. Naviframe
28557     * provides some transition effect while the pages are switching (same as
28558     * pager).
28559     *
28560     * Since each item could keep the different styles, users could keep the
28561     * same look & feel for the pages or different styles for the items in it's
28562     * application.
28563     *
28564     * Signals that you can add callback for are:
28565     * @li "transition,finished" - When the transition is finished in changing
28566     *     the item
28567     * @li "title,clicked" - User clicked title area
28568     *
28569     * Default contents parts of the naviframe items that you can use for are:
28570     * @li "default" - A main content of the page
28571     * @li "icon" - A icon in the title area
28572     * @li "prev_btn" - A button to go to the previous page
28573     * @li "next_btn" - A button to go to the next page
28574     *
28575     * Default text parts of the naviframe items that you can use for are:
28576     * @li "default" - Title label in the title area
28577     * @li "subtitle" - Sub-title label in the title area
28578     *
28579     * @ref tutorial_naviframe gives a good overview of the usage of the API.
28580     */
28581
28582    /**
28583     * @addtogroup Naviframe
28584     * @{
28585     */
28586
28587    /**
28588     * @brief Add a new Naviframe object to the parent.
28589     *
28590     * @param parent Parent object
28591     * @return New object or @c NULL, if it cannot be created
28592     *
28593     * @ingroup Naviframe
28594     */
28595    EAPI Evas_Object        *elm_naviframe_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
28596    /**
28597     * @brief Push a new item to the top of the naviframe stack (and show it).
28598     *
28599     * @param obj The naviframe object
28600     * @param title_label The label in the title area. The name of the title
28601     *        label part is "elm.text.title"
28602     * @param prev_btn The button to go to the previous item. If it is NULL,
28603     *        then naviframe will create a back button automatically. The name of
28604     *        the prev_btn part is "elm.swallow.prev_btn"
28605     * @param next_btn The button to go to the next item. Or It could be just an
28606     *        extra function button. The name of the next_btn part is
28607     *        "elm.swallow.next_btn"
28608     * @param content The main content object. The name of content part is
28609     *        "elm.swallow.content"
28610     * @param item_style The current item style name. @c NULL would be default.
28611     * @return The created item or @c NULL upon failure.
28612     *
28613     * The item pushed becomes one page of the naviframe, this item will be
28614     * deleted when it is popped.
28615     *
28616     * @see also elm_naviframe_item_style_set()
28617     * @see also elm_naviframe_item_insert_before()
28618     * @see also elm_naviframe_item_insert_after()
28619     *
28620     * The following styles are available for this item:
28621     * @li @c "default"
28622     *
28623     * @ingroup Naviframe
28624     */
28625    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);
28626     /**
28627     * @brief Insert a new item into the naviframe before item @p before.
28628     *
28629     * @param before The naviframe item to insert before.
28630     * @param title_label The label in the title area. The name of the title
28631     *        label part is "elm.text.title"
28632     * @param prev_btn The button to go to the previous item. If it is NULL,
28633     *        then naviframe will create a back button automatically. The name of
28634     *        the prev_btn part is "elm.swallow.prev_btn"
28635     * @param next_btn The button to go to the next item. Or It could be just an
28636     *        extra function button. The name of the next_btn part is
28637     *        "elm.swallow.next_btn"
28638     * @param content The main content object. The name of content part is
28639     *        "elm.swallow.content"
28640     * @param item_style The current item style name. @c NULL would be default.
28641     * @return The created item or @c NULL upon failure.
28642     *
28643     * The item is inserted into the naviframe straight away without any
28644     * transition operations. This item will be deleted when it is popped.
28645     *
28646     * @see also elm_naviframe_item_style_set()
28647     * @see also elm_naviframe_item_push()
28648     * @see also elm_naviframe_item_insert_after()
28649     *
28650     * The following styles are available for this item:
28651     * @li @c "default"
28652     *
28653     * @ingroup Naviframe
28654     */
28655    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);
28656    /**
28657     * @brief Insert a new item into the naviframe after item @p after.
28658     *
28659     * @param after The naviframe item to insert after.
28660     * @param title_label The label in the title area. The name of the title
28661     *        label part is "elm.text.title"
28662     * @param prev_btn The button to go to the previous item. If it is NULL,
28663     *        then naviframe will create a back button automatically. The name of
28664     *        the prev_btn part is "elm.swallow.prev_btn"
28665     * @param next_btn The button to go to the next item. Or It could be just an
28666     *        extra function button. The name of the next_btn part is
28667     *        "elm.swallow.next_btn"
28668     * @param content The main content object. The name of content part is
28669     *        "elm.swallow.content"
28670     * @param item_style The current item style name. @c NULL would be default.
28671     * @return The created item or @c NULL upon failure.
28672     *
28673     * The item is inserted into the naviframe straight away without any
28674     * transition operations. This item will be deleted when it is popped.
28675     *
28676     * @see also elm_naviframe_item_style_set()
28677     * @see also elm_naviframe_item_push()
28678     * @see also elm_naviframe_item_insert_before()
28679     *
28680     * The following styles are available for this item:
28681     * @li @c "default"
28682     *
28683     * @ingroup Naviframe
28684     */
28685    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);
28686    /**
28687     * @brief Pop an item that is on top of the stack
28688     *
28689     * @param obj The naviframe object
28690     * @return @c NULL or the content object(if the
28691     *         elm_naviframe_content_preserve_on_pop_get is true).
28692     *
28693     * This pops an item that is on the top(visible) of the naviframe, makes it
28694     * disappear, then deletes the item. The item that was underneath it on the
28695     * stack will become visible.
28696     *
28697     * @see also elm_naviframe_content_preserve_on_pop_get()
28698     *
28699     * @ingroup Naviframe
28700     */
28701    EAPI Evas_Object        *elm_naviframe_item_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
28702    /**
28703     * @brief Pop the items between the top and the above one on the given item.
28704     *
28705     * @param it The naviframe item
28706     *
28707     * @ingroup Naviframe
28708     */
28709    EAPI void                elm_naviframe_item_pop_to(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28710    /**
28711    * Promote an item already in the naviframe stack to the top of the stack
28712    *
28713    * @param it The naviframe item
28714    *
28715    * This will take the indicated item and promote it to the top of the stack
28716    * as if it had been pushed there. The item must already be inside the
28717    * naviframe stack to work.
28718    *
28719    */
28720    EAPI void                elm_naviframe_item_promote(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28721    /**
28722     * @brief Delete the given item instantly.
28723     *
28724     * @param it The naviframe item
28725     *
28726     * This just deletes the given item from the naviframe item list instantly.
28727     * So this would not emit any signals for view transitions but just change
28728     * the current view if the given item is a top one.
28729     *
28730     * @ingroup Naviframe
28731     */
28732    EAPI void                elm_naviframe_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28733    /**
28734     * @brief preserve the content objects when items are popped.
28735     *
28736     * @param obj The naviframe object
28737     * @param preserve Enable the preserve mode if EINA_TRUE, disable otherwise
28738     *
28739     * @see also elm_naviframe_content_preserve_on_pop_get()
28740     *
28741     * @ingroup Naviframe
28742     */
28743    EAPI void                elm_naviframe_content_preserve_on_pop_set(Evas_Object *obj, Eina_Bool preserve) EINA_ARG_NONNULL(1);
28744    /**
28745     * @brief Get a value whether preserve mode is enabled or not.
28746     *
28747     * @param obj The naviframe object
28748     * @return If @c EINA_TRUE, preserve mode is enabled
28749     *
28750     * @see also elm_naviframe_content_preserve_on_pop_set()
28751     *
28752     * @ingroup Naviframe
28753     */
28754    EAPI Eina_Bool           elm_naviframe_content_preserve_on_pop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28755    /**
28756     * @brief Get a top item on the naviframe stack
28757     *
28758     * @param obj The naviframe object
28759     * @return The top item on the naviframe stack or @c NULL, if the stack is
28760     *         empty
28761     *
28762     * @ingroup Naviframe
28763     */
28764    EAPI Elm_Object_Item    *elm_naviframe_top_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28765    /**
28766     * @brief Get a bottom item on the naviframe stack
28767     *
28768     * @param obj The naviframe object
28769     * @return The bottom item on the naviframe stack or @c NULL, if the stack is
28770     *         empty
28771     *
28772     * @ingroup Naviframe
28773     */
28774    EAPI Elm_Object_Item    *elm_naviframe_bottom_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28775    /**
28776     * @brief Set an item style
28777     *
28778     * @param obj The naviframe item
28779     * @param item_style The current item style name. @c NULL would be default
28780     *
28781     * The following styles are available for this item:
28782     * @li @c "default"
28783     *
28784     * @see also elm_naviframe_item_style_get()
28785     *
28786     * @ingroup Naviframe
28787     */
28788    EAPI void                elm_naviframe_item_style_set(Elm_Object_Item *it, const char *item_style) EINA_ARG_NONNULL(1);
28789    /**
28790     * @brief Get an item style
28791     *
28792     * @param obj The naviframe item
28793     * @return The current item style name
28794     *
28795     * @see also elm_naviframe_item_style_set()
28796     *
28797     * @ingroup Naviframe
28798     */
28799    EAPI const char         *elm_naviframe_item_style_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28800    /**
28801     * @brief Show/Hide the title area
28802     *
28803     * @param it The naviframe item
28804     * @param visible If @c EINA_TRUE, title area will be visible, hidden
28805     *        otherwise
28806     *
28807     * When the title area is invisible, then the controls would be hidden so as     * to expand the content area to full-size.
28808     *
28809     * @see also elm_naviframe_item_title_visible_get()
28810     *
28811     * @ingroup Naviframe
28812     */
28813    EAPI void                elm_naviframe_item_title_visible_set(Elm_Object_Item *it, Eina_Bool visible) EINA_ARG_NONNULL(1);
28814    /**
28815     * @brief Get a value whether title area is visible or not.
28816     *
28817     * @param it The naviframe item
28818     * @return If @c EINA_TRUE, title area is visible
28819     *
28820     * @see also elm_naviframe_item_title_visible_set()
28821     *
28822     * @ingroup Naviframe
28823     */
28824    EAPI Eina_Bool           elm_naviframe_item_title_visible_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28825
28826    /**
28827     * @brief Set creating prev button automatically or not
28828     *
28829     * @param obj The naviframe object
28830     * @param auto_pushed If @c EINA_TRUE, the previous button(back button) will
28831     *        be created internally when you pass the @c NULL to the prev_btn
28832     *        parameter in elm_naviframe_item_push
28833     *
28834     * @see also elm_naviframe_item_push()
28835     */
28836    EAPI void                elm_naviframe_prev_btn_auto_pushed_set(Evas_Object *obj, Eina_Bool auto_pushed) EINA_ARG_NONNULL(1);
28837    /**
28838     * @brief Get a value whether prev button(back button) will be auto pushed or
28839     *        not.
28840     *
28841     * @param obj The naviframe object
28842     * @return If @c EINA_TRUE, prev button will be auto pushed.
28843     *
28844     * @see also elm_naviframe_item_push()
28845     *           elm_naviframe_prev_btn_auto_pushed_set()
28846     */
28847    EAPI Eina_Bool           elm_naviframe_prev_btn_auto_pushed_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28848    /**
28849     * @brief Get a list of all the naviframe items.
28850     *
28851     * @param obj The naviframe object
28852     * @return An Eina_Inlist* of naviframe items, #Elm_Object_Item,
28853     * or @c NULL on failure.
28854     */
28855    EAPI Eina_Inlist        *elm_naviframe_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28856
28857    /**
28858     * @}
28859     */
28860
28861 #ifdef __cplusplus
28862 }
28863 #endif
28864
28865 #endif